43.9 MB
/srv/reproducible-results/rbuild-debian/r-b-build.RbGFPGXY/b1/rustc_1.84.0+dfsg1-1_i386.changes vs.
/srv/reproducible-results/rbuild-debian/r-b-build.RbGFPGXY/b2/rustc_1.84.0+dfsg1-1_i386.changes
2.27 KB
Files
    
Offset 1, 22 lines modifiedOffset 1, 22 lines modified
  
1 ·352c548c1ab20d481951ae5e6646a6b2·3162956·debug·optional·cargo-dbgsym_1.84.0+dfsg1-1_i386.deb1 ·352c548c1ab20d481951ae5e6646a6b2·3162956·debug·optional·cargo-dbgsym_1.84.0+dfsg1-1_i386.deb
2 ·2684d3e87a1207e20ae040d7c5139ec6·4325228·doc·optional·cargo-doc_1.84.0+dfsg1-1_all.deb2 ·9ffc4f2ebc89b3a22b9e13b304776243·4325164·doc·optional·cargo-doc_1.84.0+dfsg1-1_all.deb
3 ·4d5abe792bfbebd53f800f965d87c7e1·6909528·devel·optional·cargo_1.84.0+dfsg1-1_i386.deb3 ·4d5abe792bfbebd53f800f965d87c7e1·6909528·devel·optional·cargo_1.84.0+dfsg1-1_i386.deb
4 ·5169fc3b19aff3ff2d04a0b6a454390e·7335548·debug·optional·libstd-rust-1.84-dbgsym_1.84.0+dfsg1-1_i386.deb4 ·5169fc3b19aff3ff2d04a0b6a454390e·7335548·debug·optional·libstd-rust-1.84-dbgsym_1.84.0+dfsg1-1_i386.deb
5 ·7b991d092865e783839e03ff037f61f8·21842796·libs·optional·libstd-rust-1.84_1.84.0+dfsg1-1_i386.deb5 ·7b991d092865e783839e03ff037f61f8·21842796·libs·optional·libstd-rust-1.84_1.84.0+dfsg1-1_i386.deb
6 ·1a171ae9525e6857fdc6bc8295ddc607·92213244·libdevel·optional·libstd-rust-dev-wasm32_1.84.0+dfsg1-1_all.deb6 ·1a171ae9525e6857fdc6bc8295ddc607·92213244·libdevel·optional·libstd-rust-dev-wasm32_1.84.0+dfsg1-1_all.deb
7 ·173888433a7a792d3107e312b3995750·43657060·libdevel·optional·libstd-rust-dev-windows_1.84.0+dfsg1-1_i386.deb7 ·486305f40c93441066681e903ad3f5b2·43657396·libdevel·optional·libstd-rust-dev-windows_1.84.0+dfsg1-1_i386.deb
8 ·cfd522ce815e152836c070902b5016a6·38217276·libdevel·optional·libstd-rust-dev_1.84.0+dfsg1-1_i386.deb8 ·cfd522ce815e152836c070902b5016a6·38217276·libdevel·optional·libstd-rust-dev_1.84.0+dfsg1-1_i386.deb
9 ·161c01c5a56972e18e5dd28f442e13ba·240132·devel·optional·rust-all_1.84.0+dfsg1-1_all.deb9 ·161c01c5a56972e18e5dd28f442e13ba·240132·devel·optional·rust-all_1.84.0+dfsg1-1_all.deb
10 ·ff9d3064e177c66243953bc808e5faf8·1244356·debug·optional·rust-analyzer-dbgsym_1.84.0+dfsg1-1_i386.deb10 ·ff9d3064e177c66243953bc808e5faf8·1244356·debug·optional·rust-analyzer-dbgsym_1.84.0+dfsg1-1_i386.deb
11 ·3ffb2426c7d8920aee804de18c41ded0·8617512·devel·optional·rust-analyzer_1.84.0+dfsg1-1_i386.deb11 ·3ffb2426c7d8920aee804de18c41ded0·8617512·devel·optional·rust-analyzer_1.84.0+dfsg1-1_i386.deb
12 ·9d27a1bb8a822d4ab1f31e6bf186e4b5·520672·debug·optional·rust-clippy-dbgsym_1.84.0+dfsg1-1_i386.deb12 ·9d27a1bb8a822d4ab1f31e6bf186e4b5·520672·debug·optional·rust-clippy-dbgsym_1.84.0+dfsg1-1_i386.deb
13 ·13d508bc799a3bbd59cbf5eff80d2dc5·3587928·devel·optional·rust-clippy_1.84.0+dfsg1-1_i386.deb13 ·13d508bc799a3bbd59cbf5eff80d2dc5·3587928·devel·optional·rust-clippy_1.84.0+dfsg1-1_i386.deb
14 ·d6056f69aa11c4e9c7a7492b5448955c·22345808·doc·optional·rust-doc_1.84.0+dfsg1-1_all.deb14 ·174bb557c848c6bbd65dbb0bd71f5892·22568468·doc·optional·rust-doc_1.84.0+dfsg1-1_all.deb
15 ·04970036be19d8ce52738d041a0d7481·245844·devel·optional·rust-gdb_1.84.0+dfsg1-1_all.deb15 ·04970036be19d8ce52738d041a0d7481·245844·devel·optional·rust-gdb_1.84.0+dfsg1-1_all.deb
16 ·2871b8941c7202814f634f3baf615753·246632·devel·optional·rust-lldb_1.84.0+dfsg1-1_all.deb16 ·2871b8941c7202814f634f3baf615753·246632·devel·optional·rust-lldb_1.84.0+dfsg1-1_all.deb
17 ·4d5ff99e3224ebba15da179e516d70dc·1906168·devel·optional·rust-llvm_1.84.0+dfsg1-1_i386.deb17 ·4d5ff99e3224ebba15da179e516d70dc·1906168·devel·optional·rust-llvm_1.84.0+dfsg1-1_i386.deb
18 ·f12987f936aa8cc733073deecff0344f·46613444·devel·optional·rust-src_1.84.0+dfsg1-1_all.deb18 ·f12987f936aa8cc733073deecff0344f·46613444·devel·optional·rust-src_1.84.0+dfsg1-1_all.deb
19 ·5c3f99025428ffc2e3f46b5d760ce945·1750616·debug·optional·rustc-dbgsym_1.84.0+dfsg1-1_i386.deb19 ·5c3f99025428ffc2e3f46b5d760ce945·1750616·debug·optional·rustc-dbgsym_1.84.0+dfsg1-1_i386.deb
20 ·a399958d0b54a9da80851e73458cc26b·4003620·devel·optional·rustc_1.84.0+dfsg1-1_i386.deb20 ·a399958d0b54a9da80851e73458cc26b·4003620·devel·optional·rustc_1.84.0+dfsg1-1_i386.deb
21 ·05f64046c7af2f8394fb9fe385da559e·2556228·debug·optional·rustfmt-dbgsym_1.84.0+dfsg1-1_i386.deb21 ·05f64046c7af2f8394fb9fe385da559e·2556228·debug·optional·rustfmt-dbgsym_1.84.0+dfsg1-1_i386.deb
9.11 KB
cargo-doc_1.84.0+dfsg1-1_all.deb
452 B
file list
    
Offset 1, 3 lines modifiedOffset 1, 3 lines modified
1 -rw-r--r--···0········0········0········4·2025-01-16·19:46:05.000000·debian-binary1 -rw-r--r--···0········0········0········4·2025-01-16·19:46:05.000000·debian-binary
2 -rw-r--r--···0········0········0····74904·2025-01-16·19:46:05.000000·control.tar.xz2 -rw-r--r--···0········0········0····74908·2025-01-16·19:46:05.000000·control.tar.xz
3 -rw-r--r--···0········0········0··4250132·2025-01-16·19:46:05.000000·data.tar.xz3 -rw-r--r--···0········0········0··4250064·2025-01-16·19:46:05.000000·data.tar.xz
98.0 B
control.tar.xz
70.0 B
control.tar
48.0 B
./md5sums
30.0 B
./md5sums
Files differ
8.51 KB
data.tar.xz
8.49 KB
data.tar
2.23 KB
file list
    
Offset 2755, 15 lines modifiedOffset 2755, 15 lines modified
2755 -rw-r--r--···0·root·········(0)·root·········(0)····35802·2025-01-16·19:46:05.000000·./usr/share/doc/cargo/reference/crates_io/struct.Registry.html2755 -rw-r--r--···0·root·········(0)·root·········(0)····35802·2025-01-16·19:46:05.000000·./usr/share/doc/cargo/reference/crates_io/struct.Registry.html
2756 -rw-r--r--···0·root·········(0)·root·········(0)····22878·2025-01-16·19:46:05.000000·./usr/share/doc/cargo/reference/crates_io/struct.TotalCrates.html2756 -rw-r--r--···0·root·········(0)·root·········(0)····22878·2025-01-16·19:46:05.000000·./usr/share/doc/cargo/reference/crates_io/struct.TotalCrates.html
2757 -rw-r--r--···0·root·········(0)·root·········(0)····25325·2025-01-16·19:46:05.000000·./usr/share/doc/cargo/reference/crates_io/struct.User.html2757 -rw-r--r--···0·root·········(0)·root·········(0)····25325·2025-01-16·19:46:05.000000·./usr/share/doc/cargo/reference/crates_io/struct.User.html
2758 -rw-r--r--···0·root·········(0)·root·········(0)····22832·2025-01-16·19:46:05.000000·./usr/share/doc/cargo/reference/crates_io/struct.Users.html2758 -rw-r--r--···0·root·········(0)·root·········(0)····22832·2025-01-16·19:46:05.000000·./usr/share/doc/cargo/reference/crates_io/struct.Users.html
2759 -rw-r--r--···0·root·········(0)·root·········(0)····21821·2025-01-16·19:46:05.000000·./usr/share/doc/cargo/reference/crates_io/struct.Warnings.html2759 -rw-r--r--···0·root·········(0)·root·········(0)····21821·2025-01-16·19:46:05.000000·./usr/share/doc/cargo/reference/crates_io/struct.Warnings.html
2760 -rw-r--r--···0·root·········(0)·root·········(0)·····4852·2025-01-16·19:46:05.000000·./usr/share/doc/cargo/reference/crates_io/type.Result.html2760 -rw-r--r--···0·root·········(0)·root·········(0)·····4852·2025-01-16·19:46:05.000000·./usr/share/doc/cargo/reference/crates_io/type.Result.html
2761 -rw-r--r--···0·root·········(0)·root·········(0)·····2863·2025-01-16·19:46:05.000000·./usr/share/doc/cargo/reference/help.html2761 -rw-r--r--···0·root·········(0)·root·········(0)·····2863·2025-01-16·19:46:05.000000·./usr/share/doc/cargo/reference/help.html
2762 -rw-r--r--···0·root·········(0)·root·········(0)·····3141·2025-01-16·19:46:05.000000·./usr/share/doc/cargo/reference/index.html2762 -rw-r--r--···0·root·········(0)·root·········(0)·····3145·2025-01-16·19:46:05.000000·./usr/share/doc/cargo/reference/index.html
2763 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2025-01-16·19:46:05.000000·./usr/share/doc/cargo/reference/mdman/2763 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2025-01-16·19:46:05.000000·./usr/share/doc/cargo/reference/mdman/
2764 -rw-r--r--···0·root·········(0)·root·········(0)·····5237·2025-01-16·19:46:05.000000·./usr/share/doc/cargo/reference/mdman/all.html2764 -rw-r--r--···0·root·········(0)·root·········(0)·····5237·2025-01-16·19:46:05.000000·./usr/share/doc/cargo/reference/mdman/all.html
2765 -rw-r--r--···0·root·········(0)·root·········(0)····28689·2025-01-16·19:46:05.000000·./usr/share/doc/cargo/reference/mdman/enum.Format.html2765 -rw-r--r--···0·root·········(0)·root·········(0)····28689·2025-01-16·19:46:05.000000·./usr/share/doc/cargo/reference/mdman/enum.Format.html
2766 -rw-r--r--···0·root·········(0)·root·········(0)·····4059·2025-01-16·19:46:05.000000·./usr/share/doc/cargo/reference/mdman/fn.convert.html2766 -rw-r--r--···0·root·········(0)·root·········(0)·····4059·2025-01-16·19:46:05.000000·./usr/share/doc/cargo/reference/mdman/fn.convert.html
2767 -rw-r--r--···0·root·········(0)·root·········(0)·····3287·2025-01-16·19:46:05.000000·./usr/share/doc/cargo/reference/mdman/fn.extract_section.html2767 -rw-r--r--···0·root·········(0)·root·········(0)·····3287·2025-01-16·19:46:05.000000·./usr/share/doc/cargo/reference/mdman/fn.extract_section.html
2768 -rw-r--r--···0·root·········(0)·root·········(0)·····3095·2025-01-16·19:46:05.000000·./usr/share/doc/cargo/reference/mdman/fn.join_url.html2768 -rw-r--r--···0·root·········(0)·root·········(0)·····3095·2025-01-16·19:46:05.000000·./usr/share/doc/cargo/reference/mdman/fn.join_url.html
2769 -rw-r--r--···0·root·········(0)·root·········(0)·····3931·2025-01-16·19:46:05.000000·./usr/share/doc/cargo/reference/mdman/fn.md_parser.html2769 -rw-r--r--···0·root·········(0)·root·········(0)·····3931·2025-01-16·19:46:05.000000·./usr/share/doc/cargo/reference/mdman/fn.md_parser.html
6.24 KB
./usr/share/doc/cargo/reference/index.html
    
Offset 1, 2 lines modifiedOffset 1, 2 lines modified
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·crates"><title>Index·of·crates</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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="./"·data-static-root-path="./static.files/"·data-current-crate="cargo_util"·data-themes=""·data-resource-suffix=""·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·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><a·class="logo-container"·href="./index.html"><img·class="rust-logo"·src="./static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="./index.html"><img·class="rust-logo"·src="./static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="./index.html">Rustdoc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)</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·crates</h1><ul·class="all-items"><li><a·href="cargo/index.html">cargo</a></li><li><a·href="cargo_credential/index.html">cargo_credential</a></li><li><a·href="cargo_platform/index.html">cargo_platform</a></li><li><a·href="cargo_test_macro/index.html">cargo_test_macro</a></li><li><a·href="cargo_test_support/index.html">cargo_test_support</a></li><li><a·href="cargo_util/index.html">cargo_util</a></li><li><a·href="cargo_util_schemas/index.html">cargo_util_schemas</a></li><li><a·href="crates_io/index.html">crates_io</a></li><li><a·href="mdman/index.html">mdman</a></li><li><a·href="rustfix/index.html">rustfix</a></li></ul></section></div></main></body></html>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·crates"><title>Index·of·crates</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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="./"·data-static-root-path="./static.files/"·data-current-crate="cargo_platform"·data-themes=""·data-resource-suffix=""·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·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><a·class="logo-container"·href="./index.html"><img·class="rust-logo"·src="./static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="./index.html"><img·class="rust-logo"·src="./static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="./index.html">Rustdoc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)</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·crates</h1><ul·class="all-items"><li><a·href="cargo/index.html">cargo</a></li><li><a·href="cargo_credential/index.html">cargo_credential</a></li><li><a·href="cargo_platform/index.html">cargo_platform</a></li><li><a·href="cargo_test_macro/index.html">cargo_test_macro</a></li><li><a·href="cargo_test_support/index.html">cargo_test_support</a></li><li><a·href="cargo_util/index.html">cargo_util</a></li><li><a·href="cargo_util_schemas/index.html">cargo_util_schemas</a></li><li><a·href="crates_io/index.html">crates_io</a></li><li><a·href="mdman/index.html">mdman</a></li><li><a·href="rustfix/index.html">rustfix</a></li></ul></section></div></main></body></html>
2 <!--{"start":2440,"fragment_lengths":[45,67,63,67,71,55,71,53,45,49]}-->2 <!--{"start":2444,"fragment_lengths":[45,67,63,67,71,55,71,53,45,49]}-->
427 KB
libstd-rust-dev-windows_1.84.0+dfsg1-1_i386.deb
452 B
file list
    
Offset 1, 3 lines modifiedOffset 1, 3 lines modified
1 -rw-r--r--···0········0········0········4·2025-01-16·19:46:05.000000·debian-binary1 -rw-r--r--···0········0········0········4·2025-01-16·19:46:05.000000·debian-binary
2 -rw-r--r--···0········0········0·····2288·2025-01-16·19:46:05.000000·control.tar.xz2 -rw-r--r--···0········0········0·····2284·2025-01-16·19:46:05.000000·control.tar.xz
3 -rw-r--r--···0········0········0·43654580·2025-01-16·19:46:05.000000·data.tar.xz3 -rw-r--r--···0········0········0·43654920·2025-01-16·19:46:05.000000·data.tar.xz
98.0 B
control.tar.xz
70.0 B
control.tar
48.0 B
./md5sums
30.0 B
./md5sums
Files differ
427 KB
data.tar.xz
427 KB
data.tar
13.4 KB
./usr/lib/rustlib/i686-pc-windows-gnu/lib/libstd-76b0e90875c26d08.rlib
5.27 KB
nm -s {}
Max HTML report size reached
825 B
bcryptprimitives.dllt.o
    
Offset 30, 10 lines modifiedOffset 30, 10 lines modified
000001d0:·0000·0000·0000·0000·2e69·6461·7461·2435··.........idata$5000001d0:·0000·0000·0000·0000·2e69·6461·7461·2435··.........idata$5
000001e0:·0000·0000·0500·0000·0301·0400·0000·0000··................000001e0:·0000·0000·0500·0000·0301·0400·0000·0000··................
000001f0:·0000·0000·0000·0000·0000·0000·2e69·6461··.............ida000001f0:·0000·0000·0000·0000·0000·0000·2e69·6461··.............ida
00000200:·7461·2437·0000·0000·0600·0000·0301·1500··ta$7............00000200:·7461·2437·0000·0000·0600·0000·0301·1500··ta$7............
00000210:·0000·0000·0000·0000·0000·0000·0000·0000··................00000210:·0000·0000·0000·0000·0000·0000·0000·0000··................
00000220:·0000·0000·0400·0000·0000·0000·0600·0000··................00000220:·0000·0000·0400·0000·0000·0000·0600·0000··................
00000230:·0200·3e00·0000·5f5f·5f74·6d70·5f72·7573··..>...___tmp_rus00000230:·0200·3e00·0000·5f5f·5f74·6d70·5f72·7573··..>...___tmp_rus
00000240:·7463·696c·3578·5446·5f62·6372·7970·7470··tcil5xTF_bcryptp00000240:·7463·6153·4577·6354·5f62·6372·7970·7470··tcaSEwcT_bcryptp
00000250:·7269·6d69·7469·7665·735f·646c·6c5f·696d··rimitives_dll_im00000250:·7269·6d69·7469·7665·735f·646c·6c5f·696d··rimitives_dll_im
00000260:·706f·7274·735f·6c69·625f·696e·616d·6500··ports_lib_iname.00000260:·706f·7274·735f·6c69·625f·696e·616d·6500··ports_lib_iname.
1.21 KB
bcryptprimitives.dllh.o
Max HTML report size reached
963 B
bcryptprimitives.dlls00000.o
    
Offset 31, 11 lines modifiedOffset 31, 11 lines modified
000001e0:·0000·0300·2e69·6461·7461·2436·0000·0000··.....idata$6....000001e0:·0000·0300·2e69·6461·7461·2436·0000·0000··.....idata$6....
000001f0:·0700·0000·0300·0000·0000·0400·0000·0000··................000001f0:·0700·0000·0300·0000·0000·0400·0000·0000··................
00000200:·0000·0100·0000·0200·0000·0000·1000·0000··................00000200:·0000·0100·0000·0200·0000·0000·1000·0000··................
00000210:·0000·0000·0500·0000·0200·0000·0000·2200··..............".00000210:·0000·0000·0500·0000·0200·0000·0000·2200··..............".
00000220:·0000·0000·0000·0000·0000·0200·5a00·0000··............Z...00000220:·0000·0000·0000·0000·0000·0200·5a00·0000··............Z...
00000230:·5072·6f63·6573·7350·726e·6700·5f5f·696d··ProcessPrng.__im00000230:·5072·6f63·6573·7350·726e·6700·5f5f·696d··ProcessPrng.__im
00000240:·705f·5072·6f63·6573·7350·726e·6700·5f68··p_ProcessPrng._h00000240:·705f·5072·6f63·6573·7350·726e·6700·5f68··p_ProcessPrng._h
00000250:·6561·645f·5f74·6d70·5f72·7573·7463·696c··ead__tmp_rustcil00000250:·6561·645f·5f74·6d70·5f72·7573·7463·6153··ead__tmp_rustcaS
00000260:·3578·5446·5f62·6372·7970·7470·7269·6d69··5xTF_bcryptprimi00000260:·4577·6354·5f62·6372·7970·7470·7269·6d69··EwcT_bcryptprimi
00000270:·7469·7665·735f·646c·6c5f·696d·706f·7274··tives_dll_import00000270:·7469·7665·735f·646c·6c5f·696d·706f·7274··tives_dll_import
00000280:·735f·6c69·6200···························s_lib.00000280:·735f·6c69·6200···························s_lib.
1.02 KB
api-ms-win-core-synch-l1-2-0.dllt.o
Max HTML report size reached
1.29 KB
api-ms-win-core-synch-l1-2-0.dllh.o
Max HTML report size reached
922 B
api-ms-win-core-synch-l1-2-0.dlls00002.o
    
Offset 33, 11 lines modifiedOffset 33, 11 lines modified
00000200:·0000·0400·0000·0000·0000·0100·0000·0200··................00000200:·0000·0400·0000·0000·0000·0100·0000·0200··................
00000210:·0000·0000·1800·0000·0000·0000·0500·0000··................00000210:·0000·0000·1800·0000·0000·0000·0500·0000··................
00000220:·0200·0000·0000·3200·0000·0000·0000·0000··......2.........00000220:·0200·0000·0000·3200·0000·0000·0000·0000··......2.........
00000230:·0000·0200·7600·0000·5761·6b65·4279·4164··....v...WakeByAd00000230:·0000·0200·7600·0000·5761·6b65·4279·4164··....v...WakeByAd
00000240:·6472·6573·7353·696e·676c·6500·5f5f·696d··dressSingle.__im00000240:·6472·6573·7353·696e·676c·6500·5f5f·696d··dressSingle.__im
00000250:·705f·5761·6b65·4279·4164·6472·6573·7353··p_WakeByAddressS00000250:·705f·5761·6b65·4279·4164·6472·6573·7353··p_WakeByAddressS
00000260:·696e·676c·6500·5f68·6561·645f·5f74·6d70··ingle._head__tmp00000260:·696e·676c·6500·5f68·6561·645f·5f74·6d70··ingle._head__tmp
00000270:·5f72·7573·7463·696c·3578·5446·5f61·7069··_rustcil5xTF_api00000270:·5f72·7573·7463·6153·4577·6354·5f61·7069··_rustcaSEwcT_api
00000280:·5f6d·735f·7769·6e5f·636f·7265·5f73·796e··_ms_win_core_syn00000280:·5f6d·735f·7769·6e5f·636f·7265·5f73·796e··_ms_win_core_syn
00000290:·6368·5f6c·315f·325f·305f·646c·6c5f·696d··ch_l1_2_0_dll_im00000290:·6368·5f6c·315f·325f·305f·646c·6c5f·696d··ch_l1_2_0_dll_im
000002a0:·706f·7274·735f·6c69·6200·················ports_lib.000002a0:·706f·7274·735f·6c69·6200·················ports_lib.
997 B
api-ms-win-core-synch-l1-2-0.dlls00001.o
Max HTML report size reached
918 B
api-ms-win-core-synch-l1-2-0.dlls00000.o
    
Offset 32, 11 lines modifiedOffset 32, 11 lines modified
000001f0:·0700·0000·0300·0000·0000·0400·0000·0000··................000001f0:·0700·0000·0300·0000·0000·0400·0000·0000··................
00000200:·0000·0100·0000·0200·0000·0000·1200·0000··................00000200:·0000·0100·0000·0200·0000·0000·1200·0000··................
00000210:·0000·0000·0500·0000·0200·0000·0000·2600··..............&.00000210:·0000·0000·0500·0000·0200·0000·0000·2600··..............&.
00000220:·0000·0000·0000·0000·0000·0200·6a00·0000··............j...00000220:·0000·0000·0000·0000·0000·0200·6a00·0000··............j...
00000230:·5761·6974·4f6e·4164·6472·6573·7300·5f5f··WaitOnAddress.__00000230:·5761·6974·4f6e·4164·6472·6573·7300·5f5f··WaitOnAddress.__
00000240:·696d·705f·5761·6974·4f6e·4164·6472·6573··imp_WaitOnAddres00000240:·696d·705f·5761·6974·4f6e·4164·6472·6573··imp_WaitOnAddres
00000250:·7300·5f68·6561·645f·5f74·6d70·5f72·7573··s._head__tmp_rus00000250:·7300·5f68·6561·645f·5f74·6d70·5f72·7573··s._head__tmp_rus
00000260:·7463·696c·3578·5446·5f61·7069·5f6d·735f··tcil5xTF_api_ms_00000260:·7463·6153·4577·6354·5f61·7069·5f6d·735f··tcaSEwcT_api_ms_
00000270:·7769·6e5f·636f·7265·5f73·796e·6368·5f6c··win_core_synch_l00000270:·7769·6e5f·636f·7265·5f73·796e·6368·5f6c··win_core_synch_l
00000280:·315f·325f·305f·646c·6c5f·696d·706f·7274··1_2_0_dll_import00000280:·315f·325f·305f·646c·6c5f·696d·706f·7274··1_2_0_dll_import
00000290:·735f·6c69·6200···························s_lib.00000290:·735f·6c69·6200···························s_lib.
413 KB
./usr/lib/rustlib/i686-pc-windows-gnu/lib/std-76b0e90875c26d08.dll
Max HTML report size reached
43.4 MB
rust-doc_1.84.0+dfsg1-1_all.deb
452 B
file list
    
Offset 1, 3 lines modifiedOffset 1, 3 lines modified
1 -rw-r--r--···0········0········0········4·2025-01-16·19:46:05.000000·debian-binary1 -rw-r--r--···0········0········0········4·2025-01-16·19:46:05.000000·debian-binary
2 -rw-r--r--···0········0········0···944752·2025-01-16·19:46:05.000000·control.tar.xz2 -rw-r--r--···0········0········0···944896·2025-01-16·19:46:05.000000·control.tar.xz
3 -rw-r--r--···0········0········0·21400864·2025-01-16·19:46:05.000000·data.tar.xz3 -rw-r--r--···0········0········0·21623380·2025-01-16·19:46:05.000000·data.tar.xz
664 B
control.tar.xz
636 B
control.tar
566 B
./control
    
Offset 1, 13 lines modifiedOffset 1, 13 lines modified
1 Package:·rust-doc1 Package:·rust-doc
2 Source:·rustc2 Source:·rustc
3 Version:·1.84.0+dfsg1-13 Version:·1.84.0+dfsg1-1
4 Architecture:·all4 Architecture:·all
5 Maintainer:·Debian·Rust·Maintainers·<pkg-rust-maintainers@alioth-lists.debian.net>5 Maintainer:·Debian·Rust·Maintainers·<pkg-rust-maintainers@alioth-lists.debian.net>
6 Installed-Size:·5195656 Installed-Size:·517304
7 Depends:·libjs-jquery,·libjs-highlight.js,·libjs-mathjax,·fonts-open-sans,·fonts-font-awesome7 Depends:·libjs-jquery,·libjs-highlight.js,·libjs-mathjax,·fonts-open-sans,·fonts-font-awesome
8 Recommends:·cargo-doc8 Recommends:·cargo-doc
9 Section:·doc9 Section:·doc
10 Priority:·optional10 Priority:·optional
11 Homepage:·http://www.rust-lang.org/11 Homepage:·http://www.rust-lang.org/
12 Description:·Rust·systems·programming·language·-·Documentation12 Description:·Rust·systems·programming·language·-·Documentation
13 ·Rust·is·a·curly-brace,·block-structured·expression·language.··It13 ·Rust·is·a·curly-brace,·block-structured·expression·language.··It
48.0 B
./md5sums
30.0 B
./md5sums
Files differ
43.4 MB
data.tar.xz
43.4 MB
data.tar
148 KB
file list
    
Offset 6, 53 lines modifiedOffset 6, 53 lines modified
6 -rw-r--r--···0·root·········(0)·root·········(0)·····9383·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/changelog.Debian.gz6 -rw-r--r--···0·root·········(0)·root·········(0)·····9383·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/changelog.Debian.gz
7 -rw-r--r--···0·root·········(0)·root·········(0)···198090·2025-01-07·01:26:09.000000·./usr/share/doc/rust-doc/changelog.gz7 -rw-r--r--···0·root·········(0)·root·········(0)···198090·2025-01-07·01:26:09.000000·./usr/share/doc/rust-doc/changelog.gz
8 -rw-r--r--···0·root·········(0)·root·········(0)···144664·2025-01-16·19:43:36.000000·./usr/share/doc/rust-doc/copyright8 -rw-r--r--···0·root·········(0)·root·········(0)···144664·2025-01-16·19:43:36.000000·./usr/share/doc/rust-doc/copyright
9 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/9 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/
10 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/10 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/
11 -rw-r--r--···0·root·········(0)·root·········(0)····19195·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/all.html11 -rw-r--r--···0·root·········(0)·root·········(0)····19195·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/all.html
12 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/alloc/12 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/alloc/
13 -rw-r--r--···0·root·········(0)·root·········(0)·····6336·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/alloc/fn.alloc.html13 -rw-r--r--···0·root·········(0)·root·········(0)·····6282·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/alloc/fn.alloc.html
14 -rw-r--r--···0·root·········(0)·root·········(0)·····6307·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/alloc/fn.alloc_zeroed.html14 -rw-r--r--···0·root·········(0)·root·········(0)·····6253·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/alloc/fn.alloc_zeroed.html
15 -rw-r--r--···0·root·········(0)·root·········(0)·····4841·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/alloc/fn.dealloc.html15 -rw-r--r--···0·root·········(0)·root·········(0)·····4787·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/alloc/fn.dealloc.html
16 -rw-r--r--···0·root·········(0)·root·········(0)·····5331·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/alloc/fn.handle_alloc_error.html16 -rw-r--r--···0·root·········(0)·root·········(0)·····5250·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/alloc/fn.handle_alloc_error.html
17 -rw-r--r--···0·root·········(0)·root·········(0)·····5140·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/alloc/fn.realloc.html17 -rw-r--r--···0·root·········(0)·root·········(0)·····5005·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/alloc/fn.realloc.html
18 -rw-r--r--···0·root·········(0)·root·········(0)·····7634·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/alloc/index.html18 -rw-r--r--···0·root·········(0)·root·········(0)·····7634·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/alloc/index.html
19 -rw-r--r--···0·root·········(0)·root·········(0)······209·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/alloc/sidebar-items1.84.0.js19 -rw-r--r--···0·root·········(0)·root·········(0)······209·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/alloc/sidebar-items1.84.0.js
20 -rw-r--r--···0·root·········(0)·root·········(0)····39827·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/alloc/struct.AllocError.html20 -rw-r--r--···0·root·········(0)·root·········(0)····36695·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/alloc/struct.AllocError.html
21 -rw-r--r--···0·root·········(0)·root·········(0)····41507·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/alloc/struct.Global.html21 -rw-r--r--···0·root·········(0)·root·········(0)····38726·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/alloc/struct.Global.html
22 -rw-r--r--···0·root·········(0)·root·········(0)····64667·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/alloc/struct.Layout.html22 -rw-r--r--···0·root·········(0)·root·········(0)····60563·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/alloc/struct.Layout.html
23 -rw-r--r--···0·root·········(0)·root·········(0)····41692·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/alloc/struct.LayoutError.html23 -rw-r--r--···0·root·········(0)·root·········(0)····38560·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/alloc/struct.LayoutError.html
24 -rw-r--r--···0·root·········(0)·root·········(0)····35443·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/alloc/trait.Allocator.html24 -rw-r--r--···0·root·········(0)·root·········(0)····33769·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/alloc/trait.Allocator.html
25 -rw-r--r--···0·root·········(0)·root·········(0)····24720·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/alloc/trait.GlobalAlloc.html25 -rw-r--r--···0·root·········(0)·root·········(0)····23991·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/alloc/trait.GlobalAlloc.html
26 -rw-r--r--···0·root·········(0)·root·········(0)·····4059·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/alloc/type.LayoutErr.html26 -rw-r--r--···0·root·········(0)·root·········(0)·····4032·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/alloc/type.LayoutErr.html
27 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/borrow/27 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/borrow/
28 -rw-r--r--···0·root·········(0)·root·········(0)···189321·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/borrow/enum.Cow.html28 -rw-r--r--···0·root·········(0)·root·········(0)···176550·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/borrow/enum.Cow.html
29 -rw-r--r--···0·root·········(0)·root·········(0)·····4648·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/borrow/index.html29 -rw-r--r--···0·root·········(0)·root·········(0)·····4648·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/borrow/index.html
30 -rw-r--r--···0·root·········(0)·root·········(0)·······81·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/borrow/sidebar-items1.84.0.js30 -rw-r--r--···0·root·········(0)·root·········(0)·······81·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/borrow/sidebar-items1.84.0.js
31 -rw-r--r--···0·root·········(0)·root·········(0)····24797·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/borrow/trait.Borrow.html31 -rw-r--r--···0·root·········(0)·root·········(0)····24068·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/borrow/trait.Borrow.html
32 -rw-r--r--···0·root·········(0)·root·········(0)····11264·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/borrow/trait.BorrowMut.html32 -rw-r--r--···0·root·········(0)·root·········(0)····10805·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/borrow/trait.BorrowMut.html
33 -rw-r--r--···0·root·········(0)·root·········(0)····14421·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/borrow/trait.ToOwned.html33 -rw-r--r--···0·root·········(0)·root·········(0)····14259·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/borrow/trait.ToOwned.html
34 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/boxed/34 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/boxed/
35 -rw-r--r--···0·root·········(0)·root·········(0)····18419·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/boxed/index.html35 -rw-r--r--···0·root·········(0)·root·········(0)····18338·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/boxed/index.html
36 -rw-r--r--···0·root·········(0)·root·········(0)·······52·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/boxed/sidebar-items1.84.0.js36 -rw-r--r--···0·root·········(0)·root·········(0)·······52·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/boxed/sidebar-items1.84.0.js
37 -rw-r--r--···0·root·········(0)·root·········(0)···592324·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/boxed/struct.Box.html37 -rw-r--r--···0·root·········(0)·root·········(0)···549178·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/boxed/struct.Box.html
38 -rw-r--r--···0·root·········(0)·root·········(0)····46676·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/boxed/struct.ThinBox.html38 -rw-r--r--···0·root·········(0)·root·········(0)····43598·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/boxed/struct.ThinBox.html
39 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/boxed/thin/39 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/boxed/thin/
40 -rw-r--r--···0·root·········(0)·root·········(0)······432·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/boxed/thin/struct.ThinBox.html40 -rw-r--r--···0·root·········(0)·root·········(0)······432·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/boxed/thin/struct.ThinBox.html
41 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/41 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/
42 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/binary_heap/42 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/binary_heap/
43 -rw-r--r--···0·root·········(0)·root·········(0)····19432·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/binary_heap/index.html43 -rw-r--r--···0·root·········(0)·root·········(0)····19432·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/binary_heap/index.html
44 -rw-r--r--···0·root·········(0)·root·········(0)······116·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/binary_heap/sidebar-items1.84.0.js44 -rw-r--r--···0·root·········(0)·root·········(0)······116·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/binary_heap/sidebar-items1.84.0.js
45 -rw-r--r--···0·root·········(0)·root·········(0)···132109·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/binary_heap/struct.BinaryHeap.html45 -rw-r--r--···0·root·········(0)·root·········(0)···127837·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/binary_heap/struct.BinaryHeap.html
46 -rw-r--r--···0·root·········(0)·root·········(0)···180511·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/binary_heap/struct.Drain.html46 -rw-r--r--···0·root·········(0)·root·········(0)···161551·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/binary_heap/struct.Drain.html
47 -rw-r--r--···0·root·········(0)·root·········(0)···168173·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/binary_heap/struct.DrainSorted.html47 -rw-r--r--···0·root·········(0)·root·········(0)···150605·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/binary_heap/struct.DrainSorted.html
48 -rw-r--r--···0·root·········(0)·root·········(0)···192413·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/binary_heap/struct.IntoIter.html48 -rw-r--r--···0·root·········(0)·root·········(0)···172661·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/binary_heap/struct.IntoIter.html
49 -rw-r--r--···0·root·········(0)·root·········(0)···175940·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/binary_heap/struct.IntoIterSorted.html49 -rw-r--r--···0·root·········(0)·root·········(0)···157748·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/binary_heap/struct.IntoIterSorted.html
50 -rw-r--r--···0·root·········(0)·root·········(0)···186656·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/binary_heap/struct.Iter.html50 -rw-r--r--···0·root·········(0)·root·········(0)···167216·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/binary_heap/struct.Iter.html
51 -rw-r--r--···0·root·········(0)·root·········(0)····33014·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/binary_heap/struct.PeekMut.html51 -rw-r--r--···0·root·········(0)·root·········(0)····31022·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/binary_heap/struct.PeekMut.html
52 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree/52 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree/
53 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree/map/53 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree/map/
54 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree/map/entry/54 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree/map/entry/
55 -rw-r--r--···0·root·········(0)·root·········(0)······504·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree/map/entry/enum.Entry.html55 -rw-r--r--···0·root·········(0)·root·········(0)······504·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree/map/entry/enum.Entry.html
56 -rw-r--r--···0·root·········(0)·root·········(0)······544·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree/map/entry/struct.OccupiedEntry.html56 -rw-r--r--···0·root·········(0)·root·········(0)······544·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree/map/entry/struct.OccupiedEntry.html
57 -rw-r--r--···0·root·········(0)·root·········(0)······544·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree/map/entry/struct.OccupiedError.html57 -rw-r--r--···0·root·········(0)·root·········(0)······544·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree/map/entry/struct.OccupiedError.html
58 -rw-r--r--···0·root·········(0)·root·········(0)······536·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree/map/entry/struct.VacantEntry.html58 -rw-r--r--···0·root·········(0)·root·········(0)······536·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree/map/entry/struct.VacantEntry.html
Offset 82, 264 lines modifiedOffset 82, 264 lines modified
82 -rw-r--r--···0·root·········(0)·root·········(0)······528·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree/set/struct.Intersection.html82 -rw-r--r--···0·root·········(0)·root·········(0)······528·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree/set/struct.Intersection.html
83 -rw-r--r--···0·root·········(0)·root·········(0)······512·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree/set/struct.IntoIter.html83 -rw-r--r--···0·root·········(0)·root·········(0)······512·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree/set/struct.IntoIter.html
84 -rw-r--r--···0·root·········(0)·root·········(0)······496·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree/set/struct.Iter.html84 -rw-r--r--···0·root·········(0)·root·········(0)······496·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree/set/struct.Iter.html
85 -rw-r--r--···0·root·········(0)·root·········(0)······500·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree/set/struct.Range.html85 -rw-r--r--···0·root·········(0)·root·········(0)······500·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree/set/struct.Range.html
86 -rw-r--r--···0·root·········(0)·root·········(0)······556·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree/set/struct.SymmetricDifference.html86 -rw-r--r--···0·root·········(0)·root·········(0)······556·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree/set/struct.SymmetricDifference.html
87 -rw-r--r--···0·root·········(0)·root·········(0)······500·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree/set/struct.Union.html87 -rw-r--r--···0·root·········(0)·root·········(0)······500·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree/set/struct.Union.html
88 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_map/88 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_map/
89 -rw-r--r--···0·root·········(0)·root·········(0)····40705·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_map/enum.Entry.html89 -rw-r--r--···0·root·········(0)·root·········(0)····38665·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_map/enum.Entry.html
90 -rw-r--r--···0·root·········(0)·root·········(0)····10268·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_map/index.html90 -rw-r--r--···0·root·········(0)·root·········(0)····10268·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_map/index.html
91 -rw-r--r--···0·root·········(0)·root·········(0)······277·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_map/sidebar-items1.84.0.js91 -rw-r--r--···0·root·········(0)·root·········(0)······277·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_map/sidebar-items1.84.0.js
92 -rw-r--r--···0·root·········(0)·root·········(0)···222215·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_map/struct.BTreeMap.html92 -rw-r--r--···0·root·········(0)·root·········(0)···212207·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_map/struct.BTreeMap.html
93 -rw-r--r--···0·root·········(0)·root·········(0)····35864·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_map/struct.Cursor.html93 -rw-r--r--···0·root·········(0)·root·········(0)····33704·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_map/struct.Cursor.html
94 -rw-r--r--···0·root·········(0)·root·········(0)····42235·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_map/struct.CursorMut.html 
95 -rw-r--r--···0·root·········(0)·root·········(0)····41514·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_map/struct.CursorMutKey.html94 -rw-r--r--···0·root·········(0)·root·········(0)····40147·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_map/struct.CursorMut.html
 95 -rw-r--r--···0·root·········(0)·root·········(0)····39426·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_map/struct.CursorMutKey.html
96 -rw-r--r--···0·root·········(0)·root·········(0)···163901·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_map/struct.ExtractIf.html96 -rw-r--r--···0·root·········(0)·root·········(0)···146117·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_map/struct.ExtractIf.html
97 -rw-r--r--···0·root·········(0)·root·········(0)···185291·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_map/struct.IntoIter.html97 -rw-r--r--···0·root·········(0)·root·········(0)···165755·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_map/struct.IntoIter.html
98 -rw-r--r--···0·root·········(0)·root·········(0)···181117·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_map/struct.IntoKeys.html98 -rw-r--r--···0·root·········(0)·root·········(0)···162061·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_map/struct.IntoKeys.html
99 -rw-r--r--···0·root·········(0)·root·········(0)···182617·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_map/struct.IntoValues.html99 -rw-r--r--···0·root·········(0)·root·········(0)···163369·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_map/struct.IntoValues.html
100 -rw-r--r--···0·root·········(0)·root·········(0)···187423·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_map/struct.Iter.html 
101 -rw-r--r--···0·root·········(0)·root·········(0)···179614·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_map/struct.IterMut.html100 -rw-r--r--···0·root·········(0)·root·········(0)···167791·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_map/struct.Iter.html
 101 -rw-r--r--···0·root·········(0)·root·········(0)···160558·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_map/struct.IterMut.html
102 -rw-r--r--···0·root·········(0)·root·········(0)···186427·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_map/struct.Keys.html102 -rw-r--r--···0·root·········(0)·root·········(0)···166987·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_map/struct.Keys.html
103 -rw-r--r--···0·root·········(0)·root·········(0)····41372·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_map/struct.OccupiedEntry.html103 -rw-r--r--···0·root·········(0)·root·········(0)····39572·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_map/struct.OccupiedEntry.html
104 -rw-r--r--···0·root·········(0)·root·········(0)····35583·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_map/struct.OccupiedError.html104 -rw-r--r--···0·root·········(0)·root·········(0)····33399·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_map/struct.OccupiedError.html
105 -rw-r--r--···0·root·········(0)·root·········(0)···182756·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_map/struct.Range.html105 -rw-r--r--···0·root·········(0)·root·········(0)···163556·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_map/struct.Range.html
106 -rw-r--r--···0·root·········(0)·root·········(0)···174942·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_map/struct.RangeMut.html106 -rw-r--r--···0·root·········(0)·root·········(0)···156318·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_map/struct.RangeMut.html
107 -rw-r--r--···0·root·········(0)·root·········(0)····40051·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_map/struct.UnorderedKeyError.html107 -rw-r--r--···0·root·········(0)·root·········(0)····37699·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_map/struct.UnorderedKeyError.html
108 -rw-r--r--···0·root·········(0)·root·········(0)····31255·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_map/struct.VacantEntry.html108 -rw-r--r--···0·root·········(0)·root·········(0)····29479·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_map/struct.VacantEntry.html
109 -rw-r--r--···0·root·········(0)·root·········(0)···187527·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_map/struct.Values.html109 -rw-r--r--···0·root·········(0)·root·········(0)···167991·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_map/struct.Values.html
110 -rw-r--r--···0·root·········(0)·root·········(0)···179721·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_map/struct.ValuesMut.html110 -rw-r--r--···0·root·········(0)·root·········(0)···160761·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_map/struct.ValuesMut.html
111 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_set/111 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_set/
112 -rw-r--r--···0·root·········(0)·root·········(0)·····7943·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_set/index.html112 -rw-r--r--···0·root·········(0)·root·········(0)·····7943·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_set/index.html
113 -rw-r--r--···0·root·········(0)·root·········(0)······199·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_set/sidebar-items1.84.0.js113 -rw-r--r--···0·root·········(0)·root·········(0)······199·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_set/sidebar-items1.84.0.js
114 -rw-r--r--···0·root·········(0)·root·········(0)···191286·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_set/struct.BTreeSet.html114 -rw-r--r--···0·root·········(0)·root·········(0)···182694·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_set/struct.BTreeSet.html
115 -rw-r--r--···0·root·········(0)·root·········(0)····34714·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_set/struct.Cursor.html115 -rw-r--r--···0·root·········(0)·root·········(0)····32722·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_set/struct.Cursor.html
116 -rw-r--r--···0·root·········(0)·root·········(0)····40799·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_set/struct.CursorMut.html116 -rw-r--r--···0·root·········(0)·root·········(0)····38927·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_set/struct.CursorMut.html
117 -rw-r--r--···0·root·········(0)·root·········(0)····40080·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_set/struct.CursorMutKey.html117 -rw-r--r--···0·root·········(0)·root·········(0)····38208·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_set/struct.CursorMutKey.html
118 -rw-r--r--···0·root·········(0)·root·········(0)···168865·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_set/struct.Difference.html118 -rw-r--r--···0·root·········(0)·root·········(0)···151105·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_set/struct.Difference.html
119 -rw-r--r--···0·root·········(0)·root·········(0)···163117·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_set/struct.ExtractIf.html119 -rw-r--r--···0·root·········(0)·root·········(0)···145501·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_set/struct.ExtractIf.html
120 -rw-r--r--···0·root·········(0)·root·········(0)···169003·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_set/struct.Intersection.html120 -rw-r--r--···0·root·········(0)·root·········(0)···151243·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_set/struct.Intersection.html
121 -rw-r--r--···0·root·········(0)·root·········(0)···182419·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_set/struct.IntoIter.html121 -rw-r--r--···0·root·········(0)·root·········(0)···163171·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_set/struct.IntoIter.html
122 -rw-r--r--···0·root·········(0)·root·········(0)···185587·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_set/struct.Iter.html122 -rw-r--r--···0·root·········(0)·root·········(0)···166243·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_set/struct.Iter.html
123 -rw-r--r--···0·root·········(0)·root·········(0)···180960·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_set/struct.Range.html123 -rw-r--r--···0·root·········(0)·root·········(0)···162048·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_set/struct.Range.html
124 -rw-r--r--···0·root·········(0)·root·········(0)···167392·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_set/struct.SymmetricDifference.html124 -rw-r--r--···0·root·········(0)·root·········(0)···149848·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_set/struct.SymmetricDifference.html
125 -rw-r--r--···0·root·········(0)·root·········(0)···166416·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_set/struct.Union.html125 -rw-r--r--···0·root·········(0)·root·········(0)···148872·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_set/struct.Union.html
126 -rw-r--r--···0·root·········(0)·root·········(0)····40272·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_set/struct.UnorderedKeyError.html126 -rw-r--r--···0·root·········(0)·root·········(0)····37920·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_set/struct.UnorderedKeyError.html
127 -rw-r--r--···0·root·········(0)·root·········(0)····37176·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/enum.TryReserveErrorKind.html127 -rw-r--r--···0·root·········(0)·root·········(0)····34935·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/enum.TryReserveErrorKind.html
128 -rw-r--r--···0·root·········(0)·root·········(0)·····7035·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/index.html128 -rw-r--r--···0·root·········(0)·root·········(0)·····7035·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/index.html
129 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/linked_list/129 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/linked_list/
130 -rw-r--r--···0·root·········(0)·root·········(0)·····6235·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/linked_list/index.html130 -rw-r--r--···0·root·········(0)·root·········(0)·····6235·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/linked_list/index.html
131 -rw-r--r--···0·root·········(0)·root·········(0)······110·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/linked_list/sidebar-items1.84.0.js131 -rw-r--r--···0·root·········(0)·root·········(0)······110·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/linked_list/sidebar-items1.84.0.js
132 -rw-r--r--···0·root·········(0)·root·········(0)····41203·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/linked_list/struct.Cursor.html132 -rw-r--r--···0·root·········(0)·root·········(0)····39043·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/linked_list/struct.Cursor.html
133 -rw-r--r--···0·root·········(0)·root·········(0)····55121·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/linked_list/struct.CursorMut.html133 -rw-r--r--···0·root·········(0)·root·········(0)····53129·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/linked_list/struct.CursorMut.html
134 -rw-r--r--···0·root·········(0)·root·········(0)···160325·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/linked_list/struct.ExtractIf.html134 -rw-r--r--···0·root·········(0)·root·········(0)···143093·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/linked_list/struct.ExtractIf.html
135 -rw-r--r--···0·root·········(0)·root·········(0)···190645·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/linked_list/struct.IntoIter.html135 -rw-r--r--···0·root·········(0)·root·········(0)···170917·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/linked_list/struct.IntoIter.html
136 -rw-r--r--···0·root·········(0)·root·········(0)···186889·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/linked_list/struct.Iter.html136 -rw-r--r--···0·root·········(0)·root·········(0)···167425·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/linked_list/struct.Iter.html
137 -rw-r--r--···0·root·········(0)·root·········(0)···178774·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/linked_list/struct.IterMut.html137 -rw-r--r--···0·root·········(0)·root·········(0)···159838·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/linked_list/struct.IterMut.html
138 -rw-r--r--···0·root·········(0)·root·········(0)···136731·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/linked_list/struct.LinkedList.html138 -rw-r--r--···0·root·········(0)·root·········(0)···130851·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/linked_list/struct.LinkedList.html
139 -rw-r--r--···0·root·········(0)·root·········(0)······157·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/sidebar-items1.84.0.js139 -rw-r--r--···0·root·········(0)·root·········(0)······157·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/sidebar-items1.84.0.js
140 -rw-r--r--···0·root·········(0)·root·········(0)····42769·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/struct.TryReserveError.html140 -rw-r--r--···0·root·········(0)·root·········(0)····40015·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/struct.TryReserveError.html
141 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/vec_deque/141 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/vec_deque/
142 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/vec_deque/drain/142 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/vec_deque/drain/
143 -rw-r--r--···0·root·········(0)·root·········(0)······500·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/vec_deque/drain/struct.Drain.html143 -rw-r--r--···0·root·········(0)·root·········(0)······500·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/vec_deque/drain/struct.Drain.html
144 -rw-r--r--···0·root·········(0)·root·········(0)·····5390·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/vec_deque/index.html144 -rw-r--r--···0·root·········(0)·root·········(0)·····5390·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/vec_deque/index.html
145 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/vec_deque/into_iter/145 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/vec_deque/into_iter/
146 -rw-r--r--···0·root·········(0)·root·········(0)······512·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/vec_deque/into_iter/struct.IntoIter.html146 -rw-r--r--···0·root·········(0)·root·········(0)······512·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/vec_deque/into_iter/struct.IntoIter.html
147 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/vec_deque/iter/147 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/vec_deque/iter/
148 -rw-r--r--···0·root·········(0)·root·········(0)······496·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/vec_deque/iter/struct.Iter.html148 -rw-r--r--···0·root·········(0)·root·········(0)······496·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/vec_deque/iter/struct.Iter.html
149 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/vec_deque/iter_mut/149 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/vec_deque/iter_mut/
150 -rw-r--r--···0·root·········(0)·root·········(0)······508·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/vec_deque/iter_mut/struct.IterMut.html150 -rw-r--r--···0·root·········(0)·root·········(0)······508·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/vec_deque/iter_mut/struct.IterMut.html
151 -rw-r--r--···0·root·········(0)·root·········(0)·······83·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/vec_deque/sidebar-items1.84.0.js151 -rw-r--r--···0·root·········(0)·root·········(0)·······83·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/vec_deque/sidebar-items1.84.0.js
152 -rw-r--r--···0·root·········(0)·root·········(0)···180844·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/vec_deque/struct.Drain.html152 -rw-r--r--···0·root·········(0)·root·········(0)···161812·2025-01-16·19:46:05.000000·./usr/share/doc/rust-doc/html/alloc/collections/vec_deque/struct.Drain.html
Max diff block lines reached; 119829/151859 bytes (78.91%) of diff not shown.
8.64 KB
./usr/share/doc/rust-doc/html/alloc/alloc/fn.alloc.html
    
Offset 1, 8 lines modifiedOffset 1, 8 lines modified
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="Allocates·memory·with·the·global·allocator."><title>alloc·in·alloc::alloc·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·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"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»2025-01-07)»     (built»       from»   a»  source»    tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">alloc</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#safety"·title="Safety">Safety</a></li><li><a·href="#examples"·title="Examples">Examples</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>alloc</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">alloc</a>::<wbr><a·href="index.html">alloc</a></span><h1>Function·<span·class="fn">alloc</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../src/alloc/alloc.rs.html#93-101">Source</a>·</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="https://doc.rust-lang.org/1.84.0/core/primitive.pointer.html">*mut·</a><a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/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>Allocates·memory·with·the·global·allocator.</p>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="Allocates·memory·with·the·global·allocator."><title>alloc·in·alloc::alloc·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·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"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»2025-01-07)»     (built»       from»   a»  source»    tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">alloc</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#safety"·title="Safety">Safety</a></li><li><a·href="#examples"·title="Examples">Examples</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>alloc</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">alloc</a>::<wbr><a·href="index.html">alloc</a></span><h1>Function·<span·class="fn">alloc</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../src/alloc/alloc.rs.html#93-101">Source</a>·</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>Allocates·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>·method2 <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>·attribute3 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>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>·method5 <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>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·class="doc-anchor"·href="#safety">§</a>Safety</h2>7 <h2·id="safety"><a·class="doc-anchor"·href="#safety">§</a>Safety</h2>
8 <p>See·<a·href="trait.GlobalAlloc.html#tymethod.alloc"·title="method·alloc::alloc::GlobalAlloc::alloc"><code>GlobalAlloc::alloc</code></a>.</p>8 <p>See·<a·href="trait.GlobalAlloc.html#tymethod.alloc"·title="method·alloc::alloc::GlobalAlloc::alloc"><code>GlobalAlloc::alloc</code></a>.</p>
8.83 KB
./usr/share/doc/rust-doc/html/alloc/alloc/fn.alloc_zeroed.html
    
Offset 1, 8 lines modifiedOffset 1, 8 lines modified
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="Allocates·zero-initialized·memory·with·the·global·allocator."><title>alloc_zeroed·in·alloc::alloc·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·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"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312» 2025-01-07)»      (built»from»    a»   source»     tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">alloc_<wbr>zeroed</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#safety"·title="Safety">Safety</a></li><li><a·href="#examples"·title="Examples">Examples</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>alloc</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">alloc</a>::<wbr><a·href="index.html">alloc</a></span><h1>Function·<span·class="fn">alloc_zeroed</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../src/alloc/alloc.rs.html#176-184">Source</a>·</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="https://doc.rust-lang.org/1.84.0/core/primitive.pointer.html">*mut·</a><a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/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>Allocates·zero-initialized·memory·with·the·global·allocator.</p>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="Allocates·zero-initialized·memory·with·the·global·allocator."><title>alloc_zeroed·in·alloc::alloc·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·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"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312» 2025-01-07)»      (built»from»    a»   source»     tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">alloc_<wbr>zeroed</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#safety"·title="Safety">Safety</a></li><li><a·href="#examples"·title="Examples">Examples</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>alloc</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">alloc</a>::<wbr><a·href="index.html">alloc</a></span><h1>Function·<span·class="fn">alloc_zeroed</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../src/alloc/alloc.rs.html#176-184">Source</a>·</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>Allocates·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>·method2 <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>·attribute3 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>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>·method5 <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>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·class="doc-anchor"·href="#safety">§</a>Safety</h2>7 <h2·id="safety"><a·class="doc-anchor"·href="#safety">§</a>Safety</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>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>
8.57 KB
./usr/share/doc/rust-doc/html/alloc/alloc/fn.dealloc.html
    
Offset 1, 8 lines modifiedOffset 1, 8 lines modified
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="Deallocates·memory·with·the·global·allocator."><title>dealloc·in·alloc::alloc·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·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"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»    2025-01-07)» (built»   from»       a»      source»tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">dealloc</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#safety"·title="Safety">Safety</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>alloc</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">alloc</a>::<wbr><a·href="index.html">alloc</a></span><h1>Function·<span·class="fn">dealloc</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../src/alloc/alloc.rs.html#118-120">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·unsafe·fn·dealloc(ptr:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.pointer.html">*mut·</a><a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.u8.html">u8</a>,·layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>)</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Deallocates·memory·with·the·global·allocator.</p>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="Deallocates·memory·with·the·global·allocator."><title>dealloc·in·alloc::alloc·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·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"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»    2025-01-07)» (built»   from»       a»      source»tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">dealloc</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#safety"·title="Safety">Safety</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>alloc</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">alloc</a>::<wbr><a·href="index.html">alloc</a></span><h1>Function·<span·class="fn">dealloc</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../src/alloc/alloc.rs.html#118-120">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·unsafe·fn·dealloc(ptr:·<a·class="primitive"·href="../../core/primitive.pointer.html">*mut·</a><a·class="primitive"·href="../../core/primitive.u8.html">u8</a>,·layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>)</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Deallocates·memory·with·the·global·allocator.</p>
2 <p>This·function·forwards·calls·to·the·<a·href="trait.GlobalAlloc.html#tymethod.dealloc"·title="method·alloc::alloc::GlobalAlloc::dealloc"><code>GlobalAlloc::dealloc</code></a>·method2 <p>This·function·forwards·calls·to·the·<a·href="trait.GlobalAlloc.html#tymethod.dealloc"·title="method·alloc::alloc::GlobalAlloc::dealloc"><code>GlobalAlloc::dealloc</code></a>·method
3 of·the·allocator·registered·with·the·<code>#[global_allocator]</code>·attribute3 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>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>dealloc</code>·method5 <p>This·function·is·expected·to·be·deprecated·in·favor·of·the·<code>dealloc</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>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·class="doc-anchor"·href="#safety">§</a>Safety</h2>7 <h2·id="safety"><a·class="doc-anchor"·href="#safety">§</a>Safety</h2>
8 <p>See·<a·href="trait.GlobalAlloc.html#tymethod.dealloc"·title="method·alloc::alloc::GlobalAlloc::dealloc"><code>GlobalAlloc::dealloc</code></a>.</p>8 <p>See·<a·href="trait.GlobalAlloc.html#tymethod.dealloc"·title="method·alloc::alloc::GlobalAlloc::dealloc"><code>GlobalAlloc::dealloc</code></a>.</p>
9.38 KB
./usr/share/doc/rust-doc/html/alloc/alloc/fn.handle_alloc_error.html
    
Offset 1, 22 lines modifiedOffset 1, 22 lines modified
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="Signals·a·memory·allocation·error."><title>handle_alloc_error·in·alloc::alloc·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·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"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»   2025-01-07)»(built»  from»      a»     source»       tarball)</div><div·class="sidebar-elems"><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>alloc</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">alloc</a>::<wbr><a·href="index.html">alloc</a></span><h1>Function·<span·class="fn">handle_alloc_error</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0,·const·unstable">1.36.0·(const:·<a·href="https://github.com/rust-lang/rust/issues/92523"·title="Tracking·issue·for·const_alloc_error">unstable</a>)</span>···<a·class="src"·href="../../src/alloc/alloc.rs.html#398-417">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·fn·handle_alloc_error(layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.never.html">!</a></code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Signals·a·memory·allocation·error.</p>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="Signals·a·memory·allocation·error."><title>handle_alloc_error·in·alloc::alloc·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·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"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»   2025-01-07)»(built»  from»      a»     source»       tarball)</div><div·class="sidebar-elems"><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>alloc</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">alloc</a>::<wbr><a·href="index.html">alloc</a></span><h1>Function·<span·class="fn">handle_alloc_error</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0,·const·unstable">1.36.0·(const:·<a·href="https://github.com/rust-lang/rust/issues/92523"·title="Tracking·issue·for·const_alloc_error">unstable</a>)</span>···<a·class="src"·href="../../src/alloc/alloc.rs.html#398-417">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·fn·handle_alloc_error(layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>)·-&gt;·<a·class="primitive"·href="../../core/primitive.never.html">!</a></code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Signals·a·memory·allocation·error.</p>
2 <p>Callers·of·memory·allocation·APIs·wishing·to·cease·execution2 <p>Callers·of·memory·allocation·APIs·wishing·to·cease·execution
3 in·response·to·an·allocation·error·are·encouraged·to·call·this·function,3 in·response·to·an·allocation·error·are·encouraged·to·call·this·function,
4 rather·than·directly·invoking·<a·href="https://doc.rust-lang.org/1.84.0/core/macro.panic.html"·title="macro·core::panic"><code>panic!</code></a>·or·similar.</p>4 rather·than·directly·invoking·<a·href="../../core/macro.panic.html"·title="macro·core::panic"><code>panic!</code></a>·or·similar.</p>
5 <p>This·function·is·guaranteed·to·diverge·(not·return·normally·with·a·value),·but·depending·on5 <p>This·function·is·guaranteed·to·diverge·(not·return·normally·with·a·value),·but·depending·on
6 global·configuration,·it·may·either·panic·(resulting·in·unwinding·or·aborting·as·per6 global·configuration,·it·may·either·panic·(resulting·in·unwinding·or·aborting·as·per
7 configuration·for·all·panics),·or·abort·the·process·(with·no·unwinding).</p>7 configuration·for·all·panics),·or·abort·the·process·(with·no·unwinding).</p>
8 <p>The·default·behavior·is:</p>8 <p>The·default·behavior·is:</p>
9 <ul>9 <ul>
10 <li>10 <li>
11 <p>If·the·binary·links·against·<code>std</code>·(typically·the·case),·then11 <p>If·the·binary·links·against·<code>std</code>·(typically·the·case),·then
12 print·a·message·to·standard·error·and·abort·the·process.12 print·a·message·to·standard·error·and·abort·the·process.
13 This·behavior·can·be·replaced·with·<a·href="../../std/alloc/fn.set_alloc_error_hook.html"><code>set_alloc_error_hook</code></a>·and·<a·href="../../std/alloc/fn.take_alloc_error_hook.html"><code>take_alloc_error_hook</code></a>.13 This·behavior·can·be·replaced·with·<a·href="../../std/alloc/fn.set_alloc_error_hook.html"><code>set_alloc_error_hook</code></a>·and·<a·href="../../std/alloc/fn.take_alloc_error_hook.html"><code>take_alloc_error_hook</code></a>.
14 Future·versions·of·Rust·may·panic·by·default·instead.</p>14 Future·versions·of·Rust·may·panic·by·default·instead.</p>
15 </li>15 </li>
16 <li>16 <li>
17 <p>If·the·binary·does·not·link·against·<code>std</code>·(all·of·its·crates·are·marked17 <p>If·the·binary·does·not·link·against·<code>std</code>·(all·of·its·crates·are·marked
18 <a·href="https://doc.rust-lang.org/reference/names/preludes.html#the-no_std-attribute"><code>#![no_std]</code></a>),·then·call·<a·href="https://doc.rust-lang.org/1.84.0/core/macro.panic.html"·title="macro·core::panic"><code>panic!</code></a>·with·a·message.18 <a·href="https://doc.rust-lang.org/reference/names/preludes.html#the-no_std-attribute"><code>#![no_std]</code></a>),·then·call·<a·href="../../core/macro.panic.html"·title="macro·core::panic"><code>panic!</code></a>·with·a·message.
19 <a·href="https://doc.rust-lang.org/reference/runtime.html#the-panic_handler-attribute">The·panic·handler</a>·applies·as·to·any·panic.</p>19 <a·href="https://doc.rust-lang.org/reference/runtime.html#the-panic_handler-attribute">The·panic·handler</a>·applies·as·to·any·panic.</p>
20 </li>20 </li>
21 </ul>21 </ul>
22 </div></details></section></div></main></body></html>22 </div></details></section></div></main></body></html>
9.08 KB
./usr/share/doc/rust-doc/html/alloc/alloc/fn.realloc.html
    
Offset 1, 8 lines modifiedOffset 1, 8 lines modified
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="Reallocates·memory·with·the·global·allocator."><title>realloc·in·alloc::alloc·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·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"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»    2025-01-07)» (built»   from»       a»      source»tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">realloc</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#safety"·title="Safety">Safety</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>alloc</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">alloc</a>::<wbr><a·href="index.html">alloc</a></span><h1>Function·<span·class="fn">realloc</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../src/alloc/alloc.rs.html#138-140">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·unsafe·fn·realloc(ptr:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.pointer.html">*mut·</a><a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.u8.html">u8</a>,·layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layou[·...·truncated·by·diffoscope;·len:·278,·SHA:·ee12a39e8d3305e6ad16fce99f3aa0154386aae5a11a00767ef13a69dd454326·...·]/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>Reallocates·memory·with·the·global·allocator.</p>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="Reallocates·memory·with·the·global·allocator."><title>realloc·in·alloc::alloc·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·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"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»    2025-01-07)» (built»   from»       a»      source»tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">realloc</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#safety"·title="Safety">Safety</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>alloc</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">alloc</a>::<wbr><a·href="index.html">alloc</a></span><h1>Function·<span·class="fn">realloc</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../src/alloc/alloc.rs.html#138-140">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·unsafe·fn·realloc(ptr:·<a·class="primitive"·href="../../core/primitive.pointer.html">*mut·</a><a·class="primitive"·href="../../core/primitive.u8.html">u8</a>,·layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>,·new_size:·<a·class="primitive"·href="../../core[·...·truncated·by·diffoscope;·len:·143,·SHA:·ff73809ff0f298c13e16c0d4637d79bc60dd706fce1614b8f0b634a3e4659b13·...·]/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>Reallocates·memory·with·the·global·allocator.</p>
2 <p>This·function·forwards·calls·to·the·<a·href="trait.GlobalAlloc.html#method.realloc"·title="method·alloc::alloc::GlobalAlloc::realloc"><code>GlobalAlloc::realloc</code></a>·method2 <p>This·function·forwards·calls·to·the·<a·href="trait.GlobalAlloc.html#method.realloc"·title="method·alloc::alloc::GlobalAlloc::realloc"><code>GlobalAlloc::realloc</code></a>·method
3 of·the·allocator·registered·with·the·<code>#[global_allocator]</code>·attribute3 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>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>realloc</code>·method5 <p>This·function·is·expected·to·be·deprecated·in·favor·of·the·<code>realloc</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>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·class="doc-anchor"·href="#safety">§</a>Safety</h2>7 <h2·id="safety"><a·class="doc-anchor"·href="#safety">§</a>Safety</h2>
8 <p>See·<a·href="trait.GlobalAlloc.html#method.realloc"·title="method·alloc::alloc::GlobalAlloc::realloc"><code>GlobalAlloc::realloc</code></a>.</p>8 <p>See·<a·href="trait.GlobalAlloc.html#method.realloc"·title="method·alloc::alloc::GlobalAlloc::realloc"><code>GlobalAlloc::realloc</code></a>.</p>
74.2 KB
./usr/share/doc/rust-doc/html/alloc/alloc/struct.AllocError.html
    
Offset 1, 19 lines modifiedOffset 1, 19 lines modified
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="The·`AllocError`·error·indicates·an·allocation·failure·that·may·be·due·to·resource·exhaustion·or·to·something·wrong·when·combining·the·given·input·arguments·with·this·allocator."><title>AllocError·in·alloc::alloc·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»      2025-01-07)»   (built»     from» a»source»  tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Alloc<wbr>Error</a></h2><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-AllocError"·title="Clone">Clone</a></li><li><a·href="#impl-Copy-for-AllocError"·title="Copy">Copy</a></li><li><a·href="#impl-Debug-for-AllocError"·title="Debug">Debug</a></li><li><a·href="#impl-Display-for-AllocError"·title="Display">Display</a></li><li><a·href="#impl-Eq-for-AllocError"·title="Eq">Eq</a></li><li><a·href="#impl-Error-for-AllocError"·title="Error">Error</a></li><li><a·href="#impl-PartialEq-for-AllocError"·title="PartialEq">PartialEq</a></li><li><a·href="#impl-StructuralPartialEq-for-AllocError"·title="StructuralPartialEq">StructuralPartialEq</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-AllocError"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-AllocError"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-AllocError"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-AllocError"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-AllocError"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-AllocError"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-ToString-for-T"·title="ToString">ToString</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>alloc</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">alloc</a>::<wbr><a·href="index.html">alloc</a></span><h1>Struct·<span·class="struct">AllocError</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="https://doc.rust-lang.org/1.84.0/src/core/alloc/mod.rs.html#32">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·AllocError;</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>allocator_api</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/32838">#32838</a>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>The·<code>AllocError</code>·error·indicates·an·allocation·failure1 <!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="The·`AllocError`·error·indicates·an·allocation·failure·that·may·be·due·to·resource·exhaustion·or·to·something·wrong·when·combining·the·given·input·arguments·with·this·allocator."><title>AllocError·in·alloc::alloc·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»      2025-01-07)»   (built»     from» a»source»  tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Alloc<wbr>Error</a></h2><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-AllocError"·title="Clone">Clone</a></li><li><a·href="#impl-Copy-for-AllocError"·title="Copy">Copy</a></li><li><a·href="#impl-Debug-for-AllocError"·title="Debug">Debug</a></li><li><a·href="#impl-Display-for-AllocError"·title="Display">Display</a></li><li><a·href="#impl-Eq-for-AllocError"·title="Eq">Eq</a></li><li><a·href="#impl-Error-for-AllocError"·title="Error">Error</a></li><li><a·href="#impl-PartialEq-for-AllocError"·title="PartialEq">PartialEq</a></li><li><a·href="#impl-StructuralPartialEq-for-AllocError"·title="StructuralPartialEq">StructuralPartialEq</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-AllocError"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-AllocError"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-AllocError"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-AllocError"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-AllocError"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-AllocError"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-ToString-for-T"·title="ToString">ToString</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>alloc</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">alloc</a>::<wbr><a·href="index.html">alloc</a></span><h1>Struct·<span·class="struct">AllocError</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/core/alloc/mod.rs.html#32">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·AllocError;</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>allocator_api</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/32838">#32838</a>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>The·<code>AllocError</code>·error·indicates·an·allocation·failure
2 that·may·be·due·to·resource·exhaustion·or·to2 that·may·be·due·to·resource·exhaustion·or·to
3 something·wrong·when·combining·the·given·input·arguments·with·this3 something·wrong·when·combining·the·given·input·arguments·with·this
4 allocator.</p>4 allocator.</p>
5 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-AllocError"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/alloc/mod.rs.html#31">Source</a><a·href="#impl-Clone-for-AllocError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trai[·...·truncated·by·diffoscope;·len:·11391,·SHA:·34c50b6bbaf96f61b13338c01fd61c3c870ed9352e278156ca58f4ebd683d5a0·...·]/core/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>!=</code>.·The·default·implementation·is·almost·always·sufficient,5 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-AllocError"·class="impl"><a·class="src·rightside"·href="../../src/core/alloc/mod.rs.html#31">Source</a><a·href="#impl-Clone-for-AllocError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struct"·[·...·truncated·by·diffoscope;·len:·10203,·SHA:·923343a2f6d7051d2b32da38831fc204e3a670af4c9ccaca1d5a5f06ad6d8122·...·]/core/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>!=</code>.·The·default·implementation·is·almost·always·sufficient,
6 and·should·not·be·overridden·without·very·good·reason.</div></details></div></details><section·id="impl-Copy-for-AllocError"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/alloc/mod.rs.html#31">Source</a><a·href="#impl-Copy-for-AllocError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Copy.html"·title="trait[·...·truncated·by·diffoscope;·len:·4347,·SHA:·dbe3f6ea4824c0ed8e90621e7de1c4ce126ba8d5affe618cf163cf827b3ce1ce·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where6 and·should·not·be·overridden·without·very·good·reason.</div></details></div></details><section·id="impl-Copy-for-AllocError"·class="impl"><a·class="src·rightside"·href="../../src/core/alloc/mod.rs.html#31">Source</a><a·href="#impl-Copy-for-AllocError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Copy.html"·title="trait·core::marker::Copy">Copy</a>·for·<a·class="struct"·hr[·...·truncated·by·diffoscope;·len:·3969,·SHA:·b172bbc10f8b5dedce36de3e413a1f8a4d9de9611616a4214bf36fd18f0a756b·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where
7 ····T:·'static·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method[·...·truncated·by·diffoscope;·len:·834,·SHA:·47dfc2aa0101a4103e2a94c1f971c559790d87a62d58631fd2bfed98e6616a34·...·]/src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where7 ····T:·'static·+·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·[·...·truncated·by·diffoscope;·len:·672,·SHA:·ace7a059971745d739c5abd9821e5d1d485cc233fd42150ceb251bdea1ce6bf7·...·]/src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where
8 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·[·...·truncated·by·diffoscope;·len:·737,·SHA:·9e65370662e77fc5c56c98c66a5dfda3c1d1244574dc8806ab91a8967514da78·...·]/src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.BorrowMut.html"·title="trait·alloc::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where8 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·r[·...·truncated·by·diffoscope;·len:·629,·SHA:·8e6f5d2e4a2830729c5d495459113ca6f54993696d7dc71c1f46e5691f5108ed·...·]/src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.BorrowMut.html"·title="trait·alloc::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where
9 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="met[·...·truncated·by·diffoscope;·len:·954,·SHA:·5ca69698d4bb8de1849b64ae87544dc0ec2bdd1a4d8dc75ba8d58b2c6c6a9ae6·...·]/core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where9 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="s[·...·truncated·by·diffoscope;·len:·819,·SHA:·3ca215d87d373be29774fff31d75c216034e4aa910e49de0e3fc5b88c46bc387·...·]/core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where
10 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="[·...·truncated·by·diffoscope;·len:·1883,·SHA:·e07301fb9e28f950d7450480a6b68014ffcdcc3be12b1adda27936cb1244377e·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>10 ····T:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·class[·...·truncated·by·diffoscope;·len:·1613,·SHA:·fde0dd5e9bb3fa078effcc98999e7fcc8b1aa390c8b7a3b6a3d8fd02f0c83e78·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>
11 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where11 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where
12 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="m[·...·truncated·by·diffoscope;·len:·237,·SHA:·98603c35860102b3af9b5cf27aeabf39e3c03236551986a6ec030817f108d919·...·]/core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>12 ····U:·<a·class="trait"·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class=[·...·truncated·by·diffoscope;·len:·156,·SHA:·79561c49c77b14346871935198fc061d00c9e84705db975b0451f5fb4f6af9a0·...·]/core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>
13 <p>That·is,·this·conversion·is·whatever·the·implementation·of13 <p>That·is,·this·conversion·is·whatever·the·implementation·of
14 <code><a·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>14 <code><a·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>
15 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#82-94">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where15 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#82-94">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where
16 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·t[·...·truncated·by·diffoscope;·len:·1350,·SHA:·06ff485c70db27d96df4529c9aabc3407488a0d8b3f238ea19fe87222f3c0e93·...·]/core/primitive.reference.html">&amp;mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToString-for-T"·class="impl"><a·class="src·rightside"·href="../../src/alloc/string.rs.html#2677-2691">Source</a><a·href="#impl-ToString-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../string/trait.ToString.html"·title="trait·alloc::string::ToString">ToString</a>·for·T<div·class="where">where16 ····T:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src·ri[·...·truncated·by·diffoscope;·len:·1296,·SHA:·88285bd52e5f5ad6b3e1b6d101339ab4047bdbd5b9d568c1e216b159cf17296e·...·]/core/primitive.reference.html">&amp;mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToString-for-T"·class="impl"><a·class="src·rightside"·href="../../src/alloc/string.rs.html#2677-2691">Source</a><a·href="#impl-ToString-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../string/trait.ToString.html"·title="trait·alloc::string::ToString">ToString</a>·for·T<div·class="where">where
17 ····T:·<a·class="trait"·href="../fmt/trait.Display.html"·title="trait·alloc::fmt::Display">Display</a>·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.to_string"·class="meth[·...·truncated·by·diffoscope;·len:·956,·SHA:·5fb3fa997a6fe164f1c04c1d4cb696121571b376241266dc87e8079ebdfed810·...·]/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where17 ····T:·<a·class="trait"·href="../fmt/trait.Display.html"·title="trait·alloc::fmt::Display">Display</a>·+·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.to_string"·class="method·trait-impl"><a·class="sr[·...·truncated·by·diffoscope;·len:·875,·SHA:·e58967f6ca4eee938a4135856f0af0adfcd5abe0b4e62c194e5c506c603bfcf1·...·]/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where
18 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="asso[·...·truncated·by·diffoscope;·len:·1973,·SHA:·db4b8407e8e20581ad139aef25a6221a11da0f5f18d6aa35aa33eb843f4e1b9f·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where18 ····U:·<a·class="trait"·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·c[·...·truncated·by·diffoscope;·len:·1676,·SHA:·4c73b68f4fb433b5f24fbcd660156381e5dd9f46425d075b558b9b6ca0705f88·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where
19 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·clas[·...·truncated·by·diffoscope;·len:·1578,·SHA:·998d5af10fd889567cd999d1306bfd16c91134d2238a3c172f1e7fa8ed138c18·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>19 ····U:·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-imp[·...·truncated·by·diffoscope;·len:·1308,·SHA:·6741e462a0e1b36010204263b7580305663bb27f362987d14303068592f9f358·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>
70.8 KB
./usr/share/doc/rust-doc/html/alloc/alloc/struct.Global.html
    
Offset 1, 36 lines modifiedOffset 1, 36 lines modified
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="The·global·memory·allocator."><title>Global·in·alloc::alloc·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»2025-01-07)»     (built»       from»   a»  source»    tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Global</a></h2><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Allocator-for-Global"·title="Allocator">Allocator</a></li><li><a·href="#impl-Clone-for-Global"·title="Clone">Clone</a></li><li><a·href="#impl-Copy-for-Global"·title="Copy">Copy</a></li><li><a·href="#impl-Debug-for-Global"·title="Debug">Debug</a></li><li><a·href="#impl-Default-for-Global"·title="Default">Default</a></li><li><a·href="#impl-DispatchFromDyn%3CBox%3CU%3E%3E-for-Box%3CT%3E"·title="DispatchFromDyn&#60;Box&#60;U&#62;&#62;">DispatchFromDyn&#60;Box&#60;U&#62;&#62;</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-Global"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Global"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Global"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-Global"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-Global"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Global"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>alloc</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">alloc</a>::<wbr><a·href="index.html">alloc</a></span><h1>Struct·<span·class="struct">Global</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/alloc/alloc.rs.html#53">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·Global;</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>allocator_api</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/32838">#32838</a>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>The·global·memory·allocator.</p>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="The·global·memory·allocator."><title>Global·in·alloc::alloc·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»2025-01-07)»     (built»       from»   a»  source»    tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Global</a></h2><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Allocator-for-Global"·title="Allocator">Allocator</a></li><li><a·href="#impl-Clone-for-Global"·title="Clone">Clone</a></li><li><a·href="#impl-Copy-for-Global"·title="Copy">Copy</a></li><li><a·href="#impl-Debug-for-Global"·title="Debug">Debug</a></li><li><a·href="#impl-Default-for-Global"·title="Default">Default</a></li><li><a·href="#impl-DispatchFromDyn%3CBox%3CU%3E%3E-for-Box%3CT%3E"·title="DispatchFromDyn&#60;Box&#60;U&#62;&#62;">DispatchFromDyn&#60;Box&#60;U&#62;&#62;</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-Global"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Global"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Global"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-Global"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-Global"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Global"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>alloc</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">alloc</a>::<wbr><a·href="index.html">alloc</a></span><h1>Struct·<span·class="struct">Global</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/alloc/alloc.rs.html#53">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·Global;</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>allocator_api</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/32838">#32838</a>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>The·global·memory·allocator.</p>
2 <p>This·type·implements·the·<a·href="trait.Allocator.html"·title="trait·alloc::alloc::Allocator"><code>Allocator</code></a>·trait·by·forwarding·calls2 <p>This·type·implements·the·<a·href="trait.Allocator.html"·title="trait·alloc::alloc::Allocator"><code>Allocator</code></a>·trait·by·forwarding·calls
3 to·the·allocator·registered·with·the·<code>#[global_allocator]</code>·attribute3 to·the·allocator·registered·with·the·<code>#[global_allocator]</code>·attribute
4 if·there·is·one,·or·the·<code>std</code>·crate’s·default.</p>4 if·there·is·one,·or·the·<code>std</code>·crate’s·default.</p>
5 <p>Note:·while·this·type·is·unstable,·the·functionality·it·provides·can·be5 <p>Note:·while·this·type·is·unstable,·the·functionality·it·provides·can·be
6 accessed·through·the·<a·href="index.html#functions"·title="mod·alloc::alloc">free·functions·in·<code>alloc</code></a>.</p>6 accessed·through·the·<a·href="index.html#functions"·title="mod·alloc::alloc">free·functions·in·<code>alloc</code></a>.</p>
7 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Allocator-for-Global"·class="impl"><a·class="src·rightside"·href="../../src/alloc/alloc.rs.html#253-343">Source</a><a·href="#impl-Allocator-for-Global"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·for·<a·class="struct"·href="struct.Global.html"·title="struct·alloc::alloc::Global">Global</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.allocate"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/alloc/alloc.rs.html#256-258">Source</a><a·href="#method.allocate"·class="anchor">§</a><h4·class="code-header">fn·<a·href="trait.Allocator.html#tymethod.allocate"·class="fn">allocate</a>(&amp;self,·layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="struct"·href="https://doc.rust-lang.org/1.84.0/core/ptr/non_null/struct.NonNull.html"·title="struct·core::ptr::non_null::NonNull">NonNu[·...·truncated·by·diffoscope;·len:·2652,·SHA:·9b01f13eb290c28c49b9bd723412e37df18619772356ff9f517c82c476fae8fd·...·]/core/primitive.u8.html">u8</a>&gt;,·layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>allocator_api</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/32838">#32838</a>)</span></div></span><div·class='docblock'>Deallocates·the·memory·referenced·by·<code>ptr</code>.·<a·href="trait.Allocator.html#tymethod.deallocate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.grow"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/alloc/alloc.rs.html#278-286">Source</a><a·href="#method.grow"·class="anchor">§</a><h4·class="code-header">unsafe·fn·<a·href="trait.Allocator.html#method.grow"·class="fn">grow</a>(7 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Allocator-for-Global"·class="impl"><a·class="src·rightside"·href="../../src/alloc/alloc.rs.html#253-343">Source</a><a·href="#impl-Allocator-for-Global"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·for·<a·class="struct"·href="struct.Global.html"·title="struct·alloc::alloc::Global">Global</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.allocate"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/alloc/alloc.rs.html#256-258">Source</a><a·href="#method.allocate"·class="anchor">§</a><h4·class="code-header">fn·<a·href="trait.Allocator.html#tymethod.allocate"·class="fn">allocate</a>(&amp;self,·layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="struct"·href="../../core/ptr/non_null/struct.NonNull.html"·title="struct·core::ptr::non_null::NonNull">NonNull</a>&lt;[<a·class="primitive"·href="../../core/primi[·...·truncated·by·diffoscope;·len:·2436,·SHA:·5af33344b95d6c264a31d5211d87307e4249e2c53292c7e4eb35905dfb414d38·...·]/core/primitive.u8.html">u8</a>&gt;,·layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>allocator_api</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/32838">#32838</a>)</span></div></span><div·class='docblock'>Deallocates·the·memory·referenced·by·<code>ptr</code>.·<a·href="trait.Allocator.html#tymethod.deallocate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.grow"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/alloc/alloc.rs.html#278-286">Source</a><a·href="#method.grow"·class="anchor">§</a><h4·class="code-header">unsafe·fn·<a·href="trait.Allocator.html#method.grow"·class="fn">grow</a>(
8 ····&amp;self,8 ····&amp;self,
9 ····ptr:·<a·class="struct"·href="https://doc.rust-lang.org/1.84.0/core/ptr/non_null/struct.NonNull.html"·title="struct·core::ptr::non_null::NonNull">NonNull</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.u8.html">u8</a>&gt;,9 ····ptr:·<a·class="struct"·href="../../core/ptr/non_null/struct.NonNull.html"·title="struct·core::ptr::non_null::NonNull">NonNull</a>&lt;<a·class="primitive"·href="../../core/primitive.u8.html">u8</a>&gt;,
10 ····old_layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>,10 ····old_layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>,
11 ····new_layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>,11 ····new_layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>,
12 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="struct"·href="https://doc.rust-lang.org/1.84.0/core/ptr/non_null/struct.NonNull.html"·title="struct·core::ptr::non_null::NonNull">NonNu[·...·truncated·by·diffoscope;·len:·70,·SHA:·242a8643de213d5ba4aab67664a7846bf3b04cb18867fdae06ddf025a13f581e·...·]/core/primitive.u8.html">u8</a>]&gt;,·<a·class="struct"·href="struct.AllocError.html"·title="struct·alloc::alloc::AllocError">AllocError</a>&gt;</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>allocator_api</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/32838">#32838</a>)</span></div></span><div·class='docblock'>Attempts·to·extend·the·memory·block.·<a·href="trait.Allocator.html#method.grow">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.grow_zeroed"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/alloc/alloc.rs.html#290-298">Source</a><a·href="#method.grow_zeroed"·class="anchor">§</a><h4·class="code-header">unsafe·fn·<a·href="trait.Allocator.html#method.grow_zeroed"·class="fn">grow_zeroed</a>(12 )·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="struct"·href="../../core/ptr/non_null/struct.NonNull.html"·title="struct·core::ptr::non_null::NonNull">NonNull</a>&lt;[<a·class="primitive"·href="../../core/primitive.u8.html">u8</a>]&gt;,·<a·class="struct"·href="struct.AllocError.html"·title="struct·alloc::alloc::AllocError">AllocError</a>&gt;</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>allocator_api</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/32838">#32838</a>)</span></div></span><div·class='docblock'>Attempts·to·extend·the·memory·block.·<a·href="trait.Allocator.html#method.grow">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.grow_zeroed"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/alloc/alloc.rs.html#290-298">Source</a><a·href="#method.grow_zeroed"·class="anchor">§</a><h4·class="code-header">unsafe·fn·<a·href="trait.Allocator.html#method.grow_zeroed"·class="fn">grow_zeroed</a>(
13 ····&amp;self,13 ····&amp;self,
14 ····ptr:·<a·class="struct"·href="https://doc.rust-lang.org/1.84.0/core/ptr/non_null/struct.NonNull.html"·title="struct·core::ptr::non_null::NonNull">NonNull</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.u8.html">u8</a>&gt;,14 ····ptr:·<a·class="struct"·href="../../core/ptr/non_null/struct.NonNull.html"·title="struct·core::ptr::non_null::NonNull">NonNull</a>&lt;<a·class="primitive"·href="../../core/primitive.u8.html">u8</a>&gt;,
15 ····old_layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>,15 ····old_layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>,
16 ····new_layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>,16 ····new_layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>,
17 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="struct"·href="https://doc.rust-lang.org/1.84.0/core/ptr/non_null/struct.NonNull.html"·title="struct·core::ptr::non_null::NonNull">NonNu[·...·truncated·by·diffoscope;·len:·70,·SHA:·242a8643de213d5ba4aab67664a7846bf3b04cb18867fdae06ddf025a13f581e·...·]/core/primitive.u8.html">u8</a>]&gt;,·<a·class="struct"·href="struct.AllocError.html"·title="struct·alloc::alloc::AllocError">AllocError</a>&gt;</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>allocator_api</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/32838">#32838</a>)</span></div></span><div·class='docblock'>Behaves·like·<code>grow</code>,·but·also·ensures·that·the·new·contents·are·set·to·zero·before·being17 )·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="struct"·href="../../core/ptr/non_null/struct.NonNull.html"·title="struct·core::ptr::non_null::NonNull">NonNull</a>&lt;[<a·class="primitive"·href="../../core/primitive.u8.html">u8</a>]&gt;,·<a·class="struct"·href="struct.AllocError.html"·title="struct·alloc::alloc::AllocError">AllocError</a>&gt;</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>allocator_api</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/32838">#32838</a>)</span></div></span><div·class='docblock'>Behaves·like·<code>grow</code>,·but·also·ensures·that·the·new·contents·are·set·to·zero·before·being
18 returned.·<a·href="trait.Allocator.html#method.grow_zeroed">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.shrink"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/alloc/alloc.rs.html#302-342">Source</a><a·href="#method.shrink"·class="anchor">§</a><h4·class="code-header">unsafe·fn·<a·href="trait.Allocator.html#method.shrink"·class="fn">shrink</a>(18 returned.·<a·href="trait.Allocator.html#method.grow_zeroed">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.shrink"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/alloc/alloc.rs.html#302-342">Source</a><a·href="#method.shrink"·class="anchor">§</a><h4·class="code-header">unsafe·fn·<a·href="trait.Allocator.html#method.shrink"·class="fn">shrink</a>(
19 ····&amp;self,19 ····&amp;self,
20 ····ptr:·<a·class="struct"·href="https://doc.rust-lang.org/1.84.0/core/ptr/non_null/struct.NonNull.html"·title="struct·core::ptr::non_null::NonNull">NonNull</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.u8.html">u8</a>&gt;,20 ····ptr:·<a·class="struct"·href="../../core/ptr/non_null/struct.NonNull.html"·title="struct·core::ptr::non_null::NonNull">NonNull</a>&lt;<a·class="primitive"·href="../../core/primitive.u8.html">u8</a>&gt;,
21 ····old_layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>,21 ····old_layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>,
22 ····new_layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>,22 ····new_layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>,
23 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="struct"·href="https://doc.rust-lang.org/1.84.0/core/ptr/non_null/struct.NonNull.html"·title="struct·core::ptr::non_null::NonNull">NonNu[·...·truncated·by·diffoscope;·len:·788,·SHA:·1786d8b7485af7502418355cdf04a3ec3bff82a450ac58337cf79b671b1f6cd5·...·]/src/core/alloc/mod.rs.html#364-366">Source</a><a·href="#method.by_ref"·class="anchor">§</a><h4·class="code-header">fn·<a·href="trait.Allocator.html#method.by_ref"·class="fn">by_ref</a>(&amp;self)·-&gt;·&amp;Self<div·class="where">where23 )·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="struct"·href="../../core/ptr/non_null/struct.NonNull.html"·title="struct·core::ptr::non_null::NonNull">NonNull</a>&lt;[<a·class="primitive"·href="../../core/primi[·...·truncated·by·diffoscope;·len:·680,·SHA:·f420ce52f390533b88d002cb92d22a7e54956c16d2ebf58a9123475a4a76a4de·...·]/src/core/alloc/mod.rs.html#364-366">Source</a><a·href="#method.by_ref"·class="anchor">§</a><h4·class="code-header">fn·<a·href="trait.Allocator.html#method.by_ref"·class="fn">by_ref</a>(&amp;self)·-&gt;·&amp;Self<div·class="where">where
24 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·9394,·SHA:·2417c4c3f0576fe6371eb1491bc11bb6c87e936d673b2a11e0fb4b82fedea235·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where24 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>allocator_ap[·...·truncated·by·diffoscope;·len:·8773,·SHA:·c9c390d25fad71a684a7b27045b066b06b6dd48f02f91fae312b3a963996d6cf·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where
25 ····T:·'static·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method[·...·truncated·by·diffoscope;·len:·834,·SHA:·47dfc2aa0101a4103e2a94c1f971c559790d87a62d58631fd2bfed98e6616a34·...·]/src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where25 ····T:·'static·+·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·[·...·truncated·by·diffoscope;·len:·672,·SHA:·ace7a059971745d739c5abd9821e5d1d485cc233fd42150ceb251bdea1ce6bf7·...·]/src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where
26 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·[·...·truncated·by·diffoscope;·len:·737,·SHA:·9e65370662e77fc5c56c98c66a5dfda3c1d1244574dc8806ab91a8967514da78·...·]/src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.BorrowMut.html"·title="trait·alloc::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where26 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·r[·...·truncated·by·diffoscope;·len:·629,·SHA:·8e6f5d2e4a2830729c5d495459113ca6f54993696d7dc71c1f46e5691f5108ed·...·]/src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.BorrowMut.html"·title="trait·alloc::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where
27 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="met[·...·truncated·by·diffoscope;·len:·954,·SHA:·5ca69698d4bb8de1849b64ae87544dc0ec2bdd1a4d8dc75ba8d58b2c6c6a9ae6·...·]/core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where27 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="s[·...·truncated·by·diffoscope;·len:·819,·SHA:·3ca215d87d373be29774fff31d75c216034e4aa910e49de0e3fc5b88c46bc387·...·]/core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where
28 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="[·...·truncated·by·diffoscope;·len:·1883,·SHA:·e07301fb9e28f950d7450480a6b68014ffcdcc3be12b1adda27936cb1244377e·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>28 ····T:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·class[·...·truncated·by·diffoscope;·len:·1613,·SHA:·fde0dd5e9bb3fa078effcc98999e7fcc8b1aa390c8b7a3b6a3d8fd02f0c83e78·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>
29 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where29 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where
30 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="m[·...·truncated·by·diffoscope;·len:·237,·SHA:·98603c35860102b3af9b5cf27aeabf39e3c03236551986a6ec030817f108d919·...·]/core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>30 ····U:·<a·class="trait"·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class=[·...·truncated·by·diffoscope;·len:·156,·SHA:·79561c49c77b14346871935198fc061d00c9e84705db975b0451f5fb4f6af9a0·...·]/core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>
31 <p>That·is,·this·conversion·is·whatever·the·implementation·of31 <p>That·is,·this·conversion·is·whatever·the·implementation·of
32 <code><a·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>32 <code><a·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>
33 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#82-94">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where33 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#82-94">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where
34 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·t[·...·truncated·by·diffoscope;·len:·1979,·SHA:·f368483b3c0c332622730cfd8e12b999a38da27428f159611e979a5a04486d0c·...·]/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where34 ····T:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src·ri[·...·truncated·by·diffoscope;·len:·1871,·SHA:·5d02ea96bd0cae49516e469609d9e5f2add38a0bdc9952dbf03901b514350c50·...·]/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where
35 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="asso[·...·truncated·by·diffoscope;·len:·1973,·SHA:·db4b8407e8e20581ad139aef25a6221a11da0f5f18d6aa35aa33eb843f4e1b9f·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where35 ····U:·<a·class="trait"·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·c[·...·truncated·by·diffoscope;·len:·1676,·SHA:·4c73b68f4fb433b5f24fbcd660156381e5dd9f46425d075b558b9b6ca0705f88·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where
36 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·clas[·...·truncated·by·diffoscope;·len:·1578,·SHA:·998d5af10fd889567cd999d1306bfd16c91134d2238a3c172f1e7fa8ed138c18·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>36 ····U:·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-imp[·...·truncated·by·diffoscope;·len:·1308,·SHA:·6741e462a0e1b36010204263b7580305663bb27f362987d14303068592f9f358·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>
108 KB
./usr/share/doc/rust-doc/html/alloc/alloc/struct.Layout.html
    
Offset 1, 22 lines modifiedOffset 1, 22 lines modified
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="Layout·of·a·block·of·memory."><title>Layout·in·alloc::alloc·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»  2025-01-07)»       (built» from»     a»    source»      tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Layout</a></h2><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.align"·title="align">align</a></li><li><a·href="#method.align_to"·title="align_to">align_to</a></li><li><a·href="#method.array"·title="array">array</a></li><li><a·href="#method.dangling"·title="dangling">dangling</a></li><li><a·href="#method.extend"·title="extend">extend</a></li><li><a·href="#method.extend_packed"·title="extend_packed">extend_packed</a></li><li><a·href="#method.for_value"·title="for_value">for_value</a></li><li><a·href="#method.for_value_raw"·title="for_value_raw">for_value_raw</a></li><li><a·href="#method.from_size_align"·title="from_size_align">from_size_align</a></li><li><a·href="#method.from_size_align_unchecked"·title="from_size_align_unchecked">from_size_align_unchecked</a></li><li><a·href="#method.new"·title="new">new</a></li><li><a·href="#method.pad_to_align"·title="pad_to_align">pad_to_align</a></li><li><a·href="#method.padding_needed_for"·title="padding_needed_for">padding_needed_for</a></li><li><a·href="#method.repeat"·title="repeat">repeat</a></li><li><a·href="#method.repeat_packed"·title="repeat_packed">repeat_packed</a></li><li><a·href="#method.size"·title="size">size</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-Layout"·title="Clone">Clone</a></li><li><a·href="#impl-Copy-for-Layout"·title="Copy">Copy</a></li><li><a·href="#impl-Debug-for-Layout"·title="Debug">Debug</a></li><li><a·href="#impl-Eq-for-Layout"·title="Eq">Eq</a></li><li><a·href="#impl-Hash-for-Layout"·title="Hash">Hash</a></li><li><a·href="#impl-PartialEq-for-Layout"·title="PartialEq">PartialEq</a></li><li><a·href="#impl-StructuralPartialEq-for-Layout"·title="StructuralPartialEq">StructuralPartialEq</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-Layout"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Layout"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Layout"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-Layout"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-Layout"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Layout"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>alloc</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">alloc</a>::<wbr><a·href="index.html">alloc</a></span><h1>Struct·<span·class="struct">Layout</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/alloc/layout.rs.html#40">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·Layout·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Layout·of·a·block·of·memory.</p>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="Layout·of·a·block·of·memory."><title>Layout·in·alloc::alloc·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»  2025-01-07)»       (built» from»     a»    source»      tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Layout</a></h2><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.align"·title="align">align</a></li><li><a·href="#method.align_to"·title="align_to">align_to</a></li><li><a·href="#method.array"·title="array">array</a></li><li><a·href="#method.dangling"·title="dangling">dangling</a></li><li><a·href="#method.extend"·title="extend">extend</a></li><li><a·href="#method.extend_packed"·title="extend_packed">extend_packed</a></li><li><a·href="#method.for_value"·title="for_value">for_value</a></li><li><a·href="#method.for_value_raw"·title="for_value_raw">for_value_raw</a></li><li><a·href="#method.from_size_align"·title="from_size_align">from_size_align</a></li><li><a·href="#method.from_size_align_unchecked"·title="from_size_align_unchecked">from_size_align_unchecked</a></li><li><a·href="#method.new"·title="new">new</a></li><li><a·href="#method.pad_to_align"·title="pad_to_align">pad_to_align</a></li><li><a·href="#method.padding_needed_for"·title="padding_needed_for">padding_needed_for</a></li><li><a·href="#method.repeat"·title="repeat">repeat</a></li><li><a·href="#method.repeat_packed"·title="repeat_packed">repeat_packed</a></li><li><a·href="#method.size"·title="size">size</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-Layout"·title="Clone">Clone</a></li><li><a·href="#impl-Copy-for-Layout"·title="Copy">Copy</a></li><li><a·href="#impl-Debug-for-Layout"·title="Debug">Debug</a></li><li><a·href="#impl-Eq-for-Layout"·title="Eq">Eq</a></li><li><a·href="#impl-Hash-for-Layout"·title="Hash">Hash</a></li><li><a·href="#impl-PartialEq-for-Layout"·title="PartialEq">PartialEq</a></li><li><a·href="#impl-StructuralPartialEq-for-Layout"·title="StructuralPartialEq">StructuralPartialEq</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-Layout"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Layout"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Layout"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-Layout"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-Layout"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Layout"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>alloc</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">alloc</a>::<wbr><a·href="index.html">alloc</a></span><h1>Struct·<span·class="struct">Layout</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../src/core/alloc/layout.rs.html#40">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·Layout·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Layout·of·a·block·of·memory.</p>
2 <p>An·instance·of·<code>Layout</code>·describes·a·particular·layout·of·memory.2 <p>An·instance·of·<code>Layout</code>·describes·a·particular·layout·of·memory.
3 You·build·a·<code>Layout</code>·up·as·an·input·to·give·to·an·allocator.</p>3 You·build·a·<code>Layout</code>·up·as·an·input·to·give·to·an·allocator.</p>
4 <p>All·layouts·have·an·associated·size·and·a·power-of-two·alignment.·The·size,·when·rounded·up·to4 <p>All·layouts·have·an·associated·size·and·a·power-of-two·alignment.·The·size,·when·rounded·up·to
5 the·nearest·multiple·of·<code>align</code>,·does·not·overflow·<code>isize</code>·(i.e.,·the·rounded·value·will·always·be5 the·nearest·multiple·of·<code>align</code>,·does·not·overflow·<code>isize</code>·(i.e.,·the·rounded·value·will·always·be
6 less·than·or·equal·to·<code>isize::MAX</code>).</p>6 less·than·or·equal·to·<code>isize::MAX</code>).</p>
7 <p>(Note·that·layouts·are·<em>not</em>·required·to·have·non-zero·size,7 <p>(Note·that·layouts·are·<em>not</em>·required·to·have·non-zero·size,
8 even·though·<code>GlobalAlloc</code>·requires·that·all·memory·requests8 even·though·<code>GlobalAlloc</code>·requires·that·all·memory·requests
9 be·non-zero·in·size.·A·caller·must·either·ensure·that·conditions9 be·non-zero·in·size.·A·caller·must·either·ensure·that·conditions
10 like·this·are·met,·use·specific·allocators·with·looser10 like·this·are·met,·use·specific·allocators·with·looser
11 requirements,·or·use·the·more·lenient·<code>Allocator</code>·interface.)</p>11 requirements,·or·use·the·more·lenient·<code>Allocator</code>·interface.)</p>
12 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Layout"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/alloc/layout.rs.html#54">Source</a><a·href="#impl-Layout"·class="anchor">§</a><h3·class="code-header">impl·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a></h3></section></[·...·truncated·by·diffoscope;·len:·326,·SHA:·65dfe85682432fd94ec0ec868a0030dc257e4ddf00ddc0c0265ad3866ffb3b52·...·]/src/core/alloc/layout.rs.html#69">Source</a></span><h4·class="code-header">pub·const·fn·<a·href="#method.from_size_align"·class="fn">from_size_align</a>(12 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Layout"·class="impl"><a·class="src·rightside"·href="../../src/core/alloc/layout.rs.html#54">Source</a><a·href="#impl-Layout"·class="anchor">§</a><h3·class="code-header">impl·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a></h3></section></summary><div·class="impl-it[·...·truncated·by·diffoscope;·len:·272,·SHA:·2fd59329252a1ef640c71303239eb1dd1316cc4cafba45018adcaa733716cc98·...·]/src/core/alloc/layout.rs.html#69">Source</a></span><h4·class="code-header">pub·const·fn·<a·href="#method.from_size_align"·class="fn">from_size_align</a>(
13 ····size:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.usize.html">usize</a>,13 ····size:·<a·class="primitive"·href="../../core/primitive.usize.html">usize</a>,
14 ····align:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.usize.html">usize</a>,14 ····align:·<a·class="primitive"·href="../../core/primitive.usize.html">usize</a>,
15 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>,·<a·class="struct"·href="struct.LayoutError.html"·title="struct·alloc::alloc::LayoutError">LayoutError</a>&gt;</h4></section></summary><div·class="docblock"><p>Constructs·a·<code>Layout</code>·from·a·given·<code>size</code>·and·<code>align</code>,15 )·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>,·<a·class="struct"·href="struct.LayoutError.html"·title="struct·alloc::alloc::LayoutError">LayoutError</a>&gt;</h4></section></summary><div·class="docblock"><p>Constructs·a·<code>Layout</code>·from·a·given·<code>size</code>·and·<code>align</code>,
16 or·returns·<code>LayoutError</code>·if·any·of·the·following·conditions16 or·returns·<code>LayoutError</code>·if·any·of·the·following·conditions
17 are·not·met:</p>17 are·not·met:</p>
18 <ul>18 <ul>
19 <li>19 <li>
20 <p><code>align</code>·must·not·be·zero,</p>20 <p><code>align</code>·must·not·be·zero,</p>
21 </li>21 </li>
22 <li>22 <li>
Offset 24, 40 lines modifiedOffset 24, 40 lines modified
24 </li>24 </li>
25 <li>25 <li>
26 <p><code>size</code>,·when·rounded·up·to·the·nearest·multiple·of·<code>align</code>,26 <p><code>size</code>,·when·rounded·up·to·the·nearest·multiple·of·<code>align</code>,
27 must·not·overflow·<code>isize</code>·(i.e.,·the·rounded·value·must·be27 must·not·overflow·<code>isize</code>·(i.e.,·the·rounded·value·must·be
28 less·than·or·equal·to·<code>isize::MAX</code>).</p>28 less·than·or·equal·to·<code>isize::MAX</code>).</p>
29 </li>29 </li>
30 </ul>30 </ul>
31 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.from_size_align_unchecked"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.28.0,·const·since·1.36.0">1.28.0·(const:·1.36.0)</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/alloc/layout.rs.html#129">Source</a></span><h4·class="code-header">pub·const·unsafe·fn·<a·href="#method.from_size_align_unchecked"·class="fn">from_size_align_unchecked</a>(31 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.from_size_align_unchecked"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.28.0,·const·since·1.36.0">1.28.0·(const:·1.36.0)</span>···<a·class="src"·href="../../src/core/alloc/layout.rs.html#129">Source</a></span><h4·class="code-header">pub·const·unsafe·fn·<a·href="#method.from_size_align_unchecked"·class="fn">from_size_align_unchecked</a>(
32 ····size:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.usize.html">usize</a>,32 ····size:·<a·class="primitive"·href="../../core/primitive.usize.html">usize</a>,
33 ····align:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.usize.html">usize</a>,33 ····align:·<a·class="primitive"·href="../../core/primitive.usize.html">usize</a>,
34 )·-&gt;·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a></h4></section></summary><div·class="docblock"><p>Creates·a·layout,·bypassing·all·checks.</p>34 )·-&gt;·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a></h4></section></summary><div·class="docblock"><p>Creates·a·layout,·bypassing·all·checks.</p>
35 <h5·id="safety"><a·class="doc-anchor"·href="#safety">§</a>Safety</h5>35 <h5·id="safety"><a·class="doc-anchor"·href="#safety">§</a>Safety</h5>
36 <p>This·function·is·unsafe·as·it·does·not·verify·the·preconditions·from36 <p>This·function·is·unsafe·as·it·does·not·verify·the·preconditions·from
37 <a·href="struct.Layout.html#method.from_size_align"·title="associated·function·alloc::alloc::Layout::from_size_align"><code>Layout::from_size_align</code></a>.</p>37 <a·href="struct.Layout.html#method.from_size_align"·title="associated·function·alloc::alloc::Layout::from_size_align"><code>Layout::from_size_align</code></a>.</p>
38 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.size"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.28.0,·const·since·1.50.0">1.28.0·(const:·1.50.0)</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/alloc/layout.rs.html#148">Source</a></span><h4·class="code-header">pub·const·fn·<a·href="#method.size"·class="fn">size</a>(&amp;self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.usize.html">usize</a></h4></section></summary><div·class="docblock"><p>The·minimum·size·in·bytes·for·a·memory·block·of·this·layout.</p>38 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.size"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.28.0,·const·since·1.50.0">1.28.0·(const:·1.50.0)</span>···<a·class="src"·href="../../src/core/alloc/layout.rs.html#148">Source</a></span><h4·class="code-header">pub·const·fn·<a·href="#method.size"·class="fn">size</a>(&amp;self)·-&gt;·<a·class="primitive"·href="../../core/primitive.usize.html">usize</a></h4></section></summary><div·class="docblock"><p>The·minimum·size·in·bytes·for·a·memory·block·of·this·layout.</p>
39 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.align"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.28.0,·const·since·1.50.0">1.28.0·(const:·1.50.0)</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/alloc/layout.rs.html#161">Source</a></span><h4·class="code-header">pub·const·fn·<a·href="#method.align"·class="fn">align</a>(&amp;self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.usize.html">usize</a></h4></section></summary><div·class="docblock"><p>The·minimum·byte·alignment·for·a·memory·block·of·this·layout.</p>39 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.align"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.28.0,·const·since·1.50.0">1.28.0·(const:·1.50.0)</span>···<a·class="src"·href="../../src/core/alloc/layout.rs.html#161">Source</a></span><h4·class="code-header">pub·const·fn·<a·href="#method.align"·class="fn">align</a>(&amp;self)·-&gt;·<a·class="primitive"·href="../../core/primitive.usize.html">usize</a></h4></section></summary><div·class="docblock"><p>The·minimum·byte·alignment·for·a·memory·block·of·this·layout.</p>
40 <p>The·returned·alignment·is·guaranteed·to·be·a·power·of·two.</p>40 <p>The·returned·alignment·is·guaranteed·to·be·a·power·of·two.</p>
41 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.new"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.28.0,·const·since·1.42.0">1.28.0·(const:·1.42.0)</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/alloc/layout.rs.html#170">Source</a></span><h4·class="code-header">pub·const·fn·<a·href="#method.new"·class="fn">new</a>&lt;T&gt;()·-&gt;·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a></h4></section></summary><div·class="docblock"><p>Constructs·a·<code>Layout</code>·suitable·for·holding·a·value·of·type·<code>T</code>.</p>41 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.new"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.28.0,·const·since·1.42.0">1.28.0·(const:·1.42.0)</span>···<a·class="src"·href="../../src/core/alloc/layout.rs.html#170">Source</a></span><h4·class="code-header">pub·const·fn·<a·href="#method.new"·class="fn">new</a>&lt;T&gt;()·-&gt;·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a></h4></section></summary><div·class="docblock"><p>Constructs·a·<code>Layout</code>·suitable·for·holding·a·value·of·type·<code>T</code>.</p>
42 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_value"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.28.0,·const·unstable">1.28.0·(const:·<a·href="https://github.com/rust-lang/rust/issues/67521"·title="Tracking·issue·for·const_alloc_layout">unstable</a>)</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/alloc/layout.rs.html#185">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.for_value"·class="fn">for_value</a>&lt;T&gt;(t:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a><div·class="where">where42 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_value"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.28.0,·const·unstable">1.28.0·(const:·<a·href="https://github.com/rust-lang/rust/issues/67521"·title="Tracking·issue·for·const_alloc_layout">unstable</a>)</span>···<a·class="src"·href="../../src/core/alloc/layout.rs.html#185">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.for_value"·class="fn">for_value</a>&lt;T&gt;(t:·<a·class="primitive"·href="../../core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a><div·class="where">where
43 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class="docblock"><p>Produces·layout·describing·a·record·that·could·be·used·to43 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class="docblock"><p>Produces·layout·describing·a·record·that·could·be·used·to
44 allocate·backing·structure·for·<code>T</code>·(which·could·be·a·trait44 allocate·backing·structure·for·<code>T</code>·(which·could·be·a·trait
45 or·other·unsized·type·like·a·slice).</p>45 or·other·unsized·type·like·a·slice).</p>
46 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_value_raw"·class="method"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/alloc/layout.rs.html#221">Source</a><h4·class="code-header">pub·const·unsafe·fn·<a·href="#method.for_value_raw"·class="fn">for_value_raw</a>&lt;T&gt;(t:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.pointer.html">*const·T</a>)·-&gt;·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a><div·class="where">where46 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_value_raw"·class="method"><a·class="src·rightside"·href="../../src/core/alloc/layout.rs.html#221">Source</a><h4·class="code-header">pub·const·unsafe·fn·<a·href="#method.for_value_raw"·class="fn">for_value_raw</a>&lt;T&gt;(t:·<a·class="primitive"·href="../../core/primitive.pointer.html">*const·T</a>)·-&gt;·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a><div·class="where">where
47 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>layout_for_ptr</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/69835">#69835</a>)</span></div></span></summary><div·class="docblock"><p>Produces·layout·describing·a·record·that·could·be·used·to47 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>layout_for_ptr</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/69835">#69835</a>)</span></div></span></summary><div·class="docblock"><p>Produces·layout·describing·a·record·that·could·be·used·to
48 allocate·backing·structure·for·<code>T</code>·(which·could·be·a·trait48 allocate·backing·structure·for·<code>T</code>·(which·could·be·a·trait
49 or·other·unsized·type·like·a·slice).</p>49 or·other·unsized·type·like·a·slice).</p>
50 <h5·id="safety-1"><a·class="doc-anchor"·href="#safety-1">§</a>Safety</h5>50 <h5·id="safety-1"><a·class="doc-anchor"·href="#safety-1">§</a>Safety</h5>
51 <p>This·function·is·only·safe·to·call·if·the·following·conditions·hold:</p>51 <p>This·function·is·only·safe·to·call·if·the·following·conditions·hold:</p>
52 <ul>52 <ul>
53 <li>If·<code>T</code>·is·<code>Sized</code>,·this·function·is·always·safe·to·call.</li>53 <li>If·<code>T</code>·is·<code>Sized</code>,·this·function·is·always·safe·to·call.</li>
54 <li>If·the·unsized·tail·of·<code>T</code>·is:54 <li>If·the·unsized·tail·of·<code>T</code>·is:
55 <ul>55 <ul>
56 <li>a·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html"·title="primitive·slice">slice</a>,·then·the·length·of·the·slice·tail·must·be·an·initialized56 <li>a·<a·href="../../core/primitive.slice.html"·title="primitive·slice">slice</a>,·then·the·length·of·the·slice·tail·must·be·an·initialized
57 integer,·and·the·size·of·the·<em>entire·value</em>57 integer,·and·the·size·of·the·<em>entire·value</em>
58 (dynamic·tail·length·+·statically·sized·prefix)·must·fit·in·<code>isize</code>.58 (dynamic·tail·length·+·statically·sized·prefix)·must·fit·in·<code>isize</code>.
59 For·the·special·case·where·the·dynamic·tail·length·is·0,·this·function59 For·the·special·case·where·the·dynamic·tail·length·is·0,·this·function
60 is·safe·to·call.</li>60 is·safe·to·call.</li>
61 <li>a·<a·href="../../book/ch17-02-trait-objects.html">trait·object</a>,·then·the·vtable·part·of·the·pointer·must·point61 <li>a·<a·href="../../book/ch17-02-trait-objects.html">trait·object</a>,·then·the·vtable·part·of·the·pointer·must·point
62 to·a·valid·vtable·for·the·type·<code>T</code>·acquired·by·an·unsizing·coercion,62 to·a·valid·vtable·for·the·type·<code>T</code>·acquired·by·an·unsizing·coercion,
63 and·the·size·of·the·<em>entire·value</em>63 and·the·size·of·the·<em>entire·value</em>
Offset 66, 48 lines modifiedOffset 66, 48 lines modified
66 call,·but·may·panic·or·otherwise·return·the·wrong·value,·as·the66 call,·but·may·panic·or·otherwise·return·the·wrong·value,·as·the
67 extern·type’s·layout·is·not·known.·This·is·the·same·behavior·as67 extern·type’s·layout·is·not·known.·This·is·the·same·behavior·as
68 <a·href="struct.Layout.html#method.for_value"·title="associated·function·alloc::alloc::Layout::for_value"><code>Layout::for_value</code></a>·on·a·reference·to·an·extern·type·tail.</li>68 <a·href="struct.Layout.html#method.for_value"·title="associated·function·alloc::alloc::Layout::for_value"><code>Layout::for_value</code></a>·on·a·reference·to·an·extern·type·tail.</li>
69 <li>otherwise,·it·is·conservatively·not·allowed·to·call·this·function.</li>69 <li>otherwise,·it·is·conservatively·not·allowed·to·call·this·function.</li>
70 </ul>70 </ul>
71 </li>71 </li>
72 </ul>72 </ul>
73 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.dangling"·class="method"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/alloc/layout.rs.html#237">Source</a><h4·class="code-header">pub·const·fn·<a·href="#method.dangling"·class="fn">dangling</a>(&amp;self)·-&gt;·<a·class="struct"·href="https://doc.rust-lang.org/1.84.0/core/ptr/non_nul[·...·truncated·by·diffoscope;·len:·141,·SHA:·da1afde268ca530daff59f6e41376e531e241fab975b103e4112bac219c5305d·...·]/core/primitive.u8.html">u8</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>alloc_layout_extra</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/55724">#55724</a>)</span></div></span></summary><div·class="docblock"><p>Creates·a·<code>NonNull</code>·that·is·dangling,·but·well-aligned·for·this·Layout.</p>73 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.dangling"·class="method"><a·class="src·rightside"·href="../../src/core/alloc/layout.rs.html#237">Source</a><h4·class="code-header">pub·const·fn·<a·href="#method.dangling"·class="fn">dangling</a>(&amp;self)·-&gt;·<a·class="struct"·href="../../core/ptr/non_null/struct.NonNull.html"·title="struct·core::ptr::non_nu[·...·truncated·by·diffoscope;·len:·60,·SHA:·626c74d8ee80eaedba0a9421aada7a8b11a3ce7c7d56aed31ec509188466ac80·...·]/core/primitive.u8.html">u8</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>alloc_layout_extra</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/55724">#55724</a>)</span></div></span></summary><div·class="docblock"><p>Creates·a·<code>NonNull</code>·that·is·dangling,·but·well-aligned·for·this·Layout.</p>
74 <p>Note·that·the·pointer·value·may·potentially·represent·a·valid·pointer,74 <p>Note·that·the·pointer·value·may·potentially·represent·a·valid·pointer,
75 which·means·this·must·not·be·used·as·a·“not·yet·initialized”75 which·means·this·must·not·be·used·as·a·“not·yet·initialized”
76 sentinel·value.·Types·that·lazily·allocate·must·track·initialization·by76 sentinel·value.·Types·that·lazily·allocate·must·track·initialization·by
77 some·other·means.</p>77 some·other·means.</p>
78 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.align_to"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.44.0,·const·unstable">1.44.0·(const:·<a·href="https://github.com/rust-lang/rust/issues/67521"·title="Tracking·issue·for·const_alloc_layout">unstable</a>)</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/alloc/layout.rs.html#260">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.align_to"·class="fn">align_to</a>(&amp;self,·align:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primit[·...·truncated·by·diffoscope;·len:·87,·SHA:·bd2a2c7275a72b224110c50d65c424e1c3c4963d2478bf3e947b1a9184e5753e·...·]/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>,·<a·class="struct"·href="struct.LayoutError.html"·title="struct·alloc::alloc::LayoutError">LayoutError</a>&gt;</h4></section></summary><div·class="docblock"><p>Creates·a·layout·describing·the·record·that·can·hold·a·value78 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.align_to"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.44.0,·const·unstable">1.44.0·(const:·<a·href="https://github.com/rust-lang/rust/issues/67521"·title="Tracking·issue·for·const_alloc_layout">unstable</a>)</span>···<a·class="src"·href="../../src/core/alloc/layout.rs.html#260">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.align_to"·class="fn">align_to</a>(&amp;self,·align:·<a·class="primitive"·href="../../core/primitive.usize.html">usize</a>)·-&gt;·<a·class="enum"·href=[·...·truncated·by·diffoscope;·len:·6,·SHA:·fe467039c22668817abaeb2f863d68f75f95c02e83d950e3f51051d19c904946·...·]/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>,·<a·class="struct"·href="struct.LayoutError.html"·title="struct·alloc::alloc::LayoutError">LayoutError</a>&gt;</h4></section></summary><div·class="docblock"><p>Creates·a·layout·describing·the·record·that·can·hold·a·value
79 of·the·same·layout·as·<code>self</code>,·but·that·also·is·aligned·to79 of·the·same·layout·as·<code>self</code>,·but·that·also·is·aligned·to
80 alignment·<code>align</code>·(measured·in·bytes).</p>80 alignment·<code>align</code>·(measured·in·bytes).</p>
81 <p>If·<code>self</code>·already·meets·the·prescribed·alignment,·then·returns81 <p>If·<code>self</code>·already·meets·the·prescribed·alignment,·then·returns
82 <code>self</code>.</p>82 <code>self</code>.</p>
83 <p>Note·that·this·method·does·not·add·any·padding·to·the·overall83 <p>Note·that·this·method·does·not·add·any·padding·to·the·overall
84 size,·regardless·of·whether·the·returned·layout·has·a·different84 size,·regardless·of·whether·the·returned·layout·has·a·different
85 alignment.·In·other·words,·if·<code>K</code>·has·size·16,·<code>K.align_to(32)</code>85 alignment.·In·other·words,·if·<code>K</code>·has·size·16,·<code>K.align_to(32)</code>
86 will·<em>still</em>·have·size·16.</p>86 will·<em>still</em>·have·size·16.</p>
87 <p>Returns·an·error·if·the·combination·of·<code>self.size()</code>·and·the·given87 <p>Returns·an·error·if·the·combination·of·<code>self.size()</code>·and·the·given
88 <code>align</code>·violates·the·conditions·listed·in·<a·href="struct.Layout.html#method.from_size_align"·title="associated·function·alloc::alloc::Layout::from_size_align"><code>Layout::from_size_align</code></a>.</p>88 <code>align</code>·violates·the·conditions·listed·in·<a·href="struct.Layout.html#method.from_size_align"·title="associated·function·alloc::alloc::Layout::from_size_align"><code>Layout::from_size_align</code></a>.</p>
89 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.padding_needed_for"·class="method"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/alloc/layout.rs.html#288">Source</a><h4·class="code-header">pub·const·fn·<a·href="#method.padding_needed_for"·class="fn">padding_needed_for</a>(&amp;self,·align:·<a·class="primitive"·href="https://doc.rust-lang.org[·...·truncated·by·diffoscope;·len:·111,·SHA:·4cd46082a8dd28c6d476e59e18a8ce756dadbdfed6cd9dbeb750df1e93f8558b·...·]/core/primitive.usize.html">usize</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>alloc_layout_extra</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/55724">#55724</a>)</span></div></span></summary><div·class="docblock"><p>Returns·the·amount·of·padding·we·must·insert·after·<code>self</code>89 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.padding_needed_for"·class="method"><a·class="src·rightside"·href="../../src/core/alloc/layout.rs.html#288">Source</a><h4·class="code-header">pub·const·fn·<a·href="#method.padding_needed_for"·class="fn">padding_needed_for</a>(&amp;self,·align:·<a·class="primitive"·href="../../core/primitive.usize.html">usize</a>)·-&gt;·<a[·...·truncated·by·diffoscope;·len:·30,·SHA:·8803140bc5aa651707bec32c356ea198da3d4e9fbdf3cc057ff6a8dda34cfdb0·...·]/core/primitive.usize.html">usize</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>alloc_layout_extra</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/55724">#55724</a>)</span></div></span></summary><div·class="docblock"><p>Returns·the·amount·of·padding·we·must·insert·after·<code>self</code>
90 to·ensure·that·the·following·address·will·satisfy·<code>align</code>90 to·ensure·that·the·following·address·will·satisfy·<code>align</code>
91 (measured·in·bytes).</p>91 (measured·in·bytes).</p>
92 <p>e.g.,·if·<code>self.size()</code>·is·9,·then·<code>self.padding_needed_for(4)</code>92 <p>e.g.,·if·<code>self.size()</code>·is·9,·then·<code>self.padding_needed_for(4)</code>
93 returns·3,·because·that·is·the·minimum·number·of·bytes·of93 returns·3,·because·that·is·the·minimum·number·of·bytes·of
94 padding·required·to·get·a·4-aligned·address·(assuming·that·the94 padding·required·to·get·a·4-aligned·address·(assuming·that·the
95 corresponding·memory·block·starts·at·a·4-aligned·address).</p>95 corresponding·memory·block·starts·at·a·4-aligned·address).</p>
96 <p>The·return·value·of·this·function·has·no·meaning·if·<code>align</code>·is96 <p>The·return·value·of·this·function·has·no·meaning·if·<code>align</code>·is
97 not·a·power-of-two.</p>97 not·a·power-of-two.</p>
98 <p>Note·that·the·utility·of·the·returned·value·requires·<code>align</code>98 <p>Note·that·the·utility·of·the·returned·value·requires·<code>align</code>
99 to·be·less·than·or·equal·to·the·alignment·of·the·starting99 to·be·less·than·or·equal·to·the·alignment·of·the·starting
100 address·for·the·whole·allocated·block·of·memory.·One·way·to100 address·for·the·whole·allocated·block·of·memory.·One·way·to
101 satisfy·this·constraint·is·to·ensure·<code>align·&lt;=·self.align()</code>.</p>101 satisfy·this·constraint·is·to·ensure·<code>align·&lt;=·self.align()</code>.</p>
102 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.pad_to_align"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.44.0,·const·unstable">1.44.0·(const:·<a·href="https://github.com/rust-lang/rust/issues/67521"·title="Tracking·issue·for·const_alloc_layout">unstable</a>)</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/alloc/layout.rs.html#338">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.pad_to_align"·class="fn">pad_to_align</a>(&amp;self)·-&gt;·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a></h4></section></summary><div·class="docblock"><p>Creates·a·layout·by·rounding·the·size·of·this·layout·up·to·a·multiple102 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.pad_to_align"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.44.0,·const·unstable">1.44.0·(const:·<a·href="https://github.com/rust-lang/rust/issues/67521"·title="Tracking·issue·for·const_alloc_layout">unstable</a>)</span>···<a·class="src"·href="../../src/core/alloc/layout.rs.html#338">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.pad_to_align"·class="fn">pad_to_align</a>(&amp;self)·-&gt;·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a></h4></section></summary><div·class="docblock"><p>Creates·a·layout·by·rounding·the·size·of·this·layout·up·to·a·multiple
103 of·the·layout’s·alignment.</p>103 of·the·layout’s·alignment.</p>
104 <p>This·is·equivalent·to·adding·the·result·of·<code>padding_needed_for</code>104 <p>This·is·equivalent·to·adding·the·result·of·<code>padding_needed_for</code>
105 to·the·layout’s·current·size.</p>105 to·the·layout’s·current·size.</p>
106 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.repeat"·class="method"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/alloc/layout.rs.html#378">Source</a><h4·class="code-header">pub·const·fn·<a·href="#method.repeat"·class="fn">repeat</a>(&amp;self,·n:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.usize[·...·truncated·by·diffoscope;·len:·309,·SHA:·952be142212f4c270f87452602572ba3e34db4edc1b7ac3ebf1a81fd3d818a17·...·]/core/primitive.usize.html">usize</a>),·<a·class="struct"·href="struct.LayoutError.html"·title="struct·alloc::alloc::LayoutError">LayoutError</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>alloc_layout_extra</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/55724">#55724</a>)</span></div></span></summary><div·class="docblock"><p>Creates·a·layout·describing·the·record·for·<code>n</code>·instances·of106 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.repeat"·class="method"><a·class="src·rightside"·href="../../src/core/alloc/layout.rs.html#378">Source</a><h4·class="code-header">pub·const·fn·<a·href="#method.repeat"·class="fn">repeat</a>(&amp;self,·n:·<a·class="primitive"·href="../../core/primitive.usize.html">usize</a>)·-&gt;·<a·class="enum"·href="../../co[·...·truncated·by·diffoscope;·len:·201,·SHA:·375b2f614118fb13e7007a71d220dc02a4faaab8968ef9b06bf66e1c00e6b8a6·...·]/core/primitive.usize.html">usize</a>),·<a·class="struct"·href="struct.LayoutError.html"·title="struct·alloc::alloc::LayoutError">LayoutError</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>alloc_layout_extra</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/55724">#55724</a>)</span></div></span></summary><div·class="docblock"><p>Creates·a·layout·describing·the·record·for·<code>n</code>·instances·of
107 <code>self</code>,·with·a·suitable·amount·of·padding·between·each·to107 <code>self</code>,·with·a·suitable·amount·of·padding·between·each·to
108 ensure·that·each·instance·is·given·its·requested·size·and108 ensure·that·each·instance·is·given·its·requested·size·and
109 alignment.·On·success,·returns·<code>(k,·offs)</code>·where·<code>k</code>·is·the109 alignment.·On·success,·returns·<code>(k,·offs)</code>·where·<code>k</code>·is·the
110 layout·of·the·array·and·<code>offs</code>·is·the·distance·between·the·start110 layout·of·the·array·and·<code>offs</code>·is·the·distance·between·the·start
111 of·each·element·in·the·array.</p>111 of·each·element·in·the·array.</p>
112 <p>(That·distance·between·elements·is·sometimes·known·as·“stride”.)</p>112 <p>(That·distance·between·elements·is·sometimes·known·as·“stride”.)</p>
113 <p>On·arithmetic·overflow,·returns·<code>LayoutError</code>.</p>113 <p>On·arithmetic·overflow,·returns·<code>LayoutError</code>.</p>
Offset 120, 15 lines modifiedOffset 120, 15 lines modified
120 <span·class="kw">let·</span>repeated·=·normal.repeat(<span·class="number">3</span>).unwrap();120 <span·class="kw">let·</span>repeated·=·normal.repeat(<span·class="number">3</span>).unwrap();
121 <span·class="macro">assert_eq!</span>(repeated,·(Layout::from_size_align(<span·class="number">36</span>,·<span·class="number">4</span>).unwrap(),·<span·class="number">12</span>));121 <span·class="macro">assert_eq!</span>(repeated,·(Layout::from_size_align(<span·class="number">36</span>,·<span·class="number">4</span>).unwrap(),·<span·class="number">12</span>));
  
122 <span·class="comment">//·But·you·can·manually·make·layouts·which·don't·meet·that·rule.122 <span·class="comment">//·But·you·can·manually·make·layouts·which·don't·meet·that·rule.
123 </span><span·class="kw">let·</span>padding_needed·=·Layout::from_size_align(<span·class="number">6</span>,·<span·class="number">4</span>).unwrap();123 </span><span·class="kw">let·</span>padding_needed·=·Layout::from_size_align(<span·class="number">6</span>,·<span·class="number">4</span>).unwrap();
124 <span·class="kw">let·</span>repeated·=·padding_needed.repeat(<span·class="number">3</span>).unwrap();124 <span·class="kw">let·</span>repeated·=·padding_needed.repeat(<span·class="number">3</span>).unwrap();
125 <span·class="macro">assert_eq!</span>(repeated,·(Layout::from_size_align(<span·class="number">24</span>,·<span·class="number">4</span>).unwrap(),·<span·class="number">8</span>));</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Bfeature(alloc_layout_extra)%5D%0A%23%5Ballow(unused_extern_crates)%5D%0Aextern+crate+r%23alloc;%0Afn+main()+%7B%0A++++use+std::alloc::Layout;%0A++++%0A++++//+All+rust+types+have+a+size+that's+a+multiple+of+their+alignment.%0A++++let+normal+=+Layout::from_size_align(12,+4).unwrap();%0A++++let+repeated+=+normal.repeat(3).unwrap();%0A++++assert_eq!(repeated,+(Layout::from_size_align(36,+4).unwrap(),+12));%0A++++%0A++++//+But+you+can+manually+make+layouts+which+don't+meet+that+rule.%0A++++let+padding_needed+=+Layout::from_size_align(6,+4).unwrap();%0A++++let+repeated+=+padding_needed.repeat(3).unwrap();%0A++++assert_eq!(repeated,+(Layout::from_size_align(24,+4).unwrap(),+8));%0A%7D&amp;version=nightly&amp;edition=2021"></a></div>125 <span·class="macro">assert_eq!</span>(repeated,·(Layout::from_size_align(<span·class="number">24</span>,·<span·class="number">4</span>).unwrap(),·<span·class="number">8</span>));</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Bfeature(alloc_layout_extra)%5D%0A%23%5Ballow(unused_extern_crates)%5D%0Aextern+crate+r%23alloc;%0Afn+main()+%7B%0A++++use+std::alloc::Layout;%0A++++%0A++++//+All+rust+types+have+a+size+that's+a+multiple+of+their+alignment.%0A++++let+normal+=+Layout::from_size_align(12,+4).unwrap();%0A++++let+repeated+=+normal.repeat(3).unwrap();%0A++++assert_eq!(repeated,+(Layout::from_size_align(36,+4).unwrap(),+12));%0A++++%0A++++//+But+you+can+manually+make+layouts+which+don't+meet+that+rule.%0A++++let+padding_needed+=+Layout::from_size_align(6,+4).unwrap();%0A++++let+repeated+=+padding_needed.repeat(3).unwrap();%0A++++assert_eq!(repeated,+(Layout::from_size_align(24,+4).unwrap(),+8));%0A%7D&amp;version=nightly&amp;edition=2021"></a></div>
126 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.extend"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.44.0,·const·unstable">1.44.0·(const:·<a·href="https://github.com/rust-lang/rust/issues/67521"·title="Tracking·issue·for·const_alloc_layout">unstable</a>)</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/alloc/layout.rs.html#436">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.extend"·class="fn">extend</a>(&amp;self,·next:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layo[·...·truncated·by·diffoscope;·len:·307,·SHA:·283328b03c40ed059c34eabf8556b9de6f6f9c2c7b824a1bc9cc9129d937f09a·...·]/core/primitive.usize.html">usize</a>),·<a·class="struct"·href="struct.LayoutError.html"·title="struct·alloc::alloc::LayoutError">LayoutError</a>&gt;</h4></section></summary><div·class="docblock"><p>Creates·a·layout·describing·the·record·for·<code>self</code>·followed·by126 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.extend"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.44.0,·const·unstable">1.44.0·(const:·<a·href="https://github.com/rust-lang/rust/issues/67521"·title="Tracking·issue·for·const_alloc_layout">unstable</a>)</span>···<a·class="src"·href="../../src/core/alloc/layout.rs.html#436">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.extend"·class="fn">extend</a>(&amp;self,·next:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>)·-&gt;·<a·cl[·...·truncated·by·diffoscope;·len:·226,·SHA:·883670df48a0139b310d60780c5986a86a6b303dcdb250b1ee01785e6084ab29·...·]/core/primitive.usize.html">usize</a>),·<a·class="struct"·href="struct.LayoutError.html"·title="struct·alloc::alloc::LayoutError">LayoutError</a>&gt;</h4></section></summary><div·class="docblock"><p>Creates·a·layout·describing·the·record·for·<code>self</code>·followed·by
127 <code>next</code>,·including·any·necessary·padding·to·ensure·that·<code>next</code>127 <code>next</code>,·including·any·necessary·padding·to·ensure·that·<code>next</code>
128 will·be·properly·aligned,·but·<em>no·trailing·padding</em>.</p>128 will·be·properly·aligned,·but·<em>no·trailing·padding</em>.</p>
129 <p>In·order·to·match·C·representation·layout·<code>repr(C)</code>,·you·should129 <p>In·order·to·match·C·representation·layout·<code>repr(C)</code>,·you·should
130 call·<code>pad_to_align</code>·after·extending·the·layout·with·all·fields.130 call·<code>pad_to_align</code>·after·extending·the·layout·with·all·fields.
131 (There·is·no·way·to·match·the·default·Rust·representation131 (There·is·no·way·to·match·the·default·Rust·representation
132 layout·<code>repr(Rust)</code>,·as·it·is·unspecified.)</p>132 layout·<code>repr(Rust)</code>,·as·it·is·unspecified.)</p>
Max diff block lines reached; 64410/110683 bytes (58.19%) of diff not shown.
77.8 KB
./usr/share/doc/rust-doc/html/alloc/alloc/struct.LayoutError.html
    
Offset 1, 20 lines modifiedOffset 1, 20 lines modified
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="The·`LayoutError`·is·returned·when·the·parameters·given·to·`Layout::from_size_align`·or·some·other·`Layout`·constructor·do·not·satisfy·its·documented·constraints."><title>LayoutError·in·alloc::alloc·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»      2025-01-07)»   (built»     from» a»source»  tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Layout<wbr>Error</a></h2><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-LayoutError"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-LayoutError"·title="Debug">Debug</a></li><li><a·href="#impl-Display-for-LayoutError"·title="Display">Display</a></li><li><a·href="#impl-Eq-for-LayoutError"·title="Eq">Eq</a></li><li><a·href="#impl-Error-for-LayoutError"·title="Error">Error</a></li><li><a·href="#impl-From%3CLayoutError%3E-for-TryReserveErrorKind"·title="From&#60;LayoutError&#62;">From&#60;LayoutError&#62;</a></li><li><a·href="#impl-PartialEq-for-LayoutError"·title="PartialEq">PartialEq</a></li><li><a·href="#impl-StructuralPartialEq-for-LayoutError"·title="StructuralPartialEq">StructuralPartialEq</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-LayoutError"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-LayoutError"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-LayoutError"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-LayoutError"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-LayoutError"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-LayoutError"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-ToString-for-T"·title="ToString">ToString</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>alloc</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">alloc</a>::<wbr><a·href="index.html">alloc</a></span><h1>Struct·<span·class="struct">LayoutError</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.50.0">1.50.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/alloc/layout.rs.html#547">Source</a>·</span></div><pre·class="rust·item-decl"><code><div·class="code-attribute">#[non_exhaustive]</div>pub·struct·LayoutError;</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>The·<code>LayoutError</code>·is·returned·when·the·parameters·given1 <!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="The·`LayoutError`·is·returned·when·the·parameters·given·to·`Layout::from_size_align`·or·some·other·`Layout`·constructor·do·not·satisfy·its·documented·constraints."><title>LayoutError·in·alloc::alloc·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»      2025-01-07)»   (built»     from» a»source»  tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Layout<wbr>Error</a></h2><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-LayoutError"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-LayoutError"·title="Debug">Debug</a></li><li><a·href="#impl-Display-for-LayoutError"·title="Display">Display</a></li><li><a·href="#impl-Eq-for-LayoutError"·title="Eq">Eq</a></li><li><a·href="#impl-Error-for-LayoutError"·title="Error">Error</a></li><li><a·href="#impl-From%3CLayoutError%3E-for-TryReserveErrorKind"·title="From&#60;LayoutError&#62;">From&#60;LayoutError&#62;</a></li><li><a·href="#impl-PartialEq-for-LayoutError"·title="PartialEq">PartialEq</a></li><li><a·href="#impl-StructuralPartialEq-for-LayoutError"·title="StructuralPartialEq">StructuralPartialEq</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-LayoutError"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-LayoutError"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-LayoutError"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-LayoutError"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-LayoutError"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-LayoutError"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-ToString-for-T"·title="ToString">ToString</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>alloc</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">alloc</a>::<wbr><a·href="index.html">alloc</a></span><h1>Struct·<span·class="struct">LayoutError</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.50.0">1.50.0</span>···<a·class="src"·href="../../src/core/alloc/layout.rs.html#547">Source</a>·</span></div><pre·class="rust·item-decl"><code><div·class="code-attribute">#[non_exhaustive]</div>pub·struct·LayoutError;</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>The·<code>LayoutError</code>·is·returned·when·the·parameters·given
2 to·<code>Layout::from_size_align</code>2 to·<code>Layout::from_size_align</code>
3 or·some·other·<code>Layout</code>·constructor3 or·some·other·<code>Layout</code>·constructor
4 do·not·satisfy·its·documented·constraints.</p>4 do·not·satisfy·its·documented·constraints.</p>
5 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-LayoutError"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.50.0">1.50.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/alloc/layout.rs.html#546">Source</a></span><a·href="#impl-Clone-for-LayoutError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"[·...·truncated·by·diffoscope;·len:·10797,·SHA:·b33e0f7d68cd42cc4bc4e520a189d925771d51172c9205b98bfd4df40e6d310e·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(_:·<a·class="struct"·href="struct.LayoutError.html"·title="struct·alloc::alloc::LayoutError">LayoutError</a>)·-&gt;·Self</h4></section></summary><div·class="docblock"><p>Always·evaluates·to·<a·href="../collections/enum.TryReserveErrorKind.html#variant.CapacityOverflow"·title="variant·alloc::collections::TryReserveErrorKind::CapacityOverflow"><code>TryReserveErrorKind::CapacityOverflow</code></a>.</p>5 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-LayoutError"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.50.0">1.50.0</span>···<a·class="src"·href="../../src/core/alloc/layout.rs.html#546">Source</a></span><a·href="#impl-Clone-for-LayoutError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·cla[·...·truncated·by·diffoscope;·len:·9798,·SHA:·29fabe79cd6aa605538b3df746a9b8ff5c1f63771819a8b24aa77905b8c23b1a·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(_:·<a·class="struct"·href="struct.LayoutError.html"·title="struct·alloc::alloc::LayoutError">LayoutError</a>)·-&gt;·Self</h4></section></summary><div·class="docblock"><p>Always·evaluates·to·<a·href="../collections/enum.TryReserveErrorKind.html#variant.CapacityOverflow"·title="variant·alloc::collections::TryReserveErrorKind::CapacityOverflow"><code>TryReserveErrorKind::CapacityOverflow</code></a>.</p>
6 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-PartialEq-for-LayoutError"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.50.0">1.50.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/alloc/layout.rs.html#546">Source</a></span><a·href="#impl-PartialEq-for-LayoutError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.PartialEq[·...·truncated·by·diffoscope;·len:·1646,·SHA:·d56d43df25cde75945dd428b5e287d74a24a0462d965fa966a4c1d1f4a90445e·...·]/core/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>!=</code>.·The·default·implementation·is·almost·always·sufficient,6 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-PartialEq-for-LayoutError"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.50.0">1.50.0</span>···<a·class="src"·href="../../src/core/alloc/layout.rs.html#546">Source</a></span><a·href="#impl-PartialEq-for-LayoutError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/cmp/trait.PartialEq.html"·title="trait·core::cmp::PartialEq">PartialEq</a[·...·truncated·by·diffoscope;·len:·1403,·SHA:·62960964ab8fec6541f59212eede81c6d268cda4ccc7733cecc2b433a418af8b·...·]/core/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>!=</code>.·The·default·implementation·is·almost·always·sufficient,
7 and·should·not·be·overridden·without·very·good·reason.</div></details></div></details><section·id="impl-Eq-for-LayoutError"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.50.0">1.50.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/alloc/layout.rs.html#546">Source</a></span><a·href="#impl-Eq-for-LayoutError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.Eq.html"·title="[·...·truncated·by·diffoscope;·len:·4011,·SHA:·9525d64f691e226936f9ff1ee4c81822404262396b2e660d790791d5e26fba8d·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where7 and·should·not·be·overridden·without·very·good·reason.</div></details></div></details><section·id="impl-Eq-for-LayoutError"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.50.0">1.50.0</span>···<a·class="src"·href="../../src/core/alloc/layout.rs.html#546">Source</a></span><a·href="#impl-Eq-for-LayoutError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/cmp/trait.Eq.html"·title="trait·core::cmp::Eq">Eq</a>·for·<a·class="struct"·href[·...·truncated·by·diffoscope;·len:·3687,·SHA:·fded6cdfb582366b4e8a39f4f24dd4fadeb499e9b8b466dad36514adc3bad4fc·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where
8 ····T:·'static·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method[·...·truncated·by·diffoscope;·len:·834,·SHA:·47dfc2aa0101a4103e2a94c1f971c559790d87a62d58631fd2bfed98e6616a34·...·]/src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where8 ····T:·'static·+·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·[·...·truncated·by·diffoscope;·len:·672,·SHA:·ace7a059971745d739c5abd9821e5d1d485cc233fd42150ceb251bdea1ce6bf7·...·]/src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where
9 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·[·...·truncated·by·diffoscope;·len:·737,·SHA:·9e65370662e77fc5c56c98c66a5dfda3c1d1244574dc8806ab91a8967514da78·...·]/src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.BorrowMut.html"·title="trait·alloc::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where9 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·r[·...·truncated·by·diffoscope;·len:·629,·SHA:·8e6f5d2e4a2830729c5d495459113ca6f54993696d7dc71c1f46e5691f5108ed·...·]/src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.BorrowMut.html"·title="trait·alloc::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where
10 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="met[·...·truncated·by·diffoscope;·len:·954,·SHA:·5ca69698d4bb8de1849b64ae87544dc0ec2bdd1a4d8dc75ba8d58b2c6c6a9ae6·...·]/core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where10 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="s[·...·truncated·by·diffoscope;·len:·819,·SHA:·3ca215d87d373be29774fff31d75c216034e4aa910e49de0e3fc5b88c46bc387·...·]/core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where
11 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="[·...·truncated·by·diffoscope;·len:·1887,·SHA:·ba94ba5d6d0e4b7d8ba0c28e24194af98f9ba69b26ff6f0caa0f8bd64350ebca·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>11 ····T:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·class[·...·truncated·by·diffoscope;·len:·1617,·SHA:·f630005bc959b6ed45da20c59691d16b5b655ba527fe218fe43e589a8a98da7d·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>
12 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where12 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where
13 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="m[·...·truncated·by·diffoscope;·len:·237,·SHA:·98603c35860102b3af9b5cf27aeabf39e3c03236551986a6ec030817f108d919·...·]/core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>13 ····U:·<a·class="trait"·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class=[·...·truncated·by·diffoscope;·len:·156,·SHA:·79561c49c77b14346871935198fc061d00c9e84705db975b0451f5fb4f6af9a0·...·]/core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>
14 <p>That·is,·this·conversion·is·whatever·the·implementation·of14 <p>That·is,·this·conversion·is·whatever·the·implementation·of
15 <code><a·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>15 <code><a·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>
16 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#82-94">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where16 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#82-94">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where
17 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·t[·...·truncated·by·diffoscope;·len:·1350,·SHA:·06ff485c70db27d96df4529c9aabc3407488a0d8b3f238ea19fe87222f3c0e93·...·]/core/primitive.reference.html">&amp;mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToString-for-T"·class="impl"><a·class="src·rightside"·href="../../src/alloc/string.rs.html#2677-2691">Source</a><a·href="#impl-ToString-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../string/trait.ToString.html"·title="trait·alloc::string::ToString">ToString</a>·for·T<div·class="where">where17 ····T:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src·ri[·...·truncated·by·diffoscope;·len:·1296,·SHA:·88285bd52e5f5ad6b3e1b6d101339ab4047bdbd5b9d568c1e216b159cf17296e·...·]/core/primitive.reference.html">&amp;mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToString-for-T"·class="impl"><a·class="src·rightside"·href="../../src/alloc/string.rs.html#2677-2691">Source</a><a·href="#impl-ToString-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../string/trait.ToString.html"·title="trait·alloc::string::ToString">ToString</a>·for·T<div·class="where">where
18 ····T:·<a·class="trait"·href="../fmt/trait.Display.html"·title="trait·alloc::fmt::Display">Display</a>·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.to_string"·class="meth[·...·truncated·by·diffoscope;·len:·956,·SHA:·5fb3fa997a6fe164f1c04c1d4cb696121571b376241266dc87e8079ebdfed810·...·]/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where18 ····T:·<a·class="trait"·href="../fmt/trait.Display.html"·title="trait·alloc::fmt::Display">Display</a>·+·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.to_string"·class="method·trait-impl"><a·class="sr[·...·truncated·by·diffoscope;·len:·875,·SHA:·e58967f6ca4eee938a4135856f0af0adfcd5abe0b4e62c194e5c506c603bfcf1·...·]/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where
19 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="asso[·...·truncated·by·diffoscope;·len:·1973,·SHA:·db4b8407e8e20581ad139aef25a6221a11da0f5f18d6aa35aa33eb843f4e1b9f·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where19 ····U:·<a·class="trait"·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·c[·...·truncated·by·diffoscope;·len:·1676,·SHA:·4c73b68f4fb433b5f24fbcd660156381e5dd9f46425d075b558b9b6ca0705f88·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where
20 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·clas[·...·truncated·by·diffoscope;·len:·1578,·SHA:·998d5af10fd889567cd999d1306bfd16c91134d2238a3c172f1e7fa8ed138c18·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>20 ····U:·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-imp[·...·truncated·by·diffoscope;·len:·1308,·SHA:·6741e462a0e1b36010204263b7580305663bb27f362987d14303068592f9f358·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>
46.8 KB
./usr/share/doc/rust-doc/html/alloc/alloc/trait.Allocator.html
    
Offset 1, 37 lines modifiedOffset 1, 37 lines modified
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="An·implementation·of·`Allocator`·can·allocate,·grow,·shrink,·and·deallocate·arbitrary·blocks·of·data·described·via·`Layout`."><title>Allocator·in·alloc::alloc·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»   2025-01-07)»(built»  from»      a»     source»       tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Allocator</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#currently-allocated-memory"·title="Currently·allocated·memory">Currently·allocated·memory</a></li><li><a·href="#memory-fitting"·title="Memory·fitting">Memory·fitting</a></li><li><a·href="#safety"·title="Safety">Safety</a></li></ul><h3><a·href="#required-methods">Required·Methods</a></h3><ul·class="block"><li><a·href="#tymethod.allocate"·title="allocate">allocate</a></li><li><a·href="#tymethod.deallocate"·title="deallocate">deallocate</a></li></ul><h3><a·href="#provided-methods">Provided·Methods</a></h3><ul·class="block"><li><a·href="#method.allocate_zeroed"·title="allocate_zeroed">allocate_zeroed</a></li><li><a·href="#method.by_ref"·title="by_ref">by_ref</a></li><li><a·href="#method.grow"·title="grow">grow</a></li><li><a·href="#method.grow_zeroed"·title="grow_zeroed">grow_zeroed</a></li><li><a·href="#method.shrink"·title="shrink">shrink</a></li></ul><h3><a·href="#implementors">Implementors</a></h3></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>alloc</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">alloc</a>::<wbr><a·href="index.html">alloc</a></span><h1>Trait·<span·class="trait">Allocator</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="https://doc.rust-lang.org/1.84.0/src/core/alloc/mod.rs.html#109">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·unsafe·trait·Allocator·{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="An·implementation·of·`Allocator`·can·allocate,·grow,·shrink,·and·deallocate·arbitrary·blocks·of·data·described·via·`Layout`."><title>Allocator·in·alloc::alloc·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»   2025-01-07)»(built»  from»      a»     source»       tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Allocator</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#currently-allocated-memory"·title="Currently·allocated·memory">Currently·allocated·memory</a></li><li><a·href="#memory-fitting"·title="Memory·fitting">Memory·fitting</a></li><li><a·href="#safety"·title="Safety">Safety</a></li></ul><h3><a·href="#required-methods">Required·Methods</a></h3><ul·class="block"><li><a·href="#tymethod.allocate"·title="allocate">allocate</a></li><li><a·href="#tymethod.deallocate"·title="deallocate">deallocate</a></li></ul><h3><a·href="#provided-methods">Provided·Methods</a></h3><ul·class="block"><li><a·href="#method.allocate_zeroed"·title="allocate_zeroed">allocate_zeroed</a></li><li><a·href="#method.by_ref"·title="by_ref">by_ref</a></li><li><a·href="#method.grow"·title="grow">grow</a></li><li><a·href="#method.grow_zeroed"·title="grow_zeroed">grow_zeroed</a></li><li><a·href="#method.shrink"·title="shrink">shrink</a></li></ul><h3><a·href="#implementors">Implementors</a></h3></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>alloc</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">alloc</a>::<wbr><a·href="index.html">alloc</a></span><h1>Trait·<span·class="trait">Allocator</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/core/alloc/mod.rs.html#109">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·unsafe·trait·Allocator·{
2 ····//·Required·methods2 ····//·Required·methods
3 ····fn·<a·href="#tymethod.allocate"·class="fn">allocate</a>(&amp;self,·layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="struct"·href="https://doc.rust-lang.org/1.84.0/core/ptr/non_null/struct.NonNull.html"·title="struct·core::ptr::non_null::NonNull">NonNu[·...·truncated·by·diffoscope;·len:·70,·SHA:·242a8643de213d5ba4aab67664a7846bf3b04cb18867fdae06ddf025a13f581e·...·]/core/primitive.u8.html">u8</a>]&gt;,·<a·class="struct"·href="struct.AllocError.html"·title="struct·alloc::alloc::AllocError">AllocError</a>&gt;;3 ····fn·<a·href="#tymethod.allocate"·class="fn">allocate</a>(&amp;self,·layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="struct"·href="../../core/ptr/non_null/struct.NonNull.html"·title="struct·core::ptr::non_null::NonNull">NonNull</a>&lt;[<a·class="primitive"·href="../../core/primitive.u8.html">u8</a>]&gt;,·<a·class="struct"·href="struct.AllocError.html"·title="struct·alloc::alloc::AllocError">AllocError</a>&gt;;
4 <span·class="item-spacer"></span>····unsafe·fn·<a·href="#tymethod.deallocate"·class="fn">deallocate</a>(&amp;self,·ptr:·<a·class="struct"·href="https://doc.rust-lang.org/1.84.0/core/ptr/non_null/struct.NonNull.html"·title="struct·core::ptr::non_null::NonNull">NonNull</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.u8.html">u8</a>&gt;,·layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>);4 <span·class="item-spacer"></span>····unsafe·fn·<a·href="#tymethod.deallocate"·class="fn">deallocate</a>(&amp;self,·ptr:·<a·class="struct"·href="../../core/ptr/non_null/struct.NonNull.html"·title="struct·core::ptr::non_null::NonNull">NonNull</a>&lt;<a·class="primitive"·href="../../core/primitive.u8.html">u8</a>&gt;,·layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>);
  
5 ····//·Provided·methods5 ····//·Provided·methods
6 ····fn·<a·href="#method.allocate_zeroed"·class="fn">allocate_zeroed</a>(6 ····fn·<a·href="#method.allocate_zeroed"·class="fn">allocate_zeroed</a>(
7 ········&amp;self,7 ········&amp;self,
8 ········layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>,8 ········layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>,
9 ····)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="struct"·href="https://doc.rust-lang.org/1.84.0/core/ptr/non_null/struct.NonNull.html"·title="struct·core::ptr::non_null::NonNull">NonNu[·...·truncated·by·diffoscope;·len:·70,·SHA:·242a8643de213d5ba4aab67664a7846bf3b04cb18867fdae06ddf025a13f581e·...·]/core/primitive.u8.html">u8</a>]&gt;,·<a·class="struct"·href="struct.AllocError.html"·title="struct·alloc::alloc::AllocError">AllocError</a>&gt;·{·...·}9 ····)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="struct"·href="../../core/ptr/non_null/struct.NonNull.html"·title="struct·core::ptr::non_null::NonNull">NonNull</a>&lt;[<a·class="primitive"·href="../../core/primitive.u8.html">u8</a>]&gt;,·<a·class="struct"·href="struct.AllocError.html"·title="struct·alloc::alloc::AllocError">AllocError</a>&gt;·{·...·}
10 <span·class="item-spacer"></span>····unsafe·fn·<a·href="#method.grow"·class="fn">grow</a>(10 <span·class="item-spacer"></span>····unsafe·fn·<a·href="#method.grow"·class="fn">grow</a>(
11 ········&amp;self,11 ········&amp;self,
12 ········ptr:·<a·class="struct"·href="https://doc.rust-lang.org/1.84.0/core/ptr/non_null/struct.NonNull.html"·title="struct·core::ptr::non_null::NonNull">NonNull</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.u8.html">u8</a>&gt;,12 ········ptr:·<a·class="struct"·href="../../core/ptr/non_null/struct.NonNull.html"·title="struct·core::ptr::non_null::NonNull">NonNull</a>&lt;<a·class="primitive"·href="../../core/primitive.u8.html">u8</a>&gt;,
13 ········old_layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>,13 ········old_layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>,
14 ········new_layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>,14 ········new_layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>,
15 ····)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="struct"·href="https://doc.rust-lang.org/1.84.0/core/ptr/non_null/struct.NonNull.html"·title="struct·core::ptr::non_null::NonNull">NonNu[·...·truncated·by·diffoscope;·len:·70,·SHA:·242a8643de213d5ba4aab67664a7846bf3b04cb18867fdae06ddf025a13f581e·...·]/core/primitive.u8.html">u8</a>]&gt;,·<a·class="struct"·href="struct.AllocError.html"·title="struct·alloc::alloc::AllocError">AllocError</a>&gt;·{·...·}15 ····)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="struct"·href="../../core/ptr/non_null/struct.NonNull.html"·title="struct·core::ptr::non_null::NonNull">NonNull</a>&lt;[<a·class="primitive"·href="../../core/primitive.u8.html">u8</a>]&gt;,·<a·class="struct"·href="struct.AllocError.html"·title="struct·alloc::alloc::AllocError">AllocError</a>&gt;·{·...·}
16 <span·class="item-spacer"></span>····unsafe·fn·<a·href="#method.grow_zeroed"·class="fn">grow_zeroed</a>(16 <span·class="item-spacer"></span>····unsafe·fn·<a·href="#method.grow_zeroed"·class="fn">grow_zeroed</a>(
17 ········&amp;self,17 ········&amp;self,
18 ········ptr:·<a·class="struct"·href="https://doc.rust-lang.org/1.84.0/core/ptr/non_null/struct.NonNull.html"·title="struct·core::ptr::non_null::NonNull">NonNull</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.u8.html">u8</a>&gt;,18 ········ptr:·<a·class="struct"·href="../../core/ptr/non_null/struct.NonNull.html"·title="struct·core::ptr::non_null::NonNull">NonNull</a>&lt;<a·class="primitive"·href="../../core/primitive.u8.html">u8</a>&gt;,
19 ········old_layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>,19 ········old_layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>,
20 ········new_layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>,20 ········new_layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>,
21 ····)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="struct"·href="https://doc.rust-lang.org/1.84.0/core/ptr/non_null/struct.NonNull.html"·title="struct·core::ptr::non_null::NonNull">NonNu[·...·truncated·by·diffoscope;·len:·70,·SHA:·242a8643de213d5ba4aab67664a7846bf3b04cb18867fdae06ddf025a13f581e·...·]/core/primitive.u8.html">u8</a>]&gt;,·<a·class="struct"·href="struct.AllocError.html"·title="struct·alloc::alloc::AllocError">AllocError</a>&gt;·{·...·}21 ····)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="struct"·href="../../core/ptr/non_null/struct.NonNull.html"·title="struct·core::ptr::non_null::NonNull">NonNull</a>&lt;[<a·class="primitive"·href="../../core/primitive.u8.html">u8</a>]&gt;,·<a·class="struct"·href="struct.AllocError.html"·title="struct·alloc::alloc::AllocError">AllocError</a>&gt;·{·...·}
22 <span·class="item-spacer"></span>····unsafe·fn·<a·href="#method.shrink"·class="fn">shrink</a>(22 <span·class="item-spacer"></span>····unsafe·fn·<a·href="#method.shrink"·class="fn">shrink</a>(
23 ········&amp;self,23 ········&amp;self,
24 ········ptr:·<a·class="struct"·href="https://doc.rust-lang.org/1.84.0/core/ptr/non_null/struct.NonNull.html"·title="struct·core::ptr::non_null::NonNull">NonNull</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.u8.html">u8</a>&gt;,24 ········ptr:·<a·class="struct"·href="../../core/ptr/non_null/struct.NonNull.html"·title="struct·core::ptr::non_null::NonNull">NonNull</a>&lt;<a·class="primitive"·href="../../core/primitive.u8.html">u8</a>&gt;,
25 ········old_layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>,25 ········old_layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>,
26 ········new_layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>,26 ········new_layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>,
27 ····)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="struct"·href="https://doc.rust-lang.org/1.84.0/core/ptr/non_null/struct.NonNull.html"·title="struct·core::ptr::non_null::NonNull">NonNu[·...·truncated·by·diffoscope;·len:·70,·SHA:·242a8643de213d5ba4aab67664a7846bf3b04cb18867fdae06ddf025a13f581e·...·]/core/primitive.u8.html">u8</a>]&gt;,·<a·class="struct"·href="struct.AllocError.html"·title="struct·alloc::alloc::AllocError">AllocError</a>&gt;·{·...·}27 ····)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="struct"·href="../../core/ptr/non_null/struct.NonNull.html"·title="struct·core::ptr::non_null::NonNull">NonNull</a>&lt;[<a·class="primitive"·href="../../core/primitive.u8.html">u8</a>]&gt;,·<a·class="struct"·href="struct.AllocError.html"·title="struct·alloc::alloc::AllocError">AllocError</a>&gt;·{·...·}
28 <span·class="item-spacer"></span>····fn·<a·href="#method.by_ref"·class="fn">by_ref</a>(&amp;self)·-&gt;·&amp;Self28 <span·class="item-spacer"></span>····fn·<a·href="#method.by_ref"·class="fn">by_ref</a>(&amp;self)·-&gt;·&amp;Self
29 ·······<span·class="where">where·Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a></span>·{·...·}29 ·······<span·class="where">where·Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a></span>·{·...·}
30 }</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>allocator_api</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/32838">#32838</a>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>An·implementation·of·<code>Allocator</code>·can·allocate,·grow,·shrink,·and·deallocate·arbitrary·blocks·of30 }</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>allocator_api</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/32838">#32838</a>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>An·implementation·of·<code>Allocator</code>·can·allocate,·grow,·shrink,·and·deallocate·arbitrary·blocks·of
31 data·described·via·<a·href="struct.Layout.html"·title="struct·alloc::alloc::Layout"><code>Layout</code></a>.</p>31 data·described·via·<a·href="struct.Layout.html"·title="struct·alloc::alloc::Layout"><code>Layout</code></a>.</p>
32 <p><code>Allocator</code>·is·designed·to·be·implemented·on·ZSTs,·references,·or·smart·pointers·because·having32 <p><code>Allocator</code>·is·designed·to·be·implemented·on·ZSTs,·references,·or·smart·pointers·because·having
33 an·allocator·like·<code>MyAlloc([u8;·N])</code>·cannot·be·moved,·without·updating·the·pointers·to·the33 an·allocator·like·<code>MyAlloc([u8;·N])</code>·cannot·be·moved,·without·updating·the·pointers·to·the
34 allocated·memory.</p>34 allocated·memory.</p>
35 <p>Unlike·<a·href="trait.GlobalAlloc.html"·title="trait·alloc::alloc::GlobalAlloc"><code>GlobalAlloc</code></a>,·zero-sized·allocations·are·allowed·in·<code>Allocator</code>.·If·an·underlying35 <p>Unlike·<a·href="trait.GlobalAlloc.html"·title="trait·alloc::alloc::GlobalAlloc"><code>GlobalAlloc</code></a>,·zero-sized·allocations·are·allowed·in·<code>Allocator</code>.·If·an·underlying
36 allocator·does·not·support·this·(like·jemalloc)·or·return·a·null·pointer·(such·as36 allocator·does·not·support·this·(like·jemalloc)·or·return·a·null·pointer·(such·as
Offset 83, 16 lines modifiedOffset 83, 16 lines modified
83 allocator.·A·copied·or·cloned·allocator·must·behave·like·the·same·allocator,·and</p>83 allocator.·A·copied·or·cloned·allocator·must·behave·like·the·same·allocator,·and</p>
84 </li>84 </li>
85 <li>85 <li>
86 <p>any·pointer·to·a·memory·block·which·is·<a·href="#currently-allocated-memory"><em>currently·allocated</em></a>·may·be·passed·to·any·other86 <p>any·pointer·to·a·memory·block·which·is·<a·href="#currently-allocated-memory"><em>currently·allocated</em></a>·may·be·passed·to·any·other
87 method·of·the·allocator.</p>87 method·of·the·allocator.</p>
88 </li>88 </li>
89 </ul>89 </ul>
90 </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.allocate"·class="method"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/alloc/mod.rs.html#134">Source</a><h4·class="code-header">fn·<a·href="#tymethod.allocate"·class="fn">allocate</a>(&amp;self,·layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">La[·...·truncated·by·diffoscope;·len:·364,·SHA:·c20bb81eaccf5a167eabfca2275bfa505688e060aa355c8cb68328201e4c3ab2·...·]/core/primitive.u8.html">u8</a>]&gt;,·<a·class="struct"·href="struct.AllocError.html"·title="struct·alloc::alloc::AllocError">AllocError</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>allocator_api</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/32838">#32838</a>)</span></div></span></summary><div·class="docblock"><p>Attempts·to·allocate·a·block·of·memory.</p>90 </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.allocate"·class="method"><a·class="src·rightside"·href="../../src/core/alloc/mod.rs.html#134">Source</a><h4·class="code-header">fn·<a·href="#tymethod.allocate"·class="fn">allocate</a>(&amp;self,·layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>)·-&gt;·<a·class="e[·...·truncated·by·diffoscope;·len:·256,·SHA:·b3df07ffc2dfb1e3f3065deb9a4d0d2b3c3eb37d927324a83b239c556ba8b1c3·...·]/core/primitive.u8.html">u8</a>]&gt;,·<a·class="struct"·href="struct.AllocError.html"·title="struct·alloc::alloc::AllocError">AllocError</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>allocator_api</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/32838">#32838</a>)</span></div></span></summary><div·class="docblock"><p>Attempts·to·allocate·a·block·of·memory.</p>
91 <p>On·success,·returns·a·<a·href="https://doc.rust-lang.org/1.84.0/core/ptr/non_null/struct.NonNull.html"·title="struct·core::ptr::non_null::NonNull"><code>NonNull&lt;[u8]&gt;</code></a>·meeting·the·size·and·alignment·guarantees·of·<code>layout</code>.</p>91 <p>On·success,·returns·a·<a·href="../../core/ptr/non_null/struct.NonNull.html"·title="struct·core::ptr::non_null::NonNull"><code>NonNull&lt;[u8]&gt;</code></a>·meeting·the·size·and·alignment·guarantees·of·<code>layout</code>.</p>
92 <p>The·returned·block·may·have·a·larger·size·than·specified·by·<code>layout.size()</code>,·and·may·or·may92 <p>The·returned·block·may·have·a·larger·size·than·specified·by·<code>layout.size()</code>,·and·may·or·may
93 not·have·its·contents·initialized.</p>93 not·have·its·contents·initialized.</p>
94 <p>The·returned·block·of·memory·remains·valid·as·long·as·it·is·[<em>currently·allocated</em>]·and·the·shorter·of:</p>94 <p>The·returned·block·of·memory·remains·valid·as·long·as·it·is·[<em>currently·allocated</em>]·and·the·shorter·of:</p>
95 <ul>95 <ul>
96 <li>the·borrow-checker·lifetime·of·the·allocator·type·itself.</li>96 <li>the·borrow-checker·lifetime·of·the·allocator·type·itself.</li>
97 <li>as·long·as·at·the·allocator·and·all·its·clones·has·not·been·dropped.</li>97 <li>as·long·as·at·the·allocator·and·all·its·clones·has·not·been·dropped.</li>
98 </ul>98 </ul>
Offset 100, 36 lines modifiedOffset 100, 36 lines modified
100 <p>Returning·<code>Err</code>·indicates·that·either·memory·is·exhausted·or·<code>layout</code>·does·not·meet100 <p>Returning·<code>Err</code>·indicates·that·either·memory·is·exhausted·or·<code>layout</code>·does·not·meet
101 allocator’s·size·or·alignment·constraints.</p>101 allocator’s·size·or·alignment·constraints.</p>
102 <p>Implementations·are·encouraged·to·return·<code>Err</code>·on·memory·exhaustion·rather·than·panicking·or102 <p>Implementations·are·encouraged·to·return·<code>Err</code>·on·memory·exhaustion·rather·than·panicking·or
103 aborting,·but·this·is·not·a·strict·requirement.·(Specifically:·it·is·<em>legal</em>·to·implement103 aborting,·but·this·is·not·a·strict·requirement.·(Specifically:·it·is·<em>legal</em>·to·implement
104 this·trait·atop·an·underlying·native·allocation·library·that·aborts·on·memory·exhaustion.)</p>104 this·trait·atop·an·underlying·native·allocation·library·that·aborts·on·memory·exhaustion.)</p>
105 <p>Clients·wishing·to·abort·computation·in·response·to·an·allocation·error·are·encouraged·to105 <p>Clients·wishing·to·abort·computation·in·response·to·an·allocation·error·are·encouraged·to
106 call·the·<a·href="../../alloc/alloc/fn.handle_alloc_error.html"><code>handle_alloc_error</code></a>·function,·rather·than·directly·invoking·<code>panic!</code>·or·similar.</p>106 call·the·<a·href="../../alloc/alloc/fn.handle_alloc_error.html"><code>handle_alloc_error</code></a>·function,·rather·than·directly·invoking·<code>panic!</code>·or·similar.</p>
107 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="tymethod.deallocate"·class="method"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/alloc/mod.rs.html#167">Source</a><h4·class="code-header">unsafe·fn·<a·href="#tymethod.deallocate"·class="fn">deallocate</a>(&amp;self,·ptr:·<a·class="struct"·href="https://doc.rust-lang.org/1.84.0/core/ptr/non_null[·...·truncated·by·diffoscope;·len:·140,·SHA:·cc1b35e8a51b737a5f45236edbf6a9f5d99438bd024ec8748d93ec915ff56542·...·]/core/primitive.u8.html">u8</a>&gt;,·layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>)</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>allocator_api</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/32838">#32838</a>)</span></div></span></summary><div·class="docblock"><p>Deallocates·the·memory·referenced·by·<code>ptr</code>.</p>107 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="tymethod.deallocate"·class="method"><a·class="src·rightside"·href="../../src/core/alloc/mod.rs.html#167">Source</a><h4·class="code-header">unsafe·fn·<a·href="#tymethod.deallocate"·class="fn">deallocate</a>(&amp;self,·ptr:·<a·class="struct"·href="../../core/ptr/non_null/struct.NonNull.html"·title="struct·core::ptr::non_nul[·...·truncated·by·diffoscope;·len:·59,·SHA:·9b2b66a6cb38c1523e2bd34be77d99d0455e0d73535ac0bbc409afa26868d2ad·...·]/core/primitive.u8.html">u8</a>&gt;,·layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>)</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>allocator_api</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/32838">#32838</a>)</span></div></span></summary><div·class="docblock"><p>Deallocates·the·memory·referenced·by·<code>ptr</code>.</p>
108 <h5·id="safety-1"><a·class="doc-anchor"·href="#safety-1">§</a>Safety</h5>108 <h5·id="safety-1"><a·class="doc-anchor"·href="#safety-1">§</a>Safety</h5>
109 <ul>109 <ul>
110 <li><code>ptr</code>·must·denote·a·block·of·memory·<a·href="#currently-allocated-memory"><em>currently·allocated</em></a>·via·this·allocator,·and</li>110 <li><code>ptr</code>·must·denote·a·block·of·memory·<a·href="#currently-allocated-memory"><em>currently·allocated</em></a>·via·this·allocator,·and</li>
111 <li><code>layout</code>·must·<a·href="#memory-fitting"><em>fit</em></a>·that·block·of·memory.</li>111 <li><code>layout</code>·must·<a·href="#memory-fitting"><em>fit</em></a>·that·block·of·memory.</li>
112 </ul>112 </ul>
113 </div></details></div><h2·id="provided-methods"·class="section-header">Provided·Methods<a·href="#provided-methods"·class="anchor">§</a></h2><div·class="methods"><details·class="toggle·method-toggle"·open><summary><section·id="method.allocate_zeroed"·class="method"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/alloc/mod.rs.html#151">Source</a><h4·class="code-header">fn·<a·href="#method.allocate_zeroed"·class="fn">allocate_zeroed</a>(&amp;self,·layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc[·...·truncated·by·diffoscope;·len:·376,·SHA:·1859b43a5eee3722e86608e172581217e869407f52cd04e5d9dba606fd90fabb·...·]/core/primitive.u8.html">u8</a>]&gt;,·<a·class="struct"·href="struct.AllocError.html"·title="struct·alloc::alloc::AllocError">AllocError</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>allocator_api</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/32838">#32838</a>)</span></div></span></summary><div·class="docblock"><p>Behaves·like·<code>allocate</code>,·but·also·ensures·that·the·returned·memory·is·zero-initialized.</p>113 </div></details></div><h2·id="provided-methods"·class="section-header">Provided·Methods<a·href="#provided-methods"·class="anchor">§</a></h2><div·class="methods"><details·class="toggle·method-toggle"·open><summary><section·id="method.allocate_zeroed"·class="method"><a·class="src·rightside"·href="../../src/core/alloc/mod.rs.html#151">Source</a><h4·class="code-header">fn·<a·href="#method.allocate_zeroed"·class="fn">allocate_zeroed</a>(&amp;self,·layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>)·-&gt;[·...·truncated·by·diffoscope;·len:·268,·SHA:·a07d53ef1e07fdd911876c353370d75eec1e1e09ecb0760f07c64fd32baa430b·...·]/core/primitive.u8.html">u8</a>]&gt;,·<a·class="struct"·href="struct.AllocError.html"·title="struct·alloc::alloc::AllocError">AllocError</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>allocator_api</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/32838">#32838</a>)</span></div></span></summary><div·class="docblock"><p>Behaves·like·<code>allocate</code>,·but·also·ensures·that·the·returned·memory·is·zero-initialized.</p>
114 <h5·id="errors-1"><a·class="doc-anchor"·href="#errors-1">§</a>Errors</h5>114 <h5·id="errors-1"><a·class="doc-anchor"·href="#errors-1">§</a>Errors</h5>
115 <p>Returning·<code>Err</code>·indicates·that·either·memory·is·exhausted·or·<code>layout</code>·does·not·meet115 <p>Returning·<code>Err</code>·indicates·that·either·memory·is·exhausted·or·<code>layout</code>·does·not·meet
116 allocator’s·size·or·alignment·constraints.</p>116 allocator’s·size·or·alignment·constraints.</p>
117 <p>Implementations·are·encouraged·to·return·<code>Err</code>·on·memory·exhaustion·rather·than·panicking·or117 <p>Implementations·are·encouraged·to·return·<code>Err</code>·on·memory·exhaustion·rather·than·panicking·or
118 aborting,·but·this·is·not·a·strict·requirement.·(Specifically:·it·is·<em>legal</em>·to·implement118 aborting,·but·this·is·not·a·strict·requirement.·(Specifically:·it·is·<em>legal</em>·to·implement
119 this·trait·atop·an·underlying·native·allocation·library·that·aborts·on·memory·exhaustion.)</p>119 this·trait·atop·an·underlying·native·allocation·library·that·aborts·on·memory·exhaustion.)</p>
120 <p>Clients·wishing·to·abort·computation·in·response·to·an·allocation·error·are·encouraged·to120 <p>Clients·wishing·to·abort·computation·in·response·to·an·allocation·error·are·encouraged·to
121 call·the·<a·href="../../alloc/alloc/fn.handle_alloc_error.html"><code>handle_alloc_error</code></a>·function,·rather·than·directly·invoking·<code>panic!</code>·or·similar.</p>121 call·the·<a·href="../../alloc/alloc/fn.handle_alloc_error.html"><code>handle_alloc_error</code></a>·function,·rather·than·directly·invoking·<code>panic!</code>·or·similar.</p>
122 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.grow"·class="method"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/alloc/mod.rs.html#207-212">Source</a><h4·class="code-header">unsafe·fn·<a·href="#method.grow"·class="fn">grow</a>(122 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.grow"·class="method"><a·class="src·rightside"·href="../../src/core/alloc/mod.rs.html#207-212">Source</a><h4·class="code-header">unsafe·fn·<a·href="#method.grow"·class="fn">grow</a>(
123 ····&amp;self,123 ····&amp;self,
124 ····ptr:·<a·class="struct"·href="https://doc.rust-lang.org/1.84.0/core/ptr/non_null/struct.NonNull.html"·title="struct·core::ptr::non_null::NonNull">NonNull</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.u8.html">u8</a>&gt;,124 ····ptr:·<a·class="struct"·href="../../core/ptr/non_null/struct.NonNull.html"·title="struct·core::ptr::non_null::NonNull">NonNull</a>&lt;<a·class="primitive"·href="../../core/primitive.u8.html">u8</a>&gt;,
125 ····old_layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>,125 ····old_layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>,
126 ····new_layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>,126 ····new_layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>,
127 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="struct"·href="https://doc.rust-lang.org/1.84.0/core/ptr/non_null/struct.NonNull.html"·title="struct·core::ptr::non_null::NonNull">NonNu[·...·truncated·by·diffoscope;·len:·70,·SHA:·242a8643de213d5ba4aab67664a7846bf3b04cb18867fdae06ddf025a13f581e·...·]/core/primitive.u8.html">u8</a>]&gt;,·<a·class="struct"·href="struct.AllocError.html"·title="struct·alloc::alloc::AllocError">AllocError</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>allocator_api</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/32838">#32838</a>)</span></div></span></summary><div·class="docblock"><p>Attempts·to·extend·the·memory·block.</p>127 )·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="struct"·href="../../core/ptr/non_null/struct.NonNull.html"·title="struct·core::ptr::non_null::NonNull">NonNull</a>&lt;[<a·class="primitive"·href="../../core/primitive.u8.html">u8</a>]&gt;,·<a·class="struct"·href="struct.AllocError.html"·title="struct·alloc::alloc::AllocError">AllocError</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>allocator_api</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/32838">#32838</a>)</span></div></span></summary><div·class="docblock"><p>Attempts·to·extend·the·memory·block.</p>
128 <p>Returns·a·new·<a·href="https://doc.rust-lang.org/1.84.0/core/ptr/non_null/struct.NonNull.html"·title="struct·core::ptr::non_null::NonNull"><code>NonNull&lt;[u8]&gt;</code></a>·containing·a·pointer·and·the·actual·size·of·the·allocated128 <p>Returns·a·new·<a·href="../../core/ptr/non_null/struct.NonNull.html"·title="struct·core::ptr::non_null::NonNull"><code>NonNull&lt;[u8]&gt;</code></a>·containing·a·pointer·and·the·actual·size·of·the·allocated
129 memory.·The·pointer·is·suitable·for·holding·data·described·by·<code>new_layout</code>.·To·accomplish129 memory.·The·pointer·is·suitable·for·holding·data·described·by·<code>new_layout</code>.·To·accomplish
130 this,·the·allocator·may·extend·the·allocation·referenced·by·<code>ptr</code>·to·fit·the·new·layout.</p>130 this,·the·allocator·may·extend·the·allocation·referenced·by·<code>ptr</code>·to·fit·the·new·layout.</p>
131 <p>If·this·returns·<code>Ok</code>,·then·ownership·of·the·memory·block·referenced·by·<code>ptr</code>·has·been131 <p>If·this·returns·<code>Ok</code>,·then·ownership·of·the·memory·block·referenced·by·<code>ptr</code>·has·been
132 transferred·to·this·allocator.·Any·access·to·the·old·<code>ptr</code>·is·Undefined·Behavior,·even·if·the132 transferred·to·this·allocator.·Any·access·to·the·old·<code>ptr</code>·is·Undefined·Behavior,·even·if·the
133 allocation·was·grown·in-place.·The·newly·returned·pointer·is·the·only·valid·pointer133 allocation·was·grown·in-place.·The·newly·returned·pointer·is·the·only·valid·pointer
134 for·accessing·this·memory·now.</p>134 for·accessing·this·memory·now.</p>
135 <p>If·this·method·returns·<code>Err</code>,·then·ownership·of·the·memory·block·has·not·been·transferred·to135 <p>If·this·method·returns·<code>Err</code>,·then·ownership·of·the·memory·block·has·not·been·transferred·to
Offset 145, 20 lines modifiedOffset 145, 20 lines modified
145 <p>Returns·<code>Err</code>·if·the·new·layout·does·not·meet·the·allocator’s·size·and·alignment145 <p>Returns·<code>Err</code>·if·the·new·layout·does·not·meet·the·allocator’s·size·and·alignment
146 constraints·of·the·allocator,·or·if·growing·otherwise·fails.</p>146 constraints·of·the·allocator,·or·if·growing·otherwise·fails.</p>
147 <p>Implementations·are·encouraged·to·return·<code>Err</code>·on·memory·exhaustion·rather·than·panicking·or147 <p>Implementations·are·encouraged·to·return·<code>Err</code>·on·memory·exhaustion·rather·than·panicking·or
148 aborting,·but·this·is·not·a·strict·requirement.·(Specifically:·it·is·<em>legal</em>·to·implement148 aborting,·but·this·is·not·a·strict·requirement.·(Specifically:·it·is·<em>legal</em>·to·implement
149 this·trait·atop·an·underlying·native·allocation·library·that·aborts·on·memory·exhaustion.)</p>149 this·trait·atop·an·underlying·native·allocation·library·that·aborts·on·memory·exhaustion.)</p>
150 <p>Clients·wishing·to·abort·computation·in·response·to·an·allocation·error·are·encouraged·to150 <p>Clients·wishing·to·abort·computation·in·response·to·an·allocation·error·are·encouraged·to
151 call·the·<a·href="../../alloc/alloc/fn.handle_alloc_error.html"><code>handle_alloc_error</code></a>·function,·rather·than·directly·invoking·<code>panic!</code>·or·similar.</p>151 call·the·<a·href="../../alloc/alloc/fn.handle_alloc_error.html"><code>handle_alloc_error</code></a>·function,·rather·than·directly·invoking·<code>panic!</code>·or·similar.</p>
152 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.grow_zeroed"·class="method"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/alloc/mod.rs.html#270-275">Source</a><h4·class="code-header">unsafe·fn·<a·href="#method.grow_zeroed"·class="fn">grow_zeroed</a>(152 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.grow_zeroed"·class="method"><a·class="src·rightside"·href="../../src/core/alloc/mod.rs.html#270-275">Source</a><h4·class="code-header">unsafe·fn·<a·href="#method.grow_zeroed"·class="fn">grow_zeroed</a>(
153 ····&amp;self,153 ····&amp;self,
154 ····ptr:·<a·class="struct"·href="https://doc.rust-lang.org/1.84.0/core/ptr/non_null/struct.NonNull.html"·title="struct·core::ptr::non_null::NonNull">NonNull</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.u8.html">u8</a>&gt;,154 ····ptr:·<a·class="struct"·href="../../core/ptr/non_null/struct.NonNull.html"·title="struct·core::ptr::non_null::NonNull">NonNull</a>&lt;<a·class="primitive"·href="../../core/primitive.u8.html">u8</a>&gt;,
155 ····old_layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>,155 ····old_layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>,
156 ····new_layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>,156 ····new_layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>,
157 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="struct"·href="https://doc.rust-lang.org/1.84.0/core/ptr/non_null/struct.NonNull.html"·title="struct·core::ptr::non_null::NonNull">NonNu[·...·truncated·by·diffoscope;·len:·70,·SHA:·242a8643de213d5ba4aab67664a7846bf3b04cb18867fdae06ddf025a13f581e·...·]/core/primitive.u8.html">u8</a>]&gt;,·<a·class="struct"·href="struct.AllocError.html"·title="struct·alloc::alloc::AllocError">AllocError</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>allocator_api</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/32838">#32838</a>)</span></div></span></summary><div·class="docblock"><p>Behaves·like·<code>grow</code>,·but·also·ensures·that·the·new·contents·are·set·to·zero·before·being157 )·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="struct"·href="../../core/ptr/non_null/struct.NonNull.html"·title="struct·core::ptr::non_null::NonNull">NonNull</a>&lt;[<a·class="primitive"·href="../../core/primitive.u8.html">u8</a>]&gt;,·<a·class="struct"·href="struct.AllocError.html"·title="struct·alloc::alloc::AllocError">AllocError</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>allocator_api</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/32838">#32838</a>)</span></div></span></summary><div·class="docblock"><p>Behaves·like·<code>grow</code>,·but·also·ensures·that·the·new·contents·are·set·to·zero·before·being
158 returned.</p>158 returned.</p>
159 <p>The·memory·block·will·contain·the·following·contents·after·a·successful·call·to159 <p>The·memory·block·will·contain·the·following·contents·after·a·successful·call·to
160 <code>grow_zeroed</code>:</p>160 <code>grow_zeroed</code>:</p>
161 <ul>161 <ul>
162 <li>Bytes·<code>0..old_layout.size()</code>·are·preserved·from·the·original·allocation.</li>162 <li>Bytes·<code>0..old_layout.size()</code>·are·preserved·from·the·original·allocation.</li>
163 <li>Bytes·<code>old_layout.size()..old_size</code>·will·either·be·preserved·or·zeroed,·depending·on163 <li>Bytes·<code>old_layout.size()..old_size</code>·will·either·be·preserved·or·zeroed,·depending·on
164 the·allocator·implementation.·<code>old_size</code>·refers·to·the·size·of·the·memory·block·prior164 the·allocator·implementation.·<code>old_size</code>·refers·to·the·size·of·the·memory·block·prior
Offset 178, 21 lines modifiedOffset 178, 21 lines modified
178 <p>Returns·<code>Err</code>·if·the·new·layout·does·not·meet·the·allocator’s·size·and·alignment178 <p>Returns·<code>Err</code>·if·the·new·layout·does·not·meet·the·allocator’s·size·and·alignment
179 constraints·of·the·allocator,·or·if·growing·otherwise·fails.</p>179 constraints·of·the·allocator,·or·if·growing·otherwise·fails.</p>
180 <p>Implementations·are·encouraged·to·return·<code>Err</code>·on·memory·exhaustion·rather·than·panicking·or180 <p>Implementations·are·encouraged·to·return·<code>Err</code>·on·memory·exhaustion·rather·than·panicking·or
181 aborting,·but·this·is·not·a·strict·requirement.·(Specifically:·it·is·<em>legal</em>·to·implement181 aborting,·but·this·is·not·a·strict·requirement.·(Specifically:·it·is·<em>legal</em>·to·implement
182 this·trait·atop·an·underlying·native·allocation·library·that·aborts·on·memory·exhaustion.)</p>182 this·trait·atop·an·underlying·native·allocation·library·that·aborts·on·memory·exhaustion.)</p>
183 <p>Clients·wishing·to·abort·computation·in·response·to·an·allocation·error·are·encouraged·to183 <p>Clients·wishing·to·abort·computation·in·response·to·an·allocation·error·are·encouraged·to
184 call·the·<a·href="../../alloc/alloc/fn.handle_alloc_error.html"><code>handle_alloc_error</code></a>·function,·rather·than·directly·invoking·<code>panic!</code>·or·similar.</p>184 call·the·<a·href="../../alloc/alloc/fn.handle_alloc_error.html"><code>handle_alloc_error</code></a>·function,·rather·than·directly·invoking·<code>panic!</code>·or·similar.</p>
185 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.shrink"·class="method"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/alloc/mod.rs.html#334-339">Source</a><h4·class="code-header">unsafe·fn·<a·href="#method.shrink"·class="fn">shrink</a>(185 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.shrink"·class="method"><a·class="src·rightside"·href="../../src/core/alloc/mod.rs.html#334-339">Source</a><h4·class="code-header">unsafe·fn·<a·href="#method.shrink"·class="fn">shrink</a>(
186 ····&amp;self,186 ····&amp;self,
187 ····ptr:·<a·class="struct"·href="https://doc.rust-lang.org/1.84.0/core/ptr/non_null/struct.NonNull.html"·title="struct·core::ptr::non_null::NonNull">NonNull</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.u8.html">u8</a>&gt;,187 ····ptr:·<a·class="struct"·href="../../core/ptr/non_null/struct.NonNull.html"·title="struct·core::ptr::non_null::NonNull">NonNull</a>&lt;<a·class="primitive"·href="../../core/primitive.u8.html">u8</a>&gt;,
188 ····old_layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>,188 ····old_layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>,
189 ····new_layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>,189 ····new_layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>,
190 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="struct"·href="https://doc.rust-lang.org/1.84.0/core/ptr/non_null/struct.NonNull.html"·title="struct·core::ptr::non_null::NonNull">NonNu[·...·truncated·by·diffoscope;·len:·70,·SHA:·242a8643de213d5ba4aab67664a7846bf3b04cb18867fdae06ddf025a13f581e·...·]/core/primitive.u8.html">u8</a>]&gt;,·<a·class="struct"·href="struct.AllocError.html"·title="struct·alloc::alloc::AllocError">AllocError</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>allocator_api</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/32838">#32838</a>)</span></div></span></summary><div·class="docblock"><p>Attempts·to·shrink·the·memory·block.</p>190 )·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="struct"·href="../../core/ptr/non_null/struct.NonNull.html"·title="struct·core::ptr::non_null::NonNull">NonNull</a>&lt;[<a·class="primitive"·href="../../core/primitive.u8.html">u8</a>]&gt;,·<a·class="struct"·href="struct.AllocError.html"·title="struct·alloc::alloc::AllocError">AllocError</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>allocator_api</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/32838">#32838</a>)</span></div></span></summary><div·class="docblock"><p>Attempts·to·shrink·the·memory·block.</p>
191 <p>Returns·a·new·<a·href="https://doc.rust-lang.org/1.84.0/core/ptr/non_null/struct.NonNull.html"·title="struct·core::ptr::non_null::NonNull"><code>NonNull&lt;[u8]&gt;</code></a>·containing·a·pointer·and·the·actual·size·of·the·allocated191 <p>Returns·a·new·<a·href="../../core/ptr/non_null/struct.NonNull.html"·title="struct·core::ptr::non_null::NonNull"><code>NonNull&lt;[u8]&gt;</code></a>·containing·a·pointer·and·the·actual·size·of·the·allocated
Max diff block lines reached; 5904/47808 bytes (12.35%) of diff not shown.
22.2 KB
./usr/share/doc/rust-doc/html/alloc/alloc/trait.GlobalAlloc.html
    
Offset 1, 20 lines modifiedOffset 1, 20 lines modified
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="A·memory·allocator·that·can·be·registered·as·the·standard·library’s·default·through·the·`#[global_allocator]`·attribute."><title>GlobalAlloc·in·alloc::alloc·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»    2025-01-07)» (built»   from»       a»      source»tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Global<wbr>Alloc</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#example"·title="Example">Example</a></li><li><a·href="#safety"·title="Safety">Safety</a></li></ul><h3><a·href="#required-methods">Required·Methods</a></h3><ul·class="block"><li><a·href="#tymethod.alloc"·title="alloc">alloc</a></li><li><a·href="#tymethod.dealloc"·title="dealloc">dealloc</a></li></ul><h3><a·href="#provided-methods">Provided·Methods</a></h3><ul·class="block"><li><a·href="#method.alloc_zeroed"·title="alloc_zeroed">alloc_zeroed</a></li><li><a·href="#method.realloc"·title="realloc">realloc</a></li></ul><h3><a·href="#implementors">Implementors</a></h3></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>alloc</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">alloc</a>::<wbr><a·href="index.html">alloc</a></span><h1>Trait·<span·class="trait">GlobalAlloc</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/alloc/global.rs.html#119">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·unsafe·trait·GlobalAlloc·{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="A·memory·allocator·that·can·be·registered·as·the·standard·library’s·default·through·the·`#[global_allocator]`·attribute."><title>GlobalAlloc·in·alloc::alloc·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»    2025-01-07)» (built»   from»       a»      source»tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Global<wbr>Alloc</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#example"·title="Example">Example</a></li><li><a·href="#safety"·title="Safety">Safety</a></li></ul><h3><a·href="#required-methods">Required·Methods</a></h3><ul·class="block"><li><a·href="#tymethod.alloc"·title="alloc">alloc</a></li><li><a·href="#tymethod.dealloc"·title="dealloc">dealloc</a></li></ul><h3><a·href="#provided-methods">Provided·Methods</a></h3><ul·class="block"><li><a·href="#method.alloc_zeroed"·title="alloc_zeroed">alloc_zeroed</a></li><li><a·href="#method.realloc"·title="realloc">realloc</a></li></ul><h3><a·href="#implementors">Implementors</a></h3></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>alloc</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">alloc</a>::<wbr><a·href="index.html">alloc</a></span><h1>Trait·<span·class="trait">GlobalAlloc</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../src/core/alloc/global.rs.html#119">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·unsafe·trait·GlobalAlloc·{
2 ····//·Required·methods2 ····//·Required·methods
3 ····unsafe·fn·<a·href="#tymethod.alloc"·class="fn">alloc</a>(&amp;self,·layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.pointer.html">*mut·</a><a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.u8.html">u8</a>;3 ····unsafe·fn·<a·href="#tymethod.alloc"·class="fn">alloc</a>(&amp;self,·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>;
4 <span·class="item-spacer"></span>····unsafe·fn·<a·href="#tymethod.dealloc"·class="fn">dealloc</a>(&amp;self,·ptr:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.pointer.html">*mut·</a><a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.u8.html">u8</a>,·layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>);4 <span·class="item-spacer"></span>····unsafe·fn·<a·href="#tymethod.dealloc"·class="fn">dealloc</a>(&amp;self,·ptr:·<a·class="primitive"·href="../../core/primitive.pointer.html">*mut·</a><a·class="primitive"·href="../../core/primitive.u8.html">u8</a>,·layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>);
  
5 ····//·Provided·methods5 ····//·Provided·methods
6 ····unsafe·fn·<a·href="#method.alloc_zeroed"·class="fn">alloc_zeroed</a>(&amp;self,·layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.pointer.html">*mut·</a><a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.u8.html">u8</a>·{·...·}6 ····unsafe·fn·<a·href="#method.alloc_zeroed"·class="fn">alloc_zeroed</a>(&amp;self,·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>·{·...·}
7 <span·class="item-spacer"></span>····unsafe·fn·<a·href="#method.realloc"·class="fn">realloc</a>(7 <span·class="item-spacer"></span>····unsafe·fn·<a·href="#method.realloc"·class="fn">realloc</a>(
8 ········&amp;self,8 ········&amp;self,
9 ········ptr:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.pointer.html">*mut·</a><a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.u8.html">u8</a>,9 ········ptr:·<a·class="primitive"·href="../../core/primitive.pointer.html">*mut·</a><a·class="primitive"·href="../../core/primitive.u8.html">u8</a>,
10 ········layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>,10 ········layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>,
11 ········new_size:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.usize.html">usize</a>,11 ········new_size:·<a·class="primitive"·href="../../core/primitive.usize.html">usize</a>,
12 ····)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.pointer.html">*mut·</a><a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.u8.html">u8</a>·{·...·}12 ····)·-&gt;·<a·class="primitive"·href="../../core/primitive.pointer.html">*mut·</a><a·class="primitive"·href="../../core/primitive.u8.html">u8</a>·{·...·}
13 }</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>A·memory·allocator·that·can·be·registered·as·the·standard·library’s·default13 }</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>A·memory·allocator·that·can·be·registered·as·the·standard·library’s·default
14 through·the·<code>#[global_allocator]</code>·attribute.</p>14 through·the·<code>#[global_allocator]</code>·attribute.</p>
15 <p>Some·of·the·methods·require·that·a·memory·block·be·<em>currently15 <p>Some·of·the·methods·require·that·a·memory·block·be·<em>currently
16 allocated</em>·via·an·allocator.·This·means·that:</p>16 allocated</em>·via·an·allocator.·This·means·that:</p>
17 <ul>17 <ul>
18 <li>18 <li>
19 <p>the·starting·address·for·that·memory·block·was·previously19 <p>the·starting·address·for·that·memory·block·was·previously
Offset 119, 15 lines modifiedOffset 119, 15 lines modified
119 optimization·that·can·be·applied.·You·may·generally·not·rely·on·heap·allocations119 optimization·that·can·be·applied.·You·may·generally·not·rely·on·heap·allocations
120 happening·if·they·can·be·removed·without·changing·program·behavior.120 happening·if·they·can·be·removed·without·changing·program·behavior.
121 Whether·allocations·happen·or·not·is·not·part·of·the·program·behavior,·even·if·it121 Whether·allocations·happen·or·not·is·not·part·of·the·program·behavior,·even·if·it
122 could·be·detected·via·an·allocator·that·tracks·allocations·by·printing·or·otherwise122 could·be·detected·via·an·allocator·that·tracks·allocations·by·printing·or·otherwise
123 having·side·effects.</p>123 having·side·effects.</p>
124 </li>124 </li>
125 </ul>125 </ul>
126 </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.alloc"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.28.0">1.28.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/alloc/global.rs.html#153">Source</a></span><h4·class="code-header">unsafe·fn·<a·href="#tymethod.alloc"·class="fn">alloc</a>(&amp;self,·layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc:[·...·truncated·by·diffoscope;·len:·184,·SHA:·ff1d991e1e08c7262fded75d586fb81584de8053a1164ff95ca68a29a03729aa·...·]/core/primitive.u8.html">u8</a></h4></section></summary><div·class="docblock"><p>Allocates·memory·as·described·by·the·given·<code>layout</code>.</p>126 </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.alloc"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.28.0">1.28.0</span>···<a·class="src"·href="../../src/core/alloc/global.rs.html#153">Source</a></span><h4·class="code-header">unsafe·fn·<a·href="#tymethod.alloc"·class="fn">alloc</a>(&amp;self,·layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>)·-&gt;·[·...·truncated·by·diffoscope;·len:·103,·SHA:·dc6ee2df066af87623441cb1cd9cf93de27e4d76721cc1548efeb3568e76169a·...·]/core/primitive.u8.html">u8</a></h4></section></summary><div·class="docblock"><p>Allocates·memory·as·described·by·the·given·<code>layout</code>.</p>
127 <p>Returns·a·pointer·to·newly-allocated·memory,127 <p>Returns·a·pointer·to·newly-allocated·memory,
128 or·null·to·indicate·allocation·failure.</p>128 or·null·to·indicate·allocation·failure.</p>
129 <h5·id="safety-1"><a·class="doc-anchor"·href="#safety-1">§</a>Safety</h5>129 <h5·id="safety-1"><a·class="doc-anchor"·href="#safety-1">§</a>Safety</h5>
130 <p><code>layout</code>·must·have·non-zero·size.·Attempting·to·allocate·for·a·zero-sized·<code>layout</code>·may130 <p><code>layout</code>·must·have·non-zero·size.·Attempting·to·allocate·for·a·zero-sized·<code>layout</code>·may
131 result·in·undefined·behavior.</p>131 result·in·undefined·behavior.</p>
132 <p>(Extension·subtraits·might·provide·more·specific·bounds·on132 <p>(Extension·subtraits·might·provide·more·specific·bounds·on
133 behavior,·e.g.,·guarantee·a·sentinel·address·or·a·null·pointer133 behavior,·e.g.,·guarantee·a·sentinel·address·or·a·null·pointer
Offset 140, 46 lines modifiedOffset 140, 46 lines modified
140 exhaustion·rather·than·aborting,·but·this·is·not140 exhaustion·rather·than·aborting,·but·this·is·not
141 a·strict·requirement.·(Specifically:·it·is·<em>legal</em>·to141 a·strict·requirement.·(Specifically:·it·is·<em>legal</em>·to
142 implement·this·trait·atop·an·underlying·native·allocation142 implement·this·trait·atop·an·underlying·native·allocation
143 library·that·aborts·on·memory·exhaustion.)</p>143 library·that·aborts·on·memory·exhaustion.)</p>
144 <p>Clients·wishing·to·abort·computation·in·response·to·an144 <p>Clients·wishing·to·abort·computation·in·response·to·an
145 allocation·error·are·encouraged·to·call·the·<a·href="../../alloc/alloc/fn.handle_alloc_error.html"><code>handle_alloc_error</code></a>·function,145 allocation·error·are·encouraged·to·call·the·<a·href="../../alloc/alloc/fn.handle_alloc_error.html"><code>handle_alloc_error</code></a>·function,
146 rather·than·directly·invoking·<code>panic!</code>·or·similar.</p>146 rather·than·directly·invoking·<code>panic!</code>·or·similar.</p>
147 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="tymethod.dealloc"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.28.0">1.28.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/alloc/global.rs.html#168">Source</a></span><h4·class="code-header">unsafe·fn·<a·href="#tymethod.dealloc"·class="fn">dealloc</a>(&amp;self,·ptr:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primi[·...·truncated·by·diffoscope;·len:·87,·SHA:·3de1457747e34b148eab77991e67a007c214bbfbf8b4ac948abbf990ab98e547·...·]/core/primitive.u8.html">u8</a>,·layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>)</h4></section></summary><div·class="docblock"><p>Deallocates·the·block·of·memory·at·the·given·<code>ptr</code>·pointer·with·the·given·<code>layout</code>.</p>147 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="tymethod.dealloc"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.28.0">1.28.0</span>···<a·class="src"·href="../../src/core/alloc/global.rs.html#168">Source</a></span><h4·class="code-header">unsafe·fn·<a·href="#tymethod.dealloc"·class="fn">dealloc</a>(&amp;self,·ptr:·<a·class="primitive"·href="../../core/primitive.pointer.html">*mut·</a><a·class="primitive"·href=[·...·truncated·by·diffoscope;·len:·6,·SHA:·fe467039c22668817abaeb2f863d68f75f95c02e83d950e3f51051d19c904946·...·]/core/primitive.u8.html">u8</a>,·layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>)</h4></section></summary><div·class="docblock"><p>Deallocates·the·block·of·memory·at·the·given·<code>ptr</code>·pointer·with·the·given·<code>layout</code>.</p>
148 <h5·id="safety-2"><a·class="doc-anchor"·href="#safety-2">§</a>Safety</h5>148 <h5·id="safety-2"><a·class="doc-anchor"·href="#safety-2">§</a>Safety</h5>
149 <p>The·caller·must·ensure:</p>149 <p>The·caller·must·ensure:</p>
150 <ul>150 <ul>
151 <li>151 <li>
152 <p><code>ptr</code>·is·a·block·of·memory·currently·allocated·via·this·allocator·and,</p>152 <p><code>ptr</code>·is·a·block·of·memory·currently·allocated·via·this·allocator·and,</p>
153 </li>153 </li>
154 <li>154 <li>
155 <p><code>layout</code>·is·the·same·layout·that·was·used·to·allocate·that·block·of155 <p><code>layout</code>·is·the·same·layout·that·was·used·to·allocate·that·block·of
156 memory.</p>156 memory.</p>
157 </li>157 </li>
158 </ul>158 </ul>
159 <p>Otherwise·undefined·behavior·can·result.</p>159 <p>Otherwise·undefined·behavior·can·result.</p>
160 </div></details></div><h2·id="provided-methods"·class="section-header">Provided·Methods<a·href="#provided-methods"·class="anchor">§</a></h2><div·class="methods"><details·class="toggle·method-toggle"·open><summary><section·id="method.alloc_zeroed"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.28.0">1.28.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/alloc/global.rs.html#191">Source</a></span><h4·class="code-header">unsafe·fn·<a·href="#method.alloc_zeroed"·class="fn">alloc_zeroed</a>(&amp;self,·layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·a[·...·truncated·by·diffoscope;·len:·196,·SHA:·4a95c3effa10d81fbb9531cb47e7772a58d681d1f26f8c0c81b6968acd71a56c·...·]/core/primitive.u8.html">u8</a></h4></section></summary><div·class="docblock"><p>Behaves·like·<code>alloc</code>,·but·also·ensures·that·the·contents160 </div></details></div><h2·id="provided-methods"·class="section-header">Provided·Methods<a·href="#provided-methods"·class="anchor">§</a></h2><div·class="methods"><details·class="toggle·method-toggle"·open><summary><section·id="method.alloc_zeroed"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.28.0">1.28.0</span>···<a·class="src"·href="../../src/core/alloc/global.rs.html#191">Source</a></span><h4·class="code-header">unsafe·fn·<a·href="#method.alloc_zeroed"·class="fn">alloc_zeroed</a>(&amp;self,·layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout[·...·truncated·by·diffoscope;·len:·115,·SHA:·9d61af6c0039d660b6200837a076ca7a3babefd3ccfaf92114a476d88e71773c·...·]/core/primitive.u8.html">u8</a></h4></section></summary><div·class="docblock"><p>Behaves·like·<code>alloc</code>,·but·also·ensures·that·the·contents
161 are·set·to·zero·before·being·returned.</p>161 are·set·to·zero·before·being·returned.</p>
162 <h5·id="safety-3"><a·class="doc-anchor"·href="#safety-3">§</a>Safety</h5>162 <h5·id="safety-3"><a·class="doc-anchor"·href="#safety-3">§</a>Safety</h5>
163 <p>The·caller·has·to·ensure·that·<code>layout</code>·has·non-zero·size.·Like·<code>alloc</code>163 <p>The·caller·has·to·ensure·that·<code>layout</code>·has·non-zero·size.·Like·<code>alloc</code>
164 zero·sized·<code>layout</code>·can·result·in·undefined·behavior.164 zero·sized·<code>layout</code>·can·result·in·undefined·behavior.
165 However·the·allocated·block·of·memory·is·guaranteed·to·be·initialized.</p>165 However·the·allocated·block·of·memory·is·guaranteed·to·be·initialized.</p>
166 <h5·id="errors-1"><a·class="doc-anchor"·href="#errors-1">§</a>Errors</h5>166 <h5·id="errors-1"><a·class="doc-anchor"·href="#errors-1">§</a>Errors</h5>
167 <p>Returning·a·null·pointer·indicates·that·either·memory·is·exhausted167 <p>Returning·a·null·pointer·indicates·that·either·memory·is·exhausted
168 or·<code>layout</code>·does·not·meet·allocator’s·size·or·alignment·constraints,168 or·<code>layout</code>·does·not·meet·allocator’s·size·or·alignment·constraints,
169 just·as·in·<code>alloc</code>.</p>169 just·as·in·<code>alloc</code>.</p>
170 <p>Clients·wishing·to·abort·computation·in·response·to·an170 <p>Clients·wishing·to·abort·computation·in·response·to·an
171 allocation·error·are·encouraged·to·call·the·<a·href="../../alloc/alloc/fn.handle_alloc_error.html"><code>handle_alloc_error</code></a>·function,171 allocation·error·are·encouraged·to·call·the·<a·href="../../alloc/alloc/fn.handle_alloc_error.html"><code>handle_alloc_error</code></a>·function,
172 rather·than·directly·invoking·<code>panic!</code>·or·similar.</p>172 rather·than·directly·invoking·<code>panic!</code>·or·similar.</p>
173 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.realloc"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.28.0">1.28.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/alloc/global.rs.html#261">Source</a></span><h4·class="code-header">unsafe·fn·<a·href="#method.realloc"·class="fn">realloc</a>(173 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.realloc"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.28.0">1.28.0</span>···<a·class="src"·href="../../src/core/alloc/global.rs.html#261">Source</a></span><h4·class="code-header">unsafe·fn·<a·href="#method.realloc"·class="fn">realloc</a>(
174 ····&amp;self,174 ····&amp;self,
175 ····ptr:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.pointer.html">*mut·</a><a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.u8.html">u8</a>,175 ····ptr:·<a·class="primitive"·href="../../core/primitive.pointer.html">*mut·</a><a·class="primitive"·href="../../core/primitive.u8.html">u8</a>,
176 ····layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>,176 ····layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>,
177 ····new_size:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.usize.html">usize</a>,177 ····new_size:·<a·class="primitive"·href="../../core/primitive.usize.html">usize</a>,
178 )·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.pointer.html">*mut·</a><a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.u8.html">u8</a></h4></section></summary><div·class="docblock"><p>Shrinks·or·grows·a·block·of·memory·to·the·given·<code>new_size</code>·in·bytes.178 )·-&gt;·<a·class="primitive"·href="../../core/primitive.pointer.html">*mut·</a><a·class="primitive"·href="../../core/primitive.u8.html">u8</a></h4></section></summary><div·class="docblock"><p>Shrinks·or·grows·a·block·of·memory·to·the·given·<code>new_size</code>·in·bytes.
179 The·block·is·described·by·the·given·<code>ptr</code>·pointer·and·<code>layout</code>.</p>179 The·block·is·described·by·the·given·<code>ptr</code>·pointer·and·<code>layout</code>.</p>
180 <p>If·this·returns·a·non-null·pointer,·then·ownership·of·the·memory·block180 <p>If·this·returns·a·non-null·pointer,·then·ownership·of·the·memory·block
181 referenced·by·<code>ptr</code>·has·been·transferred·to·this·allocator.181 referenced·by·<code>ptr</code>·has·been·transferred·to·this·allocator.
182 Any·access·to·the·old·<code>ptr</code>·is·Undefined·Behavior,·even·if·the182 Any·access·to·the·old·<code>ptr</code>·is·Undefined·Behavior,·even·if·the
183 allocation·remained·in-place.·The·newly·returned·pointer·is·the·only·valid·pointer183 allocation·remained·in-place.·The·newly·returned·pointer·is·the·only·valid·pointer
184 for·accessing·this·memory·now.</p>184 for·accessing·this·memory·now.</p>
185 <p>The·new·memory·block·is·allocated·with·<code>layout</code>,185 <p>The·new·memory·block·is·allocated·with·<code>layout</code>,
8.03 KB
./usr/share/doc/rust-doc/html/alloc/alloc/type.LayoutErr.html
    
Offset 1, 1 lines modifiedOffset 1, 1 lines modified
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="API·documentation·for·the·Rust·`LayoutErr`·type·in·crate·`alloc`."><title>LayoutErr·in·alloc::alloc·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·type"><!--[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><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»2025-01-07)»     (built»       from»   a»  source»    tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Layout<wbr>Err</a></h2><h3><a·href="#aliased-type">Aliased·type</a></h3></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>alloc</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">alloc</a>::<wbr><a·href="index.html">alloc</a></span><h1>Type·Alias·<span·class="type">LayoutErr</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/alloc/layout.rs.html#538">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·type·LayoutErr·=·<a·class="struct"·href="struct.LayoutError.html"·title="struct·alloc::alloc::LayoutError">LayoutError</a>;</code></pre><span·class="item-info"><div·class="stab·deprecated"><span·class="emoji">👎</span><span>Deprecated·since·1.52.0:·Name·does·not·follow·std·convention,·use·LayoutError</span></div></span><h2·id="aliased-type"·class="section-header">Aliased·Type<a·href="#aliased-type"·class="anchor">§</a></h2><pre·class="rust·item-decl"><code>struct·LayoutErr;</code></pre><script·src="../../type.impl/alloc/alloc/struct.LayoutError.js"·data-self-path="alloc::alloc::LayoutErr"·async></script></section></div></main></body></html>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="API·documentation·for·the·Rust·`LayoutErr`·type·in·crate·`alloc`."><title>LayoutErr·in·alloc::alloc·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·type"><!--[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><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»2025-01-07)»     (built»       from»   a»  source»    tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Layout<wbr>Err</a></h2><h3><a·href="#aliased-type">Aliased·type</a></h3></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>alloc</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">alloc</a>::<wbr><a·href="index.html">alloc</a></span><h1>Type·Alias·<span·class="type">LayoutErr</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../src/core/alloc/layout.rs.html#538">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·type·LayoutErr·=·<a·class="struct"·href="struct.LayoutError.html"·title="struct·alloc::alloc::LayoutError">LayoutError</a>;</code></pre><span·class="item-info"><div·class="stab·deprecated"><span·class="emoji">👎</span><span>Deprecated·since·1.52.0:·Name·does·not·follow·std·convention,·use·LayoutError</span></div></span><h2·id="aliased-type"·class="section-header">Aliased·Type<a·href="#aliased-type"·class="anchor">§</a></h2><pre·class="rust·item-decl"><code>struct·LayoutErr;</code></pre><script·src="../../type.impl/alloc/alloc/struct.LayoutError.js"·data-self-path="alloc::alloc::LayoutErr"·async></script></section></div></main></body></html>
310 KB
./usr/share/doc/rust-doc/html/alloc/borrow/enum.Cow.html
    
Offset 1, 10 lines modifiedOffset 1, 10 lines modified
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="A·clone-on-write·smart·pointer."><title>Cow·in·alloc::borrow·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·enum"><!--[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><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312» 2025-01-07)»      (built»from»    a»   source»     tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Cow</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#examples"·title="Examples">Examples</a></li></ul><h3><a·href="#variants">Variants</a></h3><ul·class="block·variant"><li><a·href="#variant.Borrowed"·title="Borrowed">Borrowed</a></li><li><a·href="#variant.Owned"·title="Owned">Owned</a></li></ul><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.into_owned"·title="into_owned">into_owned</a></li><li><a·href="#method.is_borrowed"·title="is_borrowed">is_borrowed</a></li><li><a·href="#method.is_owned"·title="is_owned">is_owned</a></li><li><a·href="#method.to_mut"·title="to_mut">to_mut</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Add-for-Cow%3C'a,+str%3E"·title="Add">Add</a></li><li><a·href="#impl-Add%3C%26str%3E-for-Cow%3C'a,+str%3E"·title="Add&#60;&#38;&#39;a·str&#62;">Add&#60;&#38;&#39;a·str&#62;</a></li><li><a·href="#impl-AddAssign-for-Cow%3C'a,+str%3E"·title="AddAssign">AddAssign</a></li><li><a·href="#impl-AddAssign%3C%26str%3E-for-Cow%3C'a,+str%3E"·title="AddAssign&#60;&#38;&#39;a·str&#62;">AddAssign&#60;&#38;&#39;a·str&#62;</a></li><li><a·href="#impl-AsRef%3CT%3E-for-Cow%3C'_,+T%3E"·title="AsRef&#60;T&#62;">AsRef&#60;T&#62;</a></li><li><a·href="#impl-Borrow%3CB%3E-for-Cow%3C'a,+B%3E"·title="Borrow&#60;B&#62;">Borrow&#60;B&#62;</a></li><li><a·href="#impl-Clone-for-Cow%3C'_,+B%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-Cow%3C'_,+B%3E"·title="Debug">Debug</a></li><li><a·href="#impl-Default-for-Cow%3C'_,+B%3E"·title="Default">Default</a></li><li><a·href="#impl-Deref-for-Cow%3C'_,+B%3E"·title="Deref">Deref</a></li><li><a·href="#impl-DerefPure-for-Cow%3C'_,+B%3E"·title="DerefPure">DerefPure</a></li><li><a·href="#impl-Display-for-Cow%3C'_,+B%3E"·title="Display">Display</a></li><li><a·href="#impl-Eq-for-Cow%3C'_,+B%3E"·title="Eq">Eq</a></li><li><a·href="#impl-Extend%3CCow%3C'a,+str%3E%3E-for-String"·title="Extend&#60;Cow&#60;&#39;a,·str&#62;&#62;">Extend&#60;Cow&#60;&#39;a,·str&#62;&#62;</a></li><li><a·href="#impl-From%3C%26CStr%3E-for-Cow%3C'a,+CStr%3E"·title="From&#60;&#38;&#39;a·CStr&#62;">From&#60;&#38;&#39;a·CStr&#62;</a></li><li><a·href="#impl-From%3C%26CString%3E-for-Cow%3C'a,+CStr%3E"·title="From&#60;&#38;&#39;a·CString&#62;">From&#60;&#38;&#39;a·CString&#62;</a></li><li><a·href="#impl-From%3C%26String%3E-for-Cow%3C'a,+str%3E"·title="From&#60;&#38;&#39;a·String&#62;">From&#60;&#38;&#39;a·String&#62;</a></li><li><a·href="#impl-From%3C%26Vec%3CT%3E%3E-for-Cow%3C'a,+%5BT%5D%3E"·title="From&#60;&#38;&#39;a·Vec&#60;T&#62;&#62;">From&#60;&#38;&#39;a·Vec&#60;T&#62;&#62;</a></li><li><a·href="#impl-From%3C%26%5BT;+N%5D%3E-for-Cow%3C'a,+%5BT%5D%3E"·title="From&#60;&#38;&#39;a·[T;·N]&#62;">From&#60;&#38;&#39;a·[T;·N]&#62;</a></li><li><a·href="#impl-From%3C%26%5BT%5D%3E-for-Cow%3C'a,+%5BT%5D%3E"·title="From&#60;&#38;&#39;a·[T]&#62;">From&#60;&#38;&#39;a·[T]&#62;</a></li><li><a·href="#impl-From%3C%26str%3E-for-Cow%3C'a,+str%3E"·title="From&#60;&#38;&#39;a·str&#62;">From&#60;&#38;&#39;a·str&#62;</a></li><li><a·href="#impl-From%3CCString%3E-for-Cow%3C'a,+CStr%3E"·title="From&#60;CString&#62;">From&#60;CString&#62;</a></li><li><a·href="#impl-From%3CCow%3C'_,+CStr%3E%3E-for-Box%3CCStr%3E"·title="From&#60;Cow&#60;&#39;_,·CStr&#62;&#62;">From&#60;Cow&#60;&#39;_,·CStr&#62;&#62;</a></li><li><a·href="#impl-From%3CCow%3C'_,+%5BT%5D%3E%3E-for-Box%3C%5BT%5D%3E"·title="From&#60;Cow&#60;&#39;_,·[T]&#62;&#62;">From&#60;Cow&#60;&#39;_,·[T]&#62;&#62;</a></li><li><a·href="#impl-From%3CCow%3C'_,+str%3E%3E-for-Box%3Cstr%3E"·title="From&#60;Cow&#60;&#39;_,·str&#62;&#62;">From&#60;Cow&#60;&#39;_,·str&#62;&#62;</a></li><li><a·href="#impl-From%3CCow%3C'a,+B%3E%3E-for-Arc%3CB%3E"·title="From&#60;Cow&#60;&#39;a,·B&#62;&#62;">From&#60;Cow&#60;&#39;a,·B&#62;&#62;</a></li><li><a·href="#impl-From%3CCow%3C'a,+B%3E%3E-for-Rc%3CB%3E"·title="From&#60;Cow&#60;&#39;a,·B&#62;&#62;">From&#60;Cow&#60;&#39;a,·B&#62;&#62;</a></li><li><a·href="#impl-From%3CCow%3C'a,+CStr%3E%3E-for-CString"·title="From&#60;Cow&#60;&#39;a,·CStr&#62;&#62;">From&#60;Cow&#60;&#39;a,·CStr&#62;&#62;</a></li><li><a·href="#impl-From%3CCow%3C'a,+%5BT%5D%3E%3E-for-Vec%3CT%3E"·title="From&#60;Cow&#60;&#39;a,·[T]&#62;&#62;">From&#60;Cow&#60;&#39;a,·[T]&#62;&#62;</a></li><li><a·href="#impl-From%3CCow%3C'a,+str%3E%3E-for-String"·title="From&#60;Cow&#60;&#39;a,·str&#62;&#62;">From&#60;Cow&#60;&#39;a,·str&#62;&#62;</a></li><li><a·href="#impl-From%3CCow%3C'b,+str%3E%3E-for-Box%3Cdyn+Error%3E"·title="From&#60;Cow&#60;&#39;b,·str&#62;&#62;">From&#60;Cow&#60;&#39;b,·str&#62;&#62;</a></li><li><a·href="#impl-From%3CCow%3C'b,+str%3E%3E-for-Box%3Cdyn+Error+%2B+Send+%2B+Sync%3E"·title="From&#60;Cow&#60;&#39;b,·str&#62;&#62;">From&#60;Cow&#60;&#39;b,·str&#62;&#62;</a></li><li><a·href="#impl-From%3CString%3E-for-Cow%3C'a,+str%3E"·title="From&#60;String&#62;">From&#60;String&#62;</a></li><li><a·href="#impl-From%3CVec%3CT%3E%3E-for-Cow%3C'a,+%5BT%5D%3E"·title="From&#60;Vec&#60;T&#62;&#62;">From&#60;Vec&#60;T&#62;&#62;</a></li><li><a·href="#impl-FromIterator%3C%26str%3E-for-Cow%3C'a,+str%3E"·title="FromIterator&#60;&#38;&#39;b·str&#62;">FromIterator&#60;&#38;&#39;b·str&#62;</a></li><li><a·href="#impl-FromIterator%3CCow%3C'a,+str%3E%3E-for-Box%3Cstr%3E"·title="FromIterator&#60;Cow&#60;&#39;a,·str&#62;&#62;">FromIterator&#60;Cow&#60;&#39;a,·str&#62;&#62;</a></li><li><a·href="#impl-FromIterator%3CCow%3C'a,+str%3E%3E-for-String"·title="FromIterator&#60;Cow&#60;&#39;a,·str&#62;&#62;">FromIterator&#60;Cow&#60;&#39;a,·str&#62;&#62;</a></li><li><a·href="#impl-FromIterator%3CString%3E-for-Cow%3C'a,+str%3E"·title="FromIterator&#60;String&#62;">FromIterator&#60;String&#62;</a></li><li><a·href="#impl-FromIterator%3CT%3E-for-Cow%3C'a,+%5BT%5D%3E"·title="FromIterator&#60;T&#62;">FromIterator&#60;T&#62;</a></li><li><a·href="#impl-FromIterator%3Cchar%3E-for-Cow%3C'a,+str%3E"·title="FromIterator&#60;char&#62;">FromIterator&#60;char&#62;</a></li><li><a·href="#impl-Hash-for-Cow%3C'_,+B%3E"·title="Hash">Hash</a></li><li><a·href="#impl-Ord-for-Cow%3C'_,+B%3E"·title="Ord">Ord</a></li><li><a·href="#impl-PartialEq%3C%26str%3E-for-Cow%3C'a,+str%3E"·title="PartialEq&#60;&#38;&#39;b·str&#62;">PartialEq&#60;&#38;&#39;b·str&#62;</a></li><li><a·href="#impl-PartialEq%3C%26%5BU%5D%3E-for-Cow%3C'_,+%5BT%5D%3E"·title="PartialEq&#60;&#38;[U]&#62;">PartialEq&#60;&#38;[U]&#62;</a></li><li><a·href="#impl-PartialEq%3C%26mut+%5BU%5D%3E-for-Cow%3C'_,+%5BT%5D%3E"·title="PartialEq&#60;&#38;mut·[U]&#62;">PartialEq&#60;&#38;mut·[U]&#62;</a></li><li><a·href="#impl-PartialEq%3CCow%3C'a,+str%3E%3E-for-%26str"·title="PartialEq&#60;Cow&#60;&#39;a,·str&#62;&#62;">PartialEq&#60;Cow&#60;&#39;a,·str&#62;&#62;</a></li><li><a·href="#impl-PartialEq%3CCow%3C'a,+str%3E%3E-for-String"·title="PartialEq&#60;Cow&#60;&#39;a,·str&#62;&#62;">PartialEq&#60;Cow&#60;&#39;a,·str&#62;&#62;</a></li><li><a·href="#impl-PartialEq%3CCow%3C'a,+str%3E%3E-for-str"·title="PartialEq&#60;Cow&#60;&#39;a,·str&#62;&#62;">PartialEq&#60;Cow&#60;&#39;a,·str&#62;&#62;</a></li><li><a·href="#impl-PartialEq%3CCow%3C'b,+C%3E%3E-for-Cow%3C'a,+B%3E"·title="PartialEq&#60;Cow&#60;&#39;b,·C&#62;&#62;">PartialEq&#60;Cow&#60;&#39;b,·C&#62;&#62;</a></li><li><a·href="#impl-PartialEq%3CString%3E-for-Cow%3C'a,+str%3E"·title="PartialEq&#60;String&#62;">PartialEq&#60;String&#62;</a></li><li><a·href="#impl-PartialEq%3CVec%3CU,+A%3E%3E-for-Cow%3C'_,+%5BT%5D%3E"·title="PartialEq&#60;Vec&#60;U,·A&#62;&#62;">PartialEq&#60;Vec&#60;U,·A&#62;&#62;</a></li><li><a·href="#impl-PartialEq%3Cstr%3E-for-Cow%3C'a,+str%3E"·title="PartialEq&#60;str&#62;">PartialEq&#60;str&#62;</a></li><li><a·href="#impl-PartialOrd-for-Cow%3C'a,+B%3E"·title="PartialOrd">PartialOrd</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-Cow%3C'a,+B%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Cow%3C'a,+B%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Cow%3C'a,+B%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-Cow%3C'a,+B%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-Cow%3C'a,+B%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Cow%3C'a,+B%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-Receiver-for-P"·title="Receiver">Receiver</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-ToString-for-T"·title="ToString">ToString</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>borrow</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">alloc</a>::<wbr><a·href="index.html">borrow</a></span><h1>Enum·<span·class="enum">Cow</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../src/alloc/borrow.rs.html#179-190">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·enum·Cow&lt;'a,·B&gt;<div·class="where">where1 <!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·clone-on-write·smart·pointer."><title>Cow·in·alloc::borrow·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·enum"><!--[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><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312» 2025-01-07)»      (built»from»    a»   source»     tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Cow</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#examples"·title="Examples">Examples</a></li></ul><h3><a·href="#variants">Variants</a></h3><ul·class="block·variant"><li><a·href="#variant.Borrowed"·title="Borrowed">Borrowed</a></li><li><a·href="#variant.Owned"·title="Owned">Owned</a></li></ul><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.into_owned"·title="into_owned">into_owned</a></li><li><a·href="#method.is_borrowed"·title="is_borrowed">is_borrowed</a></li><li><a·href="#method.is_owned"·title="is_owned">is_owned</a></li><li><a·href="#method.to_mut"·title="to_mut">to_mut</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Add-for-Cow%3C'a,+str%3E"·title="Add">Add</a></li><li><a·href="#impl-Add%3C%26str%3E-for-Cow%3C'a,+str%3E"·title="Add&#60;&#38;&#39;a·str&#62;">Add&#60;&#38;&#39;a·str&#62;</a></li><li><a·href="#impl-AddAssign-for-Cow%3C'a,+str%3E"·title="AddAssign">AddAssign</a></li><li><a·href="#impl-AddAssign%3C%26str%3E-for-Cow%3C'a,+str%3E"·title="AddAssign&#60;&#38;&#39;a·str&#62;">AddAssign&#60;&#38;&#39;a·str&#62;</a></li><li><a·href="#impl-AsRef%3CT%3E-for-Cow%3C'_,+T%3E"·title="AsRef&#60;T&#62;">AsRef&#60;T&#62;</a></li><li><a·href="#impl-Borrow%3CB%3E-for-Cow%3C'a,+B%3E"·title="Borrow&#60;B&#62;">Borrow&#60;B&#62;</a></li><li><a·href="#impl-Clone-for-Cow%3C'_,+B%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-Cow%3C'_,+B%3E"·title="Debug">Debug</a></li><li><a·href="#impl-Default-for-Cow%3C'_,+B%3E"·title="Default">Default</a></li><li><a·href="#impl-Deref-for-Cow%3C'_,+B%3E"·title="Deref">Deref</a></li><li><a·href="#impl-DerefPure-for-Cow%3C'_,+B%3E"·title="DerefPure">DerefPure</a></li><li><a·href="#impl-Display-for-Cow%3C'_,+B%3E"·title="Display">Display</a></li><li><a·href="#impl-Eq-for-Cow%3C'_,+B%3E"·title="Eq">Eq</a></li><li><a·href="#impl-Extend%3CCow%3C'a,+str%3E%3E-for-String"·title="Extend&#60;Cow&#60;&#39;a,·str&#62;&#62;">Extend&#60;Cow&#60;&#39;a,·str&#62;&#62;</a></li><li><a·href="#impl-From%3C%26CStr%3E-for-Cow%3C'a,+CStr%3E"·title="From&#60;&#38;&#39;a·CStr&#62;">From&#60;&#38;&#39;a·CStr&#62;</a></li><li><a·href="#impl-From%3C%26CString%3E-for-Cow%3C'a,+CStr%3E"·title="From&#60;&#38;&#39;a·CString&#62;">From&#60;&#38;&#39;a·CString&#62;</a></li><li><a·href="#impl-From%3C%26String%3E-for-Cow%3C'a,+str%3E"·title="From&#60;&#38;&#39;a·String&#62;">From&#60;&#38;&#39;a·String&#62;</a></li><li><a·href="#impl-From%3C%26Vec%3CT%3E%3E-for-Cow%3C'a,+%5BT%5D%3E"·title="From&#60;&#38;&#39;a·Vec&#60;T&#62;&#62;">From&#60;&#38;&#39;a·Vec&#60;T&#62;&#62;</a></li><li><a·href="#impl-From%3C%26%5BT;+N%5D%3E-for-Cow%3C'a,+%5BT%5D%3E"·title="From&#60;&#38;&#39;a·[T;·N]&#62;">From&#60;&#38;&#39;a·[T;·N]&#62;</a></li><li><a·href="#impl-From%3C%26%5BT%5D%3E-for-Cow%3C'a,+%5BT%5D%3E"·title="From&#60;&#38;&#39;a·[T]&#62;">From&#60;&#38;&#39;a·[T]&#62;</a></li><li><a·href="#impl-From%3C%26str%3E-for-Cow%3C'a,+str%3E"·title="From&#60;&#38;&#39;a·str&#62;">From&#60;&#38;&#39;a·str&#62;</a></li><li><a·href="#impl-From%3CCString%3E-for-Cow%3C'a,+CStr%3E"·title="From&#60;CString&#62;">From&#60;CString&#62;</a></li><li><a·href="#impl-From%3CCow%3C'_,+CStr%3E%3E-for-Box%3CCStr%3E"·title="From&#60;Cow&#60;&#39;_,·CStr&#62;&#62;">From&#60;Cow&#60;&#39;_,·CStr&#62;&#62;</a></li><li><a·href="#impl-From%3CCow%3C'_,+%5BT%5D%3E%3E-for-Box%3C%5BT%5D%3E"·title="From&#60;Cow&#60;&#39;_,·[T]&#62;&#62;">From&#60;Cow&#60;&#39;_,·[T]&#62;&#62;</a></li><li><a·href="#impl-From%3CCow%3C'_,+str%3E%3E-for-Box%3Cstr%3E"·title="From&#60;Cow&#60;&#39;_,·str&#62;&#62;">From&#60;Cow&#60;&#39;_,·str&#62;&#62;</a></li><li><a·href="#impl-From%3CCow%3C'a,+B%3E%3E-for-Arc%3CB%3E"·title="From&#60;Cow&#60;&#39;a,·B&#62;&#62;">From&#60;Cow&#60;&#39;a,·B&#62;&#62;</a></li><li><a·href="#impl-From%3CCow%3C'a,+B%3E%3E-for-Rc%3CB%3E"·title="From&#60;Cow&#60;&#39;a,·B&#62;&#62;">From&#60;Cow&#60;&#39;a,·B&#62;&#62;</a></li><li><a·href="#impl-From%3CCow%3C'a,+CStr%3E%3E-for-CString"·title="From&#60;Cow&#60;&#39;a,·CStr&#62;&#62;">From&#60;Cow&#60;&#39;a,·CStr&#62;&#62;</a></li><li><a·href="#impl-From%3CCow%3C'a,+%5BT%5D%3E%3E-for-Vec%3CT%3E"·title="From&#60;Cow&#60;&#39;a,·[T]&#62;&#62;">From&#60;Cow&#60;&#39;a,·[T]&#62;&#62;</a></li><li><a·href="#impl-From%3CCow%3C'a,+str%3E%3E-for-String"·title="From&#60;Cow&#60;&#39;a,·str&#62;&#62;">From&#60;Cow&#60;&#39;a,·str&#62;&#62;</a></li><li><a·href="#impl-From%3CCow%3C'b,+str%3E%3E-for-Box%3Cdyn+Error%3E"·title="From&#60;Cow&#60;&#39;b,·str&#62;&#62;">From&#60;Cow&#60;&#39;b,·str&#62;&#62;</a></li><li><a·href="#impl-From%3CCow%3C'b,+str%3E%3E-for-Box%3Cdyn+Error+%2B+Send+%2B+Sync%3E"·title="From&#60;Cow&#60;&#39;b,·str&#62;&#62;">From&#60;Cow&#60;&#39;b,·str&#62;&#62;</a></li><li><a·href="#impl-From%3CString%3E-for-Cow%3C'a,+str%3E"·title="From&#60;String&#62;">From&#60;String&#62;</a></li><li><a·href="#impl-From%3CVec%3CT%3E%3E-for-Cow%3C'a,+%5BT%5D%3E"·title="From&#60;Vec&#60;T&#62;&#62;">From&#60;Vec&#60;T&#62;&#62;</a></li><li><a·href="#impl-FromIterator%3C%26str%3E-for-Cow%3C'a,+str%3E"·title="FromIterator&#60;&#38;&#39;b·str&#62;">FromIterator&#60;&#38;&#39;b·str&#62;</a></li><li><a·href="#impl-FromIterator%3CCow%3C'a,+str%3E%3E-for-Box%3Cstr%3E"·title="FromIterator&#60;Cow&#60;&#39;a,·str&#62;&#62;">FromIterator&#60;Cow&#60;&#39;a,·str&#62;&#62;</a></li><li><a·href="#impl-FromIterator%3CCow%3C'a,+str%3E%3E-for-String"·title="FromIterator&#60;Cow&#60;&#39;a,·str&#62;&#62;">FromIterator&#60;Cow&#60;&#39;a,·str&#62;&#62;</a></li><li><a·href="#impl-FromIterator%3CString%3E-for-Cow%3C'a,+str%3E"·title="FromIterator&#60;String&#62;">FromIterator&#60;String&#62;</a></li><li><a·href="#impl-FromIterator%3CT%3E-for-Cow%3C'a,+%5BT%5D%3E"·title="FromIterator&#60;T&#62;">FromIterator&#60;T&#62;</a></li><li><a·href="#impl-FromIterator%3Cchar%3E-for-Cow%3C'a,+str%3E"·title="FromIterator&#60;char&#62;">FromIterator&#60;char&#62;</a></li><li><a·href="#impl-Hash-for-Cow%3C'_,+B%3E"·title="Hash">Hash</a></li><li><a·href="#impl-Ord-for-Cow%3C'_,+B%3E"·title="Ord">Ord</a></li><li><a·href="#impl-PartialEq%3C%26str%3E-for-Cow%3C'a,+str%3E"·title="PartialEq&#60;&#38;&#39;b·str&#62;">PartialEq&#60;&#38;&#39;b·str&#62;</a></li><li><a·href="#impl-PartialEq%3C%26%5BU%5D%3E-for-Cow%3C'_,+%5BT%5D%3E"·title="PartialEq&#60;&#38;[U]&#62;">PartialEq&#60;&#38;[U]&#62;</a></li><li><a·href="#impl-PartialEq%3C%26mut+%5BU%5D%3E-for-Cow%3C'_,+%5BT%5D%3E"·title="PartialEq&#60;&#38;mut·[U]&#62;">PartialEq&#60;&#38;mut·[U]&#62;</a></li><li><a·href="#impl-PartialEq%3CCow%3C'a,+str%3E%3E-for-%26str"·title="PartialEq&#60;Cow&#60;&#39;a,·str&#62;&#62;">PartialEq&#60;Cow&#60;&#39;a,·str&#62;&#62;</a></li><li><a·href="#impl-PartialEq%3CCow%3C'a,+str%3E%3E-for-String"·title="PartialEq&#60;Cow&#60;&#39;a,·str&#62;&#62;">PartialEq&#60;Cow&#60;&#39;a,·str&#62;&#62;</a></li><li><a·href="#impl-PartialEq%3CCow%3C'a,+str%3E%3E-for-str"·title="PartialEq&#60;Cow&#60;&#39;a,·str&#62;&#62;">PartialEq&#60;Cow&#60;&#39;a,·str&#62;&#62;</a></li><li><a·href="#impl-PartialEq%3CCow%3C'b,+C%3E%3E-for-Cow%3C'a,+B%3E"·title="PartialEq&#60;Cow&#60;&#39;b,·C&#62;&#62;">PartialEq&#60;Cow&#60;&#39;b,·C&#62;&#62;</a></li><li><a·href="#impl-PartialEq%3CString%3E-for-Cow%3C'a,+str%3E"·title="PartialEq&#60;String&#62;">PartialEq&#60;String&#62;</a></li><li><a·href="#impl-PartialEq%3CVec%3CU,+A%3E%3E-for-Cow%3C'_,+%5BT%5D%3E"·title="PartialEq&#60;Vec&#60;U,·A&#62;&#62;">PartialEq&#60;Vec&#60;U,·A&#62;&#62;</a></li><li><a·href="#impl-PartialEq%3Cstr%3E-for-Cow%3C'a,+str%3E"·title="PartialEq&#60;str&#62;">PartialEq&#60;str&#62;</a></li><li><a·href="#impl-PartialOrd-for-Cow%3C'a,+B%3E"·title="PartialOrd">PartialOrd</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-Cow%3C'a,+B%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Cow%3C'a,+B%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Cow%3C'a,+B%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-Cow%3C'a,+B%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-Cow%3C'a,+B%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Cow%3C'a,+B%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-Receiver-for-P"·title="Receiver">Receiver</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-ToString-for-T"·title="ToString">ToString</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>borrow</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">alloc</a>::<wbr><a·href="index.html">borrow</a></span><h1>Enum·<span·class="enum">Cow</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../src/alloc/borrow.rs.html#179-190">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·enum·Cow&lt;'a,·B&gt;<div·class="where">where
2 ····B:·<a·class="trait"·href="trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·'a,</div>{2 ····B:·<a·class="trait"·href="trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·+·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·'a,</div>{
3 ····Borrowed(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;'a·B</a>),3 ····Borrowed(<a·class="primitive"·href="../../core/primitive.reference.html">&amp;'a·B</a>),
4 ····Owned(&lt;B·as·<a·class="trait"·href="trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>&gt;::<a·class="associatedtype"·href="trait.ToOwned.html#associatedtype.Owned"·title="type·alloc::borrow::ToOwned::Owned">Owned</a>),4 ····Owned(&lt;B·as·<a·class="trait"·href="trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>&gt;::<a·class="associatedtype"·href="trait.ToOwned.html#associatedtype.Owned"·title="type·alloc::borrow::ToOwned::Owned">Owned</a>),
5 }</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>A·clone-on-write·smart·pointer.</p>5 }</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>A·clone-on-write·smart·pointer.</p>
6 <p>The·type·<code>Cow</code>·is·a·smart·pointer·providing·clone-on-write·functionality:·it6 <p>The·type·<code>Cow</code>·is·a·smart·pointer·providing·clone-on-write·functionality:·it
7 can·enclose·and·provide·immutable·access·to·borrowed·data,·and·clone·the7 can·enclose·and·provide·immutable·access·to·borrowed·data,·and·clone·the
8 data·lazily·when·mutation·or·ownership·is·required.·The·type·is·designed·to8 data·lazily·when·mutation·or·ownership·is·required.·The·type·is·designed·to
9 work·with·general·borrowed·data·via·the·<code>Borrow</code>·trait.</p>9 work·with·general·borrowed·data·via·the·<code>Borrow</code>·trait.</p>
10 <p><code>Cow</code>·implements·<code>Deref</code>,·which·means·that·you·can·call10 <p><code>Cow</code>·implements·<code>Deref</code>,·which·means·that·you·can·call
Offset 69, 27 lines modifiedOffset 69, 27 lines modified
69 <span·class="macro">println!</span>(<span·class="string">"clone_on_write·=·{:?}"</span>,·clone_on_write.values);69 <span·class="macro">println!</span>(<span·class="string">"clone_on_write·=·{:?}"</span>,·clone_on_write.values);
  
70 <span·class="comment">//·The·data·was·mutated.·Let's·check·it·out.70 <span·class="comment">//·The·data·was·mutated.·Let's·check·it·out.
71 </span><span·class="kw">match·</span>clone_on_write·{71 </span><span·class="kw">match·</span>clone_on_write·{
72 ····Items·{·values:·Cow::Owned(<span·class="kw">_</span>)·}·=&gt;·<span·class="macro">println!</span>(<span·class="string">"clone_on_write·contains·owned·data"</span>),72 ····Items·{·values:·Cow::Owned(<span·class="kw">_</span>)·}·=&gt;·<span·class="macro">println!</span>(<span·class="string">"clone_on_write·contains·owned·data"</span>),
73 ····<span·class="kw">_·</span>=&gt;·<span·class="macro">panic!</span>(<span·class="string">"expect·owned·data"</span>),73 ····<span·class="kw">_·</span>=&gt;·<span·class="macro">panic!</span>(<span·class="string">"expect·owned·data"</span>),
74 }</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::borrow::Cow;%0A++++%0A++++struct+Items%3C'a,+X%3E+where+%5BX%5D:+ToOwned%3COwned+=+Vec%3CX%3E%3E+%7B%0A++++++++values:+Cow%3C'a,+%5BX%5D%3E,%0A++++%7D%0A++++%0A++++impl%3C'a,+X:+Clone+%2B+'a%3E+Items%3C'a,+X%3E+where+%5BX%5D:+ToOwned%3COwned+=+Vec%3CX%3E%3E+%7B%0A++++++++fn+new(v:+Cow%3C'a,+%5BX%5D%3E)+-%3E+Self+%7B%0A++++++++++++Items+%7B+values:+v+%7D%0A++++++++%7D%0A++++%7D%0A++++%0A++++//+Creates+a+container+from+borrowed+values+of+a+slice%0A++++let+readonly+=+%5B1,+2%5D;%0A++++let+borrowed+=+Items::new((%26readonly%5B..%5D).into());%0A++++match+borrowed+%7B%0A++++++++Items+%7B+values:+Cow::Borrowed(b)+%7D+=%3E+println!(%22borrowed+%7Bb:?%7D%22),%0A++++++++_+=%3E+panic!(%22expect+borrowed+value%22),%0A++++%7D%0A++++%0A++++let+mut+clone_on_write+=+borrowed;%0A++++//+Mutates+the+data+from+slice+into+owned+vec+and+pushes+a+new+value+on+top%0A++++clone_on_write.values.to_mut().push(3);%0A++++println!(%22clone_on_write+=+%7B:?%7D%22,+clone_on_write.values);%0A++++%0A++++//+The+data+was+mutated.+Let's+check+it+out.%0A++++match+clone_on_write+%7B%0A++++++++Items+%7B+values:+Cow::Owned(_)+%7D+=%3E+println!(%22clone_on_write+contains+owned+data%22),%0A++++++++_+=%3E+panic!(%22expect+owned+data%22),%0A++++%7D%0A%7D&amp;edition=2021"></a></div>74 }</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::borrow::Cow;%0A++++%0A++++struct+Items%3C'a,+X%3E+where+%5BX%5D:+ToOwned%3COwned+=+Vec%3CX%3E%3E+%7B%0A++++++++values:+Cow%3C'a,+%5BX%5D%3E,%0A++++%7D%0A++++%0A++++impl%3C'a,+X:+Clone+%2B+'a%3E+Items%3C'a,+X%3E+where+%5BX%5D:+ToOwned%3COwned+=+Vec%3CX%3E%3E+%7B%0A++++++++fn+new(v:+Cow%3C'a,+%5BX%5D%3E)+-%3E+Self+%7B%0A++++++++++++Items+%7B+values:+v+%7D%0A++++++++%7D%0A++++%7D%0A++++%0A++++//+Creates+a+container+from+borrowed+values+of+a+slice%0A++++let+readonly+=+%5B1,+2%5D;%0A++++let+borrowed+=+Items::new((%26readonly%5B..%5D).into());%0A++++match+borrowed+%7B%0A++++++++Items+%7B+values:+Cow::Borrowed(b)+%7D+=%3E+println!(%22borrowed+%7Bb:?%7D%22),%0A++++++++_+=%3E+panic!(%22expect+borrowed+value%22),%0A++++%7D%0A++++%0A++++let+mut+clone_on_write+=+borrowed;%0A++++//+Mutates+the+data+from+slice+into+owned+vec+and+pushes+a+new+value+on+top%0A++++clone_on_write.values.to_mut().push(3);%0A++++println!(%22clone_on_write+=+%7B:?%7D%22,+clone_on_write.values);%0A++++%0A++++//+The+data+was+mutated.+Let's+check+it+out.%0A++++match+clone_on_write+%7B%0A++++++++Items+%7B+values:+Cow::Owned(_)+%7D+=%3E+println!(%22clone_on_write+contains+owned+data%22),%0A++++++++_+=%3E+panic!(%22expect+owned+data%22),%0A++++%7D%0A%7D&amp;edition=2021"></a></div>
75 </div></details><h2·id="variants"·class="variants·section-header">Variants<a·href="#variants"·class="anchor">§</a></h2><div·class="variants"><section·id="variant.Borrowed"·class="variant"><a·href="#variant.Borrowed"·class="anchor">§</a><span·class="since·rightside"·title="Stable·since·Rust·version·1.36.0">1.36.0</span><h3·class="code-header">Borrowed(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;'a·B</a>)</h3></section><div·class="docblock"><p>Borrowed·data.</p>75 </div></details><h2·id="variants"·class="variants·section-header">Variants<a·href="#variants"·class="anchor">§</a></h2><div·class="variants"><section·id="variant.Borrowed"·class="variant"><a·href="#variant.Borrowed"·class="anchor">§</a><span·class="since·rightside"·title="Stable·since·Rust·version·1.36.0">1.36.0</span><h3·class="code-header">Borrowed(<a·class="primitive"·href="../../core/primitive.reference.html">&amp;'a·B</a>)</h3></section><div·class="docblock"><p>Borrowed·data.</p>
76 </div><section·id="variant.Owned"·class="variant"><a·href="#variant.Owned"·class="anchor">§</a><span·class="since·rightside"·title="Stable·since·Rust·version·1.36.0">1.36.0</span><h3·class="code-header">Owned(&lt;B·as·<a·class="trait"·href="trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>&gt;::<a·class="associatedtype"·href="trait.ToOwned.html#associatedtype.Owned"·title="type·alloc::borrow::ToOwned::Owned">Owned</a>)</h3></section><div·class="docblock"><p>Owned·data.</p>76 </div><section·id="variant.Owned"·class="variant"><a·href="#variant.Owned"·class="anchor">§</a><span·class="since·rightside"·title="Stable·since·Rust·version·1.36.0">1.36.0</span><h3·class="code-header">Owned(&lt;B·as·<a·class="trait"·href="trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>&gt;::<a·class="associatedtype"·href="trait.ToOwned.html#associatedtype.Owned"·title="type·alloc::borrow::ToOwned::Owned">Owned</a>)</h3></section><div·class="docblock"><p>Owned·data.</p>
77 </div></div><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Cow%3C'_,+B%3E"·class="impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#212-326">Source</a><a·href="#impl-Cow%3C'_,+B%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;B:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>&gt;·<a·class="enum"·href="enum.Cow.html"·title="enum·al[·...·truncated·by·diffoscope;·len:·438,·SHA:·f9269aa68e82f34cba50076418775e5f761080d50c8e122b4db366424ddee88c·...·]/core/primitive.bool.html">bool</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>cow_is_borrowed</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/65143">#65143</a>)</span></div></span></summary><div·class="docblock"><p>Returns·true·if·the·data·is·borrowed,·i.e.·if·<code>to_mut</code>·would·require·additional·work.</p>77 </div></div><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Cow%3C'_,+B%3E"·class="impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#212-326">Source</a><a·href="#impl-Cow%3C'_,+B%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;B:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>&gt;·<a·class="enum"·href="enum.Cow.html"·title="enum·alloc::borrow::Cow">Cow</a>&l[·...·truncated·by·diffoscope;·len:·384,·SHA:·db2c466f3d953d6bbb5d1a516a8d45525be7b20525f64dba274e87585df8fba0·...·]/core/primitive.bool.html">bool</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>cow_is_borrowed</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/65143">#65143</a>)</span></div></span></summary><div·class="docblock"><p>Returns·true·if·the·data·is·borrowed,·i.e.·if·<code>to_mut</code>·would·require·additional·work.</p>
78 <h5·id="examples-1"><a·class="doc-anchor"·href="#examples-1">§</a>Examples</h5>78 <h5·id="examples-1"><a·class="doc-anchor"·href="#examples-1">§</a>Examples</h5>
79 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(cow_is_borrowed)]79 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(cow_is_borrowed)]
80 </span><span·class="kw">use·</span>std::borrow::Cow;80 </span><span·class="kw">use·</span>std::borrow::Cow;
  
81 <span·class="kw">let·</span>cow·=·Cow::Borrowed(<span·class="string">"moo"</span>);81 <span·class="kw">let·</span>cow·=·Cow::Borrowed(<span·class="string">"moo"</span>);
82 <span·class="macro">assert!</span>(cow.is_borrowed());82 <span·class="macro">assert!</span>(cow.is_borrowed());
  
83 <span·class="kw">let·</span>bull:·Cow&lt;<span·class="lifetime">'_</span>,·str&gt;·=·Cow::Owned(<span·class="string">"...moo?"</span>.to_string());83 <span·class="kw">let·</span>bull:·Cow&lt;<span·class="lifetime">'_</span>,·str&gt;·=·Cow::Owned(<span·class="string">"...moo?"</span>.to_string());
84 <span·class="macro">assert!</span>(!bull.is_borrowed());</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Bfeature(cow_is_borrowed)%5D%0Afn+main()+%7B%0A++++use+std::borrow::Cow;%0A++++%0A++++let+cow+=+Cow::Borrowed(%22moo%22);%0A++++assert!(cow.is_borrowed());%0A++++%0A++++let+bull:+Cow%3C'_,+str%3E+=+Cow::Owned(%22...moo?%22.to_string());%0A++++assert!(!bull.is_borrowed());%0A%7D&amp;version=nightly&amp;edition=2021"></a></div>84 <span·class="macro">assert!</span>(!bull.is_borrowed());</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Bfeature(cow_is_borrowed)%5D%0Afn+main()+%7B%0A++++use+std::borrow::Cow;%0A++++%0A++++let+cow+=+Cow::Borrowed(%22moo%22);%0A++++assert!(cow.is_borrowed());%0A++++%0A++++let+bull:+Cow%3C'_,+str%3E+=+Cow::Owned(%22...moo?%22.to_string());%0A++++assert!(!bull.is_borrowed());%0A%7D&amp;version=nightly&amp;edition=2021"></a></div>
85 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_owned"·class="method"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#250-252">Source</a><h4·class="code-header">pub·const·fn·<a·href="#method.is_owned"·class="fn">is_owned</a>(&amp;self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html">bool</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>cow_is_borrowed</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/65143">#65143</a>)</span></div></span></summary><div·class="docblock"><p>Returns·true·if·the·data·is·owned,·i.e.·if·<code>to_mut</code>·would·be·a·no-op.</p>85 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_owned"·class="method"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#250-252">Source</a><h4·class="code-header">pub·const·fn·<a·href="#method.is_owned"·class="fn">is_owned</a>(&amp;self)·-&gt;·<a·class="primitive"·href="../../core/primitive.bool.html">bool</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>cow_is_borrowed</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/65143">#65143</a>)</span></div></span></summary><div·class="docblock"><p>Returns·true·if·the·data·is·owned,·i.e.·if·<code>to_mut</code>·would·be·a·no-op.</p>
86 <h5·id="examples-2"><a·class="doc-anchor"·href="#examples-2">§</a>Examples</h5>86 <h5·id="examples-2"><a·class="doc-anchor"·href="#examples-2">§</a>Examples</h5>
87 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(cow_is_borrowed)]87 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(cow_is_borrowed)]
88 </span><span·class="kw">use·</span>std::borrow::Cow;88 </span><span·class="kw">use·</span>std::borrow::Cow;
  
89 <span·class="kw">let·</span>cow:·Cow&lt;<span·class="lifetime">'_</span>,·str&gt;·=·Cow::Owned(<span·class="string">"moo"</span>.to_string());89 <span·class="kw">let·</span>cow:·Cow&lt;<span·class="lifetime">'_</span>,·str&gt;·=·Cow::Owned(<span·class="string">"moo"</span>.to_string());
90 <span·class="macro">assert!</span>(cow.is_owned());90 <span·class="macro">assert!</span>(cow.is_owned());
  
Offset 129, 181 lines modifiedOffset 129, 181 lines modified
129 <span·class="kw">let·</span>s·=·<span·class="string">"Hello·world!"</span>;129 <span·class="kw">let·</span>s·=·<span·class="string">"Hello·world!"</span>;
130 <span·class="kw">let·</span>cow:·Cow&lt;<span·class="lifetime">'_</span>,·str&gt;·=·Cow::Owned(String::from(s));130 <span·class="kw">let·</span>cow:·Cow&lt;<span·class="lifetime">'_</span>,·str&gt;·=·Cow::Owned(String::from(s));
  
131 <span·class="macro">assert_eq!</span>(131 <span·class="macro">assert_eq!</span>(
132 ··cow.into_owned(),132 ··cow.into_owned(),
133 ··String::from(s)133 ··String::from(s)
134 );</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::borrow::Cow;%0A++++%0A++++let+s+=+%22Hello+world!%22;%0A++++let+cow:+Cow%3C'_,+str%3E+=+Cow::Owned(String::from(s));%0A++++%0A++++assert_eq!(%0A++++++cow.into_owned(),%0A++++++String::from(s)%0A++++);%0A%7D&amp;edition=2021"></a></div>134 );</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::borrow::Cow;%0A++++%0A++++let+s+=+%22Hello+world!%22;%0A++++let+cow:+Cow%3C'_,+str%3E+=+Cow::Owned(String::from(s));%0A++++%0A++++assert_eq!(%0A++++++cow.into_owned(),%0A++++++String::from(s)%0A++++);%0A%7D&amp;edition=2021"></a></div>
135 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Add%3C%26str%3E-for-Cow%3C'a,+str%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.14.0">1.14.0</span>···<a·class="src"·href="../../src/alloc/borrow.rs.html#440-448">Source</a></span><a·href="#impl-Add%3C%26str%3E-for-Cow%3C'a,+str%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/arith/trait.Add.html"·title="trait·core::ops::arith::Add">Add</a>&lt;&amp;'a·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.str.html">str</a>&gt;·for·<a·class="enum"·href="enum.Cow.html"[·...·truncated·by·diffoscope;·len:·8827,·SHA:·326b44ed9ad02bd6dccbdfe3934eaa011d56cec0643845ac006e2f5474f5dede·...·]/core/primitive.reference.html">&amp;T</a></h4></section></summary><div·class='docblock'>Converts·this·type·into·a·shared·reference·of·the·(usually·inferred)·input·type.</div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Borrow%3CB%3E-for-Cow%3C'a,+B%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/alloc/borrow.rs.html#20-27">Source</a></span><a·href="#impl-Borrow%3CB%3E-for-Cow%3C'a,+B%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·B&gt;·<a·class="trait"·href="trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;B&gt;·for·<a·class="enum"·href="enum.Cow.html"·title="enum·alloc::borrow::Cow">Cow</a>&lt;'a,·B&gt;<div·class="where">where135 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Add%3C%26str%3E-for-Cow%3C'a,+str%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.14.0">1.14.0</span>···<a·class="src"·href="../../src/alloc/borrow.rs.html#440-448">Source</a></span><a·href="#impl-Add%3C%26str%3E-for-Cow%3C'a,+str%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a&gt;·<a·class="trait"·href="../../core/ops/arith/trait.Add.html"·title="trait·core::ops::arith::Add">Add</a>&lt;&amp;'a·<a·class="primitive"·href="../../core/primitive.str.html">str</a>&gt;·for·<a·class="enum"·href="enum.Cow.html"·title="enum·alloc::borrow::Cow">Cow</a>&lt;'a,·<a·cla[·...·truncated·by·diffoscope;·len:·7963,·SHA:·ce2080f84821831d28043be6f83c2dc76a702fb05e8f42b247fbb78308db8c1b·...·]/core/primitive.reference.html">&amp;T</a></h4></section></summary><div·class='docblock'>Converts·this·type·into·a·shared·reference·of·the·(usually·inferred)·input·type.</div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Borrow%3CB%3E-for-Cow%3C'a,+B%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/alloc/borrow.rs.html#20-27">Source</a></span><a·href="#impl-Borrow%3CB%3E-for-Cow%3C'a,+B%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·B&gt;·<a·class="trait"·href="trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;B&gt;·for·<a·class="enum"·href="enum.Cow.html"·title="enum·alloc::borrow::Cow">Cow</a>&lt;'a,·B&gt;<div·class="where">where
136 ····B:·<a·class="trait"·href="trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·[·...·truncated·by·diffoscope;·len:·2539,·SHA:·a4f7b72840f3137095d77e75adff1c05fe89659d46e7f2b2c9cbe6f53bedb44c·...·]/core/clone/trait.Clone.html#method.clone_from">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-Cow%3C'_,+B%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/alloc/borrow.rs.html#384-394">Source</a></span><a·href="#impl-Debug-for-Cow%3C'_,+B%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;B&gt;·<a·class="trait"·href="../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="enum"·href="enum.Cow.html"·title="enum·alloc::borrow::Cow">Cow</a>&lt;'_,·B&gt;<div·class="where">where136 ····B:·<a·class="trait"·href="trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·+·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·r[·...·truncated·by·diffoscope;·len:·2323,·SHA:·18db3e80c66330a46862946d3bdaa6142e0e902c056dfc2f4465d43d272a3e5a·...·]/core/clone/trait.Clone.html#method.clone_from">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-Cow%3C'_,+B%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/alloc/borrow.rs.html#384-394">Source</a></span><a·href="#impl-Debug-for-Cow%3C'_,+B%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;B&gt;·<a·class="trait"·href="../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="enum"·href="enum.Cow.html"·title="enum·alloc::borrow::Cow">Cow</a>&lt;'_,·B&gt;<div·class="where">where
137 ····B:·<a·class="trait"·href="../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·+·<a·class="trait"·href="trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>&lt;Owned:·<a·class="trait"·href="../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>&gt;·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·tra[·...·truncated·by·diffoscope;·len:·1095,·SHA:·2bb48e67d0ce79fb8bc99efd2966354379cc9e6302682bd52cedf0b9f0a9e73c·...·]/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·for·<a·class="enum"·href="enum.Cow.html"·title="enum·alloc::borrow::Cow">Cow</a>&lt;'_,·B&gt;<div·class="where">where137 ····B:·<a·class="trait"·href="../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·+·<a·class="trait"·href="trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>&lt;Owned:·<a·class="trait"·href="../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>&gt;·+·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·righ[·...·truncated·by·diffoscope;·len:·1041,·SHA:·f689ce50b6717dbc1d4f42cfbaa3466a9b0e1f3438f6108513fa12a406d4dde1·...·]/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·for·<a·class="enum"·href="enum.Cow.html"·title="enum·alloc::borrow::Cow">Cow</a>&lt;'_,·B&gt;<div·class="where">where
138 ····B:·<a·class="trait"·href="trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>&lt;Owned:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>&gt;·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</di[·...·truncated·by·diffoscope;·len:·353,·SHA:·3652eec3d3c2dbf9d26904063e4a7ba147365ea6f88ff621753c314bff5f90fc·...·]/core/default/trait.Default.html#tymethod.default"·class="fn">default</a>()·-&gt;·Self</h4></section></summary><div·class="docblock"><p>Creates·an·owned·Cow&lt;’a,·B&gt;·with·the·default·value·for·the·contained·owned·value.</p>138 ····B:·<a·class="trait"·href="trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>&lt;Owned:·<a·class="trait"·href="../../core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>&gt;·+·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><de[·...·truncated·by·diffoscope;·len:·272,·SHA:·22353a7768e2febce20b285b06c1c257069ab13bf914b04a74e0d1f24bc4f88d·...·]/core/default/trait.Default.html#tymethod.default"·class="fn">default</a>()·-&gt;·Self</h4></section></summary><div·class="docblock"><p>Creates·an·owned·Cow&lt;’a,·B&gt;·with·the·default·value·for·the·contained·owned·value.</p>
139 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Deref-for-Cow%3C'_,+B%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/alloc/borrow.rs.html#329-341">Source</a></span><a·href="#impl-Deref-for-Cow%3C'_,+B%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;B:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.[·...·truncated·by·diffoscope;·len:·4,·SHA:·64f5147f817f7ff8a79430bedb6d21160849837fa00e145d3ea47e51d0508d3b·...·]/core/ops/deref/trait.Deref.html"·title="trait·core::ops::deref::Deref">Deref</a>·for·<a·class="enum"·href="enum.Cow.html"·title="enum·alloc::borrow::Cow">Cow</a>&lt;'_,·B&gt;<div·class="where">where139 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Deref-for-Cow%3C'_,+B%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/alloc/borrow.rs.html#329-341">Source</a></span><a·href="#impl-Deref-for-Cow%3C'_,+B%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;B:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>&gt;·<a·class="trait"·href="../../core/ops/deref/trait.Deref.html"·title="trait·core::ops::deref::Deref">Deref</a>·for·<a·class="enum"·href="enum.Cow.html"·title="enum·alloc::borrow::Cow">Cow</a>&lt;'_,·B&gt;<div·class="where">where
140 ····B::<a·class="associatedtype"·href="trait.ToOwned.html#associatedtype.Owned"·title="type·alloc::borrow::ToOwned::Owned">Owned</a>:·<a·class="trait"·href="trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;B&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Target"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#333">Source</a><a·href="#associatedtype.Target"·class="anchor">§</a><h4·class="code-header">type·<a·href="https://doc.rust-lang.org/1.84.0/core/ops/deref/trait.Deref.html#associatedtype.Target"·class="associatedtype">Target</a>·=·B</h4></section></summary><div·class='docblock'>The·resulting·type·after·dereferencing.</div></details><details·class="toggle·method[·...·truncated·by·diffoscope;·len:·415,·SHA:·58ed2c13e544804b6135db22a33cedf7031156c8dc8e96caad64d733f02ec85a·...·]/core/primitive.reference.html">&amp;B</a></h4></section></summary><div·class='docblock'>Dereferences·the·value.</div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Display-for-Cow%3C'_,+B%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/alloc/borrow.rs.html#397-407">Source</a></span><a·href="#impl-Display-for-Cow%3C'_,+B%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;B&gt;·<a·class="trait"·href="../fmt/trait.Display.html"·title="trait·alloc::fmt::Display">Display</a>·for·<a·class="enum"·href="enum.Cow.html"·title="enum·alloc::borrow::Cow">Cow</a>&lt;'_,·B&gt;<div·class="where">where140 ····B::<a·class="associatedtype"·href="trait.ToOwned.html#associatedtype.Owned"·title="type·alloc::borrow::ToOwned::Owned">Owned</a>:·<a·class="trait"·href="trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;B&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Target"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#333">Source</a><a·href="#associatedtype.Target"·class="anchor">§</a><h4·class="code-header">type·<a·href="../../core/ops/deref/trait.Deref.html#associatedtype.Target"·class="associatedtype">Target</a>·=·B</h4></section></summary><div·class='docblock'>The·resulting·type·after·dereferencing.</div></details><details·class="toggle·method-toggle"·open><summary><sec[·...·truncated·by·diffoscope;·len:·334,·SHA:·114e6ce2024df5baf65cf3008cd180cd710c50079530ca6b822bd569b4e4cb3c·...·]/core/primitive.reference.html">&amp;B</a></h4></section></summary><div·class='docblock'>Dereferences·the·value.</div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Display-for-Cow%3C'_,+B%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/alloc/borrow.rs.html#397-407">Source</a></span><a·href="#impl-Display-for-Cow%3C'_,+B%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;B&gt;·<a·class="trait"·href="../fmt/trait.Display.html"·title="trait·alloc::fmt::Display">Display</a>·for·<a·class="enum"·href="enum.Cow.html"·title="enum·alloc::borrow::Cow">Cow</a>&lt;'_,·B&gt;<div·class="where">where
141 ····B:·<a·class="trait"·href="../fmt/trait.Display.html"·title="trait·alloc::fmt::Display">Display</a>·+·<a·class="trait"·href="trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>&lt;Owned:·<a·class="trait"·href="../fmt/trait.Display.html"·title="trait·alloc::fmt::Display">Display</a>&gt;·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt-1"·class="method·t[·...·truncated·by·diffoscope;·len:·6311,·SHA:·a6eddd65c40a463f8f456dc9fa9be6194085074b5c1d66afd80dfb01c50dea43·...·]/core/primitive.slice.html">[T]</a>&gt;</h4></section></summary><div·class="docblock"><p>Creates·a·<a·href="enum.Cow.html#variant.Borrowed"·title="variant·alloc::borrow::Cow::Borrowed"><code>Borrowed</code></a>·variant·of·<a·href="enum.Cow.html"·title="enum·alloc::borrow::Cow"><code>Cow</code></a>141 ····B:·<a·class="trait"·href="../fmt/trait.Display.html"·title="trait·alloc::fmt::Display">Display</a>·+·<a·class="trait"·href="trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>&lt;Owned:·<a·class="trait"·href="../fmt/trait.Display.html"·title="trait·alloc::fmt::Display">Display</a>&gt;·+·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt-1"·class="method·trait-impl"><a·class="src·ri[·...·truncated·by·diffoscope;·len:·5771,·SHA:·852c4329b6a091528a2e7eb96d5cf5114cbcbea1320d18c8aa55c526dd9d58c7·...·]/core/primitive.slice.html">[T]</a>&gt;</h4></section></summary><div·class="docblock"><p>Creates·a·<a·href="enum.Cow.html#variant.Borrowed"·title="variant·alloc::borrow::Cow::Borrowed"><code>Borrowed</code></a>·variant·of·<a·href="enum.Cow.html"·title="enum·alloc::borrow::Cow"><code>Cow</code></a>
142 from·a·slice.</p>142 from·a·slice.</p>
143 <p>This·conversion·does·not·allocate·or·clone·the·data.</p>143 <p>This·conversion·does·not·allocate·or·clone·the·data.</p>
144 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-From%3C%26%5BT;+N%5D%3E-for-Cow%3C'a,+%5BT%5D%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.77.0">1.77.0</span>···<a·class="src"·href="../../src/alloc/vec/cow.rs.html#18-28">Source</a></span><a·href="#impl-From%3C%26%5BT;+N%5D%3E-for-Cow%3C'a,+%5BT%5D%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·T:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,·const·N:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.usize.html">usize</a>&gt;·<a·class="trait"·href="https://doc.rust-[·...·truncated·by·diffoscope;·len:·1062,·SHA:·ef7503b4bf3edadbff3ab280566c0d2c282b3ce0e5b4a1dfc38191949944ce6a·...·]/core/primitive.slice.html">[T]</a>&gt;</h4></section></summary><div·class="docblock"><p>Creates·a·<a·href="enum.Cow.html#variant.Borrowed"·title="variant·alloc::borrow::Cow::Borrowed"><code>Borrowed</code></a>·variant·of·<a·href="enum.Cow.html"·title="enum·alloc::borrow::Cow"><code>Cow</code></a>144 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-From%3C%26%5BT;+N%5D%3E-for-Cow%3C'a,+%5BT%5D%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.77.0">1.77.0</span>···<a·class="src"·href="../../src/alloc/vec/cow.rs.html#18-28">Source</a></span><a·href="#impl-From%3C%26%5BT;+N%5D%3E-for-Cow%3C'a,+%5BT%5D%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·T:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,·const·N:·<a·class="primitive"·href="../../core/primitive.usize.html">usize</a>&gt;·<a·class="trait"·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">F[·...·truncated·by·diffoscope;·len:·846,·SHA:·407261b116b491fa42761a3dd29bb8b27a8978a439a30308427e5546d9f0838f·...·]/core/primitive.slice.html">[T]</a>&gt;</h4></section></summary><div·class="docblock"><p>Creates·a·<a·href="enum.Cow.html#variant.Borrowed"·title="variant·alloc::borrow::Cow::Borrowed"><code>Borrowed</code></a>·variant·of·<a·href="enum.Cow.html"·title="enum·alloc::borrow::Cow"><code>Cow</code></a>
145 from·a·reference·to·an·array.</p>145 from·a·reference·to·an·array.</p>
146 <p>This·conversion·does·not·allocate·or·clone·the·data.</p>146 <p>This·conversion·does·not·allocate·or·clone·the·data.</p>
147 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-From%3C%26CStr%3E-for-Cow%3C'a,+CStr%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.28.0">1.28.0</span>···<a·class="src"·href="../../src/alloc/ffi/c_str.rs.html#882-888">Source</a></span><a·href="#impl-From%3C%26CStr%3E-for-Cow%3C'a,+CStr%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;&amp;'a·<a·class="struct"·href="https://doc.rust-lang.org/1.84.0/core/ffi/c_str/struct.CStr.html"·title="struct·core::ffi::c_str::CStr">CStr</a>&gt[·...·truncated·by·diffoscope;·len:·1128,·SHA:·4406c02eb164be90a0b95721c8cf1ec33f2df597ace572113857cd7e5dae1ce9·...·]/core/ffi/c_str/struct.CStr.html"·title="struct·core::ffi::c_str::CStr"><code>CStr</code></a>·into·a·borrowed·<a·href="enum.Cow.html"·title="enum·alloc::borrow::Cow"><code>Cow</code></a>·without·copying·or·allocating.</p>147 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-From%3C%26CStr%3E-for-Cow%3C'a,+CStr%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.28.0">1.28.0</span>···<a·class="src"·href="../../src/alloc/ffi/c_str.rs.html#882-888">Source</a></span><a·href="#impl-From%3C%26CStr%3E-for-Cow%3C'a,+CStr%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a&gt;·<a·class="trait"·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;&amp;'a·<a·class="struct"·href="../../core/ffi/c_str/struct.CStr.html"·title="struct·core::ffi::c_str::CStr">CStr</a>&gt;·for·<a·class="enum"·href="enum.Cow.html"·title="enum[·...·truncated·by·diffoscope;·len:·939,·SHA:·1ab2162a98ee8e69231c9b5167194a5e17a1800bbbc04245df38dbdafc630c4e·...·]/core/ffi/c_str/struct.CStr.html"·title="struct·core::ffi::c_str::CStr"><code>CStr</code></a>·into·a·borrowed·<a·href="enum.Cow.html"·title="enum·alloc::borrow::Cow"><code>Cow</code></a>·without·copying·or·allocating.</p>
148 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-From%3C%26CString%3E-for-Cow%3C'a,+CStr%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.28.0">1.28.0</span>···<a·class="src"·href="../../src/alloc/ffi/c_str.rs.html#891-897">Source</a></span><a·href="#impl-From%3C%26CString%3E-for-Cow%3C'a,+CStr%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;&amp;'a·<a·class="struct"·href="../ffi/struct.CString.html"·title="struct·alloc::ffi::CString">CString</a>&gt;·for·<a·class="enum"·href="enum.Cow.h[·...·truncated·by·diffoscope;·len:·866,·SHA:·ca9d801c36aa3a29932de2b209ce056bcc0388684b22cd2d660590a72852067e·...·]/core/ffi/c_str/struct.CStr.html"·title="struct·core::ffi::c_str::CStr">CStr</a>&gt;</h4></section></summary><div·class="docblock"><p>Converts·a·<code>&amp;</code><a·href="../ffi/struct.CString.html"·title="struct·alloc::ffi::CString"><code>CString</code></a>·into·a·borrowed·<a·href="enum.Cow.html"·title="enum·alloc::borrow::Cow"><code>Cow</code></a>·without·copying·or·allocating.</p>148 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-From%3C%26CString%3E-for-Cow%3C'a,+CStr%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.28.0">1.28.0</span>···<a·class="src"·href="../../src/alloc/ffi/c_str.rs.html#891-897">Source</a></span><a·href="#impl-From%3C%26CString%3E-for-Cow%3C'a,+CStr%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a&gt;·<a·class="trait"·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;&amp;'a·<a·class="struct"·href="../ffi/struct.CString.html"·title="struct·alloc::ffi::CString">CString</a>&gt;·for·<a·class="enum"·href="enum.Cow.html"·title="enum·alloc::bor[·...·truncated·by·diffoscope;·len:·758,·SHA:·40dd79ea40d80b1e038e3d8b2fd83871955ae7768d6ccc26d85848a380a97ed2·...·]/core/ffi/c_str/struct.CStr.html"·title="struct·core::ffi::c_str::CStr">CStr</a>&gt;</h4></section></summary><div·class="docblock"><p>Converts·a·<code>&amp;</code><a·href="../ffi/struct.CString.html"·title="struct·alloc::ffi::CString"><code>CString</code></a>·into·a·borrowed·<a·href="enum.Cow.html"·title="enum·alloc::borrow::Cow"><code>Cow</code></a>·without·copying·or·allocating.</p>
149 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-From%3C%26String%3E-for-Cow%3C'a,+str%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.28.0">1.28.0</span>···<a·class="src"·href="../../src/alloc/string.rs.html#3018-3036">Source</a></span><a·href="#impl-From%3C%26String%3E-for-Cow%3C'a,+str%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;&amp;'a·<a·class="struct"·href="../string/struct.String.html"·title="struct·alloc::string::String">String</a>&gt;·for·<a·class="enum"·href="enum.Co[·...·truncated·by·diffoscope;·len:·832,·SHA:·c0122cb3b394bdfa8acf77bec7aae9a2229842f0f87a98b3b23560e4d7d89075·...·]/core/primitive.str.html">str</a>&gt;</h4></section></summary><div·class="docblock"><p>Converts·a·<a·href="../string/struct.String.html"·title="struct·alloc::string::String"><code>String</code></a>·reference·into·a·<a·href="enum.Cow.html#variant.Borrowed"·title="borrow::Cow::Borrowed"><code>Borrowed</code></a>·variant.149 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-From%3C%26String%3E-for-Cow%3C'a,+str%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.28.0">1.28.0</span>···<a·class="src"·href="../../src/alloc/string.rs.html#3018-3036">Source</a></span><a·href="#impl-From%3C%26String%3E-for-Cow%3C'a,+str%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a&gt;·<a·class="trait"·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;&amp;'a·<a·class="struct"·href="../string/struct.String.html"·title="struct·alloc::string::String">String</a>&gt;·for·<a·class="enum"·href="enum.Cow.html"·title="enum·alloc::[·...·truncated·by·diffoscope;·len:·724,·SHA:·3aaa5dfaa30d3115e78a4ec2e8c9f61de049e3e9a060e3299b1e112d59b49227·...·]/core/primitive.str.html">str</a>&gt;</h4></section></summary><div·class="docblock"><p>Converts·a·<a·href="../string/struct.String.html"·title="struct·alloc::string::String"><code>String</code></a>·reference·into·a·<a·href="enum.Cow.html#variant.Borrowed"·title="borrow::Cow::Borrowed"><code>Borrowed</code></a>·variant.
150 No·heap·allocation·is·performed,·and·the·string150 No·heap·allocation·is·performed,·and·the·string
151 is·not·copied.</p>151 is·not·copied.</p>
152 <h5·id="example-4"><a·class="doc-anchor"·href="#example-4">§</a>Example</h5>152 <h5·id="example-4"><a·class="doc-anchor"·href="#example-4">§</a>Example</h5>
153 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span>s·=·<span·class="string">"eggplant"</span>.to_string();153 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span>s·=·<span·class="string">"eggplant"</span>.to_string();
154 <span·class="macro">assert_eq!</span>(Cow::from(<span·class="kw-2">&amp;</span>s),·Cow::Borrowed(<span·class="string">"eggplant"</span>));</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::borrow::Cow;%0A++++let+s+=+%22eggplant%22.to_string();%0A++++assert_eq!(Cow::from(%26s),+Cow::Borrowed(%22eggplant%22));%0A%7D&amp;edition=2021"></a></div>154 <span·class="macro">assert_eq!</span>(Cow::from(<span·class="kw-2">&amp;</span>s),·Cow::Borrowed(<span·class="string">"eggplant"</span>));</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::borrow::Cow;%0A++++let+s+=+%22eggplant%22.to_string();%0A++++assert_eq!(Cow::from(%26s),+Cow::Borrowed(%22eggplant%22));%0A%7D&amp;edition=2021"></a></div>
155 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-From%3C%26Vec%3CT%3E%3E-for-Cow%3C'a,+%5BT%5D%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.28.0">1.28.0</span>···<a·class="src"·href="../../src/alloc/vec/cow.rs.html#44-54">Source</a></span><a·href="#impl-From%3C%26Vec%3CT%3E%3E-for-Cow%3C'a,+%5BT%5D%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·T:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;&amp;'a·<a·clas[·...·truncated·by·diffoscope;·len:·951,·SHA:·8c3c504559b8f792a762924b4f0e8bb838bb00ae9a5277c7d179c478b9f826bc·...·]/core/primitive.slice.html">[T]</a>&gt;</h4></section></summary><div·class="docblock"><p>Creates·a·<a·href="enum.Cow.html#variant.Borrowed"·title="variant·alloc::borrow::Cow::Borrowed"><code>Borrowed</code></a>·variant·of·<a·href="enum.Cow.html"·title="enum·alloc::borrow::Cow"><code>Cow</code></a>155 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-From%3C%26Vec%3CT%3E%3E-for-Cow%3C'a,+%5BT%5D%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.28.0">1.28.0</span>···<a·class="src"·href="../../src/alloc/vec/cow.rs.html#44-54">Source</a></span><a·href="#impl-From%3C%26Vec%3CT%3E%3E-for-Cow%3C'a,+%5BT%5D%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·T:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>&gt;·<a·class="trait"·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;&amp;'a·<a·class="struct"·href="../vec/struct.Vec.html"·title="struct[·...·truncated·by·diffoscope;·len:·816,·SHA:·0a5eb4ca3779b092e2b52418a6cd9a9b8f9e6481e01f240733f7616dc5f1a132·...·]/core/primitive.slice.html">[T]</a>&gt;</h4></section></summary><div·class="docblock"><p>Creates·a·<a·href="enum.Cow.html#variant.Borrowed"·title="variant·alloc::borrow::Cow::Borrowed"><code>Borrowed</code></a>·variant·of·<a·href="enum.Cow.html"·title="enum·alloc::borrow::Cow"><code>Cow</code></a>
156 from·a·reference·to·<a·href="../vec/struct.Vec.html"·title="struct·alloc::vec::Vec"><code>Vec</code></a>.</p>156 from·a·reference·to·<a·href="../vec/struct.Vec.html"·title="struct·alloc::vec::Vec"><code>Vec</code></a>.</p>
157 <p>This·conversion·does·not·allocate·or·clone·the·data.</p>157 <p>This·conversion·does·not·allocate·or·clone·the·data.</p>
158 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-From%3C%26str%3E-for-Cow%3C'a,+str%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/alloc/string.rs.html#2974-2991">Source</a></span><a·href="#impl-From%3C%26str%3E-for-Cow%3C'a,+str%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;&amp;'a·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.str.html">str</a>&gt;·for·<a·class="enum"·href="enum.Cow.html"·t[·...·truncated·by·diffoscope;·len:·814,·SHA:·de357af77728e5690fa50274f311de2bb8ac3c10104bc64bed4560c8f6045463·...·]/core/primitive.str.html">str</a>&gt;</h4></section></summary><div·class="docblock"><p>Converts·a·string·slice·into·a·<a·href="enum.Cow.html#variant.Borrowed"·title="borrow::Cow::Borrowed"><code>Borrowed</code></a>·variant.158 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-From%3C%26str%3E-for-Cow%3C'a,+str%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/alloc/string.rs.html#2974-2991">Source</a></span><a·href="#impl-From%3C%26str%3E-for-Cow%3C'a,+str%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a&gt;·<a·class="trait"·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;&amp;'a·<a·class="primitive"·href="../../core/primitive.str.html">str</a>&gt;·for·<a·class="enum"·href="enum.Cow.html"·title="enum·alloc::borrow::Cow">Cow</a>&lt;'a,·<a·class[·...·truncated·by·diffoscope;·len:·652,·SHA:·e9d202b43305b7e52625cc8f1202dcae40b966b4e194493f5b934758bc7003fc·...·]/core/primitive.str.html">str</a>&gt;</h4></section></summary><div·class="docblock"><p>Converts·a·string·slice·into·a·<a·href="enum.Cow.html#variant.Borrowed"·title="borrow::Cow::Borrowed"><code>Borrowed</code></a>·variant.
159 No·heap·allocation·is·performed,·and·the·string159 No·heap·allocation·is·performed,·and·the·string
160 is·not·copied.</p>160 is·not·copied.</p>
161 <h5·id="example-2"><a·class="doc-anchor"·href="#example-2">§</a>Example</h5>161 <h5·id="example-2"><a·class="doc-anchor"·href="#example-2">§</a>Example</h5>
162 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="macro">assert_eq!</span>(Cow::from(<span·class="string">"eggplant"</span>),·Cow::Borrowed(<span·class="string">"eggplant"</span>));</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::borrow::Cow;%0A++++assert_eq!(Cow::from(%22eggplant%22),+Cow::Borrowed(%22eggplant%22));%0A%7D&amp;edition=2021"></a></div>162 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="macro">assert_eq!</span>(Cow::from(<span·class="string">"eggplant"</span>),·Cow::Borrowed(<span·class="string">"eggplant"</span>));</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::borrow::Cow;%0A++++assert_eq!(Cow::from(%22eggplant%22),+Cow::Borrowed(%22eggplant%22));%0A%7D&amp;edition=2021"></a></div>
163 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-From%3CCString%3E-for-Cow%3C'a,+CStr%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.28.0">1.28.0</span>···<a·class="src"·href="../../src/alloc/ffi/c_str.rs.html#873-879">Source</a></span><a·href="#impl-From%3CCString%3E-for-Cow%3C'a,+CStr%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;<a·class="struct"·href="../ffi/struct.CString.html"·title="struct·alloc::ffi::CString">CString</a>&gt;·for·<a·class="enum"·href="enum.Cow.html"·tit[·...·truncated·by·diffoscope;·len:·850,·SHA:·142f3e6488cc2451b07a6b45d78ad905ecca43077595b99feac9df678fc88732·...·]/core/ffi/c_str/struct.CStr.html"·title="struct·core::ffi::c_str::CStr">CStr</a>&gt;</h4></section></summary><div·class="docblock"><p>Converts·a·<a·href="../ffi/struct.CString.html"·title="struct·alloc::ffi::CString"><code>CString</code></a>·into·an·owned·<a·href="enum.Cow.html"·title="enum·alloc::borrow::Cow"><code>Cow</code></a>·without·copying·or·allocating.</p>163 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-From%3CCString%3E-for-Cow%3C'a,+CStr%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.28.0">1.28.0</span>···<a·class="src"·href="../../src/alloc/ffi/c_str.rs.html#873-879">Source</a></span><a·href="#impl-From%3CCString%3E-for-Cow%3C'a,+CStr%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a&gt;·<a·class="trait"·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;<a·class="struct"·href="../ffi/struct.CString.html"·title="struct·alloc::ffi::CString">CString</a>&gt;·for·<a·class="enum"·href="enum.Cow.html"·title="enum·alloc::borrow::Cow[·...·truncated·by·diffoscope;·len:·742,·SHA:·c2222a6fcd83d41ac23897d5d094038fbf8b7ecf4bd0ca88046b7650f37271ff·...·]/core/ffi/c_str/struct.CStr.html"·title="struct·core::ffi::c_str::CStr">CStr</a>&gt;</h4></section></summary><div·class="docblock"><p>Converts·a·<a·href="../ffi/struct.CString.html"·title="struct·alloc::ffi::CString"><code>CString</code></a>·into·an·owned·<a·href="enum.Cow.html"·title="enum·alloc::borrow::Cow"><code>Cow</code></a>·without·copying·or·allocating.</p>
164 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-From%3CCow%3C'_,+%5BT%5D%3E%3E-for-Box%3C%5BT%5D%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.45.0">1.45.0</span>···<a·class="src"·href="../../src/alloc/boxed/convert.rs.html#137-151">Source</a></span><a·href="#impl-From%3CCow%3C'_,+%5BT%5D%3E%3E-for-Box%3C%5BT%5D%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;<a·class="enum"[·...·truncated·by·diffoscope;·len:·1133,·SHA:·ab5a60d4b7ef03c399c683e1e5c9bd5ae1e4ab1bccaf3fdec887edbcde1ed0b6·...·]/core/primitive.slice.html">[T]</a>&gt;</h4></section></summary><div·class="docblock"><p>Converts·a·<code>Cow&lt;'_,·[T]&gt;</code>·into·a·<code>Box&lt;[T]&gt;</code></p>164 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-From%3CCow%3C'_,+%5BT%5D%3E%3E-for-Box%3C%5BT%5D%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.45.0">1.45.0</span>···<a·class="src"·href="../../src/alloc/boxed/convert.rs.html#137-151">Source</a></span><a·href="#impl-From%3CCow%3C'_,+%5BT%5D%3E%3E-for-Box%3C%5BT%5D%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>&gt;·<a·class="trait"·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;<a·class="enum"·href="enum.Cow.html"·title="enum·alloc::borrow::Cow">[·...·truncated·by·diffoscope;·len:·944,·SHA:·df463d16e38a8cb69b19653bbeb0deee14aff26fe7e5219415ff3e8cd93d70d1·...·]/core/primitive.slice.html">[T]</a>&gt;</h4></section></summary><div·class="docblock"><p>Converts·a·<code>Cow&lt;'_,·[T]&gt;</code>·into·a·<code>Box&lt;[T]&gt;</code></p>
165 <p>When·<code>cow</code>·is·the·<code>Cow::Borrowed</code>·variant,·this165 <p>When·<code>cow</code>·is·the·<code>Cow::Borrowed</code>·variant,·this
166 conversion·allocates·on·the·heap·and·copies·the166 conversion·allocates·on·the·heap·and·copies·the
167 underlying·slice.·Otherwise,·it·will·try·to·reuse·the·owned167 underlying·slice.·Otherwise,·it·will·try·to·reuse·the·owned
168 <code>Vec</code>’s·allocation.</p>168 <code>Vec</code>’s·allocation.</p>
169 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-From%3CCow%3C'_,+CStr%3E%3E-for-Box%3CCStr%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.45.0">1.45.0</span>···<a·class="src"·href="../../src/alloc/ffi/c_str.rs.html#786-796">Source</a></span><a·href="#impl-From%3CCow%3C'_,+CStr%3E%3E-for-Box%3CCStr%3E"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;<a·class="enum"·href="enum.Cow.html"·title="enum·alloc::borrow::Cow">Cow</a>&lt;'_,·<a·class="struct"·href="https://doc.rust-lang.org/1.84.0/core/f[·...·truncated·by·diffoscope;·len:·1124,·SHA:·f2db691c55d0e27bba05ed01bf1965353a6b7aa6d5056a350da9707a75f6cf62·...·]/core/ffi/c_str/struct.CStr.html"·title="struct·core::ffi::c_str::CStr">CStr</a>&gt;</h4></section></summary><div·class="docblock"><p>Converts·a·<code>Cow&lt;'a,·CStr&gt;</code>·into·a·<code>Box&lt;CStr&gt;</code>,169 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-From%3CCow%3C'_,+CStr%3E%3E-for-Box%3CCStr%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.45.0">1.45.0</span>···<a·class="src"·href="../../src/alloc/ffi/c_str.rs.html#786-796">Source</a></span><a·href="#impl-From%3CCow%3C'_,+CStr%3E%3E-for-Box%3CCStr%3E"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;<a·class="enum"·href="enum.Cow.html"·title="enum·alloc::borrow::Cow">Cow</a>&lt;'_,·<a·class="struct"·href="../../core/ffi/c_str/struct.CStr.html"·title="struct·core::ffi::c_[·...·truncated·by·diffoscope;·len:·962,·SHA:·8eff11dec16a8064ba00a47a46a5894391f8126f4e9558c14fb05b36027f3f1a·...·]/core/ffi/c_str/struct.CStr.html"·title="struct·core::ffi::c_str::CStr">CStr</a>&gt;</h4></section></summary><div·class="docblock"><p>Converts·a·<code>Cow&lt;'a,·CStr&gt;</code>·into·a·<code>Box&lt;CStr&gt;</code>,
170 by·copying·the·contents·if·they·are·borrowed.</p>170 by·copying·the·contents·if·they·are·borrowed.</p>
171 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-From%3CCow%3C'_,+str%3E%3E-for-Box%3Cstr%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.45.0">1.45.0</span>···<a·class="src"·href="../../src/alloc/boxed/convert.rs.html#197-228">Source</a></span><a·href="#impl-From%3CCow%3C'_,+str%3E%3E-for-Box%3Cstr%3E"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;<a·class="enum"·href="enum.Cow.html"·title="enum·alloc::borrow::Cow">Cow</a>&lt;'_,·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/cor[·...·truncated·by·diffoscope;·len:·999,·SHA:·c845f61cb4b664b4b99854209806ca0940e2976237a635af173c29ea2dfbb373·...·]/core/primitive.str.html">str</a>&gt;</h4></section></summary><div·class="docblock"><p>Converts·a·<code>Cow&lt;'_,·str&gt;</code>·into·a·<code>Box&lt;str&gt;</code></p>171 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-From%3CCow%3C'_,+str%3E%3E-for-Box%3Cstr%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.45.0">1.45.0</span>···<a·class="src"·href="../../src/alloc/boxed/convert.rs.html#197-228">Source</a></span><a·href="#impl-From%3CCow%3C'_,+str%3E%3E-for-Box%3Cstr%3E"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;<a·class="enum"·href="enum.Cow.html"·title="enum·alloc::borrow::Cow">Cow</a>&lt;'_,·<a·class="primitive"·href="../../core/primitive.str.html">str</a>&gt;&gt;·for·<a·class="st[·...·truncated·by·diffoscope;·len:·837,·SHA:·3d0ea384761ccb703326fc6be1da3af4467bbb90a3b12bba9795639014dc97e5·...·]/core/primitive.str.html">str</a>&gt;</h4></section></summary><div·class="docblock"><p>Converts·a·<code>Cow&lt;'_,·str&gt;</code>·into·a·<code>Box&lt;str&gt;</code></p>
172 <p>When·<code>cow</code>·is·the·<code>Cow::Borrowed</code>·variant,·this172 <p>When·<code>cow</code>·is·the·<code>Cow::Borrowed</code>·variant,·this
173 conversion·allocates·on·the·heap·and·copies·the173 conversion·allocates·on·the·heap·and·copies·the
174 underlying·<code>str</code>.·Otherwise,·it·will·try·to·reuse·the·owned174 underlying·<code>str</code>.·Otherwise,·it·will·try·to·reuse·the·owned
175 <code>String</code>’s·allocation.</p>175 <code>String</code>’s·allocation.</p>
176 <h5·id="examples-5"><a·class="doc-anchor"·href="#examples-5">§</a>Examples</h5>176 <h5·id="examples-5"><a·class="doc-anchor"·href="#examples-5">§</a>Examples</h5>
177 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::borrow::Cow;177 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::borrow::Cow;
  
178 <span·class="kw">let·</span>unboxed·=·Cow::Borrowed(<span·class="string">"hello"</span>);178 <span·class="kw">let·</span>unboxed·=·Cow::Borrowed(<span·class="string">"hello"</span>);
179 <span·class="kw">let·</span>boxed:·Box&lt;str&gt;·=·Box::from(unboxed);179 <span·class="kw">let·</span>boxed:·Box&lt;str&gt;·=·Box::from(unboxed);
180 <span·class="macro">println!</span>(<span·class="string">"{boxed}"</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::borrow::Cow;%0A++++%0A++++let+unboxed+=+Cow::Borrowed(%22hello%22);%0A++++let+boxed:+Box%3Cstr%3E+=+Box::from(unboxed);%0A++++println!(%22%7Bboxed%7D%22);%0A%7D&amp;edition=2021"></a></div>180 <span·class="macro">println!</span>(<span·class="string">"{boxed}"</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::borrow::Cow;%0A++++%0A++++let+unboxed+=+Cow::Borrowed(%22hello%22);%0A++++let+boxed:+Box%3Cstr%3E+=+Box::from(unboxed);%0A++++println!(%22%7Bboxed%7D%22);%0A%7D&amp;edition=2021"></a></div>
  
181 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span>unboxed·=·Cow::Owned(<span·class="string">"hello"</span>.to_string());181 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span>unboxed·=·Cow::Owned(<span·class="string">"hello"</span>.to_string());
182 <span·class="kw">let·</span>boxed:·Box&lt;str&gt;·=·Box::from(unboxed);182 <span·class="kw">let·</span>boxed:·Box&lt;str&gt;·=·Box::from(unboxed);
183 <span·class="macro">println!</span>(<span·class="string">"{boxed}"</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::borrow::Cow;%0A++++let+unboxed+=+Cow::Owned(%22hello%22.to_string());%0A++++let+boxed:+Box%3Cstr%3E+=+Box::from(unboxed);%0A++++println!(%22%7Bboxed%7D%22);%0A%7D&amp;edition=2021"></a></div>183 <span·class="macro">println!</span>(<span·class="string">"{boxed}"</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::borrow::Cow;%0A++++let+unboxed+=+Cow::Owned(%22hello%22.to_string());%0A++++let+boxed:+Box%3Cstr%3E+=+Box::from(unboxed);%0A++++println!(%22%7Bboxed%7D%22);%0A%7D&amp;edition=2021"></a></div>
184 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-From%3CCow%3C'a,+%5BT%5D%3E%3E-for-Vec%3CT%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.14.0">1.14.0</span>···<a·class="src"·href="../../src/alloc/vec/mod.rs.html#3899-3921">Source</a></span><a·href="#impl-From%3CCow%3C'a,+%5BT%5D%3E%3E-for-Vec%3CT%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·T&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;<a·class="enum"·href="enum.Cow.html"·title="enum·alloc::borrow::Cow">Cow</a>&lt;'a,·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html">[T]</a>&gt;&gt;·for·<a·class="struct"·href="../vec/struct.Vec.html"·title="struct·alloc::vec::Vec">Vec</a>&lt;T&gt;<div·class="where">where184 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-From%3CCow%3C'a,+%5BT%5D%3E%3E-for-Vec%3CT%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.14.0">1.14.0</span>···<a·class="src"·href="../../src/alloc/vec/mod.rs.html#3899-3921">Source</a></span><a·href="#impl-From%3CCow%3C'a,+%5BT%5D%3E%3E-for-Vec%3CT%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·T&gt;·<a·class="trait"·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;<a·class="enum"·href="enum.Cow.html"·title="enum·alloc::borrow::Cow">Cow</a>&lt;'a,·<a·class="primitive"·href="../../core/primitive.slice.html">[T]</a>&gt;&gt;·for·<a·class="struct"·href="../vec/struct.Vec.html"·title="struct·alloc::vec::Vec">Vec</a>&lt;T&gt;<div·class="where">where
185 ····<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html">[T]</a>:·<a·class="trait"·href="trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>&lt;Owned·=·<a·class="struct"·href="../vec/struct.Vec.html"·title="struct·alloc::vec::Vec">Vec</[·...·truncated·by·diffoscope;·len:·587,·SHA:·f033719d9d93df709c484acca0dded40439808faa2135f70bfadad880aa323e7·...·]/core/primitive.slice.html">[T]</a>&gt;)·-&gt;·<a·class="struct"·href="../vec/struct.Vec.html"·title="struct·alloc::vec::Vec">Vec</a>&lt;T&gt;</h4></section></summary><div·class="docblock"><p>Converts·a·clone-on-write·slice·into·a·vector.</p>185 ····<a·class="primitive"·href="../../core/primitive.slice.html">[T]</a>:·<a·class="trait"·href="trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>&lt;Owned·=·<a·class="struct"·href="../vec/struct.Vec.html"·title="struct·alloc::vec::Vec">Vec</a>&lt;T&gt;&gt;,</div></h3>[·...·truncated·by·diffoscope;·len:·506,·SHA:·a8886d9f7238ae6dac9f08c3b30939d9d2ef1a5fcb36512237711e662c602a39·...·]/core/primitive.slice.html">[T]</a>&gt;)·-&gt;·<a·class="struct"·href="../vec/struct.Vec.html"·title="struct·alloc::vec::Vec">Vec</a>&lt;T&gt;</h4></section></summary><div·class="docblock"><p>Converts·a·clone-on-write·slice·into·a·vector.</p>
186 <p>If·<code>s</code>·already·owns·a·<code>Vec&lt;T&gt;</code>,·it·will·be·returned·directly.186 <p>If·<code>s</code>·already·owns·a·<code>Vec&lt;T&gt;</code>,·it·will·be·returned·directly.
187 If·<code>s</code>·is·borrowing·a·slice,·a·new·<code>Vec&lt;T&gt;</code>·will·be·allocated·and187 If·<code>s</code>·is·borrowing·a·slice,·a·new·<code>Vec&lt;T&gt;</code>·will·be·allocated·and
188 filled·by·cloning·<code>s</code>’s·items·into·it.</p>188 filled·by·cloning·<code>s</code>’s·items·into·it.</p>
189 <h5·id="examples-8"><a·class="doc-anchor"·href="#examples-8">§</a>Examples</h5>189 <h5·id="examples-8"><a·class="doc-anchor"·href="#examples-8">§</a>Examples</h5>
190 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span>o:·Cow&lt;<span·class="lifetime">'_</span>,·[i32]&gt;·=·Cow::Owned(<span·class="macro">vec!</span>[<span·class="number">1</span>,·<span·class="number">2</span>,·<span·class="number">3</span>]);190 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span>o:·Cow&lt;<span·class="lifetime">'_</span>,·[i32]&gt;·=·Cow::Owned(<span·class="macro">vec!</span>[<span·class="number">1</span>,·<span·class="number">2</span>,·<span·class="number">3</span>]);
191 <span·class="kw">let·</span>b:·Cow&lt;<span·class="lifetime">'_</span>,·[i32]&gt;·=·Cow::Borrowed(<span·class="kw-2">&amp;</span>[<span·class="number">1</span>,·<span·class="number">2</span>,·<span·class="number">3</span>]);191 <span·class="kw">let·</span>b:·Cow&lt;<span·class="lifetime">'_</span>,·[i32]&gt;·=·Cow::Borrowed(<span·class="kw-2">&amp;</span>[<span·class="number">1</span>,·<span·class="number">2</span>,·<span·class="number">3</span>]);
192 <span·class="macro">assert_eq!</span>(Vec::from(o),·Vec::from(b));</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::borrow::Cow;%0A++++let+o:+Cow%3C'_,+%5Bi32%5D%3E+=+Cow::Owned(vec!%5B1,+2,+3%5D);%0A++++let+b:+Cow%3C'_,+%5Bi32%5D%3E+=+Cow::Borrowed(%26%5B1,+2,+3%5D);%0A++++assert_eq!(Vec::from(o),+Vec::from(b));%0A%7D&amp;edition=2021"></a></div>192 <span·class="macro">assert_eq!</span>(Vec::from(o),·Vec::from(b));</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::borrow::Cow;%0A++++let+o:+Cow%3C'_,+%5Bi32%5D%3E+=+Cow::Owned(vec!%5B1,+2,+3%5D);%0A++++let+b:+Cow%3C'_,+%5Bi32%5D%3E+=+Cow::Borrowed(%26%5B1,+2,+3%5D);%0A++++assert_eq!(Vec::from(o),+Vec::from(b));%0A%7D&amp;edition=2021"></a></div>
193 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-From%3CCow%3C'a,+B%3E%3E-for-Arc%3CB%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.45.0">1.45.0</span>···<a·class="src"·href="../../src/alloc/sync.rs.html#3748-3772">Source</a></span><a·href="#impl-From%3CCow%3C'a,+B%3E%3E-for-Arc%3CB%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·B&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;<a·class="enum"·href="enum.Cow.html"·title="enum·alloc::borrow::Cow">Cow</a>&lt;'a,·B&gt;&gt;·for·<a·class="struct"·href="../sync/struct.Arc.html"·title="struct·alloc::sync::Arc">Arc</a>&lt;B&gt;<div·class="where">where193 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-From%3CCow%3C'a,+B%3E%3E-for-Arc%3CB%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.45.0">1.45.0</span>···<a·class="src"·href="../../src/alloc/sync.rs.html#3748-3772">Source</a></span><a·href="#impl-From%3CCow%3C'a,+B%3E%3E-for-Arc%3CB%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·B&gt;·<a·class="trait"·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;<a·class="enum"·href="enum.Cow.html"·title="enum·alloc::borrow::Cow">Cow</a>&lt;'a,·B&gt;&gt;·for·<a·class="struct"·href="../sync/struct.Arc.html"·title="struct·alloc::sync::Arc">Arc</a>&lt;B&gt;<div·class="where">where
194 ····B:·<a·class="trait"·href="trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,194 ····B:·<a·class="trait"·href="trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·+·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
195 ····<a·class="struct"·href="../sync/struct.Arc.html"·title="struct·alloc::sync::Arc">Arc</a>&lt;B&gt;:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;'a·B</a>&gt;·+·<a·class="trait"·href="https://doc.r[·...·truncated·by·diffoscope;·len:·586,·SHA:·199c2c3cc988d7bd0b0851245000862b9557a97b5ce0a0284b9a05c1489ebb5b·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(cow:·<a·class="enum"·href="enum.Cow.html"·title="enum·alloc::borrow::Cow">Cow</a>&lt;'a,·B&gt;)·-&gt;·<a·class="struct"·href="../sync/struct.Arc.html"·title="struct·alloc::sync::Arc">Arc</a>&lt;B&gt;</h4></section></summary><div·class="docblock"><p>Creates·an·atomically·reference-counted·pointer·from·a·clone-on-write195 ····<a·class="struct"·href="../sync/struct.Arc.html"·title="struct·alloc::sync::Arc">Arc</a>&lt;B&gt;:·<a·class="trait"·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;<a·class="primitive"·href="../../core/primitive.reference.html">&amp;'a·B</a>&gt;·+·<a·class="trait"·href="../../core/convert/trait.From.html"·title="trait·core::convert::Fro[·...·truncated·by·diffoscope;·len:·478,·SHA:·74c18eb7ff55df4313c1d6076e085b2b299dffaf33cf875e8997905e79419981·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(cow:·<a·class="enum"·href="enum.Cow.html"·title="enum·alloc::borrow::Cow">Cow</a>&lt;'a,·B&gt;)·-&gt;·<a·class="struct"·href="../sync/struct.Arc.html"·title="struct·alloc::sync::Arc">Arc</a>&lt;B&gt;</h4></section></summary><div·class="docblock"><p>Creates·an·atomically·reference-counted·pointer·from·a·clone-on-write
196 pointer·by·copying·its·content.</p>196 pointer·by·copying·its·content.</p>
197 <h5·id="example-5"><a·class="doc-anchor"·href="#example-5">§</a>Example</h5>197 <h5·id="example-5"><a·class="doc-anchor"·href="#example-5">§</a>Example</h5>
198 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span>cow:·Cow&lt;<span·class="lifetime">'_</span>,·str&gt;·=·Cow::Borrowed(<span·class="string">"eggplant"</span>);198 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span>cow:·Cow&lt;<span·class="lifetime">'_</span>,·str&gt;·=·Cow::Borrowed(<span·class="string">"eggplant"</span>);
199 <span·class="kw">let·</span>shared:·Arc&lt;str&gt;·=·Arc::from(cow);199 <span·class="kw">let·</span>shared:·Arc&lt;str&gt;·=·Arc::from(cow);
200 <span·class="macro">assert_eq!</span>(<span·class="string">"eggplant"</span>,·<span·class="kw-2">&amp;</span>shared[..]);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::sync::Arc;%0A++++use+std::borrow::Cow;%0A++++let+cow:+Cow%3C'_,+str%3E+=+Cow::Borrowed(%22eggplant%22);%0A++++let+shared:+Arc%3Cstr%3E+=+Arc::from(cow);%0A++++assert_eq!(%22eggplant%22,+%26shared%5B..%5D);%0A%7D&amp;edition=2021"></a></div>200 <span·class="macro">assert_eq!</span>(<span·class="string">"eggplant"</span>,·<span·class="kw-2">&amp;</span>shared[..]);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::sync::Arc;%0A++++use+std::borrow::Cow;%0A++++let+cow:+Cow%3C'_,+str%3E+=+Cow::Borrowed(%22eggplant%22);%0A++++let+shared:+Arc%3Cstr%3E+=+Arc::from(cow);%0A++++assert_eq!(%22eggplant%22,+%26shared%5B..%5D);%0A%7D&amp;edition=2021"></a></div>
201 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-From%3CCow%3C'a,+B%3E%3E-for-Rc%3CB%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.45.0">1.45.0</span>···<a·class="src"·href="../../src/alloc/rc.rs.html#2789-2813">Source</a></span><a·href="#impl-From%3CCow%3C'a,+B%3E%3E-for-Rc%3CB%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·B&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;<a·class="enum"·href="enum.Cow.html"·title="enum·alloc::borrow::Cow">Cow</a>&lt;'a,·B&gt;&gt;·for·<a·class="struct"·href="../rc/struct.Rc.html"·title="struct·alloc::rc::Rc">Rc</a>&lt;B&gt;<div·class="where">where201 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-From%3CCow%3C'a,+B%3E%3E-for-Rc%3CB%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.45.0">1.45.0</span>···<a·class="src"·href="../../src/alloc/rc.rs.html#2789-2813">Source</a></span><a·href="#impl-From%3CCow%3C'a,+B%3E%3E-for-Rc%3CB%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·B&gt;·<a·class="trait"·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;<a·class="enum"·href="enum.Cow.html"·title="enum·alloc::borrow::Cow">Cow</a>&lt;'a,·B&gt;&gt;·for·<a·class="struct"·href="../rc/struct.Rc.html"·title="struct·alloc::rc::Rc">Rc</a>&lt;B&gt;<div·class="where">where
202 ····B:·<a·class="trait"·href="trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,202 ····B:·<a·class="trait"·href="trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·+·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
203 ····<a·class="struct"·href="../rc/struct.Rc.html"·title="struct·alloc::rc::Rc">Rc</a>&lt;B&gt;:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;'a·B</a>&gt;·+·<a·class="trait"·href="https://doc.r[·...·truncated·by·diffoscope;·len:·582,·SHA:·a4ef44088a60bed22fe6521e15a43bff668421ea30491dddabce8ab32848a1d8·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(cow:·<a·class="enum"·href="enum.Cow.html"·title="enum·alloc::borrow::Cow">Cow</a>&lt;'a,·B&gt;)·-&gt;·<a·class="struct"·href="../rc/struct.Rc.html"·title="struct·alloc::rc::Rc">Rc</a>&lt;B&gt;</h4></section></summary><div·class="docblock"><p>Creates·a·reference-counted·pointer·from·a·clone-on-write·pointer·by203 ····<a·class="struct"·href="../rc/struct.Rc.html"·title="struct·alloc::rc::Rc">Rc</a>&lt;B&gt;:·<a·class="trait"·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;<a·class="primitive"·href="../../core/primitive.reference.html">&amp;'a·B</a>&gt;·+·<a·class="trait"·href="../../core/convert/trait.From.html"·title="trait·core::convert::Fro[·...·truncated·by·diffoscope;·len:·474,·SHA:·ff333f7727f227113bd77a65d3e1b116b634531c88a8d2c399f4c4d4cd9068b4·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(cow:·<a·class="enum"·href="enum.Cow.html"·title="enum·alloc::borrow::Cow">Cow</a>&lt;'a,·B&gt;)·-&gt;·<a·class="struct"·href="../rc/struct.Rc.html"·title="struct·alloc::rc::Rc">Rc</a>&lt;B&gt;</h4></section></summary><div·class="docblock"><p>Creates·a·reference-counted·pointer·from·a·clone-on-write·pointer·by
204 copying·its·content.</p>204 copying·its·content.</p>
205 <h5·id="example"><a·class="doc-anchor"·href="#example">§</a>Example</h5>205 <h5·id="example"><a·class="doc-anchor"·href="#example">§</a>Example</h5>
206 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span>cow:·Cow&lt;<span·class="lifetime">'_</span>,·str&gt;·=·Cow::Borrowed(<span·class="string">"eggplant"</span>);206 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span>cow:·Cow&lt;<span·class="lifetime">'_</span>,·str&gt;·=·Cow::Borrowed(<span·class="string">"eggplant"</span>);
207 <span·class="kw">let·</span>shared:·Rc&lt;str&gt;·=·Rc::from(cow);207 <span·class="kw">let·</span>shared:·Rc&lt;str&gt;·=·Rc::from(cow);
208 <span·class="macro">assert_eq!</span>(<span·class="string">"eggplant"</span>,·<span·class="kw-2">&amp;</span>shared[..]);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::rc::Rc;%0A++++use+std::borrow::Cow;%0A++++let+cow:+Cow%3C'_,+str%3E+=+Cow::Borrowed(%22eggplant%22);%0A++++let+shared:+Rc%3Cstr%3E+=+Rc::from(cow);%0A++++assert_eq!(%22eggplant%22,+%26shared%5B..%5D);%0A%7D&amp;edition=2021"></a></div>208 <span·class="macro">assert_eq!</span>(<span·class="string">"eggplant"</span>,·<span·class="kw-2">&amp;</span>shared[..]);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::rc::Rc;%0A++++use+std::borrow::Cow;%0A++++let+cow:+Cow%3C'_,+str%3E+=+Cow::Borrowed(%22eggplant%22);%0A++++let+shared:+Rc%3Cstr%3E+=+Rc::from(cow);%0A++++assert_eq!(%22eggplant%22,+%26shared%5B..%5D);%0A%7D&amp;edition=2021"></a></div>
209 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-From%3CCow%3C'a,+CStr%3E%3E-for-CString"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.28.0">1.28.0</span>···<a·class="src"·href="../../src/alloc/ffi/c_str.rs.html#755-762">Source</a></span><a·href="#impl-From%3CCow%3C'a,+CStr%3E%3E-for-CString"·class="anchor">§</a><h3·class="code-header">impl&lt;'a&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;<a·class="enum"·href="enum.Cow.html"·title="enum·alloc::borrow::Cow">Cow</a>&lt;'a,·<a·class="struct"·href="https://doc.rust-lang.org/1.84.0/core/f[·...·truncated·by·diffoscope;·len:·744,·SHA:·c49f76eab1529c2d4e62d91bb5b7196b3d57cc66d8c331b67f786d7f7904d1ea·...·]/core/ffi/c_str/struct.CStr.html"·title="struct·core::ffi::c_str::CStr">CStr</a>&gt;)·-&gt;·Self</h4></section></summary><div·class="docblock"><p>Converts·a·<code>Cow&lt;'a,·CStr&gt;</code>·into·a·<code>CString</code>,·by·copying·the·contents·if·they·are209 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-From%3CCow%3C'a,+CStr%3E%3E-for-CString"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.28.0">1.28.0</span>···<a·class="src"·href="../../src/alloc/ffi/c_str.rs.html#755-762">Source</a></span><a·href="#impl-From%3CCow%3C'a,+CStr%3E%3E-for-CString"·class="anchor">§</a><h3·class="code-header">impl&lt;'a&gt;·<a·class="trait"·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;<a·class="enum"·href="enum.Cow.html"·title="enum·alloc::borrow::Cow">Cow</a>&lt;'a,·<a·class="struct"·href="../../core/ffi/c_str/struct.CStr.html"·title="struct·core::ffi::c_[·...·truncated·by·diffoscope;·len:·636,·SHA:·9f21389de6d2a4d65fb7a5e8d7229f219b5deae6526188ee5edcf4bd1e03fb9c·...·]/core/ffi/c_str/struct.CStr.html"·title="struct·core::ffi::c_str::CStr">CStr</a>&gt;)·-&gt;·Self</h4></section></summary><div·class="docblock"><p>Converts·a·<code>Cow&lt;'a,·CStr&gt;</code>·into·a·<code>CString</code>,·by·copying·the·contents·if·they·are
210 borrowed.</p>210 borrowed.</p>
211 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-From%3CCow%3C'a,+str%3E%3E-for-String"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.14.0">1.14.0</span>···<a·class="src"·href="../../src/alloc/string.rs.html#2950-2970">Source</a></span><a·href="#impl-From%3CCow%3C'a,+str%3E%3E-for-String"·class="anchor">§</a><h3·class="code-header">impl&lt;'a&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;<a·class="enum"·href="enum.Cow.html"·title="enum·alloc::borrow::Cow">Cow</a>&lt;'a,·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/cor[·...·truncated·by·diffoscope;·len:·707,·SHA:·1773b7007a6121842a310f656bf608cbb8cf8c8b0b458969712600623deaae68·...·]/core/primitive.str.html">str</a>&gt;)·-&gt;·<a·class="struct"·href="../string/struct.String.html"·title="struct·alloc::string::String">String</a></h4></section></summary><div·class="docblock"><p>Converts·a·clone-on-write·string·to·an·owned211 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-From%3CCow%3C'a,+str%3E%3E-for-String"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.14.0">1.14.0</span>···<a·class="src"·href="../../src/alloc/string.rs.html#2950-2970">Source</a></span><a·href="#impl-From%3CCow%3C'a,+str%3E%3E-for-String"·class="anchor">§</a><h3·class="code-header">impl&lt;'a&gt;·<a·class="trait"·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;<a·class="enum"·href="enum.Cow.html"·title="enum·alloc::borrow::Cow">Cow</a>&lt;'a,·<a·class="primitive"·href="../../core/primitive.str.html">str</a>&gt;&gt;·for·<a·class="st[·...·truncated·by·diffoscope;·len:·599,·SHA:·59091a99922b15a12a8ae75c3653f06d1099b674e6cfc20cac3dafcff8a55a3e·...·]/core/primitive.str.html">str</a>&gt;)·-&gt;·<a·class="struct"·href="../string/struct.String.html"·title="struct·alloc::string::String">String</a></h4></section></summary><div·class="docblock"><p>Converts·a·clone-on-write·string·to·an·owned
212 instance·of·<a·href="../string/struct.String.html"·title="struct·alloc::string::String"><code>String</code></a>.</p>212 instance·of·<a·href="../string/struct.String.html"·title="struct·alloc::string::String"><code>String</code></a>.</p>
213 <p>This·extracts·the·owned·string,213 <p>This·extracts·the·owned·string,
Max diff block lines reached; 175199/317180 bytes (55.24%) of diff not shown.
31.4 KB
./usr/share/doc/rust-doc/html/alloc/borrow/trait.Borrow.html
    
Offset 1, 20 lines modifiedOffset 1, 20 lines modified
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="A·trait·for·borrowing·data."><title>Borrow·in·alloc::borrow·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»  2025-01-07)»       (built» from»     a»    source»      tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Borrow</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#examples"·title="Examples">Examples</a></li></ul><h3><a·href="#required-methods">Required·Methods</a></h3><ul·class="block"><li><a·href="#tymethod.borrow"·title="borrow">borrow</a></li></ul><h3><a·href="#implementors">Implementors</a></h3></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>borrow</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">alloc</a>::<wbr><a·href="index.html">borrow</a></span><h1>Trait·<span·class="trait">Borrow</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/borrow.rs.html#157">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·trait·Borrow&lt;Borrowed&gt;<div·class="where">where1 <!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·trait·for·borrowing·data."><title>Borrow·in·alloc::borrow·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»  2025-01-07)»       (built» from»     a»    source»      tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Borrow</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#examples"·title="Examples">Examples</a></li></ul><h3><a·href="#required-methods">Required·Methods</a></h3><ul·class="block"><li><a·href="#tymethod.borrow"·title="borrow">borrow</a></li></ul><h3><a·href="#implementors">Implementors</a></h3></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>borrow</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">alloc</a>::<wbr><a·href="index.html">borrow</a></span><h1>Trait·<span·class="trait">Borrow</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../src/core/borrow.rs.html#157">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·trait·Borrow&lt;Borrowed&gt;<div·class="where">where
2 ····Borrowed:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div>{2 ····Borrowed:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div>{
3 ····//·Required·method3 ····//·Required·method
4 ····fn·<a·href="#tymethod.borrow"·class="fn">borrow</a>(&amp;self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;Borrowed</a>;4 ····fn·<a·href="#tymethod.borrow"·class="fn">borrow</a>(&amp;self)·-&gt;·<a·class="primitive"·href="../../core/primitive.reference.html">&amp;Borrowed</a>;
5 }</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>A·trait·for·borrowing·data.</p>5 }</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>A·trait·for·borrowing·data.</p>
6 <p>In·Rust,·it·is·common·to·provide·different·representations·of·a·type·for6 <p>In·Rust,·it·is·common·to·provide·different·representations·of·a·type·for
7 different·use·cases.·For·instance,·storage·location·and·management·for·a7 different·use·cases.·For·instance,·storage·location·and·management·for·a
8 value·can·be·specifically·chosen·as·appropriate·for·a·particular·use·via8 value·can·be·specifically·chosen·as·appropriate·for·a·particular·use·via
9 pointer·types·such·as·<a·href="../../std/boxed/struct.Box.html"><code>Box&lt;T&gt;</code></a>·or·<a·href="../../std/rc/struct.Rc.html"><code>Rc&lt;T&gt;</code></a>.·Beyond·these·generic9 pointer·types·such·as·<a·href="../../std/boxed/struct.Box.html"><code>Box&lt;T&gt;</code></a>·or·<a·href="../../std/rc/struct.Rc.html"><code>Rc&lt;T&gt;</code></a>.·Beyond·these·generic
10 wrappers·that·can·be·used·with·any·type,·some·types·provide·optional10 wrappers·that·can·be·used·with·any·type,·some·types·provide·optional
11 facets·providing·potentially·costly·functionality.·An·example·for·such·a11 facets·providing·potentially·costly·functionality.·An·example·for·such·a
12 type·is·<a·href="../../std/string/struct.String.html"><code>String</code></a>·which·adds·the·ability·to·extend·a·string·to·the·basic12 type·is·<a·href="../../std/string/struct.String.html"><code>String</code></a>·which·adds·the·ability·to·extend·a·string·to·the·basic
13 <a·href="https://doc.rust-lang.org/1.84.0/core/primitive.str.html"·title="primitive·str"><code>str</code></a>.·This·requires·keeping·additional·information·unnecessary·for·a13 <a·href="../../core/primitive.str.html"·title="primitive·str"><code>str</code></a>.·This·requires·keeping·additional·information·unnecessary·for·a
14 simple,·immutable·string.</p>14 simple,·immutable·string.</p>
15 <p>These·types·provide·access·to·the·underlying·data·through·references15 <p>These·types·provide·access·to·the·underlying·data·through·references
16 to·the·type·of·that·data.·They·are·said·to·be·‘borrowed·as’·that·type.16 to·the·type·of·that·data.·They·are·said·to·be·‘borrowed·as’·that·type.
17 For·instance,·a·<a·href="../../std/boxed/struct.Box.html"><code>Box&lt;T&gt;</code></a>·can·be·borrowed·as·<code>T</code>·while·a·<a·href="../../std/string/struct.String.html"><code>String</code></a>17 For·instance,·a·<a·href="../../std/boxed/struct.Box.html"><code>Box&lt;T&gt;</code></a>·can·be·borrowed·as·<code>T</code>·while·a·<a·href="../../std/string/struct.String.html"><code>String</code></a>
18 can·be·borrowed·as·<code>str</code>.</p>18 can·be·borrowed·as·<code>str</code>.</p>
19 <p>Types·express·that·they·can·be·borrowed·as·some·type·<code>T</code>·by·implementing19 <p>Types·express·that·they·can·be·borrowed·as·some·type·<code>T</code>·by·implementing
20 <code>Borrow&lt;T&gt;</code>,·providing·a·reference·to·a·<code>T</code>·in·the·trait’s20 <code>Borrow&lt;T&gt;</code>,·providing·a·reference·to·a·<code>T</code>·in·the·trait’s
Offset 28, 22 lines modifiedOffset 28, 22 lines modified
28 on·the·identical·behavior·of·these·additional·trait·implementations.28 on·the·identical·behavior·of·these·additional·trait·implementations.
29 These·traits·will·likely·appear·as·additional·trait·bounds.</p>29 These·traits·will·likely·appear·as·additional·trait·bounds.</p>
30 <p>In·particular·<code>Eq</code>,·<code>Ord</code>·and·<code>Hash</code>·must·be·equivalent·for30 <p>In·particular·<code>Eq</code>,·<code>Ord</code>·and·<code>Hash</code>·must·be·equivalent·for
31 borrowed·and·owned·values:·<code>x.borrow()·==·y.borrow()</code>·should·give·the31 borrowed·and·owned·values:·<code>x.borrow()·==·y.borrow()</code>·should·give·the
32 same·result·as·<code>x·==·y</code>.</p>32 same·result·as·<code>x·==·y</code>.</p>
33 <p>If·generic·code·merely·needs·to·work·for·all·types·that·can33 <p>If·generic·code·merely·needs·to·work·for·all·types·that·can
34 provide·a·reference·to·related·type·<code>T</code>,·it·is·often·better·to·use34 provide·a·reference·to·related·type·<code>T</code>,·it·is·often·better·to·use
35 <a·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.AsRef.html"·title="trait·core::convert::AsRef"><code>AsRef&lt;T&gt;</code></a>·as·more·types·can·safely·implement·it.</p>35 <a·href="../../core/convert/trait.AsRef.html"·title="trait·core::convert::AsRef"><code>AsRef&lt;T&gt;</code></a>·as·more·types·can·safely·implement·it.</p>
36 <h2·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h2>36 <h2·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h2>
37 <p>As·a·data·collection,·<a·href="../../std/collections/struct.HashMap.html"><code>HashMap&lt;K,·V&gt;</code></a>·owns·both·keys·and·values.·If37 <p>As·a·data·collection,·<a·href="../../std/collections/struct.HashMap.html"><code>HashMap&lt;K,·V&gt;</code></a>·owns·both·keys·and·values.·If
38 the·key’s·actual·data·is·wrapped·in·a·managing·type·of·some·kind,·it38 the·key’s·actual·data·is·wrapped·in·a·managing·type·of·some·kind,·it
39 should,·however,·still·be·possible·to·search·for·a·value·using·a39 should,·however,·still·be·possible·to·search·for·a·value·using·a
40 reference·to·the·key’s·data.·For·instance,·if·the·key·is·a·string,·then40 reference·to·the·key’s·data.·For·instance,·if·the·key·is·a·string,·then
41 it·is·likely·stored·with·the·hash·map·as·a·<a·href="../../std/string/struct.String.html"><code>String</code></a>,·while·it·should41 it·is·likely·stored·with·the·hash·map·as·a·<a·href="../../std/string/struct.String.html"><code>String</code></a>,·while·it·should
42 be·possible·to·search·using·a·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.str.html"·title="primitive·str"><code>&amp;str</code></a>.·Thus,·<code>insert</code>·needs·to42 be·possible·to·search·using·a·<a·href="../../core/primitive.str.html"·title="primitive·str"><code>&amp;str</code></a>.·Thus,·<code>insert</code>·needs·to
43 operate·on·a·<code>String</code>·while·<code>get</code>·needs·to·be·able·to·use·a·<code>&amp;str</code>.</p>43 operate·on·a·<code>String</code>·while·<code>get</code>·needs·to·be·able·to·use·a·<code>&amp;str</code>.</p>
44 <p>Slightly·simplified,·the·relevant·parts·of·<code>HashMap&lt;K,·V&gt;</code>·look·like44 <p>Slightly·simplified,·the·relevant·parts·of·<code>HashMap&lt;K,·V&gt;</code>·look·like
45 this:</p>45 this:</p>
  
46 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::borrow::Borrow;46 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::borrow::Borrow;
47 <span·class="kw">use·</span>std::hash::Hash;47 <span·class="kw">use·</span>std::hash::Hash;
  
Offset 111, 27 lines modifiedOffset 111, 27 lines modified
111 }</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::hash::%7BHash,+Hasher%7D;%0A++++pub+struct+CaseInsensitiveString(String);%0A++++impl+Hash+for+CaseInsensitiveString+%7B%0A++++++++fn+hash%3CH:+Hasher%3E(%26self,+state:+%26mut+H)+%7B%0A++++++++++++for+c+in+self.0.as_bytes()+%7B%0A++++++++++++++++c.to_ascii_lowercase().hash(state)%0A++++++++++++%7D%0A++++++++%7D%0A++++%7D%0A%7D&amp;edition=2021"></a></div>111 }</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::hash::%7BHash,+Hasher%7D;%0A++++pub+struct+CaseInsensitiveString(String);%0A++++impl+Hash+for+CaseInsensitiveString+%7B%0A++++++++fn+hash%3CH:+Hasher%3E(%26self,+state:+%26mut+H)+%7B%0A++++++++++++for+c+in+self.0.as_bytes()+%7B%0A++++++++++++++++c.to_ascii_lowercase().hash(state)%0A++++++++++++%7D%0A++++++++%7D%0A++++%7D%0A%7D&amp;edition=2021"></a></div>
112 <p>Can·<code>CaseInsensitiveString</code>·implement·<code>Borrow&lt;str&gt;</code>?·It·certainly·can112 <p>Can·<code>CaseInsensitiveString</code>·implement·<code>Borrow&lt;str&gt;</code>?·It·certainly·can
113 provide·a·reference·to·a·string·slice·via·its·contained·owned·string.113 provide·a·reference·to·a·string·slice·via·its·contained·owned·string.
114 But·because·its·<code>Hash</code>·implementation·differs,·it·behaves·differently114 But·because·its·<code>Hash</code>·implementation·differs,·it·behaves·differently
115 from·<code>str</code>·and·therefore·must·not,·in·fact,·implement·<code>Borrow&lt;str&gt;</code>.115 from·<code>str</code>·and·therefore·must·not,·in·fact,·implement·<code>Borrow&lt;str&gt;</code>.
116 If·it·wants·to·allow·others·access·to·the·underlying·<code>str</code>,·it·can·do116 If·it·wants·to·allow·others·access·to·the·underlying·<code>str</code>,·it·can·do
117 that·via·<code>AsRef&lt;str&gt;</code>·which·doesn’t·carry·any·extra·requirements.</p>117 that·via·<code>AsRef&lt;str&gt;</code>·which·doesn’t·carry·any·extra·requirements.</p>
118 </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.borrow"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/borrow.rs.html#178">Source</a></span><h4·class="code-header">fn·<a·href="#tymethod.borrow"·class="fn">borrow</a>(&amp;self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;Borrowed</a></h4></section></summary><div·class="docblock"><p>Immutably·borrows·from·an·owned·value.</p>118 </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.borrow"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/borrow.rs.html#178">Source</a></span><h4·class="code-header">fn·<a·href="#tymethod.borrow"·class="fn">borrow</a>(&amp;self)·-&gt;·<a·class="primitive"·href="../../core/primitive.reference.html">&amp;Borrowed</a></h4></section></summary><div·class="docblock"><p>Immutably·borrows·from·an·owned·value.</p>
119 <h5·id="examples-1"><a·class="doc-anchor"·href="#examples-1">§</a>Examples</h5>119 <h5·id="examples-1"><a·class="doc-anchor"·href="#examples-1">§</a>Examples</h5>
120 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::borrow::Borrow;120 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::borrow::Borrow;
  
121 <span·class="kw">fn·</span>check&lt;T:·Borrow&lt;str&gt;&gt;(s:·T)·{121 <span·class="kw">fn·</span>check&lt;T:·Borrow&lt;str&gt;&gt;(s:·T)·{
122 ····<span·class="macro">assert_eq!</span>(<span·class="string">"Hello"</span>,·s.borrow());122 ····<span·class="macro">assert_eq!</span>(<span·class="string">"Hello"</span>,·s.borrow());
123 }123 }
  
124 <span·class="kw">let·</span>s·=·<span·class="string">"Hello"</span>.to_string();124 <span·class="kw">let·</span>s·=·<span·class="string">"Hello"</span>.to_string();
  
125 check(s);125 check(s);
  
126 <span·class="kw">let·</span>s·=·<span·class="string">"Hello"</span>;126 <span·class="kw">let·</span>s·=·<span·class="string">"Hello"</span>;
  
127 check(s);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::borrow::Borrow;%0A++++%0A++++fn+check%3CT:+Borrow%3Cstr%3E%3E(s:+T)+%7B%0A++++++++assert_eq!(%22Hello%22,+s.borrow());%0A++++%7D%0A++++%0A++++let+s+=+%22Hello%22.to_string();%0A++++%0A++++check(s);%0A++++%0A++++let+s+=+%22Hello%22;%0A++++%0A++++check(s);%0A%7D&amp;edition=2021"></a></div>127 check(s);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::borrow::Borrow;%0A++++%0A++++fn+check%3CT:+Borrow%3Cstr%3E%3E(s:+T)+%7B%0A++++++++assert_eq!(%22Hello%22,+s.borrow());%0A++++%7D%0A++++%0A++++let+s+=+%22Hello%22.to_string();%0A++++%0A++++check(s);%0A++++%0A++++let+s+=+%22Hello%22;%0A++++%0A++++check(s);%0A%7D&amp;edition=2021"></a></div>
128 </div></details></div><h2·id="implementors"·class="section-header">Implementors<a·href="#implementors"·class="anchor">§</a></h2><div·id="implementors-list"><section·id="impl-Borrow%3Cstr%3E-for-String"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/alloc/str.rs.html#189-194">Source</a></span><a·href="#impl-Borrow%3Cstr%3E-for-String"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.str.html">str</a>&gt;·for·<a·class="struct"·href="../string/struct.String.html"·title="struct·alloc::string::String">String</a></h3></section><section·id="impl-Borrow%3CCStr%3E-for-CString"·class="impl"><span[·...·truncated·by·diffoscope;·len:·417,·SHA:·5036c4ba917290929bb89271190ba46f9184fa380ccda35fbb759399fb1a419f·...·]/core/ffi/c_str/struct.CStr.html"·title="struct·core::ffi::c_str::CStr">CStr</a>&gt;·for·<a·class="struct"·href="../ffi/struct.CString.html"·title="struct·alloc::ffi::CString">CString</a></h3></section><section·id="impl-Borrow%3CB%3E-for-Cow%3C'a,+B%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/alloc/borrow.rs.html#20-27">Source</a></span><a·href="#impl-Borrow%3CB%3E-for-Cow%3C'a,+B%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·B&gt;·<a·class="trait"·href="trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;B&gt;·for·<a·class="enum"·href="enum.Cow.html"·title="enum·alloc::borrow::Cow">Cow</a>&lt;'a,·B&gt;<div·class="where">where128 </div></details></div><h2·id="implementors"·class="section-header">Implementors<a·href="#implementors"·class="anchor">§</a></h2><div·id="implementors-list"><section·id="impl-Borrow%3Cstr%3E-for-String"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/alloc/str.rs.html#189-194">Source</a></span><a·href="#impl-Borrow%3Cstr%3E-for-String"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;<a·class="primitive"·href="../../core/primitive.str.html">str</a>&gt;·for·<a·class="struct"·href="../string/struct.String.html"·title="struct·alloc::string::String">String</a></h3></section><section·id="impl-Borrow%3CCStr%3E-for-CString"·class="impl"><span·class="rightside"><span·cl[·...·truncated·by·diffoscope;·len:·363,·SHA:·2fd40712cf6b61830a8084075f4d1797aae6b1f19f418e3edb85ed9cb6a39f0c·...·]/core/ffi/c_str/struct.CStr.html"·title="struct·core::ffi::c_str::CStr">CStr</a>&gt;·for·<a·class="struct"·href="../ffi/struct.CString.html"·title="struct·alloc::ffi::CString">CString</a></h3></section><section·id="impl-Borrow%3CB%3E-for-Cow%3C'a,+B%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/alloc/borrow.rs.html#20-27">Source</a></span><a·href="#impl-Borrow%3CB%3E-for-Cow%3C'a,+B%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·B&gt;·<a·class="trait"·href="trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;B&gt;·for·<a·class="enum"·href="enum.Cow.html"·title="enum·alloc::borrow::Cow">Cow</a>&lt;'a,·B&gt;<div·class="where">where
129 ····B:·<a·class="trait"·href="trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section><section·id="impl-Borrow%3CT%3E-for-%26T"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·vers[·...·truncated·by·diffoscope;·len:·384,·SHA:·cd19cf4af31cd0f0b9ab0dfcc3e03aa16b186f18a03e813ee48e0187d3bb3ab4·...·]/core/primitive.reference.html">&amp;T</a><div·class="where">where129 ····B:·<a·class="trait"·href="trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·+·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section><section·id="impl-Borrow%3CT%3E-for-%26T"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<[·...·truncated·by·diffoscope;·len:·303,·SHA:·39289f2e91f087389fa0beac54863e1bf41ed1e56fe2b9a1eff926d20a8b566c·...·]/core/primitive.reference.html">&amp;T</a><div·class="where">where
130 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section><section·id="impl-Borrow%3CT%3E-for-%26mut+T"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·[·...·truncated·by·diffoscope;·len:·392,·SHA:·647b48c9303d78ba865f903d980bdb43ade2027caf61f9884e64894e7b1cf40e·...·]/core/primitive.reference.html">&amp;mut·T</a><div·class="where">where130 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section><section·id="impl-Borrow%3CT%3E-for-%26mut+T"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>[·...·truncated·by·diffoscope;·len:·311,·SHA:·606ecfa25c6f1ad27d2d1a9d59b045b8b79aabd909db8a4f6513674a01f431d5·...·]/core/primitive.reference.html">&amp;mut·T</a><div·class="where">where
131 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section><section·id="impl-Borrow%3CT%3E-for-T"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version[·...·truncated·by·diffoscope;·len:·76,·SHA:·0d34ca0d932ee662aea67efd3d6389dcbe2a7b802823a8e70121ac40c2c328fd·...·]/src/core/borrow.rs.html#209">Source</a></span><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where131 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section><section·id="impl-Borrow%3CT%3E-for-T"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·c[·...·truncated·by·diffoscope;·len:·22,·SHA:·79d11642169d047d0be0d880c2a71450d888b5f98c3ebda11e1ea4d6edc6b7bd·...·]/src/core/borrow.rs.html#209">Source</a></span><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where
132 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section><section·id="impl-Borrow%3C%5BT%5D%3E-for-Vec%3CT,+A%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·[·...·truncated·by·diffoscope;·len:·3444,·SHA:·7ed385985a7f050afb4111aebb8b5a2c4e9242dfc18a7d4a08092d0a7736a273·...·]/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,·A:·<a·class="trait"·href="../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>&gt;·<a·class="trait"·href="trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;T&gt;·for·<a·class="struct"·href="../sync/struct.Arc.html"·title="struct·alloc::sync::Arc">Arc</a>&lt;T,·A&gt;</h3></section></div><script·src="../../trait.impl/core/borrow/trait.Borrow.js"·data-ignore-extern-crates="core"·async></script></section></div></main></body></html>132 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section><section·id="impl-Borrow%3C%5BT%5D%3E-for-Vec%3CT,+A%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1[·...·truncated·by·diffoscope;·len:·3201,·SHA:·8dbdfded9fb445a91beb659478285bc43db9aa3f4e4cc4467062c98766e81950·...·]/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,·A:·<a·class="trait"·href="../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>&gt;·<a·class="trait"·href="trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;T&gt;·for·<a·class="struct"·href="../sync/struct.Arc.html"·title="struct·alloc::sync::Arc">Arc</a>&lt;T,·A&gt;</h3></section></div><script·src="../../trait.impl/core/borrow/trait.Borrow.js"·data-ignore-extern-crates="core"·async></script></section></div></main></body></html>
20.1 KB
./usr/share/doc/rust-doc/html/alloc/borrow/trait.BorrowMut.html
    
Offset 1, 22 lines modifiedOffset 1, 22 lines modified
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="A·trait·for·mutably·borrowing·data."><title>BorrowMut·in·alloc::borrow·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»2025-01-07)»     (built»       from»   a»  source»    tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Borrow<wbr>Mut</a></h2><h3><a·href="#required-methods">Required·Methods</a></h3><ul·class="block"><li><a·href="#tymethod.borrow_mut"·title="borrow_mut">borrow_mut</a></li></ul><h3><a·href="#implementors">Implementors</a></h3></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>borrow</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">alloc</a>::<wbr><a·href="index.html">borrow</a></span><h1>Trait·<span·class="trait">BorrowMut</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/borrow.rs.html#188">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·trait·BorrowMut&lt;Borrowed&gt;:·<a·class="trait"·href="trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;Borrowed&gt;<div·class="where">where1 <!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·trait·for·mutably·borrowing·data."><title>BorrowMut·in·alloc::borrow·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»2025-01-07)»     (built»       from»   a»  source»    tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Borrow<wbr>Mut</a></h2><h3><a·href="#required-methods">Required·Methods</a></h3><ul·class="block"><li><a·href="#tymethod.borrow_mut"·title="borrow_mut">borrow_mut</a></li></ul><h3><a·href="#implementors">Implementors</a></h3></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>borrow</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">alloc</a>::<wbr><a·href="index.html">borrow</a></span><h1>Trait·<span·class="trait">BorrowMut</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../src/core/borrow.rs.html#188">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·trait·BorrowMut&lt;Borrowed&gt;:·<a·class="trait"·href="trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;Borrowed&gt;<div·class="where">where
2 ····Borrowed:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div>{2 ····Borrowed:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div>{
3 ····//·Required·method3 ····//·Required·method
4 ····fn·<a·href="#tymethod.borrow_mut"·class="fn">borrow_mut</a>(&amp;mut·self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;mut·Borrowed</a>;4 ····fn·<a·href="#tymethod.borrow_mut"·class="fn">borrow_mut</a>(&amp;mut·self)·-&gt;·<a·class="primitive"·href="../../core/primitive.reference.html">&amp;mut·Borrowed</a>;
5 }</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>A·trait·for·mutably·borrowing·data.</p>5 }</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>A·trait·for·mutably·borrowing·data.</p>
6 <p>As·a·companion·to·<a·href="trait.Borrow.html"·title="trait·alloc::borrow::Borrow"><code>Borrow&lt;T&gt;</code></a>·this·trait·allows·a·type·to·borrow·as6 <p>As·a·companion·to·<a·href="trait.Borrow.html"·title="trait·alloc::borrow::Borrow"><code>Borrow&lt;T&gt;</code></a>·this·trait·allows·a·type·to·borrow·as
7 an·underlying·type·by·providing·a·mutable·reference.·See·<a·href="trait.Borrow.html"·title="trait·alloc::borrow::Borrow"><code>Borrow&lt;T&gt;</code></a>7 an·underlying·type·by·providing·a·mutable·reference.·See·<a·href="trait.Borrow.html"·title="trait·alloc::borrow::Borrow"><code>Borrow&lt;T&gt;</code></a>
8 for·more·information·on·borrowing·as·another·type.</p>8 for·more·information·on·borrowing·as·another·type.</p>
9 </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.borrow_mut"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/borrow.rs.html#205">Source</a></span><h4·class="code-header">fn·<a·href="#tymethod.borrow_mut"·class="fn">borrow_mut</a>(&amp;mut·self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;mut·Borrowed</a></h4></section></summary><div·class="docblock"><p>Mutably·borrows·from·an·owned·value.</p>9 </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.borrow_mut"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/borrow.rs.html#205">Source</a></span><h4·class="code-header">fn·<a·href="#tymethod.borrow_mut"·class="fn">borrow_mut</a>(&amp;mut·self)·-&gt;·<a·class="primitive"·href="../../core/primitive.reference.html">&amp;mut·Borrowed</a></h4></section></summary><div·class="docblock"><p>Mutably·borrows·from·an·owned·value.</p>
10 <h5·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h5>10 <h5·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h5>
11 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::borrow::BorrowMut;11 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::borrow::BorrowMut;
  
12 <span·class="kw">fn·</span>check&lt;T:·BorrowMut&lt;[i32]&gt;&gt;(<span·class="kw-2">mut·</span>v:·T)·{12 <span·class="kw">fn·</span>check&lt;T:·BorrowMut&lt;[i32]&gt;&gt;(<span·class="kw-2">mut·</span>v:·T)·{
13 ····<span·class="macro">assert_eq!</span>(<span·class="kw-2">&amp;mut·</span>[<span·class="number">1</span>,·<span·class="number">2</span>,·<span·class="number">3</span>],·v.borrow_mut());13 ····<span·class="macro">assert_eq!</span>(<span·class="kw-2">&amp;mut·</span>[<span·class="number">1</span>,·<span·class="number">2</span>,·<span·class="number">3</span>],·v.borrow_mut());
14 }14 }
  
15 <span·class="kw">let·</span>v·=·<span·class="macro">vec!</span>[<span·class="number">1</span>,·<span·class="number">2</span>,·<span·class="number">3</span>];15 <span·class="kw">let·</span>v·=·<span·class="macro">vec!</span>[<span·class="number">1</span>,·<span·class="number">2</span>,·<span·class="number">3</span>];
  
16 check(v);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::borrow::BorrowMut;%0A++++%0A++++fn+check%3CT:+BorrowMut%3C%5Bi32%5D%3E%3E(mut+v:+T)+%7B%0A++++++++assert_eq!(%26mut+%5B1,+2,+3%5D,+v.borrow_mut());%0A++++%7D%0A++++%0A++++let+v+=+vec!%5B1,+2,+3%5D;%0A++++%0A++++check(v);%0A%7D&amp;edition=2021"></a></div>16 check(v);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::borrow::BorrowMut;%0A++++%0A++++fn+check%3CT:+BorrowMut%3C%5Bi32%5D%3E%3E(mut+v:+T)+%7B%0A++++++++assert_eq!(%26mut+%5B1,+2,+3%5D,+v.borrow_mut());%0A++++%7D%0A++++%0A++++let+v+=+vec!%5B1,+2,+3%5D;%0A++++%0A++++check(v);%0A%7D&amp;edition=2021"></a></div>
17 </div></details></div><h2·id="implementors"·class="section-header">Implementors<a·href="#implementors"·class="anchor">§</a></h2><div·id="implementors-list"><section·id="impl-BorrowMut%3Cstr%3E-for-String"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../src/alloc/str.rs.html#197-202">Source</a></span><a·href="#impl-BorrowMut%3Cstr%3E-for-String"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="trait.BorrowMut.html"·title="trait·alloc::borrow::BorrowMut">BorrowMut</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.str.html">str</a>&gt;·for·<a·class="struct"·href="../string/struct.String.html"·title="struct·alloc::string::String">String</a></h3></section><section·id="impl-BorrowMut%3CT%3E-for-%26mut+T"·class="impl"><spa[·...·truncated·by·diffoscope;·len:·469,·SHA:·4d4da3ca7d0226a96d9d273a1cd5b0bd9cdad5e4f53cf9103625cb23e605c662·...·]/core/primitive.reference.html">&amp;mut·T</a><div·class="where">where17 </div></details></div><h2·id="implementors"·class="section-header">Implementors<a·href="#implementors"·class="anchor">§</a></h2><div·id="implementors-list"><section·id="impl-BorrowMut%3Cstr%3E-for-String"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../src/alloc/str.rs.html#197-202">Source</a></span><a·href="#impl-BorrowMut%3Cstr%3E-for-String"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="trait.BorrowMut.html"·title="trait·alloc::borrow::BorrowMut">BorrowMut</a>&lt;<a·class="primitive"·href="../../core/primitive.str.html">str</a>&gt;·for·<a·class="struct"·href="../string/struct.String.html"·title="struct·alloc::string::String">String</a></h3></section><section·id="impl-BorrowMut%3CT%3E-for-%26mut+T"·class="impl"><span·class="rightside"><span·c[·...·truncated·by·diffoscope;·len:·388,·SHA:·fb02b9112e0e76c70385d8fc41e9341f36ae9e87463d1ef5a1af583f13940e8e·...·]/core/primitive.reference.html">&amp;mut·T</a><div·class="where">where
18 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section><section·id="impl-BorrowMut%3CT%3E-for-T"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·vers[·...·truncated·by·diffoscope;·len:·79,·SHA:·475aa512a30b815516a793efc04b30fde8a4ee90b14a73648cdeb6572bcc9a5e·...·]/src/core/borrow.rs.html#217">Source</a></span><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="trait.BorrowMut.html"·title="trait·alloc::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where18 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section><section·id="impl-BorrowMut%3CT%3E-for-T"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<[·...·truncated·by·diffoscope;·len:·25,·SHA:·3f3c46cc2d2467366d642d291b9a99f0bdc6431c47c64b6ce1d418d2e60a44df·...·]/src/core/borrow.rs.html#217">Source</a></span><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="trait.BorrowMut.html"·title="trait·alloc::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where
19 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section><section·id="impl-BorrowMut%3C%5BT%5D%3E-for-Vec%3CT,+A%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stab[·...·truncated·by·diffoscope;·len:·1877,·SHA:·b8356836fe3336471a559e10a7f997038201d388fcd2a6967348371bd82d2213·...·]/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,·A:·<a·class="trait"·href="../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>&gt;·<a·class="trait"·href="trait.BorrowMut.html"·title="trait·alloc::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·<a·class="struct"·href="../boxed/struct.Box.html"·title="struct·alloc::boxed::Box">Box</a>&lt;T,·A&gt;</h3></section></div><script·src="../../trait.impl/core/borrow/trait.BorrowMut.js"·data-ignore-extern-crates="core"·async></script></section></div></main></body></html>19 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section><section·id="impl-BorrowMut%3C%5BT%5D%3E-for-Vec%3CT,+A%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0[·...·truncated·by·diffoscope;·len:·1688,·SHA:·352d5aa58ef0ccdbd5a1e1a969e74099e5df359f916a19434484f6989e13e47b·...·]/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,·A:·<a·class="trait"·href="../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>&gt;·<a·class="trait"·href="trait.BorrowMut.html"·title="trait·alloc::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·<a·class="struct"·href="../boxed/struct.Box.html"·title="struct·alloc::boxed::Box">Box</a>&lt;T,·A&gt;</h3></section></div><script·src="../../trait.impl/core/borrow/trait.BorrowMut.js"·data-ignore-extern-crates="core"·async></script></section></div></main></body></html>
12.6 KB
./usr/share/doc/rust-doc/html/alloc/borrow/trait.ToOwned.html
    
Offset 18, 18 lines modifiedOffset 18, 18 lines modified
  
18 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span>s:·<span·class="kw-2">&amp;</span>str·=·<span·class="string">"a"</span>;18 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span>s:·<span·class="kw-2">&amp;</span>str·=·<span·class="string">"a"</span>;
19 <span·class="kw">let·</span>ss:·String·=·s.to_owned();19 <span·class="kw">let·</span>ss:·String·=·s.to_owned();
  
20 <span·class="kw">let·</span>v:·<span·class="kw-2">&amp;</span>[i32]·=·<span·class="kw-2">&amp;</span>[<span·class="number">1</span>,·<span·class="number">2</span>];20 <span·class="kw">let·</span>v:·<span·class="kw-2">&amp;</span>[i32]·=·<span·class="kw-2">&amp;</span>[<span·class="number">1</span>,·<span·class="number">2</span>];
21 <span·class="kw">let·</span>vv:·Vec&lt;i32&gt;·=·v.to_owned();</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++let+s:+%26str+=+%22a%22;%0A++++let+ss:+String+=+s.to_owned();%0A++++%0A++++let+v:+%26%5Bi32%5D+=+%26%5B1,+2%5D;%0A++++let+vv:+Vec%3Ci32%3E+=+v.to_owned();%0A%7D&amp;edition=2021"></a></div>21 <span·class="kw">let·</span>vv:·Vec&lt;i32&gt;·=·v.to_owned();</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++let+s:+%26str+=+%22a%22;%0A++++let+ss:+String+=+s.to_owned();%0A++++%0A++++let+v:+%26%5Bi32%5D+=+%26%5B1,+2%5D;%0A++++let+vv:+Vec%3Ci32%3E+=+v.to_owned();%0A%7D&amp;edition=2021"></a></div>
22 </div></details></div><h2·id="provided-methods"·class="section-header">Provided·Methods<a·href="#provided-methods"·class="anchor">§</a></h2><div·class="methods"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_into"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.63.0">1.63.0</span>···<a·class="src"·href="../../src/alloc/borrow.rs.html#76-78">Source</a></span><h4·class="code-header">fn·<a·href="#method.clone_into"·class="fn">clone_into</a>(&amp;self,·target:·&amp;mut·Self::<a·class="associatedtype"·href="trait.ToOwned.html#associatedtype.Owned"·title="type·alloc::borrow::ToOwned::Owned">Owned</a>)</h4></section></summary><div·class="docblock"><p>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.</p>22 </div></details></div><h2·id="provided-methods"·class="section-header">Provided·Methods<a·href="#provided-methods"·class="anchor">§</a></h2><div·class="methods"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_into"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.63.0">1.63.0</span>···<a·class="src"·href="../../src/alloc/borrow.rs.html#76-78">Source</a></span><h4·class="code-header">fn·<a·href="#method.clone_into"·class="fn">clone_into</a>(&amp;self,·target:·&amp;mut·Self::<a·class="associatedtype"·href="trait.ToOwned.html#associatedtype.Owned"·title="type·alloc::borrow::ToOwned::Owned">Owned</a>)</h4></section></summary><div·class="docblock"><p>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.</p>
23 <p>This·is·borrow-generalized·version·of·<a·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html#method.clone_from"·title="method·core::clone::Clone::clone_from"><code>Clone::clone_from</code></a>.</p>23 <p>This·is·borrow-generalized·version·of·<a·href="../../core/clone/trait.Clone.html#method.clone_from"·title="method·core::clone::Clone::clone_from"><code>Clone::clone_from</code></a>.</p>
24 <h5·id="examples-1"><a·class="doc-anchor"·href="#examples-1">§</a>Examples</h5>24 <h5·id="examples-1"><a·class="doc-anchor"·href="#examples-1">§</a>Examples</h5>
25 <p>Basic·usage:</p>25 <p>Basic·usage:</p>
  
26 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span><span·class="kw-2">mut·</span>s:·String·=·String::new();26 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span><span·class="kw-2">mut·</span>s:·String·=·String::new();
27 <span·class="string">"hello"</span>.clone_into(<span·class="kw-2">&amp;mut·</span>s);27 <span·class="string">"hello"</span>.clone_into(<span·class="kw-2">&amp;mut·</span>s);
  
28 <span·class="kw">let·</span><span·class="kw-2">mut·</span>v:·Vec&lt;i32&gt;·=·Vec::new();28 <span·class="kw">let·</span><span·class="kw-2">mut·</span>v:·Vec&lt;i32&gt;·=·Vec::new();
29 [<span·class="number">1</span>,·<span·class="number">2</span>][..].clone_into(<span·class="kw-2">&amp;mut·</span>v);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++let+mut+s:+String+=+String::new();%0A++++%22hello%22.clone_into(%26mut+s);%0A++++%0A++++let+mut+v:+Vec%3Ci32%3E+=+Vec::new();%0A++++%5B1,+2%5D%5B..%5D.clone_into(%26mut+v);%0A%7D&amp;edition=2021"></a></div>29 [<span·class="number">1</span>,·<span·class="number">2</span>][..].clone_into(<span·class="kw-2">&amp;mut·</span>v);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++let+mut+s:+String+=+String::new();%0A++++%22hello%22.clone_into(%26mut+s);%0A++++%0A++++let+mut+v:+Vec%3Ci32%3E+=+Vec::new();%0A++++%5B1,+2%5D%5B..%5D.clone_into(%26mut+v);%0A%7D&amp;edition=2021"></a></div>
30 </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.84.0/reference/items/traits.html#object-safety">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="implementors"·class="section-header">Implementors<a·href="#implementors"·class="anchor">§</a></h2><div·id="implementors-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-str"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/alloc/str.rs.html#206-219">Source</a></span><a·href="#impl-ToOwned-for-str"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.str.html">str</a></h3></section></summary><div·class="impl-items"><section·id="associatedtype.Owned-1"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/alloc/str.rs.html#207">Source<[·...·truncated·by·diffoscope;·len:·803,·SHA:·06e886225397fdd416be3215e31636d5a44c657656be16aaf9e2a7217c6744b2·...·]/core/ffi/c_str/struct.CStr.html"·title="struct·core::ffi::c_str::CStr">CStr</a></h3></section></summary><div·class="impl-items"><section·id="associatedtype.Owned-2"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/alloc/ffi/c_str.rs.html#1081">Source</a><a·href="#associatedtype.Owned-2"·class="anchor">§</a><h4·class="code-header">type·<a·href="#associatedtype.Owned"·class="associatedtype">Owned</a>·=·<a·class="struct"·href="../ffi/struct.CString.html"·title="struct·alloc::ffi::CString">CString</a></h4></section></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/alloc/borrow.rs.html#82-94">Source</a></span><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where30 </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.84.0/reference/items/traits.html#object-safety">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="implementors"·class="section-header">Implementors<a·href="#implementors"·class="anchor">§</a></h2><div·id="implementors-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-str"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/alloc/str.rs.html#206-219">Source</a></span><a·href="#impl-ToOwned-for-str"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·<a·class="primitive"·href="../../core/primitive.str.html">str</a></h3></section></summary><div·class="impl-items"><section·id="associatedtype.Owned-1"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/alloc/str.rs.html#207">Source</a><a·href="#associatedtype[·...·truncated·by·diffoscope;·len:·749,·SHA:·9dc58f210770a0a41a8bb77919e8d11658b27a0312919f8c764a4aafbac6d170·...·]/core/ffi/c_str/struct.CStr.html"·title="struct·core::ffi::c_str::CStr">CStr</a></h3></section></summary><div·class="impl-items"><section·id="associatedtype.Owned-2"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/alloc/ffi/c_str.rs.html#1081">Source</a><a·href="#associatedtype.Owned-2"·class="anchor">§</a><h4·class="code-header">type·<a·href="#associatedtype.Owned"·class="associatedtype">Owned</a>·=·<a·class="struct"·href="../ffi/struct.CString.html"·title="struct·alloc::ffi::CString">CString</a></h4></section></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/alloc/borrow.rs.html#82-94">Source</a></span><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where
31 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><section·id="associatedtype.Owned-3"·class="associatedtype·trait-impl"><a·class="src·rightside"·[·...·truncated·by·diffoscope;·len:·892,·SHA:·0d2a56d5310041026c170d6ac1d388bea6aa4360ba29f516f0d891f43896f58b·...·]/core/primitive.slice.html">[T]</a></h3></section></summary><div·class="impl-items"><section·id="associatedtype.Owned-4"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/alloc/slice.rs.html#882">Source</a><a·href="#associatedtype.Owned-4"·class="anchor">§</a><h4·class="code-header">type·<a·href="#associatedtype.Owned"·class="associatedtype">Owned</a>·=·<a·class="struct"·href="../vec/struct.Vec.html"·title="struct·alloc::vec::Vec">Vec</a>&lt;T&gt;</h4></section></div></details></div><script·src="../../trait.impl/alloc/borrow/trait.ToOwned.js"·data-ignore-extern-crates="core"·async></script></section></div></main></body></html>31 ····T:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><section·id="associatedtype.Owned-3"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/alloc/borro[·...·truncated·by·diffoscope;·len:·811,·SHA:·89c5c27cff448072376fa00cbbc8b68c9d325b990fb526c9825ed762798f5d25·...·]/core/primitive.slice.html">[T]</a></h3></section></summary><div·class="impl-items"><section·id="associatedtype.Owned-4"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/alloc/slice.rs.html#882">Source</a><a·href="#associatedtype.Owned-4"·class="anchor">§</a><h4·class="code-header">type·<a·href="#associatedtype.Owned"·class="associatedtype">Owned</a>·=·<a·class="struct"·href="../vec/struct.Vec.html"·title="struct·alloc::vec::Vec">Vec</a>&lt;T&gt;</h4></section></div></details></div><script·src="../../trait.impl/alloc/borrow/trait.ToOwned.js"·data-ignore-extern-crates="core"·async></script></section></div></main></body></html>
5.72 KB
./usr/share/doc/rust-doc/html/alloc/boxed/index.html
    
Offset 4, 15 lines modifiedOffset 4, 15 lines modified
4 drop·their·contents·when·they·go·out·of·scope.·Boxes·also·ensure·that·they4 drop·their·contents·when·they·go·out·of·scope.·Boxes·also·ensure·that·they
5 never·allocate·more·than·<code>isize::MAX</code>·bytes.</p>5 never·allocate·more·than·<code>isize::MAX</code>·bytes.</p>
6 <h2·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h2>6 <h2·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h2>
7 <p>Move·a·value·from·the·stack·to·the·heap·by·creating·a·<a·href="struct.Box.html"·title="struct·alloc::boxed::Box"><code>Box</code></a>:</p>7 <p>Move·a·value·from·the·stack·to·the·heap·by·creating·a·<a·href="struct.Box.html"·title="struct·alloc::boxed::Box"><code>Box</code></a>:</p>
  
8 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span>val:·u8·=·<span·class="number">5</span>;8 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span>val:·u8·=·<span·class="number">5</span>;
9 <span·class="kw">let·</span>boxed:·Box&lt;u8&gt;·=·Box::new(val);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++let+val:+u8+=+5;%0A++++let+boxed:+Box%3Cu8%3E+=+Box::new(val);%0A%7D&amp;edition=2021"></a></div>9 <span·class="kw">let·</span>boxed:·Box&lt;u8&gt;·=·Box::new(val);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++let+val:+u8+=+5;%0A++++let+boxed:+Box%3Cu8%3E+=+Box::new(val);%0A%7D&amp;edition=2021"></a></div>
10 <p>Move·a·value·from·a·<a·href="struct.Box.html"·title="struct·alloc::boxed::Box"><code>Box</code></a>·back·to·the·stack·by·<a·href="https://doc.rust-lang.org/1.84.0/core/ops/deref/trait.Deref.html"·title="trait·core::ops::deref::Deref">dereferencing</a>:</p>10 <p>Move·a·value·from·a·<a·href="struct.Box.html"·title="struct·alloc::boxed::Box"><code>Box</code></a>·back·to·the·stack·by·<a·href="../../core/ops/deref/trait.Deref.html"·title="trait·core::ops::deref::Deref">dereferencing</a>:</p>
  
11 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span>boxed:·Box&lt;u8&gt;·=·Box::new(<span·class="number">5</span>);11 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span>boxed:·Box&lt;u8&gt;·=·Box::new(<span·class="number">5</span>);
12 <span·class="kw">let·</span>val:·u8·=·<span·class="kw-2">*</span>boxed;</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++let+boxed:+Box%3Cu8%3E+=+Box::new(5);%0A++++let+val:+u8+=+*boxed;%0A%7D&amp;edition=2021"></a></div>12 <span·class="kw">let·</span>val:·u8·=·<span·class="kw-2">*</span>boxed;</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++let+boxed:+Box%3Cu8%3E+=+Box::new(5);%0A++++let+val:+u8+=+*boxed;%0A%7D&amp;edition=2021"></a></div>
13 <p>Creating·a·recursive·data·structure:</p>13 <p>Creating·a·recursive·data·structure:</p>
  
14 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#[allow(dead_code)]14 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#[allow(dead_code)]
15 #[derive(Debug)]15 #[derive(Debug)]
Offset 39, 15 lines modifiedOffset 39, 15 lines modified
39 pointer·points·to·a·valid·value·of·the·right·type.·More·precisely,·a·<code>value:·*mut·T</code>·that·has39 pointer·points·to·a·valid·value·of·the·right·type.·More·precisely,·a·<code>value:·*mut·T</code>·that·has
40 been·allocated·with·the·<a·href="../alloc/struct.Global.html"·title="struct·alloc::alloc::Global"><code>Global</code></a>·allocator·with·<code>Layout::for_value(&amp;*value)</code>·may·be·converted40 been·allocated·with·the·<a·href="../alloc/struct.Global.html"·title="struct·alloc::alloc::Global"><code>Global</code></a>·allocator·with·<code>Layout::for_value(&amp;*value)</code>·may·be·converted
41 into·a·box·using·<a·href="struct.Box.html#method.from_raw"·title="associated·function·alloc::boxed::Box::from_raw"><code>Box::&lt;T&gt;::from_raw(value)</code></a>.·Conversely,·the·memory·backing·a·<code>value:·*mut·T</code>41 into·a·box·using·<a·href="struct.Box.html#method.from_raw"·title="associated·function·alloc::boxed::Box::from_raw"><code>Box::&lt;T&gt;::from_raw(value)</code></a>.·Conversely,·the·memory·backing·a·<code>value:·*mut·T</code>
42 obtained·from·<a·href="struct.Box.html#method.into_raw"·title="associated·function·alloc::boxed::Box::into_raw"><code>Box::&lt;T&gt;::into_raw</code></a>·may·be·deallocated·using·the·<a·href="../alloc/struct.Global.html"·title="struct·alloc::alloc::Global"><code>Global</code></a>·allocator·with42 obtained·from·<a·href="struct.Box.html#method.into_raw"·title="associated·function·alloc::boxed::Box::into_raw"><code>Box::&lt;T&gt;::into_raw</code></a>·may·be·deallocated·using·the·<a·href="../alloc/struct.Global.html"·title="struct·alloc::alloc::Global"><code>Global</code></a>·allocator·with
43 <a·href="../alloc/struct.Layout.html#method.for_value"·title="associated·function·alloc::alloc::Layout::for_value"><code>Layout::for_value(&amp;*value)</code></a>.</p>43 <a·href="../alloc/struct.Layout.html#method.for_value"·title="associated·function·alloc::alloc::Layout::for_value"><code>Layout::for_value(&amp;*value)</code></a>.</p>
44 <p>For·zero-sized·values,·the·<code>Box</code>·pointer·has·to·be·non-null·and·sufficiently·aligned.·The44 <p>For·zero-sized·values,·the·<code>Box</code>·pointer·has·to·be·non-null·and·sufficiently·aligned.·The
45 recommended·way·to·build·a·Box·to·a·ZST·if·<code>Box::new</code>·cannot·be·used·is·to·use45 recommended·way·to·build·a·Box·to·a·ZST·if·<code>Box::new</code>·cannot·be·used·is·to·use
46 <a·href="https://doc.rust-lang.org/1.84.0/core/ptr/non_null/struct.NonNull.html#method.dangling"·title="associated·function·core::ptr::non_null::NonNull::dangling"><code>ptr::NonNull::dangling</code></a>.</p>46 <a·href="../../core/ptr/non_null/struct.NonNull.html#method.dangling"·title="associated·function·core::ptr::non_null::NonNull::dangling"><code>ptr::NonNull::dangling</code></a>.</p>
47 <p>On·top·of·these·basic·layout·requirements,·a·<code>Box&lt;T&gt;</code>·must·point·to·a·valid·value·of·<code>T</code>.</p>47 <p>On·top·of·these·basic·layout·requirements,·a·<code>Box&lt;T&gt;</code>·must·point·to·a·valid·value·of·<code>T</code>.</p>
48 <p>So·long·as·<code>T:·Sized</code>,·a·<code>Box&lt;T&gt;</code>·is·guaranteed·to·be·represented48 <p>So·long·as·<code>T:·Sized</code>,·a·<code>Box&lt;T&gt;</code>·is·guaranteed·to·be·represented
49 as·a·single·pointer·and·is·also·ABI-compatible·with·C·pointers49 as·a·single·pointer·and·is·also·ABI-compatible·with·C·pointers
50 (i.e.·the·C·type·<code>T*</code>).·This·means·that·if·you·have·extern·“C”50 (i.e.·the·C·type·<code>T*</code>).·This·means·that·if·you·have·extern·“C”
51 Rust·functions·that·will·be·called·from·C,·you·can·define·those51 Rust·functions·that·will·be·called·from·C,·you·can·define·those
52 Rust·functions·using·<code>Box&lt;T&gt;</code>·types,·and·use·<code>T*</code>·as·corresponding52 Rust·functions·using·<code>Box&lt;T&gt;</code>·types,·and·use·<code>T*</code>·as·corresponding
53 type·on·the·C·side.·As·an·example,·consider·this·C·header·which53 type·on·the·C·side.·As·an·example,·consider·this·C·header·which
Offset 96, 15 lines modifiedOffset 96, 15 lines modified
96 <p>The·aliasing·rules·for·<code>Box&lt;T&gt;</code>·are·the·same·as·for·<code>&amp;mut·T</code>.·<code>Box&lt;T&gt;</code>96 <p>The·aliasing·rules·for·<code>Box&lt;T&gt;</code>·are·the·same·as·for·<code>&amp;mut·T</code>.·<code>Box&lt;T&gt;</code>
97 asserts·uniqueness·over·its·content.·Using·raw·pointers·derived·from·a·box97 asserts·uniqueness·over·its·content.·Using·raw·pointers·derived·from·a·box
98 after·that·box·has·been·mutated·through,·moved·or·borrowed·as·<code>&amp;mut·T</code>98 after·that·box·has·been·mutated·through,·moved·or·borrowed·as·<code>&amp;mut·T</code>
99 is·not·allowed.·For·more·guidance·on·working·with·box·from·unsafe·code,·see99 is·not·allowed.·For·more·guidance·on·working·with·box·from·unsafe·code,·see
100 <a·href="https://github.com/rust-lang/unsafe-code-guidelines/issues/326">rust-lang/unsafe-code-guidelines#326</a>.</p>100 <a·href="https://github.com/rust-lang/unsafe-code-guidelines/issues/326">rust-lang/unsafe-code-guidelines#326</a>.</p>
101 <h2·id="editions"><a·class="doc-anchor"·href="#editions">§</a>Editions</h2>101 <h2·id="editions"><a·class="doc-anchor"·href="#editions">§</a>Editions</h2>
102 <p>A·special·case·exists·for·the·implementation·of·<code>IntoIterator</code>·for·arrays·on·the·Rust·2021102 <p>A·special·case·exists·for·the·implementation·of·<code>IntoIterator</code>·for·arrays·on·the·Rust·2021
103 edition,·as·documented·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.array.html"·title="primitive·array">here</a>.·Unfortunately,·it·was·later·found·that·a·similar103 edition,·as·documented·<a·href="../../core/primitive.array.html"·title="primitive·array">here</a>.·Unfortunately,·it·was·later·found·that·a·similar
104 workaround·should·be·added·for·boxed·slices,·and·this·was·applied·in·the·2024·edition.</p>104 workaround·should·be·added·for·boxed·slices,·and·this·was·applied·in·the·2024·edition.</p>
105 <p>Specifically,·<code>IntoIterator</code>·is·implemented·for·<code>Box&lt;[T]&gt;</code>·on·all·editions,·but·specific·calls105 <p>Specifically,·<code>IntoIterator</code>·is·implemented·for·<code>Box&lt;[T]&gt;</code>·on·all·editions,·but·specific·calls
106 to·<code>into_iter()</code>·for·boxed·slices·will·defer·to·the·slice·implementation·on·editions·before106 to·<code>into_iter()</code>·for·boxed·slices·will·defer·to·the·slice·implementation·on·editions·before
107 2024:</p>107 2024:</p>
  
108 <div·class="example-wrap·edition"><a·href="#"·class="tooltip"·title="This·example·runs·with·edition·2021">ⓘ</a><pre·class="rust·rust-example-rendered"><code><span·class="comment">//·Rust·2015,·2018,·and·2021:108 <div·class="example-wrap·edition"><a·href="#"·class="tooltip"·title="This·example·runs·with·edition·2021">ⓘ</a><pre·class="rust·rust-example-rendered"><code><span·class="comment">//·Rust·2015,·2018,·and·2021:
  
971 KB
./usr/share/doc/rust-doc/html/alloc/boxed/struct.Box.html
Max HTML report size reached
84.2 KB
./usr/share/doc/rust-doc/html/alloc/boxed/struct.ThinBox.html
    
Offset 1, 56 lines modifiedOffset 1, 56 lines modified
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="ThinBox."><title>ThinBox·in·alloc::boxed·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»2025-01-07)»     (built»       from»   a»  source»    tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">ThinBox</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#examples"·title="Examples">Examples</a></li></ul><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.new"·title="new">new</a></li><li><a·href="#method.new_unsize"·title="new_unsize">new_unsize</a></li><li><a·href="#method.try_new"·title="try_new">try_new</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Debug-for-ThinBox%3CT%3E"·title="Debug">Debug</a></li><li><a·href="#impl-Deref-for-ThinBox%3CT%3E"·title="Deref">Deref</a></li><li><a·href="#impl-DerefMut-for-ThinBox%3CT%3E"·title="DerefMut">DerefMut</a></li><li><a·href="#impl-Display-for-ThinBox%3CT%3E"·title="Display">Display</a></li><li><a·href="#impl-Drop-for-ThinBox%3CT%3E"·title="Drop">Drop</a></li><li><a·href="#impl-Error-for-ThinBox%3CT%3E"·title="Error">Error</a></li><li><a·href="#impl-Send-for-ThinBox%3CT%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-ThinBox%3CT%3E"·title="Sync">Sync</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-ThinBox%3CT%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-ThinBox%3CT%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Unpin-for-ThinBox%3CT%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-ThinBox%3CT%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-Receiver-for-P"·title="Receiver">Receiver</a></li><li><a·href="#impl-ToString-for-T"·title="ToString">ToString</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>boxed</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">alloc</a>::<wbr><a·href="index.html">boxed</a></span><h1>Struct·<span·class="struct">ThinBox</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/alloc/boxed/thin.rs.html#39-44">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·ThinBox&lt;T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>thin_box</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/92791">#92791</a>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>ThinBox.</p>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="ThinBox."><title>ThinBox·in·alloc::boxed·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»2025-01-07)»     (built»       from»   a»  source»    tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">ThinBox</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#examples"·title="Examples">Examples</a></li></ul><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.new"·title="new">new</a></li><li><a·href="#method.new_unsize"·title="new_unsize">new_unsize</a></li><li><a·href="#method.try_new"·title="try_new">try_new</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Debug-for-ThinBox%3CT%3E"·title="Debug">Debug</a></li><li><a·href="#impl-Deref-for-ThinBox%3CT%3E"·title="Deref">Deref</a></li><li><a·href="#impl-DerefMut-for-ThinBox%3CT%3E"·title="DerefMut">DerefMut</a></li><li><a·href="#impl-Display-for-ThinBox%3CT%3E"·title="Display">Display</a></li><li><a·href="#impl-Drop-for-ThinBox%3CT%3E"·title="Drop">Drop</a></li><li><a·href="#impl-Error-for-ThinBox%3CT%3E"·title="Error">Error</a></li><li><a·href="#impl-Send-for-ThinBox%3CT%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-ThinBox%3CT%3E"·title="Sync">Sync</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-ThinBox%3CT%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-ThinBox%3CT%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Unpin-for-ThinBox%3CT%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-ThinBox%3CT%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-Receiver-for-P"·title="Receiver">Receiver</a></li><li><a·href="#impl-ToString-for-T"·title="ToString">ToString</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>boxed</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">alloc</a>::<wbr><a·href="index.html">boxed</a></span><h1>Struct·<span·class="struct">ThinBox</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/alloc/boxed/thin.rs.html#39-44">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·ThinBox&lt;T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>thin_box</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/92791">#92791</a>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>ThinBox.</p>
2 <p>A·thin·pointer·for·heap·allocation,·regardless·of·T.</p>2 <p>A·thin·pointer·for·heap·allocation,·regardless·of·T.</p>
3 <h2·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h2>3 <h2·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h2>
4 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(thin_box)]4 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(thin_box)]
5 </span><span·class="kw">use·</span>std::boxed::ThinBox;5 </span><span·class="kw">use·</span>std::boxed::ThinBox;
  
6 <span·class="kw">let·</span>five·=·ThinBox::new(<span·class="number">5</span>);6 <span·class="kw">let·</span>five·=·ThinBox::new(<span·class="number">5</span>);
7 <span·class="kw">let·</span>thin_slice·=·ThinBox::&lt;[i32]&gt;::new_unsize([<span·class="number">1</span>,·<span·class="number">2</span>,·<span·class="number">3</span>,·<span·class="number">4</span>]);7 <span·class="kw">let·</span>thin_slice·=·ThinBox::&lt;[i32]&gt;::new_unsize([<span·class="number">1</span>,·<span·class="number">2</span>,·<span·class="number">3</span>,·<span·class="number">4</span>]);
  
8 <span·class="kw">use·</span>std::mem::{size_of,·size_of_val};8 <span·class="kw">use·</span>std::mem::{size_of,·size_of_val};
9 <span·class="kw">let·</span>size_of_ptr·=·size_of::&lt;<span·class="kw-2">*const·</span>()&gt;();9 <span·class="kw">let·</span>size_of_ptr·=·size_of::&lt;<span·class="kw-2">*const·</span>()&gt;();
10 <span·class="macro">assert_eq!</span>(size_of_ptr,·size_of_val(<span·class="kw-2">&amp;</span>five));10 <span·class="macro">assert_eq!</span>(size_of_ptr,·size_of_val(<span·class="kw-2">&amp;</span>five));
11 <span·class="macro">assert_eq!</span>(size_of_ptr,·size_of_val(<span·class="kw-2">&amp;</span>thin_slice));</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Bfeature(thin_box)%5D%0Afn+main()+%7B%0A++++use+std::boxed::ThinBox;%0A++++%0A++++let+five+=+ThinBox::new(5);%0A++++let+thin_slice+=+ThinBox::%3C%5Bi32%5D%3E::new_unsize(%5B1,+2,+3,+4%5D);%0A++++%0A++++use+std::mem::%7Bsize_of,+size_of_val%7D;%0A++++let+size_of_ptr+=+size_of::%3C*const+()%3E();%0A++++assert_eq!(size_of_ptr,+size_of_val(%26five));%0A++++assert_eq!(size_of_ptr,+size_of_val(%26thin_slice));%0A%7D&amp;version=nightly&amp;edition=2021"></a></div>11 <span·class="macro">assert_eq!</span>(size_of_ptr,·size_of_val(<span·class="kw-2">&amp;</span>thin_slice));</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Bfeature(thin_box)%5D%0Afn+main()+%7B%0A++++use+std::boxed::ThinBox;%0A++++%0A++++let+five+=+ThinBox::new(5);%0A++++let+thin_slice+=+ThinBox::%3C%5Bi32%5D%3E::new_unsize(%5B1,+2,+3,+4%5D);%0A++++%0A++++use+std::mem::%7Bsize_of,+size_of_val%7D;%0A++++let+size_of_ptr+=+size_of::%3C*const+()%3E();%0A++++assert_eq!(size_of_ptr,+size_of_val(%26five));%0A++++assert_eq!(size_of_ptr,+size_of_val(%26thin_slice));%0A%7D&amp;version=nightly&amp;edition=2021"></a></div>
12 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-ThinBox%3CT%3E"·class="impl"><a·class="src·rightside"·href="../../src/alloc/boxed/thin.rs.html#55-95">Source</a><a·href="#impl-ThinBox%3CT%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="struct"·href="struct.ThinBox.html"·title="struct·alloc::boxed::ThinBox">ThinBox</a>&lt;T&gt;</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.new"·class="method"><a·class="src·rightside"·href="../../src/alloc/boxed/thin.rs.html#70-74">Source</a><h4·class="code-header">pub·fn·<a·href="#method.new"·class="fn">new</a>(value:·T)·-&gt;·Self</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>thin_box</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/92791">#92791</a>)</span></div></span></summary><div·class="docblock"><p>Moves·a·type·to·the·heap·with·its·<a·href="https://doc.rust-lang.org/1.84.0/core/ptr/metadata/trait.Pointee.html#associatedtype.Metadata"·title="associated·type·core::ptr::metadata::Pointee::Metadata"><code>Metadata</code></a>·stored·in·the·heap·allocation·instead·of·on12 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-ThinBox%3CT%3E"·class="impl"><a·class="src·rightside"·href="../../src/alloc/boxed/thin.rs.html#55-95">Source</a><a·href="#impl-ThinBox%3CT%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="struct"·href="struct.ThinBox.html"·title="struct·alloc::boxed::ThinBox">ThinBox</a>&lt;T&gt;</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.new"·class="method"><a·class="src·rightside"·href="../../src/alloc/boxed/thin.rs.html#70-74">Source</a><h4·class="code-header">pub·fn·<a·href="#method.new"·class="fn">new</a>(value:·T)·-&gt;·Self</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>thin_box</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/92791">#92791</a>)</span></div></span></summary><div·class="docblock"><p>Moves·a·type·to·the·heap·with·its·<a·href="../../core/ptr/metadata/trait.Pointee.html#associatedtype.Metadata"·title="associated·type·core::ptr::metadata::Pointee::Metadata"><code>Metadata</code></a>·stored·in·the·heap·allocation·instead·of·on
13 the·stack.</p>13 the·stack.</p>
14 <h5·id="examples-1"><a·class="doc-anchor"·href="#examples-1">§</a>Examples</h5>14 <h5·id="examples-1"><a·class="doc-anchor"·href="#examples-1">§</a>Examples</h5>
15 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(thin_box)]15 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(thin_box)]
16 </span><span·class="kw">use·</span>std::boxed::ThinBox;16 </span><span·class="kw">use·</span>std::boxed::ThinBox;
  
17 <span·class="kw">let·</span>five·=·ThinBox::new(<span·class="number">5</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Bfeature(thin_box)%5D%0Afn+main()+%7B%0A++++use+std::boxed::ThinBox;%0A++++%0A++++let+five+=+ThinBox::new(5);%0A%7D&amp;version=nightly&amp;edition=2021"></a></div>17 <span·class="kw">let·</span>five·=·ThinBox::new(<span·class="number">5</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Bfeature(thin_box)%5D%0Afn+main()+%7B%0A++++use+std::boxed::ThinBox;%0A++++%0A++++let+five+=+ThinBox::new(5);%0A%7D&amp;version=nightly&amp;edition=2021"></a></div>
18 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_new"·class="method"><a·class="src·rightside"·href="../../src/alloc/boxed/thin.rs.html#91-94">Source</a><h4·class="code-header">pub·fn·<a·href="#method.try_new"·class="fn">try_new</a>(value:·T)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;Self,·<a·class="struct"·href="../alloc/struct.AllocError.html"·title="struct·alloc::alloc::AllocError">AllocError</a>&gt;</h4></section><span·cla[·...·truncated·by·diffoscope;·len:·343,·SHA:·3cc13b684f08e63db4d4f86d16cb7ab10bcde12b6e1bf04eecc7084d7734996a·...·]/core/ptr/metadata/trait.Pointee.html#associatedtype.Metadata"·title="associated·type·core::ptr::metadata::Pointee::Metadata"><code>Metadata</code></a>·stored·in·the·heap·allocation·instead·of·on18 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_new"·class="method"><a·class="src·rightside"·href="../../src/alloc/boxed/thin.rs.html#91-94">Source</a><h4·class="code-header">pub·fn·<a·href="#method.try_new"·class="fn">try_new</a>(value:·T)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;Self,·<a·class="struct"·href="../alloc/struct.AllocError.html"·title="struct·alloc::alloc::AllocError">AllocError</a>&gt;</h4></section><span·class="item-info"><div·class="[·...·truncated·by·diffoscope;·len:·289,·SHA:·bda36d766863b33184b08c63eb9bb502fd149e705c1ce641c03a387a0af1617e·...·]/core/ptr/metadata/trait.Pointee.html#associatedtype.Metadata"·title="associated·type·core::ptr::metadata::Pointee::Metadata"><code>Metadata</code></a>·stored·in·the·heap·allocation·instead·of·on
19 the·stack.·Returns·an·error·if·allocation·fails,·instead·of·aborting.</p>19 the·stack.·Returns·an·error·if·allocation·fails,·instead·of·aborting.</p>
20 <h5·id="examples-2"><a·class="doc-anchor"·href="#examples-2">§</a>Examples</h5>20 <h5·id="examples-2"><a·class="doc-anchor"·href="#examples-2">§</a>Examples</h5>
21 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(allocator_api)]21 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(allocator_api)]
22 #![feature(thin_box)]22 #![feature(thin_box)]
23 </span><span·class="kw">use·</span>std::boxed::ThinBox;23 </span><span·class="kw">use·</span>std::boxed::ThinBox;
  
24 <span·class="kw">let·</span>five·=·ThinBox::try_new(<span·class="number">5</span>)<span·class="question-mark">?</span>;</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Bfeature(allocator_api)%5D%0A%23!%5Bfeature(thin_box)%5D%0A%23%5Ballow(unused_extern_crates)%5D%0Aextern+crate+r%23alloc;%0Afn+main()+%7B+fn+_inner()+-%3E+Result%3C(),+impl+core::fmt::Debug%3E+%7B%0A++++use+std::boxed::ThinBox;%0A++++%0A++++let+five+=+ThinBox::try_new(5)?;%0A++++Ok::%3C(),+std::alloc::AllocError%3E(())%0A%7D+_inner().unwrap()+%7D&amp;version=nightly&amp;edition=2021"></a></div>24 <span·class="kw">let·</span>five·=·ThinBox::try_new(<span·class="number">5</span>)<span·class="question-mark">?</span>;</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Bfeature(allocator_api)%5D%0A%23!%5Bfeature(thin_box)%5D%0A%23%5Ballow(unused_extern_crates)%5D%0Aextern+crate+r%23alloc;%0Afn+main()+%7B+fn+_inner()+-%3E+Result%3C(),+impl+core::fmt::Debug%3E+%7B%0A++++use+std::boxed::ThinBox;%0A++++%0A++++let+five+=+ThinBox::try_new(5)?;%0A++++Ok::%3C(),+std::alloc::AllocError%3E(())%0A%7D+_inner().unwrap()+%7D&amp;version=nightly&amp;edition=2021"></a></div>
25 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-ThinBox%3CDyn%3E"·class="impl"><a·class="src·rightside"·href="../../src/alloc/boxed/thin.rs.html#98-126">Source</a><a·href="#impl-ThinBox%3CDyn%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;Dyn:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>&gt;·<a·class="struct"·href="struct.ThinBox.html"·title="struct·alloc::boxed::ThinBox">ThinBox</a>&lt;Dyn&gt;</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.new_unsize"·class="method"><a·class="src·rightside"·href="../../src/alloc/boxed/thin.rs.html#113-125">Source</a><h4·class="code-header">pub·fn·<a·href="#method.new_unsize"·class="fn">new_unsize</a>&lt;T&gt;(value:·T)·-&gt;·Self<div·class="where">where25 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-ThinBox%3CDyn%3E"·class="impl"><a·class="src·rightside"·href="../../src/alloc/boxed/thin.rs.html#98-126">Source</a><a·href="#impl-ThinBox%3CDyn%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;Dyn:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>&gt;·<a·class="struct"·href="struct.ThinBox.html"·title="struct·alloc::boxed::ThinBox">ThinBox</a>&lt;Dyn&gt;</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.new_unsize"·class="method"><a·class="src·rightside"·href="../../src/alloc/boxed/thin.rs.html#113-125">Source</a><h4·class="code-header">pub·fn·<a·href="#method.new_unsize"·class="fn">new_unsize</a>&lt;T&gt;(value:·T)·-&gt;·Self<div·class="where">where
26 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Unsize.html"·title="trait·core::marker::Unsize">Unsize</a>&lt;Dyn&gt;,</div></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experi[·...·truncated·by·diffoscope;·len:·238,·SHA:·882b2e00565f986f9a7bead632c24a8c0ebd1488fa0eb0e33232e739302e8246·...·]/core/ptr/metadata/trait.Pointee.html#associatedtype.Metadata"·title="associated·type·core::ptr::metadata::Pointee::Metadata"><code>Metadata</code></a>·stored·in·the·heap·allocation·instead·of·on26 ····T:·<a·class="trait"·href="../../core/marker/trait.Unsize.html"·title="trait·core::marker::Unsize">Unsize</a>&lt;Dyn&gt;,</div></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>thin_box[·...·truncated·by·diffoscope;·len:·184,·SHA:·78877437a2ca356dd18fa84d12c1e87597bb4eed12d655c55d92b12744437779·...·]/core/ptr/metadata/trait.Pointee.html#associatedtype.Metadata"·title="associated·type·core::ptr::metadata::Pointee::Metadata"><code>Metadata</code></a>·stored·in·the·heap·allocation·instead·of·on
27 the·stack.</p>27 the·stack.</p>
28 <h5·id="examples-3"><a·class="doc-anchor"·href="#examples-3">§</a>Examples</h5>28 <h5·id="examples-3"><a·class="doc-anchor"·href="#examples-3">§</a>Examples</h5>
29 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(thin_box)]29 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(thin_box)]
30 </span><span·class="kw">use·</span>std::boxed::ThinBox;30 </span><span·class="kw">use·</span>std::boxed::ThinBox;
  
31 <span·class="kw">let·</span>thin_slice·=·ThinBox::&lt;[i32]&gt;::new_unsize([<span·class="number">1</span>,·<span·class="number">2</span>,·<span·class="number">3</span>,·<span·class="number">4</span>]);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Bfeature(thin_box)%5D%0Afn+main()+%7B%0A++++use+std::boxed::ThinBox;%0A++++%0A++++let+thin_slice+=+ThinBox::%3C%5Bi32%5D%3E::new_unsize(%5B1,+2,+3,+4%5D);%0A%7D&amp;version=nightly&amp;edition=2021"></a></div>31 <span·class="kw">let·</span>thin_slice·=·ThinBox::&lt;[i32]&gt;::new_unsize([<span·class="number">1</span>,·<span·class="number">2</span>,·<span·class="number">3</span>,·<span·class="number">4</span>]);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Bfeature(thin_box)%5D%0Afn+main()+%7B%0A++++use+std::boxed::ThinBox;%0A++++%0A++++let+thin_slice+=+ThinBox::%3C%5Bi32%5D%3E::new_unsize(%5B1,+2,+3,+4%5D);%0A%7D&amp;version=nightly&amp;edition=2021"></a></div>
32 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-ThinBox%3CT%3E"·class="impl"><a·class="src·rightside"·href="../../src/alloc/boxed/thin.rs.html#129-133">Source</a><a·href="#impl-Debug-for-ThinBox%3CT%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>&gt;·<a·class="trait"·href="../fmt/trait.Debug.html"·title[·...·truncated·by·diffoscope;·len:·12276,·SHA:·e2ee71533e9a8e6483e1e97c3a2c4694968196c1a21cc2dbcdd89df5a510300c·...·]/core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="struct"·href="struct.ThinBox.html"·title="struct·alloc::boxed::ThinBox">ThinBox</a>&lt;T&gt;</h3></section><div·class="docblock"><p><code>ThinBox&lt;T&gt;</code>·is·<code>Send</code>·if·<code>T</code>·is·<code>Send</code>·because·the·data·is·owned.</p>32 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-ThinBox%3CT%3E"·class="impl"><a·class="src·rightside"·href="../../src/alloc/boxed/thin.rs.html#129-133">Source</a><a·href="#impl-Debug-for-ThinBox%3CT%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>&gt;·<a·class="trait"·href="../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">[·...·truncated·by·diffoscope;·len:·11277,·SHA:·0d5ea915560526e96afe58cf832dc2d735b5dba3ce1efbdc4dffec975754f101·...·]/core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="struct"·href="struct.ThinBox.html"·title="struct·alloc::boxed::ThinBox">ThinBox</a>&lt;T&gt;</h3></section><div·class="docblock"><p><code>ThinBox&lt;T&gt;</code>·is·<code>Send</code>·if·<code>T</code>·is·<code>Send</code>·because·the·data·is·owned.</p>
33 </div><section·id="impl-Sync-for-ThinBox%3CT%3E"·class="impl"><a·class="src·rightside"·href="../../src/alloc/boxed/thin.rs.html#52">Source</a><a·href="#impl-Sync-for-ThinBox%3CT%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>&gt;·<a·class="trait"[·...·truncated·by·diffoscope;·len:·39,·SHA:·8944d18e20751629517cafbfdb20f63157f4f6a78cb52969d3a143deb79f5d9e·...·]/core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="struct"·href="struct.ThinBox.html"·title="struct·alloc::boxed::ThinBox">ThinBox</a>&lt;T&gt;</h3></section><div·class="docblock"><p><code>ThinBox&lt;T&gt;</code>·is·<code>Sync</code>·if·<code>T</code>·is·<code>Sync</code>·because·the·data·is·owned.</p>33 </div><section·id="impl-Sync-for-ThinBox%3CT%3E"·class="impl"><a·class="src·rightside"·href="../../src/alloc/boxed/thin.rs.html#52">Source</a><a·href="#impl-Sync-for-ThinBox%3CT%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="../../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>&gt;·<a·class="trait"·href="../../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="struct"·href="struct.ThinBox.html"·title="struct·alloc::boxed::ThinBox">ThinBox</a>&lt;T&gt;</h3></section><div·class="docblock"><p><code>ThinBox&lt;T&gt;</code>·is·<code>Sync</code>·if·<code>T</code>·is·<code>Sync</code>·because·the·data·is·owned.</p>
34 </div></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-ThinBox%3CT%3E"·class="impl"><a·href="#impl-Freeze-for-ThinBox%3CT%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="struct"·href="struct.ThinBox.html"·title="struct·alloc::boxed::ThinBox">ThinBox</a>&lt;T&gt;<div·class="where">where34 </div></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-ThinBox%3CT%3E"·class="impl"><a·href="#impl-Freeze-for-ThinBox%3CT%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="struct"·href="struct.ThinBox.html"·title="struct·alloc::boxed::ThinBox">ThinBox</a>&lt;T&gt;<div·class="where">where
35 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section><section·id="impl-RefUnwindSafe-for-ThinBox%3CT%3E"·class="impl"><a·href="#impl-RefUnwindSafe-for-ThinBox%3CT%3E"·class="anchor"[·...·truncated·by·diffoscope;·len:·99,·SHA:·da4b4debf3dd4937f9e8bfd21b70780c03fd9a15bbb669c2a4c19cbf961fe63d·...·]/core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="struct"·href="struct.ThinBox.html"·title="struct·alloc::boxed::ThinBox">ThinBox</a>&lt;T&gt;<div·class="where">where35 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section><section·id="impl-RefUnwindSafe-for-ThinBox%3CT%3E"·class="impl"><a·href="#impl-RefUnwindSafe-for-ThinBox%3CT%3E"·class="anchor">§</a><h3·class="code-heade[·...·truncated·by·diffoscope;·len:·45,·SHA:·eba9e62a0c15c00706b2c006e4af3587fd39256eb9139d649d5804393597cf6f·...·]/core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="struct"·href="struct.ThinBox.html"·title="struct·alloc::boxed::ThinBox">ThinBox</a>&lt;T&gt;<div·class="where">where
36 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·[·...·truncated·by·diffoscope;·len:·263,·SHA:·596f9f9c5d775418566ca9b6934d55ccca6b21d73b459cb7e952cc54de5d7607·...·]/core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="struct"·href="struct.ThinBox.html"·title="struct·alloc::boxed::ThinBox">ThinBox</a>&lt;T&gt;<div·class="where">where36 ····T:·<a·class="trait"·href="../../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·+·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section><s[·...·truncated·by·diffoscope;·len:·182,·SHA:·a1334cdf18ee08b63d4a6000a3598ee289759bac959ea071e9ead36f0d9b3383·...·]/core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="struct"·href="struct.ThinBox.html"·title="struct·alloc::boxed::ThinBox">ThinBox</a>&lt;T&gt;<div·class="where">where
37 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></sec[·...·truncated·by·diffoscope;·len:·226,·SHA:·faa81211b826d62e83c20546f5eebb46cde4b81426cd27808adcf859c9760df5·...·]/core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="struct"·href="struct.ThinBox.html"·title="struct·alloc::boxed::ThinBox">ThinBox</a>&lt;T&gt;<div·class="where">where37 ····T:·<a·class="trait"·href="../../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·+·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section><section·id="impl-UnwindSafe-for-ThinBox%3CT%3E"·[·...·truncated·by·diffoscope;·len:·145,·SHA:·817573aeec836b19f7282b2b9ff0611480c26dac3922ab9d37affa8b6fd5ce8d·...·]/core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="struct"·href="struct.ThinBox.html"·title="struct·alloc::boxed::ThinBox">ThinBox</a>&lt;T&gt;<div·class="where">where
38 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::mar[·...·truncated·by·diffoscope;·len:·561,·SHA:·cb2952de084ae24c0af5873a1fa3c481a6a7d51dcb2fe002d449ed6b054aab9c·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where38 ····T:·<a·class="trait"·href="../../core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·+·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></div><h2·i[·...·truncated·by·diffoscope;·len:·453,·SHA:·5b86712f84633abfc468ce6f2510036558c4aefacf497022e5357caf1b941250·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where
39 ····T:·'static·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method[·...·truncated·by·diffoscope;·len:·834,·SHA:·47dfc2aa0101a4103e2a94c1f971c559790d87a62d58631fd2bfed98e6616a34·...·]/src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where39 ····T:·'static·+·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·[·...·truncated·by·diffoscope;·len:·672,·SHA:·ace7a059971745d739c5abd9821e5d1d485cc233fd42150ceb251bdea1ce6bf7·...·]/src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where
40 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·[·...·truncated·by·diffoscope;·len:·737,·SHA:·9e65370662e77fc5c56c98c66a5dfda3c1d1244574dc8806ab91a8967514da78·...·]/src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.BorrowMut.html"·title="trait·alloc::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where40 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·r[·...·truncated·by·diffoscope;·len:·629,·SHA:·8e6f5d2e4a2830729c5d495459113ca6f54993696d7dc71c1f46e5691f5108ed·...·]/src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.BorrowMut.html"·title="trait·alloc::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where
41 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="met[·...·truncated·by·diffoscope;·len:·1416,·SHA:·6a91c7d774262ffceb6c994b163406722441142120e090bf0659f9a11b6dd348·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>41 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="s[·...·truncated·by·diffoscope;·len:·1227,·SHA:·50e7ebda2b6919040565b80662e590c224b03e887e0c5eeee46fe8a8f7ae0e8c·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>
42 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where42 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where
43 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="m[·...·truncated·by·diffoscope;·len:·237,·SHA:·98603c35860102b3af9b5cf27aeabf39e3c03236551986a6ec030817f108d919·...·]/core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>43 ····U:·<a·class="trait"·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class=[·...·truncated·by·diffoscope;·len:·156,·SHA:·79561c49c77b14346871935198fc061d00c9e84705db975b0451f5fb4f6af9a0·...·]/core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>
44 <p>That·is,·this·conversion·is·whatever·the·implementation·of44 <p>That·is,·this·conversion·is·whatever·the·implementation·of
45 <code><a·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>45 <code><a·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>
46 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Receiver-for-P"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/ops/deref.rs.html#374-376">Source</a><a·href="#impl-Receiver-for-P"·class="anchor">§</a><h3·class="code-header">impl&lt;P,·T&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/deref/trait.Receiver.html"·title="trait·core::ops::deref::Receiver">Receiver</a>·for·P<div·class="where">where46 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Receiver-for-P"·class="impl"><a·class="src·rightside"·href="../../src/core/ops/deref.rs.html#374-376">Source</a><a·href="#impl-Receiver-for-P"·class="anchor">§</a><h3·class="code-header">impl&lt;P,·T&gt;·<a·class="trait"·href="../../core/ops/deref/trait.Receiver.html"·title="trait·core::ops::deref::Receiver">Receiver</a>·for·P<div·class="where">where
47 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/deref/trait.Deref.html"·title="trait·core::ops::deref::Deref">Deref</a>&lt;Target·=·T&gt;·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,47 ····P:·<a·class="trait"·href="../../core/ops/deref/trait.Deref.html"·title="trait·core::ops::deref::Deref">Deref</a>&lt;Target·=·T&gt;·+·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
48 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Target-1"·class="associatedt[·...·truncated·by·diffoscope;·len:·247,·SHA:·b059cf0a29be2053af96ff8895e0131fa1079945f9d7a050efbcd25679b9df30·...·]/core/ops/deref/trait.Receiver.html#associatedtype.Target"·class="associatedtype">Target</a>·=·T</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>arbitrary_self_types</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/44874">#44874</a>)</span></div></span><div·class='docblock'>The·target·type·on·which·the·method·may·be·called.</div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToString-for-T"·class="impl"><a·class="src·rightside"·href="../../src/alloc/string.rs.html#2677-2691">Source</a><a·href="#impl-ToString-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../string/trait.ToString.html"·title="trait·alloc::string::ToString">ToString</a>·for·T<div·class="where">where48 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Target-1"·class="associatedtype·trait-impl"><a·class="s[·...·truncated·by·diffoscope;·len:·166,·SHA:·216a615c376464e3f6eb64e47747e55686612abd291c1a85af418db6100f39a2·...·]/core/ops/deref/trait.Receiver.html#associatedtype.Target"·class="associatedtype">Target</a>·=·T</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>arbitrary_self_types</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/44874">#44874</a>)</span></div></span><div·class='docblock'>The·target·type·on·which·the·method·may·be·called.</div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToString-for-T"·class="impl"><a·class="src·rightside"·href="../../src/alloc/string.rs.html#2677-2691">Source</a><a·href="#impl-ToString-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../string/trait.ToString.html"·title="trait·alloc::string::ToString">ToString</a>·for·T<div·class="where">where
49 ····T:·<a·class="trait"·href="../fmt/trait.Display.html"·title="trait·alloc::fmt::Display">Display</a>·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.to_string"·class="meth[·...·truncated·by·diffoscope;·len:·956,·SHA:·5fb3fa997a6fe164f1c04c1d4cb696121571b376241266dc87e8079ebdfed810·...·]/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where49 ····T:·<a·class="trait"·href="../fmt/trait.Display.html"·title="trait·alloc::fmt::Display">Display</a>·+·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.to_string"·class="method·trait-impl"><a·class="sr[·...·truncated·by·diffoscope;·len:·875,·SHA:·e58967f6ca4eee938a4135856f0af0adfcd5abe0b4e62c194e5c506c603bfcf1·...·]/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where
50 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="asso[·...·truncated·by·diffoscope;·len:·1973,·SHA:·db4b8407e8e20581ad139aef25a6221a11da0f5f18d6aa35aa33eb843f4e1b9f·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where50 ····U:·<a·class="trait"·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·c[·...·truncated·by·diffoscope;·len:·1676,·SHA:·4c73b68f4fb433b5f24fbcd660156381e5dd9f46425d075b558b9b6ca0705f88·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where
51 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·clas[·...·truncated·by·diffoscope;·len:·1578,·SHA:·998d5af10fd889567cd999d1306bfd16c91134d2238a3c172f1e7fa8ed138c18·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>51 ····U:·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-imp[·...·truncated·by·diffoscope;·len:·1308,·SHA:·6741e462a0e1b36010204263b7580305663bb27f362987d14303068592f9f358·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>
167 KB
./usr/share/doc/rust-doc/html/alloc/collections/binary_heap/struct.BinaryHeap.html
    
Offset 1, 11 lines modifiedOffset 1, 11 lines modified
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="A·priority·queue·implemented·with·a·binary·heap."><title>BinaryHeap·in·alloc::collections::binary_heap·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»    2025-01-07)» (built»   from»       a»      source»tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Binary<wbr>Heap</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#examples"·title="Examples">Examples</a><ul><li><a·href="#min-heap"·title="Min-heap">Min-heap</a></li></ul></li><li><a·href="#time-complexity"·title="Time·complexity">Time·complexity</a></li></ul><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.allocator"·title="allocator">allocator</a></li><li><a·href="#method.append"·title="append">append</a></li><li><a·href="#method.as_slice"·title="as_slice">as_slice</a></li><li><a·href="#method.capacity"·title="capacity">capacity</a></li><li><a·href="#method.clear"·title="clear">clear</a></li><li><a·href="#method.drain"·title="drain">drain</a></li><li><a·href="#method.drain_sorted"·title="drain_sorted">drain_sorted</a></li><li><a·href="#method.into_iter_sorted"·title="into_iter_sorted">into_iter_sorted</a></li><li><a·href="#method.into_sorted_vec"·title="into_sorted_vec">into_sorted_vec</a></li><li><a·href="#method.into_vec"·title="into_vec">into_vec</a></li><li><a·href="#method.is_empty"·title="is_empty">is_empty</a></li><li><a·href="#method.iter"·title="iter">iter</a></li><li><a·href="#method.len"·title="len">len</a></li><li><a·href="#method.new"·title="new">new</a></li><li><a·href="#method.new_in"·title="new_in">new_in</a></li><li><a·href="#method.peek"·title="peek">peek</a></li><li><a·href="#method.peek_mut"·title="peek_mut">peek_mut</a></li><li><a·href="#method.pop"·title="pop">pop</a></li><li><a·href="#method.push"·title="push">push</a></li><li><a·href="#method.reserve"·title="reserve">reserve</a></li><li><a·href="#method.reserve_exact"·title="reserve_exact">reserve_exact</a></li><li><a·href="#method.retain"·title="retain">retain</a></li><li><a·href="#method.shrink_to"·title="shrink_to">shrink_to</a></li><li><a·href="#method.shrink_to_fit"·title="shrink_to_fit">shrink_to_fit</a></li><li><a·href="#method.try_reserve"·title="try_reserve">try_reserve</a></li><li><a·href="#method.try_reserve_exact"·title="try_reserve_exact">try_reserve_exact</a></li><li><a·href="#method.with_capacity"·title="with_capacity">with_capacity</a></li><li><a·href="#method.with_capacity_in"·title="with_capacity_in">with_capacity_in</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-BinaryHeap%3CT,+A%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-BinaryHeap%3CT,+A%3E"·title="Debug">Debug</a></li><li><a·href="#impl-Default-for-BinaryHeap%3CT%3E"·title="Default">Default</a></li><li><a·href="#impl-Extend%3C%26T%3E-for-BinaryHeap%3CT,+A%3E"·title="Extend&#60;&#38;&#39;a·T&#62;">Extend&#60;&#38;&#39;a·T&#62;</a></li><li><a·href="#impl-Extend%3CT%3E-for-BinaryHeap%3CT,+A%3E"·title="Extend&#60;T&#62;">Extend&#60;T&#62;</a></li><li><a·href="#impl-From%3CBinaryHeap%3CT,+A%3E%3E-for-Vec%3CT,+A%3E"·title="From&#60;BinaryHeap&#60;T,·A&#62;&#62;">From&#60;BinaryHeap&#60;T,·A&#62;&#62;</a></li><li><a·href="#impl-From%3CVec%3CT,+A%3E%3E-for-BinaryHeap%3CT,+A%3E"·title="From&#60;Vec&#60;T,·A&#62;&#62;">From&#60;Vec&#60;T,·A&#62;&#62;</a></li><li><a·href="#impl-From%3C%5BT;+N%5D%3E-for-BinaryHeap%3CT%3E"·title="From&#60;[T;·N]&#62;">From&#60;[T;·N]&#62;</a></li><li><a·href="#impl-FromIterator%3CT%3E-for-BinaryHeap%3CT%3E"·title="FromIterator&#60;T&#62;">FromIterator&#60;T&#62;</a></li><li><a·href="#impl-IntoIterator-for-%26BinaryHeap%3CT,+A%3E"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-IntoIterator-for-BinaryHeap%3CT,+A%3E"·title="IntoIterator">IntoIterator</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-BinaryHeap%3CT,+A%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-BinaryHeap%3CT,+A%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-BinaryHeap%3CT,+A%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-BinaryHeap%3CT,+A%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-BinaryHeap%3CT,+A%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-BinaryHeap%3CT,+A%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>collections::<wbr>binary_<wbr>heap</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">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">binary_heap</a></span><h1>Struct·<span·class="struct">BinaryHeap</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../../src/alloc/collections/binary_heap/mod.rs.html#275-280">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·BinaryHeap&lt;T,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·=·<a·class="struct"·href="../../alloc/struct.Global.html"·title="struct·alloc::alloc::Global">Global</a>&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>A·priority·queue·implemented·with·a·binary·heap.</p>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="A·priority·queue·implemented·with·a·binary·heap."><title>BinaryHeap·in·alloc::collections::binary_heap·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»    2025-01-07)» (built»   from»       a»      source»tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Binary<wbr>Heap</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#examples"·title="Examples">Examples</a><ul><li><a·href="#min-heap"·title="Min-heap">Min-heap</a></li></ul></li><li><a·href="#time-complexity"·title="Time·complexity">Time·complexity</a></li></ul><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.allocator"·title="allocator">allocator</a></li><li><a·href="#method.append"·title="append">append</a></li><li><a·href="#method.as_slice"·title="as_slice">as_slice</a></li><li><a·href="#method.capacity"·title="capacity">capacity</a></li><li><a·href="#method.clear"·title="clear">clear</a></li><li><a·href="#method.drain"·title="drain">drain</a></li><li><a·href="#method.drain_sorted"·title="drain_sorted">drain_sorted</a></li><li><a·href="#method.into_iter_sorted"·title="into_iter_sorted">into_iter_sorted</a></li><li><a·href="#method.into_sorted_vec"·title="into_sorted_vec">into_sorted_vec</a></li><li><a·href="#method.into_vec"·title="into_vec">into_vec</a></li><li><a·href="#method.is_empty"·title="is_empty">is_empty</a></li><li><a·href="#method.iter"·title="iter">iter</a></li><li><a·href="#method.len"·title="len">len</a></li><li><a·href="#method.new"·title="new">new</a></li><li><a·href="#method.new_in"·title="new_in">new_in</a></li><li><a·href="#method.peek"·title="peek">peek</a></li><li><a·href="#method.peek_mut"·title="peek_mut">peek_mut</a></li><li><a·href="#method.pop"·title="pop">pop</a></li><li><a·href="#method.push"·title="push">push</a></li><li><a·href="#method.reserve"·title="reserve">reserve</a></li><li><a·href="#method.reserve_exact"·title="reserve_exact">reserve_exact</a></li><li><a·href="#method.retain"·title="retain">retain</a></li><li><a·href="#method.shrink_to"·title="shrink_to">shrink_to</a></li><li><a·href="#method.shrink_to_fit"·title="shrink_to_fit">shrink_to_fit</a></li><li><a·href="#method.try_reserve"·title="try_reserve">try_reserve</a></li><li><a·href="#method.try_reserve_exact"·title="try_reserve_exact">try_reserve_exact</a></li><li><a·href="#method.with_capacity"·title="with_capacity">with_capacity</a></li><li><a·href="#method.with_capacity_in"·title="with_capacity_in">with_capacity_in</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-BinaryHeap%3CT,+A%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-BinaryHeap%3CT,+A%3E"·title="Debug">Debug</a></li><li><a·href="#impl-Default-for-BinaryHeap%3CT%3E"·title="Default">Default</a></li><li><a·href="#impl-Extend%3C%26T%3E-for-BinaryHeap%3CT,+A%3E"·title="Extend&#60;&#38;&#39;a·T&#62;">Extend&#60;&#38;&#39;a·T&#62;</a></li><li><a·href="#impl-Extend%3CT%3E-for-BinaryHeap%3CT,+A%3E"·title="Extend&#60;T&#62;">Extend&#60;T&#62;</a></li><li><a·href="#impl-From%3CBinaryHeap%3CT,+A%3E%3E-for-Vec%3CT,+A%3E"·title="From&#60;BinaryHeap&#60;T,·A&#62;&#62;">From&#60;BinaryHeap&#60;T,·A&#62;&#62;</a></li><li><a·href="#impl-From%3CVec%3CT,+A%3E%3E-for-BinaryHeap%3CT,+A%3E"·title="From&#60;Vec&#60;T,·A&#62;&#62;">From&#60;Vec&#60;T,·A&#62;&#62;</a></li><li><a·href="#impl-From%3C%5BT;+N%5D%3E-for-BinaryHeap%3CT%3E"·title="From&#60;[T;·N]&#62;">From&#60;[T;·N]&#62;</a></li><li><a·href="#impl-FromIterator%3CT%3E-for-BinaryHeap%3CT%3E"·title="FromIterator&#60;T&#62;">FromIterator&#60;T&#62;</a></li><li><a·href="#impl-IntoIterator-for-%26BinaryHeap%3CT,+A%3E"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-IntoIterator-for-BinaryHeap%3CT,+A%3E"·title="IntoIterator">IntoIterator</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-BinaryHeap%3CT,+A%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-BinaryHeap%3CT,+A%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-BinaryHeap%3CT,+A%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-BinaryHeap%3CT,+A%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-BinaryHeap%3CT,+A%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-BinaryHeap%3CT,+A%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>collections::<wbr>binary_<wbr>heap</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">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">binary_heap</a></span><h1>Struct·<span·class="struct">BinaryHeap</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../../src/alloc/collections/binary_heap/mod.rs.html#275-280">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·BinaryHeap&lt;T,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·=·<a·class="struct"·href="../../alloc/struct.Global.html"·title="struct·alloc::alloc::Global">Global</a>&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>A·priority·queue·implemented·with·a·binary·heap.</p>
2 <p>This·will·be·a·max-heap.</p>2 <p>This·will·be·a·max-heap.</p>
3 <p>It·is·a·logic·error·for·an·item·to·be·modified·in·such·a·way·that·the3 <p>It·is·a·logic·error·for·an·item·to·be·modified·in·such·a·way·that·the
4 item’s·ordering·relative·to·any·other·item,·as·determined·by·the·<a·href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord"><code>Ord</code></a>4 item’s·ordering·relative·to·any·other·item,·as·determined·by·the·<a·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord"><code>Ord</code></a>
5 trait,·changes·while·it·is·in·the·heap.·This·is·normally·only·possible5 trait,·changes·while·it·is·in·the·heap.·This·is·normally·only·possible
6 through·interior·mutability,·global·state,·I/O,·or·unsafe·code.·The6 through·interior·mutability,·global·state,·I/O,·or·unsafe·code.·The
7 behavior·resulting·from·such·a·logic·error·is·not·specified,·but·will7 behavior·resulting·from·such·a·logic·error·is·not·specified,·but·will
8 be·encapsulated·to·the·<code>BinaryHeap</code>·that·observed·the·logic·error·and·not8 be·encapsulated·to·the·<code>BinaryHeap</code>·that·observed·the·logic·error·and·not
9 result·in·undefined·behavior.·This·could·include·panics,·incorrect·results,9 result·in·undefined·behavior.·This·could·include·panics,·incorrect·results,
10 aborts,·memory·leaks,·and·non-termination.</p>10 aborts,·memory·leaks,·and·non-termination.</p>
11 <p>As·long·as·no·elements·change·their·relative·order·while·being·in·the·heap11 <p>As·long·as·no·elements·change·their·relative·order·while·being·in·the·heap
Offset 56, 15 lines modifiedOffset 56, 15 lines modified
56 </span><span·class="macro">assert!</span>(heap.is_empty())</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::BinaryHeap;%0A++++%0A++++//+Type+inference+lets+us+omit+an+explicit+type+signature+(which%0A++++//+would+be+%60BinaryHeap%3Ci32%3E%60+in+this+example).%0A++++let+mut+heap+=+BinaryHeap::new();%0A++++%0A++++//+We+can+use+peek+to+look+at+the+next+item+in+the+heap.+In+this+case,%0A++++//+there's+no+items+in+there+yet+so+we+get+None.%0A++++assert_eq!(heap.peek(),+None);%0A++++%0A++++//+Let's+add+some+scores...%0A++++heap.push(1);%0A++++heap.push(5);%0A++++heap.push(2);%0A++++%0A++++//+Now+peek+shows+the+most+important+item+in+the+heap.%0A++++assert_eq!(heap.peek(),+Some(%265));%0A++++%0A++++//+We+can+check+the+length+of+a+heap.%0A++++assert_eq!(heap.len(),+3);%0A++++%0A++++//+We+can+iterate+over+the+items+in+the+heap,+although+they+are+returned+in%0A++++//+a+random+order.%0A++++for+x+in+%26heap+%7B%0A++++++++println!(%22%7Bx%7D%22);%0A++++%7D%0A++++%0A++++//+If+we+instead+pop+these+scores,+they+should+come+back+in+order.%0A++++assert_eq!(heap.pop(),+Some(5));%0A++++assert_eq!(heap.pop(),+Some(2));%0A++++assert_eq!(heap.pop(),+Some(1));%0A++++assert_eq!(heap.pop(),+None);%0A++++%0A++++//+We+can+clear+the+heap+of+any+remaining+items.%0A++++heap.clear();%0A++++%0A++++//+The+heap+should+now+be+empty.%0A++++assert!(heap.is_empty())%0A%7D&amp;edition=2021"></a></div>56 </span><span·class="macro">assert!</span>(heap.is_empty())</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::BinaryHeap;%0A++++%0A++++//+Type+inference+lets+us+omit+an+explicit+type+signature+(which%0A++++//+would+be+%60BinaryHeap%3Ci32%3E%60+in+this+example).%0A++++let+mut+heap+=+BinaryHeap::new();%0A++++%0A++++//+We+can+use+peek+to+look+at+the+next+item+in+the+heap.+In+this+case,%0A++++//+there's+no+items+in+there+yet+so+we+get+None.%0A++++assert_eq!(heap.peek(),+None);%0A++++%0A++++//+Let's+add+some+scores...%0A++++heap.push(1);%0A++++heap.push(5);%0A++++heap.push(2);%0A++++%0A++++//+Now+peek+shows+the+most+important+item+in+the+heap.%0A++++assert_eq!(heap.peek(),+Some(%265));%0A++++%0A++++//+We+can+check+the+length+of+a+heap.%0A++++assert_eq!(heap.len(),+3);%0A++++%0A++++//+We+can+iterate+over+the+items+in+the+heap,+although+they+are+returned+in%0A++++//+a+random+order.%0A++++for+x+in+%26heap+%7B%0A++++++++println!(%22%7Bx%7D%22);%0A++++%7D%0A++++%0A++++//+If+we+instead+pop+these+scores,+they+should+come+back+in+order.%0A++++assert_eq!(heap.pop(),+Some(5));%0A++++assert_eq!(heap.pop(),+Some(2));%0A++++assert_eq!(heap.pop(),+Some(1));%0A++++assert_eq!(heap.pop(),+None);%0A++++%0A++++//+We+can+clear+the+heap+of+any+remaining+items.%0A++++heap.clear();%0A++++%0A++++//+The+heap+should+now+be+empty.%0A++++assert!(heap.is_empty())%0A%7D&amp;edition=2021"></a></div>
57 <p>A·<code>BinaryHeap</code>·with·a·known·list·of·items·can·be·initialized·from·an·array:</p>57 <p>A·<code>BinaryHeap</code>·with·a·known·list·of·items·can·be·initialized·from·an·array:</p>
  
58 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BinaryHeap;58 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BinaryHeap;
  
59 <span·class="kw">let·</span>heap·=·BinaryHeap::from([<span·class="number">1</span>,·<span·class="number">5</span>,·<span·class="number">2</span>]);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::BinaryHeap;%0A++++%0A++++let+heap+=+BinaryHeap::from(%5B1,+5,+2%5D);%0A%7D&amp;edition=2021"></a></div>59 <span·class="kw">let·</span>heap·=·BinaryHeap::from([<span·class="number">1</span>,·<span·class="number">5</span>,·<span·class="number">2</span>]);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::BinaryHeap;%0A++++%0A++++let+heap+=+BinaryHeap::from(%5B1,+5,+2%5D);%0A%7D&amp;edition=2021"></a></div>
60 <h3·id="min-heap"><a·class="doc-anchor"·href="#min-heap">§</a>Min-heap</h3>60 <h3·id="min-heap"><a·class="doc-anchor"·href="#min-heap">§</a>Min-heap</h3>
61 <p>Either·<a·href="https://doc.rust-lang.org/1.84.0/core/cmp/struct.Reverse.html"·title="struct·core::cmp::Reverse"><code>core::cmp::Reverse</code></a>·or·a·custom·<a·href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord"><code>Ord</code></a>·implementation·can·be·used·to61 <p>Either·<a·href="../../../core/cmp/struct.Reverse.html"·title="struct·core::cmp::Reverse"><code>core::cmp::Reverse</code></a>·or·a·custom·<a·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord"><code>Ord</code></a>·implementation·can·be·used·to
62 make·<code>BinaryHeap</code>·a·min-heap.·This·makes·<code>heap.pop()</code>·return·the·smallest62 make·<code>BinaryHeap</code>·a·min-heap.·This·makes·<code>heap.pop()</code>·return·the·smallest
63 value·instead·of·the·greatest·one.</p>63 value·instead·of·the·greatest·one.</p>
  
64 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BinaryHeap;64 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BinaryHeap;
65 <span·class="kw">use·</span>std::cmp::Reverse;65 <span·class="kw">use·</span>std::cmp::Reverse;
  
66 <span·class="kw">let·</span><span·class="kw-2">mut·</span>heap·=·BinaryHeap::new();66 <span·class="kw">let·</span><span·class="kw-2">mut·</span>heap·=·BinaryHeap::new();
Offset 81, 55 lines modifiedOffset 81, 55 lines modified
81 <span·class="macro">assert_eq!</span>(heap.pop(),·<span·class="prelude-val">None</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::BinaryHeap;%0A++++use+std::cmp::Reverse;%0A++++%0A++++let+mut+heap+=+BinaryHeap::new();%0A++++%0A++++//+Wrap+values+in+%60Reverse%60%0A++++heap.push(Reverse(1));%0A++++heap.push(Reverse(5));%0A++++heap.push(Reverse(2));%0A++++%0A++++//+If+we+pop+these+scores+now,+they+should+come+back+in+the+reverse+order.%0A++++assert_eq!(heap.pop(),+Some(Reverse(1)));%0A++++assert_eq!(heap.pop(),+Some(Reverse(2)));%0A++++assert_eq!(heap.pop(),+Some(Reverse(5)));%0A++++assert_eq!(heap.pop(),+None);%0A%7D&amp;edition=2021"></a></div>81 <span·class="macro">assert_eq!</span>(heap.pop(),·<span·class="prelude-val">None</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::BinaryHeap;%0A++++use+std::cmp::Reverse;%0A++++%0A++++let+mut+heap+=+BinaryHeap::new();%0A++++%0A++++//+Wrap+values+in+%60Reverse%60%0A++++heap.push(Reverse(1));%0A++++heap.push(Reverse(5));%0A++++heap.push(Reverse(2));%0A++++%0A++++//+If+we+pop+these+scores+now,+they+should+come+back+in+the+reverse+order.%0A++++assert_eq!(heap.pop(),+Some(Reverse(1)));%0A++++assert_eq!(heap.pop(),+Some(Reverse(2)));%0A++++assert_eq!(heap.pop(),+Some(Reverse(5)));%0A++++assert_eq!(heap.pop(),+None);%0A%7D&amp;edition=2021"></a></div>
82 <h2·id="time-complexity"><a·class="doc-anchor"·href="#time-complexity">§</a>Time·complexity</h2><div><table><thead><tr><th><a·href="struct.BinaryHeap.html#method.push"·title="method·alloc::collections::binary_heap::BinaryHeap::push">push</a></th><th><a·href="struct.BinaryHeap.html#method.pop"·title="method·alloc::collections::binary_heap::BinaryHeap::pop">pop</a></th><th><a·href="struct.BinaryHeap.html#method.peek"·title="method·alloc::collections::binary_heap::BinaryHeap::peek">peek</a>/<a·href="struct.BinaryHeap.html#method.peek_mut"·title="method·alloc::collections::binary_heap::BinaryHeap::peek_mut">peek_mut</a></th></tr></thead><tbody>82 <h2·id="time-complexity"><a·class="doc-anchor"·href="#time-complexity">§</a>Time·complexity</h2><div><table><thead><tr><th><a·href="struct.BinaryHeap.html#method.push"·title="method·alloc::collections::binary_heap::BinaryHeap::push">push</a></th><th><a·href="struct.BinaryHeap.html#method.pop"·title="method·alloc::collections::binary_heap::BinaryHeap::pop">pop</a></th><th><a·href="struct.BinaryHeap.html#method.peek"·title="method·alloc::collections::binary_heap::BinaryHeap::peek">peek</a>/<a·href="struct.BinaryHeap.html#method.peek_mut"·title="method·alloc::collections::binary_heap::BinaryHeap::peek_mut">peek_mut</a></th></tr></thead><tbody>
83 <tr><td><em>O</em>(1)~</td><td><em>O</em>(log(<em>n</em>))</td><td><em>O</em>(1)</td></tr>83 <tr><td><em>O</em>(1)~</td><td><em>O</em>(log(<em>n</em>))</td><td><em>O</em>(1)</td></tr>
84 </tbody></table>84 </tbody></table>
85 </div>85 </div>
86 <p>The·value·for·<code>push</code>·is·an·expected·cost;·the·method·documentation·gives·a86 <p>The·value·for·<code>push</code>·is·an·expected·cost;·the·method·documentation·gives·a
87 more·detailed·analysis.</p>87 more·detailed·analysis.</p>
88 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-BinaryHeap%3CT%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/binary_heap/mod.rs.html#432-471">Source</a><a·href="#impl-BinaryHeap%3CT%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>&gt;·<a·class="struct"·href="struct.BinaryHeap.html"·title="struct·alloc::collections::binary_heap::BinaryHeap">BinaryHeap</a>&lt;T&gt;</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.new"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0,·const·since·1.80.0">1.0.0·(const:·1.80.0)</span>···<a·class="src"·href="../../../src/alloc/collections/binary_heap/mod.rs.html#447-449">Source</a></span><h4·class="code-header">pub·const·fn·<a·href="#method.new"·class="fn">new</a>()·-&gt;·<a·class="struct"·href="struct.BinaryHeap.html"·title="struct·alloc::collections::binary_heap::BinaryHeap">BinaryHeap</a>&lt;T&gt;</h4></section></summary><div·class="docblock"><p>Creates·an·empty·<code>BinaryHeap</code>·as·a·max-heap.</p>88 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-BinaryHeap%3CT%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/binary_heap/mod.rs.html#432-471">Source</a><a·href="#impl-BinaryHeap%3CT%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T:·<a·class="trait"·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>&gt;·<a·class="struct"·href="struct.BinaryHeap.html"·title="struct·alloc::collections::binary_heap::BinaryHeap">BinaryHeap</a>&lt;T&gt;</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.new"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0,·const·since·1.80.0">1.0.0·(const:·1.80.0)</span>···<a·class="src"·href="../../../src/alloc/collections/binary_heap/mod.rs.html#447-449">Source</a></span><h4·class="code-header">pub·const·fn·<a·href="#method.new"·class="fn">new</a>()·-&gt;·<a·class="struct"·href="struct.BinaryHeap.html"·title="struct·alloc::collections::binary_heap::BinaryHeap">BinaryHeap</a>&lt;T&gt;</h4></section></summary><div·class="docblock"><p>Creates·an·empty·<code>BinaryHeap</code>·as·a·max-heap.</p>
89 <h5·id="examples-1"><a·class="doc-anchor"·href="#examples-1">§</a>Examples</h5>89 <h5·id="examples-1"><a·class="doc-anchor"·href="#examples-1">§</a>Examples</h5>
90 <p>Basic·usage:</p>90 <p>Basic·usage:</p>
  
91 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BinaryHeap;91 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BinaryHeap;
92 <span·class="kw">let·</span><span·class="kw-2">mut·</span>heap·=·BinaryHeap::new();92 <span·class="kw">let·</span><span·class="kw-2">mut·</span>heap·=·BinaryHeap::new();
93 heap.push(<span·class="number">4</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::BinaryHeap;%0A++++let+mut+heap+=+BinaryHeap::new();%0A++++heap.push(4);%0A%7D&amp;edition=2021"></a></div>93 heap.push(<span·class="number">4</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::BinaryHeap;%0A++++let+mut+heap+=+BinaryHeap::new();%0A++++heap.push(4);%0A%7D&amp;edition=2021"></a></div>
94 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.with_capacity"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/binary_heap/mod.rs.html#468-470">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.with_capacity"·class="fn">with_capacity</a>(capacity:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.usize.html">usize</a>)·-&gt;·<a·class="struct"·href="struct.BinaryHeap.html"·title="struct·alloc::collections::binary_heap::BinaryHeap">BinaryHeap</a>&lt;T&gt;</h4></section></summary><div·class="docblock"><p>Creates·an·empty·<code>BinaryHeap</code>·with·at·least·the·specified·capacity.</p>94 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.with_capacity"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/binary_heap/mod.rs.html#468-470">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.with_capacity"·class="fn">with_capacity</a>(capacity:·<a·class="primitive"·href="../../../core/primitive.usize.html">usize</a>)·-&gt;·<a·class="struct"·href="struct.BinaryHeap.html"·title="struct·alloc::collections::binary_heap::BinaryHeap">BinaryHeap</a>&lt;T&gt;</h4></section></summary><div·class="docblock"><p>Creates·an·empty·<code>BinaryHeap</code>·with·at·least·the·specified·capacity.</p>
95 <p>The·binary·heap·will·be·able·to·hold·at·least·<code>capacity</code>·elements·without95 <p>The·binary·heap·will·be·able·to·hold·at·least·<code>capacity</code>·elements·without
96 reallocating.·This·method·is·allowed·to·allocate·for·more·elements·than96 reallocating.·This·method·is·allowed·to·allocate·for·more·elements·than
97 <code>capacity</code>.·If·<code>capacity</code>·is·0,·the·binary·heap·will·not·allocate.</p>97 <code>capacity</code>.·If·<code>capacity</code>·is·0,·the·binary·heap·will·not·allocate.</p>
98 <h5·id="examples-2"><a·class="doc-anchor"·href="#examples-2">§</a>Examples</h5>98 <h5·id="examples-2"><a·class="doc-anchor"·href="#examples-2">§</a>Examples</h5>
99 <p>Basic·usage:</p>99 <p>Basic·usage:</p>
  
100 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BinaryHeap;100 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BinaryHeap;
101 <span·class="kw">let·</span><span·class="kw-2">mut·</span>heap·=·BinaryHeap::with_capacity(<span·class="number">10</span>);101 <span·class="kw">let·</span><span·class="kw-2">mut·</span>heap·=·BinaryHeap::with_capacity(<span·class="number">10</span>);
102 heap.push(<span·class="number">4</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::BinaryHeap;%0A++++let+mut+heap+=+BinaryHeap::with_capacity(10);%0A++++heap.push(4);%0A%7D&amp;edition=2021"></a></div>102 heap.push(<span·class="number">4</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::BinaryHeap;%0A++++let+mut+heap+=+BinaryHeap::with_capacity(10);%0A++++heap.push(4);%0A%7D&amp;edition=2021"></a></div>
103 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-BinaryHeap%3CT,+A%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/binary_heap/mod.rs.html#473-945">Source</a><a·href="#impl-BinaryHeap%3CT,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>&gt;·<a·class="struct"·href="struct.BinaryHeap.html"·title="struct·alloc::collections::binary_heap::BinaryHeap">BinaryHeap</a>&lt;T,·A&gt;</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.new_in"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/binary_heap/mod.rs.html#491-493">Source</a><h4·class="code-header">pub·const·fn·<a·href="#method.new_in"·class="fn">new_in</a>(alloc:·A)·-&gt;·<a·class="struct"·href="struct.BinaryHeap.html"·title="struct·alloc::collections::binary_heap::BinaryHeap">BinaryHeap</a>&lt;T,·A&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>allocator_api</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/32838">#32838</a>)</span></div></span></summary><div·class="docblock"><p>Creates·an·empty·<code>BinaryHeap</code>·as·a·max-heap,·using·<code>A</code>·as·allocator.</p>103 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-BinaryHeap%3CT,+A%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/binary_heap/mod.rs.html#473-945">Source</a><a·href="#impl-BinaryHeap%3CT,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T:·<a·class="trait"·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>&gt;·<a·class="struct"·href="struct.BinaryHeap.html"·title="struct·alloc::collections::binary_heap::BinaryHeap">BinaryHeap</a>&lt;T,·A&gt;</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.new_in"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/binary_heap/mod.rs.html#491-493">Source</a><h4·class="code-header">pub·const·fn·<a·href="#method.new_in"·class="fn">new_in</a>(alloc:·A)·-&gt;·<a·class="struct"·href="struct.BinaryHeap.html"·title="struct·alloc::collections::binary_heap::BinaryHeap">BinaryHeap</a>&lt;T,·A&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>allocator_api</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/32838">#32838</a>)</span></div></span></summary><div·class="docblock"><p>Creates·an·empty·<code>BinaryHeap</code>·as·a·max-heap,·using·<code>A</code>·as·allocator.</p>
104 <h5·id="examples-3"><a·class="doc-anchor"·href="#examples-3">§</a>Examples</h5>104 <h5·id="examples-3"><a·class="doc-anchor"·href="#examples-3">§</a>Examples</h5>
105 <p>Basic·usage:</p>105 <p>Basic·usage:</p>
  
106 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(allocator_api)]106 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(allocator_api)]
  
107 </span><span·class="kw">use·</span>std::alloc::System;107 </span><span·class="kw">use·</span>std::alloc::System;
108 <span·class="kw">use·</span>std::collections::BinaryHeap;108 <span·class="kw">use·</span>std::collections::BinaryHeap;
109 <span·class="kw">let·</span><span·class="kw-2">mut·</span>heap·=·BinaryHeap::new_in(System);109 <span·class="kw">let·</span><span·class="kw-2">mut·</span>heap·=·BinaryHeap::new_in(System);
110 heap.push(<span·class="number">4</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Bfeature(allocator_api)%5D%0A%0A%23%5Ballow(unused_extern_crates)%5D%0Aextern+crate+r%23alloc;%0Afn+main()+%7B%0A++++use+std::alloc::System;%0A++++use+std::collections::BinaryHeap;%0A++++let+mut+heap+=+BinaryHeap::new_in(System);%0A++++heap.push(4);%0A%7D&amp;version=nightly&amp;edition=2021"></a></div>110 heap.push(<span·class="number">4</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Bfeature(allocator_api)%5D%0A%0A%23%5Ballow(unused_extern_crates)%5D%0Aextern+crate+r%23alloc;%0Afn+main()+%7B%0A++++use+std::alloc::System;%0A++++use+std::collections::BinaryHeap;%0A++++let+mut+heap+=+BinaryHeap::new_in(System);%0A++++heap.push(4);%0A%7D&amp;version=nightly&amp;edition=2021"></a></div>
111 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.with_capacity_in"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/binary_heap/mod.rs.html#515-517">Source</a><h4·class="code-header">pub·fn·<a·href="#method.with_capacity_in"·class="fn">with_capacity_in</a>(capacity:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.usize.html">usize</a>,·alloc:·A)·-&gt;·<a·class="struct"·href="struct.BinaryHeap.html"·title="struct·alloc::collections::binary_heap::BinaryHeap">BinaryHeap</a>&lt;T,·A&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>allocator_api</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/32838">#32838</a>)</span></div></span></summary><div·class="docblock"><p>Creates·an·empty·<code>BinaryHeap</code>·with·at·least·the·specified·capacity,·using·<code>A</code>·as·allocator.</p>111 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.with_capacity_in"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/binary_heap/mod.rs.html#515-517">Source</a><h4·class="code-header">pub·fn·<a·href="#method.with_capacity_in"·class="fn">with_capacity_in</a>(capacity:·<a·class="primitive"·href="../../../core/primitive.usize.html">usize</a>,·alloc:·A)·-&gt;·<a·class="struct"·href="struct.BinaryHeap.html"·title="struct·alloc::collections::binary_heap::BinaryHeap">BinaryHeap</a>&lt;T,·A&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>allocator_api</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/32838">#32838</a>)</span></div></span></summary><div·class="docblock"><p>Creates·an·empty·<code>BinaryHeap</code>·with·at·least·the·specified·capacity,·using·<code>A</code>·as·allocator.</p>
112 <p>The·binary·heap·will·be·able·to·hold·at·least·<code>capacity</code>·elements·without112 <p>The·binary·heap·will·be·able·to·hold·at·least·<code>capacity</code>·elements·without
113 reallocating.·This·method·is·allowed·to·allocate·for·more·elements·than113 reallocating.·This·method·is·allowed·to·allocate·for·more·elements·than
114 <code>capacity</code>.·If·<code>capacity</code>·is·0,·the·binary·heap·will·not·allocate.</p>114 <code>capacity</code>.·If·<code>capacity</code>·is·0,·the·binary·heap·will·not·allocate.</p>
115 <h5·id="examples-4"><a·class="doc-anchor"·href="#examples-4">§</a>Examples</h5>115 <h5·id="examples-4"><a·class="doc-anchor"·href="#examples-4">§</a>Examples</h5>
116 <p>Basic·usage:</p>116 <p>Basic·usage:</p>
  
117 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(allocator_api)]117 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(allocator_api)]
  
118 </span><span·class="kw">use·</span>std::alloc::System;118 </span><span·class="kw">use·</span>std::alloc::System;
119 <span·class="kw">use·</span>std::collections::BinaryHeap;119 <span·class="kw">use·</span>std::collections::BinaryHeap;
120 <span·class="kw">let·</span><span·class="kw-2">mut·</span>heap·=·BinaryHeap::with_capacity_in(<span·class="number">10</span>,·System);120 <span·class="kw">let·</span><span·class="kw-2">mut·</span>heap·=·BinaryHeap::with_capacity_in(<span·class="number">10</span>,·System);
121 heap.push(<span·class="number">4</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Bfeature(allocator_api)%5D%0A%0A%23%5Ballow(unused_extern_crates)%5D%0Aextern+crate+r%23alloc;%0Afn+main()+%7B%0A++++use+std::alloc::System;%0A++++use+std::collections::BinaryHeap;%0A++++let+mut+heap+=+BinaryHeap::with_capacity_in(10,+System);%0A++++heap.push(4);%0A%7D&amp;version=nightly&amp;edition=2021"></a></div>121 heap.push(<span·class="number">4</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Bfeature(allocator_api)%5D%0A%0A%23%5Ballow(unused_extern_crates)%5D%0Aextern+crate+r%23alloc;%0Afn+main()+%7B%0A++++use+std::alloc::System;%0A++++use+std::collections::BinaryHeap;%0A++++let+mut+heap+=+BinaryHeap::with_capacity_in(10,+System);%0A++++heap.push(4);%0A%7D&amp;version=nightly&amp;edition=2021"></a></div>
122 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peek_mut"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.12.0">1.12.0</span>···<a·class="src"·href="../../../src/alloc/collections/binary_heap/mod.rs.html#550-552">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.peek_mut"·class="fn">peek_mut</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="struct"·href="struct.PeekMut.html"·title="struct·alloc::collections::binary_heap::PeekMut">PeekMut</a>&lt;'_,·T,·A&gt;&gt;</h4></section></summary><div·class="docblock"><p>Returns·a·mutable·reference·to·the·greatest·item·in·the·binary·heap,·or122 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peek_mut"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.12.0">1.12.0</span>···<a·class="src"·href="../../../src/alloc/collections/binary_heap/mod.rs.html#550-552">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.peek_mut"·class="fn">peek_mut</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="../../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="struct"·href="struct.PeekMut.html"·title="struct·alloc::collections::binary_heap::PeekMut">PeekMut</a>&lt;'_,·T,·A&gt;&gt;</h4></section></summary><div·class="docblock"><p>Returns·a·mutable·reference·to·the·greatest·item·in·the·binary·heap,·or
123 <code>None</code>·if·it·is·empty.</p>123 <code>None</code>·if·it·is·empty.</p>
124 <p>Note:·If·the·<code>PeekMut</code>·value·is·leaked,·some·heap·elements·might·get124 <p>Note:·If·the·<code>PeekMut</code>·value·is·leaked,·some·heap·elements·might·get
125 leaked·along·with·it,·but·the·remaining·elements·will·remain·a·valid125 leaked·along·with·it,·but·the·remaining·elements·will·remain·a·valid
126 heap.</p>126 heap.</p>
127 <h5·id="examples-5"><a·class="doc-anchor"·href="#examples-5">§</a>Examples</h5>127 <h5·id="examples-5"><a·class="doc-anchor"·href="#examples-5">§</a>Examples</h5>
128 <p>Basic·usage:</p>128 <p>Basic·usage:</p>
  
Offset 144, 15 lines modifiedOffset 144, 15 lines modified
144 ····<span·class="kw">let·</span><span·class="kw-2">mut·</span>val·=·heap.peek_mut().unwrap();144 ····<span·class="kw">let·</span><span·class="kw-2">mut·</span>val·=·heap.peek_mut().unwrap();
145 ····<span·class="kw-2">*</span>val·=·<span·class="number">0</span>;145 ····<span·class="kw-2">*</span>val·=·<span·class="number">0</span>;
146 }146 }
147 <span·class="macro">assert_eq!</span>(heap.peek(),·<span·class="prelude-val">Some</span>(<span·class="kw-2">&amp;</span><span·class="number">2</span>));</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::BinaryHeap;%0A++++let+mut+heap+=+BinaryHeap::new();%0A++++assert!(heap.peek_mut().is_none());%0A++++%0A++++heap.push(1);%0A++++heap.push(5);%0A++++heap.push(2);%0A++++%7B%0A++++++++let+mut+val+=+heap.peek_mut().unwrap();%0A++++++++*val+=+0;%0A++++%7D%0A++++assert_eq!(heap.peek(),+Some(%262));%0A%7D&amp;edition=2021"></a></div>147 <span·class="macro">assert_eq!</span>(heap.peek(),·<span·class="prelude-val">Some</span>(<span·class="kw-2">&amp;</span><span·class="number">2</span>));</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::BinaryHeap;%0A++++let+mut+heap+=+BinaryHeap::new();%0A++++assert!(heap.peek_mut().is_none());%0A++++%0A++++heap.push(1);%0A++++heap.push(5);%0A++++heap.push(2);%0A++++%7B%0A++++++++let+mut+val+=+heap.peek_mut().unwrap();%0A++++++++*val+=+0;%0A++++%7D%0A++++assert_eq!(heap.peek(),+Some(%262));%0A%7D&amp;edition=2021"></a></div>
148 <h5·id="time-complexity-1"><a·class="doc-anchor"·href="#time-complexity-1">§</a>Time·complexity</h5>148 <h5·id="time-complexity-1"><a·class="doc-anchor"·href="#time-complexity-1">§</a>Time·complexity</h5>
149 <p>If·the·item·is·modified·then·the·worst·case·time·complexity·is·<em>O</em>(log(<em>n</em>)),149 <p>If·the·item·is·modified·then·the·worst·case·time·complexity·is·<em>O</em>(log(<em>n</em>)),
150 otherwise·it’s·<em>O</em>(1).</p>150 otherwise·it’s·<em>O</em>(1).</p>
151 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.pop"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/binary_heap/mod.rs.html#574-583">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.pop"·class="fn">pop</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;T&gt;</h4></section></summary><div·class="docblock"><p>Removes·the·greatest·item·from·the·binary·heap·and·returns·it,·or·<code>None</code>·if·it151 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.pop"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/binary_heap/mod.rs.html#574-583">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.pop"·class="fn">pop</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="../../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;T&gt;</h4></section></summary><div·class="docblock"><p>Removes·the·greatest·item·from·the·binary·heap·and·returns·it,·or·<code>None</code>·if·it
152 is·empty.</p>152 is·empty.</p>
153 <h5·id="examples-6"><a·class="doc-anchor"·href="#examples-6">§</a>Examples</h5>153 <h5·id="examples-6"><a·class="doc-anchor"·href="#examples-6">§</a>Examples</h5>
154 <p>Basic·usage:</p>154 <p>Basic·usage:</p>
  
155 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BinaryHeap;155 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BinaryHeap;
156 <span·class="kw">let·</span><span·class="kw-2">mut·</span>heap·=·BinaryHeap::from([<span·class="number">1</span>,·<span·class="number">3</span>]);156 <span·class="kw">let·</span><span·class="kw-2">mut·</span>heap·=·BinaryHeap::from([<span·class="number">1</span>,·<span·class="number">3</span>]);
  
Offset 229, 15 lines modifiedOffset 229, 15 lines modified
  
229 <span·class="kw">let·</span><span·class="kw-2">mut·</span>heap·=·BinaryHeap::from([<span·class="number">1</span>,·<span·class="number">2</span>,·<span·class="number">3</span>,·<span·class="number">4</span>,·<span·class="number">5</span>]);229 <span·class="kw">let·</span><span·class="kw-2">mut·</span>heap·=·BinaryHeap::from([<span·class="number">1</span>,·<span·class="number">2</span>,·<span·class="number">3</span>,·<span·class="number">4</span>,·<span·class="number">5</span>]);
230 <span·class="macro">assert_eq!</span>(heap.len(),·<span·class="number">5</span>);230 <span·class="macro">assert_eq!</span>(heap.len(),·<span·class="number">5</span>);
  
231 drop(heap.drain_sorted());·<span·class="comment">//·removes·all·elements·in·heap·order231 drop(heap.drain_sorted());·<span·class="comment">//·removes·all·elements·in·heap·order
232 </span><span·class="macro">assert_eq!</span>(heap.len(),·<span·class="number">0</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Bfeature(binary_heap_drain_sorted)%5D%0Afn+main()+%7B%0A++++use+std::collections::BinaryHeap;%0A++++%0A++++let+mut+heap+=+BinaryHeap::from(%5B1,+2,+3,+4,+5%5D);%0A++++assert_eq!(heap.len(),+5);%0A++++%0A++++drop(heap.drain_sorted());+//+removes+all+elements+in+heap+order%0A++++assert_eq!(heap.len(),+0);%0A%7D&amp;version=nightly&amp;edition=2021"></a></div>232 </span><span·class="macro">assert_eq!</span>(heap.len(),·<span·class="number">0</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Bfeature(binary_heap_drain_sorted)%5D%0Afn+main()+%7B%0A++++use+std::collections::BinaryHeap;%0A++++%0A++++let+mut+heap+=+BinaryHeap::from(%5B1,+2,+3,+4,+5%5D);%0A++++assert_eq!(heap.len(),+5);%0A++++%0A++++drop(heap.drain_sorted());+//+removes+all+elements+in+heap+order%0A++++assert_eq!(heap.len(),+0);%0A%7D&amp;version=nightly&amp;edition=2021"></a></div>
233 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.retain"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.70.0">1.70.0</span>···<a·class="src"·href="../../../src/alloc/collections/binary_heap/mod.rs.html#927-944">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.retain"·class="fn">retain</a>&lt;F&gt;(&amp;mut·self,·f:·F)<div·class="where">where233 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.retain"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.70.0">1.70.0</span>···<a·class="src"·href="../../../src/alloc/collections/binary_heap/mod.rs.html#927-944">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.retain"·class="fn">retain</a>&lt;F&gt;(&amp;mut·self,·f:·F)<div·class="where">where
234 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·5846407374f20f525a4a0663ad4488141eafe64513ef82581dc5df5c2d200745·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class="docblock"><p>Retains·only·the·elements·specified·by·the·predicate.</p>234 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="../../../core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class="docblock"><p>Retains·only·the·elements·specified·by·the·predicate.</p>
235 <p>In·other·words,·remove·all·elements·<code>e</code>·for·which·<code>f(&amp;e)</code>·returns235 <p>In·other·words,·remove·all·elements·<code>e</code>·for·which·<code>f(&amp;e)</code>·returns
236 <code>false</code>.·The·elements·are·visited·in·unsorted·(and·unspecified)·order.</p>236 <code>false</code>.·The·elements·are·visited·in·unsorted·(and·unspecified)·order.</p>
237 <h5·id="examples-11"><a·class="doc-anchor"·href="#examples-11">§</a>Examples</h5>237 <h5·id="examples-11"><a·class="doc-anchor"·href="#examples-11">§</a>Examples</h5>
238 <p>Basic·usage:</p>238 <p>Basic·usage:</p>
  
239 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BinaryHeap;239 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BinaryHeap;
  
Offset 264, 72 lines modifiedOffset 264, 72 lines modified
264 <p>Basic·usage:</p>264 <p>Basic·usage:</p>
  
265 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(binary_heap_into_iter_sorted)]265 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(binary_heap_into_iter_sorted)]
266 </span><span·class="kw">use·</span>std::collections::BinaryHeap;266 </span><span·class="kw">use·</span>std::collections::BinaryHeap;
267 <span·class="kw">let·</span>heap·=·BinaryHeap::from([<span·class="number">1</span>,·<span·class="number">2</span>,·<span·class="number">3</span>,·<span·class="number">4</span>,·<span·class="number">5</span>]);267 <span·class="kw">let·</span>heap·=·BinaryHeap::from([<span·class="number">1</span>,·<span·class="number">2</span>,·<span·class="number">3</span>,·<span·class="number">4</span>,·<span·class="number">5</span>]);
  
268 <span·class="macro">assert_eq!</span>(heap.into_iter_sorted().take(<span·class="number">2</span>).collect::&lt;Vec&lt;<span·class="kw">_</span>&gt;&gt;(),·[<span·class="number">5</span>,·<span·class="number">4</span>]);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Bfeature(binary_heap_into_iter_sorted)%5D%0Afn+main()+%7B%0A++++use+std::collections::BinaryHeap;%0A++++let+heap+=+BinaryHeap::from(%5B1,+2,+3,+4,+5%5D);%0A++++%0A++++assert_eq!(heap.into_iter_sorted().take(2).collect::%3CVec%3C_%3E%3E(),+%5B5,+4%5D);%0A%7D&amp;version=nightly&amp;edition=2021"></a></div>268 <span·class="macro">assert_eq!</span>(heap.into_iter_sorted().take(<span·class="number">2</span>).collect::&lt;Vec&lt;<span·class="kw">_</span>&gt;&gt;(),·[<span·class="number">5</span>,·<span·class="number">4</span>]);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Bfeature(binary_heap_into_iter_sorted)%5D%0Afn+main()+%7B%0A++++use+std::collections::BinaryHeap;%0A++++let+heap+=+BinaryHeap::from(%5B1,+2,+3,+4,+5%5D);%0A++++%0A++++assert_eq!(heap.into_iter_sorted().take(2).collect::%3CVec%3C_%3E%3E(),+%5B5,+4%5D);%0A%7D&amp;version=nightly&amp;edition=2021"></a></div>
269 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peek"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/binary_heap/mod.rs.html#1013-1015">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.peek"·class="fn">peek</a>(&amp;self)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;T</a>&gt;</h4></section></summary><div·class="docblock"><p>Returns·the·greatest·item·in·the·binary·heap,·or·<code>None</code>·if·it·is·empty.</p>269 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peek"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/binary_heap/mod.rs.html#1013-1015">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.peek"·class="fn">peek</a>(&amp;self)·-&gt;·<a·class="enum"·href="../../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;T</a>&gt;</h4></section></summary><div·class="docblock"><p>Returns·the·greatest·item·in·the·binary·heap,·or·<code>None</code>·if·it·is·empty.</p>
270 <h5·id="examples-14"><a·class="doc-anchor"·href="#examples-14">§</a>Examples</h5>270 <h5·id="examples-14"><a·class="doc-anchor"·href="#examples-14">§</a>Examples</h5>
271 <p>Basic·usage:</p>271 <p>Basic·usage:</p>
  
Max diff block lines reached; 132069/170623 bytes (77.40%) of diff not shown.
328 KB
./usr/share/doc/rust-doc/html/alloc/collections/binary_heap/struct.Drain.html
    
Offset 1, 239 lines modifiedOffset 1, 239 lines modified
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="A·draining·iterator·over·the·elements·of·a·`BinaryHeap`."><title>Drain·in·alloc::collections::binary_heap·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»  2025-01-07)»       (built» from»     a»    source»      tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Drain</a></h2><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.allocator"·title="allocator">allocator</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Debug-for-Drain%3C'a,+T,+A%3E"·title="Debug">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-Drain%3C'_,+T,+A%3E"·title="DoubleEndedIterator">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-Drain%3C'_,+T,+A%3E"·title="ExactSizeIterator">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-Drain%3C'_,+T,+A%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-Drain%3C'_,+T,+A%3E"·title="Iterator">Iterator</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-Drain%3C'a,+T,+A%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Drain%3C'a,+T,+A%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Drain%3C'a,+T,+A%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-Drain%3C'a,+T,+A%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-Drain%3C'a,+T,+A%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Drain%3C'a,+T,+A%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>collections::<wbr>binary_<wbr>heap</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">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">binary_heap</a></span><h1>Struct·<span·class="struct">Drain</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../../src/alloc/collections/binary_heap/mod.rs.html#1667-1673">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·Drain&lt;'a,·T:·'a,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·=·<a·class="struct"·href="../../alloc/struct.Global.html"·title="struct·alloc::alloc::Global">Global</a>&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>A·draining·iterator·over·the·elements·of·a·<code>BinaryHeap</code>.</p>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="A·draining·iterator·over·the·elements·of·a·`BinaryHeap`."><title>Drain·in·alloc::collections::binary_heap·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»  2025-01-07)»       (built» from»     a»    source»      tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Drain</a></h2><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.allocator"·title="allocator">allocator</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Debug-for-Drain%3C'a,+T,+A%3E"·title="Debug">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-Drain%3C'_,+T,+A%3E"·title="DoubleEndedIterator">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-Drain%3C'_,+T,+A%3E"·title="ExactSizeIterator">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-Drain%3C'_,+T,+A%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-Drain%3C'_,+T,+A%3E"·title="Iterator">Iterator</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-Drain%3C'a,+T,+A%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Drain%3C'a,+T,+A%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Drain%3C'a,+T,+A%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-Drain%3C'a,+T,+A%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-Drain%3C'a,+T,+A%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Drain%3C'a,+T,+A%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>collections::<wbr>binary_<wbr>heap</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">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">binary_heap</a></span><h1>Struct·<span·class="struct">Drain</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../../src/alloc/collections/binary_heap/mod.rs.html#1667-1673">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·Drain&lt;'a,·T:·'a,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·=·<a·class="struct"·href="../../alloc/struct.Global.html"·title="struct·alloc::alloc::Global">Global</a>&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>A·draining·iterator·over·the·elements·of·a·<code>BinaryHeap</code>.</p>
2 <p>This·<code>struct</code>·is·created·by·<a·href="struct.BinaryHeap.html#method.drain"·title="method·alloc::collections::binary_heap::BinaryHeap::drain"><code>BinaryHeap::drain()</code></a>.·See·its2 <p>This·<code>struct</code>·is·created·by·<a·href="struct.BinaryHeap.html#method.drain"·title="method·alloc::collections::binary_heap::BinaryHeap::drain"><code>BinaryHeap::drain()</code></a>.·See·its
3 documentation·for·more.</p>3 documentation·for·more.</p>
4 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Drain%3C'_,+T,+A%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/binary_heap/mod.rs.html#1675-1681">Source</a><a·href="#impl-Drain%3C'_,+T,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>&gt;·<a·class="struct"·href="struct.Drain.html"·title="struct·alloc::collections::binary_heap::Drain">Drain</a>&lt;'_,·T,·A&gt;</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.allocator"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/binary_heap/mod.rs.html#1678-1680">Source</a><h4·class="code-header">pub·fn·<a·href="#method.allocator"·class="fn">allocator</a>(&amp;self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;A</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>allocator_api</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/32838">#32838</a>)</span></div></span></summary><div·class="docblock"><p>Returns·a·reference·to·the·underlying·allocator.</p>4 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Drain%3C'_,+T,+A%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/binary_heap/mod.rs.html#1675-1681">Source</a><a·href="#impl-Drain%3C'_,+T,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>&gt;·<a·class="struct"·href="struct.Drain.html"·title="struct·alloc::collections::binary_heap::Drain">Drain</a>&lt;'_,·T,·A&gt;</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.allocator"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/binary_heap/mod.rs.html#1678-1680">Source</a><h4·class="code-header">pub·fn·<a·href="#method.allocator"·class="fn">allocator</a>(&amp;self)·-&gt;·<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;A</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>allocator_api</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/32838">#32838</a>)</span></div></span></summary><div·class="docblock"><p>Returns·a·reference·to·the·underlying·allocator.</p>
5 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-Drain%3C'a,+T,+A%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.6.0">1.6.0</span>···<a·class="src"·href="../../../src/alloc/collections/binary_heap/mod.rs.html#1666">Source</a></span><a·href="#impl-Debug-for-Drain%3C'a,+T,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·T:·<a·class="trait"·href="../../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·+·'a,·A:·<a·class="trait"·href="../../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·+·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>&gt;·<a·class="trait"·href="../../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.Drain.html"·title="struct·alloc::collections::binary_heap::Drain">Drain</a>&lt;'a,·T,·A&gt;</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../../../src/alloc/collections/binary_heap/mod.rs.html#1666">Source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="../../fmt/struct.Formatter.html"·title="struct·alloc::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="type"·href="../../fmt/type.Result.html"·title="type·alloc::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../../fmt/trait.Debug.html#tymethod.fmt">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-DoubleEndedIterator-for-Drain%3C'_,+T,+A%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.6.0">1.6.0</span>···<a·class="src"·href="../../../src/alloc/collections/binary_heap/mod.rs.html#1699-1704">Source</a></span><a·href="#impl-DoubleEndedIterator-for-Drain%3C'_,+T,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIterator</a>·for·<a·class="struct"·href="struct.Drain.html"·title="struct·alloc::c[·...·truncated·by·diffoscope;·len:·4280,·SHA:·e97500a68ba2e486b5eb9771ff48020cfdda9cda8e1f0cc2aa884ce6e74419c1·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold"·class="fn">try_rfold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where5 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-Drain%3C'a,+T,+A%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.6.0">1.6.0</span>···<a·class="src"·href="../../../src/alloc/collections/binary_heap/mod.rs.html#1666">Source</a></span><a·href="#impl-Debug-for-Drain%3C'a,+T,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·T:·<a·class="trait"·href="../../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·+·'a,·A:·<a·class="trait"·href="../../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·+·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>&gt;·<a·class="trait"·href="../../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.Drain.html"·title="struct·alloc::collections::binary_heap::Drain">Drain</a>&lt;'a,·T,·A&gt;</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../../../src/alloc/collections/binary_heap/mod.rs.html#1666">Source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="../../fmt/struct.Formatter.html"·title="struct·alloc::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="type"·href="../../fmt/type.Result.html"·title="type·alloc::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../../fmt/trait.Debug.html#tymethod.fmt">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-DoubleEndedIterator-for-Drain%3C'_,+T,+A%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.6.0">1.6.0</span>···<a·class="src"·href="../../../src/alloc/collections/binary_heap/mod.rs.html#1699-1704">Source</a></span><a·href="#impl-DoubleEndedIterator-for-Drain%3C'_,+T,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>&gt;·<a·class="trait"·href="../../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIterator</a>·for·<a·class="struct"·href="struct.Drain.html"·title="struct·alloc::collections::binary_heap:[·...·truncated·by·diffoscope;·len:·3800,·SHA:·b9eab9283a1bf2af0372aba1459b8575902b35c3351942a6a893e19148fb08ed·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold"·class="fn">try_rfold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where
6 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,6 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
7 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,7 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
8 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>This·is·the·reverse·version·of·<a·href="https://doc.rust-lang.org/1.8[·...·truncated·by·diffoscope;·len:·3,·SHA:·fbd04e1aae9ce0b11a8946e2c9ac2619f7428a64d32d01eff61d809dcb70ee8e·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·title="method·core::iter::traits::iterator::Iterator::try_fold"><code>Iterator::try_fold()</code></a>:·it·takes8 ····R:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>This·is·the·reverse·version·of·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·title="method·core::iter::traits::iterator::Iterator::try_fold"><code>Iterator::try_fold()</code></a>:·it·takes
9 elements·starting·from·the·back·of·the·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfold"·class="method·trait-impl"><span·clas[·...·truncated·by·diffoscope;·len:·325,·SHA:·7ffdb06a8ab3810207a1c974783822231eaf1d82fd94bcf810dd7b3181149b7b·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold"·class="fn">rfold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where9 elements·starting·from·the·back·of·the·iterator.·<a·href="../../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfold"·class="method·trait-impl"><span·class="rightside"><span·clas[·...·truncated·by·diffoscope;·len:·253,·SHA:·48421497f19ee93d3a7432833660cd659661b35b02b625c6376fc49660f200cf·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold"·class="fn">rfold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where
10 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,10 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
11 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·reduces·the·iterator’s·elements·to·a·single,11 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·reduces·the·iterator’s·elements·to·a·single,
12 final·value,·starting·from·the·back.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfind"·class="method·trait-impl"><span·class="r[·...·truncated·by·diffoscope;·len:·665,·SHA:·fde89feb7c0e70eefa34d688476ca36a70115bec8150dbf9b1a3c359f72dd28d·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where12 final·value,·starting·from·the·back.·<a·href="../../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfind"·class="method·trait-impl"><span·class="rightside"><span·class="s[·...·truncated·by·diffoscope;·len:·545,·SHA:·b420bc934fe1ddfd2fe0958678aa3aba1ce90383b1958958e47e13ae1b40fe25·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
13 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,13 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
14 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·7080,·SHA:·fe53378845345107b5de37829042f0c17b92c7c1f4f96d7b891ae850c0692472·...·]/core/primitive.usize.html">usize</a>&gt;(14 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·6480,·SHA:·26cb13eed02bd4eae25c021c6eda45c196afa6cf3e4d956d3b4742299e3c1750·...·]/core/primitive.usize.html">usize</a>&gt;(
15 ····&amp;mut·self,15 ····&amp;mut·self,
16 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·4f557a9b49151e0be8c52ffd68f1def4469c08164239dc8bef8df2040551c5ef·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where16 )·-&gt;·<a·class="enum"·href="../../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::It[·...·truncated·by·diffoscope;·len:·261,·SHA:·9b488006768a86d05b68f4e1888c750c736264a3a386f1310f1b7e8bfc7d2184·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where
17 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·962,·SHA:·116e4ec2ae3d9655c3d115eaf50f435f5323b4e48b84de734c79d2a09b3c02f2·...·]/core/primitive.usize.html">usize</a><div·class="where">where17 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_next[·...·truncated·by·diffoscope;·len:·842,·SHA:·d8f387888e3ee78f4397f4b1a12eae734e055247e3aa3251433ab8ac1019b31a·...·]/core/primitive.usize.html">usize</a><div·class="where">where
18 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·counting·the·number·of·iterations·and·returning·it.·<a·href="https://doc.[·...·truncated·by·diffoscope;·len:·837,·SHA:·47e25b6f9687bcc1d1fcdf9842fb085e6aba767d70531028f948636b80563dfc·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where18 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·counting·the·number·of·iterations·and·returning·it.·<a·href="../../../core/iter/traits/iterator/t[·...·truncated·by·diffoscope;·len:·693,·SHA:·725f42ff290538a513ec93cf7284210e1c519a4cc200b6d5878e7ccff2777059·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
19 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·returning·the·last·element.·<a·href="https://doc.rust-lang.org/1.84.0/cor[·...·truncated·by·diffoscope;·len:·3504,·SHA:·ec43d0f6d8d2a1e0fb7a684c382b9934abe1250844e53cce08bdfc6017ecb276·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where19 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·returning·the·last·element.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#metho[·...·truncated·by·diffoscope;·len:·3024,·SHA:·33e764ec8aa4ce60da61c340591349678c8144088b1440d0c5d8b7b28ba27fc9·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where
20 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by20 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by
21 the·given·amount·at·each·iteration.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><sp[·...·truncated·by·diffoscope;·len:·842,·SHA:·945c4509a8daf2f8fbccc5c6e5089e225955911e03a3e411f047f96d52d16862·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where21 the·given·amount·at·each·iteration.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="[·...·truncated·by·diffoscope;·len:·698,·SHA:·035d2f4d2e6b01ddf0b424aa6fc3f5919c82f85f857cb9cfa0f54f8357058b90·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
22 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,22 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
23 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·3b5ce32f9d564c3aa7cf2adc7130e674758d0c0f4f1275b4c3b46a74aa802cb3·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where23 ····U:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·[·...·truncated·by·diffoscope;·len:·1137,·SHA:·7916ae3a9b5afad376aafc6d698165147d82613fe975f64423f2367a02a69f6a·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
24 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,24 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
25 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·[·...·truncated·by·diffoscope;·len:·868,·SHA:·abdbf27ccc84063c7040d8fa3da9d0bda5ee310a470ef576e15554aee4bd5d21·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where25 ····U:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·of·pairs.·<a·href="../..[·...·truncated·by·diffoscope;·len:·724,·SHA:·ba31078b5c50fbfc51e53bed6f70aaa6e7e320cfda19949035c71d9363c0d919·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where
26 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,26 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
27 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent27 ····Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent
28 items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="sr[·...·truncated·by·diffoscope;·len:·427,·SHA:·6e82ad4aad49c2165d869fe30d20a968580a973cdb3a7f4c77f49e16dd59393e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where28 items·of·the·original·iterator.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="src·rightside"·href="../..[·...·truncated·by·diffoscope;·len:·331,·SHA:·451e844c9bf5d6d78b9579516e4b9fafb3e84136eaa1c95bead4539370743d7d·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where
29 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,29 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
30 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>30 ····G:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>
31 between·adjacent·items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightsi[·...·truncated·by·diffoscope;·len:·471,·SHA:·ed10488b7b2ccc3e4cc84a9a57a9695a74c1c964962e8d753cbace12f3318a66·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where31 between·adjacent·items·of·the·original·iterator.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·[·...·truncated·by·diffoscope;·len:·375,·SHA:·7bbb71535f348e442b9de05a74f9180c9acec0636566fa2a19ab1dc83779aace·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where
32 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,32 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
33 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each33 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each
34 element.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><spa[·...·truncated·by·diffoscope;·len:·306,·SHA:·61c87c39b177830189b0e4c036d97c40d8b9649d76432c90afb88de59498e8b2·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where34 element.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="S[·...·truncated·by·diffoscope;·len:·234,·SHA:·55463e0fb539911d03265cbd8abb7248189471ea74954185ed77f245746805c2·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where
35 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,35 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
36 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·a65da32c5f5ef8335cb607d3b4ab3f8a25877bc2c2e8b44ca9d575caecd5c8a5·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where36 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·772,·SHA:·de07f629315c257cc96a89e82de6752f002f259b678391b79d5fb48e279e56d2·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where
37 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,37 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
38 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·6d69c85c69fa789be551ea42d95c33c237d12a04ef157f9ddaaead1177f7771e·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element38 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·68,·SHA:·67cf1e2a20410007c7dd6c47c91b1d386626c1bfac5c1116c374da7bbee00d51·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element
39 should·be·yielded.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·489,·SHA:·9bdc636899f4e4e5a26a3a21c9603f72b3fb972865d2f459c38b7e2ac8fed7f1·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where39 should·be·yielded.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·tit[·...·truncated·by·diffoscope;·len:·393,·SHA:·328d72714f754fb793753313f01b087a9fbb30b77a2bcd5749456e1f6fd72710·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where
40 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,40 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
41 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·46dbf841c7aecd3f06bd4c944af21650faeac98c46c515dcfe643302618b1ecd·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where41 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·884,·SHA:·e8a37e28a6bfcb2d58b9ffd389d339c3dece95c14840f28c980a7d7aedcc9a05·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where
42 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as42 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as
43 the·next·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside[·...·truncated·by·diffoscope;·len:·468,·SHA:·52f7ff7f264284c3acc4429ca34d057ded9afa2e3d9d6e07571e252db9a48977·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where43 the·next·value.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside"><span·class="since"·ti[·...·truncated·by·diffoscope;·len:·372,·SHA:·9c08a613d034f21b42b8d196073d0f4d61c81458378e40e77995533a8b460837·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where
44 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·c0180fefce4346b0b4089e5c642521d7716108241c0ce6ec3e910c7a2c7364b4·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods44 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="../../../core/iter/adapters/peekable/struct.Peekable.html#method.peek"·ti[·...·truncated·by·diffoscope;·len:·103,·SHA:·e3683d31746f50069ed604def6201840bce75bbc7c584fac6c3644292077ae8a·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods
45 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See45 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See
46 their·documentation·for·more·information.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightsid[·...·truncated·by·diffoscope;·len:·498,·SHA:·e4a68861585faec6a5032b3b69d6dfb0f2799b5f387a527d9a1365571ed02069·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where46 their·documentation·for·more·information.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightside"><span·class="since"·t[·...·truncated·by·diffoscope;·len:·402,·SHA:·bdba673560d208f968337eb74446ead60d6223b0ca9ec6fbfaeb1a995a7e8001·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where
47 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,47 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
48 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·93281c1f6402743fd61110c11cf676f0f67eddceda801b4eb35e5fe9f85870fd·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where48 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·1042,·SHA:·27d4a79658fb1c97b659bd2520bcebbf5cfcb8a42420a7ecfcbff6f3330fa5e1·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where
49 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,49 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
50 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·f1cdbb1ec64f98fabbe1d89c88b03824310926cd7eaa160953ce2452fc3abb77·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where50 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·890,·SHA:·c43533da7f54bfb6611594b3436645d4d1f8e5339d2d05bf2345e87628499759·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where
51 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,51 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
52 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·f94a0b2c1396b13b89aca7830197ebf19e2c0e5ba536a9cc25b325a481799510·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where52 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·971,·SHA:·1b31b9d1d5061d4ee982a30400139f1d7319412bdea39925e0cc1e8e7cf3d65a·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where
53 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="https://doc.rust-lang[·...·truncated·by·diffoscope;·len:·783,·SHA:·c14217b89e3292a50a09192a8857485891fc769f861e1d1fc4322d04295c86ef·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where53 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="../../../core/iter/traits/iterator/trait.Iter[·...·truncated·by·diffoscope;·len:·639,·SHA:·79c7f7eddc655d329424f08baee8551b7f59cd4dc4b0d6984c5e4f241bcb949b·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where
54 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer54 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer
55 if·the·underlying·iterator·ends·sooner.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·c[·...·truncated·by·diffoscope;·len:·488,·SHA:·76f753d5a273a09a73127631acaa0ee947326a929f33be291018188793e1af56·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where55 if·the·underlying·iterator·ends·sooner.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stab[·...·truncated·by·diffoscope;·len:·392,·SHA:·50ac976eb8bf89726a483af064d5a70c100dedd17d46dc40ac3a82aba51b2082·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where
56 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,56 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
57 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·07d303586c8ad4e0082d5b44bff8eeda03cdb8f4bdbe46489f9232bca5a43ec6·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but57 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/tra[·...·truncated·by·diffoscope;·len:·329,·SHA:·14fc5ef1359fcb2171e21ba65c5f5d8ce11053860ba1d5aa32ddce90a48c2a8c·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but
58 unlike·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·2b20882d9583cee50e0c8b3cf362b27ce0d524db387d4aa4093d622b9370dada·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where58 unlike·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.scan">Rea[·...·truncated·by·diffoscope;·len:·570,·SHA:·3cdbe78e481f63f4d21b2fa94202dad167221af9d6e6f981ccd7a6e524f6157d·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where
59 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,59 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
60 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,60 ····U:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
61 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·933,·SHA:·4af94b75ba5c1e03d2d70590d2fd0706f13b3080fbff0f5b98e7b109048c403d·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where61 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·789,·SHA:·0e36f9aa81931958e65acc9e1b5bf6ad7367dcb7163dcf0af2a043314857a909·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where
62 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,62 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
63 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.I[·...·truncated·by·diffoscope;·len:·968,·SHA:·e5572ed2f3bdf5970d038da608f2f592d945541207c483c257fe5789efba168a·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where63 ····Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::trait[·...·truncated·by·diffoscope;·len:·800,·SHA:·3ea01df21dfaf9ee656fdee6aa789a6ce5be05d17c043433c5ab28da8f6d3241·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where
64 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,64 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
65 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·3013c0e49b0dade37f8ca096eccc5ceeb03fc79b9d320a4c92486d23b88d1009·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over65 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator[·...·truncated·by·diffoscope;·len:·63,·SHA:·8395b60c01b0cde6c3340bd4e6c57cddd02465a19dcf15a8aa5498bd6c8ddc11·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over
66 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,66 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="../../../core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,
67 the·windows·during·mapping·overlap·as·well.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside">[·...·truncated·by·diffoscope;·len:·454,·SHA:·040991f3914479bcc92615de2b81df7363656323622e5aadc964e1a61917d23e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where67 the·windows·during·mapping·overlap·as·well.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside"><span·class="since"·titl[·...·truncated·by·diffoscope;·len:·358,·SHA:·21db4436f04b3d09e41f294c30cd7dea235a4beb9af727cb1f1f065008ad732e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where
68 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="https://doc.rust-lang.org/1.84.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·0e0294a45242d5ce9a3ab8f95d6d410756415291d92baa7d12283ef1b3ecc3a0·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where68 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="../../../core/option/enum.Option.html#variant.None"·title="varia[·...·truncated·by·diffoscope;·len:·697,·SHA:·55b16240a265fa2f73963114b9def4c5703a60d1c3ce047915fff28502588e5b·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where
69 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,69 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
70 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·a8b562f71802a421f4745f7d1fadf4f70d98030c829e70f27b692e7915267027·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where70 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·650,·SHA:·eb862563a2da6881a0f9a31dac8f99f2b47b2c8d3033a0e1bc9ec49ae5500941·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where
71 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="https://doc.rust-lang.org/1.84.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·b3db7d84f203bbc139b1c52912705d19c664dac762898205fce452c9dc3a5318·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where71 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.by[·...·truncated·by·diffoscope;·len:·427,·SHA:·d439202f1a598c30b789e20f3d05a82f531349aa12f3af08cc5c230996ec01a9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where
72 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,72 ····B:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
73 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·431,·SHA:·a705a23f6d810357e7dcac670743884665ffcccfb9b780d0aa03720be8ca5625·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(73 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.collect[·...·truncated·by·diffoscope;·len:·335,·SHA:·d72a986b5d306b2e1ed99e18a16e26fa1b5380448fea76ac3db703052800b629·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(
74 ····&amp;mut·self,74 ····&amp;mut·self,
75 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.h[·...·truncated·by·diffoscope;·len:·479,·SHA:·fa749442d890055f86ceb34f411c84fd7ea08302b336d786d1ca36fe5868b020·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where75 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try[·...·truncated·by·diffoscope;·len:·359,·SHA:·886ccc2fbd37f1e7df4075b80b0bebd3d1a6e997fae2114ca1818fa30fa95d5a·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
76 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,76 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
77 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>, 
78 ····&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang[·...·truncated·by·diffoscope;·len:·449,·SHA:·9ddccfb7bdd27ea692d65fa83daf56e31762d1bec3a502234174b8fa4fb33a98·...·],77 ····Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="[·...·truncated·by·diffoscope;·len:·40,·SHA:·39f6b8b47216936a6251a972a3e72c0459df25c157b8b3990eefb48397aa8303·...·],
 78 ····&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;B&gt;,
79 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/itera[·...·truncated·by·diffoscope;·len:·323,·SHA:·b5c51f161dc9d77fd81d1fd23cc71fbf42ac00f3168cf9e41ebaaa2b6eb25363·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if79 ····B:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·tit[·...·truncated·by·diffoscope;·len:·227,·SHA:·91a843f71f5d4d4bdd2a6f526e4b1ace78ad1c1c0027ff429527a1e3cc1cbb42·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if
80 a·failure·is·encountered.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·ri[·...·truncated·by·diffoscope;·len:·521,·SHA:·6a54376815dab985ec8cc35604d035e98e3003b1563c9b41e70966084505542b·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where80 a·failure·is·encountered.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../../[·...·truncated·by·diffoscope;·len:·401,·SHA:·ed1d0660f20625c1d5231d569dd3e4f1d10332250dcd1a3f5d2e886618e67f5b·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
81 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,81 ····E:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
82 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·975,·SHA:·94f7f970236ba59ba5f1415764a0e3ab2f3093c6b79e76c25c797ac24a3c4d09·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where82 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_coll[·...·truncated·by·diffoscope;·len:·855,·SHA:·7b38a8c237aadc46d5211ff8698af580678e0cbcab757a66d6416b422880dd91·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
83 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,83 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
84 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·b480ec650ba000fe7cb67df58fc0351299638ee3e8f00db18f74ca24d69f9894·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,84 ····B:·<a·class="trait"·href="../../../core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="../../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associa[·...·truncated·by·diffoscope;·len:·23,·SHA:·4417dee5d41246c4acf5419e1bdac3c7d847bd34e3e87738a08734259a3b63da·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
85 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·fdf5a1845f070855ba2cfd0c8c85460ea5cb646c4d3b42a8431bf21489c73701·...·]/core/primitive.usize.html">usize</a><div·class="where">where85 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·827,·SHA:·0237b034801a953ed40ad7c10f9a80d682bdf0a649c6fde9f53efc254cd75fc0·...·]/core/primitive.usize.html">usize</a><div·class="where">where
86 ····T:·'a,86 ····T:·'a,
87 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·1fc250e258e9e42e4fa3e22f86ecd57057e9ff23e47af1aec778076a7a891134·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,87 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="../../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEnd[·...·truncated·by·diffoscope;·len:·60,·SHA:·036db50df43442a72ce04aef94ccf2727352aad0708d71fe0e34c23613b84765·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,
88 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·5846407374f20f525a4a0663ad4488141eafe64513ef82581dc5df5c2d200745·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_partition_in_place</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62543">#62543</a>)</span></div></span><div·class='docblock'>Reorders·the·elements·of·this·iterator·<em>in-place</em>·according·to·the·given·predicate,88 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="../../../core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_partition_in_place</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62543">#62543</a>)</span></div></span><div·class='docblock'>Reorders·the·elements·of·this·iterator·<em>in-place</em>·according·to·the·given·predicate,
89 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.89 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.
90 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.partition_in_place">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_partitioned"·class="method·trait-impl"><a·clas[·...·truncated·by·diffoscope;·len:·431,·SHA:·4aa7d028146c72d45794efc19a376d4bee3b75eda61ff46d969e440b3dbfa1b0·...·]/core/primitive.bool.html">bool</a><div·class="where">where90 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.partition_in_place">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_partitioned"·class="method·trait-impl"><a·class="src·rightside"·href="[·...·truncated·by·diffoscope;·len:·335,·SHA:·252e1c16199fc3c38bc7de8cbda8c9532ab6d581d449c680cd7daf8d61a74aeb·...·]/core/primitive.bool.html">bool</a><div·class="where">where
91 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,91 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
92 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·fcd03e71f79faad6d9b9a12045d59f4dfabc78e5aefebcabc9c1a5be45e31125·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,92 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·63,·SHA:·852041c2de8156fdddf9f71111c5ddf1a6b88aabd8c082f1a254f0b21c18ffa1·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,
93 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><span·class="righ[·...·truncated·by·diffoscope;·len:·319,·SHA:·9b9df13f2f4e5b4dde3908515766e1a474fa30bcb7edc98c15665a016e677c2a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where93 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><span·class="rightside"><span·class="sinc[·...·truncated·by·diffoscope;·len:·247,·SHA:·222a0145d03094cb0b20ca156583afe97e703828a8aa77e37fb7b4661759e2c7·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where
94 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,94 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
95 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,95 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
96 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns96 ····R:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns
97 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rights[·...·truncated·by·diffoscope;·len:·321,·SHA:·619fd774190944998148325de99aaa75de66ce4b7e26579fd342c564923a5652·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where97 successfully,·producing·a·single,·final·value.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"[·...·truncated·by·diffoscope;·len:·249,·SHA:·afbe9e91614278f09851b7c5920ddaf0907a2bf4c310ec39b40084e28959cc77·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where
98 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,98 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
99 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,99 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
100 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the100 ····R:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="../../../core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the
101 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·307,·SHA:·5975144fd8566efa93ad1ccec09297e280924b7372e08681d2103702124e2c52·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where101 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><span·class="rightside"><span·class="since"·tit[·...·truncated·by·diffoscope;·len:·235,·SHA:·da9aac17d9724df2aa434c2d10e1caa010eb4fd7e574e4da4e3d5b689e970097·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where
102 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,102 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
103 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,103 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,
104 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span[·...·truncated·by·diffoscope;·len:·619,·SHA:·8813f54846438870310d5f5dfabd2335a9dbf51e9da2e4cd681bcb6077d39628·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where104 returning·the·final·result.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="St[·...·truncated·by·diffoscope;·len:·499,·SHA:·ff97be2c630acbbbb397aa79317bd89b79955e6735d9da7aea9df48659f94fce·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
105 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,105 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
106 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·084691f7fc4e7f4da7db385127d0ce8d2d52f6740757129a65910c4db0dc180d·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing106 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·256,·SHA:·2fe8ae39f77649fea294c45979f427748b2a9938dfa70e4595ac661d972125b1·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing
107 operation.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·217,·SHA:·447ae00256be3de069c602a6c04889808c883eae6fa349d023f53bdd5570ecae·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(107 operation.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside"·href="../../../src/cor[·...·truncated·by·diffoscope;·len:·145,·SHA:·be4dc63adf8a4e832fd3dbaaabbf45f287388ea2bb17088d40589203a2ec6dfb·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(
108 ····&amp;mut·self,108 ····&amp;mut·self,
109 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·70b2b85cad045ac7addf647e0bd3cd5b2c9ebca5986613ad2b6a9c00e3a1132f·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,109 ····f:·impl·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·68,·SHA:·e7e11f257edcac749a5883ad9a3aa42e6e965be419f967b36caa7afd3b36d7c9·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
110 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·1823533b932e38e3200465d101f10a34421c005018974296350162e4049615ea·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where110 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</[·...·truncated·by·diffoscope;·len:·586,·SHA:·596f94ec7a4c06359aee56ccb8a7138a1ddb94415fafcecac1fc87434b1329a3·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
111 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,111 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
112 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,112 ····R:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
113 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·764ea8f08626b05426a76738d54ebb2d640042494d76cba8c20d868bfdc07a73·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the113 ····&lt;R·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</[·...·truncated·by·diffoscope;·len:·292,·SHA:·2ae73aa9b78f13099a8016e28a473713dcc755cf00fed8895c0c1b027bbcea01·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the
114 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><span·class="rightside"><s[·...·truncated·by·diffoscope;·len:·476,·SHA:·aef721c14147dea2fbec70dcfa76916b3f1273bed8304f4c9db310ca23d1e4b1·...·]/core/primitive.bool.html">bool</a><div·class="where">where114 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title=[·...·truncated·by·diffoscope;·len:·380,·SHA:·1042cdc03eabce3d330853b659f28b8566dd5841790f7f1303f3e326f05efab6·...·]/core/primitive.bool.html">bool</a><div·class="where">where
115 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,115 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
116 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·7c48e62c73a40a5cb5ebbf4a22cd789b342a88ad3d855022191f2bae33c736c6·...·]/core/primitive.bool.html">bool</a><div·class="where">where116 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·850,·SHA:·1b28d9cdfe3ba8dc7eac8cef1bb6549e78768b440ea492c70d80c8c07eae61cb·...·]/core/primitive.bool.html">bool</a><div·class="where">where
117 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,117 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
118 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·673d69ce0c23e24b2546127c463e67cd2a4c0f7be792712e2b42e75427161b75·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where118 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·980,·SHA:·a560c9e639c326a34f124b36f977291532e03ffae190e973674fee7e13b4c842·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
119 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,119 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
120 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·aa5078ff77f5638746395497f8ce92c1b684d342dea851990104d5e9981ab6b0·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where120 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·883,·SHA:·47fb849c20ee0cb36696a24bd285768bd0973774403ae956d2a517cd216452b1·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where
121 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,121 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
122 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·1bd732dff19021a1586bb486282683f5c1bc65d5d514f9e13cc9232b4e94955b·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;,</div></h4></section></summary><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns122 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·58,·SHA:·f6e1e279f463d2adecc4a9316aeab7af85329a84398e722f43ac130647fe78cf·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;,</div></h4></section></summary><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns
123 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.find_map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_find"·class="method·trait-impl"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·215,·SHA:·4d59a011c8881794ce6367c1e816f11a813db02e37c71800ed6d47056f157573·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(123 the·first·non-none·result.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.find_map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_find"·class="method·trait-impl"><a·class="src·rightside"·href="../../../src/cor[·...·truncated·by·diffoscope;·len:·143,·SHA:·00906f8dc0620ba030a634eba59c098f3aff639a062bf6231dfc4feb7727cc72·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(
124 ····&amp;mut·self,124 ····&amp;mut·self,
125 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,125 ····f:·impl·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
126 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·efb03e5c706e0947c6a4490b17f1efb0f1944a7d81f2640b5933212334dd255a·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where126 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</[·...·truncated·by·diffoscope;·len:·482,·SHA:·9ae34b47b226617c3eb5738e2b006056038b8280724fbbb72477bd2e900a4e85·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
Max diff block lines reached; 83107/335243 bytes (24.79%) of diff not shown.
311 KB
./usr/share/doc/rust-doc/html/alloc/collections/binary_heap/struct.DrainSorted.html
    
Offset 1, 220 lines modifiedOffset 1, 220 lines modified
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="A·draining·iterator·over·the·elements·of·a·`BinaryHeap`."><title>DrainSorted·in·alloc::collections::binary_heap·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»    2025-01-07)» (built»   from»       a»      source»tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Drain<wbr>Sorted</a></h2><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.allocator"·title="allocator">allocator</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Debug-for-DrainSorted%3C'a,+T,+A%3E"·title="Debug">Debug</a></li><li><a·href="#impl-Drop-for-DrainSorted%3C'a,+T,+A%3E"·title="Drop">Drop</a></li><li><a·href="#impl-ExactSizeIterator-for-DrainSorted%3C'_,+T,+A%3E"·title="ExactSizeIterator">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-DrainSorted%3C'_,+T,+A%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-DrainSorted%3C'_,+T,+A%3E"·title="Iterator">Iterator</a></li><li><a·href="#impl-TrustedLen-for-DrainSorted%3C'_,+T,+A%3E"·title="TrustedLen">TrustedLen</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-UnwindSafe-for-DrainSorted%3C'a,+T,+A%3E"·title="!UnwindSafe">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-DrainSorted%3C'a,+T,+A%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-DrainSorted%3C'a,+T,+A%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-DrainSorted%3C'a,+T,+A%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-DrainSorted%3C'a,+T,+A%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-DrainSorted%3C'a,+T,+A%3E"·title="Unpin">Unpin</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>collections::<wbr>binary_<wbr>heap</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">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">binary_heap</a></span><h1>Struct·<span·class="struct">DrainSorted</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/alloc/collections/binary_heap/mod.rs.html#1724-1730">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·DrainSorted&lt;'a,·T:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·=·<a·class="struct"·href="../../alloc/struct.Global.html"·title="struct·alloc::alloc::Global">Global</a>&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>binary_heap_drain_sorted</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/59278">#59278</a>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>A·draining·iterator·over·the·elements·of·a·<code>BinaryHeap</code>.</p>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="A·draining·iterator·over·the·elements·of·a·`BinaryHeap`."><title>DrainSorted·in·alloc::collections::binary_heap·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»    2025-01-07)» (built»   from»       a»      source»tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Drain<wbr>Sorted</a></h2><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.allocator"·title="allocator">allocator</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Debug-for-DrainSorted%3C'a,+T,+A%3E"·title="Debug">Debug</a></li><li><a·href="#impl-Drop-for-DrainSorted%3C'a,+T,+A%3E"·title="Drop">Drop</a></li><li><a·href="#impl-ExactSizeIterator-for-DrainSorted%3C'_,+T,+A%3E"·title="ExactSizeIterator">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-DrainSorted%3C'_,+T,+A%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-DrainSorted%3C'_,+T,+A%3E"·title="Iterator">Iterator</a></li><li><a·href="#impl-TrustedLen-for-DrainSorted%3C'_,+T,+A%3E"·title="TrustedLen">TrustedLen</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-UnwindSafe-for-DrainSorted%3C'a,+T,+A%3E"·title="!UnwindSafe">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-DrainSorted%3C'a,+T,+A%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-DrainSorted%3C'a,+T,+A%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-DrainSorted%3C'a,+T,+A%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-DrainSorted%3C'a,+T,+A%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-DrainSorted%3C'a,+T,+A%3E"·title="Unpin">Unpin</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>collections::<wbr>binary_<wbr>heap</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">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">binary_heap</a></span><h1>Struct·<span·class="struct">DrainSorted</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/alloc/collections/binary_heap/mod.rs.html#1724-1730">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·DrainSorted&lt;'a,·T:·<a·class="trait"·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·=·<a·class="struct"·href="../../alloc/struct.Global.html"·title="struct·alloc::alloc::Global">Global</a>&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>binary_heap_drain_sorted</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/59278">#59278</a>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>A·draining·iterator·over·the·elements·of·a·<code>BinaryHeap</code>.</p>
2 <p>This·<code>struct</code>·is·created·by·<a·href="struct.BinaryHeap.html#method.drain_sorted"·title="method·alloc::collections::binary_heap::BinaryHeap::drain_sorted"><code>BinaryHeap::drain_sorted()</code></a>.·See·its2 <p>This·<code>struct</code>·is·created·by·<a·href="struct.BinaryHeap.html#method.drain_sorted"·title="method·alloc::collections::binary_heap::BinaryHeap::drain_sorted"><code>BinaryHeap::drain_sorted()</code></a>.·See·its
3 documentation·for·more.</p>3 documentation·for·more.</p>
4 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-DrainSorted%3C'a,+T,+A%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/binary_heap/mod.rs.html#1732-1738">Source</a><a·href="#impl-DrainSorted%3C'a,+T,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·T:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>&gt;·<a·class="struct"·href="struct.DrainSorted.h[·...·truncated·by·diffoscope;·len:·510,·SHA:·f9f28dc243b496aeeb3ca42fe88da1af5cee3508b8d779d50778ff3dfeea7ebb·...·]/core/primitive.reference.html">&amp;A</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>allocator_api</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/32838">#32838</a>)</span></div></span></summary><div·class="docblock"><p>Returns·a·reference·to·the·underlying·allocator.</p>4 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-DrainSorted%3C'a,+T,+A%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/binary_heap/mod.rs.html#1732-1738">Source</a><a·href="#impl-DrainSorted%3C'a,+T,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·T:·<a·class="trait"·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>&gt;·<a·class="struct"·href="struct.DrainSorted.html"·title="struct·alloc[·...·truncated·by·diffoscope;·len:·462,·SHA:·1c0272ff2932bb790b5766816495f953f2b9466aeb899f3f755701080b40760c·...·]/core/primitive.reference.html">&amp;A</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>allocator_api</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/32838">#32838</a>)</span></div></span></summary><div·class="docblock"><p>Returns·a·reference·to·the·underlying·allocator.</p>
5 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-DrainSorted%3C'a,+T,+A%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/binary_heap/mod.rs.html#1723">Source</a><a·href="#impl-Debug-for-DrainSorted%3C'a,+T,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·T:·<a·class="trait"·href="../../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,·A:·<a·class="trait"·href="../../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·+·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title[·...·truncated·by·diffoscope;·len:·2331,·SHA:·15a18c0f567e0cc5994b171ec519e2add1ae6be614c936023d7a2e0bcc0f6894·...·]/core/ops/drop/trait.Drop.html#tymethod.drop"·class="fn">drop</a>(&amp;mut·self)</h4></section></summary><div·class="docblock"><p>Removes·heap·elements·in·heap·order.</p>5 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-DrainSorted%3C'a,+T,+A%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/binary_heap/mod.rs.html#1723">Source</a><a·href="#impl-Debug-for-DrainSorted%3C'a,+T,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·T:·<a·class="trait"·href="../../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·+·<a·class="trait"·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,·A:·<a·class="trait"·href="../../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·+·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Al[·...·truncated·by·diffoscope;·len:·2235,·SHA:·572537b183e65ec262c3acebbe8414b034400937056e90e553a7741478c16570·...·]/core/ops/drop/trait.Drop.html#tymethod.drop"·class="fn">drop</a>(&amp;mut·self)</h4></section></summary><div·class="docblock"><p>Removes·heap·elements·in·heap·order.</p>
6 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-ExactSizeIterator-for-DrainSorted%3C'_,+T,+A%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/binary_heap/mod.rs.html#1777">Source</a><a·href="#impl-ExactSizeIterator-for-DrainSorted%3C'_,+T,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>&gt;·<a·class="trait"·href="https://doc.rust-lang[·...·truncated·by·diffoscope;·len:·6083,·SHA:·1cefac00a636d4c644538cf28f17ed664034592af8dd838216aeed9d4a723e2c·...·]/core/primitive.usize.html">usize</a>&gt;(6 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-ExactSizeIterator-for-DrainSorted%3C'_,+T,+A%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/binary_heap/mod.rs.html#1777">Source</a><a·href="#impl-ExactSizeIterator-for-DrainSorted%3C'_,+T,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T:·<a·class="trait"·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>&gt;·<a·class="trait"·href="../../../core/iter/traits/exact_size/trait.Ex[·...·truncated·by·diffoscope;·len:·5507,·SHA:·f3e2457b90db2d55566c75ac3cede2e9a008a1a6de9796c70a85cf9d823d4344·...·]/core/primitive.usize.html">usize</a>&gt;(
7 ····&amp;mut·self,7 ····&amp;mut·self,
8 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·4f557a9b49151e0be8c52ffd68f1def4469c08164239dc8bef8df2040551c5ef·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where8 )·-&gt;·<a·class="enum"·href="../../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::It[·...·truncated·by·diffoscope;·len:·261,·SHA:·9b488006768a86d05b68f4e1888c750c736264a3a386f1310f1b7e8bfc7d2184·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where
9 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·962,·SHA:·116e4ec2ae3d9655c3d115eaf50f435f5323b4e48b84de734c79d2a09b3c02f2·...·]/core/primitive.usize.html">usize</a><div·class="where">where9 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_next[·...·truncated·by·diffoscope;·len:·842,·SHA:·d8f387888e3ee78f4397f4b1a12eae734e055247e3aa3251433ab8ac1019b31a·...·]/core/primitive.usize.html">usize</a><div·class="where">where
10 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·counting·the·number·of·iterations·and·returning·it.·<a·href="https://doc.[·...·truncated·by·diffoscope;·len:·837,·SHA:·47e25b6f9687bcc1d1fcdf9842fb085e6aba767d70531028f948636b80563dfc·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where10 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·counting·the·number·of·iterations·and·returning·it.·<a·href="../../../core/iter/traits/iterator/t[·...·truncated·by·diffoscope;·len:·693,·SHA:·725f42ff290538a513ec93cf7284210e1c519a4cc200b6d5878e7ccff2777059·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
11 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·returning·the·last·element.·<a·href="https://doc.rust-lang.org/1.84.0/cor[·...·truncated·by·diffoscope;·len:·3504,·SHA:·ec43d0f6d8d2a1e0fb7a684c382b9934abe1250844e53cce08bdfc6017ecb276·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where11 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·returning·the·last·element.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#metho[·...·truncated·by·diffoscope;·len:·3024,·SHA:·33e764ec8aa4ce60da61c340591349678c8144088b1440d0c5d8b7b28ba27fc9·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where
12 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by12 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by
13 the·given·amount·at·each·iteration.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><sp[·...·truncated·by·diffoscope;·len:·842,·SHA:·945c4509a8daf2f8fbccc5c6e5089e225955911e03a3e411f047f96d52d16862·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where13 the·given·amount·at·each·iteration.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="[·...·truncated·by·diffoscope;·len:·698,·SHA:·035d2f4d2e6b01ddf0b424aa6fc3f5919c82f85f857cb9cfa0f54f8357058b90·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
14 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,14 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
15 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·3b5ce32f9d564c3aa7cf2adc7130e674758d0c0f4f1275b4c3b46a74aa802cb3·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where15 ····U:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·[·...·truncated·by·diffoscope;·len:·1137,·SHA:·7916ae3a9b5afad376aafc6d698165147d82613fe975f64423f2367a02a69f6a·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
16 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,16 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
17 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·[·...·truncated·by·diffoscope;·len:·868,·SHA:·abdbf27ccc84063c7040d8fa3da9d0bda5ee310a470ef576e15554aee4bd5d21·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where17 ····U:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·of·pairs.·<a·href="../..[·...·truncated·by·diffoscope;·len:·724,·SHA:·ba31078b5c50fbfc51e53bed6f70aaa6e7e320cfda19949035c71d9363c0d919·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where
18 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,18 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
19 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent19 ····Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent
20 items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="sr[·...·truncated·by·diffoscope;·len:·427,·SHA:·6e82ad4aad49c2165d869fe30d20a968580a973cdb3a7f4c77f49e16dd59393e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where20 items·of·the·original·iterator.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="src·rightside"·href="../..[·...·truncated·by·diffoscope;·len:·331,·SHA:·451e844c9bf5d6d78b9579516e4b9fafb3e84136eaa1c95bead4539370743d7d·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where
21 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,21 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
22 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>22 ····G:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>
23 between·adjacent·items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightsi[·...·truncated·by·diffoscope;·len:·471,·SHA:·ed10488b7b2ccc3e4cc84a9a57a9695a74c1c964962e8d753cbace12f3318a66·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where23 between·adjacent·items·of·the·original·iterator.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·[·...·truncated·by·diffoscope;·len:·375,·SHA:·7bbb71535f348e442b9de05a74f9180c9acec0636566fa2a19ab1dc83779aace·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where
24 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,24 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
25 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each25 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each
26 element.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><spa[·...·truncated·by·diffoscope;·len:·306,·SHA:·61c87c39b177830189b0e4c036d97c40d8b9649d76432c90afb88de59498e8b2·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where26 element.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="S[·...·truncated·by·diffoscope;·len:·234,·SHA:·55463e0fb539911d03265cbd8abb7248189471ea74954185ed77f245746805c2·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where
27 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,27 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
28 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·a65da32c5f5ef8335cb607d3b4ab3f8a25877bc2c2e8b44ca9d575caecd5c8a5·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where28 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·772,·SHA:·de07f629315c257cc96a89e82de6752f002f259b678391b79d5fb48e279e56d2·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where
29 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,29 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
30 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·6d69c85c69fa789be551ea42d95c33c237d12a04ef157f9ddaaead1177f7771e·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element30 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·68,·SHA:·67cf1e2a20410007c7dd6c47c91b1d386626c1bfac5c1116c374da7bbee00d51·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element
31 should·be·yielded.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·489,·SHA:·9bdc636899f4e4e5a26a3a21c9603f72b3fb972865d2f459c38b7e2ac8fed7f1·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where31 should·be·yielded.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·tit[·...·truncated·by·diffoscope;·len:·393,·SHA:·328d72714f754fb793753313f01b087a9fbb30b77a2bcd5749456e1f6fd72710·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where
32 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,32 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
33 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·46dbf841c7aecd3f06bd4c944af21650faeac98c46c515dcfe643302618b1ecd·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where33 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·884,·SHA:·e8a37e28a6bfcb2d58b9ffd389d339c3dece95c14840f28c980a7d7aedcc9a05·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where
34 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as34 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as
35 the·next·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside[·...·truncated·by·diffoscope;·len:·468,·SHA:·52f7ff7f264284c3acc4429ca34d057ded9afa2e3d9d6e07571e252db9a48977·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where35 the·next·value.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside"><span·class="since"·ti[·...·truncated·by·diffoscope;·len:·372,·SHA:·9c08a613d034f21b42b8d196073d0f4d61c81458378e40e77995533a8b460837·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where
36 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·c0180fefce4346b0b4089e5c642521d7716108241c0ce6ec3e910c7a2c7364b4·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods36 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="../../../core/iter/adapters/peekable/struct.Peekable.html#method.peek"·ti[·...·truncated·by·diffoscope;·len:·103,·SHA:·e3683d31746f50069ed604def6201840bce75bbc7c584fac6c3644292077ae8a·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods
37 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See37 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See
38 their·documentation·for·more·information.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightsid[·...·truncated·by·diffoscope;·len:·498,·SHA:·e4a68861585faec6a5032b3b69d6dfb0f2799b5f387a527d9a1365571ed02069·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where38 their·documentation·for·more·information.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightside"><span·class="since"·t[·...·truncated·by·diffoscope;·len:·402,·SHA:·bdba673560d208f968337eb74446ead60d6223b0ca9ec6fbfaeb1a995a7e8001·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where
39 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,39 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
40 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·93281c1f6402743fd61110c11cf676f0f67eddceda801b4eb35e5fe9f85870fd·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where40 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·1042,·SHA:·27d4a79658fb1c97b659bd2520bcebbf5cfcb8a42420a7ecfcbff6f3330fa5e1·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where
41 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,41 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
42 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·f1cdbb1ec64f98fabbe1d89c88b03824310926cd7eaa160953ce2452fc3abb77·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where42 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·890,·SHA:·c43533da7f54bfb6611594b3436645d4d1f8e5339d2d05bf2345e87628499759·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where
43 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,43 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
44 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·f94a0b2c1396b13b89aca7830197ebf19e2c0e5ba536a9cc25b325a481799510·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where44 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·971,·SHA:·1b31b9d1d5061d4ee982a30400139f1d7319412bdea39925e0cc1e8e7cf3d65a·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where
45 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="https://doc.rust-lang[·...·truncated·by·diffoscope;·len:·783,·SHA:·c14217b89e3292a50a09192a8857485891fc769f861e1d1fc4322d04295c86ef·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where45 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="../../../core/iter/traits/iterator/trait.Iter[·...·truncated·by·diffoscope;·len:·639,·SHA:·79c7f7eddc655d329424f08baee8551b7f59cd4dc4b0d6984c5e4f241bcb949b·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where
46 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer46 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer
47 if·the·underlying·iterator·ends·sooner.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·c[·...·truncated·by·diffoscope;·len:·488,·SHA:·76f753d5a273a09a73127631acaa0ee947326a929f33be291018188793e1af56·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where47 if·the·underlying·iterator·ends·sooner.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stab[·...·truncated·by·diffoscope;·len:·392,·SHA:·50ac976eb8bf89726a483af064d5a70c100dedd17d46dc40ac3a82aba51b2082·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where
48 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,48 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
49 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·07d303586c8ad4e0082d5b44bff8eeda03cdb8f4bdbe46489f9232bca5a43ec6·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but49 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/tra[·...·truncated·by·diffoscope;·len:·329,·SHA:·14fc5ef1359fcb2171e21ba65c5f5d8ce11053860ba1d5aa32ddce90a48c2a8c·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but
50 unlike·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·2b20882d9583cee50e0c8b3cf362b27ce0d524db387d4aa4093d622b9370dada·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where50 unlike·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.scan">Rea[·...·truncated·by·diffoscope;·len:·570,·SHA:·3cdbe78e481f63f4d21b2fa94202dad167221af9d6e6f981ccd7a6e524f6157d·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where
51 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,51 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
52 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,52 ····U:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
53 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·933,·SHA:·4af94b75ba5c1e03d2d70590d2fd0706f13b3080fbff0f5b98e7b109048c403d·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where53 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·789,·SHA:·0e36f9aa81931958e65acc9e1b5bf6ad7367dcb7163dcf0af2a043314857a909·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where
54 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,54 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
55 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.I[·...·truncated·by·diffoscope;·len:·968,·SHA:·e5572ed2f3bdf5970d038da608f2f592d945541207c483c257fe5789efba168a·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where55 ····Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::trait[·...·truncated·by·diffoscope;·len:·800,·SHA:·3ea01df21dfaf9ee656fdee6aa789a6ce5be05d17c043433c5ab28da8f6d3241·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where
56 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,56 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
57 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·3013c0e49b0dade37f8ca096eccc5ceeb03fc79b9d320a4c92486d23b88d1009·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over57 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator[·...·truncated·by·diffoscope;·len:·63,·SHA:·8395b60c01b0cde6c3340bd4e6c57cddd02465a19dcf15a8aa5498bd6c8ddc11·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over
58 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,58 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="../../../core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,
59 the·windows·during·mapping·overlap·as·well.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside">[·...·truncated·by·diffoscope;·len:·454,·SHA:·040991f3914479bcc92615de2b81df7363656323622e5aadc964e1a61917d23e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where59 the·windows·during·mapping·overlap·as·well.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside"><span·class="since"·titl[·...·truncated·by·diffoscope;·len:·358,·SHA:·21db4436f04b3d09e41f294c30cd7dea235a4beb9af727cb1f1f065008ad732e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where
60 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="https://doc.rust-lang.org/1.84.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·0e0294a45242d5ce9a3ab8f95d6d410756415291d92baa7d12283ef1b3ecc3a0·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where60 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="../../../core/option/enum.Option.html#variant.None"·title="varia[·...·truncated·by·diffoscope;·len:·697,·SHA:·55b16240a265fa2f73963114b9def4c5703a60d1c3ce047915fff28502588e5b·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where
61 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,61 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
62 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·a8b562f71802a421f4745f7d1fadf4f70d98030c829e70f27b692e7915267027·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where62 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·650,·SHA:·eb862563a2da6881a0f9a31dac8f99f2b47b2c8d3033a0e1bc9ec49ae5500941·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where
63 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="https://doc.rust-lang.org/1.84.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·b3db7d84f203bbc139b1c52912705d19c664dac762898205fce452c9dc3a5318·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where63 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.by[·...·truncated·by·diffoscope;·len:·427,·SHA:·d439202f1a598c30b789e20f3d05a82f531349aa12f3af08cc5c230996ec01a9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where
64 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,64 ····B:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
65 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·431,·SHA:·a705a23f6d810357e7dcac670743884665ffcccfb9b780d0aa03720be8ca5625·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(65 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.collect[·...·truncated·by·diffoscope;·len:·335,·SHA:·d72a986b5d306b2e1ed99e18a16e26fa1b5380448fea76ac3db703052800b629·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(
66 ····&amp;mut·self,66 ····&amp;mut·self,
67 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.h[·...·truncated·by·diffoscope;·len:·479,·SHA:·fa749442d890055f86ceb34f411c84fd7ea08302b336d786d1ca36fe5868b020·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where67 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try[·...·truncated·by·diffoscope;·len:·359,·SHA:·886ccc2fbd37f1e7df4075b80b0bebd3d1a6e997fae2114ca1818fa30fa95d5a·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
68 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,68 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
69 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>, 
70 ····&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang[·...·truncated·by·diffoscope;·len:·449,·SHA:·9ddccfb7bdd27ea692d65fa83daf56e31762d1bec3a502234174b8fa4fb33a98·...·],69 ····Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="[·...·truncated·by·diffoscope;·len:·40,·SHA:·39f6b8b47216936a6251a972a3e72c0459df25c157b8b3990eefb48397aa8303·...·],
 70 ····&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;B&gt;,
71 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/itera[·...·truncated·by·diffoscope;·len:·323,·SHA:·b5c51f161dc9d77fd81d1fd23cc71fbf42ac00f3168cf9e41ebaaa2b6eb25363·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if71 ····B:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·tit[·...·truncated·by·diffoscope;·len:·227,·SHA:·91a843f71f5d4d4bdd2a6f526e4b1ace78ad1c1c0027ff429527a1e3cc1cbb42·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if
72 a·failure·is·encountered.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·ri[·...·truncated·by·diffoscope;·len:·521,·SHA:·6a54376815dab985ec8cc35604d035e98e3003b1563c9b41e70966084505542b·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where72 a·failure·is·encountered.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../../[·...·truncated·by·diffoscope;·len:·401,·SHA:·ed1d0660f20625c1d5231d569dd3e4f1d10332250dcd1a3f5d2e886618e67f5b·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
73 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,73 ····E:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
74 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·975,·SHA:·94f7f970236ba59ba5f1415764a0e3ab2f3093c6b79e76c25c797ac24a3c4d09·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where74 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_coll[·...·truncated·by·diffoscope;·len:·855,·SHA:·7b38a8c237aadc46d5211ff8698af580678e0cbcab757a66d6416b422880dd91·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
75 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,75 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
76 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·b480ec650ba000fe7cb67df58fc0351299638ee3e8f00db18f74ca24d69f9894·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,76 ····B:·<a·class="trait"·href="../../../core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="../../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associa[·...·truncated·by·diffoscope;·len:·23,·SHA:·4417dee5d41246c4acf5419e1bdac3c7d847bd34e3e87738a08734259a3b63da·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
77 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·972,·SHA:·0a54d9b1f5cb78c4f6b5f5b1153955eea3a8c16edcc762351208dabad1e8e9aa·...·]/core/primitive.bool.html">bool</a><div·class="where">where77 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·804,·SHA:·9304858cfccb085a534269651ae33dddafe29b7d287f0db58b4a9394480a2fa6·...·]/core/primitive.bool.html">bool</a><div·class="where">where
78 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,78 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
79 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·fcd03e71f79faad6d9b9a12045d59f4dfabc78e5aefebcabc9c1a5be45e31125·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,79 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·63,·SHA:·852041c2de8156fdddf9f71111c5ddf1a6b88aabd8c082f1a254f0b21c18ffa1·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,
80 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><span·class="righ[·...·truncated·by·diffoscope;·len:·319,·SHA:·9b9df13f2f4e5b4dde3908515766e1a474fa30bcb7edc98c15665a016e677c2a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where80 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><span·class="rightside"><span·class="sinc[·...·truncated·by·diffoscope;·len:·247,·SHA:·222a0145d03094cb0b20ca156583afe97e703828a8aa77e37fb7b4661759e2c7·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where
81 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,81 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
82 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,82 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
83 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns83 ····R:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns
84 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rights[·...·truncated·by·diffoscope;·len:·321,·SHA:·619fd774190944998148325de99aaa75de66ce4b7e26579fd342c564923a5652·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where84 successfully,·producing·a·single,·final·value.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"[·...·truncated·by·diffoscope;·len:·249,·SHA:·afbe9e91614278f09851b7c5920ddaf0907a2bf4c310ec39b40084e28959cc77·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where
85 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,85 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
86 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,86 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
87 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the87 ····R:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="../../../core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the
88 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·307,·SHA:·5975144fd8566efa93ad1ccec09297e280924b7372e08681d2103702124e2c52·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where88 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><span·class="rightside"><span·class="since"·tit[·...·truncated·by·diffoscope;·len:·235,·SHA:·da9aac17d9724df2aa434c2d10e1caa010eb4fd7e574e4da4e3d5b689e970097·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where
89 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,89 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
90 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,90 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,
91 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span[·...·truncated·by·diffoscope;·len:·619,·SHA:·8813f54846438870310d5f5dfabd2335a9dbf51e9da2e4cd681bcb6077d39628·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where91 returning·the·final·result.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="St[·...·truncated·by·diffoscope;·len:·499,·SHA:·ff97be2c630acbbbb397aa79317bd89b79955e6735d9da7aea9df48659f94fce·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
92 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,92 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
93 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·084691f7fc4e7f4da7db385127d0ce8d2d52f6740757129a65910c4db0dc180d·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing93 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·256,·SHA:·2fe8ae39f77649fea294c45979f427748b2a9938dfa70e4595ac661d972125b1·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing
94 operation.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·217,·SHA:·447ae00256be3de069c602a6c04889808c883eae6fa349d023f53bdd5570ecae·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(94 operation.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside"·href="../../../src/cor[·...·truncated·by·diffoscope;·len:·145,·SHA:·be4dc63adf8a4e832fd3dbaaabbf45f287388ea2bb17088d40589203a2ec6dfb·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(
95 ····&amp;mut·self,95 ····&amp;mut·self,
96 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·70b2b85cad045ac7addf647e0bd3cd5b2c9ebca5986613ad2b6a9c00e3a1132f·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,96 ····f:·impl·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·68,·SHA:·e7e11f257edcac749a5883ad9a3aa42e6e965be419f967b36caa7afd3b36d7c9·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
97 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·1823533b932e38e3200465d101f10a34421c005018974296350162e4049615ea·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where97 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</[·...·truncated·by·diffoscope;·len:·586,·SHA:·596f94ec7a4c06359aee56ccb8a7138a1ddb94415fafcecac1fc87434b1329a3·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
98 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,98 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
99 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,99 ····R:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
100 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·764ea8f08626b05426a76738d54ebb2d640042494d76cba8c20d868bfdc07a73·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the100 ····&lt;R·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</[·...·truncated·by·diffoscope;·len:·292,·SHA:·2ae73aa9b78f13099a8016e28a473713dcc755cf00fed8895c0c1b027bbcea01·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the
101 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><span·class="rightside"><s[·...·truncated·by·diffoscope;·len:·476,·SHA:·aef721c14147dea2fbec70dcfa76916b3f1273bed8304f4c9db310ca23d1e4b1·...·]/core/primitive.bool.html">bool</a><div·class="where">where101 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title=[·...·truncated·by·diffoscope;·len:·380,·SHA:·1042cdc03eabce3d330853b659f28b8566dd5841790f7f1303f3e326f05efab6·...·]/core/primitive.bool.html">bool</a><div·class="where">where
102 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,102 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
103 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·7c48e62c73a40a5cb5ebbf4a22cd789b342a88ad3d855022191f2bae33c736c6·...·]/core/primitive.bool.html">bool</a><div·class="where">where103 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·850,·SHA:·1b28d9cdfe3ba8dc7eac8cef1bb6549e78768b440ea492c70d80c8c07eae61cb·...·]/core/primitive.bool.html">bool</a><div·class="where">where
104 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,104 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
105 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·673d69ce0c23e24b2546127c463e67cd2a4c0f7be792712e2b42e75427161b75·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where105 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·980,·SHA:·a560c9e639c326a34f124b36f977291532e03ffae190e973674fee7e13b4c842·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
106 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,106 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
107 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·aa5078ff77f5638746395497f8ce92c1b684d342dea851990104d5e9981ab6b0·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where107 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·883,·SHA:·47fb849c20ee0cb36696a24bd285768bd0973774403ae956d2a517cd216452b1·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where
108 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,108 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
109 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·1bd732dff19021a1586bb486282683f5c1bc65d5d514f9e13cc9232b4e94955b·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;,</div></h4></section></summary><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns109 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·58,·SHA:·f6e1e279f463d2adecc4a9316aeab7af85329a84398e722f43ac130647fe78cf·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;,</div></h4></section></summary><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns
110 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.find_map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_find"·class="method·trait-impl"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·215,·SHA:·4d59a011c8881794ce6367c1e816f11a813db02e37c71800ed6d47056f157573·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(110 the·first·non-none·result.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.find_map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_find"·class="method·trait-impl"><a·class="src·rightside"·href="../../../src/cor[·...·truncated·by·diffoscope;·len:·143,·SHA:·00906f8dc0620ba030a634eba59c098f3aff639a062bf6231dfc4feb7727cc72·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(
111 ····&amp;mut·self,111 ····&amp;mut·self,
112 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,112 ····f:·impl·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
113 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·efb03e5c706e0947c6a4490b17f1efb0f1944a7d81f2640b5933212334dd255a·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where113 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</[·...·truncated·by·diffoscope;·len:·482,·SHA:·9ae34b47b226617c3eb5738e2b006056038b8280724fbbb72477bd2e900a4e85·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
114 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,114 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
115 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html">bool</a>&gt;,115 ····R:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="../../../core/primitive.bool.html">bool</a>&gt;,
116 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·764ea8f08626b05426a76738d54ebb2d640042494d76cba8c20d868bfdc07a73·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>try_find</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/63178">#63178</a>)</span></div></span><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns116 ····&lt;R·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</[·...·truncated·by·diffoscope;·len:·292,·SHA:·2ae73aa9b78f13099a8016e28a473713dcc755cf00fed8895c0c1b027bbcea01·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>try_find</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/63178">#63178</a>)</span></div></span><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns
117 the·first·true·result·or·the·first·error.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_find">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.position"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·635,·SHA:·348891c2a01ad4ba1f5ccca4c270bd2cefaf47e6b8194dc69d227209558119ff·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where117 the·first·true·result·or·the·first·error.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_find">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.position"·class="method·trait-impl"><span·class="rightside"><span·class="since"·tit[·...·truncated·by·diffoscope;·len:·515,·SHA:·a1fda5a0c76c9054797870324df8cd1bb446d66310ff913ddcbc9467fea7a33a·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
118 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,118 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
119 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1144,·SHA:·924dabfde33cb637151c206b5bef45e7e2185053d933cf9a15c59eecaafa6d5c·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where119 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·952,·SHA:·72f72454b4804f46746efa385fa104f63e84fb586632dd1c4c930f34217d1e30·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
120 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,120 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
121 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.Ord.html"·title="[·...·truncated·by·diffoscope;·len:·981,·SHA:·98dce65e46bcafc96c419533e0f8c95c11436175b878a43b5be30d98cc9d33a9·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where121 ····Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,</div></h4></secti[·...·truncated·by·diffoscope;·len:·813,·SHA:·a0835641b75785105c101f7557a09e01b6db0cd6ef4ff7164fe09dd76f56b780·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
122 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,122 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
123 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.Ord.html"·title="[·...·truncated·by·diffoscope;·len:·1027,·SHA:·b928182faf179ccb90df08564d70ae31d5dcbcdfc0c8037cf6b7f6a22530a7a1·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where123 ····Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,</div></h4></secti[·...·truncated·by·diffoscope;·len:·859,·SHA:·54ac45d4399a4f662f44869a9a8a7e38fa5f356937ca7d1a3e902478b74ba5e5·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
124 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,124 ····B:·<a·class="trait"·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,
125 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,125 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
126 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Returns·the·element·that·gives·the·maximum·value·from·the126 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Returns·the·element·that·gives·the·maximum·value·from·the
Max diff block lines reached; 84657/318249 bytes (26.60%) of diff not shown.
349 KB
./usr/share/doc/rust-doc/html/alloc/collections/binary_heap/struct.IntoIter.html
Max HTML report size reached
326 KB
./usr/share/doc/rust-doc/html/alloc/collections/binary_heap/struct.IntoIterSorted.html
    
Offset 1, 224 lines modifiedOffset 1, 224 lines modified
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="API·documentation·for·the·Rust·`IntoIterSorted`·struct·in·crate·`alloc`."><title>IntoIterSorted·in·alloc::collections::binary_heap·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»  2025-01-07)»       (built» from»     a»    source»      tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Into<wbr>Iter<wbr>Sorted</a></h2><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.allocator"·title="allocator">allocator</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-IntoIterSorted%3CT,+A%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-IntoIterSorted%3CT,+A%3E"·title="Debug">Debug</a></li><li><a·href="#impl-ExactSizeIterator-for-IntoIterSorted%3CT,+A%3E"·title="ExactSizeIterator">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-IntoIterSorted%3CT,+A%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-IntoIterSorted%3CT,+A%3E"·title="Iterator">Iterator</a></li><li><a·href="#impl-TrustedLen-for-IntoIterSorted%3CT,+A%3E"·title="TrustedLen">TrustedLen</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-IntoIterSorted%3CT,+A%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-IntoIterSorted%3CT,+A%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-IntoIterSorted%3CT,+A%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-IntoIterSorted%3CT,+A%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-IntoIterSorted%3CT,+A%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-IntoIterSorted%3CT,+A%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>collections::<wbr>binary_<wbr>heap</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">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">binary_heap</a></span><h1>Struct·<span·class="struct">IntoIterSorted</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/alloc/collections/binary_heap/mod.rs.html#1619-1624">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·IntoIterSorted&lt;T,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·=·<a·class="struct"·href="../../alloc/struct.Global.html"·title="struct·alloc::alloc::Global">Global</a>&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>binary_heap_into_iter_sorted</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/59278">#59278</a>)</span></div></span><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-IntoIterSorted%3CT,+A%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/binary_heap/mod.rs.html#1626-1632">Source</a><a·href="#impl-IntoIterSorted%3CT,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>&gt;·<a·class="struct"·href="struct.IntoIterSorted.html"·title="struct·alloc::collections::binary_heap::IntoIterSorted">IntoIterSorted</a>&lt;T,·A&gt;</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.allocator"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/binary_heap/mod.rs.html#1629-1631">Source</a><h4·class="code-header">pub·fn·<a·href="#method.allocator"·class="fn">allocator</a>(&amp;self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;A</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>allocator_api</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/32838">#32838</a>)</span></div></span></summary><div·class="docblock"><p>Returns·a·reference·to·the·underlying·allocator.</p>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="API·documentation·for·the·Rust·`IntoIterSorted`·struct·in·crate·`alloc`."><title>IntoIterSorted·in·alloc::collections::binary_heap·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»  2025-01-07)»       (built» from»     a»    source»      tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Into<wbr>Iter<wbr>Sorted</a></h2><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.allocator"·title="allocator">allocator</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-IntoIterSorted%3CT,+A%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-IntoIterSorted%3CT,+A%3E"·title="Debug">Debug</a></li><li><a·href="#impl-ExactSizeIterator-for-IntoIterSorted%3CT,+A%3E"·title="ExactSizeIterator">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-IntoIterSorted%3CT,+A%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-IntoIterSorted%3CT,+A%3E"·title="Iterator">Iterator</a></li><li><a·href="#impl-TrustedLen-for-IntoIterSorted%3CT,+A%3E"·title="TrustedLen">TrustedLen</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-IntoIterSorted%3CT,+A%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-IntoIterSorted%3CT,+A%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-IntoIterSorted%3CT,+A%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-IntoIterSorted%3CT,+A%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-IntoIterSorted%3CT,+A%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-IntoIterSorted%3CT,+A%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>collections::<wbr>binary_<wbr>heap</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">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">binary_heap</a></span><h1>Struct·<span·class="struct">IntoIterSorted</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/alloc/collections/binary_heap/mod.rs.html#1619-1624">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·IntoIterSorted&lt;T,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·=·<a·class="struct"·href="../../alloc/struct.Global.html"·title="struct·alloc::alloc::Global">Global</a>&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>binary_heap_into_iter_sorted</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/59278">#59278</a>)</span></div></span><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-IntoIterSorted%3CT,+A%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/binary_heap/mod.rs.html#1626-1632">Source</a><a·href="#impl-IntoIterSorted%3CT,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>&gt;·<a·class="struct"·href="struct.IntoIterSorted.html"·title="struct·alloc::collections::binary_heap::IntoIterSorted">IntoIterSorted</a>&lt;T,·A&gt;</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.allocator"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/binary_heap/mod.rs.html#1629-1631">Source</a><h4·class="code-header">pub·fn·<a·href="#method.allocator"·class="fn">allocator</a>(&amp;self)·-&gt;·<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;A</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>allocator_api</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/32838">#32838</a>)</span></div></span></summary><div·class="docblock"><p>Returns·a·reference·to·the·underlying·allocator.</p>
2 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-IntoIterSorted%3CT,+A%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/binary_heap/mod.rs.html#1618">Source</a><a·href="#impl-Clone-for-IntoIterSorted%3CT,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,·A:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·+·<a·class="trait"·[·...·truncated·by·diffoscope;·len:·10429,·SHA:·4af2f914038e529b1c9db9a2d98155a4d8c0891d6bda1dee386bf5bd3930b972·...·]/core/primitive.usize.html">usize</a>&gt;(2 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-IntoIterSorted%3CT,+A%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/binary_heap/mod.rs.html#1618">Source</a><a·href="#impl-Clone-for-IntoIterSorted%3CT,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T:·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,·A:·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·+·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="t[·...·truncated·by·diffoscope;·len:·9661,·SHA:·23602e657599c1945db95846de473405bca2cc0fe5977b4009533a169db094b6·...·]/core/primitive.usize.html">usize</a>&gt;(
3 ····&amp;mut·self,3 ····&amp;mut·self,
4 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·4f557a9b49151e0be8c52ffd68f1def4469c08164239dc8bef8df2040551c5ef·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where4 )·-&gt;·<a·class="enum"·href="../../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::It[·...·truncated·by·diffoscope;·len:·261,·SHA:·9b488006768a86d05b68f4e1888c750c736264a3a386f1310f1b7e8bfc7d2184·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where
5 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·962,·SHA:·116e4ec2ae3d9655c3d115eaf50f435f5323b4e48b84de734c79d2a09b3c02f2·...·]/core/primitive.usize.html">usize</a><div·class="where">where5 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_next[·...·truncated·by·diffoscope;·len:·842,·SHA:·d8f387888e3ee78f4397f4b1a12eae734e055247e3aa3251433ab8ac1019b31a·...·]/core/primitive.usize.html">usize</a><div·class="where">where
6 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·counting·the·number·of·iterations·and·returning·it.·<a·href="https://doc.[·...·truncated·by·diffoscope;·len:·837,·SHA:·47e25b6f9687bcc1d1fcdf9842fb085e6aba767d70531028f948636b80563dfc·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where6 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·counting·the·number·of·iterations·and·returning·it.·<a·href="../../../core/iter/traits/iterator/t[·...·truncated·by·diffoscope;·len:·693,·SHA:·725f42ff290538a513ec93cf7284210e1c519a4cc200b6d5878e7ccff2777059·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
7 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·returning·the·last·element.·<a·href="https://doc.rust-lang.org/1.84.0/cor[·...·truncated·by·diffoscope;·len:·3504,·SHA:·ec43d0f6d8d2a1e0fb7a684c382b9934abe1250844e53cce08bdfc6017ecb276·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where7 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·returning·the·last·element.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#metho[·...·truncated·by·diffoscope;·len:·3024,·SHA:·33e764ec8aa4ce60da61c340591349678c8144088b1440d0c5d8b7b28ba27fc9·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where
8 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by8 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by
9 the·given·amount·at·each·iteration.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><sp[·...·truncated·by·diffoscope;·len:·842,·SHA:·945c4509a8daf2f8fbccc5c6e5089e225955911e03a3e411f047f96d52d16862·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where9 the·given·amount·at·each·iteration.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="[·...·truncated·by·diffoscope;·len:·698,·SHA:·035d2f4d2e6b01ddf0b424aa6fc3f5919c82f85f857cb9cfa0f54f8357058b90·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
10 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,10 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
11 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·3b5ce32f9d564c3aa7cf2adc7130e674758d0c0f4f1275b4c3b46a74aa802cb3·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where11 ····U:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·[·...·truncated·by·diffoscope;·len:·1137,·SHA:·7916ae3a9b5afad376aafc6d698165147d82613fe975f64423f2367a02a69f6a·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
12 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,12 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
13 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·[·...·truncated·by·diffoscope;·len:·868,·SHA:·abdbf27ccc84063c7040d8fa3da9d0bda5ee310a470ef576e15554aee4bd5d21·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where13 ····U:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·of·pairs.·<a·href="../..[·...·truncated·by·diffoscope;·len:·724,·SHA:·ba31078b5c50fbfc51e53bed6f70aaa6e7e320cfda19949035c71d9363c0d919·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where
14 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,14 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
15 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent15 ····Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent
16 items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="sr[·...·truncated·by·diffoscope;·len:·427,·SHA:·6e82ad4aad49c2165d869fe30d20a968580a973cdb3a7f4c77f49e16dd59393e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where16 items·of·the·original·iterator.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="src·rightside"·href="../..[·...·truncated·by·diffoscope;·len:·331,·SHA:·451e844c9bf5d6d78b9579516e4b9fafb3e84136eaa1c95bead4539370743d7d·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where
17 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,17 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
18 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>18 ····G:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>
19 between·adjacent·items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightsi[·...·truncated·by·diffoscope;·len:·471,·SHA:·ed10488b7b2ccc3e4cc84a9a57a9695a74c1c964962e8d753cbace12f3318a66·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where19 between·adjacent·items·of·the·original·iterator.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·[·...·truncated·by·diffoscope;·len:·375,·SHA:·7bbb71535f348e442b9de05a74f9180c9acec0636566fa2a19ab1dc83779aace·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where
20 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,20 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
21 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each21 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each
22 element.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><spa[·...·truncated·by·diffoscope;·len:·306,·SHA:·61c87c39b177830189b0e4c036d97c40d8b9649d76432c90afb88de59498e8b2·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where22 element.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="S[·...·truncated·by·diffoscope;·len:·234,·SHA:·55463e0fb539911d03265cbd8abb7248189471ea74954185ed77f245746805c2·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where
23 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,23 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
24 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·a65da32c5f5ef8335cb607d3b4ab3f8a25877bc2c2e8b44ca9d575caecd5c8a5·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where24 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·772,·SHA:·de07f629315c257cc96a89e82de6752f002f259b678391b79d5fb48e279e56d2·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where
25 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,25 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
26 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·6d69c85c69fa789be551ea42d95c33c237d12a04ef157f9ddaaead1177f7771e·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element26 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·68,·SHA:·67cf1e2a20410007c7dd6c47c91b1d386626c1bfac5c1116c374da7bbee00d51·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element
27 should·be·yielded.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·489,·SHA:·9bdc636899f4e4e5a26a3a21c9603f72b3fb972865d2f459c38b7e2ac8fed7f1·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where27 should·be·yielded.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·tit[·...·truncated·by·diffoscope;·len:·393,·SHA:·328d72714f754fb793753313f01b087a9fbb30b77a2bcd5749456e1f6fd72710·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where
28 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,28 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
29 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·46dbf841c7aecd3f06bd4c944af21650faeac98c46c515dcfe643302618b1ecd·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where29 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·884,·SHA:·e8a37e28a6bfcb2d58b9ffd389d339c3dece95c14840f28c980a7d7aedcc9a05·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where
30 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as30 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as
31 the·next·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside[·...·truncated·by·diffoscope;·len:·468,·SHA:·52f7ff7f264284c3acc4429ca34d057ded9afa2e3d9d6e07571e252db9a48977·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where31 the·next·value.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside"><span·class="since"·ti[·...·truncated·by·diffoscope;·len:·372,·SHA:·9c08a613d034f21b42b8d196073d0f4d61c81458378e40e77995533a8b460837·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where
32 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·c0180fefce4346b0b4089e5c642521d7716108241c0ce6ec3e910c7a2c7364b4·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods32 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="../../../core/iter/adapters/peekable/struct.Peekable.html#method.peek"·ti[·...·truncated·by·diffoscope;·len:·103,·SHA:·e3683d31746f50069ed604def6201840bce75bbc7c584fac6c3644292077ae8a·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods
33 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See33 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See
34 their·documentation·for·more·information.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightsid[·...·truncated·by·diffoscope;·len:·498,·SHA:·e4a68861585faec6a5032b3b69d6dfb0f2799b5f387a527d9a1365571ed02069·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where34 their·documentation·for·more·information.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightside"><span·class="since"·t[·...·truncated·by·diffoscope;·len:·402,·SHA:·bdba673560d208f968337eb74446ead60d6223b0ca9ec6fbfaeb1a995a7e8001·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where
35 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,35 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
36 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·93281c1f6402743fd61110c11cf676f0f67eddceda801b4eb35e5fe9f85870fd·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where36 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·1042,·SHA:·27d4a79658fb1c97b659bd2520bcebbf5cfcb8a42420a7ecfcbff6f3330fa5e1·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where
37 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,37 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
38 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·f1cdbb1ec64f98fabbe1d89c88b03824310926cd7eaa160953ce2452fc3abb77·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where38 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·890,·SHA:·c43533da7f54bfb6611594b3436645d4d1f8e5339d2d05bf2345e87628499759·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where
39 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,39 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
40 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·f94a0b2c1396b13b89aca7830197ebf19e2c0e5ba536a9cc25b325a481799510·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where40 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·971,·SHA:·1b31b9d1d5061d4ee982a30400139f1d7319412bdea39925e0cc1e8e7cf3d65a·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where
41 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="https://doc.rust-lang[·...·truncated·by·diffoscope;·len:·783,·SHA:·c14217b89e3292a50a09192a8857485891fc769f861e1d1fc4322d04295c86ef·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where41 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="../../../core/iter/traits/iterator/trait.Iter[·...·truncated·by·diffoscope;·len:·639,·SHA:·79c7f7eddc655d329424f08baee8551b7f59cd4dc4b0d6984c5e4f241bcb949b·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where
42 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer42 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer
43 if·the·underlying·iterator·ends·sooner.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·c[·...·truncated·by·diffoscope;·len:·488,·SHA:·76f753d5a273a09a73127631acaa0ee947326a929f33be291018188793e1af56·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where43 if·the·underlying·iterator·ends·sooner.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stab[·...·truncated·by·diffoscope;·len:·392,·SHA:·50ac976eb8bf89726a483af064d5a70c100dedd17d46dc40ac3a82aba51b2082·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where
44 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,44 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
45 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·07d303586c8ad4e0082d5b44bff8eeda03cdb8f4bdbe46489f9232bca5a43ec6·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but45 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/tra[·...·truncated·by·diffoscope;·len:·329,·SHA:·14fc5ef1359fcb2171e21ba65c5f5d8ce11053860ba1d5aa32ddce90a48c2a8c·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but
46 unlike·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·2b20882d9583cee50e0c8b3cf362b27ce0d524db387d4aa4093d622b9370dada·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where46 unlike·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.scan">Rea[·...·truncated·by·diffoscope;·len:·570,·SHA:·3cdbe78e481f63f4d21b2fa94202dad167221af9d6e6f981ccd7a6e524f6157d·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where
47 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,47 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
48 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,48 ····U:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
49 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·933,·SHA:·4af94b75ba5c1e03d2d70590d2fd0706f13b3080fbff0f5b98e7b109048c403d·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where49 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·789,·SHA:·0e36f9aa81931958e65acc9e1b5bf6ad7367dcb7163dcf0af2a043314857a909·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where
50 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,50 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
51 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.I[·...·truncated·by·diffoscope;·len:·968,·SHA:·e5572ed2f3bdf5970d038da608f2f592d945541207c483c257fe5789efba168a·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where51 ····Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::trait[·...·truncated·by·diffoscope;·len:·800,·SHA:·3ea01df21dfaf9ee656fdee6aa789a6ce5be05d17c043433c5ab28da8f6d3241·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where
52 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,52 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
53 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·3013c0e49b0dade37f8ca096eccc5ceeb03fc79b9d320a4c92486d23b88d1009·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over53 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator[·...·truncated·by·diffoscope;·len:·63,·SHA:·8395b60c01b0cde6c3340bd4e6c57cddd02465a19dcf15a8aa5498bd6c8ddc11·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over
54 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,54 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="../../../core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,
55 the·windows·during·mapping·overlap·as·well.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside">[·...·truncated·by·diffoscope;·len:·454,·SHA:·040991f3914479bcc92615de2b81df7363656323622e5aadc964e1a61917d23e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where55 the·windows·during·mapping·overlap·as·well.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside"><span·class="since"·titl[·...·truncated·by·diffoscope;·len:·358,·SHA:·21db4436f04b3d09e41f294c30cd7dea235a4beb9af727cb1f1f065008ad732e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where
56 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="https://doc.rust-lang.org/1.84.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·0e0294a45242d5ce9a3ab8f95d6d410756415291d92baa7d12283ef1b3ecc3a0·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where56 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="../../../core/option/enum.Option.html#variant.None"·title="varia[·...·truncated·by·diffoscope;·len:·697,·SHA:·55b16240a265fa2f73963114b9def4c5703a60d1c3ce047915fff28502588e5b·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where
57 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,57 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
58 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·a8b562f71802a421f4745f7d1fadf4f70d98030c829e70f27b692e7915267027·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where58 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·650,·SHA:·eb862563a2da6881a0f9a31dac8f99f2b47b2c8d3033a0e1bc9ec49ae5500941·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where
59 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="https://doc.rust-lang.org/1.84.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·b3db7d84f203bbc139b1c52912705d19c664dac762898205fce452c9dc3a5318·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where59 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.by[·...·truncated·by·diffoscope;·len:·427,·SHA:·d439202f1a598c30b789e20f3d05a82f531349aa12f3af08cc5c230996ec01a9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where
60 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,60 ····B:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
61 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·431,·SHA:·a705a23f6d810357e7dcac670743884665ffcccfb9b780d0aa03720be8ca5625·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(61 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.collect[·...·truncated·by·diffoscope;·len:·335,·SHA:·d72a986b5d306b2e1ed99e18a16e26fa1b5380448fea76ac3db703052800b629·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(
62 ····&amp;mut·self,62 ····&amp;mut·self,
63 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.h[·...·truncated·by·diffoscope;·len:·479,·SHA:·fa749442d890055f86ceb34f411c84fd7ea08302b336d786d1ca36fe5868b020·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where63 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try[·...·truncated·by·diffoscope;·len:·359,·SHA:·886ccc2fbd37f1e7df4075b80b0bebd3d1a6e997fae2114ca1818fa30fa95d5a·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
64 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,64 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
65 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>, 
66 ····&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang[·...·truncated·by·diffoscope;·len:·449,·SHA:·9ddccfb7bdd27ea692d65fa83daf56e31762d1bec3a502234174b8fa4fb33a98·...·],65 ····Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="[·...·truncated·by·diffoscope;·len:·40,·SHA:·39f6b8b47216936a6251a972a3e72c0459df25c157b8b3990eefb48397aa8303·...·],
 66 ····&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;B&gt;,
67 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/itera[·...·truncated·by·diffoscope;·len:·323,·SHA:·b5c51f161dc9d77fd81d1fd23cc71fbf42ac00f3168cf9e41ebaaa2b6eb25363·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if67 ····B:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·tit[·...·truncated·by·diffoscope;·len:·227,·SHA:·91a843f71f5d4d4bdd2a6f526e4b1ace78ad1c1c0027ff429527a1e3cc1cbb42·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if
68 a·failure·is·encountered.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·ri[·...·truncated·by·diffoscope;·len:·521,·SHA:·6a54376815dab985ec8cc35604d035e98e3003b1563c9b41e70966084505542b·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where68 a·failure·is·encountered.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../../[·...·truncated·by·diffoscope;·len:·401,·SHA:·ed1d0660f20625c1d5231d569dd3e4f1d10332250dcd1a3f5d2e886618e67f5b·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
69 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,69 ····E:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
70 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·975,·SHA:·94f7f970236ba59ba5f1415764a0e3ab2f3093c6b79e76c25c797ac24a3c4d09·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where70 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_coll[·...·truncated·by·diffoscope;·len:·855,·SHA:·7b38a8c237aadc46d5211ff8698af580678e0cbcab757a66d6416b422880dd91·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
71 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,71 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
72 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·b480ec650ba000fe7cb67df58fc0351299638ee3e8f00db18f74ca24d69f9894·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,72 ····B:·<a·class="trait"·href="../../../core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="../../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associa[·...·truncated·by·diffoscope;·len:·23,·SHA:·4417dee5d41246c4acf5419e1bdac3c7d847bd34e3e87738a08734259a3b63da·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
73 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·972,·SHA:·0a54d9b1f5cb78c4f6b5f5b1153955eea3a8c16edcc762351208dabad1e8e9aa·...·]/core/primitive.bool.html">bool</a><div·class="where">where73 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·804,·SHA:·9304858cfccb085a534269651ae33dddafe29b7d287f0db58b4a9394480a2fa6·...·]/core/primitive.bool.html">bool</a><div·class="where">where
74 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,74 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
75 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·fcd03e71f79faad6d9b9a12045d59f4dfabc78e5aefebcabc9c1a5be45e31125·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,75 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·63,·SHA:·852041c2de8156fdddf9f71111c5ddf1a6b88aabd8c082f1a254f0b21c18ffa1·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,
76 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><span·class="righ[·...·truncated·by·diffoscope;·len:·319,·SHA:·9b9df13f2f4e5b4dde3908515766e1a474fa30bcb7edc98c15665a016e677c2a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where76 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><span·class="rightside"><span·class="sinc[·...·truncated·by·diffoscope;·len:·247,·SHA:·222a0145d03094cb0b20ca156583afe97e703828a8aa77e37fb7b4661759e2c7·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where
77 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,77 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
78 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,78 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
79 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns79 ····R:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns
80 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rights[·...·truncated·by·diffoscope;·len:·321,·SHA:·619fd774190944998148325de99aaa75de66ce4b7e26579fd342c564923a5652·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where80 successfully,·producing·a·single,·final·value.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"[·...·truncated·by·diffoscope;·len:·249,·SHA:·afbe9e91614278f09851b7c5920ddaf0907a2bf4c310ec39b40084e28959cc77·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where
81 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,81 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
82 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,82 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
83 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the83 ····R:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="../../../core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the
84 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·307,·SHA:·5975144fd8566efa93ad1ccec09297e280924b7372e08681d2103702124e2c52·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where84 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><span·class="rightside"><span·class="since"·tit[·...·truncated·by·diffoscope;·len:·235,·SHA:·da9aac17d9724df2aa434c2d10e1caa010eb4fd7e574e4da4e3d5b689e970097·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where
85 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,85 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
86 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,86 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,
87 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span[·...·truncated·by·diffoscope;·len:·619,·SHA:·8813f54846438870310d5f5dfabd2335a9dbf51e9da2e4cd681bcb6077d39628·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where87 returning·the·final·result.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="St[·...·truncated·by·diffoscope;·len:·499,·SHA:·ff97be2c630acbbbb397aa79317bd89b79955e6735d9da7aea9df48659f94fce·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
88 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,88 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
89 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·084691f7fc4e7f4da7db385127d0ce8d2d52f6740757129a65910c4db0dc180d·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing89 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·256,·SHA:·2fe8ae39f77649fea294c45979f427748b2a9938dfa70e4595ac661d972125b1·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing
90 operation.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·217,·SHA:·447ae00256be3de069c602a6c04889808c883eae6fa349d023f53bdd5570ecae·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(90 operation.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside"·href="../../../src/cor[·...·truncated·by·diffoscope;·len:·145,·SHA:·be4dc63adf8a4e832fd3dbaaabbf45f287388ea2bb17088d40589203a2ec6dfb·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(
91 ····&amp;mut·self,91 ····&amp;mut·self,
92 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·70b2b85cad045ac7addf647e0bd3cd5b2c9ebca5986613ad2b6a9c00e3a1132f·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,92 ····f:·impl·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·68,·SHA:·e7e11f257edcac749a5883ad9a3aa42e6e965be419f967b36caa7afd3b36d7c9·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
93 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·1823533b932e38e3200465d101f10a34421c005018974296350162e4049615ea·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where93 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</[·...·truncated·by·diffoscope;·len:·586,·SHA:·596f94ec7a4c06359aee56ccb8a7138a1ddb94415fafcecac1fc87434b1329a3·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
94 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,94 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
95 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,95 ····R:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
96 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·764ea8f08626b05426a76738d54ebb2d640042494d76cba8c20d868bfdc07a73·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the96 ····&lt;R·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</[·...·truncated·by·diffoscope;·len:·292,·SHA:·2ae73aa9b78f13099a8016e28a473713dcc755cf00fed8895c0c1b027bbcea01·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the
97 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><span·class="rightside"><s[·...·truncated·by·diffoscope;·len:·476,·SHA:·aef721c14147dea2fbec70dcfa76916b3f1273bed8304f4c9db310ca23d1e4b1·...·]/core/primitive.bool.html">bool</a><div·class="where">where97 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title=[·...·truncated·by·diffoscope;·len:·380,·SHA:·1042cdc03eabce3d330853b659f28b8566dd5841790f7f1303f3e326f05efab6·...·]/core/primitive.bool.html">bool</a><div·class="where">where
98 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,98 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
99 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·7c48e62c73a40a5cb5ebbf4a22cd789b342a88ad3d855022191f2bae33c736c6·...·]/core/primitive.bool.html">bool</a><div·class="where">where99 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·850,·SHA:·1b28d9cdfe3ba8dc7eac8cef1bb6549e78768b440ea492c70d80c8c07eae61cb·...·]/core/primitive.bool.html">bool</a><div·class="where">where
100 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,100 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
101 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·673d69ce0c23e24b2546127c463e67cd2a4c0f7be792712e2b42e75427161b75·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where101 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·980,·SHA:·a560c9e639c326a34f124b36f977291532e03ffae190e973674fee7e13b4c842·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
102 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,102 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
103 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·aa5078ff77f5638746395497f8ce92c1b684d342dea851990104d5e9981ab6b0·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where103 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·883,·SHA:·47fb849c20ee0cb36696a24bd285768bd0973774403ae956d2a517cd216452b1·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where
104 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,104 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
105 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·1bd732dff19021a1586bb486282683f5c1bc65d5d514f9e13cc9232b4e94955b·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;,</div></h4></section></summary><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns105 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·58,·SHA:·f6e1e279f463d2adecc4a9316aeab7af85329a84398e722f43ac130647fe78cf·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;,</div></h4></section></summary><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns
106 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.find_map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_find"·class="method·trait-impl"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·215,·SHA:·4d59a011c8881794ce6367c1e816f11a813db02e37c71800ed6d47056f157573·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(106 the·first·non-none·result.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.find_map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_find"·class="method·trait-impl"><a·class="src·rightside"·href="../../../src/cor[·...·truncated·by·diffoscope;·len:·143,·SHA:·00906f8dc0620ba030a634eba59c098f3aff639a062bf6231dfc4feb7727cc72·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(
107 ····&amp;mut·self,107 ····&amp;mut·self,
108 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,108 ····f:·impl·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
109 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·efb03e5c706e0947c6a4490b17f1efb0f1944a7d81f2640b5933212334dd255a·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where109 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</[·...·truncated·by·diffoscope;·len:·482,·SHA:·9ae34b47b226617c3eb5738e2b006056038b8280724fbbb72477bd2e900a4e85·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
110 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,110 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
111 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html">bool</a>&gt;,111 ····R:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="../../../core/primitive.bool.html">bool</a>&gt;,
112 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·764ea8f08626b05426a76738d54ebb2d640042494d76cba8c20d868bfdc07a73·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>try_find</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/63178">#63178</a>)</span></div></span><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns112 ····&lt;R·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</[·...·truncated·by·diffoscope;·len:·292,·SHA:·2ae73aa9b78f13099a8016e28a473713dcc755cf00fed8895c0c1b027bbcea01·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>try_find</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/63178">#63178</a>)</span></div></span><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns
113 the·first·true·result·or·the·first·error.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_find">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.position"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·635,·SHA:·348891c2a01ad4ba1f5ccca4c270bd2cefaf47e6b8194dc69d227209558119ff·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where113 the·first·true·result·or·the·first·error.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_find">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.position"·class="method·trait-impl"><span·class="rightside"><span·class="since"·tit[·...·truncated·by·diffoscope;·len:·515,·SHA:·a1fda5a0c76c9054797870324df8cd1bb446d66310ff913ddcbc9467fea7a33a·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
114 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,114 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
115 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1144,·SHA:·924dabfde33cb637151c206b5bef45e7e2185053d933cf9a15c59eecaafa6d5c·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where115 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·952,·SHA:·72f72454b4804f46746efa385fa104f63e84fb586632dd1c4c930f34217d1e30·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
116 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,116 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
117 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.Ord.html"·title="[·...·truncated·by·diffoscope;·len:·981,·SHA:·98dce65e46bcafc96c419533e0f8c95c11436175b878a43b5be30d98cc9d33a9·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where117 ····Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,</div></h4></secti[·...·truncated·by·diffoscope;·len:·813,·SHA:·a0835641b75785105c101f7557a09e01b6db0cd6ef4ff7164fe09dd76f56b780·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
118 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,118 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
119 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.Ord.html"·title="[·...·truncated·by·diffoscope;·len:·1027,·SHA:·b928182faf179ccb90df08564d70ae31d5dcbcdfc0c8037cf6b7f6a22530a7a1·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where119 ····Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,</div></h4></secti[·...·truncated·by·diffoscope;·len:·859,·SHA:·54ac45d4399a4f662f44869a9a8a7e38fa5f356937ca7d1a3e902478b74ba5e5·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
120 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,120 ····B:·<a·class="trait"·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,
121 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,121 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
122 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Returns·the·element·that·gives·the·maximum·value·from·the122 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Returns·the·element·that·gives·the·maximum·value·from·the
123 specified·function.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.max_by_key">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.max_by"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·631,·SHA:·85969676239612a4af79ca58ddb20274f3ef3c8441f7ce5fa7050e530fed90d6·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where123 specified·function.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.max_by_key">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.max_by"·class="method·trait-impl"><span·class="rightside"><span·class="since"·tit[·...·truncated·by·diffoscope;·len:·511,·SHA:·28a81c6cecf40d424b9fff4f8efe3c058d66ecd63997796e214fc2bfce83e488·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
124 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,124 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
125 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·346,·SHA:·89ac74208295b291143af90fbbe08713bd1029679a1ef1eac39de92bb3981c03·...·]/core/cmp/enum.Ordering.html"·title="enum·core::cmp::Ordering">Ordering</a>,</div></h4></section></summary><div·class='docblock'>Returns·the·element·that·gives·the·maximum·value·with·respect·to·the125 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·250,·SHA:·8f55ec1ee28e7749caf0f66b596dbeacdc1675fa7c004a791e54bb3ea4ca2ea7·...·]/core/cmp/enum.Ordering.html"·title="enum·core::cmp::Ordering">Ordering</a>,</div></h4></section></summary><div·class='docblock'>Returns·the·element·that·gives·the·maximum·value·with·respect·to·the
126 specified·comparison·function.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.max_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.min_by_key"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·638,·SHA:·f613f75de1f91a4ed72540d49ff57e2fd0e395db510c03661ef3120f8a9e038a·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where126 specified·comparison·function.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.max_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.min_by_key"·class="method·trait-impl"><span·class="rightside"><span·class="since"·tit[·...·truncated·by·diffoscope;·len:·518,·SHA:·22bc8d4e53ae6ff60ccbb54fa8a2acbbe4bc6c9f8e2a9c6c08df10f0906ff721·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
Max diff block lines reached; 96235/333388 bytes (28.87%) of diff not shown.
339 KB
./usr/share/doc/rust-doc/html/alloc/collections/binary_heap/struct.Iter.html
    
Offset 1, 240 lines modifiedOffset 1, 240 lines modified
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="An·iterator·over·the·elements·of·a·`BinaryHeap`."><title>Iter·in·alloc::collections::binary_heap·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»  2025-01-07)»       (built» from»     a»    source»      tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Iter</a></h2><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-Iter%3C'_,+T%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-Iter%3C'_,+T%3E"·title="Debug">Debug</a></li><li><a·href="#impl-Default-for-Iter%3C'_,+T%3E"·title="Default">Default</a></li><li><a·href="#impl-DoubleEndedIterator-for-Iter%3C'a,+T%3E"·title="DoubleEndedIterator">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-Iter%3C'_,+T%3E"·title="ExactSizeIterator">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-Iter%3C'_,+T%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-Iter%3C'a,+T%3E"·title="Iterator">Iterator</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-Iter%3C'a,+T%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Iter%3C'a,+T%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Iter%3C'a,+T%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-Iter%3C'a,+T%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-Iter%3C'a,+T%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Iter%3C'a,+T%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>collections::<wbr>binary_<wbr>heap</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">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">binary_heap</a></span><h1>Struct·<span·class="struct">Iter</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../../src/alloc/collections/binary_heap/mod.rs.html#1436-1438">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·Iter&lt;'a,·T:·'a&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>An·iterator·over·the·elements·of·a·<code>BinaryHeap</code>.</p>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="An·iterator·over·the·elements·of·a·`BinaryHeap`."><title>Iter·in·alloc::collections::binary_heap·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»  2025-01-07)»       (built» from»     a»    source»      tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Iter</a></h2><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-Iter%3C'_,+T%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-Iter%3C'_,+T%3E"·title="Debug">Debug</a></li><li><a·href="#impl-Default-for-Iter%3C'_,+T%3E"·title="Default">Default</a></li><li><a·href="#impl-DoubleEndedIterator-for-Iter%3C'a,+T%3E"·title="DoubleEndedIterator">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-Iter%3C'_,+T%3E"·title="ExactSizeIterator">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-Iter%3C'_,+T%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-Iter%3C'a,+T%3E"·title="Iterator">Iterator</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-Iter%3C'a,+T%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Iter%3C'a,+T%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Iter%3C'a,+T%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-Iter%3C'a,+T%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-Iter%3C'a,+T%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Iter%3C'a,+T%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>collections::<wbr>binary_<wbr>heap</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">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">binary_heap</a></span><h1>Struct·<span·class="struct">Iter</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../../src/alloc/collections/binary_heap/mod.rs.html#1436-1438">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·Iter&lt;'a,·T:·'a&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>An·iterator·over·the·elements·of·a·<code>BinaryHeap</code>.</p>
2 <p>This·<code>struct</code>·is·created·by·<a·href="struct.BinaryHeap.html#method.iter"·title="method·alloc::collections::binary_heap::BinaryHeap::iter"><code>BinaryHeap::iter()</code></a>.·See·its2 <p>This·<code>struct</code>·is·created·by·<a·href="struct.BinaryHeap.html#method.iter"·title="method·alloc::collections::binary_heap::BinaryHeap::iter"><code>BinaryHeap::iter()</code></a>.·See·its
3 documentation·for·more.</p>3 documentation·for·more.</p>
4 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-Iter%3C'_,+T%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/binary_heap/mod.rs.html#1463-1467">Source</a></span><a·href="#impl-Clone-for-Iter%3C'_,+T%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struct"·href="struct.Iter.html"·title="struct·alloc::collections::binary_heap::Iter">Iter</a>&lt;'_,·T&gt;</h3></section></summary><div·c[·...·truncated·by·diffoscope;·len:·3996,·SHA:·25e78e87e232559903e45104c0824e00e64f434a9337ef20bde51c9e4f2a1a59·...·]/core/default/trait.Default.html#tymethod.default"·class="fn">default</a>()·-&gt;·Self</h4></section></summary><div·class="docblock"><p>Creates·an·empty·<code>binary_heap::Iter</code>.</p>4 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-Iter%3C'_,+T%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/binary_heap/mod.rs.html#1463-1467">Source</a></span><a·href="#impl-Clone-for-Iter%3C'_,+T%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struct"·href="struct.Iter.html"·title="struct·alloc::collections::binary_heap::Iter">Iter</a>&lt;'_,·T&gt;</h3></section></summary><div·class="impl-items"><detai[·...·truncated·by·diffoscope;·len:·3804,·SHA:·8cdd2719f10982ace50ff9aaa77b58bb2ac9ab662d3ff383b9331c6e58661cc0·...·]/core/default/trait.Default.html#tymethod.default"·class="fn">default</a>()·-&gt;·Self</h4></section></summary><div·class="docblock"><p>Creates·an·empty·<code>binary_heap::Iter</code>.</p>
  
5 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span>iter:·binary_heap::Iter&lt;<span·class="lifetime">'_</span>,·u8&gt;·=·Default::default();5 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span>iter:·binary_heap::Iter&lt;<span·class="lifetime">'_</span>,·u8&gt;·=·Default::default();
6 <span·class="macro">assert_eq!</span>(iter.len(),·<span·class="number">0</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::binary_heap;%0A++++let+iter:+binary_heap::Iter%3C'_,+u8%3E+=+Default::default();%0A++++assert_eq!(iter.len(),+0);%0A%7D&amp;edition=2021"></a></div>6 <span·class="macro">assert_eq!</span>(iter.len(),·<span·class="number">0</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::binary_heap;%0A++++let+iter:+binary_heap::Iter%3C'_,+u8%3E+=+Default::default();%0A++++assert_eq!(iter.len(),+0);%0A%7D&amp;edition=2021"></a></div>
7 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-DoubleEndedIterator-for-Iter%3C'a,+T%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/binary_heap/mod.rs.html#1490-1495">Source</a></span><a·href="#impl-DoubleEndedIterator-for-Iter%3C'a,+T%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·T&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIterator</a>·for·<a·class="struct"·href="struct.Iter.html"·title="struct·alloc::co[·...·truncated·by·diffoscope;·len:·4377,·SHA:·8a38412de9ae2f3eba59e6ea13a4e335ab15542b4c0a97692ba046e360e7d7bd·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold"·class="fn">try_rfold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where7 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-DoubleEndedIterator-for-Iter%3C'a,+T%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/binary_heap/mod.rs.html#1490-1495">Source</a></span><a·href="#impl-DoubleEndedIterator-for-Iter%3C'a,+T%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·T&gt;·<a·class="trait"·href="../../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIterator</a>·for·<a·class="struct"·href="struct.Iter.html"·title="struct·alloc::collections::binary_heap::[·...·truncated·by·diffoscope;·len:·3873,·SHA:·5da0db50a62d19edd5ad0f40116a215d2b190c6b43b7a2599905d8e2aba00df3·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold"·class="fn">try_rfold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where
8 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,8 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
9 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,9 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
10 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>This·is·the·reverse·version·of·<a·href="https://doc.rust-lang.org/1.8[·...·truncated·by·diffoscope;·len:·3,·SHA:·fbd04e1aae9ce0b11a8946e2c9ac2619f7428a64d32d01eff61d809dcb70ee8e·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·title="method·core::iter::traits::iterator::Iterator::try_fold"><code>Iterator::try_fold()</code></a>:·it·takes10 ····R:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>This·is·the·reverse·version·of·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·title="method·core::iter::traits::iterator::Iterator::try_fold"><code>Iterator::try_fold()</code></a>:·it·takes
11 elements·starting·from·the·back·of·the·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfold"·class="method·trait-impl"><span·clas[·...·truncated·by·diffoscope;·len:·325,·SHA:·7ffdb06a8ab3810207a1c974783822231eaf1d82fd94bcf810dd7b3181149b7b·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold"·class="fn">rfold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where11 elements·starting·from·the·back·of·the·iterator.·<a·href="../../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfold"·class="method·trait-impl"><span·class="rightside"><span·clas[·...·truncated·by·diffoscope;·len:·253,·SHA:·48421497f19ee93d3a7432833660cd659661b35b02b625c6376fc49660f200cf·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold"·class="fn">rfold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where
12 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,12 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
13 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·reduces·the·iterator’s·elements·to·a·single,13 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·reduces·the·iterator’s·elements·to·a·single,
14 final·value,·starting·from·the·back.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfind"·class="method·trait-impl"><span·class="r[·...·truncated·by·diffoscope;·len:·665,·SHA:·fde89feb7c0e70eefa34d688476ca36a70115bec8150dbf9b1a3c359f72dd28d·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where14 final·value,·starting·from·the·back.·<a·href="../../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfind"·class="method·trait-impl"><span·class="rightside"><span·class="s[·...·truncated·by·diffoscope;·len:·545,·SHA:·b420bc934fe1ddfd2fe0958678aa3aba1ce90383b1958958e47e13ae1b40fe25·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
15 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,15 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
16 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·7919,·SHA:·bfbb86f61f95f408f89cf5f4f1f86a51c875387dffefa5f3f6739570a7310dce·...·]/core/primitive.usize.html">usize</a>&gt;(16 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·7175,·SHA:·5a9b2ce2d8319de5b9c8614ffc39206f6e1c915775827d1c6b2db4e1fec710f4·...·]/core/primitive.usize.html">usize</a>&gt;(
17 ····&amp;mut·self,17 ····&amp;mut·self,
18 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·4f557a9b49151e0be8c52ffd68f1def4469c08164239dc8bef8df2040551c5ef·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where18 )·-&gt;·<a·class="enum"·href="../../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::It[·...·truncated·by·diffoscope;·len:·261,·SHA:·9b488006768a86d05b68f4e1888c750c736264a3a386f1310f1b7e8bfc7d2184·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where
19 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·962,·SHA:·116e4ec2ae3d9655c3d115eaf50f435f5323b4e48b84de734c79d2a09b3c02f2·...·]/core/primitive.usize.html">usize</a><div·class="where">where19 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_next[·...·truncated·by·diffoscope;·len:·842,·SHA:·d8f387888e3ee78f4397f4b1a12eae734e055247e3aa3251433ab8ac1019b31a·...·]/core/primitive.usize.html">usize</a><div·class="where">where
20 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·counting·the·number·of·iterations·and·returning·it.·<a·href="https://doc.[·...·truncated·by·diffoscope;·len:·3529,·SHA:·36685e4ebfba7d155142dce71eec5dabe5f32dacb8a458b62987f15496f31675·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where20 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·counting·the·number·of·iterations·and·returning·it.·<a·href="../../../core/iter/traits/iterator/t[·...·truncated·by·diffoscope;·len:·3049,·SHA:·36b73bdc1b7eb71bc2ee32534a58bc8374d5403ad0bacb5cbfb32bf6be47bb80·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where
21 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by21 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by
22 the·given·amount·at·each·iteration.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><sp[·...·truncated·by·diffoscope;·len:·842,·SHA:·945c4509a8daf2f8fbccc5c6e5089e225955911e03a3e411f047f96d52d16862·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where22 the·given·amount·at·each·iteration.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="[·...·truncated·by·diffoscope;·len:·698,·SHA:·035d2f4d2e6b01ddf0b424aa6fc3f5919c82f85f857cb9cfa0f54f8357058b90·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
23 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,23 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
24 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·3b5ce32f9d564c3aa7cf2adc7130e674758d0c0f4f1275b4c3b46a74aa802cb3·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where24 ····U:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·[·...·truncated·by·diffoscope;·len:·1137,·SHA:·7916ae3a9b5afad376aafc6d698165147d82613fe975f64423f2367a02a69f6a·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
25 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,25 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
26 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·[·...·truncated·by·diffoscope;·len:·868,·SHA:·abdbf27ccc84063c7040d8fa3da9d0bda5ee310a470ef576e15554aee4bd5d21·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where26 ····U:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·of·pairs.·<a·href="../..[·...·truncated·by·diffoscope;·len:·724,·SHA:·ba31078b5c50fbfc51e53bed6f70aaa6e7e320cfda19949035c71d9363c0d919·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where
27 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,27 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
28 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent28 ····Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent
29 items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="sr[·...·truncated·by·diffoscope;·len:·427,·SHA:·6e82ad4aad49c2165d869fe30d20a968580a973cdb3a7f4c77f49e16dd59393e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where29 items·of·the·original·iterator.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="src·rightside"·href="../..[·...·truncated·by·diffoscope;·len:·331,·SHA:·451e844c9bf5d6d78b9579516e4b9fafb3e84136eaa1c95bead4539370743d7d·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where
30 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,30 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
31 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>31 ····G:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>
32 between·adjacent·items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightsi[·...·truncated·by·diffoscope;·len:·471,·SHA:·ed10488b7b2ccc3e4cc84a9a57a9695a74c1c964962e8d753cbace12f3318a66·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where32 between·adjacent·items·of·the·original·iterator.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·[·...·truncated·by·diffoscope;·len:·375,·SHA:·7bbb71535f348e442b9de05a74f9180c9acec0636566fa2a19ab1dc83779aace·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where
33 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,33 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
34 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each34 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each
35 element.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><spa[·...·truncated·by·diffoscope;·len:·306,·SHA:·61c87c39b177830189b0e4c036d97c40d8b9649d76432c90afb88de59498e8b2·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where35 element.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="S[·...·truncated·by·diffoscope;·len:·234,·SHA:·55463e0fb539911d03265cbd8abb7248189471ea74954185ed77f245746805c2·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where
36 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,36 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
37 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·a65da32c5f5ef8335cb607d3b4ab3f8a25877bc2c2e8b44ca9d575caecd5c8a5·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where37 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·772,·SHA:·de07f629315c257cc96a89e82de6752f002f259b678391b79d5fb48e279e56d2·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where
38 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,38 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
39 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·6d69c85c69fa789be551ea42d95c33c237d12a04ef157f9ddaaead1177f7771e·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element39 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·68,·SHA:·67cf1e2a20410007c7dd6c47c91b1d386626c1bfac5c1116c374da7bbee00d51·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element
40 should·be·yielded.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·489,·SHA:·9bdc636899f4e4e5a26a3a21c9603f72b3fb972865d2f459c38b7e2ac8fed7f1·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where40 should·be·yielded.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·tit[·...·truncated·by·diffoscope;·len:·393,·SHA:·328d72714f754fb793753313f01b087a9fbb30b77a2bcd5749456e1f6fd72710·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where
41 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,41 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
42 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·46dbf841c7aecd3f06bd4c944af21650faeac98c46c515dcfe643302618b1ecd·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where42 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·884,·SHA:·e8a37e28a6bfcb2d58b9ffd389d339c3dece95c14840f28c980a7d7aedcc9a05·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where
43 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as43 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as
44 the·next·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside[·...·truncated·by·diffoscope;·len:·468,·SHA:·52f7ff7f264284c3acc4429ca34d057ded9afa2e3d9d6e07571e252db9a48977·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where44 the·next·value.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside"><span·class="since"·ti[·...·truncated·by·diffoscope;·len:·372,·SHA:·9c08a613d034f21b42b8d196073d0f4d61c81458378e40e77995533a8b460837·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where
45 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·c0180fefce4346b0b4089e5c642521d7716108241c0ce6ec3e910c7a2c7364b4·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods45 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="../../../core/iter/adapters/peekable/struct.Peekable.html#method.peek"·ti[·...·truncated·by·diffoscope;·len:·103,·SHA:·e3683d31746f50069ed604def6201840bce75bbc7c584fac6c3644292077ae8a·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods
46 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See46 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See
47 their·documentation·for·more·information.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightsid[·...·truncated·by·diffoscope;·len:·498,·SHA:·e4a68861585faec6a5032b3b69d6dfb0f2799b5f387a527d9a1365571ed02069·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where47 their·documentation·for·more·information.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightside"><span·class="since"·t[·...·truncated·by·diffoscope;·len:·402,·SHA:·bdba673560d208f968337eb74446ead60d6223b0ca9ec6fbfaeb1a995a7e8001·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where
48 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,48 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
49 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·93281c1f6402743fd61110c11cf676f0f67eddceda801b4eb35e5fe9f85870fd·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where49 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·1042,·SHA:·27d4a79658fb1c97b659bd2520bcebbf5cfcb8a42420a7ecfcbff6f3330fa5e1·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where
50 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,50 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
51 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·f1cdbb1ec64f98fabbe1d89c88b03824310926cd7eaa160953ce2452fc3abb77·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where51 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·890,·SHA:·c43533da7f54bfb6611594b3436645d4d1f8e5339d2d05bf2345e87628499759·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where
52 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,52 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
53 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·f94a0b2c1396b13b89aca7830197ebf19e2c0e5ba536a9cc25b325a481799510·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where53 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·971,·SHA:·1b31b9d1d5061d4ee982a30400139f1d7319412bdea39925e0cc1e8e7cf3d65a·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where
54 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="https://doc.rust-lang[·...·truncated·by·diffoscope;·len:·783,·SHA:·c14217b89e3292a50a09192a8857485891fc769f861e1d1fc4322d04295c86ef·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where54 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="../../../core/iter/traits/iterator/trait.Iter[·...·truncated·by·diffoscope;·len:·639,·SHA:·79c7f7eddc655d329424f08baee8551b7f59cd4dc4b0d6984c5e4f241bcb949b·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where
55 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer55 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer
56 if·the·underlying·iterator·ends·sooner.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·c[·...·truncated·by·diffoscope;·len:·488,·SHA:·76f753d5a273a09a73127631acaa0ee947326a929f33be291018188793e1af56·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where56 if·the·underlying·iterator·ends·sooner.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stab[·...·truncated·by·diffoscope;·len:·392,·SHA:·50ac976eb8bf89726a483af064d5a70c100dedd17d46dc40ac3a82aba51b2082·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where
57 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,57 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
58 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·07d303586c8ad4e0082d5b44bff8eeda03cdb8f4bdbe46489f9232bca5a43ec6·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but58 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/tra[·...·truncated·by·diffoscope;·len:·329,·SHA:·14fc5ef1359fcb2171e21ba65c5f5d8ce11053860ba1d5aa32ddce90a48c2a8c·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but
59 unlike·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·2b20882d9583cee50e0c8b3cf362b27ce0d524db387d4aa4093d622b9370dada·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where59 unlike·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.scan">Rea[·...·truncated·by·diffoscope;·len:·570,·SHA:·3cdbe78e481f63f4d21b2fa94202dad167221af9d6e6f981ccd7a6e524f6157d·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where
60 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,60 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
61 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,61 ····U:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
62 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·933,·SHA:·4af94b75ba5c1e03d2d70590d2fd0706f13b3080fbff0f5b98e7b109048c403d·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where62 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·789,·SHA:·0e36f9aa81931958e65acc9e1b5bf6ad7367dcb7163dcf0af2a043314857a909·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where
63 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,63 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
64 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.I[·...·truncated·by·diffoscope;·len:·968,·SHA:·e5572ed2f3bdf5970d038da608f2f592d945541207c483c257fe5789efba168a·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where64 ····Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::trait[·...·truncated·by·diffoscope;·len:·800,·SHA:·3ea01df21dfaf9ee656fdee6aa789a6ce5be05d17c043433c5ab28da8f6d3241·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where
65 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,65 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
66 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·3013c0e49b0dade37f8ca096eccc5ceeb03fc79b9d320a4c92486d23b88d1009·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over66 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator[·...·truncated·by·diffoscope;·len:·63,·SHA:·8395b60c01b0cde6c3340bd4e6c57cddd02465a19dcf15a8aa5498bd6c8ddc11·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over
67 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,67 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="../../../core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,
68 the·windows·during·mapping·overlap·as·well.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside">[·...·truncated·by·diffoscope;·len:·454,·SHA:·040991f3914479bcc92615de2b81df7363656323622e5aadc964e1a61917d23e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where68 the·windows·during·mapping·overlap·as·well.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside"><span·class="since"·titl[·...·truncated·by·diffoscope;·len:·358,·SHA:·21db4436f04b3d09e41f294c30cd7dea235a4beb9af727cb1f1f065008ad732e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where
69 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="https://doc.rust-lang.org/1.84.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·0e0294a45242d5ce9a3ab8f95d6d410756415291d92baa7d12283ef1b3ecc3a0·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where69 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="../../../core/option/enum.Option.html#variant.None"·title="varia[·...·truncated·by·diffoscope;·len:·697,·SHA:·55b16240a265fa2f73963114b9def4c5703a60d1c3ce047915fff28502588e5b·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where
70 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,70 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
71 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·a8b562f71802a421f4745f7d1fadf4f70d98030c829e70f27b692e7915267027·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where71 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·650,·SHA:·eb862563a2da6881a0f9a31dac8f99f2b47b2c8d3033a0e1bc9ec49ae5500941·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where
72 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="https://doc.rust-lang.org/1.84.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·b3db7d84f203bbc139b1c52912705d19c664dac762898205fce452c9dc3a5318·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where72 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.by[·...·truncated·by·diffoscope;·len:·427,·SHA:·d439202f1a598c30b789e20f3d05a82f531349aa12f3af08cc5c230996ec01a9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where
73 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,73 ····B:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
74 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·431,·SHA:·a705a23f6d810357e7dcac670743884665ffcccfb9b780d0aa03720be8ca5625·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(74 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.collect[·...·truncated·by·diffoscope;·len:·335,·SHA:·d72a986b5d306b2e1ed99e18a16e26fa1b5380448fea76ac3db703052800b629·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(
75 ····&amp;mut·self,75 ····&amp;mut·self,
76 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.h[·...·truncated·by·diffoscope;·len:·479,·SHA:·fa749442d890055f86ceb34f411c84fd7ea08302b336d786d1ca36fe5868b020·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where76 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try[·...·truncated·by·diffoscope;·len:·359,·SHA:·886ccc2fbd37f1e7df4075b80b0bebd3d1a6e997fae2114ca1818fa30fa95d5a·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
77 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,77 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
78 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>, 
79 ····&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang[·...·truncated·by·diffoscope;·len:·449,·SHA:·9ddccfb7bdd27ea692d65fa83daf56e31762d1bec3a502234174b8fa4fb33a98·...·],78 ····Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="[·...·truncated·by·diffoscope;·len:·40,·SHA:·39f6b8b47216936a6251a972a3e72c0459df25c157b8b3990eefb48397aa8303·...·],
 79 ····&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;B&gt;,
80 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/itera[·...·truncated·by·diffoscope;·len:·323,·SHA:·b5c51f161dc9d77fd81d1fd23cc71fbf42ac00f3168cf9e41ebaaa2b6eb25363·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if80 ····B:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·tit[·...·truncated·by·diffoscope;·len:·227,·SHA:·91a843f71f5d4d4bdd2a6f526e4b1ace78ad1c1c0027ff429527a1e3cc1cbb42·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if
81 a·failure·is·encountered.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·ri[·...·truncated·by·diffoscope;·len:·521,·SHA:·6a54376815dab985ec8cc35604d035e98e3003b1563c9b41e70966084505542b·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where81 a·failure·is·encountered.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../../[·...·truncated·by·diffoscope;·len:·401,·SHA:·ed1d0660f20625c1d5231d569dd3e4f1d10332250dcd1a3f5d2e886618e67f5b·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
82 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,82 ····E:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
83 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·975,·SHA:·94f7f970236ba59ba5f1415764a0e3ab2f3093c6b79e76c25c797ac24a3c4d09·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where83 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_coll[·...·truncated·by·diffoscope;·len:·855,·SHA:·7b38a8c237aadc46d5211ff8698af580678e0cbcab757a66d6416b422880dd91·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
84 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,84 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
85 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·b480ec650ba000fe7cb67df58fc0351299638ee3e8f00db18f74ca24d69f9894·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,85 ····B:·<a·class="trait"·href="../../../core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="../../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associa[·...·truncated·by·diffoscope;·len:·23,·SHA:·4417dee5d41246c4acf5419e1bdac3c7d847bd34e3e87738a08734259a3b63da·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
86 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·fdf5a1845f070855ba2cfd0c8c85460ea5cb646c4d3b42a8431bf21489c73701·...·]/core/primitive.usize.html">usize</a><div·class="where">where86 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·827,·SHA:·0237b034801a953ed40ad7c10f9a80d682bdf0a649c6fde9f53efc254cd75fc0·...·]/core/primitive.usize.html">usize</a><div·class="where">where
87 ····T:·'a,87 ····T:·'a,
88 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·1fc250e258e9e42e4fa3e22f86ecd57057e9ff23e47af1aec778076a7a891134·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,88 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="../../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEnd[·...·truncated·by·diffoscope;·len:·60,·SHA:·036db50df43442a72ce04aef94ccf2727352aad0708d71fe0e34c23613b84765·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,
89 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·5846407374f20f525a4a0663ad4488141eafe64513ef82581dc5df5c2d200745·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_partition_in_place</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62543">#62543</a>)</span></div></span><div·class='docblock'>Reorders·the·elements·of·this·iterator·<em>in-place</em>·according·to·the·given·predicate,89 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="../../../core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_partition_in_place</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62543">#62543</a>)</span></div></span><div·class='docblock'>Reorders·the·elements·of·this·iterator·<em>in-place</em>·according·to·the·given·predicate,
90 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.90 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.
91 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.partition_in_place">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_partitioned"·class="method·trait-impl"><a·clas[·...·truncated·by·diffoscope;·len:·431,·SHA:·4aa7d028146c72d45794efc19a376d4bee3b75eda61ff46d969e440b3dbfa1b0·...·]/core/primitive.bool.html">bool</a><div·class="where">where91 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.partition_in_place">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_partitioned"·class="method·trait-impl"><a·class="src·rightside"·href="[·...·truncated·by·diffoscope;·len:·335,·SHA:·252e1c16199fc3c38bc7de8cbda8c9532ab6d581d449c680cd7daf8d61a74aeb·...·]/core/primitive.bool.html">bool</a><div·class="where">where
92 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,92 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
93 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·fcd03e71f79faad6d9b9a12045d59f4dfabc78e5aefebcabc9c1a5be45e31125·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,93 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·63,·SHA:·852041c2de8156fdddf9f71111c5ddf1a6b88aabd8c082f1a254f0b21c18ffa1·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,
94 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><span·class="righ[·...·truncated·by·diffoscope;·len:·319,·SHA:·9b9df13f2f4e5b4dde3908515766e1a474fa30bcb7edc98c15665a016e677c2a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where94 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><span·class="rightside"><span·class="sinc[·...·truncated·by·diffoscope;·len:·247,·SHA:·222a0145d03094cb0b20ca156583afe97e703828a8aa77e37fb7b4661759e2c7·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where
95 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,95 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
96 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,96 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
97 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns97 ····R:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns
98 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rights[·...·truncated·by·diffoscope;·len:·321,·SHA:·619fd774190944998148325de99aaa75de66ce4b7e26579fd342c564923a5652·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where98 successfully,·producing·a·single,·final·value.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"[·...·truncated·by·diffoscope;·len:·249,·SHA:·afbe9e91614278f09851b7c5920ddaf0907a2bf4c310ec39b40084e28959cc77·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where
99 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,99 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
100 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,100 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
101 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the101 ····R:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="../../../core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the
102 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·307,·SHA:·5975144fd8566efa93ad1ccec09297e280924b7372e08681d2103702124e2c52·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where102 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><span·class="rightside"><span·class="since"·tit[·...·truncated·by·diffoscope;·len:·235,·SHA:·da9aac17d9724df2aa434c2d10e1caa010eb4fd7e574e4da4e3d5b689e970097·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where
103 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,103 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
104 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,104 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,
105 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span[·...·truncated·by·diffoscope;·len:·619,·SHA:·8813f54846438870310d5f5dfabd2335a9dbf51e9da2e4cd681bcb6077d39628·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where105 returning·the·final·result.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="St[·...·truncated·by·diffoscope;·len:·499,·SHA:·ff97be2c630acbbbb397aa79317bd89b79955e6735d9da7aea9df48659f94fce·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
106 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,106 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
107 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·084691f7fc4e7f4da7db385127d0ce8d2d52f6740757129a65910c4db0dc180d·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing107 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·256,·SHA:·2fe8ae39f77649fea294c45979f427748b2a9938dfa70e4595ac661d972125b1·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing
108 operation.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·217,·SHA:·447ae00256be3de069c602a6c04889808c883eae6fa349d023f53bdd5570ecae·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(108 operation.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside"·href="../../../src/cor[·...·truncated·by·diffoscope;·len:·145,·SHA:·be4dc63adf8a4e832fd3dbaaabbf45f287388ea2bb17088d40589203a2ec6dfb·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(
109 ····&amp;mut·self,109 ····&amp;mut·self,
110 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·70b2b85cad045ac7addf647e0bd3cd5b2c9ebca5986613ad2b6a9c00e3a1132f·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,110 ····f:·impl·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·68,·SHA:·e7e11f257edcac749a5883ad9a3aa42e6e965be419f967b36caa7afd3b36d7c9·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
111 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·1823533b932e38e3200465d101f10a34421c005018974296350162e4049615ea·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where111 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</[·...·truncated·by·diffoscope;·len:·586,·SHA:·596f94ec7a4c06359aee56ccb8a7138a1ddb94415fafcecac1fc87434b1329a3·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
112 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,112 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
113 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,113 ····R:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
114 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·764ea8f08626b05426a76738d54ebb2d640042494d76cba8c20d868bfdc07a73·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the114 ····&lt;R·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</[·...·truncated·by·diffoscope;·len:·292,·SHA:·2ae73aa9b78f13099a8016e28a473713dcc755cf00fed8895c0c1b027bbcea01·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the
115 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><span·class="rightside"><s[·...·truncated·by·diffoscope;·len:·476,·SHA:·aef721c14147dea2fbec70dcfa76916b3f1273bed8304f4c9db310ca23d1e4b1·...·]/core/primitive.bool.html">bool</a><div·class="where">where115 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title=[·...·truncated·by·diffoscope;·len:·380,·SHA:·1042cdc03eabce3d330853b659f28b8566dd5841790f7f1303f3e326f05efab6·...·]/core/primitive.bool.html">bool</a><div·class="where">where
116 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,116 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
117 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·7c48e62c73a40a5cb5ebbf4a22cd789b342a88ad3d855022191f2bae33c736c6·...·]/core/primitive.bool.html">bool</a><div·class="where">where117 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·850,·SHA:·1b28d9cdfe3ba8dc7eac8cef1bb6549e78768b440ea492c70d80c8c07eae61cb·...·]/core/primitive.bool.html">bool</a><div·class="where">where
118 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,118 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
119 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·673d69ce0c23e24b2546127c463e67cd2a4c0f7be792712e2b42e75427161b75·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where119 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·980,·SHA:·a560c9e639c326a34f124b36f977291532e03ffae190e973674fee7e13b4c842·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
120 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,120 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
121 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·aa5078ff77f5638746395497f8ce92c1b684d342dea851990104d5e9981ab6b0·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where121 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·883,·SHA:·47fb849c20ee0cb36696a24bd285768bd0973774403ae956d2a517cd216452b1·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where
122 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,122 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
123 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·1bd732dff19021a1586bb486282683f5c1bc65d5d514f9e13cc9232b4e94955b·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;,</div></h4></section></summary><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns123 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·58,·SHA:·f6e1e279f463d2adecc4a9316aeab7af85329a84398e722f43ac130647fe78cf·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;,</div></h4></section></summary><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns
124 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.find_map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_find"·class="method·trait-impl"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·215,·SHA:·4d59a011c8881794ce6367c1e816f11a813db02e37c71800ed6d47056f157573·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(124 the·first·non-none·result.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.find_map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_find"·class="method·trait-impl"><a·class="src·rightside"·href="../../../src/cor[·...·truncated·by·diffoscope;·len:·143,·SHA:·00906f8dc0620ba030a634eba59c098f3aff639a062bf6231dfc4feb7727cc72·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(
125 ····&amp;mut·self,125 ····&amp;mut·self,
Max diff block lines reached; 89533/346556 bytes (25.84%) of diff not shown.
62.2 KB
./usr/share/doc/rust-doc/html/alloc/collections/binary_heap/struct.PeekMut.html
    
Offset 1, 24 lines modifiedOffset 1, 24 lines modified
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="Structure·wrapping·a·mutable·reference·to·the·greatest·item·on·a·`BinaryHeap`."><title>PeekMut·in·alloc::collections::binary_heap·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»     2025-01-07)»  (built»    from»a»       source» tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">PeekMut</a></h2><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.pop"·title="pop">pop</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Debug-for-PeekMut%3C'_,+T,+A%3E"·title="Debug">Debug</a></li><li><a·href="#impl-Deref-for-PeekMut%3C'_,+T,+A%3E"·title="Deref">Deref</a></li><li><a·href="#impl-DerefMut-for-PeekMut%3C'_,+T,+A%3E"·title="DerefMut">DerefMut</a></li><li><a·href="#impl-Drop-for-PeekMut%3C'_,+T,+A%3E"·title="Drop">Drop</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-UnwindSafe-for-PeekMut%3C'a,+T,+A%3E"·title="!UnwindSafe">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-PeekMut%3C'a,+T,+A%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-PeekMut%3C'a,+T,+A%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-PeekMut%3C'a,+T,+A%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-PeekMut%3C'a,+T,+A%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-PeekMut%3C'a,+T,+A%3E"·title="Unpin">Unpin</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-Receiver-for-P"·title="Receiver">Receiver</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>collections::<wbr>binary_<wbr>heap</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">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">binary_heap</a></span><h1>Struct·<span·class="struct">PeekMut</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../../src/alloc/collections/binary_heap/mod.rs.html#290-299">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·PeekMut&lt;'a,·T:·'a·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·=·<a·class="struct"·href="../../alloc/struct.Global.html"·title="struct·alloc::alloc::Global">Global</a>&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Structure·wrapping·a·mutable·reference·to·the·greatest·item·on·a1 <!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="Structure·wrapping·a·mutable·reference·to·the·greatest·item·on·a·`BinaryHeap`."><title>PeekMut·in·alloc::collections::binary_heap·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»     2025-01-07)»  (built»    from»a»       source» tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">PeekMut</a></h2><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.pop"·title="pop">pop</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Debug-for-PeekMut%3C'_,+T,+A%3E"·title="Debug">Debug</a></li><li><a·href="#impl-Deref-for-PeekMut%3C'_,+T,+A%3E"·title="Deref">Deref</a></li><li><a·href="#impl-DerefMut-for-PeekMut%3C'_,+T,+A%3E"·title="DerefMut">DerefMut</a></li><li><a·href="#impl-Drop-for-PeekMut%3C'_,+T,+A%3E"·title="Drop">Drop</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-UnwindSafe-for-PeekMut%3C'a,+T,+A%3E"·title="!UnwindSafe">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-PeekMut%3C'a,+T,+A%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-PeekMut%3C'a,+T,+A%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-PeekMut%3C'a,+T,+A%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-PeekMut%3C'a,+T,+A%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-PeekMut%3C'a,+T,+A%3E"·title="Unpin">Unpin</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-Receiver-for-P"·title="Receiver">Receiver</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>collections::<wbr>binary_<wbr>heap</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">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">binary_heap</a></span><h1>Struct·<span·class="struct">PeekMut</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../../src/alloc/collections/binary_heap/mod.rs.html#290-299">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·PeekMut&lt;'a,·T:·'a·+·<a·class="trait"·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·=·<a·class="struct"·href="../../alloc/struct.Global.html"·title="struct·alloc::alloc::Global">Global</a>&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Structure·wrapping·a·mutable·reference·to·the·greatest·item·on·a
2 <code>BinaryHeap</code>.</p>2 <code>BinaryHeap</code>.</p>
3 <p>This·<code>struct</code>·is·created·by·the·<a·href="struct.BinaryHeap.html#method.peek_mut"·title="method·alloc::collections::binary_heap::BinaryHeap::peek_mut"><code>peek_mut</code></a>·method·on·<a·href="struct.BinaryHeap.html"·title="struct·alloc::collections::binary_heap::BinaryHeap"><code>BinaryHeap</code></a>.·See3 <p>This·<code>struct</code>·is·created·by·the·<a·href="struct.BinaryHeap.html#method.peek_mut"·title="method·alloc::collections::binary_heap::BinaryHeap::peek_mut"><code>peek_mut</code></a>·method·on·<a·href="struct.BinaryHeap.html"·title="struct·alloc::collections::binary_heap::BinaryHeap"><code>BinaryHeap</code></a>.·See
4 its·documentation·for·more.</p>4 its·documentation·for·more.</p>
5 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-PeekMut%3C'a,+T,+A%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/binary_heap/mod.rs.html#364-382">Source</a><a·href="#impl-PeekMut%3C'a,+T,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·T:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>&gt;·<a·class="struct"·href="struct.PeekMut.html"·title="struct·alloc::collections::binary_heap::PeekMut">PeekMut</a>&lt;'a,·T,·A&gt;</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.pop"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.18.0">1.18.0</span>···<a·class="src"·href="../../../src/alloc/collections/binary_heap/mod.rs.html#367-381">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.pop"·class="fn">pop</a>(this:·<a·class="struct"·href="struct.PeekMut.html"·title="struct·alloc::collections::binary_heap::PeekMut">PeekMut</a>&lt;'a,·T,·A&gt;)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Removes·the·peeked·value·from·the·heap·and·returns·it.</p>5 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-PeekMut%3C'a,+T,+A%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/binary_heap/mod.rs.html#364-382">Source</a><a·href="#impl-PeekMut%3C'a,+T,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·T:·<a·class="trait"·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>&gt;·<a·class="struct"·href="struct.PeekMut.html"·title="struct·alloc::collections::binary_heap::PeekMut">PeekMut</a>&lt;'a,·T,·A&gt;</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.pop"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.18.0">1.18.0</span>···<a·class="src"·href="../../../src/alloc/collections/binary_heap/mod.rs.html#367-381">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.pop"·class="fn">pop</a>(this:·<a·class="struct"·href="struct.PeekMut.html"·title="struct·alloc::collections::binary_heap::PeekMut">PeekMut</a>&lt;'a,·T,·A&gt;)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Removes·the·peeked·value·from·the·heap·and·returns·it.</p>
6 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-PeekMut%3C'_,+T,+A%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.17.0">1.17.0</span>···<a·class="src"·href="../../../src/alloc/collections/binary_heap/mod.rs.html#302-306">Source</a></span><a·href="#impl-Debug-for-PeekMut%3C'_,+T,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>·+·<a·class="trait"·href="../../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title[·...·truncated·by·diffoscope;·len:·7353,·SHA:·12ee2b511cc165dc38c6c69114b1a93666345433b6463870c3238bc74b79e25d·...·]/core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="struct"·href="struct.PeekMut.html"·title="struct·alloc::collections::binary_heap::PeekMut">PeekMut</a>&lt;'a,·T,·A&gt;<div·class="where">where6 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-PeekMut%3C'_,+T,+A%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.17.0">1.17.0</span>···<a·class="src"·href="../../../src/alloc/collections/binary_heap/mod.rs.html#302-306">Source</a></span><a·href="#impl-Debug-for-PeekMut%3C'_,+T,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T:·<a·class="trait"·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>·+·<a·class="trait"·href="../../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Al[·...·truncated·by·diffoscope;·len:·6969,·SHA:·a7e5931e58dd2113ebb70fd07a80e6a89523ae93900fb5a216bc04ce7653dcce·...·]/core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="struct"·href="struct.PeekMut.html"·title="struct·alloc::collections::binary_heap::PeekMut">PeekMut</a>&lt;'a,·T,·A&gt;<div·class="where">where
7 ····A:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,7 ····A:·<a·class="trait"·href="../../../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,
8 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,</div></h3></section><section·id="impl-Send-for-PeekMut%3C'a,+T,+A%3E"·class="impl"><a·href="#impl-Sen[·...·truncated·by·diffoscope;·len:·149,·SHA:·b802912c02c050f0dfed100b2897f0f5a6119d8940104ec6c0bcfebda6d91f3f·...·]/core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="struct"·href="struct.PeekMut.html"·title="struct·alloc::collections::binary_heap::PeekMut">PeekMut</a>&lt;'a,·T,·A&gt;<div·class="where">where8 ····T:·<a·class="trait"·href="../../../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,</div></h3></section><section·id="impl-Send-for-PeekMut%3C'a,+T,+A%3E"·class="impl"><a·href="#impl-Send-for-PeekMut%3C'a,+T,+A[·...·truncated·by·diffoscope;·len:·101,·SHA:·f2a27874213eb77ace1dbcb2da242adaa33de4cb9c6c2239fcec5f20ebe56bd8·...·]/core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="struct"·href="struct.PeekMut.html"·title="struct·alloc::collections::binary_heap::PeekMut">PeekMut</a>&lt;'a,·T,·A&gt;<div·class="where">where
9 ····A:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>,9 ····A:·<a·class="trait"·href="../../../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>,
10 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>,</div></h3></section><section·id="impl-Sync-for-PeekMut%3C'a,+T,+A%3E"·class="impl"><a·href="#impl-Sync-for-PeekMut%3C'a,+T,+A%3E"·class="anchor">§</a><[·...·truncated·by·diffoscope;·len:·99,·SHA:·401f4d4a893733dc87704521a6d5e1c13782497a81f357407c528d61842c3a37·...·]/core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="struct"·href="struct.PeekMut.html"·title="struct·alloc::collections::binary_heap::PeekMut">PeekMut</a>&lt;'a,·T,·A&gt;<div·class="where">where10 ····T:·<a·class="trait"·href="../../../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>,</div></h3></section><section·id="impl-Sync-for-PeekMut%3C'a,+T,+A%3E"·class="impl"><a·href="#impl-Sync-for-PeekMut%3C'a,+T,+A%3E"·class="anchor">§</a><h3·class="code-header">i[·...·truncated·by·diffoscope;·len:·51,·SHA:·2fdbacc4f33562a030c7651612187cc05d348473e867f0ac743cf71a0efbb8dd·...·]/core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="struct"·href="struct.PeekMut.html"·title="struct·alloc::collections::binary_heap::PeekMut">PeekMut</a>&lt;'a,·T,·A&gt;<div·class="where">where
11 ····A:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>,11 ····A:·<a·class="trait"·href="../../../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>,
12 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>,</div></h3></section><section·id="impl-Unpin-for-PeekMut%3C'a,+T,+A%3E"·class="impl"><a·href="#impl-Unpin-for-PeekMut%3C'a,+T,+A%3E"·class="anchor">§</a[·...·truncated·by·diffoscope;·len:·1449,·SHA:·8cc23d9a173ec7ba6ffe87d8a7724baaed1884ca59dfb2aa8cc9a6d697d22f92·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where12 ····T:·<a·class="trait"·href="../../../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>,</div></h3></section><section·id="impl-Unpin-for-PeekMut%3C'a,+T,+A%3E"·class="impl"><a·href="#impl-Unpin-for-PeekMut%3C'a,+T,+A%3E"·class="anchor">§</a><h3·class="code-header"[·...·truncated·by·diffoscope;·len:·1329,·SHA:·5012853392db969ce7e44dff3049cb455d60faae01bb7e910f1f13197c20dfd2·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where
13 ····T:·'static·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method[·...·truncated·by·diffoscope;·len:·834,·SHA:·47dfc2aa0101a4103e2a94c1f971c559790d87a62d58631fd2bfed98e6616a34·...·]/src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where13 ····T:·'static·+·?<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="s[·...·truncated·by·diffoscope;·len:·690,·SHA:·5140301cd9ff79a41eb9c4e21645354b7b39f4611f9b3646b7c859a62ac61067·...·]/src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where
14 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·[·...·truncated·by·diffoscope;·len:·743,·SHA:·b1db3ba49d399b0b1340fa997418ee1ae0ece93cc3579963c53bf7040ec0ded6·...·]/src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.BorrowMut.html"·title="trait·alloc::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where14 ····T:·?<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="sr[·...·truncated·by·diffoscope;·len:·647,·SHA:·eced384f314b303c18919389c5abe4a96aec1091fccffab1a095e21ec4389338·...·]/src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.BorrowMut.html"·title="trait·alloc::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where
15 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="met[·...·truncated·by·diffoscope;·len:·1422,·SHA:·3b5041f32ed902526095ebde8745452b32cbfac2cd9503735eec716deff7280f·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>15 ····T:·?<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class[·...·truncated·by·diffoscope;·len:·1254,·SHA:·7fcbbe8bd9862b59809c60d05e5f59904ccadf8a3a9f11da30f9fcc6b839c5b3·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>
16 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where16 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where
17 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="m[·...·truncated·by·diffoscope;·len:·237,·SHA:·98603c35860102b3af9b5cf27aeabf39e3c03236551986a6ec030817f108d919·...·]/core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>17 ····U:·<a·class="trait"·href="../../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·cla[·...·truncated·by·diffoscope;·len:·165,·SHA:·423a04a226f49c7f9a948f8c413dc8519f4a9a96a55914b6e6a694710d81c0f7·...·]/core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>
18 <p>That·is,·this·conversion·is·whatever·the·implementation·of18 <p>That·is,·this·conversion·is·whatever·the·implementation·of
19 <code><a·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>19 <code><a·href="../../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>
20 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Receiver-for-P"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/ops/deref.rs.html#374-376">Source</a><a·href="#impl-Receiver-for-P"·class="anchor">§</a><h3·class="code-header">impl&lt;P,·T&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/deref/trait.Receiver.html"·title="trait·core::ops::deref::Receiver">Receiver</a>·for·P<div·class="where">where20 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Receiver-for-P"·class="impl"><a·class="src·rightside"·href="../../../src/core/ops/deref.rs.html#374-376">Source</a><a·href="#impl-Receiver-for-P"·class="anchor">§</a><h3·class="code-header">impl&lt;P,·T&gt;·<a·class="trait"·href="../../../core/ops/deref/trait.Receiver.html"·title="trait·core::ops::deref::Receiver">Receiver</a>·for·P<div·class="where">where
21 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/deref/trait.Deref.html"·title="trait·core::ops::deref::Deref">Deref</a>&lt;Target·=·T&gt;·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,21 ····P:·<a·class="trait"·href="../../../core/ops/deref/trait.Deref.html"·title="trait·core::ops::deref::Deref">Deref</a>&lt;Target·=·T&gt;·+·?<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
22 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Target-1"·class="associatedt[·...·truncated·by·diffoscope;·len:·1097,·SHA:·7113bbe0f4d1fade01a8492467919bbae5790755055ca923079bde04717934b1·...·]/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where22 ····T:·?<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Target-1"·class="associatedtype·trait-impl"><a·class[·...·truncated·by·diffoscope;·len:·977,·SHA:·194b827e211352dfae4c49158492b73b46397e38b4a92372c98f13349b74ed32·...·]/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where
23 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="asso[·...·truncated·by·diffoscope;·len:·1973,·SHA:·db4b8407e8e20581ad139aef25a6221a11da0f5f18d6aa35aa33eb843f4e1b9f·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where23 ····U:·<a·class="trait"·href="../../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><[·...·truncated·by·diffoscope;·len:·1709,·SHA:·e896b9bb1c9fd7d11ed5b2485b9a6fcb8a8eedc15783c2750df398ecae6b320e·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where
24 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·clas[·...·truncated·by·diffoscope;·len:·1578,·SHA:·998d5af10fd889567cd999d1306bfd16c91134d2238a3c172f1e7fa8ed138c18·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>24 ····U:·<a·class="trait"·href="../../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-[·...·truncated·by·diffoscope;·len:·1338,·SHA:·bf7fc0d673df53e1a193a897ac1592a2d85070ae590f9624c2e5404df56f3bb0·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>
68.4 KB
./usr/share/doc/rust-doc/html/alloc/collections/btree_map/enum.Entry.html
    
Offset 1, 55 lines modifiedOffset 1, 55 lines modified
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="A·view·into·a·single·entry·in·a·map,·which·may·either·be·vacant·or·occupied."><title>Entry·in·alloc::collections::btree_map·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·enum"><!--[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><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312» 2025-01-07)»      (built»from»    a»   source»     tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Entry</a></h2><h3><a·href="#variants">Variants</a></h3><ul·class="block·variant"><li><a·href="#variant.Occupied"·title="Occupied">Occupied</a></li><li><a·href="#variant.Vacant"·title="Vacant">Vacant</a></li></ul><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.and_modify"·title="and_modify">and_modify</a></li><li><a·href="#method.key"·title="key">key</a></li><li><a·href="#method.or_default"·title="or_default">or_default</a></li><li><a·href="#method.or_insert"·title="or_insert">or_insert</a></li><li><a·href="#method.or_insert_with"·title="or_insert_with">or_insert_with</a></li><li><a·href="#method.or_insert_with_key"·title="or_insert_with_key">or_insert_with_key</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Debug-for-Entry%3C'_,+K,+V,+A%3E"·title="Debug">Debug</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-UnwindSafe-for-Entry%3C'a,+K,+V,+A%3E"·title="!UnwindSafe">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-Entry%3C'a,+K,+V,+A%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Entry%3C'a,+K,+V,+A%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Entry%3C'a,+K,+V,+A%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-Entry%3C'a,+K,+V,+A%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-Entry%3C'a,+K,+V,+A%3E"·title="Unpin">Unpin</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>collections::<wbr>btree_<wbr>map</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">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">btree_map</a></span><h1>Enum·<span·class="enum">Entry</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map/entry.rs.html#19-32">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·enum·Entry&lt;'a,·K:·'a,·V:·'a,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·=·<a·class="struct"·href="../../alloc/struct.Global.html"·title="struct·alloc::alloc::Global">Global</a>&gt;·{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="A·view·into·a·single·entry·in·a·map,·which·may·either·be·vacant·or·occupied."><title>Entry·in·alloc::collections::btree_map·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·enum"><!--[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><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312» 2025-01-07)»      (built»from»    a»   source»     tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Entry</a></h2><h3><a·href="#variants">Variants</a></h3><ul·class="block·variant"><li><a·href="#variant.Occupied"·title="Occupied">Occupied</a></li><li><a·href="#variant.Vacant"·title="Vacant">Vacant</a></li></ul><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.and_modify"·title="and_modify">and_modify</a></li><li><a·href="#method.key"·title="key">key</a></li><li><a·href="#method.or_default"·title="or_default">or_default</a></li><li><a·href="#method.or_insert"·title="or_insert">or_insert</a></li><li><a·href="#method.or_insert_with"·title="or_insert_with">or_insert_with</a></li><li><a·href="#method.or_insert_with_key"·title="or_insert_with_key">or_insert_with_key</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Debug-for-Entry%3C'_,+K,+V,+A%3E"·title="Debug">Debug</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-UnwindSafe-for-Entry%3C'a,+K,+V,+A%3E"·title="!UnwindSafe">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-Entry%3C'a,+K,+V,+A%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Entry%3C'a,+K,+V,+A%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Entry%3C'a,+K,+V,+A%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-Entry%3C'a,+K,+V,+A%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-Entry%3C'a,+K,+V,+A%3E"·title="Unpin">Unpin</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>collections::<wbr>btree_<wbr>map</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">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">btree_map</a></span><h1>Enum·<span·class="enum">Entry</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map/entry.rs.html#19-32">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·enum·Entry&lt;'a,·K:·'a,·V:·'a,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·+·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·=·<a·class="struct"·href="../../alloc/struct.Global.html"·title="struct·alloc::alloc::Global">Global</a>&gt;·{
2 ····Vacant(<a·class="struct"·href="struct.VacantEntry.html"·title="struct·alloc::collections::btree_map::VacantEntry">VacantEntry</a>&lt;'a,·K,·V,·A&gt;),2 ····Vacant(<a·class="struct"·href="struct.VacantEntry.html"·title="struct·alloc::collections::btree_map::VacantEntry">VacantEntry</a>&lt;'a,·K,·V,·A&gt;),
3 ····Occupied(<a·class="struct"·href="struct.OccupiedEntry.html"·title="struct·alloc::collections::btree_map::OccupiedEntry">OccupiedEntry</a>&lt;'a,·K,·V,·A&gt;),3 ····Occupied(<a·class="struct"·href="struct.OccupiedEntry.html"·title="struct·alloc::collections::btree_map::OccupiedEntry">OccupiedEntry</a>&lt;'a,·K,·V,·A&gt;),
4 }</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>A·view·into·a·single·entry·in·a·map,·which·may·either·be·vacant·or·occupied.</p>4 }</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>A·view·into·a·single·entry·in·a·map,·which·may·either·be·vacant·or·occupied.</p>
5 <p>This·<code>enum</code>·is·constructed·from·the·<a·href="struct.BTreeMap.html#method.entry"·title="method·alloc::collections::btree_map::BTreeMap::entry"><code>entry</code></a>·method·on·<a·href="struct.BTreeMap.html"·title="struct·alloc::collections::btree_map::BTreeMap"><code>BTreeMap</code></a>.</p>5 <p>This·<code>enum</code>·is·constructed·from·the·<a·href="struct.BTreeMap.html#method.entry"·title="method·alloc::collections::btree_map::BTreeMap::entry"><code>entry</code></a>·method·on·<a·href="struct.BTreeMap.html"·title="struct·alloc::collections::btree_map::BTreeMap"><code>BTreeMap</code></a>.</p>
6 </div></details><h2·id="variants"·class="variants·section-header">Variants<a·href="#variants"·class="anchor">§</a></h2><div·class="variants"><section·id="variant.Vacant"·class="variant"><a·href="#variant.Vacant"·class="anchor">§</a><span·class="since·rightside"·title="Stable·since·Rust·version·1.36.0">1.36.0</span><h3·class="code-header">Vacant(<a·class="struct"·href="struct.VacantEntry.html"·title="struct·alloc::collections::btree_map::VacantEntry">VacantEntry</a>&lt;'a,·K,·V,·A&gt;)</h3></section><div·class="docblock"><p>A·vacant·entry.</p>6 </div></details><h2·id="variants"·class="variants·section-header">Variants<a·href="#variants"·class="anchor">§</a></h2><div·class="variants"><section·id="variant.Vacant"·class="variant"><a·href="#variant.Vacant"·class="anchor">§</a><span·class="since·rightside"·title="Stable·since·Rust·version·1.36.0">1.36.0</span><h3·class="code-header">Vacant(<a·class="struct"·href="struct.VacantEntry.html"·title="struct·alloc::collections::btree_map::VacantEntry">VacantEntry</a>&lt;'a,·K,·V,·A&gt;)</h3></section><div·class="docblock"><p>A·vacant·entry.</p>
7 </div><section·id="variant.Occupied"·class="variant"><a·href="#variant.Occupied"·class="anchor">§</a><span·class="since·rightside"·title="Stable·since·Rust·version·1.36.0">1.36.0</span><h3·class="code-header">Occupied(<a·class="struct"·href="struct.OccupiedEntry.html"·title="struct·alloc::collections::btree_map::OccupiedEntry">OccupiedEntry</a>&lt;'a,·K,·V,·A&gt;)</h3></section><div·class="docblock"><p>An·occupied·entry.</p>7 </div><section·id="variant.Occupied"·class="variant"><a·href="#variant.Occupied"·class="anchor">§</a><span·class="since·rightside"·title="Stable·since·Rust·version·1.36.0">1.36.0</span><h3·class="code-header">Occupied(<a·class="struct"·href="struct.OccupiedEntry.html"·title="struct·alloc::collections::btree_map::OccupiedEntry">OccupiedEntry</a>&lt;'a,·K,·V,·A&gt;)</h3></section><div·class="docblock"><p>An·occupied·entry.</p>
8 </div></div><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Entry%3C'a,+K,+V,+A%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map/entry.rs.html#145-272">Source</a><a·href="#impl-Entry%3C'a,+K,+V,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·K:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,·V,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·+·<a·class="trait"·href="https://doc.rust-lan[·...·truncated·by·diffoscope;·len:·721,·SHA:·d2661de8d2f16739ea2938645d7ec0e24abb123d10f7f373dd3f92c3c8d34abc·...·]/core/primitive.reference.html">&amp;'a·mut·V</a></h4></section></summary><div·class="docblock"><p>Ensures·a·value·is·in·the·entry·by·inserting·the·default·if·empty,·and·returns8 </div></div><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Entry%3C'a,+K,+V,+A%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map/entry.rs.html#145-272">Source</a><a·href="#impl-Entry%3C'a,+K,+V,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·K:·<a·class="trait"·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,·V,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·+·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title=[·...·truncated·by·diffoscope;·len:·649,·SHA:·12788f48ae6b715da69a2e5bf5ae3d3785b3c698574b811d23ef7792e6496c95·...·]/core/primitive.reference.html">&amp;'a·mut·V</a></h4></section></summary><div·class="docblock"><p>Ensures·a·value·is·in·the·entry·by·inserting·the·default·if·empty,·and·returns
9 a·mutable·reference·to·the·value·in·the·entry.</p>9 a·mutable·reference·to·the·value·in·the·entry.</p>
10 <h5·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h5>10 <h5·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h5>
11 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BTreeMap;11 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BTreeMap;
  
12 <span·class="kw">let·</span><span·class="kw-2">mut·</span>map:·BTreeMap&lt;<span·class="kw-2">&amp;</span>str,·usize&gt;·=·BTreeMap::new();12 <span·class="kw">let·</span><span·class="kw-2">mut·</span>map:·BTreeMap&lt;<span·class="kw-2">&amp;</span>str,·usize&gt;·=·BTreeMap::new();
13 map.entry(<span·class="string">"poneyland"</span>).or_insert(<span·class="number">12</span>);13 map.entry(<span·class="string">"poneyland"</span>).or_insert(<span·class="number">12</span>);
  
14 <span·class="macro">assert_eq!</span>(map[<span·class="string">"poneyland"</span>],·<span·class="number">12</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::BTreeMap;%0A++++%0A++++let+mut+map:+BTreeMap%3C%26str,+usize%3E+=+BTreeMap::new();%0A++++map.entry(%22poneyland%22).or_insert(12);%0A++++%0A++++assert_eq!(map%5B%22poneyland%22%5D,+12);%0A%7D&amp;edition=2021"></a></div>14 <span·class="macro">assert_eq!</span>(map[<span·class="string">"poneyland"</span>],·<span·class="number">12</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::BTreeMap;%0A++++%0A++++let+mut+map:+BTreeMap%3C%26str,+usize%3E+=+BTreeMap::new();%0A++++map.entry(%22poneyland%22).or_insert(12);%0A++++%0A++++assert_eq!(map%5B%22poneyland%22%5D,+12);%0A%7D&amp;edition=2021"></a></div>
15 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.or_insert_with"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map/entry.rs.html#183-188">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.or_insert_with"·class="fn">or_insert_with</a>&lt;F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnOnce.html"·title="trait·core::ops::function::FnOnce">FnOnce</a>()·-&gt;·V&gt;(self,·default:·F)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;'a·mut·V</a></h4></section></summary><div·class="docblock"><p>Ensures·a·value·is·in·the·entry·by·inserting·the·result·of·the·default·function·if·empty,15 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.or_insert_with"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map/entry.rs.html#183-188">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.or_insert_with"·class="fn">or_insert_with</a>&lt;F:·<a·class="trait"·href="../../../core/ops/function/trait.FnOnce.html"·title="trait·core::ops::function::FnOnce">FnOnce</a>()·-&gt;·V&gt;(self,·default:·F)·-&gt;·<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;'a·mut·V</a></h4></section></summary><div·class="docblock"><p>Ensures·a·value·is·in·the·entry·by·inserting·the·result·of·the·default·function·if·empty,
16 and·returns·a·mutable·reference·to·the·value·in·the·entry.</p>16 and·returns·a·mutable·reference·to·the·value·in·the·entry.</p>
17 <h5·id="examples-1"><a·class="doc-anchor"·href="#examples-1">§</a>Examples</h5>17 <h5·id="examples-1"><a·class="doc-anchor"·href="#examples-1">§</a>Examples</h5>
18 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BTreeMap;18 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BTreeMap;
  
19 <span·class="kw">let·</span><span·class="kw-2">mut·</span>map:·BTreeMap&lt;<span·class="kw-2">&amp;</span>str,·String&gt;·=·BTreeMap::new();19 <span·class="kw">let·</span><span·class="kw-2">mut·</span>map:·BTreeMap&lt;<span·class="kw-2">&amp;</span>str,·String&gt;·=·BTreeMap::new();
20 <span·class="kw">let·</span>s·=·<span·class="string">"hoho"</span>.to_string();20 <span·class="kw">let·</span>s·=·<span·class="string">"hoho"</span>.to_string();
  
21 map.entry(<span·class="string">"poneyland"</span>).or_insert_with(||·s);21 map.entry(<span·class="string">"poneyland"</span>).or_insert_with(||·s);
  
22 <span·class="macro">assert_eq!</span>(map[<span·class="string">"poneyland"</span>],·<span·class="string">"hoho"</span>.to_string());</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::BTreeMap;%0A++++%0A++++let+mut+map:+BTreeMap%3C%26str,+String%3E+=+BTreeMap::new();%0A++++let+s+=+%22hoho%22.to_string();%0A++++%0A++++map.entry(%22poneyland%22).or_insert_with(%7C%7C+s);%0A++++%0A++++assert_eq!(map%5B%22poneyland%22%5D,+%22hoho%22.to_string());%0A%7D&amp;edition=2021"></a></div>22 <span·class="macro">assert_eq!</span>(map[<span·class="string">"poneyland"</span>],·<span·class="string">"hoho"</span>.to_string());</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::BTreeMap;%0A++++%0A++++let+mut+map:+BTreeMap%3C%26str,+String%3E+=+BTreeMap::new();%0A++++let+s+=+%22hoho%22.to_string();%0A++++%0A++++map.entry(%22poneyland%22).or_insert_with(%7C%7C+s);%0A++++%0A++++assert_eq!(map%5B%22poneyland%22%5D,+%22hoho%22.to_string());%0A%7D&amp;edition=2021"></a></div>
23 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.or_insert_with_key"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.50.0">1.50.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map/entry.rs.html#211-219">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.or_insert_with_key"·class="fn">or_insert_with_key</a>&lt;F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnOnce.html"·title="trait·core::ops::function::FnOnce">FnOnce</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;K</a>)·-&gt;·V&gt;(self,·default:·F)·[·...·truncated·by·diffoscope;·len:·65,·SHA:·aee47d363f734ba33c549327fc80c71873a3f5431fea0a545960a01b68887d29·...·]/core/primitive.reference.html">&amp;'a·mut·V</a></h4></section></summary><div·class="docblock"><p>Ensures·a·value·is·in·the·entry·by·inserting,·if·empty,·the·result·of·the·default·function.</p>23 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.or_insert_with_key"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.50.0">1.50.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map/entry.rs.html#211-219">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.or_insert_with_key"·class="fn">or_insert_with_key</a>&lt;F:·<a·class="trait"·href="../../../core/ops/function/trait.FnOnce.html"·title="trait·core::ops::function::FnOnce">FnOnce</a>(<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;K</a>)·-&gt;·V&gt;(self,·default:·F)·-&gt;·<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;'a·mut·V</a></h4></section></summary><div·class="docblock"><p>Ensures·a·value·is·in·the·entry·by·inserting,·if·empty,·the·result·of·the·default·function.</p>
24 <p>This·method·allows·for·generating·key-derived·values·for·insertion·by·providing·the·default24 <p>This·method·allows·for·generating·key-derived·values·for·insertion·by·providing·the·default
25 function·a·reference·to·the·key·that·was·moved·during·the·<code>.entry(key)</code>·method·call.</p>25 function·a·reference·to·the·key·that·was·moved·during·the·<code>.entry(key)</code>·method·call.</p>
26 <p>The·reference·to·the·moved·key·is·provided·so·that·cloning·or·copying·the·key·is26 <p>The·reference·to·the·moved·key·is·provided·so·that·cloning·or·copying·the·key·is
27 unnecessary,·unlike·with·<code>.or_insert_with(||·...·)</code>.</p>27 unnecessary,·unlike·with·<code>.or_insert_with(||·...·)</code>.</p>
28 <h5·id="examples-2"><a·class="doc-anchor"·href="#examples-2">§</a>Examples</h5>28 <h5·id="examples-2"><a·class="doc-anchor"·href="#examples-2">§</a>Examples</h5>
29 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BTreeMap;29 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BTreeMap;
  
30 <span·class="kw">let·</span><span·class="kw-2">mut·</span>map:·BTreeMap&lt;<span·class="kw-2">&amp;</span>str,·usize&gt;·=·BTreeMap::new();30 <span·class="kw">let·</span><span·class="kw-2">mut·</span>map:·BTreeMap&lt;<span·class="kw-2">&amp;</span>str,·usize&gt;·=·BTreeMap::new();
  
31 map.entry(<span·class="string">"poneyland"</span>).or_insert_with_key(|key|·key.chars().count());31 map.entry(<span·class="string">"poneyland"</span>).or_insert_with_key(|key|·key.chars().count());
  
32 <span·class="macro">assert_eq!</span>(map[<span·class="string">"poneyland"</span>],·<span·class="number">9</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::BTreeMap;%0A++++%0A++++let+mut+map:+BTreeMap%3C%26str,+usize%3E+=+BTreeMap::new();%0A++++%0A++++map.entry(%22poneyland%22).or_insert_with_key(%7Ckey%7C+key.chars().count());%0A++++%0A++++assert_eq!(map%5B%22poneyland%22%5D,+9);%0A%7D&amp;edition=2021"></a></div>32 <span·class="macro">assert_eq!</span>(map[<span·class="string">"poneyland"</span>],·<span·class="number">9</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::BTreeMap;%0A++++%0A++++let+mut+map:+BTreeMap%3C%26str,+usize%3E+=+BTreeMap::new();%0A++++%0A++++map.entry(%22poneyland%22).or_insert_with_key(%7Ckey%7C+key.chars().count());%0A++++%0A++++assert_eq!(map%5B%22poneyland%22%5D,+9);%0A%7D&amp;edition=2021"></a></div>
33 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.key"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.10.0">1.10.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map/entry.rs.html#232-237">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.key"·class="fn">key</a>(&amp;self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;K</a></h4></section></summary><div·class="docblock"><p>Returns·a·reference·to·this·entry’s·key.</p>33 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.key"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.10.0">1.10.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map/entry.rs.html#232-237">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.key"·class="fn">key</a>(&amp;self)·-&gt;·<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;K</a></h4></section></summary><div·class="docblock"><p>Returns·a·reference·to·this·entry’s·key.</p>
34 <h5·id="examples-3"><a·class="doc-anchor"·href="#examples-3">§</a>Examples</h5>34 <h5·id="examples-3"><a·class="doc-anchor"·href="#examples-3">§</a>Examples</h5>
35 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BTreeMap;35 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BTreeMap;
  
36 <span·class="kw">let·</span><span·class="kw-2">mut·</span>map:·BTreeMap&lt;<span·class="kw-2">&amp;</span>str,·usize&gt;·=·BTreeMap::new();36 <span·class="kw">let·</span><span·class="kw-2">mut·</span>map:·BTreeMap&lt;<span·class="kw-2">&amp;</span>str,·usize&gt;·=·BTreeMap::new();
37 <span·class="macro">assert_eq!</span>(map.entry(<span·class="string">"poneyland"</span>).key(),·<span·class="kw-2">&amp;</span><span·class="string">"poneyland"</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::BTreeMap;%0A++++%0A++++let+mut+map:+BTreeMap%3C%26str,+usize%3E+=+BTreeMap::new();%0A++++assert_eq!(map.entry(%22poneyland%22).key(),+%26%22poneyland%22);%0A%7D&amp;edition=2021"></a></div>37 <span·class="macro">assert_eq!</span>(map.entry(<span·class="string">"poneyland"</span>).key(),·<span·class="kw-2">&amp;</span><span·class="string">"poneyland"</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::BTreeMap;%0A++++%0A++++let+mut+map:+BTreeMap%3C%26str,+usize%3E+=+BTreeMap::new();%0A++++assert_eq!(map.entry(%22poneyland%22).key(),+%26%22poneyland%22);%0A%7D&amp;edition=2021"></a></div>
38 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.and_modify"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.26.0">1.26.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map/entry.rs.html#260-271">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.and_modify"·class="fn">and_modify</a>&lt;F&gt;(self,·f:·F)·-&gt;·Self<div·class="where">where38 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.and_modify"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.26.0">1.26.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map/entry.rs.html#260-271">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.and_modify"·class="fn">and_modify</a>&lt;F&gt;(self,·f:·F)·-&gt;·Self<div·class="where">where
39 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnOnce.html"·title="trait·core::ops::function::FnOnce">FnOnce</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;mut·V</a>),</div></h4></section></summary><div·class="docblock"><p>Provides·in-place·mutable·access·to·an·occupied·entry·before·any39 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnOnce.html"·title="trait·core::ops::function::FnOnce">FnOnce</a>(<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;mut·V</a>),</div></h4></section></summary><div·class="docblock"><p>Provides·in-place·mutable·access·to·an·occupied·entry·before·any
40 potential·inserts·into·the·map.</p>40 potential·inserts·into·the·map.</p>
41 <h5·id="examples-4"><a·class="doc-anchor"·href="#examples-4">§</a>Examples</h5>41 <h5·id="examples-4"><a·class="doc-anchor"·href="#examples-4">§</a>Examples</h5>
42 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BTreeMap;42 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BTreeMap;
  
43 <span·class="kw">let·</span><span·class="kw-2">mut·</span>map:·BTreeMap&lt;<span·class="kw-2">&amp;</span>str,·usize&gt;·=·BTreeMap::new();43 <span·class="kw">let·</span><span·class="kw-2">mut·</span>map:·BTreeMap&lt;<span·class="kw-2">&amp;</span>str,·usize&gt;·=·BTreeMap::new();
  
44 map.entry(<span·class="string">"poneyland"</span>)44 map.entry(<span·class="string">"poneyland"</span>)
Offset 57, 40 lines modifiedOffset 57, 40 lines modified
57 ···.or_insert(<span·class="number">42</span>);57 ···.or_insert(<span·class="number">42</span>);
58 <span·class="macro">assert_eq!</span>(map[<span·class="string">"poneyland"</span>],·<span·class="number">42</span>);58 <span·class="macro">assert_eq!</span>(map[<span·class="string">"poneyland"</span>],·<span·class="number">42</span>);
  
59 map.entry(<span·class="string">"poneyland"</span>)59 map.entry(<span·class="string">"poneyland"</span>)
60 ···.and_modify(|e|·{·<span·class="kw-2">*</span>e·+=·<span·class="number">1·</span>})60 ···.and_modify(|e|·{·<span·class="kw-2">*</span>e·+=·<span·class="number">1·</span>})
61 ···.or_insert(<span·class="number">42</span>);61 ···.or_insert(<span·class="number">42</span>);
62 <span·class="macro">assert_eq!</span>(map[<span·class="string">"poneyland"</span>],·<span·class="number">43</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::BTreeMap;%0A++++%0A++++let+mut+map:+BTreeMap%3C%26str,+usize%3E+=+BTreeMap::new();%0A++++%0A++++map.entry(%22poneyland%22)%0A+++++++.and_modify(%7Ce%7C+%7B+*e+%2B=+1+%7D)%0A+++++++.or_insert(42);%0A++++assert_eq!(map%5B%22poneyland%22%5D,+42);%0A++++%0A++++map.entry(%22poneyland%22)%0A+++++++.and_modify(%7Ce%7C+%7B+*e+%2B=+1+%7D)%0A+++++++.or_insert(42);%0A++++assert_eq!(map%5B%22poneyland%22%5D,+43);%0A%7D&amp;edition=2021"></a></div>62 <span·class="macro">assert_eq!</span>(map[<span·class="string">"poneyland"</span>],·<span·class="number">43</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::BTreeMap;%0A++++%0A++++let+mut+map:+BTreeMap%3C%26str,+usize%3E+=+BTreeMap::new();%0A++++%0A++++map.entry(%22poneyland%22)%0A+++++++.and_modify(%7Ce%7C+%7B+*e+%2B=+1+%7D)%0A+++++++.or_insert(42);%0A++++assert_eq!(map%5B%22poneyland%22%5D,+42);%0A++++%0A++++map.entry(%22poneyland%22)%0A+++++++.and_modify(%7Ce%7C+%7B+*e+%2B=+1+%7D)%0A+++++++.or_insert(42);%0A++++assert_eq!(map%5B%22poneyland%22%5D,+43);%0A%7D&amp;edition=2021"></a></div>
63 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Entry%3C'a,+K,+V,+A%3E-1"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map/entry.rs.html#274-295">Source</a><a·href="#impl-Entry%3C'a,+K,+V,+A%3E-1"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·K:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,·V:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>,·A:·<a·class="trait[·...·truncated·by·diffoscope;·len:·853,·SHA:·fb48145b8405cf682fe4b3085392c37afca8e6d1e79dd7fe796d949167f57cc3·...·]/core/primitive.reference.html">&amp;'a·mut·V</a></h4></section></summary><div·class="docblock"><p>Ensures·a·value·is·in·the·entry·by·inserting·the·default·value·if·empty,63 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Entry%3C'a,+K,+V,+A%3E-1"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map/entry.rs.html#274-295">Source</a><a·href="#impl-Entry%3C'a,+K,+V,+A%3E-1"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·K:·<a·class="trait"·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,·V:·<a·class="trait"·href="../../../core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title=[·...·truncated·by·diffoscope;·len:·757,·SHA:·1482e51e05bd279a5138c3669bba23d4bbaeb21e9658e912f3e81cadabea0a98·...·]/core/primitive.reference.html">&amp;'a·mut·V</a></h4></section></summary><div·class="docblock"><p>Ensures·a·value·is·in·the·entry·by·inserting·the·default·value·if·empty,
64 and·returns·a·mutable·reference·to·the·value·in·the·entry.</p>64 and·returns·a·mutable·reference·to·the·value·in·the·entry.</p>
65 <h5·id="examples-5"><a·class="doc-anchor"·href="#examples-5">§</a>Examples</h5>65 <h5·id="examples-5"><a·class="doc-anchor"·href="#examples-5">§</a>Examples</h5>
66 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BTreeMap;66 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BTreeMap;
  
67 <span·class="kw">let·</span><span·class="kw-2">mut·</span>map:·BTreeMap&lt;<span·class="kw-2">&amp;</span>str,·<span·class="prelude-ty">Option</span>&lt;usize&gt;&gt;·=·BTreeMap::new();67 <span·class="kw">let·</span><span·class="kw-2">mut·</span>map:·BTreeMap&lt;<span·class="kw-2">&amp;</span>str,·<span·class="prelude-ty">Option</span>&lt;usize&gt;&gt;·=·BTreeMap::new();
68 map.entry(<span·class="string">"poneyland"</span>).or_default();68 map.entry(<span·class="string">"poneyland"</span>).or_default();
  
69 <span·class="macro">assert_eq!</span>(map[<span·class="string">"poneyland"</span>],·<span·class="prelude-val">None</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::BTreeMap;%0A++++%0A++++let+mut+map:+BTreeMap%3C%26str,+Option%3Cusize%3E%3E+=+BTreeMap::new();%0A++++map.entry(%22poneyland%22).or_default();%0A++++%0A++++assert_eq!(map%5B%22poneyland%22%5D,+None);%0A%7D&amp;edition=2021"></a></div>69 <span·class="macro">assert_eq!</span>(map[<span·class="string">"poneyland"</span>],·<span·class="prelude-val">None</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::BTreeMap;%0A++++%0A++++let+mut+map:+BTreeMap%3C%26str,+Option%3Cusize%3E%3E+=+BTreeMap::new();%0A++++map.entry(%22poneyland%22).or_default();%0A++++%0A++++assert_eq!(map%5B%22poneyland%22%5D,+None);%0A%7D&amp;edition=2021"></a></div>
70 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-Entry%3C'_,+K,+V,+A%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.12.0">1.12.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map/entry.rs.html#35-42">Source</a></span><a·href="#impl-Debug-for-Entry%3C'_,+K,+V,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;K:·<a·class="trait"·href="../../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,·V:·<a·class="trait"·href="../../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·tit[·...·truncated·by·diffoscope;·len:·1649,·SHA:·4474f2929195b39fe13eeba0c6661c36557080ab52b7f077f60e2998290cb6a5·...·]/core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="enum"·href="enum.Entry.html"·title="enum·alloc::collections::btree_map::Entry">Entry</a>&lt;'a,·K,·V,·A&gt;<div·class="where">where70 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-Entry%3C'_,+K,+V,+A%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.12.0">1.12.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map/entry.rs.html#35-42">Source</a></span><a·href="#impl-Debug-for-Entry%3C'_,+K,+V,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;K:·<a·class="trait"·href="../../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·+·<a·class="trait"·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,·V:·<a·class="trait"·href="../../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::[·...·truncated·by·diffoscope;·len:·1577,·SHA:·8e4376d8190ee1086434f90b11d3f2de2a029f79b2c4925ba8069714a3fdd306·...·]/core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="enum"·href="enum.Entry.html"·title="enum·alloc::collections::btree_map::Entry">Entry</a>&lt;'a,·K,·V,·A&gt;<div·class="where">where
71 ····K:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>,71 ····K:·<a·class="trait"·href="../../../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>,
72 ····A:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>,</div></h3></section><section·id="impl-RefUnwindSafe-for-Entry%3C'a,+K,+V,+A%3E"·class="impl"><a·href="#impl-RefUnwindSafe-for-Entry%3C'a,+K,+V,+A[·...·truncated·by·diffoscope;·len:·128,·SHA:·4d2bec86977a7c2365f53d1b3da14c7b2c4329680e49eee586ae1efdc1c9f828·...·]/core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="enum"·href="enum.Entry.html"·title="enum·alloc::collections::btree_map::Entry">Entry</a>&lt;'a,·K,·V,·A&gt;<div·class="where">where72 ····A:·<a·class="trait"·href="../../../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>,</div></h3></section><section·id="impl-RefUnwindSafe-for-Entry%3C'a,+K,+V,+A%3E"·class="impl"><a·href="#impl-RefUnwindSafe-for-Entry%3C'a,+K,+V,+A%3E"·class="anchor">§</a[·...·truncated·by·diffoscope;·len:·80,·SHA:·f691d4a4ca63f9e815906cdde10452d80feac0d296f92e04eb99dd3edffe4d64·...·]/core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="enum"·href="enum.Entry.html"·title="enum·alloc::collections::btree_map::Entry">Entry</a>&lt;'a,·K,·V,·A&gt;<div·class="where">where
73 ····K:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,73 ····K:·<a·class="trait"·href="../../../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,
74 ····A:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,74 ····A:·<a·class="trait"·href="../../../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,
75 ····V:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,</div></h3></section><section·id="impl-Send-for-Entry%3C'a,+K,+V,+A%3E"·class="impl"><a·href="#impl-Se[·...·truncated·by·diffoscope;·len:·154,·SHA:·f903f751be61e433da35d7598e689eb6029f9ca000eea6f801093118bd3e5f71·...·]/core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="enum"·href="enum.Entry.html"·title="enum·alloc::collections::btree_map::Entry">Entry</a>&lt;'a,·K,·V,·A&gt;<div·class="where">where75 ····V:·<a·class="trait"·href="../../../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,</div></h3></section><section·id="impl-Send-for-Entry%3C'a,+K,+V,+A%3E"·class="impl"><a·href="#impl-Send-for-Entry%3C'a,+K,+V,[·...·truncated·by·diffoscope;·len:·106,·SHA:·3a917fed505a734ca2374f0e62ef12b34e2154d8b25e9bfc00d3add42bbc47e9·...·]/core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="enum"·href="enum.Entry.html"·title="enum·alloc::collections::btree_map::Entry">Entry</a>&lt;'a,·K,·V,·A&gt;<div·class="where">where
76 ····K:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>,76 ····K:·<a·class="trait"·href="../../../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>,
77 ····A:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>,77 ····A:·<a·class="trait"·href="../../../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>,
78 ····V:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>,</div></h3></section><section·id="impl-Sync-for-Entry%3C'a,+K,+V,+A%3E"·class="impl"><a·href="#impl-Sync-for-Entry%3C'a,+K,+V,+A%3E"·class="anchor">§</a[·...·truncated·by·diffoscope;·len:·104,·SHA:·9d43d1cf8648bc87936927cdf0343083b24f253db1a706c1eee3e7b8f33af74b·...·]/core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="enum"·href="enum.Entry.html"·title="enum·alloc::collections::btree_map::Entry">Entry</a>&lt;'a,·K,·V,·A&gt;<div·class="where">where78 ····V:·<a·class="trait"·href="../../../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>,</div></h3></section><section·id="impl-Sync-for-Entry%3C'a,+K,+V,+A%3E"·class="impl"><a·href="#impl-Sync-for-Entry%3C'a,+K,+V,+A%3E"·class="anchor">§</a><h3·class="code-header"[·...·truncated·by·diffoscope;·len:·56,·SHA:·0dba1ef875bf7f94b878c06d60ee5661e1b544803ee5f1a450cb39e7736c1fa9·...·]/core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="enum"·href="enum.Entry.html"·title="enum·alloc::collections::btree_map::Entry">Entry</a>&lt;'a,·K,·V,·A&gt;<div·class="where">where
79 ····K:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>,79 ····K:·<a·class="trait"·href="../../../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>,
80 ····A:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>,80 ····A:·<a·class="trait"·href="../../../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>,
81 ····V:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>,</div></h3></section><section·id="impl-Unpin-for-Entry%3C'a,+K,+V,+A%3E"·class="impl"><a·href="#impl-Unpin-for-Entry%3C'a,+K,+V,+A%3E"·class="anchor">§<[·...·truncated·by·diffoscope;·len:·106,·SHA:·7742db651dc07348619ef555ca575f2e05020adfb3b6487e9acccd79cd0c73ed·...·]/core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="enum"·href="enum.Entry.html"·title="enum·alloc::collections::btree_map::Entry">Entry</a>&lt;'a,·K,·V,·A&gt;<div·class="where">where81 ····V:·<a·class="trait"·href="../../../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>,</div></h3></section><section·id="impl-Unpin-for-Entry%3C'a,+K,+V,+A%3E"·class="impl"><a·href="#impl-Unpin-for-Entry%3C'a,+K,+V,+A%3E"·class="anchor">§</a><h3·class="code-heade[·...·truncated·by·diffoscope;·len:·58,·SHA:·b8cdfb8b2e74ee5191ee47ee311ab67aaa89cd3689733d25fb75222cd0f748be·...·]/core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="enum"·href="enum.Entry.html"·title="enum·alloc::collections::btree_map::Entry">Entry</a>&lt;'a,·K,·V,·A&gt;<div·class="where">where
82 ····K:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>,82 ····K:·<a·class="trait"·href="../../../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>,
83 ····A:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>,</div></h3></section><section·id="impl-UnwindSafe-for-Entry%3C'a,+K,+V,+A%3E"·class="impl"><a·href="#impl-UnwindSafe-for-Entry%3C'a,+K,+V,+A%3E"·clas[·...·truncated·by·diffoscope;·len:·992,·SHA:·d6757b32ab54ea9abb71af2839222f6f6d7ef2908bf4756ee865dd33bffb6c9a·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where83 ····A:·<a·class="trait"·href="../../../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>,</div></h3></section><section·id="impl-UnwindSafe-for-Entry%3C'a,+K,+V,+A%3E"·class="impl"><a·href="#impl-UnwindSafe-for-Entry%3C'a,+K,+V,+A%3E"·class="anchor">§</a><h3·clas[·...·truncated·by·diffoscope;·len:·896,·SHA:·1be0e14f14e05684949df0995839d45fc14fb562ffcbc6ad5c772f036ccbc548·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where
84 ····T:·'static·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method[·...·truncated·by·diffoscope;·len:·834,·SHA:·47dfc2aa0101a4103e2a94c1f971c559790d87a62d58631fd2bfed98e6616a34·...·]/src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where84 ····T:·'static·+·?<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="s[·...·truncated·by·diffoscope;·len:·690,·SHA:·5140301cd9ff79a41eb9c4e21645354b7b39f4611f9b3646b7c859a62ac61067·...·]/src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where
85 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·[·...·truncated·by·diffoscope;·len:·743,·SHA:·b1db3ba49d399b0b1340fa997418ee1ae0ece93cc3579963c53bf7040ec0ded6·...·]/src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.BorrowMut.html"·title="trait·alloc::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where85 ····T:·?<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="sr[·...·truncated·by·diffoscope;·len:·647,·SHA:·eced384f314b303c18919389c5abe4a96aec1091fccffab1a095e21ec4389338·...·]/src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.BorrowMut.html"·title="trait·alloc::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where
86 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="met[·...·truncated·by·diffoscope;·len:·1422,·SHA:·3b5041f32ed902526095ebde8745452b32cbfac2cd9503735eec716deff7280f·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>86 ····T:·?<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class[·...·truncated·by·diffoscope;·len:·1254,·SHA:·7fcbbe8bd9862b59809c60d05e5f59904ccadf8a3a9f11da30f9fcc6b839c5b3·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>
87 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where87 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where
88 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="m[·...·truncated·by·diffoscope;·len:·237,·SHA:·98603c35860102b3af9b5cf27aeabf39e3c03236551986a6ec030817f108d919·...·]/core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>88 ····U:·<a·class="trait"·href="../../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·cla[·...·truncated·by·diffoscope;·len:·165,·SHA:·423a04a226f49c7f9a948f8c413dc8519f4a9a96a55914b6e6a694710d81c0f7·...·]/core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>
89 <p>That·is,·this·conversion·is·whatever·the·implementation·of89 <p>That·is,·this·conversion·is·whatever·the·implementation·of
90 <code><a·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>90 <code><a·href="../../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>
91 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#805-807">Source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where91 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../../src/core/convert/mod.rs.html#805-807">Source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where
92 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="asso[·...·truncated·by·diffoscope;·len:·1973,·SHA:·db4b8407e8e20581ad139aef25a6221a11da0f5f18d6aa35aa33eb843f4e1b9f·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where92 ····U:·<a·class="trait"·href="../../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><[·...·truncated·by·diffoscope;·len:·1709,·SHA:·e896b9bb1c9fd7d11ed5b2485b9a6fcb8a8eedc15783c2750df398ecae6b320e·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where
93 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·clas[·...·truncated·by·diffoscope;·len:·1578,·SHA:·998d5af10fd889567cd999d1306bfd16c91134d2238a3c172f1e7fa8ed138c18·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>93 ····U:·<a·class="trait"·href="../../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-[·...·truncated·by·diffoscope;·len:·1338,·SHA:·bf7fc0d673df53e1a193a897ac1592a2d85070ae590f9624c2e5404df56f3bb0·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>
302 KB
./usr/share/doc/rust-doc/html/alloc/collections/btree_map/struct.BTreeMap.html
    
Offset 1, 8 lines modifiedOffset 1, 8 lines modified
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="An·ordered·map·based·on·a·B-Tree."><title>BTreeMap·in·alloc::collections::btree_map·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»      2025-01-07)»   (built»     from» a»source»  tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">BTree<wbr>Map</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#examples"·title="Examples">Examples</a></li></ul><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.append"·title="append">append</a></li><li><a·href="#method.clear"·title="clear">clear</a></li><li><a·href="#method.contains_key"·title="contains_key">contains_key</a></li><li><a·href="#method.entry"·title="entry">entry</a></li><li><a·href="#method.extract_if"·title="extract_if">extract_if</a></li><li><a·href="#method.first_entry"·title="first_entry">first_entry</a></li><li><a·href="#method.first_key_value"·title="first_key_value">first_key_value</a></li><li><a·href="#method.get"·title="get">get</a></li><li><a·href="#method.get_key_value"·title="get_key_value">get_key_value</a></li><li><a·href="#method.get_mut"·title="get_mut">get_mut</a></li><li><a·href="#method.insert"·title="insert">insert</a></li><li><a·href="#method.into_keys"·title="into_keys">into_keys</a></li><li><a·href="#method.into_values"·title="into_values">into_values</a></li><li><a·href="#method.is_empty"·title="is_empty">is_empty</a></li><li><a·href="#method.iter"·title="iter">iter</a></li><li><a·href="#method.iter_mut"·title="iter_mut">iter_mut</a></li><li><a·href="#method.keys"·title="keys">keys</a></li><li><a·href="#method.last_entry"·title="last_entry">last_entry</a></li><li><a·href="#method.last_key_value"·title="last_key_value">last_key_value</a></li><li><a·href="#method.len"·title="len">len</a></li><li><a·href="#method.lower_bound"·title="lower_bound">lower_bound</a></li><li><a·href="#method.lower_bound_mut"·title="lower_bound_mut">lower_bound_mut</a></li><li><a·href="#method.new"·title="new">new</a></li><li><a·href="#method.new_in"·title="new_in">new_in</a></li><li><a·href="#method.pop_first"·title="pop_first">pop_first</a></li><li><a·href="#method.pop_last"·title="pop_last">pop_last</a></li><li><a·href="#method.range"·title="range">range</a></li><li><a·href="#method.range_mut"·title="range_mut">range_mut</a></li><li><a·href="#method.remove"·title="remove">remove</a></li><li><a·href="#method.remove_entry"·title="remove_entry">remove_entry</a></li><li><a·href="#method.retain"·title="retain">retain</a></li><li><a·href="#method.split_off"·title="split_off">split_off</a></li><li><a·href="#method.try_insert"·title="try_insert">try_insert</a></li><li><a·href="#method.upper_bound"·title="upper_bound">upper_bound</a></li><li><a·href="#method.upper_bound_mut"·title="upper_bound_mut">upper_bound_mut</a></li><li><a·href="#method.values"·title="values">values</a></li><li><a·href="#method.values_mut"·title="values_mut">values_mut</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-BTreeMap%3CK,+V,+A%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-BTreeMap%3CK,+V,+A%3E"·title="Debug">Debug</a></li><li><a·href="#impl-Default-for-BTreeMap%3CK,+V%3E"·title="Default">Default</a></li><li><a·href="#impl-Drop-for-BTreeMap%3CK,+V,+A%3E"·title="Drop">Drop</a></li><li><a·href="#impl-Eq-for-BTreeMap%3CK,+V,+A%3E"·title="Eq">Eq</a></li><li><a·href="#impl-Extend%3C(%26K,+%26V)%3E-for-BTreeMap%3CK,+V,+A%3E"·title="Extend&#60;(&#38;&#39;a·K,·&#38;&#39;a·V)&#62;">Extend&#60;(&#38;&#39;a·K,·&#38;&#39;a·V)&#62;</a></li><li><a·href="#impl-Extend%3C(K,+V)%3E-for-BTreeMap%3CK,+V,+A%3E"·title="Extend&#60;(K,·V)&#62;">Extend&#60;(K,·V)&#62;</a></li><li><a·href="#impl-From%3C%5B(K,+V);+N%5D%3E-for-BTreeMap%3CK,+V%3E"·title="From&#60;[(K,·V);·N]&#62;">From&#60;[(K,·V);·N]&#62;</a></li><li><a·href="#impl-FromIterator%3C(K,+V)%3E-for-BTreeMap%3CK,+V%3E"·title="FromIterator&#60;(K,·V)&#62;">FromIterator&#60;(K,·V)&#62;</a></li><li><a·href="#impl-Hash-for-BTreeMap%3CK,+V,+A%3E"·title="Hash">Hash</a></li><li><a·href="#impl-Index%3C%26Q%3E-for-BTreeMap%3CK,+V,+A%3E"·title="Index&#60;&#38;Q&#62;">Index&#60;&#38;Q&#62;</a></li><li><a·href="#impl-IntoIterator-for-%26BTreeMap%3CK,+V,+A%3E"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-IntoIterator-for-%26mut+BTreeMap%3CK,+V,+A%3E"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-IntoIterator-for-BTreeMap%3CK,+V,+A%3E"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-Ord-for-BTreeMap%3CK,+V,+A%3E"·title="Ord">Ord</a></li><li><a·href="#impl-PartialEq-for-BTreeMap%3CK,+V,+A%3E"·title="PartialEq">PartialEq</a></li><li><a·href="#impl-PartialOrd-for-BTreeMap%3CK,+V,+A%3E"·title="PartialOrd">PartialOrd</a></li><li><a·href="#impl-UnwindSafe-for-BTreeMap%3CK,+V,+A%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-BTreeMap%3CK,+V,+A%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-BTreeMap%3CK,+V,+A%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-BTreeMap%3CK,+V,+A%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-BTreeMap%3CK,+V,+A%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-BTreeMap%3CK,+V,+A%3E"·title="Unpin">Unpin</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>collections::<wbr>btree_<wbr>map</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">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">btree_map</a></span><h1>Struct·<span·class="struct">BTreeMap</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map.rs.html#173-184">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·BTreeMap&lt;K,·V,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·=·<a·class="struct"·href="../../alloc/struct.Global.html"·title="struct·alloc::alloc::Global">Global</a>&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>An·ordered·map·based·on·a·<a·href="https://en.wikipedia.org/wiki/B-tree">B-Tree</a>.</p>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="An·ordered·map·based·on·a·B-Tree."><title>BTreeMap·in·alloc::collections::btree_map·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»      2025-01-07)»   (built»     from» a»source»  tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">BTree<wbr>Map</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#examples"·title="Examples">Examples</a></li></ul><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.append"·title="append">append</a></li><li><a·href="#method.clear"·title="clear">clear</a></li><li><a·href="#method.contains_key"·title="contains_key">contains_key</a></li><li><a·href="#method.entry"·title="entry">entry</a></li><li><a·href="#method.extract_if"·title="extract_if">extract_if</a></li><li><a·href="#method.first_entry"·title="first_entry">first_entry</a></li><li><a·href="#method.first_key_value"·title="first_key_value">first_key_value</a></li><li><a·href="#method.get"·title="get">get</a></li><li><a·href="#method.get_key_value"·title="get_key_value">get_key_value</a></li><li><a·href="#method.get_mut"·title="get_mut">get_mut</a></li><li><a·href="#method.insert"·title="insert">insert</a></li><li><a·href="#method.into_keys"·title="into_keys">into_keys</a></li><li><a·href="#method.into_values"·title="into_values">into_values</a></li><li><a·href="#method.is_empty"·title="is_empty">is_empty</a></li><li><a·href="#method.iter"·title="iter">iter</a></li><li><a·href="#method.iter_mut"·title="iter_mut">iter_mut</a></li><li><a·href="#method.keys"·title="keys">keys</a></li><li><a·href="#method.last_entry"·title="last_entry">last_entry</a></li><li><a·href="#method.last_key_value"·title="last_key_value">last_key_value</a></li><li><a·href="#method.len"·title="len">len</a></li><li><a·href="#method.lower_bound"·title="lower_bound">lower_bound</a></li><li><a·href="#method.lower_bound_mut"·title="lower_bound_mut">lower_bound_mut</a></li><li><a·href="#method.new"·title="new">new</a></li><li><a·href="#method.new_in"·title="new_in">new_in</a></li><li><a·href="#method.pop_first"·title="pop_first">pop_first</a></li><li><a·href="#method.pop_last"·title="pop_last">pop_last</a></li><li><a·href="#method.range"·title="range">range</a></li><li><a·href="#method.range_mut"·title="range_mut">range_mut</a></li><li><a·href="#method.remove"·title="remove">remove</a></li><li><a·href="#method.remove_entry"·title="remove_entry">remove_entry</a></li><li><a·href="#method.retain"·title="retain">retain</a></li><li><a·href="#method.split_off"·title="split_off">split_off</a></li><li><a·href="#method.try_insert"·title="try_insert">try_insert</a></li><li><a·href="#method.upper_bound"·title="upper_bound">upper_bound</a></li><li><a·href="#method.upper_bound_mut"·title="upper_bound_mut">upper_bound_mut</a></li><li><a·href="#method.values"·title="values">values</a></li><li><a·href="#method.values_mut"·title="values_mut">values_mut</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-BTreeMap%3CK,+V,+A%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-BTreeMap%3CK,+V,+A%3E"·title="Debug">Debug</a></li><li><a·href="#impl-Default-for-BTreeMap%3CK,+V%3E"·title="Default">Default</a></li><li><a·href="#impl-Drop-for-BTreeMap%3CK,+V,+A%3E"·title="Drop">Drop</a></li><li><a·href="#impl-Eq-for-BTreeMap%3CK,+V,+A%3E"·title="Eq">Eq</a></li><li><a·href="#impl-Extend%3C(%26K,+%26V)%3E-for-BTreeMap%3CK,+V,+A%3E"·title="Extend&#60;(&#38;&#39;a·K,·&#38;&#39;a·V)&#62;">Extend&#60;(&#38;&#39;a·K,·&#38;&#39;a·V)&#62;</a></li><li><a·href="#impl-Extend%3C(K,+V)%3E-for-BTreeMap%3CK,+V,+A%3E"·title="Extend&#60;(K,·V)&#62;">Extend&#60;(K,·V)&#62;</a></li><li><a·href="#impl-From%3C%5B(K,+V);+N%5D%3E-for-BTreeMap%3CK,+V%3E"·title="From&#60;[(K,·V);·N]&#62;">From&#60;[(K,·V);·N]&#62;</a></li><li><a·href="#impl-FromIterator%3C(K,+V)%3E-for-BTreeMap%3CK,+V%3E"·title="FromIterator&#60;(K,·V)&#62;">FromIterator&#60;(K,·V)&#62;</a></li><li><a·href="#impl-Hash-for-BTreeMap%3CK,+V,+A%3E"·title="Hash">Hash</a></li><li><a·href="#impl-Index%3C%26Q%3E-for-BTreeMap%3CK,+V,+A%3E"·title="Index&#60;&#38;Q&#62;">Index&#60;&#38;Q&#62;</a></li><li><a·href="#impl-IntoIterator-for-%26BTreeMap%3CK,+V,+A%3E"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-IntoIterator-for-%26mut+BTreeMap%3CK,+V,+A%3E"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-IntoIterator-for-BTreeMap%3CK,+V,+A%3E"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-Ord-for-BTreeMap%3CK,+V,+A%3E"·title="Ord">Ord</a></li><li><a·href="#impl-PartialEq-for-BTreeMap%3CK,+V,+A%3E"·title="PartialEq">PartialEq</a></li><li><a·href="#impl-PartialOrd-for-BTreeMap%3CK,+V,+A%3E"·title="PartialOrd">PartialOrd</a></li><li><a·href="#impl-UnwindSafe-for-BTreeMap%3CK,+V,+A%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-BTreeMap%3CK,+V,+A%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-BTreeMap%3CK,+V,+A%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-BTreeMap%3CK,+V,+A%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-BTreeMap%3CK,+V,+A%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-BTreeMap%3CK,+V,+A%3E"·title="Unpin">Unpin</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>collections::<wbr>btree_<wbr>map</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">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">btree_map</a></span><h1>Struct·<span·class="struct">BTreeMap</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map.rs.html#173-184">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·BTreeMap&lt;K,·V,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·+·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·=·<a·class="struct"·href="../../alloc/struct.Global.html"·title="struct·alloc::alloc::Global">Global</a>&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>An·ordered·map·based·on·a·<a·href="https://en.wikipedia.org/wiki/B-tree">B-Tree</a>.</p>
2 <p>B-Trees·represent·a·fundamental·compromise·between·cache-efficiency·and·actually·minimizing2 <p>B-Trees·represent·a·fundamental·compromise·between·cache-efficiency·and·actually·minimizing
3 the·amount·of·work·performed·in·a·search.·In·theory,·a·binary·search·tree·(BST)·is·the·optimal3 the·amount·of·work·performed·in·a·search.·In·theory,·a·binary·search·tree·(BST)·is·the·optimal
4 choice·for·a·sorted·map,·as·a·perfectly·balanced·BST·performs·the·theoretical·minimum·amount·of4 choice·for·a·sorted·map,·as·a·perfectly·balanced·BST·performs·the·theoretical·minimum·amount·of
5 comparisons·necessary·to·find·an·element·(log<sub>2</sub>n).·However,·in·practice·the·way·this5 comparisons·necessary·to·find·an·element·(log<sub>2</sub>n).·However,·in·practice·the·way·this
6 is·done·is·<em>very</em>·inefficient·for·modern·computer·architectures.·In·particular,·every·element6 is·done·is·<em>very</em>·inefficient·for·modern·computer·architectures.·In·particular,·every·element
7 is·stored·in·its·own·individually·heap-allocated·node.·This·means·that·every·single·insertion7 is·stored·in·its·own·individually·heap-allocated·node.·This·means·that·every·single·insertion
8 triggers·a·heap-allocation,·and·every·single·comparison·should·be·a·cache-miss.·Since·these8 triggers·a·heap-allocation,·and·every·single·comparison·should·be·a·cache-miss.·Since·these
Offset 18, 16 lines modifiedOffset 18, 16 lines modified
18 <p>Currently,·our·implementation·simply·performs·naive·linear·search.·This·provides·excellent18 <p>Currently,·our·implementation·simply·performs·naive·linear·search.·This·provides·excellent
19 performance·on·<em>small</em>·nodes·of·elements·which·are·cheap·to·compare.·However·in·the·future·we19 performance·on·<em>small</em>·nodes·of·elements·which·are·cheap·to·compare.·However·in·the·future·we
20 would·like·to·further·explore·choosing·the·optimal·search·strategy·based·on·the·choice·of·B,20 would·like·to·further·explore·choosing·the·optimal·search·strategy·based·on·the·choice·of·B,
21 and·possibly·other·factors.·Using·linear·search,·searching·for·a·random·element·is·expected21 and·possibly·other·factors.·Using·linear·search,·searching·for·a·random·element·is·expected
22 to·take·B·*·log(n)·comparisons,·which·is·generally·worse·than·a·BST.·In·practice,22 to·take·B·*·log(n)·comparisons,·which·is·generally·worse·than·a·BST.·In·practice,
23 however,·performance·is·excellent.</p>23 however,·performance·is·excellent.</p>
24 <p>It·is·a·logic·error·for·a·key·to·be·modified·in·such·a·way·that·the·key’s·ordering·relative·to24 <p>It·is·a·logic·error·for·a·key·to·be·modified·in·such·a·way·that·the·key’s·ordering·relative·to
25 any·other·key,·as·determined·by·the·<a·href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord"><code>Ord</code></a>·trait,·changes·while·it·is·in·the·map.·This·is25 any·other·key,·as·determined·by·the·<a·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord"><code>Ord</code></a>·trait,·changes·while·it·is·in·the·map.·This·is
26 normally·only·possible·through·<a·href="https://doc.rust-lang.org/1.84.0/core/cell/struct.Cell.html"·title="struct·core::cell::Cell"><code>Cell</code></a>,·<a·href="https://doc.rust-lang.org/1.84.0/core/cell/struct.RefCell.html"·title="struct·core::cell::RefCell"><code>RefCell</code></a>,·global·state,·I/O,·or·unsafe·code.26 normally·only·possible·through·<a·href="../../../core/cell/struct.Cell.html"·title="struct·core::cell::Cell"><code>Cell</code></a>,·<a·href="../../../core/cell/struct.RefCell.html"·title="struct·core::cell::RefCell"><code>RefCell</code></a>,·global·state,·I/O,·or·unsafe·code.
27 The·behavior·resulting·from·such·a·logic·error·is·not·specified,·but·will·be·encapsulated·to·the27 The·behavior·resulting·from·such·a·logic·error·is·not·specified,·but·will·be·encapsulated·to·the
28 <code>BTreeMap</code>·that·observed·the·logic·error·and·not·result·in·undefined·behavior.·This·could28 <code>BTreeMap</code>·that·observed·the·logic·error·and·not·result·in·undefined·behavior.·This·could
29 include·panics,·incorrect·results,·aborts,·memory·leaks,·and·non-termination.</p>29 include·panics,·incorrect·results,·aborts,·memory·leaks,·and·non-termination.</p>
30 <p>Iterators·obtained·from·functions·such·as·<a·href="struct.BTreeMap.html#method.iter"·title="method·alloc::collections::btree_map::BTreeMap::iter"><code>BTreeMap::iter</code></a>,·<a·href="struct.BTreeMap.html#method.into_iter"·title="method·alloc::collections::btree_map::BTreeMap::into_iter"><code>BTreeMap::into_iter</code></a>,·<a·href="struct.BTreeMap.html#method.values"·title="method·alloc::collections::btree_map::BTreeMap::values"><code>BTreeMap::values</code></a>,·or30 <p>Iterators·obtained·from·functions·such·as·<a·href="struct.BTreeMap.html#method.iter"·title="method·alloc::collections::btree_map::BTreeMap::iter"><code>BTreeMap::iter</code></a>,·<a·href="struct.BTreeMap.html#method.into_iter"·title="method·alloc::collections::btree_map::BTreeMap::into_iter"><code>BTreeMap::into_iter</code></a>,·<a·href="struct.BTreeMap.html#method.values"·title="method·alloc::collections::btree_map::BTreeMap::values"><code>BTreeMap::values</code></a>,·or
31 <a·href="struct.BTreeMap.html#method.keys"·title="method·alloc::collections::btree_map::BTreeMap::keys"><code>BTreeMap::keys</code></a>·produce·their·items·in·order·by·key,·and·take·worst-case·logarithmic·and31 <a·href="struct.BTreeMap.html#method.keys"·title="method·alloc::collections::btree_map::BTreeMap::keys"><code>BTreeMap::keys</code></a>·produce·their·items·in·order·by·key,·and·take·worst-case·logarithmic·and
32 amortized·constant·time·per·item·returned.</p>32 amortized·constant·time·per·item·returned.</p>
33 <h2·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h2>33 <h2·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h2>
Offset 111, 15 lines modifiedOffset 111, 15 lines modified
111 <h5·id="examples-1"><a·class="doc-anchor"·href="#examples-1">§</a>Examples</h5>111 <h5·id="examples-1"><a·class="doc-anchor"·href="#examples-1">§</a>Examples</h5>
112 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BTreeMap;112 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BTreeMap;
  
113 <span·class="kw">let·</span><span·class="kw-2">mut·</span>map·=·BTreeMap::new();113 <span·class="kw">let·</span><span·class="kw-2">mut·</span>map·=·BTreeMap::new();
  
114 <span·class="comment">//·entries·can·now·be·inserted·into·the·empty·map114 <span·class="comment">//·entries·can·now·be·inserted·into·the·empty·map
115 </span>map.insert(<span·class="number">1</span>,·<span·class="string">"a"</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::BTreeMap;%0A++++%0A++++let+mut+map+=+BTreeMap::new();%0A++++%0A++++//+entries+can+now+be+inserted+into+the+empty+map%0A++++map.insert(1,+%22a%22);%0A%7D&amp;edition=2021"></a></div>115 </span>map.insert(<span·class="number">1</span>,·<span·class="string">"a"</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::BTreeMap;%0A++++%0A++++let+mut+map+=+BTreeMap::new();%0A++++%0A++++//+entries+can+now+be+inserted+into+the+empty+map%0A++++map.insert(1,+%22a%22);%0A%7D&amp;edition=2021"></a></div>
116 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-BTreeMap%3CK,+V,+A%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#606-649">Source</a><a·href="#impl-BTreeMap%3CK,+V,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;K,·V,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>&gt;·<a·class="struct"·href="struct.BTreeMap.html"·title="struct·alloc::collections::btree_map::BTreeMap">BTreeMap</a>&lt;K,·V,·A&gt;</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clear"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map.rs.html#620-628">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.clear"·class="fn">clear</a>(&amp;mut·self)</h4></section></summary><div·class="docblock"><p>Clears·the·map,·removing·all·elements.</p>116 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-BTreeMap%3CK,+V,+A%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#606-649">Source</a><a·href="#impl-BTreeMap%3CK,+V,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;K,·V,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·+·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>&gt;·<a·class="struct"·href="struct.BTreeMap.html"·title="struct·alloc::collections::btree_map::BTreeMap">BTreeMap</a>&lt;K,·V,·A&gt;</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clear"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map.rs.html#620-628">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.clear"·class="fn">clear</a>(&amp;mut·self)</h4></section></summary><div·class="docblock"><p>Clears·the·map,·removing·all·elements.</p>
117 <h5·id="examples-2"><a·class="doc-anchor"·href="#examples-2">§</a>Examples</h5>117 <h5·id="examples-2"><a·class="doc-anchor"·href="#examples-2">§</a>Examples</h5>
118 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BTreeMap;118 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BTreeMap;
  
119 <span·class="kw">let·</span><span·class="kw-2">mut·</span>a·=·BTreeMap::new();119 <span·class="kw">let·</span><span·class="kw-2">mut·</span>a·=·BTreeMap::new();
120 a.insert(<span·class="number">1</span>,·<span·class="string">"a"</span>);120 a.insert(<span·class="number">1</span>,·<span·class="string">"a"</span>);
121 a.clear();121 a.clear();
122 <span·class="macro">assert!</span>(a.is_empty());</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::BTreeMap;%0A++++%0A++++let+mut+a+=+BTreeMap::new();%0A++++a.insert(1,+%22a%22);%0A++++a.clear();%0A++++assert!(a.is_empty());%0A%7D&amp;edition=2021"></a></div>122 <span·class="macro">assert!</span>(a.is_empty());</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::BTreeMap;%0A++++%0A++++let+mut+a+=+BTreeMap::new();%0A++++a.insert(1,+%22a%22);%0A++++a.clear();%0A++++assert!(a.is_empty());%0A%7D&amp;edition=2021"></a></div>
Offset 128, 29 lines modifiedOffset 128, 29 lines modified
128 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BTreeMap;128 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BTreeMap;
129 <span·class="kw">use·</span>std::alloc::Global;129 <span·class="kw">use·</span>std::alloc::Global;
  
130 <span·class="kw">let·</span><span·class="kw-2">mut·</span>map·=·BTreeMap::new_in(Global);130 <span·class="kw">let·</span><span·class="kw-2">mut·</span>map·=·BTreeMap::new_in(Global);
  
131 <span·class="comment">//·entries·can·now·be·inserted·into·the·empty·map131 <span·class="comment">//·entries·can·now·be·inserted·into·the·empty·map
132 </span>map.insert(<span·class="number">1</span>,·<span·class="string">"a"</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Bfeature(allocator_api)%5D%0A%23!%5Bfeature(btreemap_alloc)%5D%0A%23%5Ballow(unused_extern_crates)%5D%0Aextern+crate+r%23alloc;%0Afn+main()+%7B%0A++++use+std::collections::BTreeMap;%0A++++use+std::alloc::Global;%0A++++%0A++++let+mut+map+=+BTreeMap::new_in(Global);%0A++++%0A++++//+entries+can+now+be+inserted+into+the+empty+map%0A++++map.insert(1,+%22a%22);%0A%7D&amp;version=nightly&amp;edition=2021"></a></div>132 </span>map.insert(<span·class="number">1</span>,·<span·class="string">"a"</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Bfeature(allocator_api)%5D%0A%23!%5Bfeature(btreemap_alloc)%5D%0A%23%5Ballow(unused_extern_crates)%5D%0Aextern+crate+r%23alloc;%0Afn+main()+%7B%0A++++use+std::collections::BTreeMap;%0A++++use+std::alloc::Global;%0A++++%0A++++let+mut+map+=+BTreeMap::new_in(Global);%0A++++%0A++++//+entries+can+now+be+inserted+into+the+empty+map%0A++++map.insert(1,+%22a%22);%0A%7D&amp;version=nightly&amp;edition=2021"></a></div>
133 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-BTreeMap%3CK,+V,+A%3E-1"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#651-1494">Source</a><a·href="#impl-BTreeMap%3CK,+V,+A%3E-1"·class="anchor">§</a><h3·class="code-header">impl&lt;K,·V,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>&gt;·<a·class="struct"·href="struct.BTreeMap.html"·title="struct·alloc::collections::btree_map::BTreeMap">BTreeMap</a>&lt;K,·V,·A&gt;</h3></section></su[·...·truncated·by·diffoscope;·len:·715,·SHA:·c318b2dc9130d902d27978aa13020cadc9f92c9a3795c8b03ca275b6d31facab·...·]/core/primitive.reference.html">&amp;V</a>&gt;<div·class="where">where133 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-BTreeMap%3CK,+V,+A%3E-1"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#651-1494">Source</a><a·href="#impl-BTreeMap%3CK,+V,+A%3E-1"·class="anchor">§</a><h3·class="code-header">impl&lt;K,·V,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·+·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>&gt;·<a·class="struct"·href="struct.BTreeMap.html"·title="struct·alloc::collections::btree_map::BTreeMap">BTreeMap</a>&lt;K,·V,·A&gt;</h3></section></summary><div·class="impl-i[·...·truncated·by·diffoscope;·len:·619,·SHA:·35e6aef17523d2711dc77bc0ed602409f426e148e22f475201180410baaa2153·...·]/core/primitive.reference.html">&amp;V</a>&gt;<div·class="where">where
134 ····K:·<a·class="trait"·href="../../borrow/trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;Q&gt;·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>, 
135 ····Q:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</[·...·truncated·by·diffoscope;·len:·116,·SHA:·77a8d6088553c2145f11e30c22546a316824ce433a5d4e5114deddaa6cb1469b·...·]134 ····K:·<a·class="trait"·href="../../borrow/trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;Q&gt;·+·<a·class="trait"·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,
 135 ····Q:·<a·class="trait"·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>·+·?<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class="docblock"><p>Returns·a·reference·to·the·value·corresponding·to·the·key.</p>
136 <p>The·key·may·be·any·borrowed·form·of·the·map’s·key·type,·but·the·ordering136 <p>The·key·may·be·any·borrowed·form·of·the·map’s·key·type,·but·the·ordering
137 on·the·borrowed·form·<em>must</em>·match·the·ordering·on·the·key·type.</p>137 on·the·borrowed·form·<em>must</em>·match·the·ordering·on·the·key·type.</p>
138 <h5·id="examples-4"><a·class="doc-anchor"·href="#examples-4">§</a>Examples</h5>138 <h5·id="examples-4"><a·class="doc-anchor"·href="#examples-4">§</a>Examples</h5>
139 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BTreeMap;139 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BTreeMap;
  
140 <span·class="kw">let·</span><span·class="kw-2">mut·</span>map·=·BTreeMap::new();140 <span·class="kw">let·</span><span·class="kw-2">mut·</span>map·=·BTreeMap::new();
141 map.insert(<span·class="number">1</span>,·<span·class="string">"a"</span>);141 map.insert(<span·class="number">1</span>,·<span·class="string">"a"</span>);
142 <span·class="macro">assert_eq!</span>(map.get(<span·class="kw-2">&amp;</span><span·class="number">1</span>),·<span·class="prelude-val">Some</span>(<span·class="kw-2">&amp;</span><span·class="string">"a"</span>));142 <span·class="macro">assert_eq!</span>(map.get(<span·class="kw-2">&amp;</span><span·class="number">1</span>),·<span·class="prelude-val">Some</span>(<span·class="kw-2">&amp;</span><span·class="string">"a"</span>));
143 <span·class="macro">assert_eq!</span>(map.get(<span·class="kw-2">&amp;</span><span·class="number">2</span>),·<span·class="prelude-val">None</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::BTreeMap;%0A++++%0A++++let+mut+map+=+BTreeMap::new();%0A++++map.insert(1,+%22a%22);%0A++++assert_eq!(map.get(%261),+Some(%26%22a%22));%0A++++assert_eq!(map.get(%262),+None);%0A%7D&amp;edition=2021"></a></div>143 <span·class="macro">assert_eq!</span>(map.get(<span·class="kw-2">&amp;</span><span·class="number">2</span>),·<span·class="prelude-val">None</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::BTreeMap;%0A++++%0A++++let+mut+map+=+BTreeMap::new();%0A++++map.insert(1,+%22a%22);%0A++++assert_eq!(map.get(%261),+Some(%26%22a%22));%0A++++assert_eq!(map.get(%262),+None);%0A%7D&amp;edition=2021"></a></div>
144 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.get_key_value"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.40.0">1.40.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map.rs.html#734-744">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.get_key_value"·class="fn">get_key_value</a>&lt;Q&gt;(&amp;self,·k:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;Q</a>)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;(<a·class="primitive"·href="https://doc.r[·...·truncated·by·diffoscope;·len:·122,·SHA:·edd8d437b4357d41d27f39bfa500035d276998a1a1c7b490a2b09c2c4b3f0917·...·]/core/primitive.reference.html">&amp;V</a>)&gt;<div·class="where">where144 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.get_key_value"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.40.0">1.40.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map.rs.html#734-744">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.get_key_value"·class="fn">get_key_value</a>&lt;Q&gt;(&amp;self,·k:·<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;Q</a>)·-&gt;·<a·class="enum"·href="../../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;(<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;K</a>,·<a·class=[·...·truncated·by·diffoscope;·len:·26,·SHA:·5048a77fcb2d9bc8d1bd3e9a408cff9c75c1cf0b07f31499d78504c42c58e579·...·]/core/primitive.reference.html">&amp;V</a>)&gt;<div·class="where">where
145 ····K:·<a·class="trait"·href="../../borrow/trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;Q&gt;·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,145 ····K:·<a·class="trait"·href="../../borrow/trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;Q&gt;·+·<a·class="trait"·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,
146 ····Q:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class="docblock"><p>Returns·the·key-value·pair·corresponding·to·the·supplied·key.·This·is146 ····Q:·<a·class="trait"·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>·+·?<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class="docblock"><p>Returns·the·key-value·pair·corresponding·to·the·supplied·key.·This·is
147 potentially·useful:</p>147 potentially·useful:</p>
148 <ul>148 <ul>
149 <li>for·key·types·where·non-identical·keys·can·be·considered·equal;</li>149 <li>for·key·types·where·non-identical·keys·can·be·considered·equal;</li>
150 <li>for·getting·the·<code>&amp;K</code>·stored·key·value·from·a·borrowed·<code>&amp;Q</code>·lookup·key;·or</li>150 <li>for·getting·the·<code>&amp;K</code>·stored·key·value·from·a·borrowed·<code>&amp;Q</code>·lookup·key;·or</li>
151 <li>for·getting·a·reference·to·a·key·with·the·same·lifetime·as·the·collection.</li>151 <li>for·getting·a·reference·to·a·key·with·the·same·lifetime·as·the·collection.</li>
152 </ul>152 </ul>
153 <p>The·supplied·key·may·be·any·borrowed·form·of·the·map’s·key·type,·but·the·ordering153 <p>The·supplied·key·may·be·any·borrowed·form·of·the·map’s·key·type,·but·the·ordering
Offset 191, 125 lines modifiedOffset 191, 125 lines modified
191 <span·class="macro">assert_eq!</span>(j_a,·j_b);191 <span·class="macro">assert_eq!</span>(j_a,·j_b);
  
192 <span·class="kw">let·</span><span·class="kw-2">mut·</span>map·=·BTreeMap::new();192 <span·class="kw">let·</span><span·class="kw-2">mut·</span>map·=·BTreeMap::new();
193 map.insert(j_a,·<span·class="string">"Paris"</span>);193 map.insert(j_a,·<span·class="string">"Paris"</span>);
194 <span·class="macro">assert_eq!</span>(map.get_key_value(<span·class="kw-2">&amp;</span>j_a),·<span·class="prelude-val">Some</span>((<span·class="kw-2">&amp;</span>j_a,·<span·class="kw-2">&amp;</span><span·class="string">"Paris"</span>)));194 <span·class="macro">assert_eq!</span>(map.get_key_value(<span·class="kw-2">&amp;</span>j_a),·<span·class="prelude-val">Some</span>((<span·class="kw-2">&amp;</span>j_a,·<span·class="kw-2">&amp;</span><span·class="string">"Paris"</span>)));
195 <span·class="macro">assert_eq!</span>(map.get_key_value(<span·class="kw-2">&amp;</span>j_b),·<span·class="prelude-val">Some</span>((<span·class="kw-2">&amp;</span>j_a,·<span·class="kw-2">&amp;</span><span·class="string">"Paris"</span>)));·<span·class="comment">//·the·notable·case195 <span·class="macro">assert_eq!</span>(map.get_key_value(<span·class="kw-2">&amp;</span>j_b),·<span·class="prelude-val">Some</span>((<span·class="kw-2">&amp;</span>j_a,·<span·class="kw-2">&amp;</span><span·class="string">"Paris"</span>)));·<span·class="comment">//·the·notable·case
196 </span><span·class="macro">assert_eq!</span>(map.get_key_value(<span·class="kw-2">&amp;</span>p),·<span·class="prelude-val">None</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::cmp::Ordering;%0A++++use+std::collections::BTreeMap;%0A++++%0A++++%23%5Bderive(Clone,+Copy,+Debug)%5D%0A++++struct+S+%7B%0A++++++++id:+u32,%0A++++++%23%5Ballow(unused)%5D+//+prevents+a+%22field+%60name%60+is+never+read%22+error%0A++++++++name:+%26'static+str,+//+ignored+by+equality+and+ordering+operations%0A++++%7D%0A++++%0A++++impl+PartialEq+for+S+%7B%0A++++++++fn+eq(%26self,+other:+%26S)+-%3E+bool+%7B%0A++++++++++++self.id+==+other.id%0A++++++++%7D%0A++++%7D%0A++++%0A++++impl+Eq+for+S+%7B%7D%0A++++%0A++++impl+PartialOrd+for+S+%7B%0A++++++++fn+partial_cmp(%26self,+other:+%26S)+-%3E+Option%3COrdering%3E+%7B%0A++++++++++++self.id.partial_cmp(%26other.id)%0A++++++++%7D%0A++++%7D%0A++++%0A++++impl+Ord+for+S+%7B%0A++++++++fn+cmp(%26self,+other:+%26S)+-%3E+Ordering+%7B%0A++++++++++++self.id.cmp(%26other.id)%0A++++++++%7D%0A++++%7D%0A++++%0A++++let+j_a+=+S+%7B+id:+1,+name:+%22Jessica%22+%7D;%0A++++let+j_b+=+S+%7B+id:+1,+name:+%22Jess%22+%7D;%0A++++let+p+=+S+%7B+id:+2,+name:+%22Paul%22+%7D;%0A++++assert_eq!(j_a,+j_b);%0A++++%0A++++let+mut+map+=+BTreeMap::new();%0A++++map.insert(j_a,+%22Paris%22);%0A++++assert_eq!(map.get_key_value(%26j_a),+Some((%26j_a,+%26%22Paris%22)));%0A++++assert_eq!(map.get_key_value(%26j_b),+Some((%26j_a,+%26%22Paris%22)));+//+the+notable+case%0A++++assert_eq!(map.get_key_value(%26p),+None);%0A%7D&amp;edition=2021"></a></div>196 </span><span·class="macro">assert_eq!</span>(map.get_key_value(<span·class="kw-2">&amp;</span>p),·<span·class="prelude-val">None</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::cmp::Ordering;%0A++++use+std::collections::BTreeMap;%0A++++%0A++++%23%5Bderive(Clone,+Copy,+Debug)%5D%0A++++struct+S+%7B%0A++++++++id:+u32,%0A++++++%23%5Ballow(unused)%5D+//+prevents+a+%22field+%60name%60+is+never+read%22+error%0A++++++++name:+%26'static+str,+//+ignored+by+equality+and+ordering+operations%0A++++%7D%0A++++%0A++++impl+PartialEq+for+S+%7B%0A++++++++fn+eq(%26self,+other:+%26S)+-%3E+bool+%7B%0A++++++++++++self.id+==+other.id%0A++++++++%7D%0A++++%7D%0A++++%0A++++impl+Eq+for+S+%7B%7D%0A++++%0A++++impl+PartialOrd+for+S+%7B%0A++++++++fn+partial_cmp(%26self,+other:+%26S)+-%3E+Option%3COrdering%3E+%7B%0A++++++++++++self.id.partial_cmp(%26other.id)%0A++++++++%7D%0A++++%7D%0A++++%0A++++impl+Ord+for+S+%7B%0A++++++++fn+cmp(%26self,+other:+%26S)+-%3E+Ordering+%7B%0A++++++++++++self.id.cmp(%26other.id)%0A++++++++%7D%0A++++%7D%0A++++%0A++++let+j_a+=+S+%7B+id:+1,+name:+%22Jessica%22+%7D;%0A++++let+j_b+=+S+%7B+id:+1,+name:+%22Jess%22+%7D;%0A++++let+p+=+S+%7B+id:+2,+name:+%22Paul%22+%7D;%0A++++assert_eq!(j_a,+j_b);%0A++++%0A++++let+mut+map+=+BTreeMap::new();%0A++++map.insert(j_a,+%22Paris%22);%0A++++assert_eq!(map.get_key_value(%26j_a),+Some((%26j_a,+%26%22Paris%22)));%0A++++assert_eq!(map.get_key_value(%26j_b),+Some((%26j_a,+%26%22Paris%22)));+//+the+notable+case%0A++++assert_eq!(map.get_key_value(%26p),+None);%0A%7D&amp;edition=2021"></a></div>
197 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.first_key_value"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.66.0">1.66.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map.rs.html#761-767">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.first_key_value"·class="fn">first_key_value</a>(&amp;self)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;K</a>,·<a·class="primitive"·href="https://doc.ru[·...·truncated·by·diffoscope;·len:·18,·SHA:·29ea1e0ca7ba92241a0244969365722b32bad48b66d66e57dd3ff89930e9d243·...·]/core/primitive.reference.html">&amp;V</a>)&gt;<div·class="where">where197 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.first_key_value"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.66.0">1.66.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map.rs.html#761-767">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.first_key_value"·class="fn">first_key_value</a>(&amp;self)·-&gt;·<a·class="enum"·href="../../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;(<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;K</a>,·<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;V</a>)&gt;<div·class="where">where
198 ····K:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,</div></h4></section></summary><div·class="docblock"><p>Returns·the·first·key-value·pair·in·the·map.198 ····K:·<a·class="trait"·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,</div></h4></section></summary><div·class="docblock"><p>Returns·the·first·key-value·pair·in·the·map.
199 The·key·in·this·pair·is·the·minimum·key·in·the·map.</p>199 The·key·in·this·pair·is·the·minimum·key·in·the·map.</p>
200 <h5·id="examples-6"><a·class="doc-anchor"·href="#examples-6">§</a>Examples</h5>200 <h5·id="examples-6"><a·class="doc-anchor"·href="#examples-6">§</a>Examples</h5>
201 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BTreeMap;201 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BTreeMap;
  
202 <span·class="kw">let·</span><span·class="kw-2">mut·</span>map·=·BTreeMap::new();202 <span·class="kw">let·</span><span·class="kw-2">mut·</span>map·=·BTreeMap::new();
203 <span·class="macro">assert_eq!</span>(map.first_key_value(),·<span·class="prelude-val">None</span>);203 <span·class="macro">assert_eq!</span>(map.first_key_value(),·<span·class="prelude-val">None</span>);
204 map.insert(<span·class="number">1</span>,·<span·class="string">"b"</span>);204 map.insert(<span·class="number">1</span>,·<span·class="string">"b"</span>);
205 map.insert(<span·class="number">2</span>,·<span·class="string">"a"</span>);205 map.insert(<span·class="number">2</span>,·<span·class="string">"a"</span>);
206 <span·class="macro">assert_eq!</span>(map.first_key_value(),·<span·class="prelude-val">Some</span>((<span·class="kw-2">&amp;</span><span·class="number">1</span>,·<span·class="kw-2">&amp;</span><span·class="string">"b"</span>)));</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::BTreeMap;%0A++++%0A++++let+mut+map+=+BTreeMap::new();%0A++++assert_eq!(map.first_key_value(),+None);%0A++++map.insert(1,+%22b%22);%0A++++map.insert(2,+%22a%22);%0A++++assert_eq!(map.first_key_value(),+Some((%261,+%26%22b%22)));%0A%7D&amp;edition=2021"></a></div>206 <span·class="macro">assert_eq!</span>(map.first_key_value(),·<span·class="prelude-val">Some</span>((<span·class="kw-2">&amp;</span><span·class="number">1</span>,·<span·class="kw-2">&amp;</span><span·class="string">"b"</span>)));</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::BTreeMap;%0A++++%0A++++let+mut+map+=+BTreeMap::new();%0A++++assert_eq!(map.first_key_value(),+None);%0A++++map.insert(1,+%22b%22);%0A++++map.insert(2,+%22a%22);%0A++++assert_eq!(map.first_key_value(),+Some((%261,+%26%22b%22)));%0A%7D&amp;edition=2021"></a></div>
207 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.first_entry"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.66.0">1.66.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map.rs.html#789-802">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.first_entry"·class="fn">first_entry</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="struct"·href="struct.OccupiedEntry.html"·title="struct·alloc::collections::btree_map::OccupiedEntry">OccupiedEntry</a>&lt;'_,·K,·V,·A&gt;&gt;<div·class="where">where207 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.first_entry"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.66.0">1.66.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map.rs.html#789-802">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.first_entry"·class="fn">first_entry</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="../../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="struct"·href="struct.OccupiedEntry.html"·title="struct·alloc::collections::btree_map::OccupiedEntry">OccupiedEntry</a>&lt;'_,·K,·V,·A&gt;&gt;<div·class="where">where
208 ····K:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,</div></h4></section></summary><div·class="docblock"><p>Returns·the·first·entry·in·the·map·for·in-place·manipulation.208 ····K:·<a·class="trait"·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,</div></h4></section></summary><div·class="docblock"><p>Returns·the·first·entry·in·the·map·for·in-place·manipulation.
209 The·key·of·this·entry·is·the·minimum·key·in·the·map.</p>209 The·key·of·this·entry·is·the·minimum·key·in·the·map.</p>
210 <h5·id="examples-7"><a·class="doc-anchor"·href="#examples-7">§</a>Examples</h5>210 <h5·id="examples-7"><a·class="doc-anchor"·href="#examples-7">§</a>Examples</h5>
211 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BTreeMap;211 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BTreeMap;
  
212 <span·class="kw">let·</span><span·class="kw-2">mut·</span>map·=·BTreeMap::new();212 <span·class="kw">let·</span><span·class="kw-2">mut·</span>map·=·BTreeMap::new();
213 map.insert(<span·class="number">1</span>,·<span·class="string">"a"</span>);213 map.insert(<span·class="number">1</span>,·<span·class="string">"a"</span>);
214 map.insert(<span·class="number">2</span>,·<span·class="string">"b"</span>);214 map.insert(<span·class="number">2</span>,·<span·class="string">"b"</span>);
215 <span·class="kw">if·let·</span><span·class="prelude-val">Some</span>(<span·class="kw-2">mut·</span>entry)·=·map.first_entry()·{215 <span·class="kw">if·let·</span><span·class="prelude-val">Some</span>(<span·class="kw-2">mut·</span>entry)·=·map.first_entry()·{
216 ····<span·class="kw">if·</span><span·class="kw-2">*</span>entry.key()·&gt;·<span·class="number">0·</span>{216 ····<span·class="kw">if·</span><span·class="kw-2">*</span>entry.key()·&gt;·<span·class="number">0·</span>{
217 ········entry.insert(<span·class="string">"first"</span>);217 ········entry.insert(<span·class="string">"first"</span>);
218 ····}218 ····}
219 }219 }
220 <span·class="macro">assert_eq!</span>(<span·class="kw-2">*</span>map.get(<span·class="kw-2">&amp;</span><span·class="number">1</span>).unwrap(),·<span·class="string">"first"</span>);220 <span·class="macro">assert_eq!</span>(<span·class="kw-2">*</span>map.get(<span·class="kw-2">&amp;</span><span·class="number">1</span>).unwrap(),·<span·class="string">"first"</span>);
221 <span·class="macro">assert_eq!</span>(<span·class="kw-2">*</span>map.get(<span·class="kw-2">&amp;</span><span·class="number">2</span>).unwrap(),·<span·class="string">"b"</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::BTreeMap;%0A++++%0A++++let+mut+map+=+BTreeMap::new();%0A++++map.insert(1,+%22a%22);%0A++++map.insert(2,+%22b%22);%0A++++if+let+Some(mut+entry)+=+map.first_entry()+%7B%0A++++++++if+*entry.key()+%3E+0+%7B%0A++++++++++++entry.insert(%22first%22);%0A++++++++%7D%0A++++%7D%0A++++assert_eq!(*map.get(%261).unwrap(),+%22first%22);%0A++++assert_eq!(*map.get(%262).unwrap(),+%22b%22);%0A%7D&amp;edition=2021"></a></div>221 <span·class="macro">assert_eq!</span>(<span·class="kw-2">*</span>map.get(<span·class="kw-2">&amp;</span><span·class="number">2</span>).unwrap(),·<span·class="string">"b"</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::BTreeMap;%0A++++%0A++++let+mut+map+=+BTreeMap::new();%0A++++map.insert(1,+%22a%22);%0A++++map.insert(2,+%22b%22);%0A++++if+let+Some(mut+entry)+=+map.first_entry()+%7B%0A++++++++if+*entry.key()+%3E+0+%7B%0A++++++++++++entry.insert(%22first%22);%0A++++++++%7D%0A++++%7D%0A++++assert_eq!(*map.get(%261).unwrap(),+%22first%22);%0A++++assert_eq!(*map.get(%262).unwrap(),+%22b%22);%0A%7D&amp;edition=2021"></a></div>
222 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.pop_first"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.66.0">1.66.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map.rs.html#823-828">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.pop_first"·class="fn">pop_first</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.tuple.html">(K,·V)</a>&gt;<div·class="where">where222 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.pop_first"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.66.0">1.66.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map.rs.html#823-828">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.pop_first"·class="fn">pop_first</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="../../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="../../../core/primitive.tuple.html">(K,·V)</a>&gt;<div·class="where">where
223 ····K:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,</div></h4></section></summary><div·class="docblock"><p>Removes·and·returns·the·first·element·in·the·map.223 ····K:·<a·class="trait"·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,</div></h4></section></summary><div·class="docblock"><p>Removes·and·returns·the·first·element·in·the·map.
224 The·key·of·this·element·is·the·minimum·key·that·was·in·the·map.</p>224 The·key·of·this·element·is·the·minimum·key·that·was·in·the·map.</p>
225 <h5·id="examples-8"><a·class="doc-anchor"·href="#examples-8">§</a>Examples</h5>225 <h5·id="examples-8"><a·class="doc-anchor"·href="#examples-8">§</a>Examples</h5>
226 <p>Draining·elements·in·ascending·order,·while·keeping·a·usable·map·each·iteration.</p>226 <p>Draining·elements·in·ascending·order,·while·keeping·a·usable·map·each·iteration.</p>
  
227 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BTreeMap;227 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BTreeMap;
  
228 <span·class="kw">let·</span><span·class="kw-2">mut·</span>map·=·BTreeMap::new();228 <span·class="kw">let·</span><span·class="kw-2">mut·</span>map·=·BTreeMap::new();
229 map.insert(<span·class="number">1</span>,·<span·class="string">"a"</span>);229 map.insert(<span·class="number">1</span>,·<span·class="string">"a"</span>);
230 map.insert(<span·class="number">2</span>,·<span·class="string">"b"</span>);230 map.insert(<span·class="number">2</span>,·<span·class="string">"b"</span>);
231 <span·class="kw">while·let·</span><span·class="prelude-val">Some</span>((key,·_val))·=·map.pop_first()·{231 <span·class="kw">while·let·</span><span·class="prelude-val">Some</span>((key,·_val))·=·map.pop_first()·{
232 ····<span·class="macro">assert!</span>(map.iter().all(|(k,·_v)|·<span·class="kw-2">*</span>k·&gt;·key));232 ····<span·class="macro">assert!</span>(map.iter().all(|(k,·_v)|·<span·class="kw-2">*</span>k·&gt;·key));
233 }233 }
234 <span·class="macro">assert!</span>(map.is_empty());</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::BTreeMap;%0A++++%0A++++let+mut+map+=+BTreeMap::new();%0A++++map.insert(1,+%22a%22);%0A++++map.insert(2,+%22b%22);%0A++++while+let+Some((key,+_val))+=+map.pop_first()+%7B%0A++++++++assert!(map.iter().all(%7C(k,+_v)%7C+*k+%3E+key));%0A++++%7D%0A++++assert!(map.is_empty());%0A%7D&amp;edition=2021"></a></div>234 <span·class="macro">assert!</span>(map.is_empty());</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::BTreeMap;%0A++++%0A++++let+mut+map+=+BTreeMap::new();%0A++++map.insert(1,+%22a%22);%0A++++map.insert(2,+%22b%22);%0A++++while+let+Some((key,+_val))+=+map.pop_first()+%7B%0A++++++++assert!(map.iter().all(%7C(k,+_v)%7C+*k+%3E+key));%0A++++%7D%0A++++assert!(map.is_empty());%0A%7D&amp;edition=2021"></a></div>
235 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.last_key_value"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.66.0">1.66.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map.rs.html#844-850">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.last_key_value"·class="fn">last_key_value</a>(&amp;self)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;K</a>,·<a·class="primitive"·href="https://doc.ru[·...·truncated·by·diffoscope;·len:·18,·SHA:·29ea1e0ca7ba92241a0244969365722b32bad48b66d66e57dd3ff89930e9d243·...·]/core/primitive.reference.html">&amp;V</a>)&gt;<div·class="where">where235 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.last_key_value"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.66.0">1.66.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map.rs.html#844-850">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.last_key_value"·class="fn">last_key_value</a>(&amp;self)·-&gt;·<a·class="enum"·href="../../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;(<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;K</a>,·<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;V</a>)&gt;<div·class="where">where
236 ····K:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,</div></h4></section></summary><div·class="docblock"><p>Returns·the·last·key-value·pair·in·the·map.236 ····K:·<a·class="trait"·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,</div></h4></section></summary><div·class="docblock"><p>Returns·the·last·key-value·pair·in·the·map.
237 The·key·in·this·pair·is·the·maximum·key·in·the·map.</p>237 The·key·in·this·pair·is·the·maximum·key·in·the·map.</p>
238 <h5·id="examples-9"><a·class="doc-anchor"·href="#examples-9">§</a>Examples</h5>238 <h5·id="examples-9"><a·class="doc-anchor"·href="#examples-9">§</a>Examples</h5>
239 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BTreeMap;239 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BTreeMap;
Max diff block lines reached; 256799/308820 bytes (83.15%) of diff not shown.
60.6 KB
./usr/share/doc/rust-doc/html/alloc/collections/btree_map/struct.Cursor.html
    
Offset 1, 40 lines modifiedOffset 1, 40 lines modified
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="A·cursor·over·a·`BTreeMap`."><title>Cursor·in·alloc::collections::btree_map·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»    2025-01-07)» (built»   from»       a»      source»tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Cursor</a></h2><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.next"·title="next">next</a></li><li><a·href="#method.peek_next"·title="peek_next">peek_next</a></li><li><a·href="#method.peek_prev"·title="peek_prev">peek_prev</a></li><li><a·href="#method.prev"·title="prev">prev</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-Cursor%3C'_,+K,+V%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-Cursor%3C'_,+K,+V%3E"·title="Debug">Debug</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-Cursor%3C'a,+K,+V%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Cursor%3C'a,+K,+V%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Cursor%3C'a,+K,+V%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-Cursor%3C'a,+K,+V%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-Cursor%3C'a,+K,+V%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Cursor%3C'a,+K,+V%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>collections::<wbr>btree_<wbr>map</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">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">btree_map</a></span><h1>Struct·<span·class="struct">Cursor</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/alloc/collections/btree/map.rs.html#2826-2830">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·Cursor&lt;'a,·K:·'a,·V:·'a&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>btree_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/107540">#107540</a>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>A·cursor·over·a·<code>BTreeMap</code>.</p>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="A·cursor·over·a·`BTreeMap`."><title>Cursor·in·alloc::collections::btree_map·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»    2025-01-07)» (built»   from»       a»      source»tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Cursor</a></h2><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.next"·title="next">next</a></li><li><a·href="#method.peek_next"·title="peek_next">peek_next</a></li><li><a·href="#method.peek_prev"·title="peek_prev">peek_prev</a></li><li><a·href="#method.prev"·title="prev">prev</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-Cursor%3C'_,+K,+V%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-Cursor%3C'_,+K,+V%3E"·title="Debug">Debug</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-Cursor%3C'a,+K,+V%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Cursor%3C'a,+K,+V%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Cursor%3C'a,+K,+V%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-Cursor%3C'a,+K,+V%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-Cursor%3C'a,+K,+V%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Cursor%3C'a,+K,+V%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>collections::<wbr>btree_<wbr>map</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">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">btree_map</a></span><h1>Struct·<span·class="struct">Cursor</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/alloc/collections/btree/map.rs.html#2826-2830">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·Cursor&lt;'a,·K:·'a,·V:·'a&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>btree_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/107540">#107540</a>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>A·cursor·over·a·<code>BTreeMap</code>.</p>
2 <p>A·<code>Cursor</code>·is·like·an·iterator,·except·that·it·can·freely·seek·back-and-forth.</p>2 <p>A·<code>Cursor</code>·is·like·an·iterator,·except·that·it·can·freely·seek·back-and-forth.</p>
3 <p>Cursors·always·point·to·a·gap·between·two·elements·in·the·map,·and·can3 <p>Cursors·always·point·to·a·gap·between·two·elements·in·the·map,·and·can
4 operate·on·the·two·immediately·adjacent·elements.</p>4 operate·on·the·two·immediately·adjacent·elements.</p>
5 <p>A·<code>Cursor</code>·is·created·with·the·<a·href="struct.BTreeMap.html#method.lower_bound"·title="method·alloc::collections::btree_map::BTreeMap::lower_bound"><code>BTreeMap::lower_bound</code></a>·and·<a·href="struct.BTreeMap.html#method.upper_bound"·title="method·alloc::collections::btree_map::BTreeMap::upper_bound"><code>BTreeMap::upper_bound</code></a>·methods.</p>5 <p>A·<code>Cursor</code>·is·created·with·the·<a·href="struct.BTreeMap.html#method.lower_bound"·title="method·alloc::collections::btree_map::BTreeMap::lower_bound"><code>BTreeMap::lower_bound</code></a>·and·<a·href="struct.BTreeMap.html#method.upper_bound"·title="method·alloc::collections::btree_map::BTreeMap::upper_bound"><code>BTreeMap::upper_bound</code></a>·methods.</p>
6 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Cursor%3C'a,+K,+V%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#2918-2978">Source</a><a·href="#impl-Cursor%3C'a,+K,+V%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·K,·V&gt;·<a·class="struct"·href="struct.Cursor.html"·title="struct·alloc::collections::btree_map::Cursor">Cursor</a>&lt;'a,·K,·V&gt;</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.next"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#2925-2938">Source</a><h4·class="code-header">pub·fn·<a·href="#method.next"·class="fn">next</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;'a·K</a>,·<a·class="primitive"·href="https://doc[·...·truncated·by·diffoscope;·len:·21,·SHA:·85d006986f76170e68dd3d648411ed95281236333225460c4f32a7c1f102d074·...·]/core/primitive.reference.html">&amp;'a·V</a>)&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>btree_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/107540">#107540</a>)</span></div></span></summary><div·class="docblock"><p>Advances·the·cursor·to·the·next·gap,·returning·the·key·and·value·of·the6 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Cursor%3C'a,+K,+V%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#2918-2978">Source</a><a·href="#impl-Cursor%3C'a,+K,+V%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·K,·V&gt;·<a·class="struct"·href="struct.Cursor.html"·title="struct·alloc::collections::btree_map::Cursor">Cursor</a>&lt;'a,·K,·V&gt;</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.next"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#2925-2938">Source</a><h4·class="code-header">pub·fn·<a·href="#method.next"·class="fn">next</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="../../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;(<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;'a·K</a>,·<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;'a·V</a>)&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>btree_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/107540">#107540</a>)</span></div></span></summary><div·class="docblock"><p>Advances·the·cursor·to·the·next·gap,·returning·the·key·and·value·of·the
7 element·that·it·moved·over.</p>7 element·that·it·moved·over.</p>
8 <p>If·the·cursor·is·already·at·the·end·of·the·map·then·<code>None</code>·is·returned8 <p>If·the·cursor·is·already·at·the·end·of·the·map·then·<code>None</code>·is·returned
9 and·the·cursor·is·not·moved.</p>9 and·the·cursor·is·not·moved.</p>
10 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.prev"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#2946-2959">Source</a><h4·class="code-header">pub·fn·<a·href="#method.prev"·class="fn">prev</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;'a·K</a>,·<a·class="primitive"·href="https://doc[·...·truncated·by·diffoscope;·len:·21,·SHA:·85d006986f76170e68dd3d648411ed95281236333225460c4f32a7c1f102d074·...·]/core/primitive.reference.html">&amp;'a·V</a>)&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>btree_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/107540">#107540</a>)</span></div></span></summary><div·class="docblock"><p>Advances·the·cursor·to·the·previous·gap,·returning·the·key·and·value·of10 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.prev"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#2946-2959">Source</a><h4·class="code-header">pub·fn·<a·href="#method.prev"·class="fn">prev</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="../../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;(<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;'a·K</a>,·<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;'a·V</a>)&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>btree_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/107540">#107540</a>)</span></div></span></summary><div·class="docblock"><p>Advances·the·cursor·to·the·previous·gap,·returning·the·key·and·value·of
11 the·element·that·it·moved·over.</p>11 the·element·that·it·moved·over.</p>
12 <p>If·the·cursor·is·already·at·the·start·of·the·map·then·<code>None</code>·is·returned12 <p>If·the·cursor·is·already·at·the·start·of·the·map·then·<code>None</code>·is·returned
13 and·the·cursor·is·not·moved.</p>13 and·the·cursor·is·not·moved.</p>
14 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peek_next"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#2966-2968">Source</a><h4·class="code-header">pub·fn·<a·href="#method.peek_next"·class="fn">peek_next</a>(&amp;self)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;'a·K</a>,·<a·class="primitive"·href="https://doc[·...·truncated·by·diffoscope;·len:·21,·SHA:·85d006986f76170e68dd3d648411ed95281236333225460c4f32a7c1f102d074·...·]/core/primitive.reference.html">&amp;'a·V</a>)&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>btree_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/107540">#107540</a>)</span></div></span></summary><div·class="docblock"><p>Returns·a·reference·to·the·key·and·value·of·the·next·element·without14 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peek_next"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#2966-2968">Source</a><h4·class="code-header">pub·fn·<a·href="#method.peek_next"·class="fn">peek_next</a>(&amp;self)·-&gt;·<a·class="enum"·href="../../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;(<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;'a·K</a>,·<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;'a·V</a>)&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>btree_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/107540">#107540</a>)</span></div></span></summary><div·class="docblock"><p>Returns·a·reference·to·the·key·and·value·of·the·next·element·without
15 moving·the·cursor.</p>15 moving·the·cursor.</p>
16 <p>If·the·cursor·is·at·the·end·of·the·map·then·<code>None</code>·is·returned.</p>16 <p>If·the·cursor·is·at·the·end·of·the·map·then·<code>None</code>·is·returned.</p>
17 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peek_prev"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#2975-2977">Source</a><h4·class="code-header">pub·fn·<a·href="#method.peek_prev"·class="fn">peek_prev</a>(&amp;self)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;'a·K</a>,·<a·class="primitive"·href="https://doc[·...·truncated·by·diffoscope;·len:·21,·SHA:·85d006986f76170e68dd3d648411ed95281236333225460c4f32a7c1f102d074·...·]/core/primitive.reference.html">&amp;'a·V</a>)&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>btree_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/107540">#107540</a>)</span></div></span></summary><div·class="docblock"><p>Returns·a·reference·to·the·key·and·value·of·the·previous·element17 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peek_prev"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#2975-2977">Source</a><h4·class="code-header">pub·fn·<a·href="#method.peek_prev"·class="fn">peek_prev</a>(&amp;self)·-&gt;·<a·class="enum"·href="../../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;(<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;'a·K</a>,·<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;'a·V</a>)&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>btree_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/107540">#107540</a>)</span></div></span></summary><div·class="docblock"><p>Returns·a·reference·to·the·key·and·value·of·the·previous·element
18 without·moving·the·cursor.</p>18 without·moving·the·cursor.</p>
19 <p>If·the·cursor·is·at·the·start·of·the·map·then·<code>None</code>·is·returned.</p>19 <p>If·the·cursor·is·at·the·start·of·the·map·then·<code>None</code>·is·returned.</p>
20 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-Cursor%3C'_,+K,+V%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#2833-2838">Source</a><a·href="#impl-Clone-for-Cursor%3C'_,+K,+V%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;K,·V&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struct"·href="struct.Cursor.html"·title="struct·alloc::collections::btree_map::Cursor">Cursor</a>&lt;'_,·K,·V&gt;</h3></section></summary[·...·truncated·by·diffoscope;·len:·3832,·SHA:·d7743995339135fceef794b5ff30832a136d3f6fd746379e313006f91a7002cb·...·]/core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="struct"·href="struct.Cursor.html"·title="struct·alloc::collections::btree_map::Cursor">Cursor</a>&lt;'a,·K,·V&gt;<div·class="where">where20 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-Cursor%3C'_,+K,+V%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#2833-2838">Source</a><a·href="#impl-Clone-for-Cursor%3C'_,+K,+V%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;K,·V&gt;·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struct"·href="struct.Cursor.html"·title="struct·alloc::collections::btree_map::Cursor">Cursor</a>&lt;'_,·K,·V&gt;</h3></section></summary><div·class="impl-items"[·...·truncated·by·diffoscope;·len:·3640,·SHA:·3618978f25402d4a573fe1fa11ef0d526317df9a2afae8c0eac5cce9a5ea1ff7·...·]/core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="struct"·href="struct.Cursor.html"·title="struct·alloc::collections::btree_map::Cursor">Cursor</a>&lt;'a,·K,·V&gt;<div·class="where">where
21 ····K:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,21 ····K:·<a·class="trait"·href="../../../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,
22 ····V:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,</div></h3></section><section·id="impl-Send-for-Cursor%3C'a,+K,+V%3E"·class="impl"><a·href="#impl-Send[·...·truncated·by·diffoscope;·len:·147,·SHA:·b5e9ae5b7ac4ca404d755912d48fa29a9b06566e1921b6475bc5d27d71144bef·...·]/core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="struct"·href="struct.Cursor.html"·title="struct·alloc::collections::btree_map::Cursor">Cursor</a>&lt;'a,·K,·V&gt;<div·class="where">where22 ····V:·<a·class="trait"·href="../../../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,</div></h3></section><section·id="impl-Send-for-Cursor%3C'a,+K,+V%3E"·class="impl"><a·href="#impl-Send-for-Cursor%3C'a,+K,+V%3[·...·truncated·by·diffoscope;·len:·99,·SHA:·38b0789bfad0aa031af9efbef8aaa0a882f185de2c24bca332375087765701d2·...·]/core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="struct"·href="struct.Cursor.html"·title="struct·alloc::collections::btree_map::Cursor">Cursor</a>&lt;'a,·K,·V&gt;<div·class="where">where
23 ····K:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>,23 ····K:·<a·class="trait"·href="../../../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>,
24 ····V:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>,</div></h3></section><section·id="impl-Sync-for-Cursor%3C'a,+K,+V%3E"·class="impl"><a·href="#impl-Sync-for-Cursor%3C'a,+K,+V%3E"·class="anchor">§</a><h3[·...·truncated·by·diffoscope;·len:·97,·SHA:·04b2ba845b865214a984b2f17d77f97b91e2762d3258231233c783c4dec340dd·...·]/core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="struct"·href="struct.Cursor.html"·title="struct·alloc::collections::btree_map::Cursor">Cursor</a>&lt;'a,·K,·V&gt;<div·class="where">where24 ····V:·<a·class="trait"·href="../../../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>,</div></h3></section><section·id="impl-Sync-for-Cursor%3C'a,+K,+V%3E"·class="impl"><a·href="#impl-Sync-for-Cursor%3C'a,+K,+V%3E"·class="anchor">§</a><h3·class="code-header">imp[·...·truncated·by·diffoscope;·len:·49,·SHA:·a3962e74ee85c310d05013960d989de4c1057f97c8ae3dde6be0360ddc114306·...·]/core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="struct"·href="struct.Cursor.html"·title="struct·alloc::collections::btree_map::Cursor">Cursor</a>&lt;'a,·K,·V&gt;<div·class="where">where
25 ····K:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>,25 ····K:·<a·class="trait"·href="../../../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>,
26 ····V:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>,</div></h3></section><section·id="impl-Unpin-for-Cursor%3C'a,+K,+V%3E"·class="impl"><a·href="#impl-Unpin-for-Cursor%3C'a,+K,+V%3E"·class="anchor">§</a><[·...·truncated·by·diffoscope;·len:·556,·SHA:·bd9cf04d548e64a335e9e794165bffdf42ed5d8607ba5237b2f28e85f29e8e0e·...·]/core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="struct"·href="struct.Cursor.html"·title="struct·alloc::collections::btree_map::Cursor">Cursor</a>&lt;'a,·K,·V&gt;<div·class="where">where26 ····V:·<a·class="trait"·href="../../../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>,</div></h3></section><section·id="impl-Unpin-for-Cursor%3C'a,+K,+V%3E"·class="impl"><a·href="#impl-Unpin-for-Cursor%3C'a,+K,+V%3E"·class="anchor">§</a><h3·class="code-header">i[·...·truncated·by·diffoscope;·len:·484,·SHA:·08f8367236c2f4e9468dbcecfe8d80dadbd27ea739a595b93c3420c8267d465c·...·]/core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="struct"·href="struct.Cursor.html"·title="struct·alloc::collections::btree_map::Cursor">Cursor</a>&lt;'a,·K,·V&gt;<div·class="where">where
27 ····K:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,27 ····K:·<a·class="trait"·href="../../../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,
28 ····V:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,</div></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementat[·...·truncated·by·diffoscope;·len:·437,·SHA:·a52fd08e1c9354801da0d71245c94faa82849943038ee3eff62637aaedf75d65·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where28 ····V:·<a·class="trait"·href="../../../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,</div></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementations<a·href="#blanket-im[·...·truncated·by·diffoscope;·len:·365,·SHA:·f00ece4f5872815019648692969de68b1bd616c3a7718f1a6de7310f204999e9·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where
29 ····T:·'static·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method[·...·truncated·by·diffoscope;·len:·834,·SHA:·47dfc2aa0101a4103e2a94c1f971c559790d87a62d58631fd2bfed98e6616a34·...·]/src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where29 ····T:·'static·+·?<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="s[·...·truncated·by·diffoscope;·len:·690,·SHA:·5140301cd9ff79a41eb9c4e21645354b7b39f4611f9b3646b7c859a62ac61067·...·]/src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where
30 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·[·...·truncated·by·diffoscope;·len:·743,·SHA:·b1db3ba49d399b0b1340fa997418ee1ae0ece93cc3579963c53bf7040ec0ded6·...·]/src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.BorrowMut.html"·title="trait·alloc::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where30 ····T:·?<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="sr[·...·truncated·by·diffoscope;·len:·647,·SHA:·eced384f314b303c18919389c5abe4a96aec1091fccffab1a095e21ec4389338·...·]/src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.BorrowMut.html"·title="trait·alloc::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where
31 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="met[·...·truncated·by·diffoscope;·len:·960,·SHA:·c6354ea8fcf3b570a130235df299ddea9063b0fb7e35c91d7c9308744705dcad·...·]/core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where31 ····T:·?<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class[·...·truncated·by·diffoscope;·len:·840,·SHA:·65730076d1351b96bbc7870dcc45245c8046decde9b269779ff691512c7b6cda·...·]/core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where
32 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="[·...·truncated·by·diffoscope;·len:·1883,·SHA:·e07301fb9e28f950d7450480a6b68014ffcdcc3be12b1adda27936cb1244377e·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>32 ····T:·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·cl[·...·truncated·by·diffoscope;·len:·1643,·SHA:·1eae2ed9452ffcbbe8b3cb569c26d9b61c935793fb647d6b79fd502b505ae03b·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>
33 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where33 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where
34 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="m[·...·truncated·by·diffoscope;·len:·237,·SHA:·98603c35860102b3af9b5cf27aeabf39e3c03236551986a6ec030817f108d919·...·]/core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>34 ····U:·<a·class="trait"·href="../../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·cla[·...·truncated·by·diffoscope;·len:·165,·SHA:·423a04a226f49c7f9a948f8c413dc8519f4a9a96a55914b6e6a694710d81c0f7·...·]/core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>
35 <p>That·is,·this·conversion·is·whatever·the·implementation·of35 <p>That·is,·this·conversion·is·whatever·the·implementation·of
36 <code><a·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>36 <code><a·href="../../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>
37 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/borrow.rs.html#82-94">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where37 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/borrow.rs.html#82-94">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where
38 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·t[·...·truncated·by·diffoscope;·len:·2003,·SHA:·ecb61562e7a62580c9ad7b3f8856e4e317eddb7fa8d5eb388664331cf5eb31c0·...·]/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where38 ····T:·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src[·...·truncated·by·diffoscope;·len:·1907,·SHA:·a3ba85d2ecc25713cf37fd24854d68ee7f0f59359c2678ed0204a7cdb8c27a28·...·]/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where
39 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="asso[·...·truncated·by·diffoscope;·len:·1973,·SHA:·db4b8407e8e20581ad139aef25a6221a11da0f5f18d6aa35aa33eb843f4e1b9f·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where39 ····U:·<a·class="trait"·href="../../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><[·...·truncated·by·diffoscope;·len:·1709,·SHA:·e896b9bb1c9fd7d11ed5b2485b9a6fcb8a8eedc15783c2750df398ecae6b320e·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where
40 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·clas[·...·truncated·by·diffoscope;·len:·1578,·SHA:·998d5af10fd889567cd999d1306bfd16c91134d2238a3c172f1e7fa8ed138c18·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>40 ····U:·<a·class="trait"·href="../../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-[·...·truncated·by·diffoscope;·len:·1338,·SHA:·bf7fc0d673df53e1a193a897ac1592a2d85070ae590f9624c2e5404df56f3bb0·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>
58.2 KB
./usr/share/doc/rust-doc/html/alloc/collections/btree_map/struct.CursorMut.html
    
Offset 3, 26 lines modifiedOffset 3, 26 lines modified
3 safely·mutate·the·map·during·iteration.·This·is·because·the·lifetime·of·its·yielded3 safely·mutate·the·map·during·iteration.·This·is·because·the·lifetime·of·its·yielded
4 references·is·tied·to·its·own·lifetime,·instead·of·just·the·underlying·map.·This·means4 references·is·tied·to·its·own·lifetime,·instead·of·just·the·underlying·map.·This·means
5 cursors·cannot·yield·multiple·elements·at·once.</p>5 cursors·cannot·yield·multiple·elements·at·once.</p>
6 <p>Cursors·always·point·to·a·gap·between·two·elements·in·the·map,·and·can6 <p>Cursors·always·point·to·a·gap·between·two·elements·in·the·map,·and·can
7 operate·on·the·two·immediately·adjacent·elements.</p>7 operate·on·the·two·immediately·adjacent·elements.</p>
8 <p>A·<code>CursorMut</code>·is·created·with·the·<a·href="struct.BTreeMap.html#method.lower_bound_mut"·title="method·alloc::collections::btree_map::BTreeMap::lower_bound_mut"><code>BTreeMap::lower_bound_mut</code></a>·and·<a·href="struct.BTreeMap.html#method.upper_bound_mut"·title="method·alloc::collections::btree_map::BTreeMap::upper_bound_mut"><code>BTreeMap::upper_bound_mut</code></a>8 <p>A·<code>CursorMut</code>·is·created·with·the·<a·href="struct.BTreeMap.html#method.lower_bound_mut"·title="method·alloc::collections::btree_map::BTreeMap::lower_bound_mut"><code>BTreeMap::lower_bound_mut</code></a>·and·<a·href="struct.BTreeMap.html#method.upper_bound_mut"·title="method·alloc::collections::btree_map::BTreeMap::upper_bound_mut"><code>BTreeMap::upper_bound_mut</code></a>
9 methods.</p>9 methods.</p>
10 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-CursorMut%3C'a,+K,+V,+A%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#2980-3048">Source</a><a·href="#impl-CursorMut%3C'a,+K,+V,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·K,·V,·A&gt;·<a·class="struct"·href="struct.CursorMut.html"·title="struct·alloc::collections::btree_map::CursorMut">CursorMut</a>&lt;'a,·K,·V,·A&gt;</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.next"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#2987-2990">Source</a><h4·class="code-header">pub·fn·<a·href="#method.next"·class="fn">next</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;K</a>,·<a·class="primitive"·href="https://doc.ru[·...·truncated·by·diffoscope;·len:·18,·SHA:·29ea1e0ca7ba92241a0244969365722b32bad48b66d66e57dd3ff89930e9d243·...·]/core/primitive.reference.html">&amp;mut·V</a>)&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>btree_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/107540">#107540</a>)</span></div></span></summary><div·class="docblock"><p>Advances·the·cursor·to·the·next·gap,·returning·the·key·and·value·of·the10 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-CursorMut%3C'a,+K,+V,+A%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#2980-3048">Source</a><a·href="#impl-CursorMut%3C'a,+K,+V,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·K,·V,·A&gt;·<a·class="struct"·href="struct.CursorMut.html"·title="struct·alloc::collections::btree_map::CursorMut">CursorMut</a>&lt;'a,·K,·V,·A&gt;</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.next"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#2987-2990">Source</a><h4·class="code-header">pub·fn·<a·href="#method.next"·class="fn">next</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="../../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;(<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;K</a>,·<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;mut·V</a>)&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>btree_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/107540">#107540</a>)</span></div></span></summary><div·class="docblock"><p>Advances·the·cursor·to·the·next·gap,·returning·the·key·and·value·of·the
11 element·that·it·moved·over.</p>11 element·that·it·moved·over.</p>
12 <p>If·the·cursor·is·already·at·the·end·of·the·map·then·<code>None</code>·is·returned12 <p>If·the·cursor·is·already·at·the·end·of·the·map·then·<code>None</code>·is·returned
13 and·the·cursor·is·not·moved.</p>13 and·the·cursor·is·not·moved.</p>
14 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.prev"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#2998-3001">Source</a><h4·class="code-header">pub·fn·<a·href="#method.prev"·class="fn">prev</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;K</a>,·<a·class="primitive"·href="https://doc.ru[·...·truncated·by·diffoscope;·len:·18,·SHA:·29ea1e0ca7ba92241a0244969365722b32bad48b66d66e57dd3ff89930e9d243·...·]/core/primitive.reference.html">&amp;mut·V</a>)&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>btree_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/107540">#107540</a>)</span></div></span></summary><div·class="docblock"><p>Advances·the·cursor·to·the·previous·gap,·returning·the·key·and·value·of14 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.prev"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#2998-3001">Source</a><h4·class="code-header">pub·fn·<a·href="#method.prev"·class="fn">prev</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="../../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;(<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;K</a>,·<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;mut·V</a>)&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>btree_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/107540">#107540</a>)</span></div></span></summary><div·class="docblock"><p>Advances·the·cursor·to·the·previous·gap,·returning·the·key·and·value·of
15 the·element·that·it·moved·over.</p>15 the·element·that·it·moved·over.</p>
16 <p>If·the·cursor·is·already·at·the·start·of·the·map·then·<code>None</code>·is·returned16 <p>If·the·cursor·is·already·at·the·start·of·the·map·then·<code>None</code>·is·returned
17 and·the·cursor·is·not·moved.</p>17 and·the·cursor·is·not·moved.</p>
18 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peek_next"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#3008-3011">Source</a><h4·class="code-header">pub·fn·<a·href="#method.peek_next"·class="fn">peek_next</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;K</a>,·<a·class="primitive"·href="https://doc.ru[·...·truncated·by·diffoscope;·len:·18,·SHA:·29ea1e0ca7ba92241a0244969365722b32bad48b66d66e57dd3ff89930e9d243·...·]/core/primitive.reference.html">&amp;mut·V</a>)&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>btree_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/107540">#107540</a>)</span></div></span></summary><div·class="docblock"><p>Returns·a·reference·to·the·key·and·value·of·the·next·element·without18 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peek_next"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#3008-3011">Source</a><h4·class="code-header">pub·fn·<a·href="#method.peek_next"·class="fn">peek_next</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="../../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;(<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;K</a>,·<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;mut·V</a>)&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>btree_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/107540">#107540</a>)</span></div></span></summary><div·class="docblock"><p>Returns·a·reference·to·the·key·and·value·of·the·next·element·without
19 moving·the·cursor.</p>19 moving·the·cursor.</p>
20 <p>If·the·cursor·is·at·the·end·of·the·map·then·<code>None</code>·is·returned.</p>20 <p>If·the·cursor·is·at·the·end·of·the·map·then·<code>None</code>·is·returned.</p>
21 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peek_prev"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#3018-3021">Source</a><h4·class="code-header">pub·fn·<a·href="#method.peek_prev"·class="fn">peek_prev</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;K</a>,·<a·class="primitive"·href="https://doc.ru[·...·truncated·by·diffoscope;·len:·18,·SHA:·29ea1e0ca7ba92241a0244969365722b32bad48b66d66e57dd3ff89930e9d243·...·]/core/primitive.reference.html">&amp;mut·V</a>)&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>btree_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/107540">#107540</a>)</span></div></span></summary><div·class="docblock"><p>Returns·a·reference·to·the·key·and·value·of·the·previous·element21 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peek_prev"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#3018-3021">Source</a><h4·class="code-header">pub·fn·<a·href="#method.peek_prev"·class="fn">peek_prev</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="../../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;(<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;K</a>,·<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;mut·V</a>)&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>btree_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/107540">#107540</a>)</span></div></span></summary><div·class="docblock"><p>Returns·a·reference·to·the·key·and·value·of·the·previous·element
22 without·moving·the·cursor.</p>22 without·moving·the·cursor.</p>
23 <p>If·the·cursor·is·at·the·start·of·the·map·then·<code>None</code>·is·returned.</p>23 <p>If·the·cursor·is·at·the·start·of·the·map·then·<code>None</code>·is·returned.</p>
24 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.as_cursor"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#3030-3032">Source</a><h4·class="code-header">pub·fn·<a·href="#method.as_cursor"·class="fn">as_cursor</a>(&amp;self)·-&gt;·<a·class="struct"·href="struct.Cursor.html"·title="struct·alloc::collections::btree_map::Cursor">Cursor</a>&lt;'_,·K,·V&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>btree_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/107540">#107540</a>)</span></div></span></summary><div·class="docblock"><p>Returns·a·read-only·cursor·pointing·to·the·same·location·as·the24 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.as_cursor"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#3030-3032">Source</a><h4·class="code-header">pub·fn·<a·href="#method.as_cursor"·class="fn">as_cursor</a>(&amp;self)·-&gt;·<a·class="struct"·href="struct.Cursor.html"·title="struct·alloc::collections::btree_map::Cursor">Cursor</a>&lt;'_,·K,·V&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>btree_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/107540">#107540</a>)</span></div></span></summary><div·class="docblock"><p>Returns·a·read-only·cursor·pointing·to·the·same·location·as·the
25 <code>CursorMut</code>.</p>25 <code>CursorMut</code>.</p>
26 <p>The·lifetime·of·the·returned·<code>Cursor</code>·is·bound·to·that·of·the26 <p>The·lifetime·of·the·returned·<code>Cursor</code>·is·bound·to·that·of·the
27 <code>CursorMut</code>,·which·means·it·cannot·outlive·the·<code>CursorMut</code>·and·that·the27 <code>CursorMut</code>,·which·means·it·cannot·outlive·the·<code>CursorMut</code>·and·that·the
28 <code>CursorMut</code>·is·frozen·for·the·lifetime·of·the·<code>Cursor</code>.</p>28 <code>CursorMut</code>·is·frozen·for·the·lifetime·of·the·<code>Cursor</code>.</p>
Offset 31, 15 lines modifiedOffset 31, 15 lines modified
31 <h5·id="safety"><a·class="doc-anchor"·href="#safety">§</a>Safety</h5>31 <h5·id="safety"><a·class="doc-anchor"·href="#safety">§</a>Safety</h5>
32 <p>Since·this·cursor·allows·mutating·keys,·you·must·ensure·that·the·<code>BTreeMap</code>32 <p>Since·this·cursor·allows·mutating·keys,·you·must·ensure·that·the·<code>BTreeMap</code>
33 invariants·are·maintained.·Specifically:</p>33 invariants·are·maintained.·Specifically:</p>
34 <ul>34 <ul>
35 <li>The·key·of·the·newly·inserted·element·must·be·unique·in·the·tree.</li>35 <li>The·key·of·the·newly·inserted·element·must·be·unique·in·the·tree.</li>
36 <li>All·keys·in·the·tree·must·remain·in·sorted·order.</li>36 <li>All·keys·in·the·tree·must·remain·in·sorted·order.</li>
37 </ul>37 </ul>
38 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-CursorMut%3C'a,+K,+V,+A%3E-1"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#3347-3431">Source</a><a·href="#impl-CursorMut%3C'a,+K,+V,+A%3E-1"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·K:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,·V,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·+·<a·class="trait"·href="https://doc.rust-lan[·...·truncated·by·diffoscope;·len:·12,·SHA:·2979001f505a96825986d71a5ea6327059dec2724720b92951850de0f7863ac8·...·]/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>&gt;·<a·class="struct"·href="struct.CursorMut.html"·title="struct·alloc::collections::btree_map::CursorMut">CursorMut</a>&lt;'a,·K,·V,·A&gt;</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.insert_after_unchecked"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#3362-3364">Source</a><h4·class="code-header">pub·unsafe·fn·<a·href="#method.insert_after_unchecked"·class="fn">insert_after_unchecked</a>(&amp;mut·self,·key:·K,·value:·V)</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>btree_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/107540">#107540</a>)</span></div></span></summary><div·class="docblock"><p>Inserts·a·new·key-value·pair·into·the·map·in·the·gap·that·the38 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-CursorMut%3C'a,+K,+V,+A%3E-1"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#3347-3431">Source</a><a·href="#impl-CursorMut%3C'a,+K,+V,+A%3E-1"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·K:·<a·class="trait"·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,·V,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·+·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>&gt;·<a·class="struct"·href="struct.CursorMut.html"·title="struct·alloc::collections::btree_map::CursorMut">CursorMut</a>&lt;'a,·K,·V,·A&gt;</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.insert_after_unchecked"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#3362-3364">Source</a><h4·class="code-header">pub·unsafe·fn·<a·href="#method.insert_after_unchecked"·class="fn">insert_after_unchecked</a>(&amp;mut·self,·key:·K,·value:·V)</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>btree_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/107540">#107540</a>)</span></div></span></summary><div·class="docblock"><p>Inserts·a·new·key-value·pair·into·the·map·in·the·gap·that·the
39 cursor·is·currently·pointing·to.</p>39 cursor·is·currently·pointing·to.</p>
40 <p>After·the·insertion·the·cursor·will·be·pointing·at·the·gap·after·the40 <p>After·the·insertion·the·cursor·will·be·pointing·at·the·gap·after·the
41 newly·inserted·element.</p>41 newly·inserted·element.</p>
42 <h5·id="safety-1"><a·class="doc-anchor"·href="#safety-1">§</a>Safety</h5>42 <h5·id="safety-1"><a·class="doc-anchor"·href="#safety-1">§</a>Safety</h5>
43 <p>You·must·ensure·that·the·<code>BTreeMap</code>·invariants·are·maintained.43 <p>You·must·ensure·that·the·<code>BTreeMap</code>·invariants·are·maintained.
44 Specifically:</p>44 Specifically:</p>
45 <ul>45 <ul>
Offset 57, 53 lines modifiedOffset 57, 53 lines modified
57 <li>The·key·of·the·newly·inserted·element·must·be·unique·in·the·tree.</li>57 <li>The·key·of·the·newly·inserted·element·must·be·unique·in·the·tree.</li>
58 <li>All·keys·in·the·tree·must·remain·in·sorted·order.</li>58 <li>All·keys·in·the·tree·must·remain·in·sorted·order.</li>
59 </ul>59 </ul>
60 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.insert_after"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#3395-3397">Source</a><h4·class="code-header">pub·fn·<a·href="#method.insert_after"·class="fn">insert_after</a>(60 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.insert_after"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#3395-3397">Source</a><h4·class="code-header">pub·fn·<a·href="#method.insert_after"·class="fn">insert_after</a>(
61 ····&amp;mut·self,61 ····&amp;mut·self,
62 ····key:·K,62 ····key:·K,
63 ····value:·V,63 ····value:·V,
64 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.UnorderedKeyError.html"·title="struct·alloc::collections::btree_map::UnorderedKeyError">UnorderedKeyError</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>btree_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/107540">#107540</a>)</span></div></span></summary><div·class="docblock"><p>Inserts·a·new·key-value·pair·into·the·map·in·the·gap·that·the64 )·-&gt;·<a·class="enum"·href="../../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="primitive"·href="../../../core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.UnorderedKeyError.html"·title="struct·alloc::collections::btree_map::UnorderedKeyError">UnorderedKeyError</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>btree_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/107540">#107540</a>)</span></div></span></summary><div·class="docblock"><p>Inserts·a·new·key-value·pair·into·the·map·in·the·gap·that·the
65 cursor·is·currently·pointing·to.</p>65 cursor·is·currently·pointing·to.</p>
66 <p>After·the·insertion·the·cursor·will·be·pointing·at·the·gap·before·the66 <p>After·the·insertion·the·cursor·will·be·pointing·at·the·gap·before·the
67 newly·inserted·element.</p>67 newly·inserted·element.</p>
68 <p>If·the·inserted·key·is·not·greater·than·the·key·before·the·cursor68 <p>If·the·inserted·key·is·not·greater·than·the·key·before·the·cursor
69 (if·any),·or·if·it·not·less·than·the·key·after·the·cursor·(if·any),69 (if·any),·or·if·it·not·less·than·the·key·after·the·cursor·(if·any),
70 then·an·<a·href="struct.UnorderedKeyError.html"·title="struct·alloc::collections::btree_map::UnorderedKeyError"><code>UnorderedKeyError</code></a>·is·returned·since·this·would70 then·an·<a·href="struct.UnorderedKeyError.html"·title="struct·alloc::collections::btree_map::UnorderedKeyError"><code>UnorderedKeyError</code></a>·is·returned·since·this·would
71 invalidate·the·<a·href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord"><code>Ord</code></a>·invariant·between·the·keys·of·the·map.</p>71 invalidate·the·<a·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord"><code>Ord</code></a>·invariant·between·the·keys·of·the·map.</p>
72 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.insert_before"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#3410-3412">Source</a><h4·class="code-header">pub·fn·<a·href="#method.insert_before"·class="fn">insert_before</a>(72 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.insert_before"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#3410-3412">Source</a><h4·class="code-header">pub·fn·<a·href="#method.insert_before"·class="fn">insert_before</a>(
73 ····&amp;mut·self,73 ····&amp;mut·self,
74 ····key:·K,74 ····key:·K,
75 ····value:·V,75 ····value:·V,
76 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.UnorderedKeyError.html"·title="struct·alloc::collections::btree_map::UnorderedKeyError">UnorderedKeyError</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>btree_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/107540">#107540</a>)</span></div></span></summary><div·class="docblock"><p>Inserts·a·new·key-value·pair·into·the·map·in·the·gap·that·the76 )·-&gt;·<a·class="enum"·href="../../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="primitive"·href="../../../core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.UnorderedKeyError.html"·title="struct·alloc::collections::btree_map::UnorderedKeyError">UnorderedKeyError</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>btree_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/107540">#107540</a>)</span></div></span></summary><div·class="docblock"><p>Inserts·a·new·key-value·pair·into·the·map·in·the·gap·that·the
77 cursor·is·currently·pointing·to.</p>77 cursor·is·currently·pointing·to.</p>
78 <p>After·the·insertion·the·cursor·will·be·pointing·at·the·gap·after·the78 <p>After·the·insertion·the·cursor·will·be·pointing·at·the·gap·after·the
79 newly·inserted·element.</p>79 newly·inserted·element.</p>
80 <p>If·the·inserted·key·is·not·greater·than·the·key·before·the·cursor80 <p>If·the·inserted·key·is·not·greater·than·the·key·before·the·cursor
81 (if·any),·or·if·it·not·less·than·the·key·after·the·cursor·(if·any),81 (if·any),·or·if·it·not·less·than·the·key·after·the·cursor·(if·any),
82 then·an·<a·href="struct.UnorderedKeyError.html"·title="struct·alloc::collections::btree_map::UnorderedKeyError"><code>UnorderedKeyError</code></a>·is·returned·since·this·would82 then·an·<a·href="struct.UnorderedKeyError.html"·title="struct·alloc::collections::btree_map::UnorderedKeyError"><code>UnorderedKeyError</code></a>·is·returned·since·this·would
83 invalidate·the·<a·href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord"><code>Ord</code></a>·invariant·between·the·keys·of·the·map.</p>83 invalidate·the·<a·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord"><code>Ord</code></a>·invariant·between·the·keys·of·the·map.</p>
84 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.remove_next"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#3419-3421">Source</a><h4·class="code-header">pub·fn·<a·href="#method.remove_next"·class="fn">remove_next</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.tuple.html">(K,·V)</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>btree_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/107540">#107540</a>)</span></div></span></summary><div·class="docblock"><p>Removes·the·next·element·from·the·<code>BTreeMap</code>.</p>84 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.remove_next"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#3419-3421">Source</a><h4·class="code-header">pub·fn·<a·href="#method.remove_next"·class="fn">remove_next</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="../../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="../../../core/primitive.tuple.html">(K,·V)</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>btree_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/107540">#107540</a>)</span></div></span></summary><div·class="docblock"><p>Removes·the·next·element·from·the·<code>BTreeMap</code>.</p>
85 <p>The·element·that·was·removed·is·returned.·The·cursor·position·is85 <p>The·element·that·was·removed·is·returned.·The·cursor·position·is
86 unchanged·(before·the·removed·element).</p>86 unchanged·(before·the·removed·element).</p>
87 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.remove_prev"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#3428-3430">Source</a><h4·class="code-header">pub·fn·<a·href="#method.remove_prev"·class="fn">remove_prev</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.tuple.html">(K,·V)</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>btree_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/107540">#107540</a>)</span></div></span></summary><div·class="docblock"><p>Removes·the·preceding·element·from·the·<code>BTreeMap</code>.</p>87 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.remove_prev"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#3428-3430">Source</a><h4·class="code-header">pub·fn·<a·href="#method.remove_prev"·class="fn">remove_prev</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="../../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="../../../core/primitive.tuple.html">(K,·V)</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>btree_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/107540">#107540</a>)</span></div></span></summary><div·class="docblock"><p>Removes·the·preceding·element·from·the·<code>BTreeMap</code>.</p>
88 <p>The·element·that·was·removed·is·returned.·The·cursor·position·is88 <p>The·element·that·was·removed·is·returned.·The·cursor·position·is
89 unchanged·(after·the·removed·element).</p>89 unchanged·(after·the·removed·element).</p>
90 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-CursorMut%3C'_,+K,+V,+A%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#2870-2874">Source</a><a·href="#impl-Debug-for-CursorMut%3C'_,+K,+V,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;K:·<a·class="trait"·href="../../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,·V:·<a·class="trait"·href="../../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,·A&gt;·<a·class="trait"·href="../../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.CursorMut.html"·title="struct·alloc::collections::btree_map::CursorMut">CursorMut</a>&lt;'_,·K,·V,·A&gt;</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#2871-2873">Source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="../../fmt/struct.Formatter.html"·title="struct·alloc::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="type"·href="../../fmt/type.Result.html"·title="type·alloc::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../../fmt/trait.Debug.html#tymethod.fmt">Read·more</a></div></details></div></details></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-CursorMut%3C'a,+K,+V,+A%3E"·class="impl"><a·href="#impl-Freeze-for-CursorMut%3C'a,+K,+V,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·K,·V,·A&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="struct"·href="struct.CursorMut.html"·title="struct·alloc::collections::btree_map::CursorMut">CursorMut</a>&lt;'a,·K,·V,·A&gt;</h3></[·...·truncated·by·diffoscope;·len:·269,·SHA:·aec9e309585080533600ba073f80da2a5e824d03c54fbe3440e5cd443253fea2·...·]/core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="struct"·href="struct.CursorMut.html"·title="struct·alloc::collections::btree_map::CursorMut">CursorMut</a>&lt;'a,·K,·V,·A&gt;<div·class="where">where90 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-CursorMut%3C'_,+K,+V,+A%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#2870-2874">Source</a><a·href="#impl-Debug-for-CursorMut%3C'_,+K,+V,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;K:·<a·class="trait"·href="../../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,·V:·<a·class="trait"·href="../../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,·A&gt;·<a·class="trait"·href="../../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.CursorMut.html"·title="struct·alloc::collections::btree_map::CursorMut">CursorMut</a>&lt;'_,·K,·V,·A&gt;</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#2871-2873">Source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="../../fmt/struct.Formatter.html"·title="struct·alloc::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="type"·href="../../fmt/type.Result.html"·title="type·alloc::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../../fmt/trait.Debug.html#tymethod.fmt">Read·more</a></div></details></div></details></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-CursorMut%3C'a,+K,+V,+A%3E"·class="impl"><a·href="#impl-Freeze-for-CursorMut%3C'a,+K,+V,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·K,·V,·A&gt;·<a·class="trait"·href="../../../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="struct"·href="struct.CursorMut.html"·title="struct·alloc::collections::btree_map::CursorMut">CursorMut</a>&lt;'a,·K,·V,·A&gt;</h3></section><section·id="imp[·...·truncated·by·diffoscope;·len:·221,·SHA:·4973814b9cf3f1a3f7aa4e0fddbac88aa809248f821a273017f557f1335fbf6d·...·]/core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="struct"·href="struct.CursorMut.html"·title="struct·alloc::collections::btree_map::CursorMut">CursorMut</a>&lt;'a,·K,·V,·A&gt;<div·class="where">where
91 ····A:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,91 ····A:·<a·class="trait"·href="../../../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,
92 ····K:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,92 ····K:·<a·class="trait"·href="../../../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,
93 ····V:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,</div></h3></section><section·id="impl-Send-for-CursorMut%3C'a,+K,+V,+A%3E"·class="impl"><a·href="#imp[·...·truncated·by·diffoscope;·len:·162,·SHA:·4b88109678dc6cd5ddcb45b7aabc67dea9c4f31e44bcb4df608892094a3a2b4a·...·]/core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="struct"·href="struct.CursorMut.html"·title="struct·alloc::collections::btree_map::CursorMut">CursorMut</a>&lt;'a,·K,·V,·A&gt;<div·class="where">where93 ····V:·<a·class="trait"·href="../../../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,</div></h3></section><section·id="impl-Send-for-CursorMut%3C'a,+K,+V,+A%3E"·class="impl"><a·href="#impl-Send-for-CursorMut%3C'[·...·truncated·by·diffoscope;·len:·114,·SHA:·4e845124a99d9eaed61bfc5f9761c479ecd11b3a47cff7e308ad1241ded738aa·...·]/core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="struct"·href="struct.CursorMut.html"·title="struct·alloc::collections::btree_map::CursorMut">CursorMut</a>&lt;'a,·K,·V,·A&gt;<div·class="where">where
94 ····A:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>,94 ····A:·<a·class="trait"·href="../../../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>,
95 ····K:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>,95 ····K:·<a·class="trait"·href="../../../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>,
96 ····V:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>,</div></h3></section><section·id="impl-Sync-for-CursorMut%3C'a,+K,+V,+A%3E"·class="impl"><a·href="#impl-Sync-for-CursorMut%3C'a,+K,+V,+A%3E"·class="anch[·...·truncated·by·diffoscope;·len:·112,·SHA:·66cedfc49cb4180829d63753c167f0f2e4a583d96ccf16dadfcbe9b7071cb030·...·]/core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="struct"·href="struct.CursorMut.html"·title="struct·alloc::collections::btree_map::CursorMut">CursorMut</a>&lt;'a,·K,·V,·A&gt;<div·class="where">where96 ····V:·<a·class="trait"·href="../../../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>,</div></h3></section><section·id="impl-Sync-for-CursorMut%3C'a,+K,+V,+A%3E"·class="impl"><a·href="#impl-Sync-for-CursorMut%3C'a,+K,+V,+A%3E"·class="anchor">§</a><h3·class="code[·...·truncated·by·diffoscope;·len:·64,·SHA:·b44bc74be70a95d1e3cc7cb8f0fa839f889455575aebcc8cf20fc9e79d76c2c0·...·]/core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="struct"·href="struct.CursorMut.html"·title="struct·alloc::collections::btree_map::CursorMut">CursorMut</a>&lt;'a,·K,·V,·A&gt;<div·class="where">where
97 ····A:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>,97 ····A:·<a·class="trait"·href="../../../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>,
98 ····K:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>,98 ····K:·<a·class="trait"·href="../../../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>,
99 ····V:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>,</div></h3></section><section·id="impl-Unpin-for-CursorMut%3C'a,+K,+V,+A%3E"·class="impl"><a·href="#impl-Unpin-for-CursorMut%3C'a,+K,+V,+A%3E"·class="an[·...·truncated·by·diffoscope;·len:·1489,·SHA:·bdbbfac3b833b64dfbb9a2c42b7ae0728d7eb0bec7e7fbe3cce3e76a3655ea7c·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where99 ····V:·<a·class="trait"·href="../../../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>,</div></h3></section><section·id="impl-Unpin-for-CursorMut%3C'a,+K,+V,+A%3E"·class="impl"><a·href="#impl-Unpin-for-CursorMut%3C'a,+K,+V,+A%3E"·class="anchor">§</a><h3·class="co[·...·truncated·by·diffoscope;·len:·1369,·SHA:·1fbe001d78b84a822f67d80f0f4363e41343a1298ec982ccb629066cd381d2b1·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where
100 ····T:·'static·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method[·...·truncated·by·diffoscope;·len:·834,·SHA:·47dfc2aa0101a4103e2a94c1f971c559790d87a62d58631fd2bfed98e6616a34·...·]/src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where100 ····T:·'static·+·?<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="s[·...·truncated·by·diffoscope;·len:·690,·SHA:·5140301cd9ff79a41eb9c4e21645354b7b39f4611f9b3646b7c859a62ac61067·...·]/src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where
101 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·[·...·truncated·by·diffoscope;·len:·743,·SHA:·b1db3ba49d399b0b1340fa997418ee1ae0ece93cc3579963c53bf7040ec0ded6·...·]/src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.BorrowMut.html"·title="trait·alloc::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where101 ····T:·?<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="sr[·...·truncated·by·diffoscope;·len:·647,·SHA:·eced384f314b303c18919389c5abe4a96aec1091fccffab1a095e21ec4389338·...·]/src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.BorrowMut.html"·title="trait·alloc::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where
102 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="met[·...·truncated·by·diffoscope;·len:·1422,·SHA:·3b5041f32ed902526095ebde8745452b32cbfac2cd9503735eec716deff7280f·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>102 ····T:·?<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class[·...·truncated·by·diffoscope;·len:·1254,·SHA:·7fcbbe8bd9862b59809c60d05e5f59904ccadf8a3a9f11da30f9fcc6b839c5b3·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>
103 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where103 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where
104 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="m[·...·truncated·by·diffoscope;·len:·237,·SHA:·98603c35860102b3af9b5cf27aeabf39e3c03236551986a6ec030817f108d919·...·]/core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>104 ····U:·<a·class="trait"·href="../../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·cla[·...·truncated·by·diffoscope;·len:·165,·SHA:·423a04a226f49c7f9a948f8c413dc8519f4a9a96a55914b6e6a694710d81c0f7·...·]/core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>
105 <p>That·is,·this·conversion·is·whatever·the·implementation·of105 <p>That·is,·this·conversion·is·whatever·the·implementation·of
106 <code><a·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>106 <code><a·href="../../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>
107 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#805-807">Source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where107 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../../src/core/convert/mod.rs.html#805-807">Source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where
108 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="asso[·...·truncated·by·diffoscope;·len:·1973,·SHA:·db4b8407e8e20581ad139aef25a6221a11da0f5f18d6aa35aa33eb843f4e1b9f·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where108 ····U:·<a·class="trait"·href="../../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><[·...·truncated·by·diffoscope;·len:·1709,·SHA:·e896b9bb1c9fd7d11ed5b2485b9a6fcb8a8eedc15783c2750df398ecae6b320e·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where
109 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·clas[·...·truncated·by·diffoscope;·len:·1578,·SHA:·998d5af10fd889567cd999d1306bfd16c91134d2238a3c172f1e7fa8ed138c18·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>109 ····U:·<a·class="trait"·href="../../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-[·...·truncated·by·diffoscope;·len:·1338,·SHA:·bf7fc0d673df53e1a193a897ac1592a2d85070ae590f9624c2e5404df56f3bb0·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>
57.8 KB
./usr/share/doc/rust-doc/html/alloc/collections/btree_map/struct.CursorMutKey.html
    
Offset 11, 34 lines modifiedOffset 11, 34 lines modified
11 <h2·id="safety"><a·class="doc-anchor"·href="#safety">§</a>Safety</h2>11 <h2·id="safety"><a·class="doc-anchor"·href="#safety">§</a>Safety</h2>
12 <p>Since·this·cursor·allows·mutating·keys,·you·must·ensure·that·the·<code>BTreeMap</code>12 <p>Since·this·cursor·allows·mutating·keys,·you·must·ensure·that·the·<code>BTreeMap</code>
13 invariants·are·maintained.·Specifically:</p>13 invariants·are·maintained.·Specifically:</p>
14 <ul>14 <ul>
15 <li>The·key·of·the·newly·inserted·element·must·be·unique·in·the·tree.</li>15 <li>The·key·of·the·newly·inserted·element·must·be·unique·in·the·tree.</li>
16 <li>All·keys·in·the·tree·must·remain·in·sorted·order.</li>16 <li>All·keys·in·the·tree·must·remain·in·sorted·order.</li>
17 </ul>17 </ul>
18 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-CursorMutKey%3C'a,+K,+V,+A%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#3050-3139">Source</a><a·href="#impl-CursorMutKey%3C'a,+K,+V,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·K,·V,·A&gt;·<a·class="struct"·href="struct.CursorMutKey.html"·title="struct·alloc::collections::btree_map::CursorMutKey">CursorMutKey</a>&lt;'a,·K,·V,·A&gt;</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.next"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#3057-3074">Source</a><h4·class="code-header">pub·fn·<a·href="#method.next"·class="fn">next</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;mut·K</a>,·<a·class="primitive"·href="https://do[·...·truncated·by·diffoscope;·len:·22,·SHA:·6475088d4694b26cd866c817a532f97554af8405d9ac71412020d9762619c6b1·...·]/core/primitive.reference.html">&amp;mut·V</a>)&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>btree_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/107540">#107540</a>)</span></div></span></summary><div·class="docblock"><p>Advances·the·cursor·to·the·next·gap,·returning·the·key·and·value·of·the18 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-CursorMutKey%3C'a,+K,+V,+A%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#3050-3139">Source</a><a·href="#impl-CursorMutKey%3C'a,+K,+V,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·K,·V,·A&gt;·<a·class="struct"·href="struct.CursorMutKey.html"·title="struct·alloc::collections::btree_map::CursorMutKey">CursorMutKey</a>&lt;'a,·K,·V,·A&gt;</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.next"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#3057-3074">Source</a><h4·class="code-header">pub·fn·<a·href="#method.next"·class="fn">next</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="../../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;(<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;mut·K</a>,·<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;mut·V</a>)&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>btree_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/107540">#107540</a>)</span></div></span></summary><div·class="docblock"><p>Advances·the·cursor·to·the·next·gap,·returning·the·key·and·value·of·the
19 element·that·it·moved·over.</p>19 element·that·it·moved·over.</p>
20 <p>If·the·cursor·is·already·at·the·end·of·the·map·then·<code>None</code>·is·returned20 <p>If·the·cursor·is·already·at·the·end·of·the·map·then·<code>None</code>·is·returned
21 and·the·cursor·is·not·moved.</p>21 and·the·cursor·is·not·moved.</p>
22 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.prev"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#3082-3099">Source</a><h4·class="code-header">pub·fn·<a·href="#method.prev"·class="fn">prev</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;mut·K</a>,·<a·class="primitive"·href="https://do[·...·truncated·by·diffoscope;·len:·22,·SHA:·6475088d4694b26cd866c817a532f97554af8405d9ac71412020d9762619c6b1·...·]/core/primitive.reference.html">&amp;mut·V</a>)&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>btree_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/107540">#107540</a>)</span></div></span></summary><div·class="docblock"><p>Advances·the·cursor·to·the·previous·gap,·returning·the·key·and·value·of22 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.prev"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#3082-3099">Source</a><h4·class="code-header">pub·fn·<a·href="#method.prev"·class="fn">prev</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="../../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;(<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;mut·K</a>,·<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;mut·V</a>)&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>btree_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/107540">#107540</a>)</span></div></span></summary><div·class="docblock"><p>Advances·the·cursor·to·the·previous·gap,·returning·the·key·and·value·of
23 the·element·that·it·moved·over.</p>23 the·element·that·it·moved·over.</p>
24 <p>If·the·cursor·is·already·at·the·start·of·the·map·then·<code>None</code>·is·returned24 <p>If·the·cursor·is·already·at·the·start·of·the·map·then·<code>None</code>·is·returned
25 and·the·cursor·is·not·moved.</p>25 and·the·cursor·is·not·moved.</p>
26 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peek_next"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#3106-3111">Source</a><h4·class="code-header">pub·fn·<a·href="#method.peek_next"·class="fn">peek_next</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;mut·K</a>,·<a·class="primitive"·href="https://do[·...·truncated·by·diffoscope;·len:·22,·SHA:·6475088d4694b26cd866c817a532f97554af8405d9ac71412020d9762619c6b1·...·]/core/primitive.reference.html">&amp;mut·V</a>)&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>btree_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/107540">#107540</a>)</span></div></span></summary><div·class="docblock"><p>Returns·a·reference·to·the·key·and·value·of·the·next·element·without26 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peek_next"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#3106-3111">Source</a><h4·class="code-header">pub·fn·<a·href="#method.peek_next"·class="fn">peek_next</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="../../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;(<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;mut·K</a>,·<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;mut·V</a>)&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>btree_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/107540">#107540</a>)</span></div></span></summary><div·class="docblock"><p>Returns·a·reference·to·the·key·and·value·of·the·next·element·without
27 moving·the·cursor.</p>27 moving·the·cursor.</p>
28 <p>If·the·cursor·is·at·the·end·of·the·map·then·<code>None</code>·is·returned.</p>28 <p>If·the·cursor·is·at·the·end·of·the·map·then·<code>None</code>·is·returned.</p>
29 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peek_prev"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#3118-3123">Source</a><h4·class="code-header">pub·fn·<a·href="#method.peek_prev"·class="fn">peek_prev</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;mut·K</a>,·<a·class="primitive"·href="https://do[·...·truncated·by·diffoscope;·len:·22,·SHA:·6475088d4694b26cd866c817a532f97554af8405d9ac71412020d9762619c6b1·...·]/core/primitive.reference.html">&amp;mut·V</a>)&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>btree_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/107540">#107540</a>)</span></div></span></summary><div·class="docblock"><p>Returns·a·reference·to·the·key·and·value·of·the·previous·element29 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peek_prev"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#3118-3123">Source</a><h4·class="code-header">pub·fn·<a·href="#method.peek_prev"·class="fn">peek_prev</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="../../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;(<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;mut·K</a>,·<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;mut·V</a>)&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>btree_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/107540">#107540</a>)</span></div></span></summary><div·class="docblock"><p>Returns·a·reference·to·the·key·and·value·of·the·previous·element
30 without·moving·the·cursor.</p>30 without·moving·the·cursor.</p>
31 <p>If·the·cursor·is·at·the·start·of·the·map·then·<code>None</code>·is·returned.</p>31 <p>If·the·cursor·is·at·the·start·of·the·map·then·<code>None</code>·is·returned.</p>
32 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.as_cursor"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#3132-3138">Source</a><h4·class="code-header">pub·fn·<a·href="#method.as_cursor"·class="fn">as_cursor</a>(&amp;self)·-&gt;·<a·class="struct"·href="struct.Cursor.html"·title="struct·alloc::collections::btree_map::Cursor">Cursor</a>&lt;'_,·K,·V&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>btree_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/107540">#107540</a>)</span></div></span></summary><div·class="docblock"><p>Returns·a·read-only·cursor·pointing·to·the·same·location·as·the32 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.as_cursor"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#3132-3138">Source</a><h4·class="code-header">pub·fn·<a·href="#method.as_cursor"·class="fn">as_cursor</a>(&amp;self)·-&gt;·<a·class="struct"·href="struct.Cursor.html"·title="struct·alloc::collections::btree_map::Cursor">Cursor</a>&lt;'_,·K,·V&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>btree_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/107540">#107540</a>)</span></div></span></summary><div·class="docblock"><p>Returns·a·read-only·cursor·pointing·to·the·same·location·as·the
33 <code>CursorMutKey</code>.</p>33 <code>CursorMutKey</code>.</p>
34 <p>The·lifetime·of·the·returned·<code>Cursor</code>·is·bound·to·that·of·the34 <p>The·lifetime·of·the·returned·<code>Cursor</code>·is·bound·to·that·of·the
35 <code>CursorMutKey</code>,·which·means·it·cannot·outlive·the·<code>CursorMutKey</code>·and·that·the35 <code>CursorMutKey</code>,·which·means·it·cannot·outlive·the·<code>CursorMutKey</code>·and·that·the
36 <code>CursorMutKey</code>·is·frozen·for·the·lifetime·of·the·<code>Cursor</code>.</p>36 <code>CursorMutKey</code>·is·frozen·for·the·lifetime·of·the·<code>Cursor</code>.</p>
37 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-CursorMutKey%3C'a,+K,+V,+A%3E-1"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#3142-3345">Source</a><a·href="#impl-CursorMutKey%3C'a,+K,+V,+A%3E-1"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·K:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,·V,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·+·<a·class="trait"·href="https://doc.rust-lan[·...·truncated·by·diffoscope;·len:·12,·SHA:·2979001f505a96825986d71a5ea6327059dec2724720b92951850de0f7863ac8·...·]/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>&gt;·<a·class="struct"·href="struct.CursorMutKey.html"·title="struct·alloc::collections::btree_map::CursorMutKey">CursorMutKey</a>&lt;'a,·K,·V,·A&gt;</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.insert_after_unchecked"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#3157-3184">Source</a><h4·class="code-header">pub·unsafe·fn·<a·href="#method.insert_after_unchecked"·class="fn">insert_after_unchecked</a>(&amp;mut·self,·key:·K,·value:·V)</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>btree_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/107540">#107540</a>)</span></div></span></summary><div·class="docblock"><p>Inserts·a·new·key-value·pair·into·the·map·in·the·gap·that·the37 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-CursorMutKey%3C'a,+K,+V,+A%3E-1"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#3142-3345">Source</a><a·href="#impl-CursorMutKey%3C'a,+K,+V,+A%3E-1"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·K:·<a·class="trait"·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,·V,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·+·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>&gt;·<a·class="struct"·href="struct.CursorMutKey.html"·title="struct·alloc::collections::btree_map::CursorMutKey">CursorMutKey</a>&lt;'a,·K,·V,·A&gt;</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.insert_after_unchecked"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#3157-3184">Source</a><h4·class="code-header">pub·unsafe·fn·<a·href="#method.insert_after_unchecked"·class="fn">insert_after_unchecked</a>(&amp;mut·self,·key:·K,·value:·V)</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>btree_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/107540">#107540</a>)</span></div></span></summary><div·class="docblock"><p>Inserts·a·new·key-value·pair·into·the·map·in·the·gap·that·the
38 cursor·is·currently·pointing·to.</p>38 cursor·is·currently·pointing·to.</p>
39 <p>After·the·insertion·the·cursor·will·be·pointing·at·the·gap·before·the39 <p>After·the·insertion·the·cursor·will·be·pointing·at·the·gap·before·the
40 newly·inserted·element.</p>40 newly·inserted·element.</p>
41 <h5·id="safety-1"><a·class="doc-anchor"·href="#safety-1">§</a>Safety</h5>41 <h5·id="safety-1"><a·class="doc-anchor"·href="#safety-1">§</a>Safety</h5>
42 <p>You·must·ensure·that·the·<code>BTreeMap</code>·invariants·are·maintained.42 <p>You·must·ensure·that·the·<code>BTreeMap</code>·invariants·are·maintained.
43 Specifically:</p>43 Specifically:</p>
44 <ul>44 <ul>
Offset 56, 53 lines modifiedOffset 56, 53 lines modified
56 <li>The·key·of·the·newly·inserted·element·must·be·unique·in·the·tree.</li>56 <li>The·key·of·the·newly·inserted·element·must·be·unique·in·the·tree.</li>
57 <li>All·keys·in·the·tree·must·remain·in·sorted·order.</li>57 <li>All·keys·in·the·tree·must·remain·in·sorted·order.</li>
58 </ul>58 </ul>
59 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.insert_after"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#3243-3258">Source</a><h4·class="code-header">pub·fn·<a·href="#method.insert_after"·class="fn">insert_after</a>(59 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.insert_after"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#3243-3258">Source</a><h4·class="code-header">pub·fn·<a·href="#method.insert_after"·class="fn">insert_after</a>(
60 ····&amp;mut·self,60 ····&amp;mut·self,
61 ····key:·K,61 ····key:·K,
62 ····value:·V,62 ····value:·V,
63 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.UnorderedKeyError.html"·title="struct·alloc::collections::btree_map::UnorderedKeyError">UnorderedKeyError</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>btree_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/107540">#107540</a>)</span></div></span></summary><div·class="docblock"><p>Inserts·a·new·key-value·pair·into·the·map·in·the·gap·that·the63 )·-&gt;·<a·class="enum"·href="../../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="primitive"·href="../../../core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.UnorderedKeyError.html"·title="struct·alloc::collections::btree_map::UnorderedKeyError">UnorderedKeyError</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>btree_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/107540">#107540</a>)</span></div></span></summary><div·class="docblock"><p>Inserts·a·new·key-value·pair·into·the·map·in·the·gap·that·the
64 cursor·is·currently·pointing·to.</p>64 cursor·is·currently·pointing·to.</p>
65 <p>After·the·insertion·the·cursor·will·be·pointing·at·the·gap·before·the65 <p>After·the·insertion·the·cursor·will·be·pointing·at·the·gap·before·the
66 newly·inserted·element.</p>66 newly·inserted·element.</p>
67 <p>If·the·inserted·key·is·not·greater·than·the·key·before·the·cursor67 <p>If·the·inserted·key·is·not·greater·than·the·key·before·the·cursor
68 (if·any),·or·if·it·not·less·than·the·key·after·the·cursor·(if·any),68 (if·any),·or·if·it·not·less·than·the·key·after·the·cursor·(if·any),
69 then·an·<a·href="struct.UnorderedKeyError.html"·title="struct·alloc::collections::btree_map::UnorderedKeyError"><code>UnorderedKeyError</code></a>·is·returned·since·this·would69 then·an·<a·href="struct.UnorderedKeyError.html"·title="struct·alloc::collections::btree_map::UnorderedKeyError"><code>UnorderedKeyError</code></a>·is·returned·since·this·would
70 invalidate·the·<a·href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord"><code>Ord</code></a>·invariant·between·the·keys·of·the·map.</p>70 invalidate·the·<a·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord"><code>Ord</code></a>·invariant·between·the·keys·of·the·map.</p>
71 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.insert_before"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#3271-3286">Source</a><h4·class="code-header">pub·fn·<a·href="#method.insert_before"·class="fn">insert_before</a>(71 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.insert_before"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#3271-3286">Source</a><h4·class="code-header">pub·fn·<a·href="#method.insert_before"·class="fn">insert_before</a>(
72 ····&amp;mut·self,72 ····&amp;mut·self,
73 ····key:·K,73 ····key:·K,
74 ····value:·V,74 ····value:·V,
75 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.UnorderedKeyError.html"·title="struct·alloc::collections::btree_map::UnorderedKeyError">UnorderedKeyError</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>btree_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/107540">#107540</a>)</span></div></span></summary><div·class="docblock"><p>Inserts·a·new·key-value·pair·into·the·map·in·the·gap·that·the75 )·-&gt;·<a·class="enum"·href="../../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="primitive"·href="../../../core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.UnorderedKeyError.html"·title="struct·alloc::collections::btree_map::UnorderedKeyError">UnorderedKeyError</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>btree_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/107540">#107540</a>)</span></div></span></summary><div·class="docblock"><p>Inserts·a·new·key-value·pair·into·the·map·in·the·gap·that·the
76 cursor·is·currently·pointing·to.</p>76 cursor·is·currently·pointing·to.</p>
77 <p>After·the·insertion·the·cursor·will·be·pointing·at·the·gap·after·the77 <p>After·the·insertion·the·cursor·will·be·pointing·at·the·gap·after·the
78 newly·inserted·element.</p>78 newly·inserted·element.</p>
79 <p>If·the·inserted·key·is·not·greater·than·the·key·before·the·cursor79 <p>If·the·inserted·key·is·not·greater·than·the·key·before·the·cursor
80 (if·any),·or·if·it·not·less·than·the·key·after·the·cursor·(if·any),80 (if·any),·or·if·it·not·less·than·the·key·after·the·cursor·(if·any),
81 then·an·<a·href="struct.UnorderedKeyError.html"·title="struct·alloc::collections::btree_map::UnorderedKeyError"><code>UnorderedKeyError</code></a>·is·returned·since·this·would81 then·an·<a·href="struct.UnorderedKeyError.html"·title="struct·alloc::collections::btree_map::UnorderedKeyError"><code>UnorderedKeyError</code></a>·is·returned·since·this·would
82 invalidate·the·<a·href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord"><code>Ord</code></a>·invariant·between·the·keys·of·the·map.</p>82 invalidate·the·<a·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord"><code>Ord</code></a>·invariant·between·the·keys·of·the·map.</p>
83 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.remove_next"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#3293-3315">Source</a><h4·class="code-header">pub·fn·<a·href="#method.remove_next"·class="fn">remove_next</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.tuple.html">(K,·V)</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>btree_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/107540">#107540</a>)</span></div></span></summary><div·class="docblock"><p>Removes·the·next·element·from·the·<code>BTreeMap</code>.</p>83 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.remove_next"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#3293-3315">Source</a><h4·class="code-header">pub·fn·<a·href="#method.remove_next"·class="fn">remove_next</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="../../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="../../../core/primitive.tuple.html">(K,·V)</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>btree_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/107540">#107540</a>)</span></div></span></summary><div·class="docblock"><p>Removes·the·next·element·from·the·<code>BTreeMap</code>.</p>
84 <p>The·element·that·was·removed·is·returned.·The·cursor·position·is84 <p>The·element·that·was·removed·is·returned.·The·cursor·position·is
85 unchanged·(before·the·removed·element).</p>85 unchanged·(before·the·removed·element).</p>
86 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.remove_prev"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#3322-3344">Source</a><h4·class="code-header">pub·fn·<a·href="#method.remove_prev"·class="fn">remove_prev</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.tuple.html">(K,·V)</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>btree_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/107540">#107540</a>)</span></div></span></summary><div·class="docblock"><p>Removes·the·preceding·element·from·the·<code>BTreeMap</code>.</p>86 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.remove_prev"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#3322-3344">Source</a><h4·class="code-header">pub·fn·<a·href="#method.remove_prev"·class="fn">remove_prev</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="../../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="../../../core/primitive.tuple.html">(K,·V)</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>btree_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/107540">#107540</a>)</span></div></span></summary><div·class="docblock"><p>Removes·the·preceding·element·from·the·<code>BTreeMap</code>.</p>
87 <p>The·element·that·was·removed·is·returned.·The·cursor·position·is87 <p>The·element·that·was·removed·is·returned.·The·cursor·position·is
88 unchanged·(after·the·removed·element).</p>88 unchanged·(after·the·removed·element).</p>
89 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-CursorMutKey%3C'_,+K,+V,+A%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#2912-2916">Source</a><a·href="#impl-Debug-for-CursorMutKey%3C'_,+K,+V,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;K:·<a·class="trait"·href="../../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,·V:·<a·class="trait"·href="../../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,·A&gt;·<a·class="trait"·href="../../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.CursorMutKey.html"·title="struct·alloc::collections::btree_map::CursorMutKey">CursorMutKey</a>&lt;'_,·K,·V,·A&gt;</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#2913-2915">Source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="../../fmt/struct.Formatter.html"·title="struct·alloc::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="type"·href="../../fmt/type.Result.html"·title="type·alloc::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../../fmt/trait.Debug.html#tymethod.fmt">Read·more</a></div></details></div></details></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-CursorMutKey%3C'a,+K,+V,+A%3E"·class="impl"><a·href="#impl-Freeze-for-CursorMutKey%3C'a,+K,+V,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·K,·V,·A&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="struct"·href="struct.CursorMutKey.html"·title="struct·alloc::collections::btree_map::CursorMutKey">CursorMutKey</a>&lt;'a,·K,·V,·A&g[·...·truncated·by·diffoscope;·len:·284,·SHA:·382f279b2ac342c1a4240bcb33acc880601a5c6e70f53fcec6a8eef5e6fae686·...·]/core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="struct"·href="struct.CursorMutKey.html"·title="struct·alloc::collections::btree_map::CursorMutKey">CursorMutKey</a>&lt;'a,·K,·V,·A&gt;<div·class="where">where89 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-CursorMutKey%3C'_,+K,+V,+A%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#2912-2916">Source</a><a·href="#impl-Debug-for-CursorMutKey%3C'_,+K,+V,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;K:·<a·class="trait"·href="../../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,·V:·<a·class="trait"·href="../../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,·A&gt;·<a·class="trait"·href="../../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.CursorMutKey.html"·title="struct·alloc::collections::btree_map::CursorMutKey">CursorMutKey</a>&lt;'_,·K,·V,·A&gt;</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#2913-2915">Source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="../../fmt/struct.Formatter.html"·title="struct·alloc::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="type"·href="../../fmt/type.Result.html"·title="type·alloc::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../../fmt/trait.Debug.html#tymethod.fmt">Read·more</a></div></details></div></details></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-CursorMutKey%3C'a,+K,+V,+A%3E"·class="impl"><a·href="#impl-Freeze-for-CursorMutKey%3C'a,+K,+V,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·K,·V,·A&gt;·<a·class="trait"·href="../../../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="struct"·href="struct.CursorMutKey.html"·title="struct·alloc::collections::btree_map::CursorMutKey">CursorMutKey</a>&lt;'a,·K,·V,·A&gt;</h3></section><sectio[·...·truncated·by·diffoscope;·len:·236,·SHA:·651186456731d8b1e6f17eff5ae436596c9062c59050fa23fb028914415a8e7a·...·]/core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="struct"·href="struct.CursorMutKey.html"·title="struct·alloc::collections::btree_map::CursorMutKey">CursorMutKey</a>&lt;'a,·K,·V,·A&gt;<div·class="where">where
90 ····A:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,90 ····A:·<a·class="trait"·href="../../../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,
91 ····K:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,91 ····K:·<a·class="trait"·href="../../../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,
92 ····V:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,</div></h3></section><section·id="impl-Send-for-CursorMutKey%3C'a,+K,+V,+A%3E"·class="impl"><a·href="#[·...·truncated·by·diffoscope;·len:·168,·SHA:·e5db86dc708517ccf633320b7a7f8b11e8c24cd6087666be5e1f14b210d02a0c·...·]/core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="struct"·href="struct.CursorMutKey.html"·title="struct·alloc::collections::btree_map::CursorMutKey">CursorMutKey</a>&lt;'a,·K,·V,·A&gt;<div·class="where">where92 ····V:·<a·class="trait"·href="../../../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,</div></h3></section><section·id="impl-Send-for-CursorMutKey%3C'a,+K,+V,+A%3E"·class="impl"><a·href="#impl-Send-for-CursorMutK[·...·truncated·by·diffoscope;·len:·120,·SHA:·ac83f10120063fa1a13aef08673123a0dc461275f06991bfbb059363ea90c919·...·]/core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="struct"·href="struct.CursorMutKey.html"·title="struct·alloc::collections::btree_map::CursorMutKey">CursorMutKey</a>&lt;'a,·K,·V,·A&gt;<div·class="where">where
93 ····A:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>,93 ····A:·<a·class="trait"·href="../../../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>,
94 ····K:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>,94 ····K:·<a·class="trait"·href="../../../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>,
95 ····V:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>,</div></h3></section><section·id="impl-Sync-for-CursorMutKey%3C'a,+K,+V,+A%3E"·class="impl"><a·href="#impl-Sync-for-CursorMutKey%3C'a,+K,+V,+A%3E"·class[·...·truncated·by·diffoscope;·len:·118,·SHA:·3cd7e05edd7f9a6a69c0db1ea6ea38ef06e88875d0e345ba4a9ed1e11079e9b1·...·]/core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="struct"·href="struct.CursorMutKey.html"·title="struct·alloc::collections::btree_map::CursorMutKey">CursorMutKey</a>&lt;'a,·K,·V,·A&gt;<div·class="where">where95 ····V:·<a·class="trait"·href="../../../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>,</div></h3></section><section·id="impl-Sync-for-CursorMutKey%3C'a,+K,+V,+A%3E"·class="impl"><a·href="#impl-Sync-for-CursorMutKey%3C'a,+K,+V,+A%3E"·class="anchor">§</a><h3·class[·...·truncated·by·diffoscope;·len:·70,·SHA:·1d4a50e5392485f165b850bde694706bc91f65fb729d9c60019694520741cc13·...·]/core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="struct"·href="struct.CursorMutKey.html"·title="struct·alloc::collections::btree_map::CursorMutKey">CursorMutKey</a>&lt;'a,·K,·V,·A&gt;<div·class="where">where
96 ····A:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>,96 ····A:·<a·class="trait"·href="../../../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>,
97 ····K:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>,97 ····K:·<a·class="trait"·href="../../../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>,
98 ····V:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>,</div></h3></section><section·id="impl-Unpin-for-CursorMutKey%3C'a,+K,+V,+A%3E"·class="impl"><a·href="#impl-Unpin-for-CursorMutKey%3C'a,+K,+V,+A%3E"·cla[·...·truncated·by·diffoscope;·len:·1519,·SHA:·1825c76ad8aeecdbbd394300a42743ab1090cf118c93da772cad2162c31c1373·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where98 ····V:·<a·class="trait"·href="../../../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>,</div></h3></section><section·id="impl-Unpin-for-CursorMutKey%3C'a,+K,+V,+A%3E"·class="impl"><a·href="#impl-Unpin-for-CursorMutKey%3C'a,+K,+V,+A%3E"·class="anchor">§</a><h3·cla[·...·truncated·by·diffoscope;·len:·1399,·SHA:·aa0de6d6d2a3b5a56aa694f5be08ea23870b67e92659252a2277b9670fb974d9·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where
99 ····T:·'static·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method[·...·truncated·by·diffoscope;·len:·834,·SHA:·47dfc2aa0101a4103e2a94c1f971c559790d87a62d58631fd2bfed98e6616a34·...·]/src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where99 ····T:·'static·+·?<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="s[·...·truncated·by·diffoscope;·len:·690,·SHA:·5140301cd9ff79a41eb9c4e21645354b7b39f4611f9b3646b7c859a62ac61067·...·]/src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where
100 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·[·...·truncated·by·diffoscope;·len:·743,·SHA:·b1db3ba49d399b0b1340fa997418ee1ae0ece93cc3579963c53bf7040ec0ded6·...·]/src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.BorrowMut.html"·title="trait·alloc::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where100 ····T:·?<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="sr[·...·truncated·by·diffoscope;·len:·647,·SHA:·eced384f314b303c18919389c5abe4a96aec1091fccffab1a095e21ec4389338·...·]/src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.BorrowMut.html"·title="trait·alloc::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where
101 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="met[·...·truncated·by·diffoscope;·len:·1422,·SHA:·3b5041f32ed902526095ebde8745452b32cbfac2cd9503735eec716deff7280f·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>101 ····T:·?<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class[·...·truncated·by·diffoscope;·len:·1254,·SHA:·7fcbbe8bd9862b59809c60d05e5f59904ccadf8a3a9f11da30f9fcc6b839c5b3·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>
102 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where102 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where
103 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="m[·...·truncated·by·diffoscope;·len:·237,·SHA:·98603c35860102b3af9b5cf27aeabf39e3c03236551986a6ec030817f108d919·...·]/core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>103 ····U:·<a·class="trait"·href="../../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·cla[·...·truncated·by·diffoscope;·len:·165,·SHA:·423a04a226f49c7f9a948f8c413dc8519f4a9a96a55914b6e6a694710d81c0f7·...·]/core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>
104 <p>That·is,·this·conversion·is·whatever·the·implementation·of104 <p>That·is,·this·conversion·is·whatever·the·implementation·of
105 <code><a·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>105 <code><a·href="../../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>
106 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#805-807">Source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where106 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../../src/core/convert/mod.rs.html#805-807">Source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where
107 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="asso[·...·truncated·by·diffoscope;·len:·1973,·SHA:·db4b8407e8e20581ad139aef25a6221a11da0f5f18d6aa35aa33eb843f4e1b9f·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where107 ····U:·<a·class="trait"·href="../../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><[·...·truncated·by·diffoscope;·len:·1709,·SHA:·e896b9bb1c9fd7d11ed5b2485b9a6fcb8a8eedc15783c2750df398ecae6b320e·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where
108 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·clas[·...·truncated·by·diffoscope;·len:·1578,·SHA:·998d5af10fd889567cd999d1306bfd16c91134d2238a3c172f1e7fa8ed138c18·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>108 ····U:·<a·class="trait"·href="../../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-[·...·truncated·by·diffoscope;·len:·1338,·SHA:·bf7fc0d673df53e1a193a897ac1592a2d85070ae590f9624c2e5404df56f3bb0·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>
302 KB
./usr/share/doc/rust-doc/html/alloc/collections/btree_map/struct.ExtractIf.html
    
Offset 1, 232 lines modifiedOffset 1, 232 lines modified
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="An·iterator·produced·by·calling·`extract_if`·on·BTreeMap."><title>ExtractIf·in·alloc::collections::btree_map·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»      2025-01-07)»   (built»     from» a»source»  tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Extract<wbr>If</a></h2><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Debug-for-ExtractIf%3C'_,+K,+V,+F%3E"·title="Debug">Debug</a></li><li><a·href="#impl-FusedIterator-for-ExtractIf%3C'_,+K,+V,+F%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-ExtractIf%3C'_,+K,+V,+F,+A%3E"·title="Iterator">Iterator</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-UnwindSafe-for-ExtractIf%3C'a,+K,+V,+F,+A%3E"·title="!UnwindSafe">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-ExtractIf%3C'a,+K,+V,+F,+A%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-ExtractIf%3C'a,+K,+V,+F,+A%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-ExtractIf%3C'a,+K,+V,+F,+A%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-ExtractIf%3C'a,+K,+V,+F,+A%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-ExtractIf%3C'a,+K,+V,+F,+A%3E"·title="Unpin">Unpin</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>collections::<wbr>btree_<wbr>map</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">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">btree_map</a></span><h1>Struct·<span·class="struct">ExtractIf</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/alloc/collections/btree/map.rs.html#1887-1900">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·ExtractIf&lt;'a,·K,·V,·F,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·=·<a·class="struct"·href="../../alloc/struct.Global.html"·title="struct·alloc::alloc::Global">Global</a>&gt;<div·class="where">where1 <!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="An·iterator·produced·by·calling·`extract_if`·on·BTreeMap."><title>ExtractIf·in·alloc::collections::btree_map·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»      2025-01-07)»   (built»     from» a»source»  tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Extract<wbr>If</a></h2><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Debug-for-ExtractIf%3C'_,+K,+V,+F%3E"·title="Debug">Debug</a></li><li><a·href="#impl-FusedIterator-for-ExtractIf%3C'_,+K,+V,+F%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-ExtractIf%3C'_,+K,+V,+F,+A%3E"·title="Iterator">Iterator</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-UnwindSafe-for-ExtractIf%3C'a,+K,+V,+F,+A%3E"·title="!UnwindSafe">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-ExtractIf%3C'a,+K,+V,+F,+A%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-ExtractIf%3C'a,+K,+V,+F,+A%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-ExtractIf%3C'a,+K,+V,+F,+A%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-ExtractIf%3C'a,+K,+V,+F,+A%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-ExtractIf%3C'a,+K,+V,+F,+A%3E"·title="Unpin">Unpin</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>collections::<wbr>btree_<wbr>map</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">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">btree_map</a></span><h1>Struct·<span·class="struct">ExtractIf</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/alloc/collections/btree/map.rs.html#1887-1900">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·ExtractIf&lt;'a,·K,·V,·F,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·+·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·=·<a·class="struct"·href="../../alloc/struct.Global.html"·title="struct·alloc::alloc::Global">Global</a>&gt;<div·class="where">where
2 ····F:·'a·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;K</a>,·<a·class="primitive"·href="https:[·...·truncated·by·diffoscope;·len:·139,·SHA:·9f3eb33fedba814aeb9ebd0ba7f0fc14b932a961bf23e9912c3c59904178da57·...·]/core/primitive.bool.html">bool</a>,</div>{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>btree_extract_if</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/70530">#70530</a>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>An·iterator·produced·by·calling·<code>extract_if</code>·on·BTreeMap.</p>2 ····F:·'a·+·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;K</a>,·<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;mut·V</a>[·...·truncated·by·diffoscope;·len:·43,·SHA:·bbe795ab79a81ab7b67b5614d0d6109ed640095fcc6414d1fd2574a83fd6ce06·...·]/core/primitive.bool.html">bool</a>,</div>{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>btree_extract_if</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/70530">#70530</a>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>An·iterator·produced·by·calling·<code>extract_if</code>·on·BTreeMap.</p>
3 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-ExtractIf%3C'_,+K,+V,+F%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#1916-1925">Source</a><a·href="#impl-Debug-for-ExtractIf%3C'_,+K,+V,+F%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;K,·V,·F&gt;·<a·class="trait"·href="../../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.ExtractIf.html"·title="struct·alloc::collections::btree_map::ExtractIf">ExtractIf</a>&lt;'_,·K,·V,·F&gt;<div·class="where">where3 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-ExtractIf%3C'_,+K,+V,+F%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#1916-1925">Source</a><a·href="#impl-Debug-for-ExtractIf%3C'_,+K,+V,+F%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;K,·V,·F&gt;·<a·class="trait"·href="../../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.ExtractIf.html"·title="struct·alloc::collections::btree_map::ExtractIf">ExtractIf</a>&lt;'_,·K,·V,·F&gt;<div·class="where">where
4 ····K:·<a·class="trait"·href="../../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,4 ····K:·<a·class="trait"·href="../../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,
5 ····V:·<a·class="trait"·href="../../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,5 ····V:·<a·class="trait"·href="../../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,
6 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;K</a>,·<a·class="primitive"·href="https:[·...·truncated·by·diffoscope;·len:·1654,·SHA:·ce4a75c952398ddbde21fec1766e9f0167fc520a802fa7220db597c4493699a0·...·]/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::Iterator">Iterator</a>·for·<a·class="struct"·href="struct.ExtractIf.html"·title="struct·alloc::collections::btree_map::ExtractIf">ExtractIf</a>&lt;'_,·K,·V,·F,·A&gt;<div·class="where">where6 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;K</a>,·<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;mut·V</a>[·...·truncated·by·diffoscope;·len:·1510,·SHA:·9fbc6bfdfb16134fff9705015e4236e1c4464de26b709284c43445905de15775·...·]/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::Iterator">Iterator</a>·for·<a·class="struct"·href="struct.ExtractIf.html"·title="struct·alloc::collections::btree_map::ExtractIf">ExtractIf</a>&lt;'_,·K,·V,·F,·A&gt;<div·class="where">where
7 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;K</a>,·<a·class="primitive"·href="https:[·...·truncated·by·diffoscope;·len:·3261,·SHA:·9c9e61f6204c0c953711e7ec14005cfd06d333190df88fd1689aba8685bf1fe4·...·]/core/primitive.usize.html">usize</a>&gt;(7 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;K</a>,·<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;mut·V</a>[·...·truncated·by·diffoscope;·len:·2829,·SHA:·e408c8de18a056802c96bf633a1f4bc712a1e45b5119a0ab8475f54bfff75e99·...·]/core/primitive.usize.html">usize</a>&gt;(
8 ····&amp;mut·self,8 ····&amp;mut·self,
9 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·4f557a9b49151e0be8c52ffd68f1def4469c08164239dc8bef8df2040551c5ef·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where9 )·-&gt;·<a·class="enum"·href="../../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::It[·...·truncated·by·diffoscope;·len:·261,·SHA:·9b488006768a86d05b68f4e1888c750c736264a3a386f1310f1b7e8bfc7d2184·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where
10 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·962,·SHA:·116e4ec2ae3d9655c3d115eaf50f435f5323b4e48b84de734c79d2a09b3c02f2·...·]/core/primitive.usize.html">usize</a><div·class="where">where10 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_next[·...·truncated·by·diffoscope;·len:·842,·SHA:·d8f387888e3ee78f4397f4b1a12eae734e055247e3aa3251433ab8ac1019b31a·...·]/core/primitive.usize.html">usize</a><div·class="where">where
11 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·counting·the·number·of·iterations·and·returning·it.·<a·href="https://doc.[·...·truncated·by·diffoscope;·len:·837,·SHA:·47e25b6f9687bcc1d1fcdf9842fb085e6aba767d70531028f948636b80563dfc·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where11 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·counting·the·number·of·iterations·and·returning·it.·<a·href="../../../core/iter/traits/iterator/t[·...·truncated·by·diffoscope;·len:·693,·SHA:·725f42ff290538a513ec93cf7284210e1c519a4cc200b6d5878e7ccff2777059·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
12 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·returning·the·last·element.·<a·href="https://doc.rust-lang.org/1.84.0/cor[·...·truncated·by·diffoscope;·len:·3504,·SHA:·ec43d0f6d8d2a1e0fb7a684c382b9934abe1250844e53cce08bdfc6017ecb276·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where12 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·returning·the·last·element.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#metho[·...·truncated·by·diffoscope;·len:·3024,·SHA:·33e764ec8aa4ce60da61c340591349678c8144088b1440d0c5d8b7b28ba27fc9·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where
13 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by13 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by
14 the·given·amount·at·each·iteration.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><sp[·...·truncated·by·diffoscope;·len:·842,·SHA:·945c4509a8daf2f8fbccc5c6e5089e225955911e03a3e411f047f96d52d16862·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where14 the·given·amount·at·each·iteration.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="[·...·truncated·by·diffoscope;·len:·698,·SHA:·035d2f4d2e6b01ddf0b424aa6fc3f5919c82f85f857cb9cfa0f54f8357058b90·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
15 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,15 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
16 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·3b5ce32f9d564c3aa7cf2adc7130e674758d0c0f4f1275b4c3b46a74aa802cb3·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where16 ····U:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·[·...·truncated·by·diffoscope;·len:·1137,·SHA:·7916ae3a9b5afad376aafc6d698165147d82613fe975f64423f2367a02a69f6a·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
17 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,17 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
18 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·[·...·truncated·by·diffoscope;·len:·868,·SHA:·abdbf27ccc84063c7040d8fa3da9d0bda5ee310a470ef576e15554aee4bd5d21·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where18 ····U:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·of·pairs.·<a·href="../..[·...·truncated·by·diffoscope;·len:·724,·SHA:·ba31078b5c50fbfc51e53bed6f70aaa6e7e320cfda19949035c71d9363c0d919·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where
19 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,19 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
20 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent20 ····Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent
21 items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="sr[·...·truncated·by·diffoscope;·len:·427,·SHA:·6e82ad4aad49c2165d869fe30d20a968580a973cdb3a7f4c77f49e16dd59393e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where21 items·of·the·original·iterator.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="src·rightside"·href="../..[·...·truncated·by·diffoscope;·len:·331,·SHA:·451e844c9bf5d6d78b9579516e4b9fafb3e84136eaa1c95bead4539370743d7d·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where
22 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,22 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
23 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>23 ····G:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>
24 between·adjacent·items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightsi[·...·truncated·by·diffoscope;·len:·471,·SHA:·ed10488b7b2ccc3e4cc84a9a57a9695a74c1c964962e8d753cbace12f3318a66·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where24 between·adjacent·items·of·the·original·iterator.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·[·...·truncated·by·diffoscope;·len:·375,·SHA:·7bbb71535f348e442b9de05a74f9180c9acec0636566fa2a19ab1dc83779aace·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where
25 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,25 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
26 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each26 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each
27 element.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><spa[·...·truncated·by·diffoscope;·len:·306,·SHA:·61c87c39b177830189b0e4c036d97c40d8b9649d76432c90afb88de59498e8b2·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where27 element.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="S[·...·truncated·by·diffoscope;·len:·234,·SHA:·55463e0fb539911d03265cbd8abb7248189471ea74954185ed77f245746805c2·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where
28 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,28 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
29 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·a65da32c5f5ef8335cb607d3b4ab3f8a25877bc2c2e8b44ca9d575caecd5c8a5·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where29 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·772,·SHA:·de07f629315c257cc96a89e82de6752f002f259b678391b79d5fb48e279e56d2·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where
30 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,30 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
31 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·6d69c85c69fa789be551ea42d95c33c237d12a04ef157f9ddaaead1177f7771e·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element31 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·68,·SHA:·67cf1e2a20410007c7dd6c47c91b1d386626c1bfac5c1116c374da7bbee00d51·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element
32 should·be·yielded.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·489,·SHA:·9bdc636899f4e4e5a26a3a21c9603f72b3fb972865d2f459c38b7e2ac8fed7f1·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where32 should·be·yielded.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·tit[·...·truncated·by·diffoscope;·len:·393,·SHA:·328d72714f754fb793753313f01b087a9fbb30b77a2bcd5749456e1f6fd72710·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where
33 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,33 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
34 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·46dbf841c7aecd3f06bd4c944af21650faeac98c46c515dcfe643302618b1ecd·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where34 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·884,·SHA:·e8a37e28a6bfcb2d58b9ffd389d339c3dece95c14840f28c980a7d7aedcc9a05·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where
35 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as35 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as
36 the·next·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside[·...·truncated·by·diffoscope;·len:·468,·SHA:·52f7ff7f264284c3acc4429ca34d057ded9afa2e3d9d6e07571e252db9a48977·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where36 the·next·value.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside"><span·class="since"·ti[·...·truncated·by·diffoscope;·len:·372,·SHA:·9c08a613d034f21b42b8d196073d0f4d61c81458378e40e77995533a8b460837·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where
37 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·c0180fefce4346b0b4089e5c642521d7716108241c0ce6ec3e910c7a2c7364b4·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods37 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="../../../core/iter/adapters/peekable/struct.Peekable.html#method.peek"·ti[·...·truncated·by·diffoscope;·len:·103,·SHA:·e3683d31746f50069ed604def6201840bce75bbc7c584fac6c3644292077ae8a·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods
38 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See38 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See
39 their·documentation·for·more·information.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightsid[·...·truncated·by·diffoscope;·len:·498,·SHA:·e4a68861585faec6a5032b3b69d6dfb0f2799b5f387a527d9a1365571ed02069·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where39 their·documentation·for·more·information.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightside"><span·class="since"·t[·...·truncated·by·diffoscope;·len:·402,·SHA:·bdba673560d208f968337eb74446ead60d6223b0ca9ec6fbfaeb1a995a7e8001·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where
40 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,40 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
41 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·93281c1f6402743fd61110c11cf676f0f67eddceda801b4eb35e5fe9f85870fd·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where41 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·1042,·SHA:·27d4a79658fb1c97b659bd2520bcebbf5cfcb8a42420a7ecfcbff6f3330fa5e1·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where
42 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,42 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
43 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·f1cdbb1ec64f98fabbe1d89c88b03824310926cd7eaa160953ce2452fc3abb77·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where43 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·890,·SHA:·c43533da7f54bfb6611594b3436645d4d1f8e5339d2d05bf2345e87628499759·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where
44 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,44 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
45 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·f94a0b2c1396b13b89aca7830197ebf19e2c0e5ba536a9cc25b325a481799510·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where45 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·971,·SHA:·1b31b9d1d5061d4ee982a30400139f1d7319412bdea39925e0cc1e8e7cf3d65a·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where
46 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="https://doc.rust-lang[·...·truncated·by·diffoscope;·len:·783,·SHA:·c14217b89e3292a50a09192a8857485891fc769f861e1d1fc4322d04295c86ef·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where46 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="../../../core/iter/traits/iterator/trait.Iter[·...·truncated·by·diffoscope;·len:·639,·SHA:·79c7f7eddc655d329424f08baee8551b7f59cd4dc4b0d6984c5e4f241bcb949b·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where
47 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer47 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer
48 if·the·underlying·iterator·ends·sooner.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·c[·...·truncated·by·diffoscope;·len:·488,·SHA:·76f753d5a273a09a73127631acaa0ee947326a929f33be291018188793e1af56·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where48 if·the·underlying·iterator·ends·sooner.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stab[·...·truncated·by·diffoscope;·len:·392,·SHA:·50ac976eb8bf89726a483af064d5a70c100dedd17d46dc40ac3a82aba51b2082·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where
49 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,49 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
50 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·07d303586c8ad4e0082d5b44bff8eeda03cdb8f4bdbe46489f9232bca5a43ec6·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but50 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/tra[·...·truncated·by·diffoscope;·len:·329,·SHA:·14fc5ef1359fcb2171e21ba65c5f5d8ce11053860ba1d5aa32ddce90a48c2a8c·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but
51 unlike·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·2b20882d9583cee50e0c8b3cf362b27ce0d524db387d4aa4093d622b9370dada·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where51 unlike·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.scan">Rea[·...·truncated·by·diffoscope;·len:·570,·SHA:·3cdbe78e481f63f4d21b2fa94202dad167221af9d6e6f981ccd7a6e524f6157d·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where
52 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,52 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
53 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,53 ····U:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
54 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·933,·SHA:·4af94b75ba5c1e03d2d70590d2fd0706f13b3080fbff0f5b98e7b109048c403d·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where54 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·789,·SHA:·0e36f9aa81931958e65acc9e1b5bf6ad7367dcb7163dcf0af2a043314857a909·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where
55 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,55 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
56 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.I[·...·truncated·by·diffoscope;·len:·968,·SHA:·e5572ed2f3bdf5970d038da608f2f592d945541207c483c257fe5789efba168a·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where56 ····Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::trait[·...·truncated·by·diffoscope;·len:·800,·SHA:·3ea01df21dfaf9ee656fdee6aa789a6ce5be05d17c043433c5ab28da8f6d3241·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where
57 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,57 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
58 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·3013c0e49b0dade37f8ca096eccc5ceeb03fc79b9d320a4c92486d23b88d1009·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over58 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator[·...·truncated·by·diffoscope;·len:·63,·SHA:·8395b60c01b0cde6c3340bd4e6c57cddd02465a19dcf15a8aa5498bd6c8ddc11·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over
59 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,59 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="../../../core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,
60 the·windows·during·mapping·overlap·as·well.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside">[·...·truncated·by·diffoscope;·len:·454,·SHA:·040991f3914479bcc92615de2b81df7363656323622e5aadc964e1a61917d23e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where60 the·windows·during·mapping·overlap·as·well.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside"><span·class="since"·titl[·...·truncated·by·diffoscope;·len:·358,·SHA:·21db4436f04b3d09e41f294c30cd7dea235a4beb9af727cb1f1f065008ad732e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where
61 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="https://doc.rust-lang.org/1.84.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·0e0294a45242d5ce9a3ab8f95d6d410756415291d92baa7d12283ef1b3ecc3a0·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where61 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="../../../core/option/enum.Option.html#variant.None"·title="varia[·...·truncated·by·diffoscope;·len:·697,·SHA:·55b16240a265fa2f73963114b9def4c5703a60d1c3ce047915fff28502588e5b·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where
62 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,62 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
63 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·a8b562f71802a421f4745f7d1fadf4f70d98030c829e70f27b692e7915267027·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where63 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·650,·SHA:·eb862563a2da6881a0f9a31dac8f99f2b47b2c8d3033a0e1bc9ec49ae5500941·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where
64 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="https://doc.rust-lang.org/1.84.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·b3db7d84f203bbc139b1c52912705d19c664dac762898205fce452c9dc3a5318·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where64 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.by[·...·truncated·by·diffoscope;·len:·427,·SHA:·d439202f1a598c30b789e20f3d05a82f531349aa12f3af08cc5c230996ec01a9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where
65 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,65 ····B:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
66 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·431,·SHA:·a705a23f6d810357e7dcac670743884665ffcccfb9b780d0aa03720be8ca5625·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(66 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.collect[·...·truncated·by·diffoscope;·len:·335,·SHA:·d72a986b5d306b2e1ed99e18a16e26fa1b5380448fea76ac3db703052800b629·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(
67 ····&amp;mut·self,67 ····&amp;mut·self,
68 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.h[·...·truncated·by·diffoscope;·len:·479,·SHA:·fa749442d890055f86ceb34f411c84fd7ea08302b336d786d1ca36fe5868b020·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where68 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try[·...·truncated·by·diffoscope;·len:·359,·SHA:·886ccc2fbd37f1e7df4075b80b0bebd3d1a6e997fae2114ca1818fa30fa95d5a·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
69 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,69 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
70 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>, 
71 ····&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang[·...·truncated·by·diffoscope;·len:·449,·SHA:·9ddccfb7bdd27ea692d65fa83daf56e31762d1bec3a502234174b8fa4fb33a98·...·],70 ····Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="[·...·truncated·by·diffoscope;·len:·40,·SHA:·39f6b8b47216936a6251a972a3e72c0459df25c157b8b3990eefb48397aa8303·...·],
 71 ····&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;B&gt;,
72 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/itera[·...·truncated·by·diffoscope;·len:·323,·SHA:·b5c51f161dc9d77fd81d1fd23cc71fbf42ac00f3168cf9e41ebaaa2b6eb25363·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if72 ····B:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·tit[·...·truncated·by·diffoscope;·len:·227,·SHA:·91a843f71f5d4d4bdd2a6f526e4b1ace78ad1c1c0027ff429527a1e3cc1cbb42·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if
73 a·failure·is·encountered.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·ri[·...·truncated·by·diffoscope;·len:·521,·SHA:·6a54376815dab985ec8cc35604d035e98e3003b1563c9b41e70966084505542b·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where73 a·failure·is·encountered.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../../[·...·truncated·by·diffoscope;·len:·401,·SHA:·ed1d0660f20625c1d5231d569dd3e4f1d10332250dcd1a3f5d2e886618e67f5b·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
74 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,74 ····E:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
75 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·975,·SHA:·94f7f970236ba59ba5f1415764a0e3ab2f3093c6b79e76c25c797ac24a3c4d09·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where75 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_coll[·...·truncated·by·diffoscope;·len:·855,·SHA:·7b38a8c237aadc46d5211ff8698af580678e0cbcab757a66d6416b422880dd91·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
76 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,76 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
77 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·b480ec650ba000fe7cb67df58fc0351299638ee3e8f00db18f74ca24d69f9894·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,77 ····B:·<a·class="trait"·href="../../../core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="../../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associa[·...·truncated·by·diffoscope;·len:·23,·SHA:·4417dee5d41246c4acf5419e1bdac3c7d847bd34e3e87738a08734259a3b63da·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
78 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·972,·SHA:·0a54d9b1f5cb78c4f6b5f5b1153955eea3a8c16edcc762351208dabad1e8e9aa·...·]/core/primitive.bool.html">bool</a><div·class="where">where78 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·804,·SHA:·9304858cfccb085a534269651ae33dddafe29b7d287f0db58b4a9394480a2fa6·...·]/core/primitive.bool.html">bool</a><div·class="where">where
79 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,79 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
80 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·fcd03e71f79faad6d9b9a12045d59f4dfabc78e5aefebcabc9c1a5be45e31125·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,80 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·63,·SHA:·852041c2de8156fdddf9f71111c5ddf1a6b88aabd8c082f1a254f0b21c18ffa1·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,
81 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><span·class="righ[·...·truncated·by·diffoscope;·len:·319,·SHA:·9b9df13f2f4e5b4dde3908515766e1a474fa30bcb7edc98c15665a016e677c2a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where81 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><span·class="rightside"><span·class="sinc[·...·truncated·by·diffoscope;·len:·247,·SHA:·222a0145d03094cb0b20ca156583afe97e703828a8aa77e37fb7b4661759e2c7·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where
82 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,82 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
83 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,83 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
84 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns84 ····R:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns
85 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rights[·...·truncated·by·diffoscope;·len:·321,·SHA:·619fd774190944998148325de99aaa75de66ce4b7e26579fd342c564923a5652·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where85 successfully,·producing·a·single,·final·value.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"[·...·truncated·by·diffoscope;·len:·249,·SHA:·afbe9e91614278f09851b7c5920ddaf0907a2bf4c310ec39b40084e28959cc77·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where
86 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,86 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
87 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,87 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
88 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the88 ····R:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="../../../core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the
89 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·307,·SHA:·5975144fd8566efa93ad1ccec09297e280924b7372e08681d2103702124e2c52·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where89 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><span·class="rightside"><span·class="since"·tit[·...·truncated·by·diffoscope;·len:·235,·SHA:·da9aac17d9724df2aa434c2d10e1caa010eb4fd7e574e4da4e3d5b689e970097·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where
90 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,90 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
91 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,91 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,
92 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span[·...·truncated·by·diffoscope;·len:·619,·SHA:·8813f54846438870310d5f5dfabd2335a9dbf51e9da2e4cd681bcb6077d39628·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where92 returning·the·final·result.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="St[·...·truncated·by·diffoscope;·len:·499,·SHA:·ff97be2c630acbbbb397aa79317bd89b79955e6735d9da7aea9df48659f94fce·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
93 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,93 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
94 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·084691f7fc4e7f4da7db385127d0ce8d2d52f6740757129a65910c4db0dc180d·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing94 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·256,·SHA:·2fe8ae39f77649fea294c45979f427748b2a9938dfa70e4595ac661d972125b1·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing
95 operation.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·217,·SHA:·447ae00256be3de069c602a6c04889808c883eae6fa349d023f53bdd5570ecae·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(95 operation.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside"·href="../../../src/cor[·...·truncated·by·diffoscope;·len:·145,·SHA:·be4dc63adf8a4e832fd3dbaaabbf45f287388ea2bb17088d40589203a2ec6dfb·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(
96 ····&amp;mut·self,96 ····&amp;mut·self,
97 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·70b2b85cad045ac7addf647e0bd3cd5b2c9ebca5986613ad2b6a9c00e3a1132f·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,97 ····f:·impl·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·68,·SHA:·e7e11f257edcac749a5883ad9a3aa42e6e965be419f967b36caa7afd3b36d7c9·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
98 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·1823533b932e38e3200465d101f10a34421c005018974296350162e4049615ea·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where98 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</[·...·truncated·by·diffoscope;·len:·586,·SHA:·596f94ec7a4c06359aee56ccb8a7138a1ddb94415fafcecac1fc87434b1329a3·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
99 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,99 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
100 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,100 ····R:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
101 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·764ea8f08626b05426a76738d54ebb2d640042494d76cba8c20d868bfdc07a73·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the101 ····&lt;R·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</[·...·truncated·by·diffoscope;·len:·292,·SHA:·2ae73aa9b78f13099a8016e28a473713dcc755cf00fed8895c0c1b027bbcea01·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the
102 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><span·class="rightside"><s[·...·truncated·by·diffoscope;·len:·476,·SHA:·aef721c14147dea2fbec70dcfa76916b3f1273bed8304f4c9db310ca23d1e4b1·...·]/core/primitive.bool.html">bool</a><div·class="where">where102 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title=[·...·truncated·by·diffoscope;·len:·380,·SHA:·1042cdc03eabce3d330853b659f28b8566dd5841790f7f1303f3e326f05efab6·...·]/core/primitive.bool.html">bool</a><div·class="where">where
103 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,103 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
104 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·7c48e62c73a40a5cb5ebbf4a22cd789b342a88ad3d855022191f2bae33c736c6·...·]/core/primitive.bool.html">bool</a><div·class="where">where104 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·850,·SHA:·1b28d9cdfe3ba8dc7eac8cef1bb6549e78768b440ea492c70d80c8c07eae61cb·...·]/core/primitive.bool.html">bool</a><div·class="where">where
105 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,105 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
106 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·673d69ce0c23e24b2546127c463e67cd2a4c0f7be792712e2b42e75427161b75·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where106 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·980,·SHA:·a560c9e639c326a34f124b36f977291532e03ffae190e973674fee7e13b4c842·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
107 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,107 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
108 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·aa5078ff77f5638746395497f8ce92c1b684d342dea851990104d5e9981ab6b0·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where108 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·883,·SHA:·47fb849c20ee0cb36696a24bd285768bd0973774403ae956d2a517cd216452b1·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where
109 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,109 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
110 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·1bd732dff19021a1586bb486282683f5c1bc65d5d514f9e13cc9232b4e94955b·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;,</div></h4></section></summary><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns110 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·58,·SHA:·f6e1e279f463d2adecc4a9316aeab7af85329a84398e722f43ac130647fe78cf·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;,</div></h4></section></summary><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns
111 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.find_map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_find"·class="method·trait-impl"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·215,·SHA:·4d59a011c8881794ce6367c1e816f11a813db02e37c71800ed6d47056f157573·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(111 the·first·non-none·result.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.find_map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_find"·class="method·trait-impl"><a·class="src·rightside"·href="../../../src/cor[·...·truncated·by·diffoscope;·len:·143,·SHA:·00906f8dc0620ba030a634eba59c098f3aff639a062bf6231dfc4feb7727cc72·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(
112 ····&amp;mut·self,112 ····&amp;mut·self,
113 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,113 ····f:·impl·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
114 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·efb03e5c706e0947c6a4490b17f1efb0f1944a7d81f2640b5933212334dd255a·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where114 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</[·...·truncated·by·diffoscope;·len:·482,·SHA:·9ae34b47b226617c3eb5738e2b006056038b8280724fbbb72477bd2e900a4e85·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
115 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,115 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
116 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html">bool</a>&gt;,116 ····R:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="../../../core/primitive.bool.html">bool</a>&gt;,
117 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·764ea8f08626b05426a76738d54ebb2d640042494d76cba8c20d868bfdc07a73·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>try_find</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/63178">#63178</a>)</span></div></span><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns117 ····&lt;R·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</[·...·truncated·by·diffoscope;·len:·292,·SHA:·2ae73aa9b78f13099a8016e28a473713dcc755cf00fed8895c0c1b027bbcea01·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>try_find</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/63178">#63178</a>)</span></div></span><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns
118 the·first·true·result·or·the·first·error.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_find">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.position"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·635,·SHA:·348891c2a01ad4ba1f5ccca4c270bd2cefaf47e6b8194dc69d227209558119ff·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where118 the·first·true·result·or·the·first·error.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_find">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.position"·class="method·trait-impl"><span·class="rightside"><span·class="since"·tit[·...·truncated·by·diffoscope;·len:·515,·SHA:·a1fda5a0c76c9054797870324df8cd1bb446d66310ff913ddcbc9467fea7a33a·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
119 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,119 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
120 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1144,·SHA:·924dabfde33cb637151c206b5bef45e7e2185053d933cf9a15c59eecaafa6d5c·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where120 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·952,·SHA:·72f72454b4804f46746efa385fa104f63e84fb586632dd1c4c930f34217d1e30·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
121 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,121 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
122 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.Ord.html"·title="[·...·truncated·by·diffoscope;·len:·981,·SHA:·98dce65e46bcafc96c419533e0f8c95c11436175b878a43b5be30d98cc9d33a9·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where122 ····Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,</div></h4></secti[·...·truncated·by·diffoscope;·len:·813,·SHA:·a0835641b75785105c101f7557a09e01b6db0cd6ef4ff7164fe09dd76f56b780·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
123 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,123 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
124 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.Ord.html"·title="[·...·truncated·by·diffoscope;·len:·1027,·SHA:·b928182faf179ccb90df08564d70ae31d5dcbcdfc0c8037cf6b7f6a22530a7a1·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where124 ····Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,</div></h4></secti[·...·truncated·by·diffoscope;·len:·859,·SHA:·54ac45d4399a4f662f44869a9a8a7e38fa5f356937ca7d1a3e902478b74ba5e5·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
125 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,125 ····B:·<a·class="trait"·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,
126 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,126 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
Max diff block lines reached; 86425/308801 bytes (27.99%) of diff not shown.
342 KB
./usr/share/doc/rust-doc/html/alloc/collections/btree_map/struct.IntoIter.html
    
Offset 1, 249 lines modifiedOffset 1, 249 lines modified
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="An·owning·iterator·over·the·entries·of·a·`BTreeMap`,·sorted·by·key."><title>IntoIter·in·alloc::collections::btree_map·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312» 2025-01-07)»      (built»from»    a»   source»     tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Into<wbr>Iter</a></h2><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Debug-for-IntoIter%3CK,+V,+A%3E"·title="Debug">Debug</a></li><li><a·href="#impl-Default-for-IntoIter%3CK,+V,+A%3E"·title="Default">Default</a></li><li><a·href="#impl-DoubleEndedIterator-for-IntoIter%3CK,+V,+A%3E"·title="DoubleEndedIterator">DoubleEndedIterator</a></li><li><a·href="#impl-Drop-for-IntoIter%3CK,+V,+A%3E"·title="Drop">Drop</a></li><li><a·href="#impl-ExactSizeIterator-for-IntoIter%3CK,+V,+A%3E"·title="ExactSizeIterator">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-IntoIter%3CK,+V,+A%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-IntoIter%3CK,+V,+A%3E"·title="Iterator">Iterator</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-IntoIter%3CK,+V,+A%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-IntoIter%3CK,+V,+A%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-IntoIter%3CK,+V,+A%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-IntoIter%3CK,+V,+A%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-IntoIter%3CK,+V,+A%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-IntoIter%3CK,+V,+A%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>collections::<wbr>btree_<wbr>map</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">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">btree_map</a></span><h1>Struct·<span·class="struct">IntoIter</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map.rs.html#398-407">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·IntoIter&lt;K,·V,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·=·<a·class="struct"·href="../../alloc/struct.Global.html"·title="struct·alloc::alloc::Global">Global</a>&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>An·owning·iterator·over·the·entries·of·a·<code>BTreeMap</code>,·sorted·by·key.</p>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="An·owning·iterator·over·the·entries·of·a·`BTreeMap`,·sorted·by·key."><title>IntoIter·in·alloc::collections::btree_map·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312» 2025-01-07)»      (built»from»    a»   source»     tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Into<wbr>Iter</a></h2><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Debug-for-IntoIter%3CK,+V,+A%3E"·title="Debug">Debug</a></li><li><a·href="#impl-Default-for-IntoIter%3CK,+V,+A%3E"·title="Default">Default</a></li><li><a·href="#impl-DoubleEndedIterator-for-IntoIter%3CK,+V,+A%3E"·title="DoubleEndedIterator">DoubleEndedIterator</a></li><li><a·href="#impl-Drop-for-IntoIter%3CK,+V,+A%3E"·title="Drop">Drop</a></li><li><a·href="#impl-ExactSizeIterator-for-IntoIter%3CK,+V,+A%3E"·title="ExactSizeIterator">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-IntoIter%3CK,+V,+A%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-IntoIter%3CK,+V,+A%3E"·title="Iterator">Iterator</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-IntoIter%3CK,+V,+A%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-IntoIter%3CK,+V,+A%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-IntoIter%3CK,+V,+A%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-IntoIter%3CK,+V,+A%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-IntoIter%3CK,+V,+A%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-IntoIter%3CK,+V,+A%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>collections::<wbr>btree_<wbr>map</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">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">btree_map</a></span><h1>Struct·<span·class="struct">IntoIter</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map.rs.html#398-407">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·IntoIter&lt;K,·V,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·+·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·=·<a·class="struct"·href="../../alloc/struct.Global.html"·title="struct·alloc::alloc::Global">Global</a>&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>An·owning·iterator·over·the·entries·of·a·<code>BTreeMap</code>,·sorted·by·key.</p>
2 <p>This·<code>struct</code>·is·created·by·the·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html#tymethod.into_iter"·title="method·core::iter::traits::collect::IntoIterator::into_iter"><code>into_iter</code></a>·method·on·<a·href="struct.BTreeMap.html"·title="struct·alloc::collections::btree_map::BTreeMap"><code>BTreeMap</code></a>2 <p>This·<code>struct</code>·is·created·by·the·<a·href="../../../core/iter/traits/collect/trait.IntoIterator.html#tymethod.into_iter"·title="method·core::iter::traits::collect::IntoIterator::into_iter"><code>into_iter</code></a>·method·on·<a·href="struct.BTreeMap.html"·title="struct·alloc::collections::btree_map::BTreeMap"><code>BTreeMap</code></a>
3 (provided·by·the·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator"><code>IntoIterator</code></a>·trait).·See·its·documentation·for·more.</p>3 (provided·by·the·<a·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator"><code>IntoIterator</code></a>·trait).·See·its·documentation·for·more.</p>
4 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-IntoIter%3CK,+V,+A%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.17.0">1.17.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map.rs.html#418-422">Source</a></span><a·href="#impl-Debug-for-IntoIter%3CK,+V,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;K:·<a·class="trait"·href="../../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,·V:·<a·class="trait"·href="../../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>&gt;·<a·class="trait"·href="../../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.IntoIter.html"·titl[·...·truncated·by·diffoscope;·len:·1384,·SHA:·55645a4d497ddc2146c8caa9a2f9d78846fe41d38c41937568f5f410ddfc8213·...·]/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·for·<a·class="struct"·href="struct.IntoIter.html"·title="struct·alloc::collections::btree_map::IntoIter">IntoIter</a>&lt;K,·V,·A&gt;<div·class="where">where4 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-IntoIter%3CK,+V,+A%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.17.0">1.17.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map.rs.html#418-422">Source</a></span><a·href="#impl-Debug-for-IntoIter%3CK,+V,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;K:·<a·class="trait"·href="../../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,·V:·<a·class="trait"·href="../../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·+·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>&gt;·<a·class="trait"·href="../../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.IntoIter.html"·title="struct·alloc::collect[·...·truncated·by·diffoscope;·len:·1336,·SHA:·654155b4f77fa47ee3d6638233dd9cda87c196d472175a2b9cea7bc5087aed61·...·]/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·for·<a·class="struct"·href="struct.IntoIter.html"·title="struct·alloc::collections::btree_map::IntoIter">IntoIter</a>&lt;K,·V,·A&gt;<div·class="where">where
5 ····A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3>[·...·truncated·by·diffoscope;·len:·364,·SHA:·6cf79a7c85d6878cd8e0d763b09b4d2f6cc785b6b9dceba982b09fef239e7ecf·...·]/core/default/trait.Default.html#tymethod.default"·class="fn">default</a>()·-&gt;·Self</h4></section></summary><div·class="docblock"><p>Creates·an·empty·<code>btree_map::IntoIter</code>.</p>5 ····A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·+·<a·class="trait"·href="../../../core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><det[·...·truncated·by·diffoscope;·len:·292,·SHA:·875ccdd30533b4e6213fd74b6561cd95da41fa448d228e06d26dddb12245eeb2·...·]/core/default/trait.Default.html#tymethod.default"·class="fn">default</a>()·-&gt;·Self</h4></section></summary><div·class="docblock"><p>Creates·an·empty·<code>btree_map::IntoIter</code>.</p>
  
6 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span>iter:·btree_map::IntoIter&lt;u8,·u8&gt;·=·Default::default();6 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span>iter:·btree_map::IntoIter&lt;u8,·u8&gt;·=·Default::default();
7 <span·class="macro">assert_eq!</span>(iter.len(),·<span·class="number">0</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::btree_map;%0A++++let+iter:+btree_map::IntoIter%3Cu8,+u8%3E+=+Default::default();%0A++++assert_eq!(iter.len(),+0);%0A%7D&amp;edition=2021"></a></div>7 <span·class="macro">assert_eq!</span>(iter.len(),·<span·class="number">0</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::btree_map;%0A++++let+iter:+btree_map::IntoIter%3Cu8,+u8%3E+=+Default::default();%0A++++assert_eq!(iter.len(),+0);%0A%7D&amp;edition=2021"></a></div>
8 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-DoubleEndedIterator-for-IntoIter%3CK,+V,+A%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map.rs.html#1743-1748">Source</a></span><a·href="#impl-DoubleEndedIterator-for-IntoIter%3CK,+V,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;K,·V,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·4508,·SHA:·d1947f33e79133e52a5a54e618dae4263b7e16c0dfffe87104eb237a9ee5201a·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold"·class="fn">try_rfold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where8 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-DoubleEndedIterator-for-IntoIter%3CK,+V,+A%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map.rs.html#1743-1748">Source</a></span><a·href="#impl-DoubleEndedIterator-for-IntoIter%3CK,+V,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;K,·V,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·+·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>&gt;·<a·class="trait"·href="../../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEnd[·...·truncated·by·diffoscope;·len:·3980,·SHA:·6c1f33f99b12203e12fd58f2d29bbd79ef672941de3d4ef50aee7ba13163a991·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold"·class="fn">try_rfold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where
9 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,9 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
10 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,10 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
11 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>This·is·the·reverse·version·of·<a·href="https://doc.rust-lang.org/1.8[·...·truncated·by·diffoscope;·len:·3,·SHA:·fbd04e1aae9ce0b11a8946e2c9ac2619f7428a64d32d01eff61d809dcb70ee8e·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·title="method·core::iter::traits::iterator::Iterator::try_fold"><code>Iterator::try_fold()</code></a>:·it·takes11 ····R:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>This·is·the·reverse·version·of·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·title="method·core::iter::traits::iterator::Iterator::try_fold"><code>Iterator::try_fold()</code></a>:·it·takes
12 elements·starting·from·the·back·of·the·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfold"·class="method·trait-impl"><span·clas[·...·truncated·by·diffoscope;·len:·325,·SHA:·7ffdb06a8ab3810207a1c974783822231eaf1d82fd94bcf810dd7b3181149b7b·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold"·class="fn">rfold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where12 elements·starting·from·the·back·of·the·iterator.·<a·href="../../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfold"·class="method·trait-impl"><span·class="rightside"><span·clas[·...·truncated·by·diffoscope;·len:·253,·SHA:·48421497f19ee93d3a7432833660cd659661b35b02b625c6376fc49660f200cf·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold"·class="fn">rfold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where
13 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,13 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
14 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·reduces·the·iterator’s·elements·to·a·single,14 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·reduces·the·iterator’s·elements·to·a·single,
15 final·value,·starting·from·the·back.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfind"·class="method·trait-impl"><span·class="r[·...·truncated·by·diffoscope;·len:·665,·SHA:·fde89feb7c0e70eefa34d688476ca36a70115bec8150dbf9b1a3c359f72dd28d·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where15 final·value,·starting·from·the·back.·<a·href="../../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfind"·class="method·trait-impl"><span·class="rightside"><span·class="s[·...·truncated·by·diffoscope;·len:·545,·SHA:·b420bc934fe1ddfd2fe0958678aa3aba1ce90383b1958958e47e13ae1b40fe25·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
16 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,16 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
17 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·9022,·SHA:·c52a435ede87b94f323e4720f36601cbcab2cdf3817d1b492753b595b0fc7c05·...·]/core/primitive.usize.html">usize</a>&gt;(17 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·8230,·SHA:·528409f9f18058b81cfed0bc2f0a85ea63b4caf9d2693edb1dd3a7bf43135da8·...·]/core/primitive.usize.html">usize</a>&gt;(
18 ····&amp;mut·self,18 ····&amp;mut·self,
19 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·4f557a9b49151e0be8c52ffd68f1def4469c08164239dc8bef8df2040551c5ef·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where19 )·-&gt;·<a·class="enum"·href="../../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::It[·...·truncated·by·diffoscope;·len:·261,·SHA:·9b488006768a86d05b68f4e1888c750c736264a3a386f1310f1b7e8bfc7d2184·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where
20 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·962,·SHA:·116e4ec2ae3d9655c3d115eaf50f435f5323b4e48b84de734c79d2a09b3c02f2·...·]/core/primitive.usize.html">usize</a><div·class="where">where20 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_next[·...·truncated·by·diffoscope;·len:·842,·SHA:·d8f387888e3ee78f4397f4b1a12eae734e055247e3aa3251433ab8ac1019b31a·...·]/core/primitive.usize.html">usize</a><div·class="where">where
21 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·counting·the·number·of·iterations·and·returning·it.·<a·href="https://doc.[·...·truncated·by·diffoscope;·len:·837,·SHA:·47e25b6f9687bcc1d1fcdf9842fb085e6aba767d70531028f948636b80563dfc·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where21 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·counting·the·number·of·iterations·and·returning·it.·<a·href="../../../core/iter/traits/iterator/t[·...·truncated·by·diffoscope;·len:·693,·SHA:·725f42ff290538a513ec93cf7284210e1c519a4cc200b6d5878e7ccff2777059·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
22 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·returning·the·last·element.·<a·href="https://doc.rust-lang.org/1.84.0/cor[·...·truncated·by·diffoscope;·len:·3504,·SHA:·ec43d0f6d8d2a1e0fb7a684c382b9934abe1250844e53cce08bdfc6017ecb276·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where22 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·returning·the·last·element.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#metho[·...·truncated·by·diffoscope;·len:·3024,·SHA:·33e764ec8aa4ce60da61c340591349678c8144088b1440d0c5d8b7b28ba27fc9·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where
23 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by23 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by
24 the·given·amount·at·each·iteration.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><sp[·...·truncated·by·diffoscope;·len:·842,·SHA:·945c4509a8daf2f8fbccc5c6e5089e225955911e03a3e411f047f96d52d16862·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where24 the·given·amount·at·each·iteration.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="[·...·truncated·by·diffoscope;·len:·698,·SHA:·035d2f4d2e6b01ddf0b424aa6fc3f5919c82f85f857cb9cfa0f54f8357058b90·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
25 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,25 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
26 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·3b5ce32f9d564c3aa7cf2adc7130e674758d0c0f4f1275b4c3b46a74aa802cb3·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where26 ····U:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·[·...·truncated·by·diffoscope;·len:·1137,·SHA:·7916ae3a9b5afad376aafc6d698165147d82613fe975f64423f2367a02a69f6a·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
27 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,27 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
28 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·[·...·truncated·by·diffoscope;·len:·868,·SHA:·abdbf27ccc84063c7040d8fa3da9d0bda5ee310a470ef576e15554aee4bd5d21·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where28 ····U:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·of·pairs.·<a·href="../..[·...·truncated·by·diffoscope;·len:·724,·SHA:·ba31078b5c50fbfc51e53bed6f70aaa6e7e320cfda19949035c71d9363c0d919·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where
29 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,29 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
30 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent30 ····Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent
31 items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="sr[·...·truncated·by·diffoscope;·len:·427,·SHA:·6e82ad4aad49c2165d869fe30d20a968580a973cdb3a7f4c77f49e16dd59393e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where31 items·of·the·original·iterator.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="src·rightside"·href="../..[·...·truncated·by·diffoscope;·len:·331,·SHA:·451e844c9bf5d6d78b9579516e4b9fafb3e84136eaa1c95bead4539370743d7d·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where
32 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,32 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
33 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>33 ····G:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>
34 between·adjacent·items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightsi[·...·truncated·by·diffoscope;·len:·471,·SHA:·ed10488b7b2ccc3e4cc84a9a57a9695a74c1c964962e8d753cbace12f3318a66·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where34 between·adjacent·items·of·the·original·iterator.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·[·...·truncated·by·diffoscope;·len:·375,·SHA:·7bbb71535f348e442b9de05a74f9180c9acec0636566fa2a19ab1dc83779aace·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where
35 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,35 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
36 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each36 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each
37 element.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><spa[·...·truncated·by·diffoscope;·len:·306,·SHA:·61c87c39b177830189b0e4c036d97c40d8b9649d76432c90afb88de59498e8b2·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where37 element.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="S[·...·truncated·by·diffoscope;·len:·234,·SHA:·55463e0fb539911d03265cbd8abb7248189471ea74954185ed77f245746805c2·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where
38 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,38 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
39 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·a65da32c5f5ef8335cb607d3b4ab3f8a25877bc2c2e8b44ca9d575caecd5c8a5·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where39 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·772,·SHA:·de07f629315c257cc96a89e82de6752f002f259b678391b79d5fb48e279e56d2·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where
40 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,40 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
41 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·6d69c85c69fa789be551ea42d95c33c237d12a04ef157f9ddaaead1177f7771e·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element41 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·68,·SHA:·67cf1e2a20410007c7dd6c47c91b1d386626c1bfac5c1116c374da7bbee00d51·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element
42 should·be·yielded.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·489,·SHA:·9bdc636899f4e4e5a26a3a21c9603f72b3fb972865d2f459c38b7e2ac8fed7f1·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where42 should·be·yielded.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·tit[·...·truncated·by·diffoscope;·len:·393,·SHA:·328d72714f754fb793753313f01b087a9fbb30b77a2bcd5749456e1f6fd72710·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where
43 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,43 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
44 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·46dbf841c7aecd3f06bd4c944af21650faeac98c46c515dcfe643302618b1ecd·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where44 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·884,·SHA:·e8a37e28a6bfcb2d58b9ffd389d339c3dece95c14840f28c980a7d7aedcc9a05·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where
45 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as45 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as
46 the·next·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside[·...·truncated·by·diffoscope;·len:·468,·SHA:·52f7ff7f264284c3acc4429ca34d057ded9afa2e3d9d6e07571e252db9a48977·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where46 the·next·value.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside"><span·class="since"·ti[·...·truncated·by·diffoscope;·len:·372,·SHA:·9c08a613d034f21b42b8d196073d0f4d61c81458378e40e77995533a8b460837·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where
47 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·c0180fefce4346b0b4089e5c642521d7716108241c0ce6ec3e910c7a2c7364b4·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods47 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="../../../core/iter/adapters/peekable/struct.Peekable.html#method.peek"·ti[·...·truncated·by·diffoscope;·len:·103,·SHA:·e3683d31746f50069ed604def6201840bce75bbc7c584fac6c3644292077ae8a·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods
48 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See48 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See
49 their·documentation·for·more·information.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightsid[·...·truncated·by·diffoscope;·len:·498,·SHA:·e4a68861585faec6a5032b3b69d6dfb0f2799b5f387a527d9a1365571ed02069·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where49 their·documentation·for·more·information.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightside"><span·class="since"·t[·...·truncated·by·diffoscope;·len:·402,·SHA:·bdba673560d208f968337eb74446ead60d6223b0ca9ec6fbfaeb1a995a7e8001·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where
50 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,50 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
51 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·93281c1f6402743fd61110c11cf676f0f67eddceda801b4eb35e5fe9f85870fd·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where51 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·1042,·SHA:·27d4a79658fb1c97b659bd2520bcebbf5cfcb8a42420a7ecfcbff6f3330fa5e1·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where
52 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,52 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
53 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·f1cdbb1ec64f98fabbe1d89c88b03824310926cd7eaa160953ce2452fc3abb77·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where53 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·890,·SHA:·c43533da7f54bfb6611594b3436645d4d1f8e5339d2d05bf2345e87628499759·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where
54 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,54 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
55 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·f94a0b2c1396b13b89aca7830197ebf19e2c0e5ba536a9cc25b325a481799510·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where55 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·971,·SHA:·1b31b9d1d5061d4ee982a30400139f1d7319412bdea39925e0cc1e8e7cf3d65a·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where
56 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="https://doc.rust-lang[·...·truncated·by·diffoscope;·len:·783,·SHA:·c14217b89e3292a50a09192a8857485891fc769f861e1d1fc4322d04295c86ef·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where56 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="../../../core/iter/traits/iterator/trait.Iter[·...·truncated·by·diffoscope;·len:·639,·SHA:·79c7f7eddc655d329424f08baee8551b7f59cd4dc4b0d6984c5e4f241bcb949b·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where
57 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer57 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer
58 if·the·underlying·iterator·ends·sooner.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·c[·...·truncated·by·diffoscope;·len:·488,·SHA:·76f753d5a273a09a73127631acaa0ee947326a929f33be291018188793e1af56·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where58 if·the·underlying·iterator·ends·sooner.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stab[·...·truncated·by·diffoscope;·len:·392,·SHA:·50ac976eb8bf89726a483af064d5a70c100dedd17d46dc40ac3a82aba51b2082·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where
59 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,59 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
60 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·07d303586c8ad4e0082d5b44bff8eeda03cdb8f4bdbe46489f9232bca5a43ec6·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but60 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/tra[·...·truncated·by·diffoscope;·len:·329,·SHA:·14fc5ef1359fcb2171e21ba65c5f5d8ce11053860ba1d5aa32ddce90a48c2a8c·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but
61 unlike·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·2b20882d9583cee50e0c8b3cf362b27ce0d524db387d4aa4093d622b9370dada·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where61 unlike·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.scan">Rea[·...·truncated·by·diffoscope;·len:·570,·SHA:·3cdbe78e481f63f4d21b2fa94202dad167221af9d6e6f981ccd7a6e524f6157d·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where
62 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,62 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
63 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,63 ····U:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
64 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·933,·SHA:·4af94b75ba5c1e03d2d70590d2fd0706f13b3080fbff0f5b98e7b109048c403d·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where64 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·789,·SHA:·0e36f9aa81931958e65acc9e1b5bf6ad7367dcb7163dcf0af2a043314857a909·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where
65 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,65 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
66 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.I[·...·truncated·by·diffoscope;·len:·968,·SHA:·e5572ed2f3bdf5970d038da608f2f592d945541207c483c257fe5789efba168a·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where66 ····Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::trait[·...·truncated·by·diffoscope;·len:·800,·SHA:·3ea01df21dfaf9ee656fdee6aa789a6ce5be05d17c043433c5ab28da8f6d3241·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where
67 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,67 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
68 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·3013c0e49b0dade37f8ca096eccc5ceeb03fc79b9d320a4c92486d23b88d1009·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over68 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator[·...·truncated·by·diffoscope;·len:·63,·SHA:·8395b60c01b0cde6c3340bd4e6c57cddd02465a19dcf15a8aa5498bd6c8ddc11·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over
69 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,69 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="../../../core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,
70 the·windows·during·mapping·overlap·as·well.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside">[·...·truncated·by·diffoscope;·len:·454,·SHA:·040991f3914479bcc92615de2b81df7363656323622e5aadc964e1a61917d23e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where70 the·windows·during·mapping·overlap·as·well.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside"><span·class="since"·titl[·...·truncated·by·diffoscope;·len:·358,·SHA:·21db4436f04b3d09e41f294c30cd7dea235a4beb9af727cb1f1f065008ad732e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where
71 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="https://doc.rust-lang.org/1.84.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·0e0294a45242d5ce9a3ab8f95d6d410756415291d92baa7d12283ef1b3ecc3a0·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where71 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="../../../core/option/enum.Option.html#variant.None"·title="varia[·...·truncated·by·diffoscope;·len:·697,·SHA:·55b16240a265fa2f73963114b9def4c5703a60d1c3ce047915fff28502588e5b·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where
72 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,72 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
73 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·a8b562f71802a421f4745f7d1fadf4f70d98030c829e70f27b692e7915267027·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where73 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·650,·SHA:·eb862563a2da6881a0f9a31dac8f99f2b47b2c8d3033a0e1bc9ec49ae5500941·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where
74 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="https://doc.rust-lang.org/1.84.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·b3db7d84f203bbc139b1c52912705d19c664dac762898205fce452c9dc3a5318·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where74 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.by[·...·truncated·by·diffoscope;·len:·427,·SHA:·d439202f1a598c30b789e20f3d05a82f531349aa12f3af08cc5c230996ec01a9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where
75 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,75 ····B:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
76 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·431,·SHA:·a705a23f6d810357e7dcac670743884665ffcccfb9b780d0aa03720be8ca5625·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(76 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.collect[·...·truncated·by·diffoscope;·len:·335,·SHA:·d72a986b5d306b2e1ed99e18a16e26fa1b5380448fea76ac3db703052800b629·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(
77 ····&amp;mut·self,77 ····&amp;mut·self,
78 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.h[·...·truncated·by·diffoscope;·len:·479,·SHA:·fa749442d890055f86ceb34f411c84fd7ea08302b336d786d1ca36fe5868b020·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where78 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try[·...·truncated·by·diffoscope;·len:·359,·SHA:·886ccc2fbd37f1e7df4075b80b0bebd3d1a6e997fae2114ca1818fa30fa95d5a·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
79 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,79 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
80 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>, 
81 ····&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang[·...·truncated·by·diffoscope;·len:·449,·SHA:·9ddccfb7bdd27ea692d65fa83daf56e31762d1bec3a502234174b8fa4fb33a98·...·],80 ····Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="[·...·truncated·by·diffoscope;·len:·40,·SHA:·39f6b8b47216936a6251a972a3e72c0459df25c157b8b3990eefb48397aa8303·...·],
 81 ····&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;B&gt;,
82 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/itera[·...·truncated·by·diffoscope;·len:·323,·SHA:·b5c51f161dc9d77fd81d1fd23cc71fbf42ac00f3168cf9e41ebaaa2b6eb25363·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if82 ····B:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·tit[·...·truncated·by·diffoscope;·len:·227,·SHA:·91a843f71f5d4d4bdd2a6f526e4b1ace78ad1c1c0027ff429527a1e3cc1cbb42·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if
83 a·failure·is·encountered.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·ri[·...·truncated·by·diffoscope;·len:·521,·SHA:·6a54376815dab985ec8cc35604d035e98e3003b1563c9b41e70966084505542b·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where83 a·failure·is·encountered.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../../[·...·truncated·by·diffoscope;·len:·401,·SHA:·ed1d0660f20625c1d5231d569dd3e4f1d10332250dcd1a3f5d2e886618e67f5b·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
84 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,84 ····E:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
85 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·975,·SHA:·94f7f970236ba59ba5f1415764a0e3ab2f3093c6b79e76c25c797ac24a3c4d09·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where85 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_coll[·...·truncated·by·diffoscope;·len:·855,·SHA:·7b38a8c237aadc46d5211ff8698af580678e0cbcab757a66d6416b422880dd91·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
86 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,86 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
87 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·b480ec650ba000fe7cb67df58fc0351299638ee3e8f00db18f74ca24d69f9894·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,87 ····B:·<a·class="trait"·href="../../../core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="../../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associa[·...·truncated·by·diffoscope;·len:·23,·SHA:·4417dee5d41246c4acf5419e1bdac3c7d847bd34e3e87738a08734259a3b63da·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
88 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·fdf5a1845f070855ba2cfd0c8c85460ea5cb646c4d3b42a8431bf21489c73701·...·]/core/primitive.usize.html">usize</a><div·class="where">where88 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·827,·SHA:·0237b034801a953ed40ad7c10f9a80d682bdf0a649c6fde9f53efc254cd75fc0·...·]/core/primitive.usize.html">usize</a><div·class="where">where
89 ····T:·'a,89 ····T:·'a,
90 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·1fc250e258e9e42e4fa3e22f86ecd57057e9ff23e47af1aec778076a7a891134·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,90 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="../../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEnd[·...·truncated·by·diffoscope;·len:·60,·SHA:·036db50df43442a72ce04aef94ccf2727352aad0708d71fe0e34c23613b84765·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,
91 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·5846407374f20f525a4a0663ad4488141eafe64513ef82581dc5df5c2d200745·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_partition_in_place</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62543">#62543</a>)</span></div></span><div·class='docblock'>Reorders·the·elements·of·this·iterator·<em>in-place</em>·according·to·the·given·predicate,91 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="../../../core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_partition_in_place</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62543">#62543</a>)</span></div></span><div·class='docblock'>Reorders·the·elements·of·this·iterator·<em>in-place</em>·according·to·the·given·predicate,
92 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.92 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.
93 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.partition_in_place">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_partitioned"·class="method·trait-impl"><a·clas[·...·truncated·by·diffoscope;·len:·431,·SHA:·4aa7d028146c72d45794efc19a376d4bee3b75eda61ff46d969e440b3dbfa1b0·...·]/core/primitive.bool.html">bool</a><div·class="where">where93 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.partition_in_place">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_partitioned"·class="method·trait-impl"><a·class="src·rightside"·href="[·...·truncated·by·diffoscope;·len:·335,·SHA:·252e1c16199fc3c38bc7de8cbda8c9532ab6d581d449c680cd7daf8d61a74aeb·...·]/core/primitive.bool.html">bool</a><div·class="where">where
94 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,94 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
95 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·fcd03e71f79faad6d9b9a12045d59f4dfabc78e5aefebcabc9c1a5be45e31125·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,95 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·63,·SHA:·852041c2de8156fdddf9f71111c5ddf1a6b88aabd8c082f1a254f0b21c18ffa1·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,
96 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><span·class="righ[·...·truncated·by·diffoscope;·len:·319,·SHA:·9b9df13f2f4e5b4dde3908515766e1a474fa30bcb7edc98c15665a016e677c2a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where96 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><span·class="rightside"><span·class="sinc[·...·truncated·by·diffoscope;·len:·247,·SHA:·222a0145d03094cb0b20ca156583afe97e703828a8aa77e37fb7b4661759e2c7·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where
97 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,97 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
98 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,98 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
99 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns99 ····R:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns
100 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rights[·...·truncated·by·diffoscope;·len:·321,·SHA:·619fd774190944998148325de99aaa75de66ce4b7e26579fd342c564923a5652·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where100 successfully,·producing·a·single,·final·value.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"[·...·truncated·by·diffoscope;·len:·249,·SHA:·afbe9e91614278f09851b7c5920ddaf0907a2bf4c310ec39b40084e28959cc77·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where
101 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,101 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
102 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,102 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
103 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the103 ····R:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="../../../core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the
104 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·307,·SHA:·5975144fd8566efa93ad1ccec09297e280924b7372e08681d2103702124e2c52·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where104 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><span·class="rightside"><span·class="since"·tit[·...·truncated·by·diffoscope;·len:·235,·SHA:·da9aac17d9724df2aa434c2d10e1caa010eb4fd7e574e4da4e3d5b689e970097·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where
105 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,105 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
106 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,106 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,
107 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span[·...·truncated·by·diffoscope;·len:·619,·SHA:·8813f54846438870310d5f5dfabd2335a9dbf51e9da2e4cd681bcb6077d39628·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where107 returning·the·final·result.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="St[·...·truncated·by·diffoscope;·len:·499,·SHA:·ff97be2c630acbbbb397aa79317bd89b79955e6735d9da7aea9df48659f94fce·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
108 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,108 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
109 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·084691f7fc4e7f4da7db385127d0ce8d2d52f6740757129a65910c4db0dc180d·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing109 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·256,·SHA:·2fe8ae39f77649fea294c45979f427748b2a9938dfa70e4595ac661d972125b1·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing
110 operation.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·217,·SHA:·447ae00256be3de069c602a6c04889808c883eae6fa349d023f53bdd5570ecae·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(110 operation.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside"·href="../../../src/cor[·...·truncated·by·diffoscope;·len:·145,·SHA:·be4dc63adf8a4e832fd3dbaaabbf45f287388ea2bb17088d40589203a2ec6dfb·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(
111 ····&amp;mut·self,111 ····&amp;mut·self,
112 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·70b2b85cad045ac7addf647e0bd3cd5b2c9ebca5986613ad2b6a9c00e3a1132f·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,112 ····f:·impl·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·68,·SHA:·e7e11f257edcac749a5883ad9a3aa42e6e965be419f967b36caa7afd3b36d7c9·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
113 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·1823533b932e38e3200465d101f10a34421c005018974296350162e4049615ea·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where113 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</[·...·truncated·by·diffoscope;·len:·586,·SHA:·596f94ec7a4c06359aee56ccb8a7138a1ddb94415fafcecac1fc87434b1329a3·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
114 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,114 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
115 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,115 ····R:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
116 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·764ea8f08626b05426a76738d54ebb2d640042494d76cba8c20d868bfdc07a73·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the116 ····&lt;R·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</[·...·truncated·by·diffoscope;·len:·292,·SHA:·2ae73aa9b78f13099a8016e28a473713dcc755cf00fed8895c0c1b027bbcea01·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the
117 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><span·class="rightside"><s[·...·truncated·by·diffoscope;·len:·476,·SHA:·aef721c14147dea2fbec70dcfa76916b3f1273bed8304f4c9db310ca23d1e4b1·...·]/core/primitive.bool.html">bool</a><div·class="where">where117 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title=[·...·truncated·by·diffoscope;·len:·380,·SHA:·1042cdc03eabce3d330853b659f28b8566dd5841790f7f1303f3e326f05efab6·...·]/core/primitive.bool.html">bool</a><div·class="where">where
118 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,118 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
119 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·7c48e62c73a40a5cb5ebbf4a22cd789b342a88ad3d855022191f2bae33c736c6·...·]/core/primitive.bool.html">bool</a><div·class="where">where119 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·850,·SHA:·1b28d9cdfe3ba8dc7eac8cef1bb6549e78768b440ea492c70d80c8c07eae61cb·...·]/core/primitive.bool.html">bool</a><div·class="where">where
120 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,120 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
121 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·673d69ce0c23e24b2546127c463e67cd2a4c0f7be792712e2b42e75427161b75·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where121 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·980,·SHA:·a560c9e639c326a34f124b36f977291532e03ffae190e973674fee7e13b4c842·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
122 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,122 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
123 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·aa5078ff77f5638746395497f8ce92c1b684d342dea851990104d5e9981ab6b0·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where123 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·883,·SHA:·47fb849c20ee0cb36696a24bd285768bd0973774403ae956d2a517cd216452b1·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where
124 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,124 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
125 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·1bd732dff19021a1586bb486282683f5c1bc65d5d514f9e13cc9232b4e94955b·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;,</div></h4></section></summary><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns125 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·58,·SHA:·f6e1e279f463d2adecc4a9316aeab7af85329a84398e722f43ac130647fe78cf·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;,</div></h4></section></summary><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns
Max diff block lines reached; 153037/350090 bytes (43.71%) of diff not shown.
334 KB
./usr/share/doc/rust-doc/html/alloc/collections/btree_map/struct.IntoKeys.html
    
Offset 1, 246 lines modifiedOffset 1, 246 lines modified
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="An·owning·iterator·over·the·keys·of·a·`BTreeMap`."><title>IntoKeys·in·alloc::collections::btree_map·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»2025-01-07)»     (built»       from»   a»  source»    tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Into<wbr>Keys</a></h2><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Debug-for-IntoKeys%3CK,+V,+A%3E"·title="Debug">Debug</a></li><li><a·href="#impl-Default-for-IntoKeys%3CK,+V,+A%3E"·title="Default">Default</a></li><li><a·href="#impl-DoubleEndedIterator-for-IntoKeys%3CK,+V,+A%3E"·title="DoubleEndedIterator">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-IntoKeys%3CK,+V,+A%3E"·title="ExactSizeIterator">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-IntoKeys%3CK,+V,+A%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-IntoKeys%3CK,+V,+A%3E"·title="Iterator">Iterator</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-IntoKeys%3CK,+V,+A%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-IntoKeys%3CK,+V,+A%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-IntoKeys%3CK,+V,+A%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-IntoKeys%3CK,+V,+A%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-IntoKeys%3CK,+V,+A%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-IntoKeys%3CK,+V,+A%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>collections::<wbr>btree_<wbr>map</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">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">btree_map</a></span><h1>Struct·<span·class="struct">IntoKeys</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.54.0">1.54.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map.rs.html#506-508">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·IntoKeys&lt;K,·V,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·=·<a·class="struct"·href="../../alloc/struct.Global.html"·title="struct·alloc::alloc::Global">Global</a>&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>An·owning·iterator·over·the·keys·of·a·<code>BTreeMap</code>.</p>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="An·owning·iterator·over·the·keys·of·a·`BTreeMap`."><title>IntoKeys·in·alloc::collections::btree_map·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»2025-01-07)»     (built»       from»   a»  source»    tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Into<wbr>Keys</a></h2><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Debug-for-IntoKeys%3CK,+V,+A%3E"·title="Debug">Debug</a></li><li><a·href="#impl-Default-for-IntoKeys%3CK,+V,+A%3E"·title="Default">Default</a></li><li><a·href="#impl-DoubleEndedIterator-for-IntoKeys%3CK,+V,+A%3E"·title="DoubleEndedIterator">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-IntoKeys%3CK,+V,+A%3E"·title="ExactSizeIterator">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-IntoKeys%3CK,+V,+A%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-IntoKeys%3CK,+V,+A%3E"·title="Iterator">Iterator</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-IntoKeys%3CK,+V,+A%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-IntoKeys%3CK,+V,+A%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-IntoKeys%3CK,+V,+A%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-IntoKeys%3CK,+V,+A%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-IntoKeys%3CK,+V,+A%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-IntoKeys%3CK,+V,+A%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>collections::<wbr>btree_<wbr>map</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">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">btree_map</a></span><h1>Struct·<span·class="struct">IntoKeys</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.54.0">1.54.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map.rs.html#506-508">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·IntoKeys&lt;K,·V,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·+·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·=·<a·class="struct"·href="../../alloc/struct.Global.html"·title="struct·alloc::alloc::Global">Global</a>&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>An·owning·iterator·over·the·keys·of·a·<code>BTreeMap</code>.</p>
2 <p>This·<code>struct</code>·is·created·by·the·<a·href="struct.BTreeMap.html#method.into_keys"·title="method·alloc::collections::btree_map::BTreeMap::into_keys"><code>into_keys</code></a>·method·on·<a·href="struct.BTreeMap.html"·title="struct·alloc::collections::btree_map::BTreeMap"><code>BTreeMap</code></a>.2 <p>This·<code>struct</code>·is·created·by·the·<a·href="struct.BTreeMap.html#method.into_keys"·title="method·alloc::collections::btree_map::BTreeMap::into_keys"><code>into_keys</code></a>·method·on·<a·href="struct.BTreeMap.html"·title="struct·alloc::collections::btree_map::BTreeMap"><code>BTreeMap</code></a>.
3 See·its·documentation·for·more.</p>3 See·its·documentation·for·more.</p>
4 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-IntoKeys%3CK,+V,+A%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.54.0">1.54.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map.rs.html#511-515">Source</a></span><a·href="#impl-Debug-for-IntoKeys%3CK,+V,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;K:·<a·class="trait"·href="../../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,·V,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>&gt;·<a·class="trait"·href="../../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.IntoKeys.html"·titl[·...·truncated·by·diffoscope;·len:·1386,·SHA:·04f73a74158d5ecd4f8d6e9610a564ab0046d255423f8cadbc08ca62644c4ed5·...·]/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·for·<a·class="struct"·href="struct.IntoKeys.html"·title="struct·alloc::collections::btree_map::IntoKeys">IntoKeys</a>&lt;K,·V,·A&gt;<div·class="where">where4 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-IntoKeys%3CK,+V,+A%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.54.0">1.54.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map.rs.html#511-515">Source</a></span><a·href="#impl-Debug-for-IntoKeys%3CK,+V,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;K:·<a·class="trait"·href="../../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,·V,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·+·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>&gt;·<a·class="trait"·href="../../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.IntoKeys.html"·title="struct·alloc::collect[·...·truncated·by·diffoscope;·len:·1338,·SHA:·81b638172fb255dea09b1ae40f2ac4c6ae08005d8f49683bfdfa74eeea1d24c6·...·]/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·for·<a·class="struct"·href="struct.IntoKeys.html"·title="struct·alloc::collections::btree_map::IntoKeys">IntoKeys</a>&lt;K,·V,·A&gt;<div·class="where">where
5 ····A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3>[·...·truncated·by·diffoscope;·len:·366,·SHA:·22116ea1e23755476b5534daf5bbae6cb6e1e7537ab5a8a29bd54f0636a52ef4·...·]/core/default/trait.Default.html#tymethod.default"·class="fn">default</a>()·-&gt;·Self</h4></section></summary><div·class="docblock"><p>Creates·an·empty·<code>btree_map::IntoKeys</code>.</p>5 ····A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·+·<a·class="trait"·href="../../../core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><det[·...·truncated·by·diffoscope;·len:·294,·SHA:·5663acbccc3e08d795eedc72d89e084e6dcced5399db9e0948b4ade2e04b97d8·...·]/core/default/trait.Default.html#tymethod.default"·class="fn">default</a>()·-&gt;·Self</h4></section></summary><div·class="docblock"><p>Creates·an·empty·<code>btree_map::IntoKeys</code>.</p>
  
6 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span>iter:·btree_map::IntoKeys&lt;u8,·u8&gt;·=·Default::default();6 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span>iter:·btree_map::IntoKeys&lt;u8,·u8&gt;·=·Default::default();
7 <span·class="macro">assert_eq!</span>(iter.len(),·<span·class="number">0</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::btree_map;%0A++++let+iter:+btree_map::IntoKeys%3Cu8,+u8%3E+=+Default::default();%0A++++assert_eq!(iter.len(),+0);%0A%7D&amp;edition=2021"></a></div>7 <span·class="macro">assert_eq!</span>(iter.len(),·<span·class="number">0</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::btree_map;%0A++++let+iter:+btree_map::IntoKeys%3Cu8,+u8%3E+=+Default::default();%0A++++assert_eq!(iter.len(),+0);%0A%7D&amp;edition=2021"></a></div>
8 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-DoubleEndedIterator-for-IntoKeys%3CK,+V,+A%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.54.0">1.54.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map.rs.html#2125-2129">Source</a></span><a·href="#impl-DoubleEndedIterator-for-IntoKeys%3CK,+V,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;K,·V,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·4412,·SHA:·29c67bc13ba4034090cf0b517afcd66ecd4a0477fd9f2137e55555ae71acc528·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold"·class="fn">try_rfold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where8 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-DoubleEndedIterator-for-IntoKeys%3CK,+V,+A%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.54.0">1.54.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map.rs.html#2125-2129">Source</a></span><a·href="#impl-DoubleEndedIterator-for-IntoKeys%3CK,+V,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;K,·V,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·+·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>&gt;·<a·class="trait"·href="../../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEnd[·...·truncated·by·diffoscope;·len:·3908,·SHA:·c36c2bf6934eb48420cb6aad6de9cae58a720c4f196f1fe0a9844e0928dcb4eb·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold"·class="fn">try_rfold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where
9 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,9 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
10 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,10 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
11 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>This·is·the·reverse·version·of·<a·href="https://doc.rust-lang.org/1.8[·...·truncated·by·diffoscope;·len:·3,·SHA:·fbd04e1aae9ce0b11a8946e2c9ac2619f7428a64d32d01eff61d809dcb70ee8e·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·title="method·core::iter::traits::iterator::Iterator::try_fold"><code>Iterator::try_fold()</code></a>:·it·takes11 ····R:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>This·is·the·reverse·version·of·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·title="method·core::iter::traits::iterator::Iterator::try_fold"><code>Iterator::try_fold()</code></a>:·it·takes
12 elements·starting·from·the·back·of·the·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfold"·class="method·trait-impl"><span·clas[·...·truncated·by·diffoscope;·len:·325,·SHA:·7ffdb06a8ab3810207a1c974783822231eaf1d82fd94bcf810dd7b3181149b7b·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold"·class="fn">rfold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where12 elements·starting·from·the·back·of·the·iterator.·<a·href="../../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfold"·class="method·trait-impl"><span·class="rightside"><span·clas[·...·truncated·by·diffoscope;·len:·253,·SHA:·48421497f19ee93d3a7432833660cd659661b35b02b625c6376fc49660f200cf·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold"·class="fn">rfold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where
13 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,13 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
14 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·reduces·the·iterator’s·elements·to·a·single,14 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·reduces·the·iterator’s·elements·to·a·single,
15 final·value,·starting·from·the·back.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfind"·class="method·trait-impl"><span·class="r[·...·truncated·by·diffoscope;·len:·665,·SHA:·fde89feb7c0e70eefa34d688476ca36a70115bec8150dbf9b1a3c359f72dd28d·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where15 final·value,·starting·from·the·back.·<a·href="../../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfind"·class="method·trait-impl"><span·class="rightside"><span·class="s[·...·truncated·by·diffoscope;·len:·545,·SHA:·b420bc934fe1ddfd2fe0958678aa3aba1ce90383b1958958e47e13ae1b40fe25·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
16 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,16 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
17 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·7959,·SHA:·7897e7a2b6727aa961acec6076effcc8c2e19803b6acc96e1538d2bc2d72097e·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;K&gt;<div·class="where">where17 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·7263,·SHA:·6b011db1841fa44e18e5c481768c0e58411f6de4678eae65a6ffbe912c7533b8·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;K&gt;<div·class="where">where
18 ····K:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,</div></h4></section></summary><div·class='docblock'>Returns·the·minimum·element·of·an·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/itera[·...·truncated·by·diffoscope;·len:·523,·SHA:·cf087d509d22477c1efdd0dd5b020360cce1ea706276312c457a30fbe2fb8042·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;K&gt;<div·class="where">where18 ····K:·<a·class="trait"·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,</div></h4></section></summary><div·class='docblock'>Returns·the·minimum·element·of·an·iterator.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.min">Read·more</a[·...·truncated·by·diffoscope;·len:·427,·SHA:·2c29ccc09bfaf213f0f497012e8191780c1a11c1018e251d43078b8934402714·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;K&gt;<div·class="where">where
19 ····K:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,</div></h4></section></summary><div·class='docblock'>Returns·the·maximum·element·of·an·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/itera[·...·truncated·by·diffoscope;·len:·576,·SHA:·ca9f4163569b928826ee0cad0c2e7fca077f698fab0105c683bbb62d67ee5a89·...·]/core/primitive.usize.html">usize</a>&gt;(19 ····K:·<a·class="trait"·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,</div></h4></section></summary><div·class='docblock'>Returns·the·maximum·element·of·an·iterator.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.max">Read·more</a[·...·truncated·by·diffoscope;·len:·456,·SHA:·bfaeb007a5ab217eee046c9816e017a7ef28c8e0501acaf229793145fca7be37·...·]/core/primitive.usize.html">usize</a>&gt;(
20 ····&amp;mut·self,20 ····&amp;mut·self,
21 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·4f557a9b49151e0be8c52ffd68f1def4469c08164239dc8bef8df2040551c5ef·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where21 )·-&gt;·<a·class="enum"·href="../../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::It[·...·truncated·by·diffoscope;·len:·261,·SHA:·9b488006768a86d05b68f4e1888c750c736264a3a386f1310f1b7e8bfc7d2184·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where
22 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·962,·SHA:·116e4ec2ae3d9655c3d115eaf50f435f5323b4e48b84de734c79d2a09b3c02f2·...·]/core/primitive.usize.html">usize</a><div·class="where">where22 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_next[·...·truncated·by·diffoscope;·len:·842,·SHA:·d8f387888e3ee78f4397f4b1a12eae734e055247e3aa3251433ab8ac1019b31a·...·]/core/primitive.usize.html">usize</a><div·class="where">where
23 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·counting·the·number·of·iterations·and·returning·it.·<a·href="https://doc.[·...·truncated·by·diffoscope;·len:·3529,·SHA:·36685e4ebfba7d155142dce71eec5dabe5f32dacb8a458b62987f15496f31675·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where23 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·counting·the·number·of·iterations·and·returning·it.·<a·href="../../../core/iter/traits/iterator/t[·...·truncated·by·diffoscope;·len:·3049,·SHA:·36b73bdc1b7eb71bc2ee32534a58bc8374d5403ad0bacb5cbfb32bf6be47bb80·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where
24 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by24 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by
25 the·given·amount·at·each·iteration.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><sp[·...·truncated·by·diffoscope;·len:·842,·SHA:·945c4509a8daf2f8fbccc5c6e5089e225955911e03a3e411f047f96d52d16862·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where25 the·given·amount·at·each·iteration.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="[·...·truncated·by·diffoscope;·len:·698,·SHA:·035d2f4d2e6b01ddf0b424aa6fc3f5919c82f85f857cb9cfa0f54f8357058b90·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
26 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,26 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
27 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·3b5ce32f9d564c3aa7cf2adc7130e674758d0c0f4f1275b4c3b46a74aa802cb3·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where27 ····U:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·[·...·truncated·by·diffoscope;·len:·1137,·SHA:·7916ae3a9b5afad376aafc6d698165147d82613fe975f64423f2367a02a69f6a·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
28 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,28 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
29 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·[·...·truncated·by·diffoscope;·len:·868,·SHA:·abdbf27ccc84063c7040d8fa3da9d0bda5ee310a470ef576e15554aee4bd5d21·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where29 ····U:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·of·pairs.·<a·href="../..[·...·truncated·by·diffoscope;·len:·724,·SHA:·ba31078b5c50fbfc51e53bed6f70aaa6e7e320cfda19949035c71d9363c0d919·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where
30 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,30 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
31 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent31 ····Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent
32 items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="sr[·...·truncated·by·diffoscope;·len:·427,·SHA:·6e82ad4aad49c2165d869fe30d20a968580a973cdb3a7f4c77f49e16dd59393e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where32 items·of·the·original·iterator.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="src·rightside"·href="../..[·...·truncated·by·diffoscope;·len:·331,·SHA:·451e844c9bf5d6d78b9579516e4b9fafb3e84136eaa1c95bead4539370743d7d·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where
33 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,33 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
34 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>34 ····G:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>
35 between·adjacent·items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightsi[·...·truncated·by·diffoscope;·len:·471,·SHA:·ed10488b7b2ccc3e4cc84a9a57a9695a74c1c964962e8d753cbace12f3318a66·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where35 between·adjacent·items·of·the·original·iterator.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·[·...·truncated·by·diffoscope;·len:·375,·SHA:·7bbb71535f348e442b9de05a74f9180c9acec0636566fa2a19ab1dc83779aace·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where
36 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,36 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
37 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each37 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each
38 element.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><spa[·...·truncated·by·diffoscope;·len:·306,·SHA:·61c87c39b177830189b0e4c036d97c40d8b9649d76432c90afb88de59498e8b2·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where38 element.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="S[·...·truncated·by·diffoscope;·len:·234,·SHA:·55463e0fb539911d03265cbd8abb7248189471ea74954185ed77f245746805c2·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where
39 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,39 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
40 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·a65da32c5f5ef8335cb607d3b4ab3f8a25877bc2c2e8b44ca9d575caecd5c8a5·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where40 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·772,·SHA:·de07f629315c257cc96a89e82de6752f002f259b678391b79d5fb48e279e56d2·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where
41 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,41 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
42 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·6d69c85c69fa789be551ea42d95c33c237d12a04ef157f9ddaaead1177f7771e·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element42 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·68,·SHA:·67cf1e2a20410007c7dd6c47c91b1d386626c1bfac5c1116c374da7bbee00d51·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element
43 should·be·yielded.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·489,·SHA:·9bdc636899f4e4e5a26a3a21c9603f72b3fb972865d2f459c38b7e2ac8fed7f1·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where43 should·be·yielded.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·tit[·...·truncated·by·diffoscope;·len:·393,·SHA:·328d72714f754fb793753313f01b087a9fbb30b77a2bcd5749456e1f6fd72710·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where
44 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,44 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
45 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·46dbf841c7aecd3f06bd4c944af21650faeac98c46c515dcfe643302618b1ecd·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where45 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·884,·SHA:·e8a37e28a6bfcb2d58b9ffd389d339c3dece95c14840f28c980a7d7aedcc9a05·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where
46 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as46 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as
47 the·next·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside[·...·truncated·by·diffoscope;·len:·468,·SHA:·52f7ff7f264284c3acc4429ca34d057ded9afa2e3d9d6e07571e252db9a48977·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where47 the·next·value.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside"><span·class="since"·ti[·...·truncated·by·diffoscope;·len:·372,·SHA:·9c08a613d034f21b42b8d196073d0f4d61c81458378e40e77995533a8b460837·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where
48 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·c0180fefce4346b0b4089e5c642521d7716108241c0ce6ec3e910c7a2c7364b4·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods48 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="../../../core/iter/adapters/peekable/struct.Peekable.html#method.peek"·ti[·...·truncated·by·diffoscope;·len:·103,·SHA:·e3683d31746f50069ed604def6201840bce75bbc7c584fac6c3644292077ae8a·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods
49 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See49 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See
50 their·documentation·for·more·information.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightsid[·...·truncated·by·diffoscope;·len:·498,·SHA:·e4a68861585faec6a5032b3b69d6dfb0f2799b5f387a527d9a1365571ed02069·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where50 their·documentation·for·more·information.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightside"><span·class="since"·t[·...·truncated·by·diffoscope;·len:·402,·SHA:·bdba673560d208f968337eb74446ead60d6223b0ca9ec6fbfaeb1a995a7e8001·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where
51 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,51 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
52 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·93281c1f6402743fd61110c11cf676f0f67eddceda801b4eb35e5fe9f85870fd·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where52 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·1042,·SHA:·27d4a79658fb1c97b659bd2520bcebbf5cfcb8a42420a7ecfcbff6f3330fa5e1·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where
53 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,53 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
54 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·f1cdbb1ec64f98fabbe1d89c88b03824310926cd7eaa160953ce2452fc3abb77·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where54 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·890,·SHA:·c43533da7f54bfb6611594b3436645d4d1f8e5339d2d05bf2345e87628499759·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where
55 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,55 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
56 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·f94a0b2c1396b13b89aca7830197ebf19e2c0e5ba536a9cc25b325a481799510·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where56 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·971,·SHA:·1b31b9d1d5061d4ee982a30400139f1d7319412bdea39925e0cc1e8e7cf3d65a·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where
57 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="https://doc.rust-lang[·...·truncated·by·diffoscope;·len:·783,·SHA:·c14217b89e3292a50a09192a8857485891fc769f861e1d1fc4322d04295c86ef·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where57 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="../../../core/iter/traits/iterator/trait.Iter[·...·truncated·by·diffoscope;·len:·639,·SHA:·79c7f7eddc655d329424f08baee8551b7f59cd4dc4b0d6984c5e4f241bcb949b·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where
58 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer58 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer
59 if·the·underlying·iterator·ends·sooner.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·c[·...·truncated·by·diffoscope;·len:·488,·SHA:·76f753d5a273a09a73127631acaa0ee947326a929f33be291018188793e1af56·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where59 if·the·underlying·iterator·ends·sooner.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stab[·...·truncated·by·diffoscope;·len:·392,·SHA:·50ac976eb8bf89726a483af064d5a70c100dedd17d46dc40ac3a82aba51b2082·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where
60 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,60 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
61 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·07d303586c8ad4e0082d5b44bff8eeda03cdb8f4bdbe46489f9232bca5a43ec6·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but61 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/tra[·...·truncated·by·diffoscope;·len:·329,·SHA:·14fc5ef1359fcb2171e21ba65c5f5d8ce11053860ba1d5aa32ddce90a48c2a8c·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but
62 unlike·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·2b20882d9583cee50e0c8b3cf362b27ce0d524db387d4aa4093d622b9370dada·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where62 unlike·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.scan">Rea[·...·truncated·by·diffoscope;·len:·570,·SHA:·3cdbe78e481f63f4d21b2fa94202dad167221af9d6e6f981ccd7a6e524f6157d·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where
63 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,63 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
64 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,64 ····U:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
65 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·933,·SHA:·4af94b75ba5c1e03d2d70590d2fd0706f13b3080fbff0f5b98e7b109048c403d·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where65 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·789,·SHA:·0e36f9aa81931958e65acc9e1b5bf6ad7367dcb7163dcf0af2a043314857a909·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where
66 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,66 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
67 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.I[·...·truncated·by·diffoscope;·len:·968,·SHA:·e5572ed2f3bdf5970d038da608f2f592d945541207c483c257fe5789efba168a·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where67 ····Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::trait[·...·truncated·by·diffoscope;·len:·800,·SHA:·3ea01df21dfaf9ee656fdee6aa789a6ce5be05d17c043433c5ab28da8f6d3241·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where
68 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,68 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
69 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·3013c0e49b0dade37f8ca096eccc5ceeb03fc79b9d320a4c92486d23b88d1009·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over69 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator[·...·truncated·by·diffoscope;·len:·63,·SHA:·8395b60c01b0cde6c3340bd4e6c57cddd02465a19dcf15a8aa5498bd6c8ddc11·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over
70 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,70 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="../../../core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,
71 the·windows·during·mapping·overlap·as·well.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside">[·...·truncated·by·diffoscope;·len:·454,·SHA:·040991f3914479bcc92615de2b81df7363656323622e5aadc964e1a61917d23e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where71 the·windows·during·mapping·overlap·as·well.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside"><span·class="since"·titl[·...·truncated·by·diffoscope;·len:·358,·SHA:·21db4436f04b3d09e41f294c30cd7dea235a4beb9af727cb1f1f065008ad732e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where
72 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="https://doc.rust-lang.org/1.84.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·0e0294a45242d5ce9a3ab8f95d6d410756415291d92baa7d12283ef1b3ecc3a0·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where72 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="../../../core/option/enum.Option.html#variant.None"·title="varia[·...·truncated·by·diffoscope;·len:·697,·SHA:·55b16240a265fa2f73963114b9def4c5703a60d1c3ce047915fff28502588e5b·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where
73 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,73 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
74 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·a8b562f71802a421f4745f7d1fadf4f70d98030c829e70f27b692e7915267027·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where74 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·650,·SHA:·eb862563a2da6881a0f9a31dac8f99f2b47b2c8d3033a0e1bc9ec49ae5500941·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where
75 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="https://doc.rust-lang.org/1.84.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·b3db7d84f203bbc139b1c52912705d19c664dac762898205fce452c9dc3a5318·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where75 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.by[·...·truncated·by·diffoscope;·len:·427,·SHA:·d439202f1a598c30b789e20f3d05a82f531349aa12f3af08cc5c230996ec01a9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where
76 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,76 ····B:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
77 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·431,·SHA:·a705a23f6d810357e7dcac670743884665ffcccfb9b780d0aa03720be8ca5625·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(77 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.collect[·...·truncated·by·diffoscope;·len:·335,·SHA:·d72a986b5d306b2e1ed99e18a16e26fa1b5380448fea76ac3db703052800b629·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(
78 ····&amp;mut·self,78 ····&amp;mut·self,
79 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.h[·...·truncated·by·diffoscope;·len:·479,·SHA:·fa749442d890055f86ceb34f411c84fd7ea08302b336d786d1ca36fe5868b020·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where79 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try[·...·truncated·by·diffoscope;·len:·359,·SHA:·886ccc2fbd37f1e7df4075b80b0bebd3d1a6e997fae2114ca1818fa30fa95d5a·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
80 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,80 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
81 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>, 
82 ····&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang[·...·truncated·by·diffoscope;·len:·449,·SHA:·9ddccfb7bdd27ea692d65fa83daf56e31762d1bec3a502234174b8fa4fb33a98·...·],81 ····Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="[·...·truncated·by·diffoscope;·len:·40,·SHA:·39f6b8b47216936a6251a972a3e72c0459df25c157b8b3990eefb48397aa8303·...·],
 82 ····&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;B&gt;,
83 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/itera[·...·truncated·by·diffoscope;·len:·323,·SHA:·b5c51f161dc9d77fd81d1fd23cc71fbf42ac00f3168cf9e41ebaaa2b6eb25363·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if83 ····B:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·tit[·...·truncated·by·diffoscope;·len:·227,·SHA:·91a843f71f5d4d4bdd2a6f526e4b1ace78ad1c1c0027ff429527a1e3cc1cbb42·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if
84 a·failure·is·encountered.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·ri[·...·truncated·by·diffoscope;·len:·521,·SHA:·6a54376815dab985ec8cc35604d035e98e3003b1563c9b41e70966084505542b·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where84 a·failure·is·encountered.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../../[·...·truncated·by·diffoscope;·len:·401,·SHA:·ed1d0660f20625c1d5231d569dd3e4f1d10332250dcd1a3f5d2e886618e67f5b·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
85 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,85 ····E:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
86 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·975,·SHA:·94f7f970236ba59ba5f1415764a0e3ab2f3093c6b79e76c25c797ac24a3c4d09·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where86 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_coll[·...·truncated·by·diffoscope;·len:·855,·SHA:·7b38a8c237aadc46d5211ff8698af580678e0cbcab757a66d6416b422880dd91·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
87 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,87 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
88 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·b480ec650ba000fe7cb67df58fc0351299638ee3e8f00db18f74ca24d69f9894·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,88 ····B:·<a·class="trait"·href="../../../core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="../../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associa[·...·truncated·by·diffoscope;·len:·23,·SHA:·4417dee5d41246c4acf5419e1bdac3c7d847bd34e3e87738a08734259a3b63da·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
89 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·fdf5a1845f070855ba2cfd0c8c85460ea5cb646c4d3b42a8431bf21489c73701·...·]/core/primitive.usize.html">usize</a><div·class="where">where89 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·827,·SHA:·0237b034801a953ed40ad7c10f9a80d682bdf0a649c6fde9f53efc254cd75fc0·...·]/core/primitive.usize.html">usize</a><div·class="where">where
90 ····T:·'a,90 ····T:·'a,
91 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·1fc250e258e9e42e4fa3e22f86ecd57057e9ff23e47af1aec778076a7a891134·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,91 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="../../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEnd[·...·truncated·by·diffoscope;·len:·60,·SHA:·036db50df43442a72ce04aef94ccf2727352aad0708d71fe0e34c23613b84765·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,
92 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·5846407374f20f525a4a0663ad4488141eafe64513ef82581dc5df5c2d200745·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_partition_in_place</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62543">#62543</a>)</span></div></span><div·class='docblock'>Reorders·the·elements·of·this·iterator·<em>in-place</em>·according·to·the·given·predicate,92 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="../../../core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_partition_in_place</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62543">#62543</a>)</span></div></span><div·class='docblock'>Reorders·the·elements·of·this·iterator·<em>in-place</em>·according·to·the·given·predicate,
93 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.93 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.
94 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.partition_in_place">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_partitioned"·class="method·trait-impl"><a·clas[·...·truncated·by·diffoscope;·len:·431,·SHA:·4aa7d028146c72d45794efc19a376d4bee3b75eda61ff46d969e440b3dbfa1b0·...·]/core/primitive.bool.html">bool</a><div·class="where">where94 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.partition_in_place">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_partitioned"·class="method·trait-impl"><a·class="src·rightside"·href="[·...·truncated·by·diffoscope;·len:·335,·SHA:·252e1c16199fc3c38bc7de8cbda8c9532ab6d581d449c680cd7daf8d61a74aeb·...·]/core/primitive.bool.html">bool</a><div·class="where">where
95 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,95 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
96 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·fcd03e71f79faad6d9b9a12045d59f4dfabc78e5aefebcabc9c1a5be45e31125·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,96 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·63,·SHA:·852041c2de8156fdddf9f71111c5ddf1a6b88aabd8c082f1a254f0b21c18ffa1·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,
97 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><span·class="righ[·...·truncated·by·diffoscope;·len:·319,·SHA:·9b9df13f2f4e5b4dde3908515766e1a474fa30bcb7edc98c15665a016e677c2a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where97 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><span·class="rightside"><span·class="sinc[·...·truncated·by·diffoscope;·len:·247,·SHA:·222a0145d03094cb0b20ca156583afe97e703828a8aa77e37fb7b4661759e2c7·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where
98 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,98 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
99 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,99 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
100 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns100 ····R:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns
101 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rights[·...·truncated·by·diffoscope;·len:·321,·SHA:·619fd774190944998148325de99aaa75de66ce4b7e26579fd342c564923a5652·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where101 successfully,·producing·a·single,·final·value.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"[·...·truncated·by·diffoscope;·len:·249,·SHA:·afbe9e91614278f09851b7c5920ddaf0907a2bf4c310ec39b40084e28959cc77·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where
102 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,102 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
103 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,103 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
104 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the104 ····R:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="../../../core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the
105 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·307,·SHA:·5975144fd8566efa93ad1ccec09297e280924b7372e08681d2103702124e2c52·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where105 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><span·class="rightside"><span·class="since"·tit[·...·truncated·by·diffoscope;·len:·235,·SHA:·da9aac17d9724df2aa434c2d10e1caa010eb4fd7e574e4da4e3d5b689e970097·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where
106 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,106 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
107 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,107 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,
108 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span[·...·truncated·by·diffoscope;·len:·619,·SHA:·8813f54846438870310d5f5dfabd2335a9dbf51e9da2e4cd681bcb6077d39628·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where108 returning·the·final·result.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="St[·...·truncated·by·diffoscope;·len:·499,·SHA:·ff97be2c630acbbbb397aa79317bd89b79955e6735d9da7aea9df48659f94fce·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
109 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,109 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
110 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·084691f7fc4e7f4da7db385127d0ce8d2d52f6740757129a65910c4db0dc180d·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing110 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·256,·SHA:·2fe8ae39f77649fea294c45979f427748b2a9938dfa70e4595ac661d972125b1·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing
111 operation.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·217,·SHA:·447ae00256be3de069c602a6c04889808c883eae6fa349d023f53bdd5570ecae·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(111 operation.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside"·href="../../../src/cor[·...·truncated·by·diffoscope;·len:·145,·SHA:·be4dc63adf8a4e832fd3dbaaabbf45f287388ea2bb17088d40589203a2ec6dfb·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(
112 ····&amp;mut·self,112 ····&amp;mut·self,
113 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·70b2b85cad045ac7addf647e0bd3cd5b2c9ebca5986613ad2b6a9c00e3a1132f·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,113 ····f:·impl·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·68,·SHA:·e7e11f257edcac749a5883ad9a3aa42e6e965be419f967b36caa7afd3b36d7c9·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
114 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·1823533b932e38e3200465d101f10a34421c005018974296350162e4049615ea·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where114 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</[·...·truncated·by·diffoscope;·len:·586,·SHA:·596f94ec7a4c06359aee56ccb8a7138a1ddb94415fafcecac1fc87434b1329a3·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
115 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,115 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
116 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,116 ····R:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
117 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·764ea8f08626b05426a76738d54ebb2d640042494d76cba8c20d868bfdc07a73·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the117 ····&lt;R·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</[·...·truncated·by·diffoscope;·len:·292,·SHA:·2ae73aa9b78f13099a8016e28a473713dcc755cf00fed8895c0c1b027bbcea01·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the
118 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><span·class="rightside"><s[·...·truncated·by·diffoscope;·len:·476,·SHA:·aef721c14147dea2fbec70dcfa76916b3f1273bed8304f4c9db310ca23d1e4b1·...·]/core/primitive.bool.html">bool</a><div·class="where">where118 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title=[·...·truncated·by·diffoscope;·len:·380,·SHA:·1042cdc03eabce3d330853b659f28b8566dd5841790f7f1303f3e326f05efab6·...·]/core/primitive.bool.html">bool</a><div·class="where">where
119 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,119 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
120 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·7c48e62c73a40a5cb5ebbf4a22cd789b342a88ad3d855022191f2bae33c736c6·...·]/core/primitive.bool.html">bool</a><div·class="where">where120 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·850,·SHA:·1b28d9cdfe3ba8dc7eac8cef1bb6549e78768b440ea492c70d80c8c07eae61cb·...·]/core/primitive.bool.html">bool</a><div·class="where">where
121 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,121 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
122 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·673d69ce0c23e24b2546127c463e67cd2a4c0f7be792712e2b42e75427161b75·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where122 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·980,·SHA:·a560c9e639c326a34f124b36f977291532e03ffae190e973674fee7e13b4c842·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
123 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,123 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
124 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·aa5078ff77f5638746395497f8ce92c1b684d342dea851990104d5e9981ab6b0·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where124 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·883,·SHA:·47fb849c20ee0cb36696a24bd285768bd0973774403ae956d2a517cd216452b1·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where
125 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,125 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
Max diff block lines reached; 147081/341880 bytes (43.02%) of diff not shown.
337 KB
./usr/share/doc/rust-doc/html/alloc/collections/btree_map/struct.IntoValues.html
    
Offset 1, 248 lines modifiedOffset 1, 248 lines modified
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="An·owning·iterator·over·the·values·of·a·`BTreeMap`."><title>IntoValues·in·alloc::collections::btree_map·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»    2025-01-07)» (built»   from»       a»      source»tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Into<wbr>Values</a></h2><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Debug-for-IntoValues%3CK,+V,+A%3E"·title="Debug">Debug</a></li><li><a·href="#impl-Default-for-IntoValues%3CK,+V,+A%3E"·title="Default">Default</a></li><li><a·href="#impl-DoubleEndedIterator-for-IntoValues%3CK,+V,+A%3E"·title="DoubleEndedIterator">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-IntoValues%3CK,+V,+A%3E"·title="ExactSizeIterator">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-IntoValues%3CK,+V,+A%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-IntoValues%3CK,+V,+A%3E"·title="Iterator">Iterator</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-IntoValues%3CK,+V,+A%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-IntoValues%3CK,+V,+A%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-IntoValues%3CK,+V,+A%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-IntoValues%3CK,+V,+A%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-IntoValues%3CK,+V,+A%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-IntoValues%3CK,+V,+A%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>collections::<wbr>btree_<wbr>map</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">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">btree_map</a></span><h1>Struct·<span·class="struct">IntoValues</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.54.0">1.54.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map.rs.html#525-531">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·IntoValues&lt;K,·V,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·=·<a·class="struct"·href="../../alloc/struct.Global.html"·title="struct·alloc::alloc::Global">Global</a>&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>An·owning·iterator·over·the·values·of·a·<code>BTreeMap</code>.</p>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="An·owning·iterator·over·the·values·of·a·`BTreeMap`."><title>IntoValues·in·alloc::collections::btree_map·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»    2025-01-07)» (built»   from»       a»      source»tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Into<wbr>Values</a></h2><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Debug-for-IntoValues%3CK,+V,+A%3E"·title="Debug">Debug</a></li><li><a·href="#impl-Default-for-IntoValues%3CK,+V,+A%3E"·title="Default">Default</a></li><li><a·href="#impl-DoubleEndedIterator-for-IntoValues%3CK,+V,+A%3E"·title="DoubleEndedIterator">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-IntoValues%3CK,+V,+A%3E"·title="ExactSizeIterator">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-IntoValues%3CK,+V,+A%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-IntoValues%3CK,+V,+A%3E"·title="Iterator">Iterator</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-IntoValues%3CK,+V,+A%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-IntoValues%3CK,+V,+A%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-IntoValues%3CK,+V,+A%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-IntoValues%3CK,+V,+A%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-IntoValues%3CK,+V,+A%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-IntoValues%3CK,+V,+A%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>collections::<wbr>btree_<wbr>map</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">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">btree_map</a></span><h1>Struct·<span·class="struct">IntoValues</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.54.0">1.54.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map.rs.html#525-531">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·IntoValues&lt;K,·V,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·+·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·=·<a·class="struct"·href="../../alloc/struct.Global.html"·title="struct·alloc::alloc::Global">Global</a>&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>An·owning·iterator·over·the·values·of·a·<code>BTreeMap</code>.</p>
2 <p>This·<code>struct</code>·is·created·by·the·<a·href="struct.BTreeMap.html#method.into_values"·title="method·alloc::collections::btree_map::BTreeMap::into_values"><code>into_values</code></a>·method·on·<a·href="struct.BTreeMap.html"·title="struct·alloc::collections::btree_map::BTreeMap"><code>BTreeMap</code></a>.2 <p>This·<code>struct</code>·is·created·by·the·<a·href="struct.BTreeMap.html#method.into_values"·title="method·alloc::collections::btree_map::BTreeMap::into_values"><code>into_values</code></a>·method·on·<a·href="struct.BTreeMap.html"·title="struct·alloc::collections::btree_map::BTreeMap"><code>BTreeMap</code></a>.
3 See·its·documentation·for·more.</p>3 See·its·documentation·for·more.</p>
4 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-IntoValues%3CK,+V,+A%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.54.0">1.54.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map.rs.html#534-538">Source</a></span><a·href="#impl-Debug-for-IntoValues%3CK,+V,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;K,·V:·<a·class="trait"·href="../../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>&gt;·<a·class="trait"·href="../../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.IntoValues.html"·ti[·...·truncated·by·diffoscope;·len:·1396,·SHA:·f326b2e252c38087788029c89cf94eff05839a248f12060d26c9aa344b54dad3·...·]/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·for·<a·class="struct"·href="struct.IntoValues.html"·title="struct·alloc::collections::btree_map::IntoValues">IntoValues</a>&lt;K,·V,·A&gt;<div·class="where">where4 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-IntoValues%3CK,+V,+A%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.54.0">1.54.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map.rs.html#534-538">Source</a></span><a·href="#impl-Debug-for-IntoValues%3CK,+V,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;K,·V:·<a·class="trait"·href="../../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·+·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>&gt;·<a·class="trait"·href="../../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.IntoValues.html"·title="struct·alloc::colle[·...·truncated·by·diffoscope;·len:·1348,·SHA:·d297123c2afe7c51af0e6b2433a25fd5f1fe8be4f97afb5a69146ee1239ec91b·...·]/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·for·<a·class="struct"·href="struct.IntoValues.html"·title="struct·alloc::collections::btree_map::IntoValues">IntoValues</a>&lt;K,·V,·A&gt;<div·class="where">where
5 ····A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3>[·...·truncated·by·diffoscope;·len:·366,·SHA:·8a596e2afaf3f6c6f50ddcc73721359de007f16e9b7a4917ee5cbd63b6449845·...·]/core/default/trait.Default.html#tymethod.default"·class="fn">default</a>()·-&gt;·Self</h4></section></summary><div·class="docblock"><p>Creates·an·empty·<code>btree_map::IntoValues</code>.</p>5 ····A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·+·<a·class="trait"·href="../../../core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><det[·...·truncated·by·diffoscope;·len:·294,·SHA:·1c09096c89dd4580224bbbad86f01f27cc114af649b6c022e927eefb3073b3cb·...·]/core/default/trait.Default.html#tymethod.default"·class="fn">default</a>()·-&gt;·Self</h4></section></summary><div·class="docblock"><p>Creates·an·empty·<code>btree_map::IntoValues</code>.</p>
  
6 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span>iter:·btree_map::IntoValues&lt;u8,·u8&gt;·=·Default::default();6 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span>iter:·btree_map::IntoValues&lt;u8,·u8&gt;·=·Default::default();
7 <span·class="macro">assert_eq!</span>(iter.len(),·<span·class="number">0</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::btree_map;%0A++++let+iter:+btree_map::IntoValues%3Cu8,+u8%3E+=+Default::default();%0A++++assert_eq!(iter.len(),+0);%0A%7D&amp;edition=2021"></a></div>7 <span·class="macro">assert_eq!</span>(iter.len(),·<span·class="number">0</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::btree_map;%0A++++let+iter:+btree_map::IntoValues%3Cu8,+u8%3E+=+Default::default();%0A++++assert_eq!(iter.len(),+0);%0A%7D&amp;edition=2021"></a></div>
8 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-DoubleEndedIterator-for-IntoValues%3CK,+V,+A%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.54.0">1.54.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map.rs.html#2176-2180">Source</a></span><a·href="#impl-DoubleEndedIterator-for-IntoValues%3CK,+V,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;K,·V,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·4418,·SHA:·8b4db4e0ebb3920aa4d7e30c8cdb258e0c92463e434cca39915af01ee5c3571b·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold"·class="fn">try_rfold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where8 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-DoubleEndedIterator-for-IntoValues%3CK,+V,+A%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.54.0">1.54.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map.rs.html#2176-2180">Source</a></span><a·href="#impl-DoubleEndedIterator-for-IntoValues%3CK,+V,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;K,·V,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·+·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>&gt;·<a·class="trait"·href="../../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEnd[·...·truncated·by·diffoscope;·len:·3914,·SHA:·a22b651792b08b9c4696adc00d8c06c83034a45ee4eba0cb48159fbb480438de·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold"·class="fn">try_rfold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where
9 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,9 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
10 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,10 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
11 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>This·is·the·reverse·version·of·<a·href="https://doc.rust-lang.org/1.8[·...·truncated·by·diffoscope;·len:·3,·SHA:·fbd04e1aae9ce0b11a8946e2c9ac2619f7428a64d32d01eff61d809dcb70ee8e·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·title="method·core::iter::traits::iterator::Iterator::try_fold"><code>Iterator::try_fold()</code></a>:·it·takes11 ····R:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>This·is·the·reverse·version·of·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·title="method·core::iter::traits::iterator::Iterator::try_fold"><code>Iterator::try_fold()</code></a>:·it·takes
12 elements·starting·from·the·back·of·the·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfold"·class="method·trait-impl"><span·clas[·...·truncated·by·diffoscope;·len:·325,·SHA:·7ffdb06a8ab3810207a1c974783822231eaf1d82fd94bcf810dd7b3181149b7b·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold"·class="fn">rfold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where12 elements·starting·from·the·back·of·the·iterator.·<a·href="../../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfold"·class="method·trait-impl"><span·class="rightside"><span·clas[·...·truncated·by·diffoscope;·len:·253,·SHA:·48421497f19ee93d3a7432833660cd659661b35b02b625c6376fc49660f200cf·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold"·class="fn">rfold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where
13 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,13 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
14 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·reduces·the·iterator’s·elements·to·a·single,14 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·reduces·the·iterator’s·elements·to·a·single,
15 final·value,·starting·from·the·back.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfind"·class="method·trait-impl"><span·class="r[·...·truncated·by·diffoscope;·len:·665,·SHA:·fde89feb7c0e70eefa34d688476ca36a70115bec8150dbf9b1a3c359f72dd28d·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where15 final·value,·starting·from·the·back.·<a·href="../../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfind"·class="method·trait-impl"><span·class="rightside"><span·class="s[·...·truncated·by·diffoscope;·len:·545,·SHA:·b420bc934fe1ddfd2fe0958678aa3aba1ce90383b1958958e47e13ae1b40fe25·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
16 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,16 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
17 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·8032,·SHA:·d99c4686b917a0a604551874f9ccd8d8f0e12b828f8678af03d1385ec257539e·...·]/core/primitive.usize.html">usize</a>&gt;(17 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·7312,·SHA:·db95406c4c0c33595fa3ee1b1f280a4c4d7a84e6ab94530b63664807572b4ba8·...·]/core/primitive.usize.html">usize</a>&gt;(
18 ····&amp;mut·self,18 ····&amp;mut·self,
19 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·4f557a9b49151e0be8c52ffd68f1def4469c08164239dc8bef8df2040551c5ef·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where19 )·-&gt;·<a·class="enum"·href="../../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::It[·...·truncated·by·diffoscope;·len:·261,·SHA:·9b488006768a86d05b68f4e1888c750c736264a3a386f1310f1b7e8bfc7d2184·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where
20 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·962,·SHA:·116e4ec2ae3d9655c3d115eaf50f435f5323b4e48b84de734c79d2a09b3c02f2·...·]/core/primitive.usize.html">usize</a><div·class="where">where20 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_next[·...·truncated·by·diffoscope;·len:·842,·SHA:·d8f387888e3ee78f4397f4b1a12eae734e055247e3aa3251433ab8ac1019b31a·...·]/core/primitive.usize.html">usize</a><div·class="where">where
21 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·counting·the·number·of·iterations·and·returning·it.·<a·href="https://doc.[·...·truncated·by·diffoscope;·len:·3529,·SHA:·36685e4ebfba7d155142dce71eec5dabe5f32dacb8a458b62987f15496f31675·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where21 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·counting·the·number·of·iterations·and·returning·it.·<a·href="../../../core/iter/traits/iterator/t[·...·truncated·by·diffoscope;·len:·3049,·SHA:·36b73bdc1b7eb71bc2ee32534a58bc8374d5403ad0bacb5cbfb32bf6be47bb80·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where
22 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by22 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by
23 the·given·amount·at·each·iteration.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><sp[·...·truncated·by·diffoscope;·len:·842,·SHA:·945c4509a8daf2f8fbccc5c6e5089e225955911e03a3e411f047f96d52d16862·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where23 the·given·amount·at·each·iteration.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="[·...·truncated·by·diffoscope;·len:·698,·SHA:·035d2f4d2e6b01ddf0b424aa6fc3f5919c82f85f857cb9cfa0f54f8357058b90·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
24 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,24 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
25 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·3b5ce32f9d564c3aa7cf2adc7130e674758d0c0f4f1275b4c3b46a74aa802cb3·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where25 ····U:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·[·...·truncated·by·diffoscope;·len:·1137,·SHA:·7916ae3a9b5afad376aafc6d698165147d82613fe975f64423f2367a02a69f6a·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
26 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,26 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
27 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·[·...·truncated·by·diffoscope;·len:·868,·SHA:·abdbf27ccc84063c7040d8fa3da9d0bda5ee310a470ef576e15554aee4bd5d21·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where27 ····U:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·of·pairs.·<a·href="../..[·...·truncated·by·diffoscope;·len:·724,·SHA:·ba31078b5c50fbfc51e53bed6f70aaa6e7e320cfda19949035c71d9363c0d919·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where
28 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,28 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
29 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent29 ····Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent
30 items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="sr[·...·truncated·by·diffoscope;·len:·427,·SHA:·6e82ad4aad49c2165d869fe30d20a968580a973cdb3a7f4c77f49e16dd59393e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where30 items·of·the·original·iterator.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="src·rightside"·href="../..[·...·truncated·by·diffoscope;·len:·331,·SHA:·451e844c9bf5d6d78b9579516e4b9fafb3e84136eaa1c95bead4539370743d7d·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where
31 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,31 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
32 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>32 ····G:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>
33 between·adjacent·items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightsi[·...·truncated·by·diffoscope;·len:·471,·SHA:·ed10488b7b2ccc3e4cc84a9a57a9695a74c1c964962e8d753cbace12f3318a66·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where33 between·adjacent·items·of·the·original·iterator.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·[·...·truncated·by·diffoscope;·len:·375,·SHA:·7bbb71535f348e442b9de05a74f9180c9acec0636566fa2a19ab1dc83779aace·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where
34 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,34 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
35 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each35 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each
36 element.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><spa[·...·truncated·by·diffoscope;·len:·306,·SHA:·61c87c39b177830189b0e4c036d97c40d8b9649d76432c90afb88de59498e8b2·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where36 element.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="S[·...·truncated·by·diffoscope;·len:·234,·SHA:·55463e0fb539911d03265cbd8abb7248189471ea74954185ed77f245746805c2·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where
37 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,37 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
38 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·a65da32c5f5ef8335cb607d3b4ab3f8a25877bc2c2e8b44ca9d575caecd5c8a5·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where38 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·772,·SHA:·de07f629315c257cc96a89e82de6752f002f259b678391b79d5fb48e279e56d2·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where
39 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,39 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
40 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·6d69c85c69fa789be551ea42d95c33c237d12a04ef157f9ddaaead1177f7771e·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element40 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·68,·SHA:·67cf1e2a20410007c7dd6c47c91b1d386626c1bfac5c1116c374da7bbee00d51·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element
41 should·be·yielded.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·489,·SHA:·9bdc636899f4e4e5a26a3a21c9603f72b3fb972865d2f459c38b7e2ac8fed7f1·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where41 should·be·yielded.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·tit[·...·truncated·by·diffoscope;·len:·393,·SHA:·328d72714f754fb793753313f01b087a9fbb30b77a2bcd5749456e1f6fd72710·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where
42 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,42 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
43 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·46dbf841c7aecd3f06bd4c944af21650faeac98c46c515dcfe643302618b1ecd·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where43 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·884,·SHA:·e8a37e28a6bfcb2d58b9ffd389d339c3dece95c14840f28c980a7d7aedcc9a05·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where
44 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as44 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as
45 the·next·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside[·...·truncated·by·diffoscope;·len:·468,·SHA:·52f7ff7f264284c3acc4429ca34d057ded9afa2e3d9d6e07571e252db9a48977·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where45 the·next·value.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside"><span·class="since"·ti[·...·truncated·by·diffoscope;·len:·372,·SHA:·9c08a613d034f21b42b8d196073d0f4d61c81458378e40e77995533a8b460837·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where
46 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·c0180fefce4346b0b4089e5c642521d7716108241c0ce6ec3e910c7a2c7364b4·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods46 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="../../../core/iter/adapters/peekable/struct.Peekable.html#method.peek"·ti[·...·truncated·by·diffoscope;·len:·103,·SHA:·e3683d31746f50069ed604def6201840bce75bbc7c584fac6c3644292077ae8a·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods
47 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See47 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See
48 their·documentation·for·more·information.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightsid[·...·truncated·by·diffoscope;·len:·498,·SHA:·e4a68861585faec6a5032b3b69d6dfb0f2799b5f387a527d9a1365571ed02069·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where48 their·documentation·for·more·information.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightside"><span·class="since"·t[·...·truncated·by·diffoscope;·len:·402,·SHA:·bdba673560d208f968337eb74446ead60d6223b0ca9ec6fbfaeb1a995a7e8001·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where
49 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,49 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
50 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·93281c1f6402743fd61110c11cf676f0f67eddceda801b4eb35e5fe9f85870fd·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where50 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·1042,·SHA:·27d4a79658fb1c97b659bd2520bcebbf5cfcb8a42420a7ecfcbff6f3330fa5e1·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where
51 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,51 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
52 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·f1cdbb1ec64f98fabbe1d89c88b03824310926cd7eaa160953ce2452fc3abb77·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where52 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·890,·SHA:·c43533da7f54bfb6611594b3436645d4d1f8e5339d2d05bf2345e87628499759·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where
53 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,53 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
54 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·f94a0b2c1396b13b89aca7830197ebf19e2c0e5ba536a9cc25b325a481799510·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where54 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·971,·SHA:·1b31b9d1d5061d4ee982a30400139f1d7319412bdea39925e0cc1e8e7cf3d65a·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where
55 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="https://doc.rust-lang[·...·truncated·by·diffoscope;·len:·783,·SHA:·c14217b89e3292a50a09192a8857485891fc769f861e1d1fc4322d04295c86ef·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where55 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="../../../core/iter/traits/iterator/trait.Iter[·...·truncated·by·diffoscope;·len:·639,·SHA:·79c7f7eddc655d329424f08baee8551b7f59cd4dc4b0d6984c5e4f241bcb949b·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where
56 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer56 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer
57 if·the·underlying·iterator·ends·sooner.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·c[·...·truncated·by·diffoscope;·len:·488,·SHA:·76f753d5a273a09a73127631acaa0ee947326a929f33be291018188793e1af56·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where57 if·the·underlying·iterator·ends·sooner.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stab[·...·truncated·by·diffoscope;·len:·392,·SHA:·50ac976eb8bf89726a483af064d5a70c100dedd17d46dc40ac3a82aba51b2082·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where
58 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,58 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
59 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·07d303586c8ad4e0082d5b44bff8eeda03cdb8f4bdbe46489f9232bca5a43ec6·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but59 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/tra[·...·truncated·by·diffoscope;·len:·329,·SHA:·14fc5ef1359fcb2171e21ba65c5f5d8ce11053860ba1d5aa32ddce90a48c2a8c·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but
60 unlike·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·2b20882d9583cee50e0c8b3cf362b27ce0d524db387d4aa4093d622b9370dada·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where60 unlike·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.scan">Rea[·...·truncated·by·diffoscope;·len:·570,·SHA:·3cdbe78e481f63f4d21b2fa94202dad167221af9d6e6f981ccd7a6e524f6157d·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where
61 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,61 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
62 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,62 ····U:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
63 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·933,·SHA:·4af94b75ba5c1e03d2d70590d2fd0706f13b3080fbff0f5b98e7b109048c403d·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where63 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·789,·SHA:·0e36f9aa81931958e65acc9e1b5bf6ad7367dcb7163dcf0af2a043314857a909·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where
64 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,64 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
65 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.I[·...·truncated·by·diffoscope;·len:·968,·SHA:·e5572ed2f3bdf5970d038da608f2f592d945541207c483c257fe5789efba168a·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where65 ····Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::trait[·...·truncated·by·diffoscope;·len:·800,·SHA:·3ea01df21dfaf9ee656fdee6aa789a6ce5be05d17c043433c5ab28da8f6d3241·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where
66 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,66 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
67 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·3013c0e49b0dade37f8ca096eccc5ceeb03fc79b9d320a4c92486d23b88d1009·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over67 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator[·...·truncated·by·diffoscope;·len:·63,·SHA:·8395b60c01b0cde6c3340bd4e6c57cddd02465a19dcf15a8aa5498bd6c8ddc11·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over
68 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,68 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="../../../core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,
69 the·windows·during·mapping·overlap·as·well.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside">[·...·truncated·by·diffoscope;·len:·454,·SHA:·040991f3914479bcc92615de2b81df7363656323622e5aadc964e1a61917d23e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where69 the·windows·during·mapping·overlap·as·well.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside"><span·class="since"·titl[·...·truncated·by·diffoscope;·len:·358,·SHA:·21db4436f04b3d09e41f294c30cd7dea235a4beb9af727cb1f1f065008ad732e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where
70 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="https://doc.rust-lang.org/1.84.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·0e0294a45242d5ce9a3ab8f95d6d410756415291d92baa7d12283ef1b3ecc3a0·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where70 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="../../../core/option/enum.Option.html#variant.None"·title="varia[·...·truncated·by·diffoscope;·len:·697,·SHA:·55b16240a265fa2f73963114b9def4c5703a60d1c3ce047915fff28502588e5b·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where
71 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,71 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
72 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·a8b562f71802a421f4745f7d1fadf4f70d98030c829e70f27b692e7915267027·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where72 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·650,·SHA:·eb862563a2da6881a0f9a31dac8f99f2b47b2c8d3033a0e1bc9ec49ae5500941·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where
73 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="https://doc.rust-lang.org/1.84.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·b3db7d84f203bbc139b1c52912705d19c664dac762898205fce452c9dc3a5318·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where73 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.by[·...·truncated·by·diffoscope;·len:·427,·SHA:·d439202f1a598c30b789e20f3d05a82f531349aa12f3af08cc5c230996ec01a9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where
74 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,74 ····B:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
75 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·431,·SHA:·a705a23f6d810357e7dcac670743884665ffcccfb9b780d0aa03720be8ca5625·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(75 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.collect[·...·truncated·by·diffoscope;·len:·335,·SHA:·d72a986b5d306b2e1ed99e18a16e26fa1b5380448fea76ac3db703052800b629·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(
76 ····&amp;mut·self,76 ····&amp;mut·self,
77 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.h[·...·truncated·by·diffoscope;·len:·479,·SHA:·fa749442d890055f86ceb34f411c84fd7ea08302b336d786d1ca36fe5868b020·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where77 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try[·...·truncated·by·diffoscope;·len:·359,·SHA:·886ccc2fbd37f1e7df4075b80b0bebd3d1a6e997fae2114ca1818fa30fa95d5a·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
78 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,78 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
79 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>, 
80 ····&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang[·...·truncated·by·diffoscope;·len:·449,·SHA:·9ddccfb7bdd27ea692d65fa83daf56e31762d1bec3a502234174b8fa4fb33a98·...·],79 ····Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="[·...·truncated·by·diffoscope;·len:·40,·SHA:·39f6b8b47216936a6251a972a3e72c0459df25c157b8b3990eefb48397aa8303·...·],
 80 ····&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;B&gt;,
81 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/itera[·...·truncated·by·diffoscope;·len:·323,·SHA:·b5c51f161dc9d77fd81d1fd23cc71fbf42ac00f3168cf9e41ebaaa2b6eb25363·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if81 ····B:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·tit[·...·truncated·by·diffoscope;·len:·227,·SHA:·91a843f71f5d4d4bdd2a6f526e4b1ace78ad1c1c0027ff429527a1e3cc1cbb42·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if
82 a·failure·is·encountered.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·ri[·...·truncated·by·diffoscope;·len:·521,·SHA:·6a54376815dab985ec8cc35604d035e98e3003b1563c9b41e70966084505542b·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where82 a·failure·is·encountered.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../../[·...·truncated·by·diffoscope;·len:·401,·SHA:·ed1d0660f20625c1d5231d569dd3e4f1d10332250dcd1a3f5d2e886618e67f5b·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
83 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,83 ····E:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
84 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·975,·SHA:·94f7f970236ba59ba5f1415764a0e3ab2f3093c6b79e76c25c797ac24a3c4d09·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where84 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_coll[·...·truncated·by·diffoscope;·len:·855,·SHA:·7b38a8c237aadc46d5211ff8698af580678e0cbcab757a66d6416b422880dd91·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
85 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,85 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
86 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·b480ec650ba000fe7cb67df58fc0351299638ee3e8f00db18f74ca24d69f9894·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,86 ····B:·<a·class="trait"·href="../../../core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="../../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associa[·...·truncated·by·diffoscope;·len:·23,·SHA:·4417dee5d41246c4acf5419e1bdac3c7d847bd34e3e87738a08734259a3b63da·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
87 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·fdf5a1845f070855ba2cfd0c8c85460ea5cb646c4d3b42a8431bf21489c73701·...·]/core/primitive.usize.html">usize</a><div·class="where">where87 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·827,·SHA:·0237b034801a953ed40ad7c10f9a80d682bdf0a649c6fde9f53efc254cd75fc0·...·]/core/primitive.usize.html">usize</a><div·class="where">where
88 ····T:·'a,88 ····T:·'a,
89 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·1fc250e258e9e42e4fa3e22f86ecd57057e9ff23e47af1aec778076a7a891134·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,89 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="../../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEnd[·...·truncated·by·diffoscope;·len:·60,·SHA:·036db50df43442a72ce04aef94ccf2727352aad0708d71fe0e34c23613b84765·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,
90 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·5846407374f20f525a4a0663ad4488141eafe64513ef82581dc5df5c2d200745·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_partition_in_place</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62543">#62543</a>)</span></div></span><div·class='docblock'>Reorders·the·elements·of·this·iterator·<em>in-place</em>·according·to·the·given·predicate,90 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="../../../core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_partition_in_place</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62543">#62543</a>)</span></div></span><div·class='docblock'>Reorders·the·elements·of·this·iterator·<em>in-place</em>·according·to·the·given·predicate,
91 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.91 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.
92 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.partition_in_place">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_partitioned"·class="method·trait-impl"><a·clas[·...·truncated·by·diffoscope;·len:·431,·SHA:·4aa7d028146c72d45794efc19a376d4bee3b75eda61ff46d969e440b3dbfa1b0·...·]/core/primitive.bool.html">bool</a><div·class="where">where92 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.partition_in_place">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_partitioned"·class="method·trait-impl"><a·class="src·rightside"·href="[·...·truncated·by·diffoscope;·len:·335,·SHA:·252e1c16199fc3c38bc7de8cbda8c9532ab6d581d449c680cd7daf8d61a74aeb·...·]/core/primitive.bool.html">bool</a><div·class="where">where
93 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,93 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
94 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·fcd03e71f79faad6d9b9a12045d59f4dfabc78e5aefebcabc9c1a5be45e31125·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,94 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·63,·SHA:·852041c2de8156fdddf9f71111c5ddf1a6b88aabd8c082f1a254f0b21c18ffa1·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,
95 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><span·class="righ[·...·truncated·by·diffoscope;·len:·319,·SHA:·9b9df13f2f4e5b4dde3908515766e1a474fa30bcb7edc98c15665a016e677c2a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where95 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><span·class="rightside"><span·class="sinc[·...·truncated·by·diffoscope;·len:·247,·SHA:·222a0145d03094cb0b20ca156583afe97e703828a8aa77e37fb7b4661759e2c7·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where
96 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,96 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
97 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,97 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
98 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns98 ····R:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns
99 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rights[·...·truncated·by·diffoscope;·len:·321,·SHA:·619fd774190944998148325de99aaa75de66ce4b7e26579fd342c564923a5652·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where99 successfully,·producing·a·single,·final·value.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"[·...·truncated·by·diffoscope;·len:·249,·SHA:·afbe9e91614278f09851b7c5920ddaf0907a2bf4c310ec39b40084e28959cc77·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where
100 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,100 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
101 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,101 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
102 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the102 ····R:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="../../../core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the
103 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·307,·SHA:·5975144fd8566efa93ad1ccec09297e280924b7372e08681d2103702124e2c52·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where103 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><span·class="rightside"><span·class="since"·tit[·...·truncated·by·diffoscope;·len:·235,·SHA:·da9aac17d9724df2aa434c2d10e1caa010eb4fd7e574e4da4e3d5b689e970097·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where
104 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,104 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
105 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,105 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,
106 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span[·...·truncated·by·diffoscope;·len:·619,·SHA:·8813f54846438870310d5f5dfabd2335a9dbf51e9da2e4cd681bcb6077d39628·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where106 returning·the·final·result.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="St[·...·truncated·by·diffoscope;·len:·499,·SHA:·ff97be2c630acbbbb397aa79317bd89b79955e6735d9da7aea9df48659f94fce·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
107 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,107 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
108 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·084691f7fc4e7f4da7db385127d0ce8d2d52f6740757129a65910c4db0dc180d·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing108 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·256,·SHA:·2fe8ae39f77649fea294c45979f427748b2a9938dfa70e4595ac661d972125b1·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing
109 operation.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·217,·SHA:·447ae00256be3de069c602a6c04889808c883eae6fa349d023f53bdd5570ecae·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(109 operation.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside"·href="../../../src/cor[·...·truncated·by·diffoscope;·len:·145,·SHA:·be4dc63adf8a4e832fd3dbaaabbf45f287388ea2bb17088d40589203a2ec6dfb·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(
110 ····&amp;mut·self,110 ····&amp;mut·self,
111 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·70b2b85cad045ac7addf647e0bd3cd5b2c9ebca5986613ad2b6a9c00e3a1132f·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,111 ····f:·impl·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·68,·SHA:·e7e11f257edcac749a5883ad9a3aa42e6e965be419f967b36caa7afd3b36d7c9·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
112 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·1823533b932e38e3200465d101f10a34421c005018974296350162e4049615ea·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where112 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</[·...·truncated·by·diffoscope;·len:·586,·SHA:·596f94ec7a4c06359aee56ccb8a7138a1ddb94415fafcecac1fc87434b1329a3·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
113 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,113 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
114 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,114 ····R:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
115 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·764ea8f08626b05426a76738d54ebb2d640042494d76cba8c20d868bfdc07a73·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the115 ····&lt;R·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</[·...·truncated·by·diffoscope;·len:·292,·SHA:·2ae73aa9b78f13099a8016e28a473713dcc755cf00fed8895c0c1b027bbcea01·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the
116 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><span·class="rightside"><s[·...·truncated·by·diffoscope;·len:·476,·SHA:·aef721c14147dea2fbec70dcfa76916b3f1273bed8304f4c9db310ca23d1e4b1·...·]/core/primitive.bool.html">bool</a><div·class="where">where116 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title=[·...·truncated·by·diffoscope;·len:·380,·SHA:·1042cdc03eabce3d330853b659f28b8566dd5841790f7f1303f3e326f05efab6·...·]/core/primitive.bool.html">bool</a><div·class="where">where
117 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,117 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
118 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·7c48e62c73a40a5cb5ebbf4a22cd789b342a88ad3d855022191f2bae33c736c6·...·]/core/primitive.bool.html">bool</a><div·class="where">where118 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·850,·SHA:·1b28d9cdfe3ba8dc7eac8cef1bb6549e78768b440ea492c70d80c8c07eae61cb·...·]/core/primitive.bool.html">bool</a><div·class="where">where
119 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,119 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
120 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·673d69ce0c23e24b2546127c463e67cd2a4c0f7be792712e2b42e75427161b75·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where120 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·980,·SHA:·a560c9e639c326a34f124b36f977291532e03ffae190e973674fee7e13b4c842·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
121 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,121 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
122 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·aa5078ff77f5638746395497f8ce92c1b684d342dea851990104d5e9981ab6b0·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where122 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·883,·SHA:·47fb849c20ee0cb36696a24bd285768bd0973774403ae956d2a517cd216452b1·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where
123 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,123 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
124 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·1bd732dff19021a1586bb486282683f5c1bc65d5d514f9e13cc9232b4e94955b·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;,</div></h4></section></summary><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns124 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·58,·SHA:·f6e1e279f463d2adecc4a9316aeab7af85329a84398e722f43ac130647fe78cf·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;,</div></h4></section></summary><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns
125 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.find_map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_find"·class="method·trait-impl"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·215,·SHA:·4d59a011c8881794ce6367c1e816f11a813db02e37c71800ed6d47056f157573·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(125 the·first·non-none·result.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.find_map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_find"·class="method·trait-impl"><a·class="src·rightside"·href="../../../src/cor[·...·truncated·by·diffoscope;·len:·143,·SHA:·00906f8dc0620ba030a634eba59c098f3aff639a062bf6231dfc4feb7727cc72·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(
Max diff block lines reached; 153177/344678 bytes (44.44%) of diff not shown.
340 KB
./usr/share/doc/rust-doc/html/alloc/collections/btree_map/struct.Iter.html
    
Offset 1, 242 lines modifiedOffset 1, 242 lines modified
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="An·iterator·over·the·entries·of·a·`BTreeMap`."><title>Iter·in·alloc::collections::btree_map·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»       2025-01-07)»    (built»      from»  a» source»   tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Iter</a></h2><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-Iter%3C'_,+K,+V%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-Iter%3C'_,+K,+V%3E"·title="Debug">Debug</a></li><li><a·href="#impl-Default-for-Iter%3C'a,+K,+V%3E"·title="Default">Default</a></li><li><a·href="#impl-DoubleEndedIterator-for-Iter%3C'a,+K,+V%3E"·title="DoubleEndedIterator">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-Iter%3C'_,+K,+V%3E"·title="ExactSizeIterator">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-Iter%3C'_,+K,+V%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-Iter%3C'a,+K,+V%3E"·title="Iterator">Iterator</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-Iter%3C'a,+K,+V%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Iter%3C'a,+K,+V%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Iter%3C'a,+K,+V%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-Iter%3C'a,+K,+V%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-Iter%3C'a,+K,+V%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Iter%3C'a,+K,+V%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>collections::<wbr>btree_<wbr>map</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">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">btree_map</a></span><h1>Struct·<span·class="struct">Iter</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map.rs.html#326-329">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·Iter&lt;'a,·K:·'a,·V:·'a&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>An·iterator·over·the·entries·of·a·<code>BTreeMap</code>.</p>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="An·iterator·over·the·entries·of·a·`BTreeMap`."><title>Iter·in·alloc::collections::btree_map·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»       2025-01-07)»    (built»      from»  a» source»   tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Iter</a></h2><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-Iter%3C'_,+K,+V%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-Iter%3C'_,+K,+V%3E"·title="Debug">Debug</a></li><li><a·href="#impl-Default-for-Iter%3C'a,+K,+V%3E"·title="Default">Default</a></li><li><a·href="#impl-DoubleEndedIterator-for-Iter%3C'a,+K,+V%3E"·title="DoubleEndedIterator">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-Iter%3C'_,+K,+V%3E"·title="ExactSizeIterator">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-Iter%3C'_,+K,+V%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-Iter%3C'a,+K,+V%3E"·title="Iterator">Iterator</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-Iter%3C'a,+K,+V%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Iter%3C'a,+K,+V%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Iter%3C'a,+K,+V%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-Iter%3C'a,+K,+V%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-Iter%3C'a,+K,+V%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Iter%3C'a,+K,+V%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>collections::<wbr>btree_<wbr>map</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">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">btree_map</a></span><h1>Struct·<span·class="struct">Iter</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map.rs.html#326-329">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·Iter&lt;'a,·K:·'a,·V:·'a&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>An·iterator·over·the·entries·of·a·<code>BTreeMap</code>.</p>
2 <p>This·<code>struct</code>·is·created·by·the·<a·href="struct.BTreeMap.html#method.iter"·title="method·alloc::collections::btree_map::BTreeMap::iter"><code>iter</code></a>·method·on·<a·href="struct.BTreeMap.html"·title="struct·alloc::collections::btree_map::BTreeMap"><code>BTreeMap</code></a>.·See·its2 <p>This·<code>struct</code>·is·created·by·the·<a·href="struct.BTreeMap.html#method.iter"·title="method·alloc::collections::btree_map::BTreeMap::iter"><code>iter</code></a>·method·on·<a·href="struct.BTreeMap.html"·title="struct·alloc::collections::btree_map::BTreeMap"><code>BTreeMap</code></a>.·See·its
3 documentation·for·more.</p>3 documentation·for·more.</p>
4 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-Iter%3C'_,+K,+V%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map.rs.html#1565-1569">Source</a></span><a·href="#impl-Clone-for-Iter%3C'_,+K,+V%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;K,·V&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struct"·href="struct.Iter.html"·title="struct·alloc::collections::btree_map::Iter">Iter</a>&lt;'_,·K,·V&gt;</h3></section></summary><div·[·...·truncated·by·diffoscope;·len:·4085,·SHA:·32245a957d44035399d8632641a2484e8328543ea7c69ed7cb4978b23db9163e·...·]/core/default/trait.Default.html#tymethod.default"·class="fn">default</a>()·-&gt;·Self</h4></section></summary><div·class="docblock"><p>Creates·an·empty·<code>btree_map::Iter</code>.</p>4 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-Iter%3C'_,+K,+V%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map.rs.html#1565-1569">Source</a></span><a·href="#impl-Clone-for-Iter%3C'_,+K,+V%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;K,·V&gt;·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struct"·href="struct.Iter.html"·title="struct·alloc::collections::btree_map::Iter">Iter</a>&lt;'_,·K,·V&gt;</h3></section></summary><div·class="impl-items"><deta[·...·truncated·by·diffoscope;·len:·3893,·SHA:·253e3d9200f9f188c4dcd98ab8612c9b6750fb1b40bf0744c0624902504f3df3·...·]/core/default/trait.Default.html#tymethod.default"·class="fn">default</a>()·-&gt;·Self</h4></section></summary><div·class="docblock"><p>Creates·an·empty·<code>btree_map::Iter</code>.</p>
  
5 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span>iter:·btree_map::Iter&lt;<span·class="lifetime">'_</span>,·u8,·u8&gt;·=·Default::default();5 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span>iter:·btree_map::Iter&lt;<span·class="lifetime">'_</span>,·u8,·u8&gt;·=·Default::default();
6 <span·class="macro">assert_eq!</span>(iter.len(),·<span·class="number">0</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::btree_map;%0A++++let+iter:+btree_map::Iter%3C'_,+u8,+u8%3E+=+Default::default();%0A++++assert_eq!(iter.len(),+0);%0A%7D&amp;edition=2021"></a></div>6 <span·class="macro">assert_eq!</span>(iter.len(),·<span·class="number">0</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::btree_map;%0A++++let+iter:+btree_map::Iter%3C'_,+u8,+u8%3E+=+Default::default();%0A++++assert_eq!(iter.len(),+0);%0A%7D&amp;edition=2021"></a></div>
7 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-DoubleEndedIterator-for-Iter%3C'a,+K,+V%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map.rs.html#1546-1555">Source</a></span><a·href="#impl-DoubleEndedIterator-for-Iter%3C'a,+K,+V%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·K:·'a,·V:·'a&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIterator</a>·for·<a·class="struct"·href="struct.Iter.html"·title="struct·alloc::co[·...·truncated·by·diffoscope;·len:·4480,·SHA:·be71bbffb16007628cc8b1a9c4a803fd0e82176cfcc4ca65e4407c5919c653ab·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold"·class="fn">try_rfold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where7 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-DoubleEndedIterator-for-Iter%3C'a,+K,+V%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map.rs.html#1546-1555">Source</a></span><a·href="#impl-DoubleEndedIterator-for-Iter%3C'a,+K,+V%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·K:·'a,·V:·'a&gt;·<a·class="trait"·href="../../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIterator</a>·for·<a·class="struct"·href="struct.Iter.html"·title="struct·alloc::collections::btree_map::It[·...·truncated·by·diffoscope;·len:·3952,·SHA:·6e1b7fe62276ab94137090d74832eaa01aab20ac8f7180fec2f8cd4ac5c417ac·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold"·class="fn">try_rfold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where
8 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,8 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
9 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,9 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
10 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>This·is·the·reverse·version·of·<a·href="https://doc.rust-lang.org/1.8[·...·truncated·by·diffoscope;·len:·3,·SHA:·fbd04e1aae9ce0b11a8946e2c9ac2619f7428a64d32d01eff61d809dcb70ee8e·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·title="method·core::iter::traits::iterator::Iterator::try_fold"><code>Iterator::try_fold()</code></a>:·it·takes10 ····R:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>This·is·the·reverse·version·of·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·title="method·core::iter::traits::iterator::Iterator::try_fold"><code>Iterator::try_fold()</code></a>:·it·takes
11 elements·starting·from·the·back·of·the·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfold"·class="method·trait-impl"><span·clas[·...·truncated·by·diffoscope;·len:·325,·SHA:·7ffdb06a8ab3810207a1c974783822231eaf1d82fd94bcf810dd7b3181149b7b·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold"·class="fn">rfold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where11 elements·starting·from·the·back·of·the·iterator.·<a·href="../../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfold"·class="method·trait-impl"><span·class="rightside"><span·clas[·...·truncated·by·diffoscope;·len:·253,·SHA:·48421497f19ee93d3a7432833660cd659661b35b02b625c6376fc49660f200cf·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold"·class="fn">rfold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where
12 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,12 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
13 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·reduces·the·iterator’s·elements·to·a·single,13 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·reduces·the·iterator’s·elements·to·a·single,
14 final·value,·starting·from·the·back.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfind"·class="method·trait-impl"><span·class="r[·...·truncated·by·diffoscope;·len:·665,·SHA:·fde89feb7c0e70eefa34d688476ca36a70115bec8150dbf9b1a3c359f72dd28d·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where14 final·value,·starting·from·the·back.·<a·href="../../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfind"·class="method·trait-impl"><span·class="rightside"><span·class="s[·...·truncated·by·diffoscope;·len:·545,·SHA:·b420bc934fe1ddfd2fe0958678aa3aba1ce90383b1958958e47e13ae1b40fe25·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
15 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,15 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
16 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·8325,·SHA:·11d788598a5a187f7e3ec256ec1aede303ba0818e2d9483d4fe2efc2f0b520c9·...·]/core/primitive.reference.html">&amp;'a·V</a>)&gt;<div·class="where">where16 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·7485,·SHA:·efe57134ebe013c0c948e7f7077d9399a2ff902cfa647fa2464e356736677db0·...·]/core/primitive.reference.html">&amp;'a·V</a>)&gt;<div·class="where">where
17 ····(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;'a·K</a>,·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;'a·V</a>):·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/cmp/trait[·...·truncated·by·diffoscope;·len:·977,·SHA:·ada1fa31de8b16499490043df5fe7df498d4f8fe2c6926c46eeb46209c4127df·...·]/core/primitive.reference.html">&amp;'a·V</a>)&gt;<div·class="where">where17 ····(<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;'a·K</a>,·<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;'a·V</a>):·<a·class="trait"·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,</div></h4></section></s[·...·truncated·by·diffoscope;·len:·785,·SHA:·2c9afb7a9f904a8dbc808167618b11cab8edd397ac884b1e551deb4690c9cd58·...·]/core/primitive.reference.html">&amp;'a·V</a>)&gt;<div·class="where">where
18 ····(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;'a·K</a>,·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;'a·V</a>):·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/cmp/trait[·...·truncated·by·diffoscope;·len:·785,·SHA:·d386d72b931915a1cf533d6ca1d84b005e63029e9d311e2296923e00fde95441·...·]/core/primitive.usize.html">usize</a>&gt;(18 ····(<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;'a·K</a>,·<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;'a·V</a>):·<a·class="trait"·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,</div></h4></section></s[·...·truncated·by·diffoscope;·len:·617,·SHA:·ed4b96fab139caaaf558d3e8ca6f2f87ae18b91c8addc34c24668a8ce5c67b7c·...·]/core/primitive.usize.html">usize</a>&gt;(
19 ····&amp;mut·self,19 ····&amp;mut·self,
20 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·4f557a9b49151e0be8c52ffd68f1def4469c08164239dc8bef8df2040551c5ef·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where20 )·-&gt;·<a·class="enum"·href="../../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::It[·...·truncated·by·diffoscope;·len:·261,·SHA:·9b488006768a86d05b68f4e1888c750c736264a3a386f1310f1b7e8bfc7d2184·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where
21 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·962,·SHA:·116e4ec2ae3d9655c3d115eaf50f435f5323b4e48b84de734c79d2a09b3c02f2·...·]/core/primitive.usize.html">usize</a><div·class="where">where21 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_next[·...·truncated·by·diffoscope;·len:·842,·SHA:·d8f387888e3ee78f4397f4b1a12eae734e055247e3aa3251433ab8ac1019b31a·...·]/core/primitive.usize.html">usize</a><div·class="where">where
22 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·counting·the·number·of·iterations·and·returning·it.·<a·href="https://doc.[·...·truncated·by·diffoscope;·len:·3529,·SHA:·36685e4ebfba7d155142dce71eec5dabe5f32dacb8a458b62987f15496f31675·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where22 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·counting·the·number·of·iterations·and·returning·it.·<a·href="../../../core/iter/traits/iterator/t[·...·truncated·by·diffoscope;·len:·3049,·SHA:·36b73bdc1b7eb71bc2ee32534a58bc8374d5403ad0bacb5cbfb32bf6be47bb80·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where
23 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by23 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by
24 the·given·amount·at·each·iteration.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><sp[·...·truncated·by·diffoscope;·len:·842,·SHA:·945c4509a8daf2f8fbccc5c6e5089e225955911e03a3e411f047f96d52d16862·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where24 the·given·amount·at·each·iteration.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="[·...·truncated·by·diffoscope;·len:·698,·SHA:·035d2f4d2e6b01ddf0b424aa6fc3f5919c82f85f857cb9cfa0f54f8357058b90·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
25 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,25 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
26 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·3b5ce32f9d564c3aa7cf2adc7130e674758d0c0f4f1275b4c3b46a74aa802cb3·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where26 ····U:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·[·...·truncated·by·diffoscope;·len:·1137,·SHA:·7916ae3a9b5afad376aafc6d698165147d82613fe975f64423f2367a02a69f6a·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
27 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,27 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
28 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·[·...·truncated·by·diffoscope;·len:·868,·SHA:·abdbf27ccc84063c7040d8fa3da9d0bda5ee310a470ef576e15554aee4bd5d21·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where28 ····U:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·of·pairs.·<a·href="../..[·...·truncated·by·diffoscope;·len:·724,·SHA:·ba31078b5c50fbfc51e53bed6f70aaa6e7e320cfda19949035c71d9363c0d919·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where
29 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,29 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
30 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent30 ····Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent
31 items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="sr[·...·truncated·by·diffoscope;·len:·427,·SHA:·6e82ad4aad49c2165d869fe30d20a968580a973cdb3a7f4c77f49e16dd59393e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where31 items·of·the·original·iterator.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="src·rightside"·href="../..[·...·truncated·by·diffoscope;·len:·331,·SHA:·451e844c9bf5d6d78b9579516e4b9fafb3e84136eaa1c95bead4539370743d7d·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where
32 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,32 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
33 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>33 ····G:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>
34 between·adjacent·items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightsi[·...·truncated·by·diffoscope;·len:·471,·SHA:·ed10488b7b2ccc3e4cc84a9a57a9695a74c1c964962e8d753cbace12f3318a66·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where34 between·adjacent·items·of·the·original·iterator.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·[·...·truncated·by·diffoscope;·len:·375,·SHA:·7bbb71535f348e442b9de05a74f9180c9acec0636566fa2a19ab1dc83779aace·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where
35 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,35 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
36 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each36 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each
37 element.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><spa[·...·truncated·by·diffoscope;·len:·306,·SHA:·61c87c39b177830189b0e4c036d97c40d8b9649d76432c90afb88de59498e8b2·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where37 element.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="S[·...·truncated·by·diffoscope;·len:·234,·SHA:·55463e0fb539911d03265cbd8abb7248189471ea74954185ed77f245746805c2·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where
38 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,38 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
39 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·a65da32c5f5ef8335cb607d3b4ab3f8a25877bc2c2e8b44ca9d575caecd5c8a5·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where39 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·772,·SHA:·de07f629315c257cc96a89e82de6752f002f259b678391b79d5fb48e279e56d2·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where
40 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,40 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
41 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·6d69c85c69fa789be551ea42d95c33c237d12a04ef157f9ddaaead1177f7771e·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element41 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·68,·SHA:·67cf1e2a20410007c7dd6c47c91b1d386626c1bfac5c1116c374da7bbee00d51·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element
42 should·be·yielded.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·489,·SHA:·9bdc636899f4e4e5a26a3a21c9603f72b3fb972865d2f459c38b7e2ac8fed7f1·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where42 should·be·yielded.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·tit[·...·truncated·by·diffoscope;·len:·393,·SHA:·328d72714f754fb793753313f01b087a9fbb30b77a2bcd5749456e1f6fd72710·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where
43 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,43 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
44 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·46dbf841c7aecd3f06bd4c944af21650faeac98c46c515dcfe643302618b1ecd·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where44 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·884,·SHA:·e8a37e28a6bfcb2d58b9ffd389d339c3dece95c14840f28c980a7d7aedcc9a05·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where
45 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as45 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as
46 the·next·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside[·...·truncated·by·diffoscope;·len:·468,·SHA:·52f7ff7f264284c3acc4429ca34d057ded9afa2e3d9d6e07571e252db9a48977·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where46 the·next·value.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside"><span·class="since"·ti[·...·truncated·by·diffoscope;·len:·372,·SHA:·9c08a613d034f21b42b8d196073d0f4d61c81458378e40e77995533a8b460837·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where
47 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·c0180fefce4346b0b4089e5c642521d7716108241c0ce6ec3e910c7a2c7364b4·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods47 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="../../../core/iter/adapters/peekable/struct.Peekable.html#method.peek"·ti[·...·truncated·by·diffoscope;·len:·103,·SHA:·e3683d31746f50069ed604def6201840bce75bbc7c584fac6c3644292077ae8a·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods
48 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See48 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See
49 their·documentation·for·more·information.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightsid[·...·truncated·by·diffoscope;·len:·498,·SHA:·e4a68861585faec6a5032b3b69d6dfb0f2799b5f387a527d9a1365571ed02069·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where49 their·documentation·for·more·information.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightside"><span·class="since"·t[·...·truncated·by·diffoscope;·len:·402,·SHA:·bdba673560d208f968337eb74446ead60d6223b0ca9ec6fbfaeb1a995a7e8001·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where
50 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,50 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
51 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·93281c1f6402743fd61110c11cf676f0f67eddceda801b4eb35e5fe9f85870fd·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where51 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·1042,·SHA:·27d4a79658fb1c97b659bd2520bcebbf5cfcb8a42420a7ecfcbff6f3330fa5e1·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where
52 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,52 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
53 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·f1cdbb1ec64f98fabbe1d89c88b03824310926cd7eaa160953ce2452fc3abb77·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where53 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·890,·SHA:·c43533da7f54bfb6611594b3436645d4d1f8e5339d2d05bf2345e87628499759·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where
54 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,54 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
55 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·f94a0b2c1396b13b89aca7830197ebf19e2c0e5ba536a9cc25b325a481799510·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where55 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·971,·SHA:·1b31b9d1d5061d4ee982a30400139f1d7319412bdea39925e0cc1e8e7cf3d65a·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where
56 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="https://doc.rust-lang[·...·truncated·by·diffoscope;·len:·783,·SHA:·c14217b89e3292a50a09192a8857485891fc769f861e1d1fc4322d04295c86ef·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where56 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="../../../core/iter/traits/iterator/trait.Iter[·...·truncated·by·diffoscope;·len:·639,·SHA:·79c7f7eddc655d329424f08baee8551b7f59cd4dc4b0d6984c5e4f241bcb949b·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where
57 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer57 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer
58 if·the·underlying·iterator·ends·sooner.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·c[·...·truncated·by·diffoscope;·len:·488,·SHA:·76f753d5a273a09a73127631acaa0ee947326a929f33be291018188793e1af56·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where58 if·the·underlying·iterator·ends·sooner.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stab[·...·truncated·by·diffoscope;·len:·392,·SHA:·50ac976eb8bf89726a483af064d5a70c100dedd17d46dc40ac3a82aba51b2082·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where
59 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,59 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
60 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·07d303586c8ad4e0082d5b44bff8eeda03cdb8f4bdbe46489f9232bca5a43ec6·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but60 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/tra[·...·truncated·by·diffoscope;·len:·329,·SHA:·14fc5ef1359fcb2171e21ba65c5f5d8ce11053860ba1d5aa32ddce90a48c2a8c·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but
61 unlike·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·2b20882d9583cee50e0c8b3cf362b27ce0d524db387d4aa4093d622b9370dada·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where61 unlike·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.scan">Rea[·...·truncated·by·diffoscope;·len:·570,·SHA:·3cdbe78e481f63f4d21b2fa94202dad167221af9d6e6f981ccd7a6e524f6157d·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where
62 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,62 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
63 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,63 ····U:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
64 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·933,·SHA:·4af94b75ba5c1e03d2d70590d2fd0706f13b3080fbff0f5b98e7b109048c403d·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where64 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·789,·SHA:·0e36f9aa81931958e65acc9e1b5bf6ad7367dcb7163dcf0af2a043314857a909·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where
65 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,65 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
66 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.I[·...·truncated·by·diffoscope;·len:·968,·SHA:·e5572ed2f3bdf5970d038da608f2f592d945541207c483c257fe5789efba168a·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where66 ····Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::trait[·...·truncated·by·diffoscope;·len:·800,·SHA:·3ea01df21dfaf9ee656fdee6aa789a6ce5be05d17c043433c5ab28da8f6d3241·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where
67 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,67 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
68 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·3013c0e49b0dade37f8ca096eccc5ceeb03fc79b9d320a4c92486d23b88d1009·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over68 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator[·...·truncated·by·diffoscope;·len:·63,·SHA:·8395b60c01b0cde6c3340bd4e6c57cddd02465a19dcf15a8aa5498bd6c8ddc11·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over
69 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,69 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="../../../core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,
70 the·windows·during·mapping·overlap·as·well.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside">[·...·truncated·by·diffoscope;·len:·454,·SHA:·040991f3914479bcc92615de2b81df7363656323622e5aadc964e1a61917d23e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where70 the·windows·during·mapping·overlap·as·well.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside"><span·class="since"·titl[·...·truncated·by·diffoscope;·len:·358,·SHA:·21db4436f04b3d09e41f294c30cd7dea235a4beb9af727cb1f1f065008ad732e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where
71 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="https://doc.rust-lang.org/1.84.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·0e0294a45242d5ce9a3ab8f95d6d410756415291d92baa7d12283ef1b3ecc3a0·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where71 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="../../../core/option/enum.Option.html#variant.None"·title="varia[·...·truncated·by·diffoscope;·len:·697,·SHA:·55b16240a265fa2f73963114b9def4c5703a60d1c3ce047915fff28502588e5b·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where
72 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,72 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
73 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·a8b562f71802a421f4745f7d1fadf4f70d98030c829e70f27b692e7915267027·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where73 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·650,·SHA:·eb862563a2da6881a0f9a31dac8f99f2b47b2c8d3033a0e1bc9ec49ae5500941·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where
74 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="https://doc.rust-lang.org/1.84.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·b3db7d84f203bbc139b1c52912705d19c664dac762898205fce452c9dc3a5318·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where74 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.by[·...·truncated·by·diffoscope;·len:·427,·SHA:·d439202f1a598c30b789e20f3d05a82f531349aa12f3af08cc5c230996ec01a9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where
75 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,75 ····B:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
76 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·431,·SHA:·a705a23f6d810357e7dcac670743884665ffcccfb9b780d0aa03720be8ca5625·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(76 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.collect[·...·truncated·by·diffoscope;·len:·335,·SHA:·d72a986b5d306b2e1ed99e18a16e26fa1b5380448fea76ac3db703052800b629·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(
77 ····&amp;mut·self,77 ····&amp;mut·self,
78 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.h[·...·truncated·by·diffoscope;·len:·479,·SHA:·fa749442d890055f86ceb34f411c84fd7ea08302b336d786d1ca36fe5868b020·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where78 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try[·...·truncated·by·diffoscope;·len:·359,·SHA:·886ccc2fbd37f1e7df4075b80b0bebd3d1a6e997fae2114ca1818fa30fa95d5a·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
79 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,79 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
80 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>, 
81 ····&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang[·...·truncated·by·diffoscope;·len:·449,·SHA:·9ddccfb7bdd27ea692d65fa83daf56e31762d1bec3a502234174b8fa4fb33a98·...·],80 ····Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="[·...·truncated·by·diffoscope;·len:·40,·SHA:·39f6b8b47216936a6251a972a3e72c0459df25c157b8b3990eefb48397aa8303·...·],
 81 ····&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;B&gt;,
82 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/itera[·...·truncated·by·diffoscope;·len:·323,·SHA:·b5c51f161dc9d77fd81d1fd23cc71fbf42ac00f3168cf9e41ebaaa2b6eb25363·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if82 ····B:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·tit[·...·truncated·by·diffoscope;·len:·227,·SHA:·91a843f71f5d4d4bdd2a6f526e4b1ace78ad1c1c0027ff429527a1e3cc1cbb42·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if
83 a·failure·is·encountered.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·ri[·...·truncated·by·diffoscope;·len:·521,·SHA:·6a54376815dab985ec8cc35604d035e98e3003b1563c9b41e70966084505542b·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where83 a·failure·is·encountered.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../../[·...·truncated·by·diffoscope;·len:·401,·SHA:·ed1d0660f20625c1d5231d569dd3e4f1d10332250dcd1a3f5d2e886618e67f5b·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
84 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,84 ····E:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
85 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·975,·SHA:·94f7f970236ba59ba5f1415764a0e3ab2f3093c6b79e76c25c797ac24a3c4d09·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where85 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_coll[·...·truncated·by·diffoscope;·len:·855,·SHA:·7b38a8c237aadc46d5211ff8698af580678e0cbcab757a66d6416b422880dd91·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
86 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,86 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
87 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·b480ec650ba000fe7cb67df58fc0351299638ee3e8f00db18f74ca24d69f9894·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,87 ····B:·<a·class="trait"·href="../../../core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="../../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associa[·...·truncated·by·diffoscope;·len:·23,·SHA:·4417dee5d41246c4acf5419e1bdac3c7d847bd34e3e87738a08734259a3b63da·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
88 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·fdf5a1845f070855ba2cfd0c8c85460ea5cb646c4d3b42a8431bf21489c73701·...·]/core/primitive.usize.html">usize</a><div·class="where">where88 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·827,·SHA:·0237b034801a953ed40ad7c10f9a80d682bdf0a649c6fde9f53efc254cd75fc0·...·]/core/primitive.usize.html">usize</a><div·class="where">where
89 ····T:·'a,89 ····T:·'a,
90 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·1fc250e258e9e42e4fa3e22f86ecd57057e9ff23e47af1aec778076a7a891134·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,90 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="../../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEnd[·...·truncated·by·diffoscope;·len:·60,·SHA:·036db50df43442a72ce04aef94ccf2727352aad0708d71fe0e34c23613b84765·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,
91 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·5846407374f20f525a4a0663ad4488141eafe64513ef82581dc5df5c2d200745·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_partition_in_place</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62543">#62543</a>)</span></div></span><div·class='docblock'>Reorders·the·elements·of·this·iterator·<em>in-place</em>·according·to·the·given·predicate,91 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="../../../core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_partition_in_place</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62543">#62543</a>)</span></div></span><div·class='docblock'>Reorders·the·elements·of·this·iterator·<em>in-place</em>·according·to·the·given·predicate,
92 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.92 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.
93 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.partition_in_place">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_partitioned"·class="method·trait-impl"><a·clas[·...·truncated·by·diffoscope;·len:·431,·SHA:·4aa7d028146c72d45794efc19a376d4bee3b75eda61ff46d969e440b3dbfa1b0·...·]/core/primitive.bool.html">bool</a><div·class="where">where93 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.partition_in_place">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_partitioned"·class="method·trait-impl"><a·class="src·rightside"·href="[·...·truncated·by·diffoscope;·len:·335,·SHA:·252e1c16199fc3c38bc7de8cbda8c9532ab6d581d449c680cd7daf8d61a74aeb·...·]/core/primitive.bool.html">bool</a><div·class="where">where
94 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,94 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
95 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·fcd03e71f79faad6d9b9a12045d59f4dfabc78e5aefebcabc9c1a5be45e31125·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,95 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·63,·SHA:·852041c2de8156fdddf9f71111c5ddf1a6b88aabd8c082f1a254f0b21c18ffa1·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,
96 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><span·class="righ[·...·truncated·by·diffoscope;·len:·319,·SHA:·9b9df13f2f4e5b4dde3908515766e1a474fa30bcb7edc98c15665a016e677c2a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where96 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><span·class="rightside"><span·class="sinc[·...·truncated·by·diffoscope;·len:·247,·SHA:·222a0145d03094cb0b20ca156583afe97e703828a8aa77e37fb7b4661759e2c7·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where
97 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,97 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
98 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,98 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
99 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns99 ····R:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns
100 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rights[·...·truncated·by·diffoscope;·len:·321,·SHA:·619fd774190944998148325de99aaa75de66ce4b7e26579fd342c564923a5652·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where100 successfully,·producing·a·single,·final·value.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"[·...·truncated·by·diffoscope;·len:·249,·SHA:·afbe9e91614278f09851b7c5920ddaf0907a2bf4c310ec39b40084e28959cc77·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where
101 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,101 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
102 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,102 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
103 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the103 ····R:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="../../../core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the
104 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·307,·SHA:·5975144fd8566efa93ad1ccec09297e280924b7372e08681d2103702124e2c52·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where104 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><span·class="rightside"><span·class="since"·tit[·...·truncated·by·diffoscope;·len:·235,·SHA:·da9aac17d9724df2aa434c2d10e1caa010eb4fd7e574e4da4e3d5b689e970097·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where
105 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,105 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
106 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,106 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,
107 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span[·...·truncated·by·diffoscope;·len:·619,·SHA:·8813f54846438870310d5f5dfabd2335a9dbf51e9da2e4cd681bcb6077d39628·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where107 returning·the·final·result.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="St[·...·truncated·by·diffoscope;·len:·499,·SHA:·ff97be2c630acbbbb397aa79317bd89b79955e6735d9da7aea9df48659f94fce·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
108 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,108 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
109 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·084691f7fc4e7f4da7db385127d0ce8d2d52f6740757129a65910c4db0dc180d·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing109 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·256,·SHA:·2fe8ae39f77649fea294c45979f427748b2a9938dfa70e4595ac661d972125b1·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing
110 operation.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·217,·SHA:·447ae00256be3de069c602a6c04889808c883eae6fa349d023f53bdd5570ecae·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(110 operation.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside"·href="../../../src/cor[·...·truncated·by·diffoscope;·len:·145,·SHA:·be4dc63adf8a4e832fd3dbaaabbf45f287388ea2bb17088d40589203a2ec6dfb·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(
111 ····&amp;mut·self,111 ····&amp;mut·self,
112 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·70b2b85cad045ac7addf647e0bd3cd5b2c9ebca5986613ad2b6a9c00e3a1132f·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,112 ····f:·impl·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·68,·SHA:·e7e11f257edcac749a5883ad9a3aa42e6e965be419f967b36caa7afd3b36d7c9·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
113 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·1823533b932e38e3200465d101f10a34421c005018974296350162e4049615ea·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where113 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</[·...·truncated·by·diffoscope;·len:·586,·SHA:·596f94ec7a4c06359aee56ccb8a7138a1ddb94415fafcecac1fc87434b1329a3·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
114 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,114 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
115 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,115 ····R:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
116 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·764ea8f08626b05426a76738d54ebb2d640042494d76cba8c20d868bfdc07a73·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the116 ····&lt;R·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</[·...·truncated·by·diffoscope;·len:·292,·SHA:·2ae73aa9b78f13099a8016e28a473713dcc755cf00fed8895c0c1b027bbcea01·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the
117 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><span·class="rightside"><s[·...·truncated·by·diffoscope;·len:·476,·SHA:·aef721c14147dea2fbec70dcfa76916b3f1273bed8304f4c9db310ca23d1e4b1·...·]/core/primitive.bool.html">bool</a><div·class="where">where117 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title=[·...·truncated·by·diffoscope;·len:·380,·SHA:·1042cdc03eabce3d330853b659f28b8566dd5841790f7f1303f3e326f05efab6·...·]/core/primitive.bool.html">bool</a><div·class="where">where
118 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,118 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
119 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·7c48e62c73a40a5cb5ebbf4a22cd789b342a88ad3d855022191f2bae33c736c6·...·]/core/primitive.bool.html">bool</a><div·class="where">where119 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·850,·SHA:·1b28d9cdfe3ba8dc7eac8cef1bb6549e78768b440ea492c70d80c8c07eae61cb·...·]/core/primitive.bool.html">bool</a><div·class="where">where
120 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,120 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
121 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·673d69ce0c23e24b2546127c463e67cd2a4c0f7be792712e2b42e75427161b75·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where121 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·980,·SHA:·a560c9e639c326a34f124b36f977291532e03ffae190e973674fee7e13b4c842·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
122 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,122 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
123 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·aa5078ff77f5638746395497f8ce92c1b684d342dea851990104d5e9981ab6b0·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where123 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·883,·SHA:·47fb849c20ee0cb36696a24bd285768bd0973774403ae956d2a517cd216452b1·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where
124 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,124 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
125 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·1bd732dff19021a1586bb486282683f5c1bc65d5d514f9e13cc9232b4e94955b·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;,</div></h4></section></summary><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns125 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·58,·SHA:·f6e1e279f463d2adecc4a9316aeab7af85329a84398e722f43ac130647fe78cf·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;,</div></h4></section></summary><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns
Max diff block lines reached; 154943/347774 bytes (44.55%) of diff not shown.
325 KB
./usr/share/doc/rust-doc/html/alloc/collections/btree_map/struct.IterMut.html
    
Offset 1, 237 lines modifiedOffset 1, 237 lines modified
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="A·mutable·iterator·over·the·entries·of·a·`BTreeMap`."><title>IterMut·in·alloc::collections::btree_map·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»      2025-01-07)»   (built»     from» a»source»  tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">IterMut</a></h2><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Debug-for-IterMut%3C'_,+K,+V%3E"·title="Debug">Debug</a></li><li><a·href="#impl-Default-for-IterMut%3C'a,+K,+V%3E"·title="Default">Default</a></li><li><a·href="#impl-DoubleEndedIterator-for-IterMut%3C'a,+K,+V%3E"·title="DoubleEndedIterator">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-IterMut%3C'_,+K,+V%3E"·title="ExactSizeIterator">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-IterMut%3C'_,+K,+V%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-IterMut%3C'a,+K,+V%3E"·title="Iterator">Iterator</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-UnwindSafe-for-IterMut%3C'a,+K,+V%3E"·title="!UnwindSafe">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-IterMut%3C'a,+K,+V%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-IterMut%3C'a,+K,+V%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-IterMut%3C'a,+K,+V%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-IterMut%3C'a,+K,+V%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-IterMut%3C'a,+K,+V%3E"·title="Unpin">Unpin</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>collections::<wbr>btree_<wbr>map</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">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">btree_map</a></span><h1>Struct·<span·class="struct">IterMut</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map.rs.html#359-365">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·IterMut&lt;'a,·K:·'a,·V:·'a&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>A·mutable·iterator·over·the·entries·of·a·<code>BTreeMap</code>.</p>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="A·mutable·iterator·over·the·entries·of·a·`BTreeMap`."><title>IterMut·in·alloc::collections::btree_map·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»      2025-01-07)»   (built»     from» a»source»  tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">IterMut</a></h2><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Debug-for-IterMut%3C'_,+K,+V%3E"·title="Debug">Debug</a></li><li><a·href="#impl-Default-for-IterMut%3C'a,+K,+V%3E"·title="Default">Default</a></li><li><a·href="#impl-DoubleEndedIterator-for-IterMut%3C'a,+K,+V%3E"·title="DoubleEndedIterator">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-IterMut%3C'_,+K,+V%3E"·title="ExactSizeIterator">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-IterMut%3C'_,+K,+V%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-IterMut%3C'a,+K,+V%3E"·title="Iterator">Iterator</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-UnwindSafe-for-IterMut%3C'a,+K,+V%3E"·title="!UnwindSafe">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-IterMut%3C'a,+K,+V%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-IterMut%3C'a,+K,+V%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-IterMut%3C'a,+K,+V%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-IterMut%3C'a,+K,+V%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-IterMut%3C'a,+K,+V%3E"·title="Unpin">Unpin</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>collections::<wbr>btree_<wbr>map</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">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">btree_map</a></span><h1>Struct·<span·class="struct">IterMut</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map.rs.html#359-365">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·IterMut&lt;'a,·K:·'a,·V:·'a&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>A·mutable·iterator·over·the·entries·of·a·<code>BTreeMap</code>.</p>
2 <p>This·<code>struct</code>·is·created·by·the·<a·href="struct.BTreeMap.html#method.iter_mut"·title="method·alloc::collections::btree_map::BTreeMap::iter_mut"><code>iter_mut</code></a>·method·on·<a·href="struct.BTreeMap.html"·title="struct·alloc::collections::btree_map::BTreeMap"><code>BTreeMap</code></a>.·See·its2 <p>This·<code>struct</code>·is·created·by·the·<a·href="struct.BTreeMap.html#method.iter_mut"·title="method·alloc::collections::btree_map::BTreeMap::iter_mut"><code>iter_mut</code></a>·method·on·<a·href="struct.BTreeMap.html"·title="struct·alloc::collections::btree_map::BTreeMap"><code>BTreeMap</code></a>.·See·its
3 documentation·for·more.</p>3 documentation·for·more.</p>
4 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-IterMut%3C'_,+K,+V%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.17.0">1.17.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map.rs.html#369-374">Source</a></span><a·href="#impl-Debug-for-IterMut%3C'_,+K,+V%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;K:·<a·class="trait"·href="../../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,·V:·<a·class="trait"·href="../../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>&gt;·<a·class="trait"·href="../../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.IterMut.html"·title="struct·alloc::collections::btree_map::IterMut">IterMut</a>&lt;'_,·K,·V&gt;</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#370-373">Source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="../../fmt/struct.Formatter.html"·title="struct·alloc::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="type"·href="../../fmt/type.Result.html"·title="type·alloc::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../../fmt/trait.Debug.html#tymethod.fmt">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Default-for-IterMut%3C'a,+K,+V%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.70.0">1.70.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map.rs.html#377-388">Source</a></span><a·href="#impl-Default-for-IterMut%3C'a,+K,+V%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·K:·'a,·V:·'a&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·for·<a·class="struct"·href="struct.IterMut.html"·title="struct·alloc::collections::btree_map::IterMut">IterMut</a>&lt;'a,·K,·V&gt;</h3></sect[·...·truncated·by·diffoscope;·len:·358,·SHA:·9ae950a03daa454e7665dcbcfe1257852ce3d44183f64dc3fe4ba878c9069a89·...·]/core/default/trait.Default.html#tymethod.default"·class="fn">default</a>()·-&gt;·Self</h4></section></summary><div·class="docblock"><p>Creates·an·empty·<code>btree_map::IterMut</code>.</p>4 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-IterMut%3C'_,+K,+V%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.17.0">1.17.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map.rs.html#369-374">Source</a></span><a·href="#impl-Debug-for-IterMut%3C'_,+K,+V%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;K:·<a·class="trait"·href="../../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,·V:·<a·class="trait"·href="../../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>&gt;·<a·class="trait"·href="../../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.IterMut.html"·title="struct·alloc::collections::btree_map::IterMut">IterMut</a>&lt;'_,·K,·V&gt;</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#370-373">Source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="../../fmt/struct.Formatter.html"·title="struct·alloc::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="type"·href="../../fmt/type.Result.html"·title="type·alloc::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../../fmt/trait.Debug.html#tymethod.fmt">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Default-for-IterMut%3C'a,+K,+V%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.70.0">1.70.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map.rs.html#377-388">Source</a></span><a·href="#impl-Default-for-IterMut%3C'a,+K,+V%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·K:·'a,·V:·'a&gt;·<a·class="trait"·href="../../../core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·for·<a·class="struct"·href="struct.IterMut.html"·title="struct·alloc::collections::btree_map::IterMut">IterMut</a>&lt;'a,·K,·V&gt;</h3></section></summary><div·class[·...·truncated·by·diffoscope;·len:·310,·SHA:·b832a2253edf14573fb3b8e56ca9b0a84455ce13debb412fa2654029ec18d81c·...·]/core/default/trait.Default.html#tymethod.default"·class="fn">default</a>()·-&gt;·Self</h4></section></summary><div·class="docblock"><p>Creates·an·empty·<code>btree_map::IterMut</code>.</p>
  
5 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span>iter:·btree_map::IterMut&lt;<span·class="lifetime">'_</span>,·u8,·u8&gt;·=·Default::default();5 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span>iter:·btree_map::IterMut&lt;<span·class="lifetime">'_</span>,·u8,·u8&gt;·=·Default::default();
6 <span·class="macro">assert_eq!</span>(iter.len(),·<span·class="number">0</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::btree_map;%0A++++let+iter:+btree_map::IterMut%3C'_,+u8,+u8%3E+=+Default::default();%0A++++assert_eq!(iter.len(),+0);%0A%7D&amp;edition=2021"></a></div>6 <span·class="macro">assert_eq!</span>(iter.len(),·<span·class="number">0</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::btree_map;%0A++++let+iter:+btree_map::IterMut%3C'_,+u8,+u8%3E+=+Default::default();%0A++++assert_eq!(iter.len(),+0);%0A%7D&amp;edition=2021"></a></div>
7 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-DoubleEndedIterator-for-IterMut%3C'a,+K,+V%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map.rs.html#1618-1627">Source</a></span><a·href="#impl-DoubleEndedIterator-for-IterMut%3C'a,+K,+V%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·K,·V&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIterator</a>·for·<a·class="struct"·href="struct.IterMut.html"·title="struct·alloc:[·...·truncated·by·diffoscope;·len:·4493,·SHA:·94c1d2c4f0f5299f87c14fd762d23e60cd15f5cb4feedd9b4c07542a8c42c33f·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold"·class="fn">try_rfold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where7 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-DoubleEndedIterator-for-IterMut%3C'a,+K,+V%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map.rs.html#1618-1627">Source</a></span><a·href="#impl-DoubleEndedIterator-for-IterMut%3C'a,+K,+V%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·K,·V&gt;·<a·class="trait"·href="../../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIterator</a>·for·<a·class="struct"·href="struct.IterMut.html"·title="struct·alloc::collections::btree_map:[·...·truncated·by·diffoscope;·len:·3965,·SHA:·b48f836bfcd698eda3d12516eb908398ac9f05cc97de833c66a18116d1745372·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold"·class="fn">try_rfold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where
8 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,8 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
9 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,9 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
10 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>This·is·the·reverse·version·of·<a·href="https://doc.rust-lang.org/1.8[·...·truncated·by·diffoscope;·len:·3,·SHA:·fbd04e1aae9ce0b11a8946e2c9ac2619f7428a64d32d01eff61d809dcb70ee8e·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·title="method·core::iter::traits::iterator::Iterator::try_fold"><code>Iterator::try_fold()</code></a>:·it·takes10 ····R:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>This·is·the·reverse·version·of·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·title="method·core::iter::traits::iterator::Iterator::try_fold"><code>Iterator::try_fold()</code></a>:·it·takes
11 elements·starting·from·the·back·of·the·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfold"·class="method·trait-impl"><span·clas[·...·truncated·by·diffoscope;·len:·325,·SHA:·7ffdb06a8ab3810207a1c974783822231eaf1d82fd94bcf810dd7b3181149b7b·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold"·class="fn">rfold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where11 elements·starting·from·the·back·of·the·iterator.·<a·href="../../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfold"·class="method·trait-impl"><span·class="rightside"><span·clas[·...·truncated·by·diffoscope;·len:·253,·SHA:·48421497f19ee93d3a7432833660cd659661b35b02b625c6376fc49660f200cf·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold"·class="fn">rfold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where
12 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,12 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
13 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·reduces·the·iterator’s·elements·to·a·single,13 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·reduces·the·iterator’s·elements·to·a·single,
14 final·value,·starting·from·the·back.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfind"·class="method·trait-impl"><span·class="r[·...·truncated·by·diffoscope;·len:·665,·SHA:·fde89feb7c0e70eefa34d688476ca36a70115bec8150dbf9b1a3c359f72dd28d·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where14 final·value,·starting·from·the·back.·<a·href="../../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfind"·class="method·trait-impl"><span·class="rightside"><span·class="s[·...·truncated·by·diffoscope;·len:·545,·SHA:·b420bc934fe1ddfd2fe0958678aa3aba1ce90383b1958958e47e13ae1b40fe25·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
15 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,15 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
16 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·8359,·SHA:·2b41317f94c455f05da3b6b6949f859b890f68ea862661d67cd096c2624c561b·...·]/core/primitive.reference.html">&amp;'a·mut·V</a>)&gt;<div·class="where">where16 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·7519,·SHA:·aae22a40f5c06a81c51fa0b34375f77d4ded9f165b93f701436ca982889d4756·...·]/core/primitive.reference.html">&amp;'a·mut·V</a>)&gt;<div·class="where">where
17 ····(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;'a·K</a>,·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;'a·mut·V</a>):·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/cmp/t[·...·truncated·by·diffoscope;·len:·981,·SHA:·5ca58e414f870fb4f2b6704739ef91e9fdc85f14722d09dac19abd71d6862fda·...·]/core/primitive.reference.html">&amp;'a·mut·V</a>)&gt;<div·class="where">where17 ····(<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;'a·K</a>,·<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;'a·mut·V</a>):·<a·class="trait"·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,</div></h4></section[·...·truncated·by·diffoscope;·len:·789,·SHA:·e82ee4e1fd5e129b57fe4d73b29fb26680fd1e331eec1593cdad53d77d1f0aeb·...·]/core/primitive.reference.html">&amp;'a·mut·V</a>)&gt;<div·class="where">where
18 ····(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;'a·K</a>,·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;'a·mut·V</a>):·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/cmp/t[·...·truncated·by·diffoscope;·len:·789,·SHA:·3dd371c469f2de237bee5df30666abba0c3829ada661577cbaabb5598b835788·...·]/core/primitive.usize.html">usize</a>&gt;(18 ····(<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;'a·K</a>,·<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;'a·mut·V</a>):·<a·class="trait"·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,</div></h4></section[·...·truncated·by·diffoscope;·len:·621,·SHA:·88085b3424a54c82e9ad0ad74067c86f11c58e2e905c47bce5ababca43f0a73d·...·]/core/primitive.usize.html">usize</a>&gt;(
19 ····&amp;mut·self,19 ····&amp;mut·self,
20 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·4f557a9b49151e0be8c52ffd68f1def4469c08164239dc8bef8df2040551c5ef·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where20 )·-&gt;·<a·class="enum"·href="../../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::It[·...·truncated·by·diffoscope;·len:·261,·SHA:·9b488006768a86d05b68f4e1888c750c736264a3a386f1310f1b7e8bfc7d2184·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where
21 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·962,·SHA:·116e4ec2ae3d9655c3d115eaf50f435f5323b4e48b84de734c79d2a09b3c02f2·...·]/core/primitive.usize.html">usize</a><div·class="where">where21 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_next[·...·truncated·by·diffoscope;·len:·842,·SHA:·d8f387888e3ee78f4397f4b1a12eae734e055247e3aa3251433ab8ac1019b31a·...·]/core/primitive.usize.html">usize</a><div·class="where">where
22 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·counting·the·number·of·iterations·and·returning·it.·<a·href="https://doc.[·...·truncated·by·diffoscope;·len:·3529,·SHA:·36685e4ebfba7d155142dce71eec5dabe5f32dacb8a458b62987f15496f31675·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where22 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·counting·the·number·of·iterations·and·returning·it.·<a·href="../../../core/iter/traits/iterator/t[·...·truncated·by·diffoscope;·len:·3049,·SHA:·36b73bdc1b7eb71bc2ee32534a58bc8374d5403ad0bacb5cbfb32bf6be47bb80·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where
23 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by23 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by
24 the·given·amount·at·each·iteration.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><sp[·...·truncated·by·diffoscope;·len:·842,·SHA:·945c4509a8daf2f8fbccc5c6e5089e225955911e03a3e411f047f96d52d16862·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where24 the·given·amount·at·each·iteration.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="[·...·truncated·by·diffoscope;·len:·698,·SHA:·035d2f4d2e6b01ddf0b424aa6fc3f5919c82f85f857cb9cfa0f54f8357058b90·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
25 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,25 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
26 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·3b5ce32f9d564c3aa7cf2adc7130e674758d0c0f4f1275b4c3b46a74aa802cb3·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where26 ····U:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·[·...·truncated·by·diffoscope;·len:·1137,·SHA:·7916ae3a9b5afad376aafc6d698165147d82613fe975f64423f2367a02a69f6a·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
27 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,27 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
28 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·[·...·truncated·by·diffoscope;·len:·868,·SHA:·abdbf27ccc84063c7040d8fa3da9d0bda5ee310a470ef576e15554aee4bd5d21·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where28 ····U:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·of·pairs.·<a·href="../..[·...·truncated·by·diffoscope;·len:·724,·SHA:·ba31078b5c50fbfc51e53bed6f70aaa6e7e320cfda19949035c71d9363c0d919·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where
29 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,29 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
30 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent30 ····Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent
31 items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="sr[·...·truncated·by·diffoscope;·len:·427,·SHA:·6e82ad4aad49c2165d869fe30d20a968580a973cdb3a7f4c77f49e16dd59393e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where31 items·of·the·original·iterator.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="src·rightside"·href="../..[·...·truncated·by·diffoscope;·len:·331,·SHA:·451e844c9bf5d6d78b9579516e4b9fafb3e84136eaa1c95bead4539370743d7d·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where
32 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,32 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
33 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>33 ····G:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>
34 between·adjacent·items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightsi[·...·truncated·by·diffoscope;·len:·471,·SHA:·ed10488b7b2ccc3e4cc84a9a57a9695a74c1c964962e8d753cbace12f3318a66·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where34 between·adjacent·items·of·the·original·iterator.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·[·...·truncated·by·diffoscope;·len:·375,·SHA:·7bbb71535f348e442b9de05a74f9180c9acec0636566fa2a19ab1dc83779aace·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where
35 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,35 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
36 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each36 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each
37 element.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><spa[·...·truncated·by·diffoscope;·len:·306,·SHA:·61c87c39b177830189b0e4c036d97c40d8b9649d76432c90afb88de59498e8b2·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where37 element.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="S[·...·truncated·by·diffoscope;·len:·234,·SHA:·55463e0fb539911d03265cbd8abb7248189471ea74954185ed77f245746805c2·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where
38 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,38 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
39 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·a65da32c5f5ef8335cb607d3b4ab3f8a25877bc2c2e8b44ca9d575caecd5c8a5·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where39 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·772,·SHA:·de07f629315c257cc96a89e82de6752f002f259b678391b79d5fb48e279e56d2·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where
40 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,40 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
41 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·6d69c85c69fa789be551ea42d95c33c237d12a04ef157f9ddaaead1177f7771e·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element41 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·68,·SHA:·67cf1e2a20410007c7dd6c47c91b1d386626c1bfac5c1116c374da7bbee00d51·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element
42 should·be·yielded.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·489,·SHA:·9bdc636899f4e4e5a26a3a21c9603f72b3fb972865d2f459c38b7e2ac8fed7f1·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where42 should·be·yielded.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·tit[·...·truncated·by·diffoscope;·len:·393,·SHA:·328d72714f754fb793753313f01b087a9fbb30b77a2bcd5749456e1f6fd72710·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where
43 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,43 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
44 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·46dbf841c7aecd3f06bd4c944af21650faeac98c46c515dcfe643302618b1ecd·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where44 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·884,·SHA:·e8a37e28a6bfcb2d58b9ffd389d339c3dece95c14840f28c980a7d7aedcc9a05·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where
45 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as45 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as
46 the·next·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside[·...·truncated·by·diffoscope;·len:·468,·SHA:·52f7ff7f264284c3acc4429ca34d057ded9afa2e3d9d6e07571e252db9a48977·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where46 the·next·value.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside"><span·class="since"·ti[·...·truncated·by·diffoscope;·len:·372,·SHA:·9c08a613d034f21b42b8d196073d0f4d61c81458378e40e77995533a8b460837·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where
47 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·c0180fefce4346b0b4089e5c642521d7716108241c0ce6ec3e910c7a2c7364b4·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods47 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="../../../core/iter/adapters/peekable/struct.Peekable.html#method.peek"·ti[·...·truncated·by·diffoscope;·len:·103,·SHA:·e3683d31746f50069ed604def6201840bce75bbc7c584fac6c3644292077ae8a·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods
48 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See48 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See
49 their·documentation·for·more·information.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightsid[·...·truncated·by·diffoscope;·len:·498,·SHA:·e4a68861585faec6a5032b3b69d6dfb0f2799b5f387a527d9a1365571ed02069·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where49 their·documentation·for·more·information.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightside"><span·class="since"·t[·...·truncated·by·diffoscope;·len:·402,·SHA:·bdba673560d208f968337eb74446ead60d6223b0ca9ec6fbfaeb1a995a7e8001·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where
50 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,50 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
51 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·93281c1f6402743fd61110c11cf676f0f67eddceda801b4eb35e5fe9f85870fd·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where51 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·1042,·SHA:·27d4a79658fb1c97b659bd2520bcebbf5cfcb8a42420a7ecfcbff6f3330fa5e1·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where
52 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,52 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
53 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·f1cdbb1ec64f98fabbe1d89c88b03824310926cd7eaa160953ce2452fc3abb77·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where53 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·890,·SHA:·c43533da7f54bfb6611594b3436645d4d1f8e5339d2d05bf2345e87628499759·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where
54 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,54 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
55 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·f94a0b2c1396b13b89aca7830197ebf19e2c0e5ba536a9cc25b325a481799510·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where55 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·971,·SHA:·1b31b9d1d5061d4ee982a30400139f1d7319412bdea39925e0cc1e8e7cf3d65a·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where
56 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="https://doc.rust-lang[·...·truncated·by·diffoscope;·len:·783,·SHA:·c14217b89e3292a50a09192a8857485891fc769f861e1d1fc4322d04295c86ef·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where56 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="../../../core/iter/traits/iterator/trait.Iter[·...·truncated·by·diffoscope;·len:·639,·SHA:·79c7f7eddc655d329424f08baee8551b7f59cd4dc4b0d6984c5e4f241bcb949b·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where
57 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer57 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer
58 if·the·underlying·iterator·ends·sooner.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·c[·...·truncated·by·diffoscope;·len:·488,·SHA:·76f753d5a273a09a73127631acaa0ee947326a929f33be291018188793e1af56·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where58 if·the·underlying·iterator·ends·sooner.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stab[·...·truncated·by·diffoscope;·len:·392,·SHA:·50ac976eb8bf89726a483af064d5a70c100dedd17d46dc40ac3a82aba51b2082·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where
59 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,59 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
60 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·07d303586c8ad4e0082d5b44bff8eeda03cdb8f4bdbe46489f9232bca5a43ec6·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but60 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/tra[·...·truncated·by·diffoscope;·len:·329,·SHA:·14fc5ef1359fcb2171e21ba65c5f5d8ce11053860ba1d5aa32ddce90a48c2a8c·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but
61 unlike·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·2b20882d9583cee50e0c8b3cf362b27ce0d524db387d4aa4093d622b9370dada·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where61 unlike·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.scan">Rea[·...·truncated·by·diffoscope;·len:·570,·SHA:·3cdbe78e481f63f4d21b2fa94202dad167221af9d6e6f981ccd7a6e524f6157d·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where
62 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,62 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
63 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,63 ····U:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
64 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·933,·SHA:·4af94b75ba5c1e03d2d70590d2fd0706f13b3080fbff0f5b98e7b109048c403d·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where64 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·789,·SHA:·0e36f9aa81931958e65acc9e1b5bf6ad7367dcb7163dcf0af2a043314857a909·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where
65 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,65 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
66 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.I[·...·truncated·by·diffoscope;·len:·968,·SHA:·e5572ed2f3bdf5970d038da608f2f592d945541207c483c257fe5789efba168a·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where66 ····Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::trait[·...·truncated·by·diffoscope;·len:·800,·SHA:·3ea01df21dfaf9ee656fdee6aa789a6ce5be05d17c043433c5ab28da8f6d3241·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where
67 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,67 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
68 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·3013c0e49b0dade37f8ca096eccc5ceeb03fc79b9d320a4c92486d23b88d1009·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over68 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator[·...·truncated·by·diffoscope;·len:·63,·SHA:·8395b60c01b0cde6c3340bd4e6c57cddd02465a19dcf15a8aa5498bd6c8ddc11·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over
69 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,69 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="../../../core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,
70 the·windows·during·mapping·overlap·as·well.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside">[·...·truncated·by·diffoscope;·len:·454,·SHA:·040991f3914479bcc92615de2b81df7363656323622e5aadc964e1a61917d23e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where70 the·windows·during·mapping·overlap·as·well.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside"><span·class="since"·titl[·...·truncated·by·diffoscope;·len:·358,·SHA:·21db4436f04b3d09e41f294c30cd7dea235a4beb9af727cb1f1f065008ad732e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where
71 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="https://doc.rust-lang.org/1.84.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·0e0294a45242d5ce9a3ab8f95d6d410756415291d92baa7d12283ef1b3ecc3a0·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where71 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="../../../core/option/enum.Option.html#variant.None"·title="varia[·...·truncated·by·diffoscope;·len:·697,·SHA:·55b16240a265fa2f73963114b9def4c5703a60d1c3ce047915fff28502588e5b·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where
72 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,72 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
73 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·a8b562f71802a421f4745f7d1fadf4f70d98030c829e70f27b692e7915267027·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where73 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·650,·SHA:·eb862563a2da6881a0f9a31dac8f99f2b47b2c8d3033a0e1bc9ec49ae5500941·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where
74 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="https://doc.rust-lang.org/1.84.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·b3db7d84f203bbc139b1c52912705d19c664dac762898205fce452c9dc3a5318·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where74 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.by[·...·truncated·by·diffoscope;·len:·427,·SHA:·d439202f1a598c30b789e20f3d05a82f531349aa12f3af08cc5c230996ec01a9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where
75 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,75 ····B:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
76 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·431,·SHA:·a705a23f6d810357e7dcac670743884665ffcccfb9b780d0aa03720be8ca5625·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(76 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.collect[·...·truncated·by·diffoscope;·len:·335,·SHA:·d72a986b5d306b2e1ed99e18a16e26fa1b5380448fea76ac3db703052800b629·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(
77 ····&amp;mut·self,77 ····&amp;mut·self,
78 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.h[·...·truncated·by·diffoscope;·len:·479,·SHA:·fa749442d890055f86ceb34f411c84fd7ea08302b336d786d1ca36fe5868b020·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where78 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try[·...·truncated·by·diffoscope;·len:·359,·SHA:·886ccc2fbd37f1e7df4075b80b0bebd3d1a6e997fae2114ca1818fa30fa95d5a·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
79 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,79 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
80 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>, 
81 ····&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang[·...·truncated·by·diffoscope;·len:·449,·SHA:·9ddccfb7bdd27ea692d65fa83daf56e31762d1bec3a502234174b8fa4fb33a98·...·],80 ····Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="[·...·truncated·by·diffoscope;·len:·40,·SHA:·39f6b8b47216936a6251a972a3e72c0459df25c157b8b3990eefb48397aa8303·...·],
 81 ····&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;B&gt;,
82 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/itera[·...·truncated·by·diffoscope;·len:·323,·SHA:·b5c51f161dc9d77fd81d1fd23cc71fbf42ac00f3168cf9e41ebaaa2b6eb25363·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if82 ····B:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·tit[·...·truncated·by·diffoscope;·len:·227,·SHA:·91a843f71f5d4d4bdd2a6f526e4b1ace78ad1c1c0027ff429527a1e3cc1cbb42·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if
83 a·failure·is·encountered.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·ri[·...·truncated·by·diffoscope;·len:·521,·SHA:·6a54376815dab985ec8cc35604d035e98e3003b1563c9b41e70966084505542b·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where83 a·failure·is·encountered.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../../[·...·truncated·by·diffoscope;·len:·401,·SHA:·ed1d0660f20625c1d5231d569dd3e4f1d10332250dcd1a3f5d2e886618e67f5b·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
84 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,84 ····E:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
85 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·975,·SHA:·94f7f970236ba59ba5f1415764a0e3ab2f3093c6b79e76c25c797ac24a3c4d09·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where85 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_coll[·...·truncated·by·diffoscope;·len:·855,·SHA:·7b38a8c237aadc46d5211ff8698af580678e0cbcab757a66d6416b422880dd91·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
86 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,86 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
87 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·b480ec650ba000fe7cb67df58fc0351299638ee3e8f00db18f74ca24d69f9894·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,87 ····B:·<a·class="trait"·href="../../../core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="../../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associa[·...·truncated·by·diffoscope;·len:·23,·SHA:·4417dee5d41246c4acf5419e1bdac3c7d847bd34e3e87738a08734259a3b63da·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
88 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·fdf5a1845f070855ba2cfd0c8c85460ea5cb646c4d3b42a8431bf21489c73701·...·]/core/primitive.usize.html">usize</a><div·class="where">where88 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·827,·SHA:·0237b034801a953ed40ad7c10f9a80d682bdf0a649c6fde9f53efc254cd75fc0·...·]/core/primitive.usize.html">usize</a><div·class="where">where
89 ····T:·'a,89 ····T:·'a,
90 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·1fc250e258e9e42e4fa3e22f86ecd57057e9ff23e47af1aec778076a7a891134·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,90 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="../../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEnd[·...·truncated·by·diffoscope;·len:·60,·SHA:·036db50df43442a72ce04aef94ccf2727352aad0708d71fe0e34c23613b84765·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,
91 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·5846407374f20f525a4a0663ad4488141eafe64513ef82581dc5df5c2d200745·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_partition_in_place</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62543">#62543</a>)</span></div></span><div·class='docblock'>Reorders·the·elements·of·this·iterator·<em>in-place</em>·according·to·the·given·predicate,91 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="../../../core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_partition_in_place</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62543">#62543</a>)</span></div></span><div·class='docblock'>Reorders·the·elements·of·this·iterator·<em>in-place</em>·according·to·the·given·predicate,
92 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.92 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.
93 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.partition_in_place">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_partitioned"·class="method·trait-impl"><a·clas[·...·truncated·by·diffoscope;·len:·431,·SHA:·4aa7d028146c72d45794efc19a376d4bee3b75eda61ff46d969e440b3dbfa1b0·...·]/core/primitive.bool.html">bool</a><div·class="where">where93 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.partition_in_place">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_partitioned"·class="method·trait-impl"><a·class="src·rightside"·href="[·...·truncated·by·diffoscope;·len:·335,·SHA:·252e1c16199fc3c38bc7de8cbda8c9532ab6d581d449c680cd7daf8d61a74aeb·...·]/core/primitive.bool.html">bool</a><div·class="where">where
94 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,94 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
95 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·fcd03e71f79faad6d9b9a12045d59f4dfabc78e5aefebcabc9c1a5be45e31125·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,95 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·63,·SHA:·852041c2de8156fdddf9f71111c5ddf1a6b88aabd8c082f1a254f0b21c18ffa1·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,
96 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><span·class="righ[·...·truncated·by·diffoscope;·len:·319,·SHA:·9b9df13f2f4e5b4dde3908515766e1a474fa30bcb7edc98c15665a016e677c2a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where96 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><span·class="rightside"><span·class="sinc[·...·truncated·by·diffoscope;·len:·247,·SHA:·222a0145d03094cb0b20ca156583afe97e703828a8aa77e37fb7b4661759e2c7·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where
97 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,97 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
98 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,98 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
99 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns99 ····R:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns
100 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rights[·...·truncated·by·diffoscope;·len:·321,·SHA:·619fd774190944998148325de99aaa75de66ce4b7e26579fd342c564923a5652·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where100 successfully,·producing·a·single,·final·value.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"[·...·truncated·by·diffoscope;·len:·249,·SHA:·afbe9e91614278f09851b7c5920ddaf0907a2bf4c310ec39b40084e28959cc77·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where
101 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,101 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
102 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,102 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
103 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the103 ····R:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="../../../core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the
104 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·307,·SHA:·5975144fd8566efa93ad1ccec09297e280924b7372e08681d2103702124e2c52·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where104 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><span·class="rightside"><span·class="since"·tit[·...·truncated·by·diffoscope;·len:·235,·SHA:·da9aac17d9724df2aa434c2d10e1caa010eb4fd7e574e4da4e3d5b689e970097·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where
105 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,105 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
106 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,106 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,
107 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span[·...·truncated·by·diffoscope;·len:·619,·SHA:·8813f54846438870310d5f5dfabd2335a9dbf51e9da2e4cd681bcb6077d39628·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where107 returning·the·final·result.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="St[·...·truncated·by·diffoscope;·len:·499,·SHA:·ff97be2c630acbbbb397aa79317bd89b79955e6735d9da7aea9df48659f94fce·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
108 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,108 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
109 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·084691f7fc4e7f4da7db385127d0ce8d2d52f6740757129a65910c4db0dc180d·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing109 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·256,·SHA:·2fe8ae39f77649fea294c45979f427748b2a9938dfa70e4595ac661d972125b1·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing
110 operation.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·217,·SHA:·447ae00256be3de069c602a6c04889808c883eae6fa349d023f53bdd5570ecae·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(110 operation.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside"·href="../../../src/cor[·...·truncated·by·diffoscope;·len:·145,·SHA:·be4dc63adf8a4e832fd3dbaaabbf45f287388ea2bb17088d40589203a2ec6dfb·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(
111 ····&amp;mut·self,111 ····&amp;mut·self,
112 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·70b2b85cad045ac7addf647e0bd3cd5b2c9ebca5986613ad2b6a9c00e3a1132f·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,112 ····f:·impl·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·68,·SHA:·e7e11f257edcac749a5883ad9a3aa42e6e965be419f967b36caa7afd3b36d7c9·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
113 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·1823533b932e38e3200465d101f10a34421c005018974296350162e4049615ea·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where113 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</[·...·truncated·by·diffoscope;·len:·586,·SHA:·596f94ec7a4c06359aee56ccb8a7138a1ddb94415fafcecac1fc87434b1329a3·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
114 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,114 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
115 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,115 ····R:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
116 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·764ea8f08626b05426a76738d54ebb2d640042494d76cba8c20d868bfdc07a73·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the116 ····&lt;R·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</[·...·truncated·by·diffoscope;·len:·292,·SHA:·2ae73aa9b78f13099a8016e28a473713dcc755cf00fed8895c0c1b027bbcea01·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the
117 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><span·class="rightside"><s[·...·truncated·by·diffoscope;·len:·476,·SHA:·aef721c14147dea2fbec70dcfa76916b3f1273bed8304f4c9db310ca23d1e4b1·...·]/core/primitive.bool.html">bool</a><div·class="where">where117 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title=[·...·truncated·by·diffoscope;·len:·380,·SHA:·1042cdc03eabce3d330853b659f28b8566dd5841790f7f1303f3e326f05efab6·...·]/core/primitive.bool.html">bool</a><div·class="where">where
118 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,118 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
119 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·7c48e62c73a40a5cb5ebbf4a22cd789b342a88ad3d855022191f2bae33c736c6·...·]/core/primitive.bool.html">bool</a><div·class="where">where119 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·850,·SHA:·1b28d9cdfe3ba8dc7eac8cef1bb6549e78768b440ea492c70d80c8c07eae61cb·...·]/core/primitive.bool.html">bool</a><div·class="where">where
120 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,120 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
121 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·673d69ce0c23e24b2546127c463e67cd2a4c0f7be792712e2b42e75427161b75·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where121 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·980,·SHA:·a560c9e639c326a34f124b36f977291532e03ffae190e973674fee7e13b4c842·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
122 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,122 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
123 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·aa5078ff77f5638746395497f8ce92c1b684d342dea851990104d5e9981ab6b0·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where123 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·883,·SHA:·47fb849c20ee0cb36696a24bd285768bd0973774403ae956d2a517cd216452b1·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where
124 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,124 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
125 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·1bd732dff19021a1586bb486282683f5c1bc65d5d514f9e13cc9232b4e94955b·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;,</div></h4></section></summary><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns125 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·58,·SHA:·f6e1e279f463d2adecc4a9316aeab7af85329a84398e722f43ac130647fe78cf·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;,</div></h4></section></summary><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns
Max diff block lines reached; 144041/332899 bytes (43.27%) of diff not shown.
338 KB
./usr/share/doc/rust-doc/html/alloc/collections/btree_map/struct.Keys.html
    
Offset 1, 242 lines modifiedOffset 1, 242 lines modified
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="An·iterator·over·the·keys·of·a·`BTreeMap`."><title>Keys·in·alloc::collections::btree_map·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»  2025-01-07)»       (built» from»     a»    source»      tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Keys</a></h2><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-Keys%3C'_,+K,+V%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-Keys%3C'_,+K,+V%3E"·title="Debug">Debug</a></li><li><a·href="#impl-Default-for-Keys%3C'_,+K,+V%3E"·title="Default">Default</a></li><li><a·href="#impl-DoubleEndedIterator-for-Keys%3C'a,+K,+V%3E"·title="DoubleEndedIterator">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-Keys%3C'_,+K,+V%3E"·title="ExactSizeIterator">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-Keys%3C'_,+K,+V%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-Keys%3C'a,+K,+V%3E"·title="Iterator">Iterator</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-Keys%3C'a,+K,+V%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Keys%3C'a,+K,+V%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Keys%3C'a,+K,+V%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-Keys%3C'a,+K,+V%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-Keys%3C'a,+K,+V%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Keys%3C'a,+K,+V%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>collections::<wbr>btree_<wbr>map</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">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">btree_map</a></span><h1>Struct·<span·class="struct">Keys</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map.rs.html#449-451">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·Keys&lt;'a,·K,·V&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>An·iterator·over·the·keys·of·a·<code>BTreeMap</code>.</p>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="An·iterator·over·the·keys·of·a·`BTreeMap`."><title>Keys·in·alloc::collections::btree_map·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»  2025-01-07)»       (built» from»     a»    source»      tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Keys</a></h2><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-Keys%3C'_,+K,+V%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-Keys%3C'_,+K,+V%3E"·title="Debug">Debug</a></li><li><a·href="#impl-Default-for-Keys%3C'_,+K,+V%3E"·title="Default">Default</a></li><li><a·href="#impl-DoubleEndedIterator-for-Keys%3C'a,+K,+V%3E"·title="DoubleEndedIterator">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-Keys%3C'_,+K,+V%3E"·title="ExactSizeIterator">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-Keys%3C'_,+K,+V%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-Keys%3C'a,+K,+V%3E"·title="Iterator">Iterator</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-Keys%3C'a,+K,+V%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Keys%3C'a,+K,+V%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Keys%3C'a,+K,+V%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-Keys%3C'a,+K,+V%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-Keys%3C'a,+K,+V%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Keys%3C'a,+K,+V%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>collections::<wbr>btree_<wbr>map</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">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">btree_map</a></span><h1>Struct·<span·class="struct">Keys</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map.rs.html#449-451">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·Keys&lt;'a,·K,·V&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>An·iterator·over·the·keys·of·a·<code>BTreeMap</code>.</p>
2 <p>This·<code>struct</code>·is·created·by·the·<a·href="struct.BTreeMap.html#method.keys"·title="method·alloc::collections::btree_map::BTreeMap::keys"><code>keys</code></a>·method·on·<a·href="struct.BTreeMap.html"·title="struct·alloc::collections::btree_map::BTreeMap"><code>BTreeMap</code></a>.·See·its2 <p>This·<code>struct</code>·is·created·by·the·<a·href="struct.BTreeMap.html#method.keys"·title="method·alloc::collections::btree_map::BTreeMap::keys"><code>keys</code></a>·method·on·<a·href="struct.BTreeMap.html"·title="struct·alloc::collections::btree_map::BTreeMap"><code>BTreeMap</code></a>.·See·its
3 documentation·for·more.</p>3 documentation·for·more.</p>
4 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-Keys%3C'_,+K,+V%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map.rs.html#1809-1813">Source</a></span><a·href="#impl-Clone-for-Keys%3C'_,+K,+V%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;K,·V&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struct"·href="struct.Keys.html"·title="struct·alloc::collections::btree_map::Keys">Keys</a>&lt;'_,·K,·V&gt;</h3></section></summary><div·[·...·truncated·by·diffoscope;·len:·3983,·SHA:·16137d930d715beb5b6788563067b30b7de8ced85e060a05afdce4041c87d1c2·...·]/core/default/trait.Default.html#tymethod.default"·class="fn">default</a>()·-&gt;·Self</h4></section></summary><div·class="docblock"><p>Creates·an·empty·<code>btree_map::Keys</code>.</p>4 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-Keys%3C'_,+K,+V%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map.rs.html#1809-1813">Source</a></span><a·href="#impl-Clone-for-Keys%3C'_,+K,+V%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;K,·V&gt;·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struct"·href="struct.Keys.html"·title="struct·alloc::collections::btree_map::Keys">Keys</a>&lt;'_,·K,·V&gt;</h3></section></summary><div·class="impl-items"><deta[·...·truncated·by·diffoscope;·len:·3791,·SHA:·04b25ddf1606ded58dab22b5f48960a63d1eb65e460f2c8890b8788421115aaa·...·]/core/default/trait.Default.html#tymethod.default"·class="fn">default</a>()·-&gt;·Self</h4></section></summary><div·class="docblock"><p>Creates·an·empty·<code>btree_map::Keys</code>.</p>
  
5 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span>iter:·btree_map::Keys&lt;<span·class="lifetime">'_</span>,·u8,·u8&gt;·=·Default::default();5 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span>iter:·btree_map::Keys&lt;<span·class="lifetime">'_</span>,·u8,·u8&gt;·=·Default::default();
6 <span·class="macro">assert_eq!</span>(iter.len(),·<span·class="number">0</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::btree_map;%0A++++let+iter:+btree_map::Keys%3C'_,+u8,+u8%3E+=+Default::default();%0A++++assert_eq!(iter.len(),+0);%0A%7D&amp;edition=2021"></a></div>6 <span·class="macro">assert_eq!</span>(iter.len(),·<span·class="number">0</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::btree_map;%0A++++let+iter:+btree_map::Keys%3C'_,+u8,+u8%3E+=+Default::default();%0A++++assert_eq!(iter.len(),+0);%0A%7D&amp;edition=2021"></a></div>
7 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-DoubleEndedIterator-for-Keys%3C'a,+K,+V%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map.rs.html#1792-1796">Source</a></span><a·href="#impl-DoubleEndedIterator-for-Keys%3C'a,+K,+V%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·K,·V&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIterator</a>·for·<a·class="struct"·href="struct.Keys.html"·title="struct·alloc::co[·...·truncated·by·diffoscope;·len:·4372,·SHA:·f51653220e7db3283c92f9c51be03ae44fd5dfb011f20e9367b8703b9bc772ff·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold"·class="fn">try_rfold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where7 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-DoubleEndedIterator-for-Keys%3C'a,+K,+V%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map.rs.html#1792-1796">Source</a></span><a·href="#impl-DoubleEndedIterator-for-Keys%3C'a,+K,+V%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·K,·V&gt;·<a·class="trait"·href="../../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIterator</a>·for·<a·class="struct"·href="struct.Keys.html"·title="struct·alloc::collections::btree_map::Ke[·...·truncated·by·diffoscope;·len:·3868,·SHA:·8583d381274661a42171f92031977fde6041f94bd3e02a14107690948205e4bf·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold"·class="fn">try_rfold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where
8 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,8 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
9 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,9 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
10 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>This·is·the·reverse·version·of·<a·href="https://doc.rust-lang.org/1.8[·...·truncated·by·diffoscope;·len:·3,·SHA:·fbd04e1aae9ce0b11a8946e2c9ac2619f7428a64d32d01eff61d809dcb70ee8e·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·title="method·core::iter::traits::iterator::Iterator::try_fold"><code>Iterator::try_fold()</code></a>:·it·takes10 ····R:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>This·is·the·reverse·version·of·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·title="method·core::iter::traits::iterator::Iterator::try_fold"><code>Iterator::try_fold()</code></a>:·it·takes
11 elements·starting·from·the·back·of·the·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfold"·class="method·trait-impl"><span·clas[·...·truncated·by·diffoscope;·len:·325,·SHA:·7ffdb06a8ab3810207a1c974783822231eaf1d82fd94bcf810dd7b3181149b7b·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold"·class="fn">rfold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where11 elements·starting·from·the·back·of·the·iterator.·<a·href="../../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfold"·class="method·trait-impl"><span·class="rightside"><span·clas[·...·truncated·by·diffoscope;·len:·253,·SHA:·48421497f19ee93d3a7432833660cd659661b35b02b625c6376fc49660f200cf·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold"·class="fn">rfold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where
12 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,12 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
13 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·reduces·the·iterator’s·elements·to·a·single,13 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·reduces·the·iterator’s·elements·to·a·single,
14 final·value,·starting·from·the·back.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfind"·class="method·trait-impl"><span·class="r[·...·truncated·by·diffoscope;·len:·665,·SHA:·fde89feb7c0e70eefa34d688476ca36a70115bec8150dbf9b1a3c359f72dd28d·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where14 final·value,·starting·from·the·back.·<a·href="../../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfind"·class="method·trait-impl"><span·class="rightside"><span·class="s[·...·truncated·by·diffoscope;·len:·545,·SHA:·b420bc934fe1ddfd2fe0958678aa3aba1ce90383b1958958e47e13ae1b40fe25·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
15 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,15 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
16 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·7886,·SHA:·9a955584ec26b30d2227e472d447aa37eea817d9f25426a970c24f1efca61a6b·...·]/core/primitive.reference.html">&amp;'a·K</a>&gt;<div·class="where">where16 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·7142,·SHA:·99fe07df523f0ff9b0dd6baa12928f0d52c1af166baf14f9df594258c44efcde·...·]/core/primitive.reference.html">&amp;'a·K</a>&gt;<div·class="where">where
17 ····<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;'a·K</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,</div></h4></section></summary><div·class='docblock'>Return[·...·truncated·by·diffoscope;·len:·763,·SHA:·57ab5dd0e477c30f1176af376e45f99258d5436c456185d99315f2552daddfab·...·]/core/primitive.reference.html">&amp;'a·K</a>&gt;<div·class="where">where17 ····<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;'a·K</a>:·<a·class="trait"·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,</div></h4></section></summary><div·class='docblock'>Returns·the·minimum·element·of·an·iterator.·<a·href=".[·...·truncated·by·diffoscope;·len:·619,·SHA:·b8d409d9ff469523e66faaf0ec4f7c79ae998ec3f6ba0bb541be0e19a55b0289·...·]/core/primitive.reference.html">&amp;'a·K</a>&gt;<div·class="where">where
18 ····<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;'a·K</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,</div></h4></section></summary><div·class='docblock'>Return[·...·truncated·by·diffoscope;·len:·678,·SHA:·67dd0e6537972ed0cee7cce88e32170e329745fdc42db9ea5ceef2a173d5f33c·...·]/core/primitive.usize.html">usize</a>&gt;(18 ····<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;'a·K</a>:·<a·class="trait"·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,</div></h4></section></summary><div·class='docblock'>Returns·the·maximum·element·of·an·iterator.·<a·href=".[·...·truncated·by·diffoscope;·len:·534,·SHA:·cce08d06936eba7acfa96325f5e1dbf01a7d6eea71869e5dcb83da012c4019b0·...·]/core/primitive.usize.html">usize</a>&gt;(
19 ····&amp;mut·self,19 ····&amp;mut·self,
20 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·4f557a9b49151e0be8c52ffd68f1def4469c08164239dc8bef8df2040551c5ef·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where20 )·-&gt;·<a·class="enum"·href="../../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::It[·...·truncated·by·diffoscope;·len:·261,·SHA:·9b488006768a86d05b68f4e1888c750c736264a3a386f1310f1b7e8bfc7d2184·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where
21 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·962,·SHA:·116e4ec2ae3d9655c3d115eaf50f435f5323b4e48b84de734c79d2a09b3c02f2·...·]/core/primitive.usize.html">usize</a><div·class="where">where21 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_next[·...·truncated·by·diffoscope;·len:·842,·SHA:·d8f387888e3ee78f4397f4b1a12eae734e055247e3aa3251433ab8ac1019b31a·...·]/core/primitive.usize.html">usize</a><div·class="where">where
22 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·counting·the·number·of·iterations·and·returning·it.·<a·href="https://doc.[·...·truncated·by·diffoscope;·len:·3529,·SHA:·36685e4ebfba7d155142dce71eec5dabe5f32dacb8a458b62987f15496f31675·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where22 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·counting·the·number·of·iterations·and·returning·it.·<a·href="../../../core/iter/traits/iterator/t[·...·truncated·by·diffoscope;·len:·3049,·SHA:·36b73bdc1b7eb71bc2ee32534a58bc8374d5403ad0bacb5cbfb32bf6be47bb80·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where
23 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by23 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by
24 the·given·amount·at·each·iteration.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><sp[·...·truncated·by·diffoscope;·len:·842,·SHA:·945c4509a8daf2f8fbccc5c6e5089e225955911e03a3e411f047f96d52d16862·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where24 the·given·amount·at·each·iteration.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="[·...·truncated·by·diffoscope;·len:·698,·SHA:·035d2f4d2e6b01ddf0b424aa6fc3f5919c82f85f857cb9cfa0f54f8357058b90·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
25 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,25 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
26 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·3b5ce32f9d564c3aa7cf2adc7130e674758d0c0f4f1275b4c3b46a74aa802cb3·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where26 ····U:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·[·...·truncated·by·diffoscope;·len:·1137,·SHA:·7916ae3a9b5afad376aafc6d698165147d82613fe975f64423f2367a02a69f6a·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
27 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,27 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
28 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·[·...·truncated·by·diffoscope;·len:·868,·SHA:·abdbf27ccc84063c7040d8fa3da9d0bda5ee310a470ef576e15554aee4bd5d21·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where28 ····U:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·of·pairs.·<a·href="../..[·...·truncated·by·diffoscope;·len:·724,·SHA:·ba31078b5c50fbfc51e53bed6f70aaa6e7e320cfda19949035c71d9363c0d919·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where
29 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,29 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
30 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent30 ····Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent
31 items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="sr[·...·truncated·by·diffoscope;·len:·427,·SHA:·6e82ad4aad49c2165d869fe30d20a968580a973cdb3a7f4c77f49e16dd59393e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where31 items·of·the·original·iterator.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="src·rightside"·href="../..[·...·truncated·by·diffoscope;·len:·331,·SHA:·451e844c9bf5d6d78b9579516e4b9fafb3e84136eaa1c95bead4539370743d7d·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where
32 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,32 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
33 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>33 ····G:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>
34 between·adjacent·items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightsi[·...·truncated·by·diffoscope;·len:·471,·SHA:·ed10488b7b2ccc3e4cc84a9a57a9695a74c1c964962e8d753cbace12f3318a66·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where34 between·adjacent·items·of·the·original·iterator.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·[·...·truncated·by·diffoscope;·len:·375,·SHA:·7bbb71535f348e442b9de05a74f9180c9acec0636566fa2a19ab1dc83779aace·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where
35 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,35 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
36 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each36 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each
37 element.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><spa[·...·truncated·by·diffoscope;·len:·306,·SHA:·61c87c39b177830189b0e4c036d97c40d8b9649d76432c90afb88de59498e8b2·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where37 element.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="S[·...·truncated·by·diffoscope;·len:·234,·SHA:·55463e0fb539911d03265cbd8abb7248189471ea74954185ed77f245746805c2·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where
38 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,38 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
39 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·a65da32c5f5ef8335cb607d3b4ab3f8a25877bc2c2e8b44ca9d575caecd5c8a5·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where39 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·772,·SHA:·de07f629315c257cc96a89e82de6752f002f259b678391b79d5fb48e279e56d2·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where
40 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,40 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
41 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·6d69c85c69fa789be551ea42d95c33c237d12a04ef157f9ddaaead1177f7771e·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element41 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·68,·SHA:·67cf1e2a20410007c7dd6c47c91b1d386626c1bfac5c1116c374da7bbee00d51·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element
42 should·be·yielded.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·489,·SHA:·9bdc636899f4e4e5a26a3a21c9603f72b3fb972865d2f459c38b7e2ac8fed7f1·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where42 should·be·yielded.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·tit[·...·truncated·by·diffoscope;·len:·393,·SHA:·328d72714f754fb793753313f01b087a9fbb30b77a2bcd5749456e1f6fd72710·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where
43 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,43 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
44 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·46dbf841c7aecd3f06bd4c944af21650faeac98c46c515dcfe643302618b1ecd·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where44 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·884,·SHA:·e8a37e28a6bfcb2d58b9ffd389d339c3dece95c14840f28c980a7d7aedcc9a05·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where
45 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as45 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as
46 the·next·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside[·...·truncated·by·diffoscope;·len:·468,·SHA:·52f7ff7f264284c3acc4429ca34d057ded9afa2e3d9d6e07571e252db9a48977·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where46 the·next·value.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside"><span·class="since"·ti[·...·truncated·by·diffoscope;·len:·372,·SHA:·9c08a613d034f21b42b8d196073d0f4d61c81458378e40e77995533a8b460837·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where
47 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·c0180fefce4346b0b4089e5c642521d7716108241c0ce6ec3e910c7a2c7364b4·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods47 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="../../../core/iter/adapters/peekable/struct.Peekable.html#method.peek"·ti[·...·truncated·by·diffoscope;·len:·103,·SHA:·e3683d31746f50069ed604def6201840bce75bbc7c584fac6c3644292077ae8a·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods
48 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See48 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See
49 their·documentation·for·more·information.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightsid[·...·truncated·by·diffoscope;·len:·498,·SHA:·e4a68861585faec6a5032b3b69d6dfb0f2799b5f387a527d9a1365571ed02069·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where49 their·documentation·for·more·information.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightside"><span·class="since"·t[·...·truncated·by·diffoscope;·len:·402,·SHA:·bdba673560d208f968337eb74446ead60d6223b0ca9ec6fbfaeb1a995a7e8001·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where
50 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,50 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
51 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·93281c1f6402743fd61110c11cf676f0f67eddceda801b4eb35e5fe9f85870fd·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where51 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·1042,·SHA:·27d4a79658fb1c97b659bd2520bcebbf5cfcb8a42420a7ecfcbff6f3330fa5e1·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where
52 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,52 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
53 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·f1cdbb1ec64f98fabbe1d89c88b03824310926cd7eaa160953ce2452fc3abb77·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where53 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·890,·SHA:·c43533da7f54bfb6611594b3436645d4d1f8e5339d2d05bf2345e87628499759·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where
54 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,54 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
55 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·f94a0b2c1396b13b89aca7830197ebf19e2c0e5ba536a9cc25b325a481799510·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where55 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·971,·SHA:·1b31b9d1d5061d4ee982a30400139f1d7319412bdea39925e0cc1e8e7cf3d65a·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where
56 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="https://doc.rust-lang[·...·truncated·by·diffoscope;·len:·783,·SHA:·c14217b89e3292a50a09192a8857485891fc769f861e1d1fc4322d04295c86ef·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where56 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="../../../core/iter/traits/iterator/trait.Iter[·...·truncated·by·diffoscope;·len:·639,·SHA:·79c7f7eddc655d329424f08baee8551b7f59cd4dc4b0d6984c5e4f241bcb949b·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where
57 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer57 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer
58 if·the·underlying·iterator·ends·sooner.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·c[·...·truncated·by·diffoscope;·len:·488,·SHA:·76f753d5a273a09a73127631acaa0ee947326a929f33be291018188793e1af56·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where58 if·the·underlying·iterator·ends·sooner.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stab[·...·truncated·by·diffoscope;·len:·392,·SHA:·50ac976eb8bf89726a483af064d5a70c100dedd17d46dc40ac3a82aba51b2082·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where
59 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,59 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
60 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·07d303586c8ad4e0082d5b44bff8eeda03cdb8f4bdbe46489f9232bca5a43ec6·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but60 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/tra[·...·truncated·by·diffoscope;·len:·329,·SHA:·14fc5ef1359fcb2171e21ba65c5f5d8ce11053860ba1d5aa32ddce90a48c2a8c·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but
61 unlike·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·2b20882d9583cee50e0c8b3cf362b27ce0d524db387d4aa4093d622b9370dada·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where61 unlike·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.scan">Rea[·...·truncated·by·diffoscope;·len:·570,·SHA:·3cdbe78e481f63f4d21b2fa94202dad167221af9d6e6f981ccd7a6e524f6157d·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where
62 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,62 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
63 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,63 ····U:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
64 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·933,·SHA:·4af94b75ba5c1e03d2d70590d2fd0706f13b3080fbff0f5b98e7b109048c403d·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where64 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·789,·SHA:·0e36f9aa81931958e65acc9e1b5bf6ad7367dcb7163dcf0af2a043314857a909·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where
65 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,65 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
66 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.I[·...·truncated·by·diffoscope;·len:·968,·SHA:·e5572ed2f3bdf5970d038da608f2f592d945541207c483c257fe5789efba168a·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where66 ····Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::trait[·...·truncated·by·diffoscope;·len:·800,·SHA:·3ea01df21dfaf9ee656fdee6aa789a6ce5be05d17c043433c5ab28da8f6d3241·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where
67 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,67 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
68 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·3013c0e49b0dade37f8ca096eccc5ceeb03fc79b9d320a4c92486d23b88d1009·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over68 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator[·...·truncated·by·diffoscope;·len:·63,·SHA:·8395b60c01b0cde6c3340bd4e6c57cddd02465a19dcf15a8aa5498bd6c8ddc11·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over
69 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,69 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="../../../core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,
70 the·windows·during·mapping·overlap·as·well.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside">[·...·truncated·by·diffoscope;·len:·454,·SHA:·040991f3914479bcc92615de2b81df7363656323622e5aadc964e1a61917d23e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where70 the·windows·during·mapping·overlap·as·well.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside"><span·class="since"·titl[·...·truncated·by·diffoscope;·len:·358,·SHA:·21db4436f04b3d09e41f294c30cd7dea235a4beb9af727cb1f1f065008ad732e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where
71 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="https://doc.rust-lang.org/1.84.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·0e0294a45242d5ce9a3ab8f95d6d410756415291d92baa7d12283ef1b3ecc3a0·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where71 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="../../../core/option/enum.Option.html#variant.None"·title="varia[·...·truncated·by·diffoscope;·len:·697,·SHA:·55b16240a265fa2f73963114b9def4c5703a60d1c3ce047915fff28502588e5b·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where
72 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,72 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
73 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·a8b562f71802a421f4745f7d1fadf4f70d98030c829e70f27b692e7915267027·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where73 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·650,·SHA:·eb862563a2da6881a0f9a31dac8f99f2b47b2c8d3033a0e1bc9ec49ae5500941·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where
74 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="https://doc.rust-lang.org/1.84.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·b3db7d84f203bbc139b1c52912705d19c664dac762898205fce452c9dc3a5318·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where74 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.by[·...·truncated·by·diffoscope;·len:·427,·SHA:·d439202f1a598c30b789e20f3d05a82f531349aa12f3af08cc5c230996ec01a9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where
75 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,75 ····B:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
76 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·431,·SHA:·a705a23f6d810357e7dcac670743884665ffcccfb9b780d0aa03720be8ca5625·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(76 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.collect[·...·truncated·by·diffoscope;·len:·335,·SHA:·d72a986b5d306b2e1ed99e18a16e26fa1b5380448fea76ac3db703052800b629·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(
77 ····&amp;mut·self,77 ····&amp;mut·self,
78 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.h[·...·truncated·by·diffoscope;·len:·479,·SHA:·fa749442d890055f86ceb34f411c84fd7ea08302b336d786d1ca36fe5868b020·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where78 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try[·...·truncated·by·diffoscope;·len:·359,·SHA:·886ccc2fbd37f1e7df4075b80b0bebd3d1a6e997fae2114ca1818fa30fa95d5a·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
79 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,79 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
80 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>, 
81 ····&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang[·...·truncated·by·diffoscope;·len:·449,·SHA:·9ddccfb7bdd27ea692d65fa83daf56e31762d1bec3a502234174b8fa4fb33a98·...·],80 ····Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="[·...·truncated·by·diffoscope;·len:·40,·SHA:·39f6b8b47216936a6251a972a3e72c0459df25c157b8b3990eefb48397aa8303·...·],
 81 ····&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;B&gt;,
82 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/itera[·...·truncated·by·diffoscope;·len:·323,·SHA:·b5c51f161dc9d77fd81d1fd23cc71fbf42ac00f3168cf9e41ebaaa2b6eb25363·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if82 ····B:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·tit[·...·truncated·by·diffoscope;·len:·227,·SHA:·91a843f71f5d4d4bdd2a6f526e4b1ace78ad1c1c0027ff429527a1e3cc1cbb42·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if
83 a·failure·is·encountered.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·ri[·...·truncated·by·diffoscope;·len:·521,·SHA:·6a54376815dab985ec8cc35604d035e98e3003b1563c9b41e70966084505542b·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where83 a·failure·is·encountered.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../../[·...·truncated·by·diffoscope;·len:·401,·SHA:·ed1d0660f20625c1d5231d569dd3e4f1d10332250dcd1a3f5d2e886618e67f5b·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
84 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,84 ····E:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
85 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·975,·SHA:·94f7f970236ba59ba5f1415764a0e3ab2f3093c6b79e76c25c797ac24a3c4d09·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where85 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_coll[·...·truncated·by·diffoscope;·len:·855,·SHA:·7b38a8c237aadc46d5211ff8698af580678e0cbcab757a66d6416b422880dd91·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
86 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,86 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
87 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·b480ec650ba000fe7cb67df58fc0351299638ee3e8f00db18f74ca24d69f9894·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,87 ····B:·<a·class="trait"·href="../../../core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="../../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associa[·...·truncated·by·diffoscope;·len:·23,·SHA:·4417dee5d41246c4acf5419e1bdac3c7d847bd34e3e87738a08734259a3b63da·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
88 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·fdf5a1845f070855ba2cfd0c8c85460ea5cb646c4d3b42a8431bf21489c73701·...·]/core/primitive.usize.html">usize</a><div·class="where">where88 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·827,·SHA:·0237b034801a953ed40ad7c10f9a80d682bdf0a649c6fde9f53efc254cd75fc0·...·]/core/primitive.usize.html">usize</a><div·class="where">where
89 ····T:·'a,89 ····T:·'a,
90 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·1fc250e258e9e42e4fa3e22f86ecd57057e9ff23e47af1aec778076a7a891134·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,90 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="../../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEnd[·...·truncated·by·diffoscope;·len:·60,·SHA:·036db50df43442a72ce04aef94ccf2727352aad0708d71fe0e34c23613b84765·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,
91 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·5846407374f20f525a4a0663ad4488141eafe64513ef82581dc5df5c2d200745·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_partition_in_place</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62543">#62543</a>)</span></div></span><div·class='docblock'>Reorders·the·elements·of·this·iterator·<em>in-place</em>·according·to·the·given·predicate,91 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="../../../core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_partition_in_place</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62543">#62543</a>)</span></div></span><div·class='docblock'>Reorders·the·elements·of·this·iterator·<em>in-place</em>·according·to·the·given·predicate,
92 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.92 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.
93 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.partition_in_place">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_partitioned"·class="method·trait-impl"><a·clas[·...·truncated·by·diffoscope;·len:·431,·SHA:·4aa7d028146c72d45794efc19a376d4bee3b75eda61ff46d969e440b3dbfa1b0·...·]/core/primitive.bool.html">bool</a><div·class="where">where93 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.partition_in_place">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_partitioned"·class="method·trait-impl"><a·class="src·rightside"·href="[·...·truncated·by·diffoscope;·len:·335,·SHA:·252e1c16199fc3c38bc7de8cbda8c9532ab6d581d449c680cd7daf8d61a74aeb·...·]/core/primitive.bool.html">bool</a><div·class="where">where
94 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,94 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
95 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·fcd03e71f79faad6d9b9a12045d59f4dfabc78e5aefebcabc9c1a5be45e31125·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,95 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·63,·SHA:·852041c2de8156fdddf9f71111c5ddf1a6b88aabd8c082f1a254f0b21c18ffa1·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,
96 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><span·class="righ[·...·truncated·by·diffoscope;·len:·319,·SHA:·9b9df13f2f4e5b4dde3908515766e1a474fa30bcb7edc98c15665a016e677c2a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where96 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><span·class="rightside"><span·class="sinc[·...·truncated·by·diffoscope;·len:·247,·SHA:·222a0145d03094cb0b20ca156583afe97e703828a8aa77e37fb7b4661759e2c7·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where
97 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,97 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
98 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,98 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
99 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns99 ····R:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns
100 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rights[·...·truncated·by·diffoscope;·len:·321,·SHA:·619fd774190944998148325de99aaa75de66ce4b7e26579fd342c564923a5652·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where100 successfully,·producing·a·single,·final·value.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"[·...·truncated·by·diffoscope;·len:·249,·SHA:·afbe9e91614278f09851b7c5920ddaf0907a2bf4c310ec39b40084e28959cc77·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where
101 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,101 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
102 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,102 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
103 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the103 ····R:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="../../../core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the
104 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·307,·SHA:·5975144fd8566efa93ad1ccec09297e280924b7372e08681d2103702124e2c52·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where104 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><span·class="rightside"><span·class="since"·tit[·...·truncated·by·diffoscope;·len:·235,·SHA:·da9aac17d9724df2aa434c2d10e1caa010eb4fd7e574e4da4e3d5b689e970097·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where
105 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,105 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
106 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,106 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,
107 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span[·...·truncated·by·diffoscope;·len:·619,·SHA:·8813f54846438870310d5f5dfabd2335a9dbf51e9da2e4cd681bcb6077d39628·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where107 returning·the·final·result.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="St[·...·truncated·by·diffoscope;·len:·499,·SHA:·ff97be2c630acbbbb397aa79317bd89b79955e6735d9da7aea9df48659f94fce·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
108 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,108 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
109 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·084691f7fc4e7f4da7db385127d0ce8d2d52f6740757129a65910c4db0dc180d·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing109 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·256,·SHA:·2fe8ae39f77649fea294c45979f427748b2a9938dfa70e4595ac661d972125b1·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing
110 operation.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·217,·SHA:·447ae00256be3de069c602a6c04889808c883eae6fa349d023f53bdd5570ecae·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(110 operation.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside"·href="../../../src/cor[·...·truncated·by·diffoscope;·len:·145,·SHA:·be4dc63adf8a4e832fd3dbaaabbf45f287388ea2bb17088d40589203a2ec6dfb·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(
111 ····&amp;mut·self,111 ····&amp;mut·self,
112 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·70b2b85cad045ac7addf647e0bd3cd5b2c9ebca5986613ad2b6a9c00e3a1132f·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,112 ····f:·impl·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·68,·SHA:·e7e11f257edcac749a5883ad9a3aa42e6e965be419f967b36caa7afd3b36d7c9·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
113 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·1823533b932e38e3200465d101f10a34421c005018974296350162e4049615ea·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where113 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</[·...·truncated·by·diffoscope;·len:·586,·SHA:·596f94ec7a4c06359aee56ccb8a7138a1ddb94415fafcecac1fc87434b1329a3·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
114 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,114 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
115 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,115 ····R:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
116 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·764ea8f08626b05426a76738d54ebb2d640042494d76cba8c20d868bfdc07a73·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the116 ····&lt;R·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</[·...·truncated·by·diffoscope;·len:·292,·SHA:·2ae73aa9b78f13099a8016e28a473713dcc755cf00fed8895c0c1b027bbcea01·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the
117 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><span·class="rightside"><s[·...·truncated·by·diffoscope;·len:·476,·SHA:·aef721c14147dea2fbec70dcfa76916b3f1273bed8304f4c9db310ca23d1e4b1·...·]/core/primitive.bool.html">bool</a><div·class="where">where117 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title=[·...·truncated·by·diffoscope;·len:·380,·SHA:·1042cdc03eabce3d330853b659f28b8566dd5841790f7f1303f3e326f05efab6·...·]/core/primitive.bool.html">bool</a><div·class="where">where
118 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,118 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
119 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·7c48e62c73a40a5cb5ebbf4a22cd789b342a88ad3d855022191f2bae33c736c6·...·]/core/primitive.bool.html">bool</a><div·class="where">where119 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·850,·SHA:·1b28d9cdfe3ba8dc7eac8cef1bb6549e78768b440ea492c70d80c8c07eae61cb·...·]/core/primitive.bool.html">bool</a><div·class="where">where
120 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,120 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
121 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·673d69ce0c23e24b2546127c463e67cd2a4c0f7be792712e2b42e75427161b75·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where121 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·980,·SHA:·a560c9e639c326a34f124b36f977291532e03ffae190e973674fee7e13b4c842·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
122 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,122 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
123 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·aa5078ff77f5638746395497f8ce92c1b684d342dea851990104d5e9981ab6b0·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where123 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·883,·SHA:·47fb849c20ee0cb36696a24bd285768bd0973774403ae956d2a517cd216452b1·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where
124 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,124 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
125 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·1bd732dff19021a1586bb486282683f5c1bc65d5d514f9e13cc9232b4e94955b·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;,</div></h4></section></summary><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns125 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·58,·SHA:·f6e1e279f463d2adecc4a9316aeab7af85329a84398e722f43ac130647fe78cf·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;,</div></h4></section></summary><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns
Max diff block lines reached; 154943/345988 bytes (44.78%) of diff not shown.
63.4 KB
./usr/share/doc/rust-doc/html/alloc/collections/btree_map/struct.OccupiedEntry.html
    
Offset 1, 43 lines modifiedOffset 1, 43 lines modified
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="A·view·into·an·occupied·entry·in·a·`BTreeMap`.·It·is·part·of·the·`Entry`·enum."><title>OccupiedEntry·in·alloc::collections::btree_map·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»     2025-01-07)»  (built»    from»a»       source» tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Occupied<wbr>Entry</a></h2><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.get"·title="get">get</a></li><li><a·href="#method.get_mut"·title="get_mut">get_mut</a></li><li><a·href="#method.insert"·title="insert">insert</a></li><li><a·href="#method.into_mut"·title="into_mut">into_mut</a></li><li><a·href="#method.key"·title="key">key</a></li><li><a·href="#method.remove"·title="remove">remove</a></li><li><a·href="#method.remove_entry"·title="remove_entry">remove_entry</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Debug-for-OccupiedEntry%3C'_,+K,+V,+A%3E"·title="Debug">Debug</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-UnwindSafe-for-OccupiedEntry%3C'a,+K,+V,+A%3E"·title="!UnwindSafe">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-OccupiedEntry%3C'a,+K,+V,+A%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-OccupiedEntry%3C'a,+K,+V,+A%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-OccupiedEntry%3C'a,+K,+V,+A%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-OccupiedEntry%3C'a,+K,+V,+A%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-OccupiedEntry%3C'a,+K,+V,+A%3E"·title="Unpin">Unpin</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>collections::<wbr>btree_<wbr>map</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">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">btree_map</a></span><h1>Struct·<span·class="struct">OccupiedEntry</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map/entry.rs.html#75-89">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·OccupiedEntry&lt;'a,·K,·V,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·=·<a·class="struct"·href="../../alloc/struct.Global.html"·title="struct·alloc::alloc::Global">Global</a>&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>A·view·into·an·occupied·entry·in·a·<code>BTreeMap</code>.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="A·view·into·an·occupied·entry·in·a·`BTreeMap`.·It·is·part·of·the·`Entry`·enum."><title>OccupiedEntry·in·alloc::collections::btree_map·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»     2025-01-07)»  (built»    from»a»       source» tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Occupied<wbr>Entry</a></h2><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.get"·title="get">get</a></li><li><a·href="#method.get_mut"·title="get_mut">get_mut</a></li><li><a·href="#method.insert"·title="insert">insert</a></li><li><a·href="#method.into_mut"·title="into_mut">into_mut</a></li><li><a·href="#method.key"·title="key">key</a></li><li><a·href="#method.remove"·title="remove">remove</a></li><li><a·href="#method.remove_entry"·title="remove_entry">remove_entry</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Debug-for-OccupiedEntry%3C'_,+K,+V,+A%3E"·title="Debug">Debug</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-UnwindSafe-for-OccupiedEntry%3C'a,+K,+V,+A%3E"·title="!UnwindSafe">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-OccupiedEntry%3C'a,+K,+V,+A%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-OccupiedEntry%3C'a,+K,+V,+A%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-OccupiedEntry%3C'a,+K,+V,+A%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-OccupiedEntry%3C'a,+K,+V,+A%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-OccupiedEntry%3C'a,+K,+V,+A%3E"·title="Unpin">Unpin</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>collections::<wbr>btree_<wbr>map</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">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">btree_map</a></span><h1>Struct·<span·class="struct">OccupiedEntry</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map/entry.rs.html#75-89">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·OccupiedEntry&lt;'a,·K,·V,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·+·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·=·<a·class="struct"·href="../../alloc/struct.Global.html"·title="struct·alloc::alloc::Global">Global</a>&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>A·view·into·an·occupied·entry·in·a·<code>BTreeMap</code>.
2 It·is·part·of·the·<a·href="enum.Entry.html"·title="enum·alloc::collections::btree_map::Entry"><code>Entry</code></a>·enum.</p>2 It·is·part·of·the·<a·href="enum.Entry.html"·title="enum·alloc::collections::btree_map::Entry"><code>Entry</code></a>·enum.</p>
3 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-OccupiedEntry%3C'a,+K,+V,+A%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map/entry.rs.html#389-570">Source</a><a·href="#impl-OccupiedEntry%3C'a,+K,+V,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·K:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,·V,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·+·<a·class="trait"·href="https://doc.rust-lan[·...·truncated·by·diffoscope;·len:·728,·SHA:·98e897cd5d60368fdb92403105318cf534a627bee3d9c94226de50fd22f95800·...·]/core/primitive.reference.html">&amp;K</a></h4></section></summary><div·class="docblock"><p>Gets·a·reference·to·the·key·in·the·entry.</p>3 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-OccupiedEntry%3C'a,+K,+V,+A%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map/entry.rs.html#389-570">Source</a><a·href="#impl-OccupiedEntry%3C'a,+K,+V,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·K:·<a·class="trait"·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,·V,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·+·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title=[·...·truncated·by·diffoscope;·len:·656,·SHA:·ff57380e0db7ac1ac7dcb1d06eaa2382e0ff8445b1c8a1bf9f9222309d85ecde·...·]/core/primitive.reference.html">&amp;K</a></h4></section></summary><div·class="docblock"><p>Gets·a·reference·to·the·key·in·the·entry.</p>
4 <h5·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h5>4 <h5·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h5>
5 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BTreeMap;5 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BTreeMap;
  
6 <span·class="kw">let·</span><span·class="kw-2">mut·</span>map:·BTreeMap&lt;<span·class="kw-2">&amp;</span>str,·usize&gt;·=·BTreeMap::new();6 <span·class="kw">let·</span><span·class="kw-2">mut·</span>map:·BTreeMap&lt;<span·class="kw-2">&amp;</span>str,·usize&gt;·=·BTreeMap::new();
7 map.entry(<span·class="string">"poneyland"</span>).or_insert(<span·class="number">12</span>);7 map.entry(<span·class="string">"poneyland"</span>).or_insert(<span·class="number">12</span>);
8 <span·class="macro">assert_eq!</span>(map.entry(<span·class="string">"poneyland"</span>).key(),·<span·class="kw-2">&amp;</span><span·class="string">"poneyland"</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::BTreeMap;%0A++++%0A++++let+mut+map:+BTreeMap%3C%26str,+usize%3E+=+BTreeMap::new();%0A++++map.entry(%22poneyland%22).or_insert(12);%0A++++assert_eq!(map.entry(%22poneyland%22).key(),+%26%22poneyland%22);%0A%7D&amp;edition=2021"></a></div>8 <span·class="macro">assert_eq!</span>(map.entry(<span·class="string">"poneyland"</span>).key(),·<span·class="kw-2">&amp;</span><span·class="string">"poneyland"</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::BTreeMap;%0A++++%0A++++let+mut+map:+BTreeMap%3C%26str,+usize%3E+=+BTreeMap::new();%0A++++map.entry(%22poneyland%22).or_insert(12);%0A++++assert_eq!(map.entry(%22poneyland%22).key(),+%26%22poneyland%22);%0A%7D&amp;edition=2021"></a></div>
9 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.remove_entry"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.12.0">1.12.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map/entry.rs.html#427-429">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.remove_entry"·class="fn">remove_entry</a>(self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.tuple.html">(K,·V)</a></h4></section></summary><div·class="docblock"><p>Take·ownership·of·the·key·and·value·from·the·map.</p>9 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.remove_entry"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.12.0">1.12.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map/entry.rs.html#427-429">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.remove_entry"·class="fn">remove_entry</a>(self)·-&gt;·<a·class="primitive"·href="../../../core/primitive.tuple.html">(K,·V)</a></h4></section></summary><div·class="docblock"><p>Take·ownership·of·the·key·and·value·from·the·map.</p>
10 <h5·id="examples-1"><a·class="doc-anchor"·href="#examples-1">§</a>Examples</h5>10 <h5·id="examples-1"><a·class="doc-anchor"·href="#examples-1">§</a>Examples</h5>
11 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BTreeMap;11 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BTreeMap;
12 <span·class="kw">use·</span>std::collections::btree_map::Entry;12 <span·class="kw">use·</span>std::collections::btree_map::Entry;
  
13 <span·class="kw">let·</span><span·class="kw-2">mut·</span>map:·BTreeMap&lt;<span·class="kw-2">&amp;</span>str,·usize&gt;·=·BTreeMap::new();13 <span·class="kw">let·</span><span·class="kw-2">mut·</span>map:·BTreeMap&lt;<span·class="kw-2">&amp;</span>str,·usize&gt;·=·BTreeMap::new();
14 map.entry(<span·class="string">"poneyland"</span>).or_insert(<span·class="number">12</span>);14 map.entry(<span·class="string">"poneyland"</span>).or_insert(<span·class="number">12</span>);
  
15 <span·class="kw">if·let·</span>Entry::Occupied(o)·=·map.entry(<span·class="string">"poneyland"</span>)·{15 <span·class="kw">if·let·</span>Entry::Occupied(o)·=·map.entry(<span·class="string">"poneyland"</span>)·{
16 ····<span·class="comment">//·We·delete·the·entry·from·the·map.16 ····<span·class="comment">//·We·delete·the·entry·from·the·map.
17 ····</span>o.remove_entry();17 ····</span>o.remove_entry();
18 }18 }
  
19 <span·class="comment">//·If·now·try·to·get·the·value,·it·will·panic:19 <span·class="comment">//·If·now·try·to·get·the·value,·it·will·panic:
20 //·println!("{}",·map["poneyland"]);</span></code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::BTreeMap;%0A++++use+std::collections::btree_map::Entry;%0A++++%0A++++let+mut+map:+BTreeMap%3C%26str,+usize%3E+=+BTreeMap::new();%0A++++map.entry(%22poneyland%22).or_insert(12);%0A++++%0A++++if+let+Entry::Occupied(o)+=+map.entry(%22poneyland%22)+%7B%0A++++++++//+We+delete+the+entry+from+the+map.%0A++++++++o.remove_entry();%0A++++%7D%0A++++%0A++++//+If+now+try+to+get+the+value,+it+will+panic:%0A++++//+println!(%22%7B%7D%22,+map%5B%22poneyland%22%5D);%0A%7D&amp;edition=2021"></a></div>20 //·println!("{}",·map["poneyland"]);</span></code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::BTreeMap;%0A++++use+std::collections::btree_map::Entry;%0A++++%0A++++let+mut+map:+BTreeMap%3C%26str,+usize%3E+=+BTreeMap::new();%0A++++map.entry(%22poneyland%22).or_insert(12);%0A++++%0A++++if+let+Entry::Occupied(o)+=+map.entry(%22poneyland%22)+%7B%0A++++++++//+We+delete+the+entry+from+the+map.%0A++++++++o.remove_entry();%0A++++%7D%0A++++%0A++++//+If+now+try+to+get+the+value,+it+will+panic:%0A++++//+println!(%22%7B%7D%22,+map%5B%22poneyland%22%5D);%0A%7D&amp;edition=2021"></a></div>
21 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.get"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map/entry.rs.html#448-450">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.get"·class="fn">get</a>(&amp;self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;V</a></h4></section></summary><div·class="docblock"><p>Gets·a·reference·to·the·value·in·the·entry.</p>21 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.get"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map/entry.rs.html#448-450">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.get"·class="fn">get</a>(&amp;self)·-&gt;·<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;V</a></h4></section></summary><div·class="docblock"><p>Gets·a·reference·to·the·value·in·the·entry.</p>
22 <h5·id="examples-2"><a·class="doc-anchor"·href="#examples-2">§</a>Examples</h5>22 <h5·id="examples-2"><a·class="doc-anchor"·href="#examples-2">§</a>Examples</h5>
23 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BTreeMap;23 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BTreeMap;
24 <span·class="kw">use·</span>std::collections::btree_map::Entry;24 <span·class="kw">use·</span>std::collections::btree_map::Entry;
  
25 <span·class="kw">let·</span><span·class="kw-2">mut·</span>map:·BTreeMap&lt;<span·class="kw-2">&amp;</span>str,·usize&gt;·=·BTreeMap::new();25 <span·class="kw">let·</span><span·class="kw-2">mut·</span>map:·BTreeMap&lt;<span·class="kw-2">&amp;</span>str,·usize&gt;·=·BTreeMap::new();
26 map.entry(<span·class="string">"poneyland"</span>).or_insert(<span·class="number">12</span>);26 map.entry(<span·class="string">"poneyland"</span>).or_insert(<span·class="number">12</span>);
  
27 <span·class="kw">if·let·</span>Entry::Occupied(o)·=·map.entry(<span·class="string">"poneyland"</span>)·{27 <span·class="kw">if·let·</span>Entry::Occupied(o)·=·map.entry(<span·class="string">"poneyland"</span>)·{
28 ····<span·class="macro">assert_eq!</span>(o.get(),·<span·class="kw-2">&amp;</span><span·class="number">12</span>);28 ····<span·class="macro">assert_eq!</span>(o.get(),·<span·class="kw-2">&amp;</span><span·class="number">12</span>);
29 }</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::BTreeMap;%0A++++use+std::collections::btree_map::Entry;%0A++++%0A++++let+mut+map:+BTreeMap%3C%26str,+usize%3E+=+BTreeMap::new();%0A++++map.entry(%22poneyland%22).or_insert(12);%0A++++%0A++++if+let+Entry::Occupied(o)+=+map.entry(%22poneyland%22)+%7B%0A++++++++assert_eq!(o.get(),+%2612);%0A++++%7D%0A%7D&amp;edition=2021"></a></div>29 }</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::BTreeMap;%0A++++use+std::collections::btree_map::Entry;%0A++++%0A++++let+mut+map:+BTreeMap%3C%26str,+usize%3E+=+BTreeMap::new();%0A++++map.entry(%22poneyland%22).or_insert(12);%0A++++%0A++++if+let+Entry::Occupied(o)+=+map.entry(%22poneyland%22)+%7B%0A++++++++assert_eq!(o.get(),+%2612);%0A++++%7D%0A%7D&amp;edition=2021"></a></div>
30 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.get_mut"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map/entry.rs.html#479-481">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.get_mut"·class="fn">get_mut</a>(&amp;mut·self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;mut·V</a></h4></section></summary><div·class="docblock"><p>Gets·a·mutable·reference·to·the·value·in·the·entry.</p>30 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.get_mut"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map/entry.rs.html#479-481">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.get_mut"·class="fn">get_mut</a>(&amp;mut·self)·-&gt;·<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;mut·V</a></h4></section></summary><div·class="docblock"><p>Gets·a·mutable·reference·to·the·value·in·the·entry.</p>
31 <p>If·you·need·a·reference·to·the·<code>OccupiedEntry</code>·that·may·outlive·the31 <p>If·you·need·a·reference·to·the·<code>OccupiedEntry</code>·that·may·outlive·the
32 destruction·of·the·<code>Entry</code>·value,·see·<a·href="struct.OccupiedEntry.html#method.into_mut"·title="method·alloc::collections::btree_map::OccupiedEntry::into_mut"><code>into_mut</code></a>.</p>32 destruction·of·the·<code>Entry</code>·value,·see·<a·href="struct.OccupiedEntry.html#method.into_mut"·title="method·alloc::collections::btree_map::OccupiedEntry::into_mut"><code>into_mut</code></a>.</p>
33 <h5·id="examples-3"><a·class="doc-anchor"·href="#examples-3">§</a>Examples</h5>33 <h5·id="examples-3"><a·class="doc-anchor"·href="#examples-3">§</a>Examples</h5>
34 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BTreeMap;34 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BTreeMap;
35 <span·class="kw">use·</span>std::collections::btree_map::Entry;35 <span·class="kw">use·</span>std::collections::btree_map::Entry;
  
36 <span·class="kw">let·</span><span·class="kw-2">mut·</span>map:·BTreeMap&lt;<span·class="kw-2">&amp;</span>str,·usize&gt;·=·BTreeMap::new();36 <span·class="kw">let·</span><span·class="kw-2">mut·</span>map:·BTreeMap&lt;<span·class="kw-2">&amp;</span>str,·usize&gt;·=·BTreeMap::new();
Offset 48, 15 lines modifiedOffset 48, 15 lines modified
48 ····<span·class="kw-2">*</span>o.get_mut()·+=·<span·class="number">10</span>;48 ····<span·class="kw-2">*</span>o.get_mut()·+=·<span·class="number">10</span>;
49 ····<span·class="macro">assert_eq!</span>(<span·class="kw-2">*</span>o.get(),·<span·class="number">22</span>);49 ····<span·class="macro">assert_eq!</span>(<span·class="kw-2">*</span>o.get(),·<span·class="number">22</span>);
  
50 ····<span·class="comment">//·We·can·use·the·same·Entry·multiple·times.50 ····<span·class="comment">//·We·can·use·the·same·Entry·multiple·times.
51 ····</span><span·class="kw-2">*</span>o.get_mut()·+=·<span·class="number">2</span>;51 ····</span><span·class="kw-2">*</span>o.get_mut()·+=·<span·class="number">2</span>;
52 }52 }
53 <span·class="macro">assert_eq!</span>(map[<span·class="string">"poneyland"</span>],·<span·class="number">24</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::BTreeMap;%0A++++use+std::collections::btree_map::Entry;%0A++++%0A++++let+mut+map:+BTreeMap%3C%26str,+usize%3E+=+BTreeMap::new();%0A++++map.entry(%22poneyland%22).or_insert(12);%0A++++%0A++++assert_eq!(map%5B%22poneyland%22%5D,+12);%0A++++if+let+Entry::Occupied(mut+o)+=+map.entry(%22poneyland%22)+%7B%0A++++++++*o.get_mut()+%2B=+10;%0A++++++++assert_eq!(*o.get(),+22);%0A++++%0A++++++++//+We+can+use+the+same+Entry+multiple+times.%0A++++++++*o.get_mut()+%2B=+2;%0A++++%7D%0A++++assert_eq!(map%5B%22poneyland%22%5D,+24);%0A%7D&amp;edition=2021"></a></div>53 <span·class="macro">assert_eq!</span>(map[<span·class="string">"poneyland"</span>],·<span·class="number">24</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::BTreeMap;%0A++++use+std::collections::btree_map::Entry;%0A++++%0A++++let+mut+map:+BTreeMap%3C%26str,+usize%3E+=+BTreeMap::new();%0A++++map.entry(%22poneyland%22).or_insert(12);%0A++++%0A++++assert_eq!(map%5B%22poneyland%22%5D,+12);%0A++++if+let+Entry::Occupied(mut+o)+=+map.entry(%22poneyland%22)+%7B%0A++++++++*o.get_mut()+%2B=+10;%0A++++++++assert_eq!(*o.get(),+22);%0A++++%0A++++++++//+We+can+use+the+same+Entry+multiple+times.%0A++++++++*o.get_mut()+%2B=+2;%0A++++%7D%0A++++assert_eq!(map%5B%22poneyland%22%5D,+24);%0A%7D&amp;edition=2021"></a></div>
54 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.into_mut"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map/entry.rs.html#506-508">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.into_mut"·class="fn">into_mut</a>(self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;'a·mut·V</a></h4></section></summary><div·class="docblock"><p>Converts·the·entry·into·a·mutable·reference·to·its·value.</p>54 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.into_mut"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map/entry.rs.html#506-508">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.into_mut"·class="fn">into_mut</a>(self)·-&gt;·<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;'a·mut·V</a></h4></section></summary><div·class="docblock"><p>Converts·the·entry·into·a·mutable·reference·to·its·value.</p>
55 <p>If·you·need·multiple·references·to·the·<code>OccupiedEntry</code>,·see·<a·href="struct.OccupiedEntry.html#method.get_mut"·title="method·alloc::collections::btree_map::OccupiedEntry::get_mut"><code>get_mut</code></a>.</p>55 <p>If·you·need·multiple·references·to·the·<code>OccupiedEntry</code>,·see·<a·href="struct.OccupiedEntry.html#method.get_mut"·title="method·alloc::collections::btree_map::OccupiedEntry::get_mut"><code>get_mut</code></a>.</p>
56 <h5·id="examples-4"><a·class="doc-anchor"·href="#examples-4">§</a>Examples</h5>56 <h5·id="examples-4"><a·class="doc-anchor"·href="#examples-4">§</a>Examples</h5>
57 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BTreeMap;57 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BTreeMap;
58 <span·class="kw">use·</span>std::collections::btree_map::Entry;58 <span·class="kw">use·</span>std::collections::btree_map::Entry;
  
59 <span·class="kw">let·</span><span·class="kw-2">mut·</span>map:·BTreeMap&lt;<span·class="kw-2">&amp;</span>str,·usize&gt;·=·BTreeMap::new();59 <span·class="kw">let·</span><span·class="kw-2">mut·</span>map:·BTreeMap&lt;<span·class="kw-2">&amp;</span>str,·usize&gt;·=·BTreeMap::new();
60 map.entry(<span·class="string">"poneyland"</span>).or_insert(<span·class="number">12</span>);60 map.entry(<span·class="string">"poneyland"</span>).or_insert(<span·class="number">12</span>);
Offset 88, 29 lines modifiedOffset 88, 29 lines modified
88 map.entry(<span·class="string">"poneyland"</span>).or_insert(<span·class="number">12</span>);88 map.entry(<span·class="string">"poneyland"</span>).or_insert(<span·class="number">12</span>);
  
89 <span·class="kw">if·let·</span>Entry::Occupied(o)·=·map.entry(<span·class="string">"poneyland"</span>)·{89 <span·class="kw">if·let·</span>Entry::Occupied(o)·=·map.entry(<span·class="string">"poneyland"</span>)·{
90 ····<span·class="macro">assert_eq!</span>(o.remove(),·<span·class="number">12</span>);90 ····<span·class="macro">assert_eq!</span>(o.remove(),·<span·class="number">12</span>);
91 }91 }
92 <span·class="comment">//·If·we·try·to·get·"poneyland"'s·value,·it'll·panic:92 <span·class="comment">//·If·we·try·to·get·"poneyland"'s·value,·it'll·panic:
93 //·println!("{}",·map["poneyland"]);</span></code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::BTreeMap;%0A++++use+std::collections::btree_map::Entry;%0A++++%0A++++let+mut+map:+BTreeMap%3C%26str,+usize%3E+=+BTreeMap::new();%0A++++map.entry(%22poneyland%22).or_insert(12);%0A++++%0A++++if+let+Entry::Occupied(o)+=+map.entry(%22poneyland%22)+%7B%0A++++++++assert_eq!(o.remove(),+12);%0A++++%7D%0A++++//+If+we+try+to+get+%22poneyland%22's+value,+it'll+panic:%0A++++//+println!(%22%7B%7D%22,+map%5B%22poneyland%22%5D);%0A%7D&amp;edition=2021"></a></div>93 //·println!("{}",·map["poneyland"]);</span></code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::BTreeMap;%0A++++use+std::collections::btree_map::Entry;%0A++++%0A++++let+mut+map:+BTreeMap%3C%26str,+usize%3E+=+BTreeMap::new();%0A++++map.entry(%22poneyland%22).or_insert(12);%0A++++%0A++++if+let+Entry::Occupied(o)+=+map.entry(%22poneyland%22)+%7B%0A++++++++assert_eq!(o.remove(),+12);%0A++++%7D%0A++++//+If+we+try+to+get+%22poneyland%22's+value,+it'll+panic:%0A++++//+println!(%22%7B%7D%22,+map%5B%22poneyland%22%5D);%0A%7D&amp;edition=2021"></a></div>
94 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-OccupiedEntry%3C'_,+K,+V,+A%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.12.0">1.12.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map/entry.rs.html#92-96">Source</a></span><a·href="#impl-Debug-for-OccupiedEntry%3C'_,+K,+V,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;K:·<a·class="trait"·href="../../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,·V:·<a·class="trait"·href="../../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·tit[·...·truncated·by·diffoscope;·len:·1695,·SHA:·d8129f7cebd4982532409b824b2e82c48e1668828cdd68cb8490dd64510a310d·...·]/core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="struct"·href="struct.OccupiedEntry.html"·title="struct·alloc::collections::btree_map::OccupiedEntry">OccupiedEntry</a>&lt;'a,·K,·V,·A&gt;<div·class="where">where94 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-OccupiedEntry%3C'_,+K,+V,+A%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.12.0">1.12.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map/entry.rs.html#92-96">Source</a></span><a·href="#impl-Debug-for-OccupiedEntry%3C'_,+K,+V,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;K:·<a·class="trait"·href="../../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·+·<a·class="trait"·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,·V:·<a·class="trait"·href="../../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::[·...·truncated·by·diffoscope;·len:·1623,·SHA:·42c0b5803b27cd8db1f9f90c621a4b61fee55e170b743ab68bbc75c4d22f983f·...·]/core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="struct"·href="struct.OccupiedEntry.html"·title="struct·alloc::collections::btree_map::OccupiedEntry">OccupiedEntry</a>&lt;'a,·K,·V,·A&gt;<div·class="where">where
95 ····A:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>,</div></h3></section><section·id="impl-RefUnwindSafe-for-OccupiedEntry%3C'a,+K,+V,+A%3E"·class="impl"><a·href="#impl-RefUnwindSafe-for-OccupiedEnt[·...·truncated·by·diffoscope;·len:·144,·SHA:·14a20fd6522538b4fdee911de7dd36946083b0b30509437668c7bea0f230e55f·...·]/core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="struct"·href="struct.OccupiedEntry.html"·title="struct·alloc::collections::btree_map::OccupiedEntry">OccupiedEntry</a>&lt;'a,·K,·V,·A&gt;<div·class="where">where95 ····A:·<a·class="trait"·href="../../../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>,</div></h3></section><section·id="impl-RefUnwindSafe-for-OccupiedEntry%3C'a,+K,+V,+A%3E"·class="impl"><a·href="#impl-RefUnwindSafe-for-OccupiedEntry%3C'a,+K,+V,+A%3E"·cla[·...·truncated·by·diffoscope;·len:·96,·SHA:·42401e34ffb98a655d833d3b7e50895f18f511b1f1c26632f6a00f758ca64099·...·]/core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="struct"·href="struct.OccupiedEntry.html"·title="struct·alloc::collections::btree_map::OccupiedEntry">OccupiedEntry</a>&lt;'a,·K,·V,·A&gt;<div·class="where">where
96 ····A:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,96 ····A:·<a·class="trait"·href="../../../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,
97 ····K:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,97 ····K:·<a·class="trait"·href="../../../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,
98 ····V:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,</div></h3></section><section·id="impl-Send-for-OccupiedEntry%3C'a,+K,+V,+A%3E"·class="impl"><a·href="[·...·truncated·by·diffoscope;·len:·170,·SHA:·e151ee9b7a5b04c4d03bd2de175302a8ddf1b08bb2ed6f01c76b88f0a98f6dea·...·]/core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="struct"·href="struct.OccupiedEntry.html"·title="struct·alloc::collections::btree_map::OccupiedEntry">OccupiedEntry</a>&lt;'a,·K,·V,·A&gt;<div·class="where">where98 ····V:·<a·class="trait"·href="../../../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,</div></h3></section><section·id="impl-Send-for-OccupiedEntry%3C'a,+K,+V,+A%3E"·class="impl"><a·href="#impl-Send-for-OccupiedE[·...·truncated·by·diffoscope;·len:·122,·SHA:·6b83875e2154ad32edd39e44fc446c9afaf3c91b95203fb5ff526f2c79855bac·...·]/core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="struct"·href="struct.OccupiedEntry.html"·title="struct·alloc::collections::btree_map::OccupiedEntry">OccupiedEntry</a>&lt;'a,·K,·V,·A&gt;<div·class="where">where
99 ····A:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>,99 ····A:·<a·class="trait"·href="../../../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>,
100 ····K:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>,100 ····K:·<a·class="trait"·href="../../../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>,
101 ····V:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>,</div></h3></section><section·id="impl-Sync-for-OccupiedEntry%3C'a,+K,+V,+A%3E"·class="impl"><a·href="#impl-Sync-for-OccupiedEntry%3C'a,+K,+V,+A%3E"·cla[·...·truncated·by·diffoscope;·len:·120,·SHA:·e02b29cc64d8c731dbe94dc046c706cbdc1375256627f8cff92f1a4cd474f34f·...·]/core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="struct"·href="struct.OccupiedEntry.html"·title="struct·alloc::collections::btree_map::OccupiedEntry">OccupiedEntry</a>&lt;'a,·K,·V,·A&gt;<div·class="where">where101 ····V:·<a·class="trait"·href="../../../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>,</div></h3></section><section·id="impl-Sync-for-OccupiedEntry%3C'a,+K,+V,+A%3E"·class="impl"><a·href="#impl-Sync-for-OccupiedEntry%3C'a,+K,+V,+A%3E"·class="anchor">§</a><h3·cla[·...·truncated·by·diffoscope;·len:·72,·SHA:·dd7c7968af42dd4c879b06490dee09272c561e1323c2a15c1be31d901d52a684·...·]/core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="struct"·href="struct.OccupiedEntry.html"·title="struct·alloc::collections::btree_map::OccupiedEntry">OccupiedEntry</a>&lt;'a,·K,·V,·A&gt;<div·class="where">where
102 ····A:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>,102 ····A:·<a·class="trait"·href="../../../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>,
103 ····K:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>,103 ····K:·<a·class="trait"·href="../../../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>,
104 ····V:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>,</div></h3></section><section·id="impl-Unpin-for-OccupiedEntry%3C'a,+K,+V,+A%3E"·class="impl"><a·href="#impl-Unpin-for-OccupiedEntry%3C'a,+K,+V,+A%3E"·c[·...·truncated·by·diffoscope;·len:·122,·SHA:·2e268f638bd6b58d8ee273fa0ac2b6ecf73e95611c0a9130781f9efef779368c·...·]/core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="struct"·href="struct.OccupiedEntry.html"·title="struct·alloc::collections::btree_map::OccupiedEntry">OccupiedEntry</a>&lt;'a,·K,·V,·A&gt;<div·class="where">where104 ····V:·<a·class="trait"·href="../../../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>,</div></h3></section><section·id="impl-Unpin-for-OccupiedEntry%3C'a,+K,+V,+A%3E"·class="impl"><a·href="#impl-Unpin-for-OccupiedEntry%3C'a,+K,+V,+A%3E"·class="anchor">§</a><h3·c[·...·truncated·by·diffoscope;·len:·74,·SHA:·bc3a8d8f70fe42ea0d6793765629fc11ca4b6c2bfc07332f3276e18e2b9eb1c2·...·]/core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="struct"·href="struct.OccupiedEntry.html"·title="struct·alloc::collections::btree_map::OccupiedEntry">OccupiedEntry</a>&lt;'a,·K,·V,·A&gt;<div·class="where">where
105 ····A:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>,</div></h3></section><section·id="impl-UnwindSafe-for-OccupiedEntry%3C'a,+K,+V,+A%3E"·class="impl"><a·href="#impl-UnwindSafe-for-OccupiedEntry%3C'a,+[·...·truncated·by·diffoscope;·len:·1038,·SHA:·c6a9cab5f656e6101208fe84dbc69d8fc9e800056fe4af4f1537e49a450278fb·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where105 ····A:·<a·class="trait"·href="../../../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>,</div></h3></section><section·id="impl-UnwindSafe-for-OccupiedEntry%3C'a,+K,+V,+A%3E"·class="impl"><a·href="#impl-UnwindSafe-for-OccupiedEntry%3C'a,+K,+V,+A%3E"·class="ancho[·...·truncated·by·diffoscope;·len:·942,·SHA:·46d6fb67d6ff950fa19d61e8437611bcc9403a0ad31640b5b2220ff5f4805599·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where
106 ····T:·'static·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method[·...·truncated·by·diffoscope;·len:·834,·SHA:·47dfc2aa0101a4103e2a94c1f971c559790d87a62d58631fd2bfed98e6616a34·...·]/src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where106 ····T:·'static·+·?<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="s[·...·truncated·by·diffoscope;·len:·690,·SHA:·5140301cd9ff79a41eb9c4e21645354b7b39f4611f9b3646b7c859a62ac61067·...·]/src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where
107 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·[·...·truncated·by·diffoscope;·len:·743,·SHA:·b1db3ba49d399b0b1340fa997418ee1ae0ece93cc3579963c53bf7040ec0ded6·...·]/src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.BorrowMut.html"·title="trait·alloc::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where107 ····T:·?<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="sr[·...·truncated·by·diffoscope;·len:·647,·SHA:·eced384f314b303c18919389c5abe4a96aec1091fccffab1a095e21ec4389338·...·]/src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.BorrowMut.html"·title="trait·alloc::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where
108 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="met[·...·truncated·by·diffoscope;·len:·1422,·SHA:·3b5041f32ed902526095ebde8745452b32cbfac2cd9503735eec716deff7280f·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>108 ····T:·?<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class[·...·truncated·by·diffoscope;·len:·1254,·SHA:·7fcbbe8bd9862b59809c60d05e5f59904ccadf8a3a9f11da30f9fcc6b839c5b3·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>
109 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where109 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where
110 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="m[·...·truncated·by·diffoscope;·len:·237,·SHA:·98603c35860102b3af9b5cf27aeabf39e3c03236551986a6ec030817f108d919·...·]/core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>110 ····U:·<a·class="trait"·href="../../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·cla[·...·truncated·by·diffoscope;·len:·165,·SHA:·423a04a226f49c7f9a948f8c413dc8519f4a9a96a55914b6e6a694710d81c0f7·...·]/core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>
111 <p>That·is,·this·conversion·is·whatever·the·implementation·of111 <p>That·is,·this·conversion·is·whatever·the·implementation·of
112 <code><a·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>112 <code><a·href="../../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>
113 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#805-807">Source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where113 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../../src/core/convert/mod.rs.html#805-807">Source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where
114 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="asso[·...·truncated·by·diffoscope;·len:·1973,·SHA:·db4b8407e8e20581ad139aef25a6221a11da0f5f18d6aa35aa33eb843f4e1b9f·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where114 ····U:·<a·class="trait"·href="../../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><[·...·truncated·by·diffoscope;·len:·1709,·SHA:·e896b9bb1c9fd7d11ed5b2485b9a6fcb8a8eedc15783c2750df398ecae6b320e·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where
115 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·clas[·...·truncated·by·diffoscope;·len:·1578,·SHA:·998d5af10fd889567cd999d1306bfd16c91134d2238a3c172f1e7fa8ed138c18·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>115 ····U:·<a·class="trait"·href="../../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-[·...·truncated·by·diffoscope;·len:·1338,·SHA:·bf7fc0d673df53e1a193a897ac1592a2d85070ae590f9624c2e5404df56f3bb0·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>
65.0 KB
./usr/share/doc/rust-doc/html/alloc/collections/btree_map/struct.OccupiedError.html
    
Offset 1, 32 lines modifiedOffset 1, 32 lines modified
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="The·error·returned·by·`try_insert`·when·the·key·already·exists."><title>OccupiedError·in·alloc::collections::btree_map·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»      2025-01-07)»   (built»     from» a»source»  tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Occupied<wbr>Error</a></h2><h3><a·href="#fields">Fields</a></h3><ul·class="block·structfield"><li><a·href="#structfield.entry"·title="entry">entry</a></li><li><a·href="#structfield.value"·title="value">value</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Debug-for-OccupiedError%3C'_,+K,+V,+A%3E"·title="Debug">Debug</a></li><li><a·href="#impl-Display-for-OccupiedError%3C'a,+K,+V,+A%3E"·title="Display">Display</a></li><li><a·href="#impl-Error-for-OccupiedError%3C'a,+K,+V%3E"·title="Error">Error</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-UnwindSafe-for-OccupiedError%3C'a,+K,+V,+A%3E"·title="!UnwindSafe">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-OccupiedError%3C'a,+K,+V,+A%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-OccupiedError%3C'a,+K,+V,+A%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-OccupiedError%3C'a,+K,+V,+A%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-OccupiedError%3C'a,+K,+V,+A%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-OccupiedError%3C'a,+K,+V,+A%3E"·title="Unpin">Unpin</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-ToString-for-T"·title="ToString">ToString</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>collections::<wbr>btree_<wbr>map</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">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">btree_map</a></span><h1>Struct·<span·class="struct">OccupiedError</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/alloc/collections/btree/map/entry.rs.html#102-107">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·OccupiedError&lt;'a,·K:·'a,·V:·'a,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·=·<a·class="struct"·href="../../alloc/struct.Global.html"·title="struct·alloc::alloc::Global">Global</a>&gt;·{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="The·error·returned·by·`try_insert`·when·the·key·already·exists."><title>OccupiedError·in·alloc::collections::btree_map·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»      2025-01-07)»   (built»     from» a»source»  tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Occupied<wbr>Error</a></h2><h3><a·href="#fields">Fields</a></h3><ul·class="block·structfield"><li><a·href="#structfield.entry"·title="entry">entry</a></li><li><a·href="#structfield.value"·title="value">value</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Debug-for-OccupiedError%3C'_,+K,+V,+A%3E"·title="Debug">Debug</a></li><li><a·href="#impl-Display-for-OccupiedError%3C'a,+K,+V,+A%3E"·title="Display">Display</a></li><li><a·href="#impl-Error-for-OccupiedError%3C'a,+K,+V%3E"·title="Error">Error</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-UnwindSafe-for-OccupiedError%3C'a,+K,+V,+A%3E"·title="!UnwindSafe">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-OccupiedError%3C'a,+K,+V,+A%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-OccupiedError%3C'a,+K,+V,+A%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-OccupiedError%3C'a,+K,+V,+A%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-OccupiedError%3C'a,+K,+V,+A%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-OccupiedError%3C'a,+K,+V,+A%3E"·title="Unpin">Unpin</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-ToString-for-T"·title="ToString">ToString</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>collections::<wbr>btree_<wbr>map</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">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">btree_map</a></span><h1>Struct·<span·class="struct">OccupiedError</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/alloc/collections/btree/map/entry.rs.html#102-107">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·OccupiedError&lt;'a,·K:·'a,·V:·'a,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·+·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·=·<a·class="struct"·href="../../alloc/struct.Global.html"·title="struct·alloc::alloc::Global">Global</a>&gt;·{
2 ····pub·entry:·<a·class="struct"·href="struct.OccupiedEntry.html"·title="struct·alloc::collections::btree_map::OccupiedEntry">OccupiedEntry</a>&lt;'a,·K,·V,·A&gt;,2 ····pub·entry:·<a·class="struct"·href="struct.OccupiedEntry.html"·title="struct·alloc::collections::btree_map::OccupiedEntry">OccupiedEntry</a>&lt;'a,·K,·V,·A&gt;,
3 ····pub·value:·V,3 ····pub·value:·V,
4 }</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>map_try_insert</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/82766">#82766</a>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>The·error·returned·by·<a·href="struct.BTreeMap.html#method.try_insert"·title="method·alloc::collections::btree_map::BTreeMap::try_insert"><code>try_insert</code></a>·when·the·key·already·exists.</p>4 }</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>map_try_insert</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/82766">#82766</a>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>The·error·returned·by·<a·href="struct.BTreeMap.html#method.try_insert"·title="method·alloc::collections::btree_map::BTreeMap::try_insert"><code>try_insert</code></a>·when·the·key·already·exists.</p>
5 <p>Contains·the·occupied·entry,·and·the·value·that·was·not·inserted.</p>5 <p>Contains·the·occupied·entry,·and·the·value·that·was·not·inserted.</p>
6 </div></details><h2·id="fields"·class="fields·section-header">Fields<a·href="#fields"·class="anchor">§</a></h2><span·id="structfield.entry"·class="structfield·section-header"><a·href="#structfield.entry"·class="anchor·field">§</a><code>entry:·<a·class="struct"·href="struct.OccupiedEntry.html"·title="struct·alloc::collections::btree_map::OccupiedEntry">OccupiedEntry</a>&lt;'a,·K,·V,·A&gt;</code></span><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>map_try_insert</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/82766">#82766</a>)</span></div></span><div·class="docblock"><p>The·entry·in·the·map·that·was·already·occupied.</p>6 </div></details><h2·id="fields"·class="fields·section-header">Fields<a·href="#fields"·class="anchor">§</a></h2><span·id="structfield.entry"·class="structfield·section-header"><a·href="#structfield.entry"·class="anchor·field">§</a><code>entry:·<a·class="struct"·href="struct.OccupiedEntry.html"·title="struct·alloc::collections::btree_map::OccupiedEntry">OccupiedEntry</a>&lt;'a,·K,·V,·A&gt;</code></span><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>map_try_insert</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/82766">#82766</a>)</span></div></span><div·class="docblock"><p>The·entry·in·the·map·that·was·already·occupied.</p>
7 </div><span·id="structfield.value"·class="structfield·section-header"><a·href="#structfield.value"·class="anchor·field">§</a><code>value:·V</code></span><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>map_try_insert</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/82766">#82766</a>)</span></div></span><div·class="docblock"><p>The·value·which·was·not·inserted,·because·the·entry·was·already·occupied.</p>7 </div><span·id="structfield.value"·class="structfield·section-header"><a·href="#structfield.value"·class="anchor·field">§</a><code>value:·V</code></span><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>map_try_insert</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/82766">#82766</a>)</span></div></span><div·class="docblock"><p>The·value·which·was·not·inserted,·because·the·entry·was·already·occupied.</p>
8 </div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-OccupiedError%3C'_,+K,+V,+A%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map/entry.rs.html#110-118">Source</a><a·href="#impl-Debug-for-OccupiedError%3C'_,+K,+V,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;K:·<a·class="trait"·href="../../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,·V:·<a·class="trait"·href="../../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·tit[·...·truncated·by·diffoscope;·len:·8611,·SHA:·3b59fcc1f910d8ba861dca02b5a575bd3926db9f1ae1e464f33f05051a7de91c·...·]/core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="struct"·href="struct.OccupiedError.html"·title="struct·alloc::collections::btree_map::OccupiedError">OccupiedError</a>&lt;'a,·K,·V,·A&gt;<div·class="where">where8 </div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-OccupiedError%3C'_,+K,+V,+A%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map/entry.rs.html#110-118">Source</a><a·href="#impl-Debug-for-OccupiedError%3C'_,+K,+V,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;K:·<a·class="trait"·href="../../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·+·<a·class="trait"·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,·V:·<a·class="trait"·href="../../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::[·...·truncated·by·diffoscope;·len:·8059,·SHA:·4fb20dcb6659826ec451d2d48f3851bfda9548c954068b99e22814c8d3eee7bd·...·]/core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="struct"·href="struct.OccupiedError.html"·title="struct·alloc::collections::btree_map::OccupiedError">OccupiedError</a>&lt;'a,·K,·V,·A&gt;<div·class="where">where
9 ····V:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>,9 ····V:·<a·class="trait"·href="../../../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>,
10 ····A:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>,</div></h3></section><section·id="impl-RefUnwindSafe-for-OccupiedError%3C'a,+K,+V,+A%3E"·class="impl"><a·href="#impl-RefUnwindSafe-for-OccupiedErr[·...·truncated·by·diffoscope;·len:·144,·SHA:·b738d086f6e3bc613e78eef72c6bf2d5b538780d86492af464e99f9cd241b767·...·]/core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="struct"·href="struct.OccupiedError.html"·title="struct·alloc::collections::btree_map::OccupiedError">OccupiedError</a>&lt;'a,·K,·V,·A&gt;<div·class="where">where10 ····A:·<a·class="trait"·href="../../../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>,</div></h3></section><section·id="impl-RefUnwindSafe-for-OccupiedError%3C'a,+K,+V,+A%3E"·class="impl"><a·href="#impl-RefUnwindSafe-for-OccupiedError%3C'a,+K,+V,+A%3E"·cla[·...·truncated·by·diffoscope;·len:·96,·SHA:·42401e34ffb98a655d833d3b7e50895f18f511b1f1c26632f6a00f758ca64099·...·]/core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="struct"·href="struct.OccupiedError.html"·title="struct·alloc::collections::btree_map::OccupiedError">OccupiedError</a>&lt;'a,·K,·V,·A&gt;<div·class="where">where
11 ····V:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,11 ····V:·<a·class="trait"·href="../../../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,
12 ····A:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,12 ····A:·<a·class="trait"·href="../../../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,
13 ····K:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,</div></h3></section><section·id="impl-Send-for-OccupiedError%3C'a,+K,+V,+A%3E"·class="impl"><a·href="[·...·truncated·by·diffoscope;·len:·170,·SHA:·116d1f31f7447e97d028db7066131cca20e6e727253f2207afab6bd13e674ef3·...·]/core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="struct"·href="struct.OccupiedError.html"·title="struct·alloc::collections::btree_map::OccupiedError">OccupiedError</a>&lt;'a,·K,·V,·A&gt;<div·class="where">where13 ····K:·<a·class="trait"·href="../../../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,</div></h3></section><section·id="impl-Send-for-OccupiedError%3C'a,+K,+V,+A%3E"·class="impl"><a·href="#impl-Send-for-OccupiedE[·...·truncated·by·diffoscope;·len:·122,·SHA:·cf7593c190a92ce9ded2ffa60fd8b7b3d9c1ff813037a6e75e2b315ac22df742·...·]/core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="struct"·href="struct.OccupiedError.html"·title="struct·alloc::collections::btree_map::OccupiedError">OccupiedError</a>&lt;'a,·K,·V,·A&gt;<div·class="where">where
14 ····V:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>,14 ····V:·<a·class="trait"·href="../../../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>,
15 ····A:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>,15 ····A:·<a·class="trait"·href="../../../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>,
16 ····K:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>,</div></h3></section><section·id="impl-Sync-for-OccupiedError%3C'a,+K,+V,+A%3E"·class="impl"><a·href="#impl-Sync-for-OccupiedError%3C'a,+K,+V,+A%3E"·cla[·...·truncated·by·diffoscope;·len:·120,·SHA:·e02b29cc64d8c731dbe94dc046c706cbdc1375256627f8cff92f1a4cd474f34f·...·]/core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="struct"·href="struct.OccupiedError.html"·title="struct·alloc::collections::btree_map::OccupiedError">OccupiedError</a>&lt;'a,·K,·V,·A&gt;<div·class="where">where16 ····K:·<a·class="trait"·href="../../../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>,</div></h3></section><section·id="impl-Sync-for-OccupiedError%3C'a,+K,+V,+A%3E"·class="impl"><a·href="#impl-Sync-for-OccupiedError%3C'a,+K,+V,+A%3E"·class="anchor">§</a><h3·cla[·...·truncated·by·diffoscope;·len:·72,·SHA:·dd7c7968af42dd4c879b06490dee09272c561e1323c2a15c1be31d901d52a684·...·]/core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="struct"·href="struct.OccupiedError.html"·title="struct·alloc::collections::btree_map::OccupiedError">OccupiedError</a>&lt;'a,·K,·V,·A&gt;<div·class="where">where
17 ····V:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>,17 ····V:·<a·class="trait"·href="../../../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>,
18 ····A:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>,18 ····A:·<a·class="trait"·href="../../../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>,
19 ····K:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>,</div></h3></section><section·id="impl-Unpin-for-OccupiedError%3C'a,+K,+V,+A%3E"·class="impl"><a·href="#impl-Unpin-for-OccupiedError%3C'a,+K,+V,+A%3E"·c[·...·truncated·by·diffoscope;·len:·122,·SHA:·2e268f638bd6b58d8ee273fa0ac2b6ecf73e95611c0a9130781f9efef779368c·...·]/core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="struct"·href="struct.OccupiedError.html"·title="struct·alloc::collections::btree_map::OccupiedError">OccupiedError</a>&lt;'a,·K,·V,·A&gt;<div·class="where">where19 ····K:·<a·class="trait"·href="../../../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>,</div></h3></section><section·id="impl-Unpin-for-OccupiedError%3C'a,+K,+V,+A%3E"·class="impl"><a·href="#impl-Unpin-for-OccupiedError%3C'a,+K,+V,+A%3E"·class="anchor">§</a><h3·c[·...·truncated·by·diffoscope;·len:·74,·SHA:·bc3a8d8f70fe42ea0d6793765629fc11ca4b6c2bfc07332f3276e18e2b9eb1c2·...·]/core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="struct"·href="struct.OccupiedError.html"·title="struct·alloc::collections::btree_map::OccupiedError">OccupiedError</a>&lt;'a,·K,·V,·A&gt;<div·class="where">where
20 ····V:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>,20 ····V:·<a·class="trait"·href="../../../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>,
21 ····A:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>,</div></h3></section><section·id="impl-UnwindSafe-for-OccupiedError%3C'a,+K,+V,+A%3E"·class="impl"><a·href="#impl-UnwindSafe-for-OccupiedError%3C'a,+[·...·truncated·by·diffoscope;·len:·1038,·SHA:·6948bcb539791b97f6933c00816737b51a69bfc90ed04d6ac0a176dd80152dd8·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where21 ····A:·<a·class="trait"·href="../../../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>,</div></h3></section><section·id="impl-UnwindSafe-for-OccupiedError%3C'a,+K,+V,+A%3E"·class="impl"><a·href="#impl-UnwindSafe-for-OccupiedError%3C'a,+K,+V,+A%3E"·class="ancho[·...·truncated·by·diffoscope;·len:·942,·SHA:·5a5a25c2964f168ebaf0c66abd8a6588aa85f0e0839842480e490e248186f2dc·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where
22 ····T:·'static·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method[·...·truncated·by·diffoscope;·len:·834,·SHA:·47dfc2aa0101a4103e2a94c1f971c559790d87a62d58631fd2bfed98e6616a34·...·]/src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where22 ····T:·'static·+·?<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="s[·...·truncated·by·diffoscope;·len:·690,·SHA:·5140301cd9ff79a41eb9c4e21645354b7b39f4611f9b3646b7c859a62ac61067·...·]/src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where
23 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·[·...·truncated·by·diffoscope;·len:·743,·SHA:·b1db3ba49d399b0b1340fa997418ee1ae0ece93cc3579963c53bf7040ec0ded6·...·]/src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.BorrowMut.html"·title="trait·alloc::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where23 ····T:·?<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="sr[·...·truncated·by·diffoscope;·len:·647,·SHA:·eced384f314b303c18919389c5abe4a96aec1091fccffab1a095e21ec4389338·...·]/src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.BorrowMut.html"·title="trait·alloc::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where
24 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="met[·...·truncated·by·diffoscope;·len:·1422,·SHA:·3b5041f32ed902526095ebde8745452b32cbfac2cd9503735eec716deff7280f·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>24 ····T:·?<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class[·...·truncated·by·diffoscope;·len:·1254,·SHA:·7fcbbe8bd9862b59809c60d05e5f59904ccadf8a3a9f11da30f9fcc6b839c5b3·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>
25 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where25 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where
26 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="m[·...·truncated·by·diffoscope;·len:·237,·SHA:·98603c35860102b3af9b5cf27aeabf39e3c03236551986a6ec030817f108d919·...·]/core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>26 ····U:·<a·class="trait"·href="../../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·cla[·...·truncated·by·diffoscope;·len:·165,·SHA:·423a04a226f49c7f9a948f8c413dc8519f4a9a96a55914b6e6a694710d81c0f7·...·]/core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>
27 <p>That·is,·this·conversion·is·whatever·the·implementation·of27 <p>That·is,·this·conversion·is·whatever·the·implementation·of
28 <code><a·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>28 <code><a·href="../../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>
29 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToString-for-T"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/string.rs.html#2677-2691">Source</a><a·href="#impl-ToString-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../string/trait.ToString.html"·title="trait·alloc::string::ToString">ToString</a>·for·T<div·class="where">where29 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToString-for-T"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/string.rs.html#2677-2691">Source</a><a·href="#impl-ToString-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../string/trait.ToString.html"·title="trait·alloc::string::ToString">ToString</a>·for·T<div·class="where">where
30 ····T:·<a·class="trait"·href="../../fmt/trait.Display.html"·title="trait·alloc::fmt::Display">Display</a>·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.to_string"·class="meth[·...·truncated·by·diffoscope;·len:·968,·SHA:·2c2df86f2afbfe3d87e77f9ea083b53e69f4a2aa7a69f6f52e9bd51d46379330·...·]/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where30 ····T:·<a·class="trait"·href="../../fmt/trait.Display.html"·title="trait·alloc::fmt::Display">Display</a>·+·?<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.to_string"·class="method·trait-impl"><a·class=[·...·truncated·by·diffoscope;·len:·896,·SHA:·74e477dd3d987253dd459192eab2c0b9b9fbf5c7dd792e4c1319bdb2ca39288a·...·]/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where
31 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="asso[·...·truncated·by·diffoscope;·len:·1973,·SHA:·db4b8407e8e20581ad139aef25a6221a11da0f5f18d6aa35aa33eb843f4e1b9f·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where31 ····U:·<a·class="trait"·href="../../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><[·...·truncated·by·diffoscope;·len:·1709,·SHA:·e896b9bb1c9fd7d11ed5b2485b9a6fcb8a8eedc15783c2750df398ecae6b320e·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where
32 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·clas[·...·truncated·by·diffoscope;·len:·1578,·SHA:·998d5af10fd889567cd999d1306bfd16c91134d2238a3c172f1e7fa8ed138c18·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>32 ····U:·<a·class="trait"·href="../../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-[·...·truncated·by·diffoscope;·len:·1338,·SHA:·bf7fc0d673df53e1a193a897ac1592a2d85070ae590f9624c2e5404df56f3bb0·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>
331 KB
./usr/share/doc/rust-doc/html/alloc/collections/btree_map/struct.Range.html
    
Offset 1, 239 lines modifiedOffset 1, 239 lines modified
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="An·iterator·over·a·sub-range·of·entries·in·a·`BTreeMap`."><title>Range·in·alloc::collections::btree_map·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»     2025-01-07)»  (built»    from»a»       source» tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Range</a></h2><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-Range%3C'_,+K,+V%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-Range%3C'_,+K,+V%3E"·title="Debug">Debug</a></li><li><a·href="#impl-Default-for-Range%3C'_,+K,+V%3E"·title="Default">Default</a></li><li><a·href="#impl-DoubleEndedIterator-for-Range%3C'a,+K,+V%3E"·title="DoubleEndedIterator">DoubleEndedIterator</a></li><li><a·href="#impl-FusedIterator-for-Range%3C'_,+K,+V%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-Range%3C'a,+K,+V%3E"·title="Iterator">Iterator</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-Range%3C'a,+K,+V%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Range%3C'a,+K,+V%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Range%3C'a,+K,+V%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-Range%3C'a,+K,+V%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-Range%3C'a,+K,+V%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Range%3C'a,+K,+V%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>collections::<wbr>btree_<wbr>map</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">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">btree_map</a></span><h1>Struct·<span·class="struct">Range</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map.rs.html#548-550">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·Range&lt;'a,·K:·'a,·V:·'a&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>An·iterator·over·a·sub-range·of·entries·in·a·<code>BTreeMap</code>.</p>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="An·iterator·over·a·sub-range·of·entries·in·a·`BTreeMap`."><title>Range·in·alloc::collections::btree_map·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»     2025-01-07)»  (built»    from»a»       source» tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Range</a></h2><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-Range%3C'_,+K,+V%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-Range%3C'_,+K,+V%3E"·title="Debug">Debug</a></li><li><a·href="#impl-Default-for-Range%3C'_,+K,+V%3E"·title="Default">Default</a></li><li><a·href="#impl-DoubleEndedIterator-for-Range%3C'a,+K,+V%3E"·title="DoubleEndedIterator">DoubleEndedIterator</a></li><li><a·href="#impl-FusedIterator-for-Range%3C'_,+K,+V%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-Range%3C'a,+K,+V%3E"·title="Iterator">Iterator</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-Range%3C'a,+K,+V%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Range%3C'a,+K,+V%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Range%3C'a,+K,+V%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-Range%3C'a,+K,+V%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-Range%3C'a,+K,+V%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Range%3C'a,+K,+V%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>collections::<wbr>btree_<wbr>map</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">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">btree_map</a></span><h1>Struct·<span·class="struct">Range</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map.rs.html#548-550">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·Range&lt;'a,·K:·'a,·V:·'a&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>An·iterator·over·a·sub-range·of·entries·in·a·<code>BTreeMap</code>.</p>
2 <p>This·<code>struct</code>·is·created·by·the·<a·href="struct.BTreeMap.html#method.range"·title="method·alloc::collections::btree_map::BTreeMap::range"><code>range</code></a>·method·on·<a·href="struct.BTreeMap.html"·title="struct·alloc::collections::btree_map::BTreeMap"><code>BTreeMap</code></a>.·See·its2 <p>This·<code>struct</code>·is·created·by·the·<a·href="struct.BTreeMap.html#method.range"·title="method·alloc::collections::btree_map::BTreeMap::range"><code>range</code></a>·method·on·<a·href="struct.BTreeMap.html"·title="struct·alloc::collections::btree_map::BTreeMap"><code>BTreeMap</code></a>.·See·its
3 documentation·for·more.</p>3 documentation·for·more.</p>
4 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-Range%3C'_,+K,+V%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.17.0">1.17.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map.rs.html#2220-2224">Source</a></span><a·href="#impl-Clone-for-Range%3C'_,+K,+V%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;K,·V&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struct"·href="struct.Range.html"·title="struct·alloc::collections::btree_map::Range">Range</a>&lt;'_,·K,·V&gt;</h3></section></summary><d[·...·truncated·by·diffoscope;·len:·4090,·SHA:·eb965427dfbfa0596286811f4ef9739bd0a1fed23b8055273cf7ce86ad2f92ff·...·]/core/default/trait.Default.html#tymethod.default"·class="fn">default</a>()·-&gt;·Self</h4></section></summary><div·class="docblock"><p>Creates·an·empty·<code>btree_map::Range</code>.</p>4 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-Range%3C'_,+K,+V%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.17.0">1.17.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map.rs.html#2220-2224">Source</a></span><a·href="#impl-Clone-for-Range%3C'_,+K,+V%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;K,·V&gt;·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struct"·href="struct.Range.html"·title="struct·alloc::collections::btree_map::Range">Range</a>&lt;'_,·K,·V&gt;</h3></section></summary><div·class="impl-items"><d[·...·truncated·by·diffoscope;·len:·3898,·SHA:·4b5c0af0d28052b4679f9d20ae348ef95d60e3d9f36bd3527766f0d862fcf5c5·...·]/core/default/trait.Default.html#tymethod.default"·class="fn">default</a>()·-&gt;·Self</h4></section></summary><div·class="docblock"><p>Creates·an·empty·<code>btree_map::Range</code>.</p>
  
5 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span>iter:·btree_map::Range&lt;<span·class="lifetime">'_</span>,·u8,·u8&gt;·=·Default::default();5 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span>iter:·btree_map::Range&lt;<span·class="lifetime">'_</span>,·u8,·u8&gt;·=·Default::default();
6 <span·class="macro">assert_eq!</span>(iter.count(),·<span·class="number">0</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::btree_map;%0A++++let+iter:+btree_map::Range%3C'_,+u8,+u8%3E+=+Default::default();%0A++++assert_eq!(iter.count(),+0);%0A%7D&amp;edition=2021"></a></div>6 <span·class="macro">assert_eq!</span>(iter.count(),·<span·class="number">0</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::btree_map;%0A++++let+iter:+btree_map::Range%3C'_,+u8,+u8%3E+=+Default::default();%0A++++assert_eq!(iter.count(),+0);%0A%7D&amp;edition=2021"></a></div>
7 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-DoubleEndedIterator-for-Range%3C'a,+K,+V%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.17.0">1.17.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map.rs.html#2210-2214">Source</a></span><a·href="#impl-DoubleEndedIterator-for-Range%3C'a,+K,+V%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·K,·V&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIterator</a>·for·<a·class="struct"·href="struct.Range.html"·title="struct·alloc::c[·...·truncated·by·diffoscope;·len:·4483,·SHA:·6c6bde959d14c09b8bfce6c97d03f03b141cf771394a3b24a8467398266933a2·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold"·class="fn">try_rfold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where7 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-DoubleEndedIterator-for-Range%3C'a,+K,+V%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.17.0">1.17.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map.rs.html#2210-2214">Source</a></span><a·href="#impl-DoubleEndedIterator-for-Range%3C'a,+K,+V%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·K,·V&gt;·<a·class="trait"·href="../../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIterator</a>·for·<a·class="struct"·href="struct.Range.html"·title="struct·alloc::collections::btree_map::R[·...·truncated·by·diffoscope;·len:·3955,·SHA:·1e13417525d161e04493f7c5468517dd4a92e65fec83488fbe0f6e574407b899·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold"·class="fn">try_rfold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where
8 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,8 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
9 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,9 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
10 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>This·is·the·reverse·version·of·<a·href="https://doc.rust-lang.org/1.8[·...·truncated·by·diffoscope;·len:·3,·SHA:·fbd04e1aae9ce0b11a8946e2c9ac2619f7428a64d32d01eff61d809dcb70ee8e·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·title="method·core::iter::traits::iterator::Iterator::try_fold"><code>Iterator::try_fold()</code></a>:·it·takes10 ····R:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>This·is·the·reverse·version·of·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·title="method·core::iter::traits::iterator::Iterator::try_fold"><code>Iterator::try_fold()</code></a>:·it·takes
11 elements·starting·from·the·back·of·the·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfold"·class="method·trait-impl"><span·clas[·...·truncated·by·diffoscope;·len:·325,·SHA:·7ffdb06a8ab3810207a1c974783822231eaf1d82fd94bcf810dd7b3181149b7b·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold"·class="fn">rfold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where11 elements·starting·from·the·back·of·the·iterator.·<a·href="../../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfold"·class="method·trait-impl"><span·class="rightside"><span·clas[·...·truncated·by·diffoscope;·len:·253,·SHA:·48421497f19ee93d3a7432833660cd659661b35b02b625c6376fc49660f200cf·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold"·class="fn">rfold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where
12 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,12 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
13 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·reduces·the·iterator’s·elements·to·a·single,13 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·reduces·the·iterator’s·elements·to·a·single,
14 final·value,·starting·from·the·back.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfind"·class="method·trait-impl"><span·class="r[·...·truncated·by·diffoscope;·len:·665,·SHA:·fde89feb7c0e70eefa34d688476ca36a70115bec8150dbf9b1a3c359f72dd28d·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where14 final·value,·starting·from·the·back.·<a·href="../../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfind"·class="method·trait-impl"><span·class="rightside"><span·class="s[·...·truncated·by·diffoscope;·len:·545,·SHA:·b420bc934fe1ddfd2fe0958678aa3aba1ce90383b1958958e47e13ae1b40fe25·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
15 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,15 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
16 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·4680,·SHA:·9a3060a106313257c359b917f5a6443566634d470d7cd52ae3e7e048a88502d6·...·]/core/primitive.reference.html">&amp;'a·V</a>)&gt;<div·class="where">where16 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·4152,·SHA:·c5af4b0e11b7c1bcaed879e15aa8a1b200b923d0d31fef295abd628ff75b30cb·...·]/core/primitive.reference.html">&amp;'a·V</a>)&gt;<div·class="where">where
17 ····(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;'a·K</a>,·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;'a·V</a>):·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/cmp/trait[·...·truncated·by·diffoscope;·len:·977,·SHA:·5187458357a3e15c06b6861f65f4c4bac5f46adb89cbebc3d3024452e55759a4·...·]/core/primitive.reference.html">&amp;'a·V</a>)&gt;<div·class="where">where17 ····(<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;'a·K</a>,·<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;'a·V</a>):·<a·class="trait"·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,</div></h4></section></s[·...·truncated·by·diffoscope;·len:·785,·SHA:·7af1e7967207c28ade0e2136f77777d144b95bc768950e3f50c478c8cece0b97·...·]/core/primitive.reference.html">&amp;'a·V</a>)&gt;<div·class="where">where
18 ····(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;'a·K</a>,·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;'a·V</a>):·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/cmp/trait[·...·truncated·by·diffoscope;·len:·785,·SHA:·d386d72b931915a1cf533d6ca1d84b005e63029e9d311e2296923e00fde95441·...·]/core/primitive.usize.html">usize</a>&gt;(18 ····(<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;'a·K</a>,·<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;'a·V</a>):·<a·class="trait"·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,</div></h4></section></s[·...·truncated·by·diffoscope;·len:·617,·SHA:·ed4b96fab139caaaf558d3e8ca6f2f87ae18b91c8addc34c24668a8ce5c67b7c·...·]/core/primitive.usize.html">usize</a>&gt;(
19 ····&amp;mut·self,19 ····&amp;mut·self,
20 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·4f557a9b49151e0be8c52ffd68f1def4469c08164239dc8bef8df2040551c5ef·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where20 )·-&gt;·<a·class="enum"·href="../../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::It[·...·truncated·by·diffoscope;·len:·261,·SHA:·9b488006768a86d05b68f4e1888c750c736264a3a386f1310f1b7e8bfc7d2184·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where
21 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·2082,·SHA:·a83a032e1004fe4c3d3b7e56fd0b204c97eb443397e8e7afb9497dc56a12f3d1·...·]/core/primitive.usize.html">usize</a><div·class="where">where21 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_next[·...·truncated·by·diffoscope;·len:·1818,·SHA:·55a6fc77aaa82da99c864cbd69fd58796c0c24606122111be0ee4ba06dfb97cf·...·]/core/primitive.usize.html">usize</a><div·class="where">where
22 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·counting·the·number·of·iterations·and·returning·it.·<a·href="https://doc.[·...·truncated·by·diffoscope;·len:·3529,·SHA:·36685e4ebfba7d155142dce71eec5dabe5f32dacb8a458b62987f15496f31675·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where22 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·counting·the·number·of·iterations·and·returning·it.·<a·href="../../../core/iter/traits/iterator/t[·...·truncated·by·diffoscope;·len:·3049,·SHA:·36b73bdc1b7eb71bc2ee32534a58bc8374d5403ad0bacb5cbfb32bf6be47bb80·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where
23 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by23 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by
24 the·given·amount·at·each·iteration.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><sp[·...·truncated·by·diffoscope;·len:·842,·SHA:·945c4509a8daf2f8fbccc5c6e5089e225955911e03a3e411f047f96d52d16862·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where24 the·given·amount·at·each·iteration.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="[·...·truncated·by·diffoscope;·len:·698,·SHA:·035d2f4d2e6b01ddf0b424aa6fc3f5919c82f85f857cb9cfa0f54f8357058b90·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
25 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,25 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
26 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·3b5ce32f9d564c3aa7cf2adc7130e674758d0c0f4f1275b4c3b46a74aa802cb3·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where26 ····U:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·[·...·truncated·by·diffoscope;·len:·1137,·SHA:·7916ae3a9b5afad376aafc6d698165147d82613fe975f64423f2367a02a69f6a·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
27 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,27 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
28 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·[·...·truncated·by·diffoscope;·len:·868,·SHA:·abdbf27ccc84063c7040d8fa3da9d0bda5ee310a470ef576e15554aee4bd5d21·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where28 ····U:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·of·pairs.·<a·href="../..[·...·truncated·by·diffoscope;·len:·724,·SHA:·ba31078b5c50fbfc51e53bed6f70aaa6e7e320cfda19949035c71d9363c0d919·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where
29 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,29 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
30 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent30 ····Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent
31 items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="sr[·...·truncated·by·diffoscope;·len:·427,·SHA:·6e82ad4aad49c2165d869fe30d20a968580a973cdb3a7f4c77f49e16dd59393e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where31 items·of·the·original·iterator.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="src·rightside"·href="../..[·...·truncated·by·diffoscope;·len:·331,·SHA:·451e844c9bf5d6d78b9579516e4b9fafb3e84136eaa1c95bead4539370743d7d·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where
32 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,32 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
33 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>33 ····G:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>
34 between·adjacent·items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightsi[·...·truncated·by·diffoscope;·len:·471,·SHA:·ed10488b7b2ccc3e4cc84a9a57a9695a74c1c964962e8d753cbace12f3318a66·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where34 between·adjacent·items·of·the·original·iterator.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·[·...·truncated·by·diffoscope;·len:·375,·SHA:·7bbb71535f348e442b9de05a74f9180c9acec0636566fa2a19ab1dc83779aace·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where
35 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,35 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
36 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each36 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each
37 element.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><spa[·...·truncated·by·diffoscope;·len:·306,·SHA:·61c87c39b177830189b0e4c036d97c40d8b9649d76432c90afb88de59498e8b2·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where37 element.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="S[·...·truncated·by·diffoscope;·len:·234,·SHA:·55463e0fb539911d03265cbd8abb7248189471ea74954185ed77f245746805c2·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where
38 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,38 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
39 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·a65da32c5f5ef8335cb607d3b4ab3f8a25877bc2c2e8b44ca9d575caecd5c8a5·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where39 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·772,·SHA:·de07f629315c257cc96a89e82de6752f002f259b678391b79d5fb48e279e56d2·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where
40 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,40 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
41 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·6d69c85c69fa789be551ea42d95c33c237d12a04ef157f9ddaaead1177f7771e·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element41 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·68,·SHA:·67cf1e2a20410007c7dd6c47c91b1d386626c1bfac5c1116c374da7bbee00d51·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element
42 should·be·yielded.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·489,·SHA:·9bdc636899f4e4e5a26a3a21c9603f72b3fb972865d2f459c38b7e2ac8fed7f1·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where42 should·be·yielded.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·tit[·...·truncated·by·diffoscope;·len:·393,·SHA:·328d72714f754fb793753313f01b087a9fbb30b77a2bcd5749456e1f6fd72710·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where
43 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,43 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
44 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·46dbf841c7aecd3f06bd4c944af21650faeac98c46c515dcfe643302618b1ecd·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where44 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·884,·SHA:·e8a37e28a6bfcb2d58b9ffd389d339c3dece95c14840f28c980a7d7aedcc9a05·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where
45 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as45 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as
46 the·next·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside[·...·truncated·by·diffoscope;·len:·468,·SHA:·52f7ff7f264284c3acc4429ca34d057ded9afa2e3d9d6e07571e252db9a48977·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where46 the·next·value.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside"><span·class="since"·ti[·...·truncated·by·diffoscope;·len:·372,·SHA:·9c08a613d034f21b42b8d196073d0f4d61c81458378e40e77995533a8b460837·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where
47 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·c0180fefce4346b0b4089e5c642521d7716108241c0ce6ec3e910c7a2c7364b4·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods47 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="../../../core/iter/adapters/peekable/struct.Peekable.html#method.peek"·ti[·...·truncated·by·diffoscope;·len:·103,·SHA:·e3683d31746f50069ed604def6201840bce75bbc7c584fac6c3644292077ae8a·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods
48 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See48 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See
49 their·documentation·for·more·information.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightsid[·...·truncated·by·diffoscope;·len:·498,·SHA:·e4a68861585faec6a5032b3b69d6dfb0f2799b5f387a527d9a1365571ed02069·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where49 their·documentation·for·more·information.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightside"><span·class="since"·t[·...·truncated·by·diffoscope;·len:·402,·SHA:·bdba673560d208f968337eb74446ead60d6223b0ca9ec6fbfaeb1a995a7e8001·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where
50 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,50 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
51 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·93281c1f6402743fd61110c11cf676f0f67eddceda801b4eb35e5fe9f85870fd·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where51 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·1042,·SHA:·27d4a79658fb1c97b659bd2520bcebbf5cfcb8a42420a7ecfcbff6f3330fa5e1·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where
52 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,52 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
53 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·f1cdbb1ec64f98fabbe1d89c88b03824310926cd7eaa160953ce2452fc3abb77·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where53 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·890,·SHA:·c43533da7f54bfb6611594b3436645d4d1f8e5339d2d05bf2345e87628499759·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where
54 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,54 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
55 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·f94a0b2c1396b13b89aca7830197ebf19e2c0e5ba536a9cc25b325a481799510·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where55 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·971,·SHA:·1b31b9d1d5061d4ee982a30400139f1d7319412bdea39925e0cc1e8e7cf3d65a·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where
56 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="https://doc.rust-lang[·...·truncated·by·diffoscope;·len:·783,·SHA:·c14217b89e3292a50a09192a8857485891fc769f861e1d1fc4322d04295c86ef·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where56 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="../../../core/iter/traits/iterator/trait.Iter[·...·truncated·by·diffoscope;·len:·639,·SHA:·79c7f7eddc655d329424f08baee8551b7f59cd4dc4b0d6984c5e4f241bcb949b·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where
57 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer57 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer
58 if·the·underlying·iterator·ends·sooner.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·c[·...·truncated·by·diffoscope;·len:·488,·SHA:·76f753d5a273a09a73127631acaa0ee947326a929f33be291018188793e1af56·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where58 if·the·underlying·iterator·ends·sooner.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stab[·...·truncated·by·diffoscope;·len:·392,·SHA:·50ac976eb8bf89726a483af064d5a70c100dedd17d46dc40ac3a82aba51b2082·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where
59 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,59 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
60 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·07d303586c8ad4e0082d5b44bff8eeda03cdb8f4bdbe46489f9232bca5a43ec6·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but60 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/tra[·...·truncated·by·diffoscope;·len:·329,·SHA:·14fc5ef1359fcb2171e21ba65c5f5d8ce11053860ba1d5aa32ddce90a48c2a8c·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but
61 unlike·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·2b20882d9583cee50e0c8b3cf362b27ce0d524db387d4aa4093d622b9370dada·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where61 unlike·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.scan">Rea[·...·truncated·by·diffoscope;·len:·570,·SHA:·3cdbe78e481f63f4d21b2fa94202dad167221af9d6e6f981ccd7a6e524f6157d·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where
62 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,62 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
63 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,63 ····U:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
64 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·933,·SHA:·4af94b75ba5c1e03d2d70590d2fd0706f13b3080fbff0f5b98e7b109048c403d·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where64 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·789,·SHA:·0e36f9aa81931958e65acc9e1b5bf6ad7367dcb7163dcf0af2a043314857a909·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where
65 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,65 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
66 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.I[·...·truncated·by·diffoscope;·len:·968,·SHA:·e5572ed2f3bdf5970d038da608f2f592d945541207c483c257fe5789efba168a·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where66 ····Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::trait[·...·truncated·by·diffoscope;·len:·800,·SHA:·3ea01df21dfaf9ee656fdee6aa789a6ce5be05d17c043433c5ab28da8f6d3241·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where
67 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,67 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
68 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·3013c0e49b0dade37f8ca096eccc5ceeb03fc79b9d320a4c92486d23b88d1009·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over68 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator[·...·truncated·by·diffoscope;·len:·63,·SHA:·8395b60c01b0cde6c3340bd4e6c57cddd02465a19dcf15a8aa5498bd6c8ddc11·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over
69 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,69 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="../../../core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,
70 the·windows·during·mapping·overlap·as·well.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside">[·...·truncated·by·diffoscope;·len:·454,·SHA:·040991f3914479bcc92615de2b81df7363656323622e5aadc964e1a61917d23e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where70 the·windows·during·mapping·overlap·as·well.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside"><span·class="since"·titl[·...·truncated·by·diffoscope;·len:·358,·SHA:·21db4436f04b3d09e41f294c30cd7dea235a4beb9af727cb1f1f065008ad732e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where
71 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="https://doc.rust-lang.org/1.84.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·0e0294a45242d5ce9a3ab8f95d6d410756415291d92baa7d12283ef1b3ecc3a0·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where71 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="../../../core/option/enum.Option.html#variant.None"·title="varia[·...·truncated·by·diffoscope;·len:·697,·SHA:·55b16240a265fa2f73963114b9def4c5703a60d1c3ce047915fff28502588e5b·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where
72 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,72 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
73 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·a8b562f71802a421f4745f7d1fadf4f70d98030c829e70f27b692e7915267027·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where73 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·650,·SHA:·eb862563a2da6881a0f9a31dac8f99f2b47b2c8d3033a0e1bc9ec49ae5500941·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where
74 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="https://doc.rust-lang.org/1.84.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·b3db7d84f203bbc139b1c52912705d19c664dac762898205fce452c9dc3a5318·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where74 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.by[·...·truncated·by·diffoscope;·len:·427,·SHA:·d439202f1a598c30b789e20f3d05a82f531349aa12f3af08cc5c230996ec01a9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where
75 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,75 ····B:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
76 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·431,·SHA:·a705a23f6d810357e7dcac670743884665ffcccfb9b780d0aa03720be8ca5625·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(76 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.collect[·...·truncated·by·diffoscope;·len:·335,·SHA:·d72a986b5d306b2e1ed99e18a16e26fa1b5380448fea76ac3db703052800b629·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(
77 ····&amp;mut·self,77 ····&amp;mut·self,
78 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.h[·...·truncated·by·diffoscope;·len:·479,·SHA:·fa749442d890055f86ceb34f411c84fd7ea08302b336d786d1ca36fe5868b020·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where78 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try[·...·truncated·by·diffoscope;·len:·359,·SHA:·886ccc2fbd37f1e7df4075b80b0bebd3d1a6e997fae2114ca1818fa30fa95d5a·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
79 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,79 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
80 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>, 
81 ····&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang[·...·truncated·by·diffoscope;·len:·449,·SHA:·9ddccfb7bdd27ea692d65fa83daf56e31762d1bec3a502234174b8fa4fb33a98·...·],80 ····Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="[·...·truncated·by·diffoscope;·len:·40,·SHA:·39f6b8b47216936a6251a972a3e72c0459df25c157b8b3990eefb48397aa8303·...·],
 81 ····&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;B&gt;,
82 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/itera[·...·truncated·by·diffoscope;·len:·323,·SHA:·b5c51f161dc9d77fd81d1fd23cc71fbf42ac00f3168cf9e41ebaaa2b6eb25363·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if82 ····B:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·tit[·...·truncated·by·diffoscope;·len:·227,·SHA:·91a843f71f5d4d4bdd2a6f526e4b1ace78ad1c1c0027ff429527a1e3cc1cbb42·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if
83 a·failure·is·encountered.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·ri[·...·truncated·by·diffoscope;·len:·521,·SHA:·6a54376815dab985ec8cc35604d035e98e3003b1563c9b41e70966084505542b·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where83 a·failure·is·encountered.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../../[·...·truncated·by·diffoscope;·len:·401,·SHA:·ed1d0660f20625c1d5231d569dd3e4f1d10332250dcd1a3f5d2e886618e67f5b·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
84 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,84 ····E:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
85 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·975,·SHA:·94f7f970236ba59ba5f1415764a0e3ab2f3093c6b79e76c25c797ac24a3c4d09·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where85 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_coll[·...·truncated·by·diffoscope;·len:·855,·SHA:·7b38a8c237aadc46d5211ff8698af580678e0cbcab757a66d6416b422880dd91·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
86 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,86 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
87 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·b480ec650ba000fe7cb67df58fc0351299638ee3e8f00db18f74ca24d69f9894·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,87 ····B:·<a·class="trait"·href="../../../core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="../../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associa[·...·truncated·by·diffoscope;·len:·23,·SHA:·4417dee5d41246c4acf5419e1bdac3c7d847bd34e3e87738a08734259a3b63da·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
88 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·fdf5a1845f070855ba2cfd0c8c85460ea5cb646c4d3b42a8431bf21489c73701·...·]/core/primitive.usize.html">usize</a><div·class="where">where88 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·827,·SHA:·0237b034801a953ed40ad7c10f9a80d682bdf0a649c6fde9f53efc254cd75fc0·...·]/core/primitive.usize.html">usize</a><div·class="where">where
89 ····T:·'a,89 ····T:·'a,
90 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·1fc250e258e9e42e4fa3e22f86ecd57057e9ff23e47af1aec778076a7a891134·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,90 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="../../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEnd[·...·truncated·by·diffoscope;·len:·60,·SHA:·036db50df43442a72ce04aef94ccf2727352aad0708d71fe0e34c23613b84765·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,
91 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·5846407374f20f525a4a0663ad4488141eafe64513ef82581dc5df5c2d200745·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_partition_in_place</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62543">#62543</a>)</span></div></span><div·class='docblock'>Reorders·the·elements·of·this·iterator·<em>in-place</em>·according·to·the·given·predicate,91 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="../../../core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_partition_in_place</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62543">#62543</a>)</span></div></span><div·class='docblock'>Reorders·the·elements·of·this·iterator·<em>in-place</em>·according·to·the·given·predicate,
92 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.92 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.
93 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.partition_in_place">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_partitioned"·class="method·trait-impl"><a·clas[·...·truncated·by·diffoscope;·len:·431,·SHA:·4aa7d028146c72d45794efc19a376d4bee3b75eda61ff46d969e440b3dbfa1b0·...·]/core/primitive.bool.html">bool</a><div·class="where">where93 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.partition_in_place">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_partitioned"·class="method·trait-impl"><a·class="src·rightside"·href="[·...·truncated·by·diffoscope;·len:·335,·SHA:·252e1c16199fc3c38bc7de8cbda8c9532ab6d581d449c680cd7daf8d61a74aeb·...·]/core/primitive.bool.html">bool</a><div·class="where">where
94 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,94 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
95 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·fcd03e71f79faad6d9b9a12045d59f4dfabc78e5aefebcabc9c1a5be45e31125·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,95 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·63,·SHA:·852041c2de8156fdddf9f71111c5ddf1a6b88aabd8c082f1a254f0b21c18ffa1·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,
96 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><span·class="righ[·...·truncated·by·diffoscope;·len:·319,·SHA:·9b9df13f2f4e5b4dde3908515766e1a474fa30bcb7edc98c15665a016e677c2a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where96 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><span·class="rightside"><span·class="sinc[·...·truncated·by·diffoscope;·len:·247,·SHA:·222a0145d03094cb0b20ca156583afe97e703828a8aa77e37fb7b4661759e2c7·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where
97 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,97 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
98 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,98 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
99 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns99 ····R:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns
100 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rights[·...·truncated·by·diffoscope;·len:·321,·SHA:·619fd774190944998148325de99aaa75de66ce4b7e26579fd342c564923a5652·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where100 successfully,·producing·a·single,·final·value.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"[·...·truncated·by·diffoscope;·len:·249,·SHA:·afbe9e91614278f09851b7c5920ddaf0907a2bf4c310ec39b40084e28959cc77·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where
101 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,101 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
102 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,102 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
103 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the103 ····R:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="../../../core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the
104 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·307,·SHA:·5975144fd8566efa93ad1ccec09297e280924b7372e08681d2103702124e2c52·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where104 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><span·class="rightside"><span·class="since"·tit[·...·truncated·by·diffoscope;·len:·235,·SHA:·da9aac17d9724df2aa434c2d10e1caa010eb4fd7e574e4da4e3d5b689e970097·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where
105 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,105 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
106 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,106 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,
107 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span[·...·truncated·by·diffoscope;·len:·619,·SHA:·8813f54846438870310d5f5dfabd2335a9dbf51e9da2e4cd681bcb6077d39628·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where107 returning·the·final·result.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="St[·...·truncated·by·diffoscope;·len:·499,·SHA:·ff97be2c630acbbbb397aa79317bd89b79955e6735d9da7aea9df48659f94fce·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
108 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,108 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
109 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·084691f7fc4e7f4da7db385127d0ce8d2d52f6740757129a65910c4db0dc180d·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing109 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·256,·SHA:·2fe8ae39f77649fea294c45979f427748b2a9938dfa70e4595ac661d972125b1·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing
110 operation.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·217,·SHA:·447ae00256be3de069c602a6c04889808c883eae6fa349d023f53bdd5570ecae·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(110 operation.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside"·href="../../../src/cor[·...·truncated·by·diffoscope;·len:·145,·SHA:·be4dc63adf8a4e832fd3dbaaabbf45f287388ea2bb17088d40589203a2ec6dfb·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(
111 ····&amp;mut·self,111 ····&amp;mut·self,
112 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·70b2b85cad045ac7addf647e0bd3cd5b2c9ebca5986613ad2b6a9c00e3a1132f·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,112 ····f:·impl·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·68,·SHA:·e7e11f257edcac749a5883ad9a3aa42e6e965be419f967b36caa7afd3b36d7c9·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
113 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·1823533b932e38e3200465d101f10a34421c005018974296350162e4049615ea·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where113 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</[·...·truncated·by·diffoscope;·len:·586,·SHA:·596f94ec7a4c06359aee56ccb8a7138a1ddb94415fafcecac1fc87434b1329a3·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
114 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,114 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
115 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,115 ····R:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
116 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·764ea8f08626b05426a76738d54ebb2d640042494d76cba8c20d868bfdc07a73·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the116 ····&lt;R·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</[·...·truncated·by·diffoscope;·len:·292,·SHA:·2ae73aa9b78f13099a8016e28a473713dcc755cf00fed8895c0c1b027bbcea01·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the
117 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><span·class="rightside"><s[·...·truncated·by·diffoscope;·len:·476,·SHA:·aef721c14147dea2fbec70dcfa76916b3f1273bed8304f4c9db310ca23d1e4b1·...·]/core/primitive.bool.html">bool</a><div·class="where">where117 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title=[·...·truncated·by·diffoscope;·len:·380,·SHA:·1042cdc03eabce3d330853b659f28b8566dd5841790f7f1303f3e326f05efab6·...·]/core/primitive.bool.html">bool</a><div·class="where">where
118 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,118 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
119 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·7c48e62c73a40a5cb5ebbf4a22cd789b342a88ad3d855022191f2bae33c736c6·...·]/core/primitive.bool.html">bool</a><div·class="where">where119 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·850,·SHA:·1b28d9cdfe3ba8dc7eac8cef1bb6549e78768b440ea492c70d80c8c07eae61cb·...·]/core/primitive.bool.html">bool</a><div·class="where">where
120 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,120 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
121 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·673d69ce0c23e24b2546127c463e67cd2a4c0f7be792712e2b42e75427161b75·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where121 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·980,·SHA:·a560c9e639c326a34f124b36f977291532e03ffae190e973674fee7e13b4c842·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
122 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,122 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
123 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·aa5078ff77f5638746395497f8ce92c1b684d342dea851990104d5e9981ab6b0·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where123 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·883,·SHA:·47fb849c20ee0cb36696a24bd285768bd0973774403ae956d2a517cd216452b1·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where
124 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,124 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
125 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·1bd732dff19021a1586bb486282683f5c1bc65d5d514f9e13cc9232b4e94955b·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;,</div></h4></section></summary><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns125 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·58,·SHA:·f6e1e279f463d2adecc4a9316aeab7af85329a84398e722f43ac130647fe78cf·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;,</div></h4></section></summary><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns
Max diff block lines reached; 151047/338948 bytes (44.56%) of diff not shown.
317 KB
./usr/share/doc/rust-doc/html/alloc/collections/btree_map/struct.RangeMut.html
    
Offset 1, 234 lines modifiedOffset 1, 234 lines modified
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="A·mutable·iterator·over·a·sub-range·of·entries·in·a·`BTreeMap`."><title>RangeMut·in·alloc::collections::btree_map·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»    2025-01-07)» (built»   from»       a»      source»tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Range<wbr>Mut</a></h2><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Debug-for-RangeMut%3C'_,+K,+V%3E"·title="Debug">Debug</a></li><li><a·href="#impl-Default-for-RangeMut%3C'_,+K,+V%3E"·title="Default">Default</a></li><li><a·href="#impl-DoubleEndedIterator-for-RangeMut%3C'a,+K,+V%3E"·title="DoubleEndedIterator">DoubleEndedIterator</a></li><li><a·href="#impl-FusedIterator-for-RangeMut%3C'_,+K,+V%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-RangeMut%3C'a,+K,+V%3E"·title="Iterator">Iterator</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-UnwindSafe-for-RangeMut%3C'a,+K,+V%3E"·title="!UnwindSafe">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-RangeMut%3C'a,+K,+V%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-RangeMut%3C'a,+K,+V%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-RangeMut%3C'a,+K,+V%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-RangeMut%3C'a,+K,+V%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-RangeMut%3C'a,+K,+V%3E"·title="Unpin">Unpin</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>collections::<wbr>btree_<wbr>map</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">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">btree_map</a></span><h1>Struct·<span·class="struct">RangeMut</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map.rs.html#567-572">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·RangeMut&lt;'a,·K:·'a,·V:·'a&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>A·mutable·iterator·over·a·sub-range·of·entries·in·a·<code>BTreeMap</code>.</p>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="A·mutable·iterator·over·a·sub-range·of·entries·in·a·`BTreeMap`."><title>RangeMut·in·alloc::collections::btree_map·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»    2025-01-07)» (built»   from»       a»      source»tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Range<wbr>Mut</a></h2><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Debug-for-RangeMut%3C'_,+K,+V%3E"·title="Debug">Debug</a></li><li><a·href="#impl-Default-for-RangeMut%3C'_,+K,+V%3E"·title="Default">Default</a></li><li><a·href="#impl-DoubleEndedIterator-for-RangeMut%3C'a,+K,+V%3E"·title="DoubleEndedIterator">DoubleEndedIterator</a></li><li><a·href="#impl-FusedIterator-for-RangeMut%3C'_,+K,+V%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-RangeMut%3C'a,+K,+V%3E"·title="Iterator">Iterator</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-UnwindSafe-for-RangeMut%3C'a,+K,+V%3E"·title="!UnwindSafe">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-RangeMut%3C'a,+K,+V%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-RangeMut%3C'a,+K,+V%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-RangeMut%3C'a,+K,+V%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-RangeMut%3C'a,+K,+V%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-RangeMut%3C'a,+K,+V%3E"·title="Unpin">Unpin</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>collections::<wbr>btree_<wbr>map</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">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">btree_map</a></span><h1>Struct·<span·class="struct">RangeMut</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map.rs.html#567-572">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·RangeMut&lt;'a,·K:·'a,·V:·'a&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>A·mutable·iterator·over·a·sub-range·of·entries·in·a·<code>BTreeMap</code>.</p>
2 <p>This·<code>struct</code>·is·created·by·the·<a·href="struct.BTreeMap.html#method.range_mut"·title="method·alloc::collections::btree_map::BTreeMap::range_mut"><code>range_mut</code></a>·method·on·<a·href="struct.BTreeMap.html"·title="struct·alloc::collections::btree_map::BTreeMap"><code>BTreeMap</code></a>.·See·its2 <p>This·<code>struct</code>·is·created·by·the·<a·href="struct.BTreeMap.html#method.range_mut"·title="method·alloc::collections::btree_map::BTreeMap::range_mut"><code>range_mut</code></a>·method·on·<a·href="struct.BTreeMap.html"·title="struct·alloc::collections::btree_map::BTreeMap"><code>BTreeMap</code></a>.·See·its
3 documentation·for·more.</p>3 documentation·for·more.</p>
4 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-RangeMut%3C'_,+K,+V%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.17.0">1.17.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map.rs.html#575-580">Source</a></span><a·href="#impl-Debug-for-RangeMut%3C'_,+K,+V%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;K:·<a·class="trait"·href="../../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,·V:·<a·class="trait"·href="../../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>&gt;·<a·class="trait"·href="../../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.RangeMut.html"·title="struct·alloc::collections::btree_map::RangeMut">RangeMut</a>&lt;'_,·K,·V&gt;</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#576-579">Source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="../../fmt/struct.Formatter.html"·title="struct·alloc::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="type"·href="../../fmt/type.Result.html"·title="type·alloc::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../../fmt/trait.Debug.html#tymethod.fmt">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Default-for-RangeMut%3C'_,+K,+V%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.82.0">1.82.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map.rs.html#2032-2043">Source</a></span><a·href="#impl-Default-for-RangeMut%3C'_,+K,+V%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;K,·V&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·for·<a·class="struct"·href="struct.RangeMut.html"·title="struct·alloc::collections::btree_map::RangeMut">RangeMut</a>&lt;'_,·K,·V&gt;</h3></s[·...·truncated·by·diffoscope;·len:·363,·SHA:·ad7567bec2745246b4ce1d5de442ac4e0369f2400a0fcda4e70c025f95f26a54·...·]/core/default/trait.Default.html#tymethod.default"·class="fn">default</a>()·-&gt;·Self</h4></section></summary><div·class="docblock"><p>Creates·an·empty·<code>btree_map::RangeMut</code>.</p>4 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-RangeMut%3C'_,+K,+V%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.17.0">1.17.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map.rs.html#575-580">Source</a></span><a·href="#impl-Debug-for-RangeMut%3C'_,+K,+V%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;K:·<a·class="trait"·href="../../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,·V:·<a·class="trait"·href="../../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>&gt;·<a·class="trait"·href="../../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.RangeMut.html"·title="struct·alloc::collections::btree_map::RangeMut">RangeMut</a>&lt;'_,·K,·V&gt;</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#576-579">Source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="../../fmt/struct.Formatter.html"·title="struct·alloc::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="type"·href="../../fmt/type.Result.html"·title="type·alloc::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../../fmt/trait.Debug.html#tymethod.fmt">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Default-for-RangeMut%3C'_,+K,+V%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.82.0">1.82.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map.rs.html#2032-2043">Source</a></span><a·href="#impl-Default-for-RangeMut%3C'_,+K,+V%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;K,·V&gt;·<a·class="trait"·href="../../../core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·for·<a·class="struct"·href="struct.RangeMut.html"·title="struct·alloc::collections::btree_map::RangeMut">RangeMut</a>&lt;'_,·K,·V&gt;</h3></section></summary><div·cl[·...·truncated·by·diffoscope;·len:·315,·SHA:·cadaf6ddc94f4c68faf47f9a858328c79b76451f99a747d4a35747c66f349811·...·]/core/default/trait.Default.html#tymethod.default"·class="fn">default</a>()·-&gt;·Self</h4></section></summary><div·class="docblock"><p>Creates·an·empty·<code>btree_map::RangeMut</code>.</p>
  
5 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span>iter:·btree_map::RangeMut&lt;<span·class="lifetime">'_</span>,·u8,·u8&gt;·=·Default::default();5 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span>iter:·btree_map::RangeMut&lt;<span·class="lifetime">'_</span>,·u8,·u8&gt;·=·Default::default();
6 <span·class="macro">assert_eq!</span>(iter.count(),·<span·class="number">0</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::btree_map;%0A++++let+iter:+btree_map::RangeMut%3C'_,+u8,+u8%3E+=+Default::default();%0A++++assert_eq!(iter.count(),+0);%0A%7D&amp;edition=2021"></a></div>6 <span·class="macro">assert_eq!</span>(iter.count(),·<span·class="number">0</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::btree_map;%0A++++let+iter:+btree_map::RangeMut%3C'_,+u8,+u8%3E+=+Default::default();%0A++++assert_eq!(iter.count(),+0);%0A%7D&amp;edition=2021"></a></div>
7 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-DoubleEndedIterator-for-RangeMut%3C'a,+K,+V%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.17.0">1.17.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map.rs.html#2254-2258">Source</a></span><a·href="#impl-DoubleEndedIterator-for-RangeMut%3C'a,+K,+V%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·K,·V&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIterator</a>·for·<a·class="struct"·href="struct.RangeMut.html"·title="struct·alloc[·...·truncated·by·diffoscope;·len:·4496,·SHA:·fad05bd1bbfdb1793a45139a7d556cd8b5bbcfcb7dbeabf5cea1f69231743c59·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold"·class="fn">try_rfold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where7 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-DoubleEndedIterator-for-RangeMut%3C'a,+K,+V%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.17.0">1.17.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map.rs.html#2254-2258">Source</a></span><a·href="#impl-DoubleEndedIterator-for-RangeMut%3C'a,+K,+V%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·K,·V&gt;·<a·class="trait"·href="../../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIterator</a>·for·<a·class="struct"·href="struct.RangeMut.html"·title="struct·alloc::collections::btree_map[·...·truncated·by·diffoscope;·len:·3968,·SHA:·618e56f96977ecb0551fb484c778b53be2e3b3d0f4fdc77a16a0bd7df19de8d4·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold"·class="fn">try_rfold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where
8 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,8 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
9 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,9 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
10 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>This·is·the·reverse·version·of·<a·href="https://doc.rust-lang.org/1.8[·...·truncated·by·diffoscope;·len:·3,·SHA:·fbd04e1aae9ce0b11a8946e2c9ac2619f7428a64d32d01eff61d809dcb70ee8e·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·title="method·core::iter::traits::iterator::Iterator::try_fold"><code>Iterator::try_fold()</code></a>:·it·takes10 ····R:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>This·is·the·reverse·version·of·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·title="method·core::iter::traits::iterator::Iterator::try_fold"><code>Iterator::try_fold()</code></a>:·it·takes
11 elements·starting·from·the·back·of·the·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfold"·class="method·trait-impl"><span·clas[·...·truncated·by·diffoscope;·len:·325,·SHA:·7ffdb06a8ab3810207a1c974783822231eaf1d82fd94bcf810dd7b3181149b7b·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold"·class="fn">rfold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where11 elements·starting·from·the·back·of·the·iterator.·<a·href="../../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfold"·class="method·trait-impl"><span·class="rightside"><span·clas[·...·truncated·by·diffoscope;·len:·253,·SHA:·48421497f19ee93d3a7432833660cd659661b35b02b625c6376fc49660f200cf·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold"·class="fn">rfold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where
12 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,12 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
13 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·reduces·the·iterator’s·elements·to·a·single,13 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·reduces·the·iterator’s·elements·to·a·single,
14 final·value,·starting·from·the·back.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfind"·class="method·trait-impl"><span·class="r[·...·truncated·by·diffoscope;·len:·665,·SHA:·fde89feb7c0e70eefa34d688476ca36a70115bec8150dbf9b1a3c359f72dd28d·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where14 final·value,·starting·from·the·back.·<a·href="../../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfind"·class="method·trait-impl"><span·class="rightside"><span·class="s[·...·truncated·by·diffoscope;·len:·545,·SHA:·b420bc934fe1ddfd2fe0958678aa3aba1ce90383b1958958e47e13ae1b40fe25·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
15 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,15 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
16 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·4707,·SHA:·2d7ce975533e3346e50c2c3d4d5dfee099fdfc949a428e7745c7200d300ef8dd·...·]/core/primitive.reference.html">&amp;'a·mut·V</a>)&gt;<div·class="where">where16 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·4179,·SHA:·b81b27fad3daea8cee14936f69f8b7409f61a3b36c445dfea8598ec9c64bc670·...·]/core/primitive.reference.html">&amp;'a·mut·V</a>)&gt;<div·class="where">where
17 ····(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;'a·K</a>,·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;'a·mut·V</a>):·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/cmp/t[·...·truncated·by·diffoscope;·len:·981,·SHA:·a26f28c0984d92ed36de05c4d66af896324e8bbffaff6350c6b2b7b7fa51a6bd·...·]/core/primitive.reference.html">&amp;'a·mut·V</a>)&gt;<div·class="where">where17 ····(<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;'a·K</a>,·<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;'a·mut·V</a>):·<a·class="trait"·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,</div></h4></section[·...·truncated·by·diffoscope;·len:·789,·SHA:·fc8aa504453c44d0ecfd14832622f42010620ba523374881cdd86c199fad4a67·...·]/core/primitive.reference.html">&amp;'a·mut·V</a>)&gt;<div·class="where">where
18 ····(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;'a·K</a>,·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;'a·mut·V</a>):·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/cmp/t[·...·truncated·by·diffoscope;·len:·789,·SHA:·3dd371c469f2de237bee5df30666abba0c3829ada661577cbaabb5598b835788·...·]/core/primitive.usize.html">usize</a>&gt;(18 ····(<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;'a·K</a>,·<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;'a·mut·V</a>):·<a·class="trait"·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,</div></h4></section[·...·truncated·by·diffoscope;·len:·621,·SHA:·88085b3424a54c82e9ad0ad74067c86f11c58e2e905c47bce5ababca43f0a73d·...·]/core/primitive.usize.html">usize</a>&gt;(
19 ····&amp;mut·self,19 ····&amp;mut·self,
20 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·4f557a9b49151e0be8c52ffd68f1def4469c08164239dc8bef8df2040551c5ef·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where20 )·-&gt;·<a·class="enum"·href="../../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::It[·...·truncated·by·diffoscope;·len:·261,·SHA:·9b488006768a86d05b68f4e1888c750c736264a3a386f1310f1b7e8bfc7d2184·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where
21 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·2082,·SHA:·a83a032e1004fe4c3d3b7e56fd0b204c97eb443397e8e7afb9497dc56a12f3d1·...·]/core/primitive.usize.html">usize</a><div·class="where">where21 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_next[·...·truncated·by·diffoscope;·len:·1818,·SHA:·55a6fc77aaa82da99c864cbd69fd58796c0c24606122111be0ee4ba06dfb97cf·...·]/core/primitive.usize.html">usize</a><div·class="where">where
22 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·counting·the·number·of·iterations·and·returning·it.·<a·href="https://doc.[·...·truncated·by·diffoscope;·len:·3529,·SHA:·36685e4ebfba7d155142dce71eec5dabe5f32dacb8a458b62987f15496f31675·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where22 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·counting·the·number·of·iterations·and·returning·it.·<a·href="../../../core/iter/traits/iterator/t[·...·truncated·by·diffoscope;·len:·3049,·SHA:·36b73bdc1b7eb71bc2ee32534a58bc8374d5403ad0bacb5cbfb32bf6be47bb80·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where
23 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by23 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by
24 the·given·amount·at·each·iteration.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><sp[·...·truncated·by·diffoscope;·len:·842,·SHA:·945c4509a8daf2f8fbccc5c6e5089e225955911e03a3e411f047f96d52d16862·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where24 the·given·amount·at·each·iteration.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="[·...·truncated·by·diffoscope;·len:·698,·SHA:·035d2f4d2e6b01ddf0b424aa6fc3f5919c82f85f857cb9cfa0f54f8357058b90·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
25 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,25 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
26 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·3b5ce32f9d564c3aa7cf2adc7130e674758d0c0f4f1275b4c3b46a74aa802cb3·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where26 ····U:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·[·...·truncated·by·diffoscope;·len:·1137,·SHA:·7916ae3a9b5afad376aafc6d698165147d82613fe975f64423f2367a02a69f6a·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
27 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,27 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
28 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·[·...·truncated·by·diffoscope;·len:·868,·SHA:·abdbf27ccc84063c7040d8fa3da9d0bda5ee310a470ef576e15554aee4bd5d21·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where28 ····U:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·of·pairs.·<a·href="../..[·...·truncated·by·diffoscope;·len:·724,·SHA:·ba31078b5c50fbfc51e53bed6f70aaa6e7e320cfda19949035c71d9363c0d919·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where
29 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,29 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
30 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent30 ····Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent
31 items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="sr[·...·truncated·by·diffoscope;·len:·427,·SHA:·6e82ad4aad49c2165d869fe30d20a968580a973cdb3a7f4c77f49e16dd59393e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where31 items·of·the·original·iterator.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="src·rightside"·href="../..[·...·truncated·by·diffoscope;·len:·331,·SHA:·451e844c9bf5d6d78b9579516e4b9fafb3e84136eaa1c95bead4539370743d7d·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where
32 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,32 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
33 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>33 ····G:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>
34 between·adjacent·items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightsi[·...·truncated·by·diffoscope;·len:·471,·SHA:·ed10488b7b2ccc3e4cc84a9a57a9695a74c1c964962e8d753cbace12f3318a66·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where34 between·adjacent·items·of·the·original·iterator.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·[·...·truncated·by·diffoscope;·len:·375,·SHA:·7bbb71535f348e442b9de05a74f9180c9acec0636566fa2a19ab1dc83779aace·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where
35 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,35 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
36 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each36 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each
37 element.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><spa[·...·truncated·by·diffoscope;·len:·306,·SHA:·61c87c39b177830189b0e4c036d97c40d8b9649d76432c90afb88de59498e8b2·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where37 element.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="S[·...·truncated·by·diffoscope;·len:·234,·SHA:·55463e0fb539911d03265cbd8abb7248189471ea74954185ed77f245746805c2·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where
38 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,38 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
39 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·a65da32c5f5ef8335cb607d3b4ab3f8a25877bc2c2e8b44ca9d575caecd5c8a5·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where39 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·772,·SHA:·de07f629315c257cc96a89e82de6752f002f259b678391b79d5fb48e279e56d2·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where
40 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,40 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
41 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·6d69c85c69fa789be551ea42d95c33c237d12a04ef157f9ddaaead1177f7771e·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element41 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·68,·SHA:·67cf1e2a20410007c7dd6c47c91b1d386626c1bfac5c1116c374da7bbee00d51·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element
42 should·be·yielded.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·489,·SHA:·9bdc636899f4e4e5a26a3a21c9603f72b3fb972865d2f459c38b7e2ac8fed7f1·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where42 should·be·yielded.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·tit[·...·truncated·by·diffoscope;·len:·393,·SHA:·328d72714f754fb793753313f01b087a9fbb30b77a2bcd5749456e1f6fd72710·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where
43 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,43 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
44 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·46dbf841c7aecd3f06bd4c944af21650faeac98c46c515dcfe643302618b1ecd·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where44 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·884,·SHA:·e8a37e28a6bfcb2d58b9ffd389d339c3dece95c14840f28c980a7d7aedcc9a05·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where
45 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as45 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as
46 the·next·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside[·...·truncated·by·diffoscope;·len:·468,·SHA:·52f7ff7f264284c3acc4429ca34d057ded9afa2e3d9d6e07571e252db9a48977·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where46 the·next·value.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside"><span·class="since"·ti[·...·truncated·by·diffoscope;·len:·372,·SHA:·9c08a613d034f21b42b8d196073d0f4d61c81458378e40e77995533a8b460837·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where
47 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·c0180fefce4346b0b4089e5c642521d7716108241c0ce6ec3e910c7a2c7364b4·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods47 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="../../../core/iter/adapters/peekable/struct.Peekable.html#method.peek"·ti[·...·truncated·by·diffoscope;·len:·103,·SHA:·e3683d31746f50069ed604def6201840bce75bbc7c584fac6c3644292077ae8a·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods
48 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See48 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See
49 their·documentation·for·more·information.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightsid[·...·truncated·by·diffoscope;·len:·498,·SHA:·e4a68861585faec6a5032b3b69d6dfb0f2799b5f387a527d9a1365571ed02069·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where49 their·documentation·for·more·information.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightside"><span·class="since"·t[·...·truncated·by·diffoscope;·len:·402,·SHA:·bdba673560d208f968337eb74446ead60d6223b0ca9ec6fbfaeb1a995a7e8001·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where
50 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,50 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
51 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·93281c1f6402743fd61110c11cf676f0f67eddceda801b4eb35e5fe9f85870fd·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where51 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·1042,·SHA:·27d4a79658fb1c97b659bd2520bcebbf5cfcb8a42420a7ecfcbff6f3330fa5e1·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where
52 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,52 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
53 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·f1cdbb1ec64f98fabbe1d89c88b03824310926cd7eaa160953ce2452fc3abb77·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where53 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·890,·SHA:·c43533da7f54bfb6611594b3436645d4d1f8e5339d2d05bf2345e87628499759·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where
54 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,54 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
55 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·f94a0b2c1396b13b89aca7830197ebf19e2c0e5ba536a9cc25b325a481799510·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where55 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·971,·SHA:·1b31b9d1d5061d4ee982a30400139f1d7319412bdea39925e0cc1e8e7cf3d65a·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where
56 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="https://doc.rust-lang[·...·truncated·by·diffoscope;·len:·783,·SHA:·c14217b89e3292a50a09192a8857485891fc769f861e1d1fc4322d04295c86ef·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where56 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="../../../core/iter/traits/iterator/trait.Iter[·...·truncated·by·diffoscope;·len:·639,·SHA:·79c7f7eddc655d329424f08baee8551b7f59cd4dc4b0d6984c5e4f241bcb949b·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where
57 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer57 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer
58 if·the·underlying·iterator·ends·sooner.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·c[·...·truncated·by·diffoscope;·len:·488,·SHA:·76f753d5a273a09a73127631acaa0ee947326a929f33be291018188793e1af56·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where58 if·the·underlying·iterator·ends·sooner.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stab[·...·truncated·by·diffoscope;·len:·392,·SHA:·50ac976eb8bf89726a483af064d5a70c100dedd17d46dc40ac3a82aba51b2082·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where
59 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,59 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
60 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·07d303586c8ad4e0082d5b44bff8eeda03cdb8f4bdbe46489f9232bca5a43ec6·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but60 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/tra[·...·truncated·by·diffoscope;·len:·329,·SHA:·14fc5ef1359fcb2171e21ba65c5f5d8ce11053860ba1d5aa32ddce90a48c2a8c·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but
61 unlike·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·2b20882d9583cee50e0c8b3cf362b27ce0d524db387d4aa4093d622b9370dada·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where61 unlike·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.scan">Rea[·...·truncated·by·diffoscope;·len:·570,·SHA:·3cdbe78e481f63f4d21b2fa94202dad167221af9d6e6f981ccd7a6e524f6157d·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where
62 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,62 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
63 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,63 ····U:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
64 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·933,·SHA:·4af94b75ba5c1e03d2d70590d2fd0706f13b3080fbff0f5b98e7b109048c403d·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where64 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·789,·SHA:·0e36f9aa81931958e65acc9e1b5bf6ad7367dcb7163dcf0af2a043314857a909·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where
65 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,65 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
66 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.I[·...·truncated·by·diffoscope;·len:·968,·SHA:·e5572ed2f3bdf5970d038da608f2f592d945541207c483c257fe5789efba168a·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where66 ····Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::trait[·...·truncated·by·diffoscope;·len:·800,·SHA:·3ea01df21dfaf9ee656fdee6aa789a6ce5be05d17c043433c5ab28da8f6d3241·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where
67 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,67 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
68 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·3013c0e49b0dade37f8ca096eccc5ceeb03fc79b9d320a4c92486d23b88d1009·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over68 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator[·...·truncated·by·diffoscope;·len:·63,·SHA:·8395b60c01b0cde6c3340bd4e6c57cddd02465a19dcf15a8aa5498bd6c8ddc11·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over
69 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,69 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="../../../core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,
70 the·windows·during·mapping·overlap·as·well.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside">[·...·truncated·by·diffoscope;·len:·454,·SHA:·040991f3914479bcc92615de2b81df7363656323622e5aadc964e1a61917d23e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where70 the·windows·during·mapping·overlap·as·well.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside"><span·class="since"·titl[·...·truncated·by·diffoscope;·len:·358,·SHA:·21db4436f04b3d09e41f294c30cd7dea235a4beb9af727cb1f1f065008ad732e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where
71 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="https://doc.rust-lang.org/1.84.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·0e0294a45242d5ce9a3ab8f95d6d410756415291d92baa7d12283ef1b3ecc3a0·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where71 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="../../../core/option/enum.Option.html#variant.None"·title="varia[·...·truncated·by·diffoscope;·len:·697,·SHA:·55b16240a265fa2f73963114b9def4c5703a60d1c3ce047915fff28502588e5b·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where
72 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,72 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
73 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·a8b562f71802a421f4745f7d1fadf4f70d98030c829e70f27b692e7915267027·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where73 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·650,·SHA:·eb862563a2da6881a0f9a31dac8f99f2b47b2c8d3033a0e1bc9ec49ae5500941·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where
74 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="https://doc.rust-lang.org/1.84.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·b3db7d84f203bbc139b1c52912705d19c664dac762898205fce452c9dc3a5318·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where74 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.by[·...·truncated·by·diffoscope;·len:·427,·SHA:·d439202f1a598c30b789e20f3d05a82f531349aa12f3af08cc5c230996ec01a9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where
75 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,75 ····B:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
76 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·431,·SHA:·a705a23f6d810357e7dcac670743884665ffcccfb9b780d0aa03720be8ca5625·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(76 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.collect[·...·truncated·by·diffoscope;·len:·335,·SHA:·d72a986b5d306b2e1ed99e18a16e26fa1b5380448fea76ac3db703052800b629·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(
77 ····&amp;mut·self,77 ····&amp;mut·self,
78 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.h[·...·truncated·by·diffoscope;·len:·479,·SHA:·fa749442d890055f86ceb34f411c84fd7ea08302b336d786d1ca36fe5868b020·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where78 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try[·...·truncated·by·diffoscope;·len:·359,·SHA:·886ccc2fbd37f1e7df4075b80b0bebd3d1a6e997fae2114ca1818fa30fa95d5a·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
79 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,79 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
80 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>, 
81 ····&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang[·...·truncated·by·diffoscope;·len:·449,·SHA:·9ddccfb7bdd27ea692d65fa83daf56e31762d1bec3a502234174b8fa4fb33a98·...·],80 ····Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="[·...·truncated·by·diffoscope;·len:·40,·SHA:·39f6b8b47216936a6251a972a3e72c0459df25c157b8b3990eefb48397aa8303·...·],
 81 ····&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;B&gt;,
82 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/itera[·...·truncated·by·diffoscope;·len:·323,·SHA:·b5c51f161dc9d77fd81d1fd23cc71fbf42ac00f3168cf9e41ebaaa2b6eb25363·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if82 ····B:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·tit[·...·truncated·by·diffoscope;·len:·227,·SHA:·91a843f71f5d4d4bdd2a6f526e4b1ace78ad1c1c0027ff429527a1e3cc1cbb42·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if
83 a·failure·is·encountered.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·ri[·...·truncated·by·diffoscope;·len:·521,·SHA:·6a54376815dab985ec8cc35604d035e98e3003b1563c9b41e70966084505542b·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where83 a·failure·is·encountered.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../../[·...·truncated·by·diffoscope;·len:·401,·SHA:·ed1d0660f20625c1d5231d569dd3e4f1d10332250dcd1a3f5d2e886618e67f5b·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
84 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,84 ····E:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
85 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·975,·SHA:·94f7f970236ba59ba5f1415764a0e3ab2f3093c6b79e76c25c797ac24a3c4d09·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where85 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_coll[·...·truncated·by·diffoscope;·len:·855,·SHA:·7b38a8c237aadc46d5211ff8698af580678e0cbcab757a66d6416b422880dd91·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
86 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,86 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
87 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·b480ec650ba000fe7cb67df58fc0351299638ee3e8f00db18f74ca24d69f9894·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,87 ····B:·<a·class="trait"·href="../../../core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="../../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associa[·...·truncated·by·diffoscope;·len:·23,·SHA:·4417dee5d41246c4acf5419e1bdac3c7d847bd34e3e87738a08734259a3b63da·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
88 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·fdf5a1845f070855ba2cfd0c8c85460ea5cb646c4d3b42a8431bf21489c73701·...·]/core/primitive.usize.html">usize</a><div·class="where">where88 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·827,·SHA:·0237b034801a953ed40ad7c10f9a80d682bdf0a649c6fde9f53efc254cd75fc0·...·]/core/primitive.usize.html">usize</a><div·class="where">where
89 ····T:·'a,89 ····T:·'a,
90 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·1fc250e258e9e42e4fa3e22f86ecd57057e9ff23e47af1aec778076a7a891134·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,90 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="../../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEnd[·...·truncated·by·diffoscope;·len:·60,·SHA:·036db50df43442a72ce04aef94ccf2727352aad0708d71fe0e34c23613b84765·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,
91 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·5846407374f20f525a4a0663ad4488141eafe64513ef82581dc5df5c2d200745·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_partition_in_place</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62543">#62543</a>)</span></div></span><div·class='docblock'>Reorders·the·elements·of·this·iterator·<em>in-place</em>·according·to·the·given·predicate,91 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="../../../core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_partition_in_place</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62543">#62543</a>)</span></div></span><div·class='docblock'>Reorders·the·elements·of·this·iterator·<em>in-place</em>·according·to·the·given·predicate,
92 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.92 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.
93 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.partition_in_place">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_partitioned"·class="method·trait-impl"><a·clas[·...·truncated·by·diffoscope;·len:·431,·SHA:·4aa7d028146c72d45794efc19a376d4bee3b75eda61ff46d969e440b3dbfa1b0·...·]/core/primitive.bool.html">bool</a><div·class="where">where93 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.partition_in_place">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_partitioned"·class="method·trait-impl"><a·class="src·rightside"·href="[·...·truncated·by·diffoscope;·len:·335,·SHA:·252e1c16199fc3c38bc7de8cbda8c9532ab6d581d449c680cd7daf8d61a74aeb·...·]/core/primitive.bool.html">bool</a><div·class="where">where
94 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,94 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
95 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·fcd03e71f79faad6d9b9a12045d59f4dfabc78e5aefebcabc9c1a5be45e31125·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,95 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·63,·SHA:·852041c2de8156fdddf9f71111c5ddf1a6b88aabd8c082f1a254f0b21c18ffa1·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,
96 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><span·class="righ[·...·truncated·by·diffoscope;·len:·319,·SHA:·9b9df13f2f4e5b4dde3908515766e1a474fa30bcb7edc98c15665a016e677c2a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where96 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><span·class="rightside"><span·class="sinc[·...·truncated·by·diffoscope;·len:·247,·SHA:·222a0145d03094cb0b20ca156583afe97e703828a8aa77e37fb7b4661759e2c7·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where
97 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,97 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
98 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,98 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
99 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns99 ····R:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns
100 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rights[·...·truncated·by·diffoscope;·len:·321,·SHA:·619fd774190944998148325de99aaa75de66ce4b7e26579fd342c564923a5652·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where100 successfully,·producing·a·single,·final·value.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"[·...·truncated·by·diffoscope;·len:·249,·SHA:·afbe9e91614278f09851b7c5920ddaf0907a2bf4c310ec39b40084e28959cc77·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where
101 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,101 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
102 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,102 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
103 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the103 ····R:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="../../../core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the
104 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·307,·SHA:·5975144fd8566efa93ad1ccec09297e280924b7372e08681d2103702124e2c52·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where104 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><span·class="rightside"><span·class="since"·tit[·...·truncated·by·diffoscope;·len:·235,·SHA:·da9aac17d9724df2aa434c2d10e1caa010eb4fd7e574e4da4e3d5b689e970097·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where
105 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,105 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
106 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,106 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,
107 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span[·...·truncated·by·diffoscope;·len:·619,·SHA:·8813f54846438870310d5f5dfabd2335a9dbf51e9da2e4cd681bcb6077d39628·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where107 returning·the·final·result.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="St[·...·truncated·by·diffoscope;·len:·499,·SHA:·ff97be2c630acbbbb397aa79317bd89b79955e6735d9da7aea9df48659f94fce·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
108 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,108 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
109 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·084691f7fc4e7f4da7db385127d0ce8d2d52f6740757129a65910c4db0dc180d·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing109 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·256,·SHA:·2fe8ae39f77649fea294c45979f427748b2a9938dfa70e4595ac661d972125b1·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing
110 operation.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·217,·SHA:·447ae00256be3de069c602a6c04889808c883eae6fa349d023f53bdd5570ecae·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(110 operation.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside"·href="../../../src/cor[·...·truncated·by·diffoscope;·len:·145,·SHA:·be4dc63adf8a4e832fd3dbaaabbf45f287388ea2bb17088d40589203a2ec6dfb·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(
111 ····&amp;mut·self,111 ····&amp;mut·self,
112 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·70b2b85cad045ac7addf647e0bd3cd5b2c9ebca5986613ad2b6a9c00e3a1132f·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,112 ····f:·impl·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·68,·SHA:·e7e11f257edcac749a5883ad9a3aa42e6e965be419f967b36caa7afd3b36d7c9·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
113 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·1823533b932e38e3200465d101f10a34421c005018974296350162e4049615ea·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where113 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</[·...·truncated·by·diffoscope;·len:·586,·SHA:·596f94ec7a4c06359aee56ccb8a7138a1ddb94415fafcecac1fc87434b1329a3·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
114 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,114 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
115 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,115 ····R:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
116 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·764ea8f08626b05426a76738d54ebb2d640042494d76cba8c20d868bfdc07a73·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the116 ····&lt;R·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</[·...·truncated·by·diffoscope;·len:·292,·SHA:·2ae73aa9b78f13099a8016e28a473713dcc755cf00fed8895c0c1b027bbcea01·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the
117 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><span·class="rightside"><s[·...·truncated·by·diffoscope;·len:·476,·SHA:·aef721c14147dea2fbec70dcfa76916b3f1273bed8304f4c9db310ca23d1e4b1·...·]/core/primitive.bool.html">bool</a><div·class="where">where117 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title=[·...·truncated·by·diffoscope;·len:·380,·SHA:·1042cdc03eabce3d330853b659f28b8566dd5841790f7f1303f3e326f05efab6·...·]/core/primitive.bool.html">bool</a><div·class="where">where
118 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,118 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
119 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·7c48e62c73a40a5cb5ebbf4a22cd789b342a88ad3d855022191f2bae33c736c6·...·]/core/primitive.bool.html">bool</a><div·class="where">where119 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·850,·SHA:·1b28d9cdfe3ba8dc7eac8cef1bb6549e78768b440ea492c70d80c8c07eae61cb·...·]/core/primitive.bool.html">bool</a><div·class="where">where
120 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,120 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
121 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·673d69ce0c23e24b2546127c463e67cd2a4c0f7be792712e2b42e75427161b75·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where121 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·980,·SHA:·a560c9e639c326a34f124b36f977291532e03ffae190e973674fee7e13b4c842·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
122 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,122 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
123 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·aa5078ff77f5638746395497f8ce92c1b684d342dea851990104d5e9981ab6b0·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where123 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·883,·SHA:·47fb849c20ee0cb36696a24bd285768bd0973774403ae956d2a517cd216452b1·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where
124 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,124 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
125 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·1bd732dff19021a1586bb486282683f5c1bc65d5d514f9e13cc9232b4e94955b·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;,</div></h4></section></summary><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns125 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·58,·SHA:·f6e1e279f463d2adecc4a9316aeab7af85329a84398e722f43ac130647fe78cf·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;,</div></h4></section></summary><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns
Max diff block lines reached; 140145/324062 bytes (43.25%) of diff not shown.
69.0 KB
./usr/share/doc/rust-doc/html/alloc/collections/btree_map/struct.UnorderedKeyError.html
    
Offset 1, 18 lines modifiedOffset 1, 18 lines modified
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="Error·type·returned·by·`CursorMut::insert_before`·and·`CursorMut::insert_after`·if·the·key·being·inserted·is·not·properly·ordered·with·regards·to·adjacent·keys."><title>UnorderedKeyError·in·alloc::collections::btree_map·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»    2025-01-07)» (built»   from»       a»      source»tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Unordered<wbr>KeyError</a></h2><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-UnorderedKeyError"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-UnorderedKeyError"·title="Debug">Debug</a></li><li><a·href="#impl-Display-for-UnorderedKeyError"·title="Display">Display</a></li><li><a·href="#impl-Eq-for-UnorderedKeyError"·title="Eq">Eq</a></li><li><a·href="#impl-Error-for-UnorderedKeyError"·title="Error">Error</a></li><li><a·href="#impl-PartialEq-for-UnorderedKeyError"·title="PartialEq">PartialEq</a></li><li><a·href="#impl-StructuralPartialEq-for-UnorderedKeyError"·title="StructuralPartialEq">StructuralPartialEq</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-UnorderedKeyError"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-UnorderedKeyError"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-UnorderedKeyError"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-UnorderedKeyError"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-UnorderedKeyError"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-UnorderedKeyError"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-ToString-for-T"·title="ToString">ToString</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>collections::<wbr>btree_<wbr>map</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">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">btree_map</a></span><h1>Struct·<span·class="struct">UnorderedKeyError</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/alloc/collections/btree/map.rs.html#3438">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·UnorderedKeyError·{}</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>btree_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/107540">#107540</a>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Error·type·returned·by·<a·href="struct.CursorMut.html#method.insert_before"·title="method·alloc::collections::btree_map::CursorMut::insert_before"><code>CursorMut::insert_before</code></a>·and1 <!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="Error·type·returned·by·`CursorMut::insert_before`·and·`CursorMut::insert_after`·if·the·key·being·inserted·is·not·properly·ordered·with·regards·to·adjacent·keys."><title>UnorderedKeyError·in·alloc::collections::btree_map·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»    2025-01-07)» (built»   from»       a»      source»tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Unordered<wbr>KeyError</a></h2><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-UnorderedKeyError"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-UnorderedKeyError"·title="Debug">Debug</a></li><li><a·href="#impl-Display-for-UnorderedKeyError"·title="Display">Display</a></li><li><a·href="#impl-Eq-for-UnorderedKeyError"·title="Eq">Eq</a></li><li><a·href="#impl-Error-for-UnorderedKeyError"·title="Error">Error</a></li><li><a·href="#impl-PartialEq-for-UnorderedKeyError"·title="PartialEq">PartialEq</a></li><li><a·href="#impl-StructuralPartialEq-for-UnorderedKeyError"·title="StructuralPartialEq">StructuralPartialEq</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-UnorderedKeyError"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-UnorderedKeyError"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-UnorderedKeyError"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-UnorderedKeyError"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-UnorderedKeyError"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-UnorderedKeyError"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-ToString-for-T"·title="ToString">ToString</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>collections::<wbr>btree_<wbr>map</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">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">btree_map</a></span><h1>Struct·<span·class="struct">UnorderedKeyError</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/alloc/collections/btree/map.rs.html#3438">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·UnorderedKeyError·{}</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>btree_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/107540">#107540</a>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Error·type·returned·by·<a·href="struct.CursorMut.html#method.insert_before"·title="method·alloc::collections::btree_map::CursorMut::insert_before"><code>CursorMut::insert_before</code></a>·and
2 <a·href="struct.CursorMut.html#method.insert_after"·title="method·alloc::collections::btree_map::CursorMut::insert_after"><code>CursorMut::insert_after</code></a>·if·the·key·being·inserted·is·not·properly2 <a·href="struct.CursorMut.html#method.insert_after"·title="method·alloc::collections::btree_map::CursorMut::insert_after"><code>CursorMut::insert_after</code></a>·if·the·key·being·inserted·is·not·properly
3 ordered·with·regards·to·adjacent·keys.</p>3 ordered·with·regards·to·adjacent·keys.</p>
4 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-UnorderedKeyError"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#3436">Source</a><a·href="#impl-Clone-for-UnorderedKeyError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struct"·href="struct.UnorderedKeyError.html"·title="struct·alloc::collections::btree_map::UnorderedKeyError">UnorderedKeyError</a></h3></[·...·truncated·by·diffoscope;·len:·11030,·SHA:·9905a7e4141f49e48801d5f1309b830ba42405dc2ab337d06e252263f967eba5·...·]/core/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>!=</code>.·The·default·implementation·is·almost·always·sufficient,4 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-UnorderedKeyError"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#3436">Source</a><a·href="#impl-Clone-for-UnorderedKeyError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struct"·href="struct.UnorderedKeyError.html"·title="struct·alloc::collections::btree_map::UnorderedKeyError">UnorderedKeyError</a></h3></section></summary><div·c[·...·truncated·by·diffoscope;·len:·10286,·SHA:·df6e71f64e228d46528f5f7336539945c26b11141a3e1cb35e1477c2ba278741·...·]/core/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>!=</code>.·The·default·implementation·is·almost·always·sufficient,
5 and·should·not·be·overridden·without·very·good·reason.</div></details></div></details><section·id="impl-Eq-for-UnorderedKeyError"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#3436">Source</a><a·href="#impl-Eq-for-UnorderedKeyError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.Eq.html"·title="trait·core::cmp::Eq">Eq</a>·for·<a·class="struct"·href="struct.UnorderedKeyError.html"·title="struct·alloc::collections::btree_map::UnorderedKeyError">UnorderedKeyError</a></h3></section><sect[·...·truncated·by·diffoscope;·len:·4072,·SHA:·d95c9ce017c5436f9164e9f8214130a3c165bcb4db42f16286faaa287765b11e·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where5 and·should·not·be·overridden·without·very·good·reason.</div></details></div></details><section·id="impl-Eq-for-UnorderedKeyError"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#3436">Source</a><a·href="#impl-Eq-for-UnorderedKeyError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../../core/cmp/trait.Eq.html"·title="trait·core::cmp::Eq">Eq</a>·for·<a·class="struct"·href="struct.UnorderedKeyError.html"·title="struct·alloc::collections::btree_map::UnorderedKeyError">UnorderedKeyError</a></h3></section><section·id="impl-StructuralP[·...·truncated·by·diffoscope;·len:·3832,·SHA:·1d0ff37adb1301474094ec481e7b7ca5db02f7dea30ed768d9da9b8139ae0c6c·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where
6 ····T:·'static·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method[·...·truncated·by·diffoscope;·len:·834,·SHA:·47dfc2aa0101a4103e2a94c1f971c559790d87a62d58631fd2bfed98e6616a34·...·]/src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where6 ····T:·'static·+·?<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="s[·...·truncated·by·diffoscope;·len:·690,·SHA:·5140301cd9ff79a41eb9c4e21645354b7b39f4611f9b3646b7c859a62ac61067·...·]/src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where
7 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·[·...·truncated·by·diffoscope;·len:·743,·SHA:·b1db3ba49d399b0b1340fa997418ee1ae0ece93cc3579963c53bf7040ec0ded6·...·]/src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.BorrowMut.html"·title="trait·alloc::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where7 ····T:·?<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="sr[·...·truncated·by·diffoscope;·len:·647,·SHA:·eced384f314b303c18919389c5abe4a96aec1091fccffab1a095e21ec4389338·...·]/src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.BorrowMut.html"·title="trait·alloc::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where
8 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="met[·...·truncated·by·diffoscope;·len:·960,·SHA:·c6354ea8fcf3b570a130235df299ddea9063b0fb7e35c91d7c9308744705dcad·...·]/core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where8 ····T:·?<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class[·...·truncated·by·diffoscope;·len:·840,·SHA:·65730076d1351b96bbc7870dcc45245c8046decde9b269779ff691512c7b6cda·...·]/core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where
9 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="[·...·truncated·by·diffoscope;·len:·1883,·SHA:·e07301fb9e28f950d7450480a6b68014ffcdcc3be12b1adda27936cb1244377e·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>9 ····T:·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·cl[·...·truncated·by·diffoscope;·len:·1643,·SHA:·1eae2ed9452ffcbbe8b3cb569c26d9b61c935793fb647d6b79fd502b505ae03b·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>
10 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where10 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where
11 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="m[·...·truncated·by·diffoscope;·len:·237,·SHA:·98603c35860102b3af9b5cf27aeabf39e3c03236551986a6ec030817f108d919·...·]/core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>11 ····U:·<a·class="trait"·href="../../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·cla[·...·truncated·by·diffoscope;·len:·165,·SHA:·423a04a226f49c7f9a948f8c413dc8519f4a9a96a55914b6e6a694710d81c0f7·...·]/core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>
12 <p>That·is,·this·conversion·is·whatever·the·implementation·of12 <p>That·is,·this·conversion·is·whatever·the·implementation·of
13 <code><a·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>13 <code><a·href="../../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>
14 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/borrow.rs.html#82-94">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where14 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/borrow.rs.html#82-94">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where
15 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·t[·...·truncated·by·diffoscope;·len:·1371,·SHA:·ac6a902143d4c66cbd5b550f09f2d40087fda3f7614581e6d57eee722a148cdb·...·]/core/primitive.reference.html">&amp;mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../../borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToString-for-T"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/string.rs.html#2677-2691">Source</a><a·href="#impl-ToString-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../string/trait.ToString.html"·title="trait·alloc::string::ToString">ToString</a>·for·T<div·class="where">where15 ····T:·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src[·...·truncated·by·diffoscope;·len:·1323,·SHA:·9784fad64d9bb4c5a14202acd9718b1f1e8592d658e25e3084249b2764db53a5·...·]/core/primitive.reference.html">&amp;mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../../borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToString-for-T"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/string.rs.html#2677-2691">Source</a><a·href="#impl-ToString-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../string/trait.ToString.html"·title="trait·alloc::string::ToString">ToString</a>·for·T<div·class="where">where
16 ····T:·<a·class="trait"·href="../../fmt/trait.Display.html"·title="trait·alloc::fmt::Display">Display</a>·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.to_string"·class="meth[·...·truncated·by·diffoscope;·len:·968,·SHA:·2c2df86f2afbfe3d87e77f9ea083b53e69f4a2aa7a69f6f52e9bd51d46379330·...·]/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where16 ····T:·<a·class="trait"·href="../../fmt/trait.Display.html"·title="trait·alloc::fmt::Display">Display</a>·+·?<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.to_string"·class="method·trait-impl"><a·class=[·...·truncated·by·diffoscope;·len:·896,·SHA:·74e477dd3d987253dd459192eab2c0b9b9fbf5c7dd792e4c1319bdb2ca39288a·...·]/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where
17 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="asso[·...·truncated·by·diffoscope;·len:·1973,·SHA:·db4b8407e8e20581ad139aef25a6221a11da0f5f18d6aa35aa33eb843f4e1b9f·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where17 ····U:·<a·class="trait"·href="../../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><[·...·truncated·by·diffoscope;·len:·1709,·SHA:·e896b9bb1c9fd7d11ed5b2485b9a6fcb8a8eedc15783c2750df398ecae6b320e·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where
18 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·clas[·...·truncated·by·diffoscope;·len:·1578,·SHA:·998d5af10fd889567cd999d1306bfd16c91134d2238a3c172f1e7fa8ed138c18·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>18 ····U:·<a·class="trait"·href="../../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-[·...·truncated·by·diffoscope;·len:·1338,·SHA:·bf7fc0d673df53e1a193a897ac1592a2d85070ae590f9624c2e5404df56f3bb0·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>
55.6 KB
./usr/share/doc/rust-doc/html/alloc/collections/btree_map/struct.VacantEntry.html
    
Offset 1, 10 lines modifiedOffset 1, 10 lines modified
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="A·view·into·a·vacant·entry·in·a·`BTreeMap`.·It·is·part·of·the·`Entry`·enum."><title>VacantEntry·in·alloc::collections::btree_map·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»  2025-01-07)»       (built» from»     a»    source»      tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Vacant<wbr>Entry</a></h2><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.insert"·title="insert">insert</a></li><li><a·href="#method.into_key"·title="into_key">into_key</a></li><li><a·href="#method.key"·title="key">key</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Debug-for-VacantEntry%3C'_,+K,+V,+A%3E"·title="Debug">Debug</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-UnwindSafe-for-VacantEntry%3C'a,+K,+V,+A%3E"·title="!UnwindSafe">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-VacantEntry%3C'a,+K,+V,+A%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-VacantEntry%3C'a,+K,+V,+A%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-VacantEntry%3C'a,+K,+V,+A%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-VacantEntry%3C'a,+K,+V,+A%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-VacantEntry%3C'a,+K,+V,+A%3E"·title="Unpin">Unpin</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>collections::<wbr>btree_<wbr>map</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">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">btree_map</a></span><h1>Struct·<span·class="struct">VacantEntry</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map/entry.rs.html#47-63">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·VacantEntry&lt;'a,·K,·V,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·=·<a·class="struct"·href="../../alloc/struct.Global.html"·title="struct·alloc::alloc::Global">Global</a>&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>A·view·into·a·vacant·entry·in·a·<code>BTreeMap</code>.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="A·view·into·a·vacant·entry·in·a·`BTreeMap`.·It·is·part·of·the·`Entry`·enum."><title>VacantEntry·in·alloc::collections::btree_map·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»  2025-01-07)»       (built» from»     a»    source»      tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Vacant<wbr>Entry</a></h2><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.insert"·title="insert">insert</a></li><li><a·href="#method.into_key"·title="into_key">into_key</a></li><li><a·href="#method.key"·title="key">key</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Debug-for-VacantEntry%3C'_,+K,+V,+A%3E"·title="Debug">Debug</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-UnwindSafe-for-VacantEntry%3C'a,+K,+V,+A%3E"·title="!UnwindSafe">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-VacantEntry%3C'a,+K,+V,+A%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-VacantEntry%3C'a,+K,+V,+A%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-VacantEntry%3C'a,+K,+V,+A%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-VacantEntry%3C'a,+K,+V,+A%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-VacantEntry%3C'a,+K,+V,+A%3E"·title="Unpin">Unpin</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>collections::<wbr>btree_<wbr>map</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">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">btree_map</a></span><h1>Struct·<span·class="struct">VacantEntry</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map/entry.rs.html#47-63">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·VacantEntry&lt;'a,·K,·V,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·+·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·=·<a·class="struct"·href="../../alloc/struct.Global.html"·title="struct·alloc::alloc::Global">Global</a>&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>A·view·into·a·vacant·entry·in·a·<code>BTreeMap</code>.
2 It·is·part·of·the·<a·href="enum.Entry.html"·title="enum·alloc::collections::btree_map::Entry"><code>Entry</code></a>·enum.</p>2 It·is·part·of·the·<a·href="enum.Entry.html"·title="enum·alloc::collections::btree_map::Entry"><code>Entry</code></a>·enum.</p>
3 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-VacantEntry%3C'a,+K,+V,+A%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map/entry.rs.html#297-387">Source</a><a·href="#impl-VacantEntry%3C'a,+K,+V,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·K:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,·V,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·+·<a·class="trait"·href="https://doc.rust-lan[·...·truncated·by·diffoscope;·len:·722,·SHA:·b5f23229497254ca443a12ef27755725001d8bfed5f0cc8bb085c9d02a39b87e·...·]/core/primitive.reference.html">&amp;K</a></h4></section></summary><div·class="docblock"><p>Gets·a·reference·to·the·key·that·would·be·used·when·inserting·a·value3 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-VacantEntry%3C'a,+K,+V,+A%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map/entry.rs.html#297-387">Source</a><a·href="#impl-VacantEntry%3C'a,+K,+V,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·K:·<a·class="trait"·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,·V,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·+·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title=[·...·truncated·by·diffoscope;·len:·650,·SHA:·64dacc46c003d8db62875d733fee7abf2c8e0dc42e920b7ee084de98f4ba9469·...·]/core/primitive.reference.html">&amp;K</a></h4></section></summary><div·class="docblock"><p>Gets·a·reference·to·the·key·that·would·be·used·when·inserting·a·value
4 through·the·VacantEntry.</p>4 through·the·VacantEntry.</p>
5 <h5·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h5>5 <h5·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h5>
6 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BTreeMap;6 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BTreeMap;
  
7 <span·class="kw">let·</span><span·class="kw-2">mut·</span>map:·BTreeMap&lt;<span·class="kw-2">&amp;</span>str,·usize&gt;·=·BTreeMap::new();7 <span·class="kw">let·</span><span·class="kw-2">mut·</span>map:·BTreeMap&lt;<span·class="kw-2">&amp;</span>str,·usize&gt;·=·BTreeMap::new();
8 <span·class="macro">assert_eq!</span>(map.entry(<span·class="string">"poneyland"</span>).key(),·<span·class="kw-2">&amp;</span><span·class="string">"poneyland"</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::BTreeMap;%0A++++%0A++++let+mut+map:+BTreeMap%3C%26str,+usize%3E+=+BTreeMap::new();%0A++++assert_eq!(map.entry(%22poneyland%22).key(),+%26%22poneyland%22);%0A%7D&amp;edition=2021"></a></div>8 <span·class="macro">assert_eq!</span>(map.entry(<span·class="string">"poneyland"</span>).key(),·<span·class="kw-2">&amp;</span><span·class="string">"poneyland"</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::BTreeMap;%0A++++%0A++++let+mut+map:+BTreeMap%3C%26str,+usize%3E+=+BTreeMap::new();%0A++++assert_eq!(map.entry(%22poneyland%22).key(),+%26%22poneyland%22);%0A%7D&amp;edition=2021"></a></div>
9 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.into_key"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.12.0">1.12.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map/entry.rs.html#329-331">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.into_key"·class="fn">into_key</a>(self)·-&gt;·K</h4></section></summary><div·class="docblock"><p>Take·ownership·of·the·key.</p>9 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.into_key"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.12.0">1.12.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map/entry.rs.html#329-331">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.into_key"·class="fn">into_key</a>(self)·-&gt;·K</h4></section></summary><div·class="docblock"><p>Take·ownership·of·the·key.</p>
Offset 13, 43 lines modifiedOffset 13, 43 lines modified
13 <span·class="kw">use·</span>std::collections::btree_map::Entry;13 <span·class="kw">use·</span>std::collections::btree_map::Entry;
  
14 <span·class="kw">let·</span><span·class="kw-2">mut·</span>map:·BTreeMap&lt;<span·class="kw-2">&amp;</span>str,·usize&gt;·=·BTreeMap::new();14 <span·class="kw">let·</span><span·class="kw-2">mut·</span>map:·BTreeMap&lt;<span·class="kw-2">&amp;</span>str,·usize&gt;·=·BTreeMap::new();
  
15 <span·class="kw">if·let·</span>Entry::Vacant(v)·=·map.entry(<span·class="string">"poneyland"</span>)·{15 <span·class="kw">if·let·</span>Entry::Vacant(v)·=·map.entry(<span·class="string">"poneyland"</span>)·{
16 ····v.into_key();16 ····v.into_key();
17 }</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::BTreeMap;%0A++++use+std::collections::btree_map::Entry;%0A++++%0A++++let+mut+map:+BTreeMap%3C%26str,+usize%3E+=+BTreeMap::new();%0A++++%0A++++if+let+Entry::Vacant(v)+=+map.entry(%22poneyland%22)+%7B%0A++++++++v.into_key();%0A++++%7D%0A%7D&amp;edition=2021"></a></div>17 }</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::BTreeMap;%0A++++use+std::collections::btree_map::Entry;%0A++++%0A++++let+mut+map:+BTreeMap%3C%26str,+usize%3E+=+BTreeMap::new();%0A++++%0A++++if+let+Entry::Vacant(v)+=+map.entry(%22poneyland%22)+%7B%0A++++++++v.into_key();%0A++++%7D%0A%7D&amp;edition=2021"></a></div>
18 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.insert"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map/entry.rs.html#351-386">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.insert"·class="fn">insert</a>(self,·value:·V)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;'a·mut·V</a></h4></section></summary><div·class="docblock"><p>Sets·the·value·of·the·entry·with·the·<code>VacantEntry</code>’s·key,18 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.insert"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map/entry.rs.html#351-386">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.insert"·class="fn">insert</a>(self,·value:·V)·-&gt;·<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;'a·mut·V</a></h4></section></summary><div·class="docblock"><p>Sets·the·value·of·the·entry·with·the·<code>VacantEntry</code>’s·key,
19 and·returns·a·mutable·reference·to·it.</p>19 and·returns·a·mutable·reference·to·it.</p>
20 <h5·id="examples-2"><a·class="doc-anchor"·href="#examples-2">§</a>Examples</h5>20 <h5·id="examples-2"><a·class="doc-anchor"·href="#examples-2">§</a>Examples</h5>
21 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BTreeMap;21 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BTreeMap;
22 <span·class="kw">use·</span>std::collections::btree_map::Entry;22 <span·class="kw">use·</span>std::collections::btree_map::Entry;
  
23 <span·class="kw">let·</span><span·class="kw-2">mut·</span>map:·BTreeMap&lt;<span·class="kw-2">&amp;</span>str,·u32&gt;·=·BTreeMap::new();23 <span·class="kw">let·</span><span·class="kw-2">mut·</span>map:·BTreeMap&lt;<span·class="kw-2">&amp;</span>str,·u32&gt;·=·BTreeMap::new();
  
24 <span·class="kw">if·let·</span>Entry::Vacant(o)·=·map.entry(<span·class="string">"poneyland"</span>)·{24 <span·class="kw">if·let·</span>Entry::Vacant(o)·=·map.entry(<span·class="string">"poneyland"</span>)·{
25 ····o.insert(<span·class="number">37</span>);25 ····o.insert(<span·class="number">37</span>);
26 }26 }
27 <span·class="macro">assert_eq!</span>(map[<span·class="string">"poneyland"</span>],·<span·class="number">37</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::BTreeMap;%0A++++use+std::collections::btree_map::Entry;%0A++++%0A++++let+mut+map:+BTreeMap%3C%26str,+u32%3E+=+BTreeMap::new();%0A++++%0A++++if+let+Entry::Vacant(o)+=+map.entry(%22poneyland%22)+%7B%0A++++++++o.insert(37);%0A++++%7D%0A++++assert_eq!(map%5B%22poneyland%22%5D,+37);%0A%7D&amp;edition=2021"></a></div>27 <span·class="macro">assert_eq!</span>(map[<span·class="string">"poneyland"</span>],·<span·class="number">37</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::BTreeMap;%0A++++use+std::collections::btree_map::Entry;%0A++++%0A++++let+mut+map:+BTreeMap%3C%26str,+u32%3E+=+BTreeMap::new();%0A++++%0A++++if+let+Entry::Vacant(o)+=+map.entry(%22poneyland%22)+%7B%0A++++++++o.insert(37);%0A++++%7D%0A++++assert_eq!(map%5B%22poneyland%22%5D,+37);%0A%7D&amp;edition=2021"></a></div>
28 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-VacantEntry%3C'_,+K,+V,+A%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.12.0">1.12.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map/entry.rs.html#66-70">Source</a></span><a·href="#impl-Debug-for-VacantEntry%3C'_,+K,+V,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;K:·<a·class="trait"·href="../../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,·V,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·+·<a·class="trait"·href="https://doc.rust-lan[·...·truncated·by·diffoscope;·len:·1591,·SHA:·dc80a045db286972d13a0406c902c663890af579c63f14a15042ccccdda02901·...·]/core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="struct"·href="struct.VacantEntry.html"·title="struct·alloc::collections::btree_map::VacantEntry">VacantEntry</a>&lt;'a,·K,·V,·A&gt;<div·class="where">where28 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-VacantEntry%3C'_,+K,+V,+A%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.12.0">1.12.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map/entry.rs.html#66-70">Source</a></span><a·href="#impl-Debug-for-VacantEntry%3C'_,+K,+V,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;K:·<a·class="trait"·href="../../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·+·<a·class="trait"·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,·V,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·+·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title=[·...·truncated·by·diffoscope;·len:·1519,·SHA:·479277d35d36000aac07346a08924066644144682b1cbf95010a6db67d24e2b4·...·]/core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="struct"·href="struct.VacantEntry.html"·title="struct·alloc::collections::btree_map::VacantEntry">VacantEntry</a>&lt;'a,·K,·V,·A&gt;<div·class="where">where
29 ····K:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>,29 ····K:·<a·class="trait"·href="../../../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>,
30 ····A:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>,</div></h3></section><section·id="impl-RefUnwindSafe-for-VacantEntry%3C'a,+K,+V,+A%3E"·class="impl"><a·href="#impl-RefUnwindSafe-for-VacantEntry%3[·...·truncated·by·diffoscope;·len:·140,·SHA:·52d40bb6e6b57afa119cdab86e1b874dbe88b589a25a4ff7ab2b65a3b4ad4189·...·]/core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="struct"·href="struct.VacantEntry.html"·title="struct·alloc::collections::btree_map::VacantEntry">VacantEntry</a>&lt;'a,·K,·V,·A&gt;<div·class="where">where30 ····A:·<a·class="trait"·href="../../../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>,</div></h3></section><section·id="impl-RefUnwindSafe-for-VacantEntry%3C'a,+K,+V,+A%3E"·class="impl"><a·href="#impl-RefUnwindSafe-for-VacantEntry%3C'a,+K,+V,+A%3E"·class="[·...·truncated·by·diffoscope;·len:·92,·SHA:·98fd77ea49795c9eb191b137eaf7b7180232ce70fc9591eba2166849732d7628·...·]/core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="struct"·href="struct.VacantEntry.html"·title="struct·alloc::collections::btree_map::VacantEntry">VacantEntry</a>&lt;'a,·K,·V,·A&gt;<div·class="where">where
31 ····K:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,31 ····K:·<a·class="trait"·href="../../../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,
32 ····A:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,32 ····A:·<a·class="trait"·href="../../../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,
33 ····V:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,</div></h3></section><section·id="impl-Send-for-VacantEntry%3C'a,+K,+V,+A%3E"·class="impl"><a·href="#i[·...·truncated·by·diffoscope;·len:·166,·SHA:·dfc5e040b2e57cfb75ab4396360ea499eefaf82fcff3092adc9c520212154e2e·...·]/core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="struct"·href="struct.VacantEntry.html"·title="struct·alloc::collections::btree_map::VacantEntry">VacantEntry</a>&lt;'a,·K,·V,·A&gt;<div·class="where">where33 ····V:·<a·class="trait"·href="../../../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,</div></h3></section><section·id="impl-Send-for-VacantEntry%3C'a,+K,+V,+A%3E"·class="impl"><a·href="#impl-Send-for-VacantEntry[·...·truncated·by·diffoscope;·len:·118,·SHA:·f224a095b534429a306be0c977a952184db83c5ce227045edfcfe446fe6d63ac·...·]/core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="struct"·href="struct.VacantEntry.html"·title="struct·alloc::collections::btree_map::VacantEntry">VacantEntry</a>&lt;'a,·K,·V,·A&gt;<div·class="where">where
34 ····K:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>,34 ····K:·<a·class="trait"·href="../../../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>,
35 ····A:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>,35 ····A:·<a·class="trait"·href="../../../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>,
36 ····V:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>,</div></h3></section><section·id="impl-Sync-for-VacantEntry%3C'a,+K,+V,+A%3E"·class="impl"><a·href="#impl-Sync-for-VacantEntry%3C'a,+K,+V,+A%3E"·class="[·...·truncated·by·diffoscope;·len:·116,·SHA:·68e8c6165f5dd97b1156395aa2d34010e3c59f3e92b2945d9243fb16bc5cc211·...·]/core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="struct"·href="struct.VacantEntry.html"·title="struct·alloc::collections::btree_map::VacantEntry">VacantEntry</a>&lt;'a,·K,·V,·A&gt;<div·class="where">where36 ····V:·<a·class="trait"·href="../../../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>,</div></h3></section><section·id="impl-Sync-for-VacantEntry%3C'a,+K,+V,+A%3E"·class="impl"><a·href="#impl-Sync-for-VacantEntry%3C'a,+K,+V,+A%3E"·class="anchor">§</a><h3·class="[·...·truncated·by·diffoscope;·len:·68,·SHA:·ba3b742119aa7b573d18fd2a842962e4aaf801c1a3e33264ba64f778897d8ddd·...·]/core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="struct"·href="struct.VacantEntry.html"·title="struct·alloc::collections::btree_map::VacantEntry">VacantEntry</a>&lt;'a,·K,·V,·A&gt;<div·class="where">where
37 ····K:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>,37 ····K:·<a·class="trait"·href="../../../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>,
38 ····A:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>,38 ····A:·<a·class="trait"·href="../../../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>,
39 ····V:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>,</div></h3></section><section·id="impl-Unpin-for-VacantEntry%3C'a,+K,+V,+A%3E"·class="impl"><a·href="#impl-Unpin-for-VacantEntry%3C'a,+K,+V,+A%3E"·class[·...·truncated·by·diffoscope;·len:·118,·SHA:·3cd7e05edd7f9a6a69c0db1ea6ea38ef06e88875d0e345ba4a9ed1e11079e9b1·...·]/core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="struct"·href="struct.VacantEntry.html"·title="struct·alloc::collections::btree_map::VacantEntry">VacantEntry</a>&lt;'a,·K,·V,·A&gt;<div·class="where">where39 ····V:·<a·class="trait"·href="../../../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>,</div></h3></section><section·id="impl-Unpin-for-VacantEntry%3C'a,+K,+V,+A%3E"·class="impl"><a·href="#impl-Unpin-for-VacantEntry%3C'a,+K,+V,+A%3E"·class="anchor">§</a><h3·class[·...·truncated·by·diffoscope;·len:·70,·SHA:·1d4a50e5392485f165b850bde694706bc91f65fb729d9c60019694520741cc13·...·]/core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="struct"·href="struct.VacantEntry.html"·title="struct·alloc::collections::btree_map::VacantEntry">VacantEntry</a>&lt;'a,·K,·V,·A&gt;<div·class="where">where
40 ····K:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>,40 ····K:·<a·class="trait"·href="../../../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>,
41 ····A:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>,</div></h3></section><section·id="impl-UnwindSafe-for-VacantEntry%3C'a,+K,+V,+A%3E"·class="impl"><a·href="#impl-UnwindSafe-for-VacantEntry%3C'a,+K,+V[·...·truncated·by·diffoscope;·len:·1028,·SHA:·5de0b9b5cd747512510be4fecf2c9609c675c7ab6bf8c5bc1bf73f55bc4ed6b2·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where41 ····A:·<a·class="trait"·href="../../../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>,</div></h3></section><section·id="impl-UnwindSafe-for-VacantEntry%3C'a,+K,+V,+A%3E"·class="impl"><a·href="#impl-UnwindSafe-for-VacantEntry%3C'a,+K,+V,+A%3E"·class="anchor">§[·...·truncated·by·diffoscope;·len:·932,·SHA:·40caf63c04b3a5963e0326e0a44cb65071cb756c458e0e9f314d8e61c961d2ff·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where
42 ····T:·'static·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method[·...·truncated·by·diffoscope;·len:·834,·SHA:·47dfc2aa0101a4103e2a94c1f971c559790d87a62d58631fd2bfed98e6616a34·...·]/src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where42 ····T:·'static·+·?<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="s[·...·truncated·by·diffoscope;·len:·690,·SHA:·5140301cd9ff79a41eb9c4e21645354b7b39f4611f9b3646b7c859a62ac61067·...·]/src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where
43 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·[·...·truncated·by·diffoscope;·len:·743,·SHA:·b1db3ba49d399b0b1340fa997418ee1ae0ece93cc3579963c53bf7040ec0ded6·...·]/src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.BorrowMut.html"·title="trait·alloc::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where43 ····T:·?<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="sr[·...·truncated·by·diffoscope;·len:·647,·SHA:·eced384f314b303c18919389c5abe4a96aec1091fccffab1a095e21ec4389338·...·]/src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.BorrowMut.html"·title="trait·alloc::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where
44 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="met[·...·truncated·by·diffoscope;·len:·1422,·SHA:·3b5041f32ed902526095ebde8745452b32cbfac2cd9503735eec716deff7280f·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>44 ····T:·?<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class[·...·truncated·by·diffoscope;·len:·1254,·SHA:·7fcbbe8bd9862b59809c60d05e5f59904ccadf8a3a9f11da30f9fcc6b839c5b3·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>
45 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where45 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where
46 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="m[·...·truncated·by·diffoscope;·len:·237,·SHA:·98603c35860102b3af9b5cf27aeabf39e3c03236551986a6ec030817f108d919·...·]/core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>46 ····U:·<a·class="trait"·href="../../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·cla[·...·truncated·by·diffoscope;·len:·165,·SHA:·423a04a226f49c7f9a948f8c413dc8519f4a9a96a55914b6e6a694710d81c0f7·...·]/core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>
47 <p>That·is,·this·conversion·is·whatever·the·implementation·of47 <p>That·is,·this·conversion·is·whatever·the·implementation·of
48 <code><a·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>48 <code><a·href="../../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>
49 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#805-807">Source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where49 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../../src/core/convert/mod.rs.html#805-807">Source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where
50 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="asso[·...·truncated·by·diffoscope;·len:·1973,·SHA:·db4b8407e8e20581ad139aef25a6221a11da0f5f18d6aa35aa33eb843f4e1b9f·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where50 ····U:·<a·class="trait"·href="../../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><[·...·truncated·by·diffoscope;·len:·1709,·SHA:·e896b9bb1c9fd7d11ed5b2485b9a6fcb8a8eedc15783c2750df398ecae6b320e·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where
51 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·clas[·...·truncated·by·diffoscope;·len:·1578,·SHA:·998d5af10fd889567cd999d1306bfd16c91134d2238a3c172f1e7fa8ed138c18·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>51 ····U:·<a·class="trait"·href="../../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-[·...·truncated·by·diffoscope;·len:·1338,·SHA:·bf7fc0d673df53e1a193a897ac1592a2d85070ae590f9624c2e5404df56f3bb0·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>
340 KB
./usr/share/doc/rust-doc/html/alloc/collections/btree_map/struct.Values.html
    
Offset 1, 244 lines modifiedOffset 1, 244 lines modified
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="An·iterator·over·the·values·of·a·`BTreeMap`."><title>Values·in·alloc::collections::btree_map·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»      2025-01-07)»   (built»     from» a»source»  tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Values</a></h2><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-Values%3C'_,+K,+V%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-Values%3C'_,+K,+V%3E"·title="Debug">Debug</a></li><li><a·href="#impl-Default-for-Values%3C'_,+K,+V%3E"·title="Default">Default</a></li><li><a·href="#impl-DoubleEndedIterator-for-Values%3C'a,+K,+V%3E"·title="DoubleEndedIterator">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-Values%3C'_,+K,+V%3E"·title="ExactSizeIterator">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-Values%3C'_,+K,+V%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-Values%3C'a,+K,+V%3E"·title="Iterator">Iterator</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-Values%3C'a,+K,+V%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Values%3C'a,+K,+V%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Values%3C'a,+K,+V%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-Values%3C'a,+K,+V%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-Values%3C'a,+K,+V%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Values%3C'a,+K,+V%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>collections::<wbr>btree_<wbr>map</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">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">btree_map</a></span><h1>Struct·<span·class="struct">Values</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map.rs.html#468-470">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·Values&lt;'a,·K,·V&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>An·iterator·over·the·values·of·a·<code>BTreeMap</code>.</p>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="An·iterator·over·the·values·of·a·`BTreeMap`."><title>Values·in·alloc::collections::btree_map·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»      2025-01-07)»   (built»     from» a»source»  tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Values</a></h2><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-Values%3C'_,+K,+V%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-Values%3C'_,+K,+V%3E"·title="Debug">Debug</a></li><li><a·href="#impl-Default-for-Values%3C'_,+K,+V%3E"·title="Default">Default</a></li><li><a·href="#impl-DoubleEndedIterator-for-Values%3C'a,+K,+V%3E"·title="DoubleEndedIterator">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-Values%3C'_,+K,+V%3E"·title="ExactSizeIterator">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-Values%3C'_,+K,+V%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-Values%3C'a,+K,+V%3E"·title="Iterator">Iterator</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-Values%3C'a,+K,+V%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Values%3C'a,+K,+V%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Values%3C'a,+K,+V%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-Values%3C'a,+K,+V%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-Values%3C'a,+K,+V%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Values%3C'a,+K,+V%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>collections::<wbr>btree_<wbr>map</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">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">btree_map</a></span><h1>Struct·<span·class="struct">Values</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map.rs.html#468-470">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·Values&lt;'a,·K,·V&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>An·iterator·over·the·values·of·a·<code>BTreeMap</code>.</p>
2 <p>This·<code>struct</code>·is·created·by·the·<a·href="struct.BTreeMap.html#method.values"·title="method·alloc::collections::btree_map::BTreeMap::values"><code>values</code></a>·method·on·<a·href="struct.BTreeMap.html"·title="struct·alloc::collections::btree_map::BTreeMap"><code>BTreeMap</code></a>.·See·its2 <p>This·<code>struct</code>·is·created·by·the·<a·href="struct.BTreeMap.html#method.values"·title="method·alloc::collections::btree_map::BTreeMap::values"><code>values</code></a>·method·on·<a·href="struct.BTreeMap.html"·title="struct·alloc::collections::btree_map::BTreeMap"><code>BTreeMap</code></a>.·See·its
3 documentation·for·more.</p>3 documentation·for·more.</p>
4 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-Values%3C'_,+K,+V%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map.rs.html#1864-1868">Source</a></span><a·href="#impl-Clone-for-Values%3C'_,+K,+V%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;K,·V&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struct"·href="struct.Values.html"·title="struct·alloc::collections::btree_map::Values">Values</a>&lt;'_,·K,·V&gt;</h3></section></summary[·...·truncated·by·diffoscope;·len:·4009,·SHA:·251281a2a60e045f569aefb357eabe69ee9a5e374313f22b50116fb8ac9f9eed·...·]/core/default/trait.Default.html#tymethod.default"·class="fn">default</a>()·-&gt;·Self</h4></section></summary><div·class="docblock"><p>Creates·an·empty·<code>btree_map::Values</code>.</p>4 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-Values%3C'_,+K,+V%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map.rs.html#1864-1868">Source</a></span><a·href="#impl-Clone-for-Values%3C'_,+K,+V%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;K,·V&gt;·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struct"·href="struct.Values.html"·title="struct·alloc::collections::btree_map::Values">Values</a>&lt;'_,·K,·V&gt;</h3></section></summary><div·class="impl-items"[·...·truncated·by·diffoscope;·len:·3817,·SHA:·683aa6eec889df5480996b8a532ea67d29e9ee8d7f10a35a02a7b277044ab96a·...·]/core/default/trait.Default.html#tymethod.default"·class="fn">default</a>()·-&gt;·Self</h4></section></summary><div·class="docblock"><p>Creates·an·empty·<code>btree_map::Values</code>.</p>
  
5 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span>iter:·btree_map::Values&lt;<span·class="lifetime">'_</span>,·u8,·u8&gt;·=·Default::default();5 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span>iter:·btree_map::Values&lt;<span·class="lifetime">'_</span>,·u8,·u8&gt;·=·Default::default();
6 <span·class="macro">assert_eq!</span>(iter.len(),·<span·class="number">0</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::btree_map;%0A++++let+iter:+btree_map::Values%3C'_,+u8,+u8%3E+=+Default::default();%0A++++assert_eq!(iter.len(),+0);%0A%7D&amp;edition=2021"></a></div>6 <span·class="macro">assert_eq!</span>(iter.len(),·<span·class="number">0</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::btree_map;%0A++++let+iter:+btree_map::Values%3C'_,+u8,+u8%3E+=+Default::default();%0A++++assert_eq!(iter.len(),+0);%0A%7D&amp;edition=2021"></a></div>
7 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-DoubleEndedIterator-for-Values%3C'a,+K,+V%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map.rs.html#1847-1851">Source</a></span><a·href="#impl-DoubleEndedIterator-for-Values%3C'a,+K,+V%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·K,·V&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIterator</a>·for·<a·class="struct"·href="struct.Values.html"·title="struct·alloc::[·...·truncated·by·diffoscope;·len:·4378,·SHA:·f5e7fd91caaf84e467c6987732f4a1a3692e3a276a1d3670d22d0ef903f2cd94·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold"·class="fn">try_rfold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where7 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-DoubleEndedIterator-for-Values%3C'a,+K,+V%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map.rs.html#1847-1851">Source</a></span><a·href="#impl-DoubleEndedIterator-for-Values%3C'a,+K,+V%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·K,·V&gt;·<a·class="trait"·href="../../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIterator</a>·for·<a·class="struct"·href="struct.Values.html"·title="struct·alloc::collections::btree_map::[·...·truncated·by·diffoscope;·len:·3874,·SHA:·be53ab0dbfe1f8a4a6454693fc67fea6094250b667b6c4357df7f9fcfd5cef58·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold"·class="fn">try_rfold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where
8 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,8 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
9 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,9 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
10 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>This·is·the·reverse·version·of·<a·href="https://doc.rust-lang.org/1.8[·...·truncated·by·diffoscope;·len:·3,·SHA:·fbd04e1aae9ce0b11a8946e2c9ac2619f7428a64d32d01eff61d809dcb70ee8e·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·title="method·core::iter::traits::iterator::Iterator::try_fold"><code>Iterator::try_fold()</code></a>:·it·takes10 ····R:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>This·is·the·reverse·version·of·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·title="method·core::iter::traits::iterator::Iterator::try_fold"><code>Iterator::try_fold()</code></a>:·it·takes
11 elements·starting·from·the·back·of·the·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfold"·class="method·trait-impl"><span·clas[·...·truncated·by·diffoscope;·len:·325,·SHA:·7ffdb06a8ab3810207a1c974783822231eaf1d82fd94bcf810dd7b3181149b7b·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold"·class="fn">rfold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where11 elements·starting·from·the·back·of·the·iterator.·<a·href="../../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfold"·class="method·trait-impl"><span·class="rightside"><span·clas[·...·truncated·by·diffoscope;·len:·253,·SHA:·48421497f19ee93d3a7432833660cd659661b35b02b625c6376fc49660f200cf·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold"·class="fn">rfold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where
12 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,12 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
13 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·reduces·the·iterator’s·elements·to·a·single,13 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·reduces·the·iterator’s·elements·to·a·single,
14 final·value,·starting·from·the·back.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfind"·class="method·trait-impl"><span·class="r[·...·truncated·by·diffoscope;·len:·665,·SHA:·fde89feb7c0e70eefa34d688476ca36a70115bec8150dbf9b1a3c359f72dd28d·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where14 final·value,·starting·from·the·back.·<a·href="../../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfind"·class="method·trait-impl"><span·class="rightside"><span·class="s[·...·truncated·by·diffoscope;·len:·545,·SHA:·b420bc934fe1ddfd2fe0958678aa3aba1ce90383b1958958e47e13ae1b40fe25·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
15 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,15 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
16 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·7821,·SHA:·cf2dcbb994bf771aa45962e3c278607402850e4e95fc177274ecf09d3e091bd0·...·]/core/primitive.usize.html">usize</a>&gt;(16 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·7077,·SHA:·c5e35a1172b063e0532d8449e3c61d3e257146ad4ef8ecee27684fe234258837·...·]/core/primitive.usize.html">usize</a>&gt;(
17 ····&amp;mut·self,17 ····&amp;mut·self,
18 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·4f557a9b49151e0be8c52ffd68f1def4469c08164239dc8bef8df2040551c5ef·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where18 )·-&gt;·<a·class="enum"·href="../../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::It[·...·truncated·by·diffoscope;·len:·261,·SHA:·9b488006768a86d05b68f4e1888c750c736264a3a386f1310f1b7e8bfc7d2184·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where
19 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·962,·SHA:·116e4ec2ae3d9655c3d115eaf50f435f5323b4e48b84de734c79d2a09b3c02f2·...·]/core/primitive.usize.html">usize</a><div·class="where">where19 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_next[·...·truncated·by·diffoscope;·len:·842,·SHA:·d8f387888e3ee78f4397f4b1a12eae734e055247e3aa3251433ab8ac1019b31a·...·]/core/primitive.usize.html">usize</a><div·class="where">where
20 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·counting·the·number·of·iterations·and·returning·it.·<a·href="https://doc.[·...·truncated·by·diffoscope;·len:·3529,·SHA:·36685e4ebfba7d155142dce71eec5dabe5f32dacb8a458b62987f15496f31675·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where20 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·counting·the·number·of·iterations·and·returning·it.·<a·href="../../../core/iter/traits/iterator/t[·...·truncated·by·diffoscope;·len:·3049,·SHA:·36b73bdc1b7eb71bc2ee32534a58bc8374d5403ad0bacb5cbfb32bf6be47bb80·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where
21 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by21 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by
22 the·given·amount·at·each·iteration.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><sp[·...·truncated·by·diffoscope;·len:·842,·SHA:·945c4509a8daf2f8fbccc5c6e5089e225955911e03a3e411f047f96d52d16862·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where22 the·given·amount·at·each·iteration.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="[·...·truncated·by·diffoscope;·len:·698,·SHA:·035d2f4d2e6b01ddf0b424aa6fc3f5919c82f85f857cb9cfa0f54f8357058b90·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
23 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,23 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
24 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·3b5ce32f9d564c3aa7cf2adc7130e674758d0c0f4f1275b4c3b46a74aa802cb3·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where24 ····U:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·[·...·truncated·by·diffoscope;·len:·1137,·SHA:·7916ae3a9b5afad376aafc6d698165147d82613fe975f64423f2367a02a69f6a·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
25 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,25 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
26 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·[·...·truncated·by·diffoscope;·len:·868,·SHA:·abdbf27ccc84063c7040d8fa3da9d0bda5ee310a470ef576e15554aee4bd5d21·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where26 ····U:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·of·pairs.·<a·href="../..[·...·truncated·by·diffoscope;·len:·724,·SHA:·ba31078b5c50fbfc51e53bed6f70aaa6e7e320cfda19949035c71d9363c0d919·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where
27 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,27 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
28 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent28 ····Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent
29 items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="sr[·...·truncated·by·diffoscope;·len:·427,·SHA:·6e82ad4aad49c2165d869fe30d20a968580a973cdb3a7f4c77f49e16dd59393e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where29 items·of·the·original·iterator.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="src·rightside"·href="../..[·...·truncated·by·diffoscope;·len:·331,·SHA:·451e844c9bf5d6d78b9579516e4b9fafb3e84136eaa1c95bead4539370743d7d·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where
30 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,30 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
31 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>31 ····G:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>
32 between·adjacent·items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightsi[·...·truncated·by·diffoscope;·len:·471,·SHA:·ed10488b7b2ccc3e4cc84a9a57a9695a74c1c964962e8d753cbace12f3318a66·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where32 between·adjacent·items·of·the·original·iterator.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·[·...·truncated·by·diffoscope;·len:·375,·SHA:·7bbb71535f348e442b9de05a74f9180c9acec0636566fa2a19ab1dc83779aace·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where
33 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,33 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
34 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each34 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each
35 element.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><spa[·...·truncated·by·diffoscope;·len:·306,·SHA:·61c87c39b177830189b0e4c036d97c40d8b9649d76432c90afb88de59498e8b2·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where35 element.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="S[·...·truncated·by·diffoscope;·len:·234,·SHA:·55463e0fb539911d03265cbd8abb7248189471ea74954185ed77f245746805c2·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where
36 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,36 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
37 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·a65da32c5f5ef8335cb607d3b4ab3f8a25877bc2c2e8b44ca9d575caecd5c8a5·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where37 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·772,·SHA:·de07f629315c257cc96a89e82de6752f002f259b678391b79d5fb48e279e56d2·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where
38 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,38 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
39 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·6d69c85c69fa789be551ea42d95c33c237d12a04ef157f9ddaaead1177f7771e·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element39 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·68,·SHA:·67cf1e2a20410007c7dd6c47c91b1d386626c1bfac5c1116c374da7bbee00d51·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element
40 should·be·yielded.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·489,·SHA:·9bdc636899f4e4e5a26a3a21c9603f72b3fb972865d2f459c38b7e2ac8fed7f1·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where40 should·be·yielded.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·tit[·...·truncated·by·diffoscope;·len:·393,·SHA:·328d72714f754fb793753313f01b087a9fbb30b77a2bcd5749456e1f6fd72710·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where
41 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,41 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
42 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·46dbf841c7aecd3f06bd4c944af21650faeac98c46c515dcfe643302618b1ecd·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where42 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·884,·SHA:·e8a37e28a6bfcb2d58b9ffd389d339c3dece95c14840f28c980a7d7aedcc9a05·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where
43 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as43 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as
44 the·next·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside[·...·truncated·by·diffoscope;·len:·468,·SHA:·52f7ff7f264284c3acc4429ca34d057ded9afa2e3d9d6e07571e252db9a48977·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where44 the·next·value.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside"><span·class="since"·ti[·...·truncated·by·diffoscope;·len:·372,·SHA:·9c08a613d034f21b42b8d196073d0f4d61c81458378e40e77995533a8b460837·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where
45 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·c0180fefce4346b0b4089e5c642521d7716108241c0ce6ec3e910c7a2c7364b4·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods45 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="../../../core/iter/adapters/peekable/struct.Peekable.html#method.peek"·ti[·...·truncated·by·diffoscope;·len:·103,·SHA:·e3683d31746f50069ed604def6201840bce75bbc7c584fac6c3644292077ae8a·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods
46 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See46 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See
47 their·documentation·for·more·information.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightsid[·...·truncated·by·diffoscope;·len:·498,·SHA:·e4a68861585faec6a5032b3b69d6dfb0f2799b5f387a527d9a1365571ed02069·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where47 their·documentation·for·more·information.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightside"><span·class="since"·t[·...·truncated·by·diffoscope;·len:·402,·SHA:·bdba673560d208f968337eb74446ead60d6223b0ca9ec6fbfaeb1a995a7e8001·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where
48 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,48 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
49 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·93281c1f6402743fd61110c11cf676f0f67eddceda801b4eb35e5fe9f85870fd·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where49 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·1042,·SHA:·27d4a79658fb1c97b659bd2520bcebbf5cfcb8a42420a7ecfcbff6f3330fa5e1·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where
50 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,50 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
51 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·f1cdbb1ec64f98fabbe1d89c88b03824310926cd7eaa160953ce2452fc3abb77·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where51 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·890,·SHA:·c43533da7f54bfb6611594b3436645d4d1f8e5339d2d05bf2345e87628499759·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where
52 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,52 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
53 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·f94a0b2c1396b13b89aca7830197ebf19e2c0e5ba536a9cc25b325a481799510·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where53 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·971,·SHA:·1b31b9d1d5061d4ee982a30400139f1d7319412bdea39925e0cc1e8e7cf3d65a·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where
54 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="https://doc.rust-lang[·...·truncated·by·diffoscope;·len:·783,·SHA:·c14217b89e3292a50a09192a8857485891fc769f861e1d1fc4322d04295c86ef·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where54 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="../../../core/iter/traits/iterator/trait.Iter[·...·truncated·by·diffoscope;·len:·639,·SHA:·79c7f7eddc655d329424f08baee8551b7f59cd4dc4b0d6984c5e4f241bcb949b·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where
55 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer55 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer
56 if·the·underlying·iterator·ends·sooner.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·c[·...·truncated·by·diffoscope;·len:·488,·SHA:·76f753d5a273a09a73127631acaa0ee947326a929f33be291018188793e1af56·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where56 if·the·underlying·iterator·ends·sooner.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stab[·...·truncated·by·diffoscope;·len:·392,·SHA:·50ac976eb8bf89726a483af064d5a70c100dedd17d46dc40ac3a82aba51b2082·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where
57 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,57 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
58 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·07d303586c8ad4e0082d5b44bff8eeda03cdb8f4bdbe46489f9232bca5a43ec6·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but58 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/tra[·...·truncated·by·diffoscope;·len:·329,·SHA:·14fc5ef1359fcb2171e21ba65c5f5d8ce11053860ba1d5aa32ddce90a48c2a8c·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but
59 unlike·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·2b20882d9583cee50e0c8b3cf362b27ce0d524db387d4aa4093d622b9370dada·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where59 unlike·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.scan">Rea[·...·truncated·by·diffoscope;·len:·570,·SHA:·3cdbe78e481f63f4d21b2fa94202dad167221af9d6e6f981ccd7a6e524f6157d·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where
60 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,60 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
61 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,61 ····U:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
62 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·933,·SHA:·4af94b75ba5c1e03d2d70590d2fd0706f13b3080fbff0f5b98e7b109048c403d·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where62 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·789,·SHA:·0e36f9aa81931958e65acc9e1b5bf6ad7367dcb7163dcf0af2a043314857a909·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where
63 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,63 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
64 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.I[·...·truncated·by·diffoscope;·len:·968,·SHA:·e5572ed2f3bdf5970d038da608f2f592d945541207c483c257fe5789efba168a·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where64 ····Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::trait[·...·truncated·by·diffoscope;·len:·800,·SHA:·3ea01df21dfaf9ee656fdee6aa789a6ce5be05d17c043433c5ab28da8f6d3241·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where
65 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,65 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
66 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·3013c0e49b0dade37f8ca096eccc5ceeb03fc79b9d320a4c92486d23b88d1009·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over66 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator[·...·truncated·by·diffoscope;·len:·63,·SHA:·8395b60c01b0cde6c3340bd4e6c57cddd02465a19dcf15a8aa5498bd6c8ddc11·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over
67 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,67 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="../../../core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,
68 the·windows·during·mapping·overlap·as·well.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside">[·...·truncated·by·diffoscope;·len:·454,·SHA:·040991f3914479bcc92615de2b81df7363656323622e5aadc964e1a61917d23e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where68 the·windows·during·mapping·overlap·as·well.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside"><span·class="since"·titl[·...·truncated·by·diffoscope;·len:·358,·SHA:·21db4436f04b3d09e41f294c30cd7dea235a4beb9af727cb1f1f065008ad732e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where
69 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="https://doc.rust-lang.org/1.84.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·0e0294a45242d5ce9a3ab8f95d6d410756415291d92baa7d12283ef1b3ecc3a0·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where69 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="../../../core/option/enum.Option.html#variant.None"·title="varia[·...·truncated·by·diffoscope;·len:·697,·SHA:·55b16240a265fa2f73963114b9def4c5703a60d1c3ce047915fff28502588e5b·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where
70 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,70 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
71 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·a8b562f71802a421f4745f7d1fadf4f70d98030c829e70f27b692e7915267027·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where71 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·650,·SHA:·eb862563a2da6881a0f9a31dac8f99f2b47b2c8d3033a0e1bc9ec49ae5500941·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where
72 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="https://doc.rust-lang.org/1.84.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·b3db7d84f203bbc139b1c52912705d19c664dac762898205fce452c9dc3a5318·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where72 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.by[·...·truncated·by·diffoscope;·len:·427,·SHA:·d439202f1a598c30b789e20f3d05a82f531349aa12f3af08cc5c230996ec01a9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where
73 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,73 ····B:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
74 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·431,·SHA:·a705a23f6d810357e7dcac670743884665ffcccfb9b780d0aa03720be8ca5625·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(74 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.collect[·...·truncated·by·diffoscope;·len:·335,·SHA:·d72a986b5d306b2e1ed99e18a16e26fa1b5380448fea76ac3db703052800b629·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(
75 ····&amp;mut·self,75 ····&amp;mut·self,
76 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.h[·...·truncated·by·diffoscope;·len:·479,·SHA:·fa749442d890055f86ceb34f411c84fd7ea08302b336d786d1ca36fe5868b020·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where76 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try[·...·truncated·by·diffoscope;·len:·359,·SHA:·886ccc2fbd37f1e7df4075b80b0bebd3d1a6e997fae2114ca1818fa30fa95d5a·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
77 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,77 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
78 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>, 
79 ····&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang[·...·truncated·by·diffoscope;·len:·449,·SHA:·9ddccfb7bdd27ea692d65fa83daf56e31762d1bec3a502234174b8fa4fb33a98·...·],78 ····Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="[·...·truncated·by·diffoscope;·len:·40,·SHA:·39f6b8b47216936a6251a972a3e72c0459df25c157b8b3990eefb48397aa8303·...·],
 79 ····&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;B&gt;,
80 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/itera[·...·truncated·by·diffoscope;·len:·323,·SHA:·b5c51f161dc9d77fd81d1fd23cc71fbf42ac00f3168cf9e41ebaaa2b6eb25363·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if80 ····B:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·tit[·...·truncated·by·diffoscope;·len:·227,·SHA:·91a843f71f5d4d4bdd2a6f526e4b1ace78ad1c1c0027ff429527a1e3cc1cbb42·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if
81 a·failure·is·encountered.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·ri[·...·truncated·by·diffoscope;·len:·521,·SHA:·6a54376815dab985ec8cc35604d035e98e3003b1563c9b41e70966084505542b·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where81 a·failure·is·encountered.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../../[·...·truncated·by·diffoscope;·len:·401,·SHA:·ed1d0660f20625c1d5231d569dd3e4f1d10332250dcd1a3f5d2e886618e67f5b·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
82 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,82 ····E:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
83 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·975,·SHA:·94f7f970236ba59ba5f1415764a0e3ab2f3093c6b79e76c25c797ac24a3c4d09·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where83 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_coll[·...·truncated·by·diffoscope;·len:·855,·SHA:·7b38a8c237aadc46d5211ff8698af580678e0cbcab757a66d6416b422880dd91·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
84 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,84 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
85 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·b480ec650ba000fe7cb67df58fc0351299638ee3e8f00db18f74ca24d69f9894·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,85 ····B:·<a·class="trait"·href="../../../core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="../../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associa[·...·truncated·by·diffoscope;·len:·23,·SHA:·4417dee5d41246c4acf5419e1bdac3c7d847bd34e3e87738a08734259a3b63da·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
86 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·fdf5a1845f070855ba2cfd0c8c85460ea5cb646c4d3b42a8431bf21489c73701·...·]/core/primitive.usize.html">usize</a><div·class="where">where86 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·827,·SHA:·0237b034801a953ed40ad7c10f9a80d682bdf0a649c6fde9f53efc254cd75fc0·...·]/core/primitive.usize.html">usize</a><div·class="where">where
87 ····T:·'a,87 ····T:·'a,
88 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·1fc250e258e9e42e4fa3e22f86ecd57057e9ff23e47af1aec778076a7a891134·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,88 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="../../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEnd[·...·truncated·by·diffoscope;·len:·60,·SHA:·036db50df43442a72ce04aef94ccf2727352aad0708d71fe0e34c23613b84765·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,
89 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·5846407374f20f525a4a0663ad4488141eafe64513ef82581dc5df5c2d200745·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_partition_in_place</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62543">#62543</a>)</span></div></span><div·class='docblock'>Reorders·the·elements·of·this·iterator·<em>in-place</em>·according·to·the·given·predicate,89 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="../../../core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_partition_in_place</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62543">#62543</a>)</span></div></span><div·class='docblock'>Reorders·the·elements·of·this·iterator·<em>in-place</em>·according·to·the·given·predicate,
90 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.90 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.
91 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.partition_in_place">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_partitioned"·class="method·trait-impl"><a·clas[·...·truncated·by·diffoscope;·len:·431,·SHA:·4aa7d028146c72d45794efc19a376d4bee3b75eda61ff46d969e440b3dbfa1b0·...·]/core/primitive.bool.html">bool</a><div·class="where">where91 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.partition_in_place">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_partitioned"·class="method·trait-impl"><a·class="src·rightside"·href="[·...·truncated·by·diffoscope;·len:·335,·SHA:·252e1c16199fc3c38bc7de8cbda8c9532ab6d581d449c680cd7daf8d61a74aeb·...·]/core/primitive.bool.html">bool</a><div·class="where">where
92 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,92 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
93 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·fcd03e71f79faad6d9b9a12045d59f4dfabc78e5aefebcabc9c1a5be45e31125·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,93 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·63,·SHA:·852041c2de8156fdddf9f71111c5ddf1a6b88aabd8c082f1a254f0b21c18ffa1·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,
94 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><span·class="righ[·...·truncated·by·diffoscope;·len:·319,·SHA:·9b9df13f2f4e5b4dde3908515766e1a474fa30bcb7edc98c15665a016e677c2a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where94 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><span·class="rightside"><span·class="sinc[·...·truncated·by·diffoscope;·len:·247,·SHA:·222a0145d03094cb0b20ca156583afe97e703828a8aa77e37fb7b4661759e2c7·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where
95 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,95 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
96 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,96 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
97 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns97 ····R:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns
98 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rights[·...·truncated·by·diffoscope;·len:·321,·SHA:·619fd774190944998148325de99aaa75de66ce4b7e26579fd342c564923a5652·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where98 successfully,·producing·a·single,·final·value.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"[·...·truncated·by·diffoscope;·len:·249,·SHA:·afbe9e91614278f09851b7c5920ddaf0907a2bf4c310ec39b40084e28959cc77·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where
99 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,99 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
100 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,100 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
101 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the101 ····R:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="../../../core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the
102 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·307,·SHA:·5975144fd8566efa93ad1ccec09297e280924b7372e08681d2103702124e2c52·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where102 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><span·class="rightside"><span·class="since"·tit[·...·truncated·by·diffoscope;·len:·235,·SHA:·da9aac17d9724df2aa434c2d10e1caa010eb4fd7e574e4da4e3d5b689e970097·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where
103 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,103 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
104 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,104 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,
105 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span[·...·truncated·by·diffoscope;·len:·619,·SHA:·8813f54846438870310d5f5dfabd2335a9dbf51e9da2e4cd681bcb6077d39628·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where105 returning·the·final·result.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="St[·...·truncated·by·diffoscope;·len:·499,·SHA:·ff97be2c630acbbbb397aa79317bd89b79955e6735d9da7aea9df48659f94fce·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
106 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,106 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
107 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·084691f7fc4e7f4da7db385127d0ce8d2d52f6740757129a65910c4db0dc180d·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing107 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·256,·SHA:·2fe8ae39f77649fea294c45979f427748b2a9938dfa70e4595ac661d972125b1·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing
108 operation.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·217,·SHA:·447ae00256be3de069c602a6c04889808c883eae6fa349d023f53bdd5570ecae·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(108 operation.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside"·href="../../../src/cor[·...·truncated·by·diffoscope;·len:·145,·SHA:·be4dc63adf8a4e832fd3dbaaabbf45f287388ea2bb17088d40589203a2ec6dfb·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(
109 ····&amp;mut·self,109 ····&amp;mut·self,
110 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·70b2b85cad045ac7addf647e0bd3cd5b2c9ebca5986613ad2b6a9c00e3a1132f·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,110 ····f:·impl·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·68,·SHA:·e7e11f257edcac749a5883ad9a3aa42e6e965be419f967b36caa7afd3b36d7c9·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
111 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·1823533b932e38e3200465d101f10a34421c005018974296350162e4049615ea·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where111 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</[·...·truncated·by·diffoscope;·len:·586,·SHA:·596f94ec7a4c06359aee56ccb8a7138a1ddb94415fafcecac1fc87434b1329a3·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
112 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,112 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
113 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,113 ····R:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
114 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·764ea8f08626b05426a76738d54ebb2d640042494d76cba8c20d868bfdc07a73·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the114 ····&lt;R·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</[·...·truncated·by·diffoscope;·len:·292,·SHA:·2ae73aa9b78f13099a8016e28a473713dcc755cf00fed8895c0c1b027bbcea01·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the
115 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><span·class="rightside"><s[·...·truncated·by·diffoscope;·len:·476,·SHA:·aef721c14147dea2fbec70dcfa76916b3f1273bed8304f4c9db310ca23d1e4b1·...·]/core/primitive.bool.html">bool</a><div·class="where">where115 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title=[·...·truncated·by·diffoscope;·len:·380,·SHA:·1042cdc03eabce3d330853b659f28b8566dd5841790f7f1303f3e326f05efab6·...·]/core/primitive.bool.html">bool</a><div·class="where">where
116 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,116 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
117 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·7c48e62c73a40a5cb5ebbf4a22cd789b342a88ad3d855022191f2bae33c736c6·...·]/core/primitive.bool.html">bool</a><div·class="where">where117 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·850,·SHA:·1b28d9cdfe3ba8dc7eac8cef1bb6549e78768b440ea492c70d80c8c07eae61cb·...·]/core/primitive.bool.html">bool</a><div·class="where">where
118 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,118 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
119 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·673d69ce0c23e24b2546127c463e67cd2a4c0f7be792712e2b42e75427161b75·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where119 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·980,·SHA:·a560c9e639c326a34f124b36f977291532e03ffae190e973674fee7e13b4c842·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
120 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,120 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
121 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·aa5078ff77f5638746395497f8ce92c1b684d342dea851990104d5e9981ab6b0·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where121 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·883,·SHA:·47fb849c20ee0cb36696a24bd285768bd0973774403ae956d2a517cd216452b1·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where
122 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,122 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
123 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·1bd732dff19021a1586bb486282683f5c1bc65d5d514f9e13cc9232b4e94955b·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;,</div></h4></section></summary><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns123 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·58,·SHA:·f6e1e279f463d2adecc4a9316aeab7af85329a84398e722f43ac130647fe78cf·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;,</div></h4></section></summary><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns
124 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.find_map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_find"·class="method·trait-impl"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·215,·SHA:·4d59a011c8881794ce6367c1e816f11a813db02e37c71800ed6d47056f157573·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(124 the·first·non-none·result.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.find_map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_find"·class="method·trait-impl"><a·class="src·rightside"·href="../../../src/cor[·...·truncated·by·diffoscope;·len:·143,·SHA:·00906f8dc0620ba030a634eba59c098f3aff639a062bf6231dfc4feb7727cc72·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(
125 ····&amp;mut·self,125 ····&amp;mut·self,
Max diff block lines reached; 90993/348044 bytes (26.14%) of diff not shown.
326 KB
./usr/share/doc/rust-doc/html/alloc/collections/btree_map/struct.ValuesMut.html
    
Offset 1, 239 lines modifiedOffset 1, 239 lines modified
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="A·mutable·iterator·over·the·values·of·a·`BTreeMap`."><title>ValuesMut·in·alloc::collections::btree_map·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»     2025-01-07)»  (built»    from»a»       source» tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Values<wbr>Mut</a></h2><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Debug-for-ValuesMut%3C'_,+K,+V%3E"·title="Debug">Debug</a></li><li><a·href="#impl-Default-for-ValuesMut%3C'_,+K,+V%3E"·title="Default">Default</a></li><li><a·href="#impl-DoubleEndedIterator-for-ValuesMut%3C'a,+K,+V%3E"·title="DoubleEndedIterator">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-ValuesMut%3C'_,+K,+V%3E"·title="ExactSizeIterator">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-ValuesMut%3C'_,+K,+V%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-ValuesMut%3C'a,+K,+V%3E"·title="Iterator">Iterator</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-UnwindSafe-for-ValuesMut%3C'a,+K,+V%3E"·title="!UnwindSafe">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-ValuesMut%3C'a,+K,+V%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-ValuesMut%3C'a,+K,+V%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-ValuesMut%3C'a,+K,+V%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-ValuesMut%3C'a,+K,+V%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-ValuesMut%3C'a,+K,+V%3E"·title="Unpin">Unpin</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>collections::<wbr>btree_<wbr>map</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">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">btree_map</a></span><h1>Struct·<span·class="struct">ValuesMut</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map.rs.html#487-489">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·ValuesMut&lt;'a,·K,·V&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>A·mutable·iterator·over·the·values·of·a·<code>BTreeMap</code>.</p>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="A·mutable·iterator·over·the·values·of·a·`BTreeMap`."><title>ValuesMut·in·alloc::collections::btree_map·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»     2025-01-07)»  (built»    from»a»       source» tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Values<wbr>Mut</a></h2><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Debug-for-ValuesMut%3C'_,+K,+V%3E"·title="Debug">Debug</a></li><li><a·href="#impl-Default-for-ValuesMut%3C'_,+K,+V%3E"·title="Default">Default</a></li><li><a·href="#impl-DoubleEndedIterator-for-ValuesMut%3C'a,+K,+V%3E"·title="DoubleEndedIterator">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-ValuesMut%3C'_,+K,+V%3E"·title="ExactSizeIterator">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-ValuesMut%3C'_,+K,+V%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-ValuesMut%3C'a,+K,+V%3E"·title="Iterator">Iterator</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-UnwindSafe-for-ValuesMut%3C'a,+K,+V%3E"·title="!UnwindSafe">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-ValuesMut%3C'a,+K,+V%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-ValuesMut%3C'a,+K,+V%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-ValuesMut%3C'a,+K,+V%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-ValuesMut%3C'a,+K,+V%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-ValuesMut%3C'a,+K,+V%3E"·title="Unpin">Unpin</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>collections::<wbr>btree_<wbr>map</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">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">btree_map</a></span><h1>Struct·<span·class="struct">ValuesMut</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map.rs.html#487-489">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·ValuesMut&lt;'a,·K,·V&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>A·mutable·iterator·over·the·values·of·a·<code>BTreeMap</code>.</p>
2 <p>This·<code>struct</code>·is·created·by·the·<a·href="struct.BTreeMap.html#method.values_mut"·title="method·alloc::collections::btree_map::BTreeMap::values_mut"><code>values_mut</code></a>·method·on·<a·href="struct.BTreeMap.html"·title="struct·alloc::collections::btree_map::BTreeMap"><code>BTreeMap</code></a>.·See·its2 <p>This·<code>struct</code>·is·created·by·the·<a·href="struct.BTreeMap.html#method.values_mut"·title="method·alloc::collections::btree_map::BTreeMap::values_mut"><code>values_mut</code></a>·method·on·<a·href="struct.BTreeMap.html"·title="struct·alloc::collections::btree_map::BTreeMap"><code>BTreeMap</code></a>.·See·its
3 documentation·for·more.</p>3 documentation·for·more.</p>
4 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-ValuesMut%3C'_,+K,+V%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.10.0">1.10.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map.rs.html#492-496">Source</a></span><a·href="#impl-Debug-for-ValuesMut%3C'_,+K,+V%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;K,·V:·<a·class="trait"·href="../../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>&gt;·<a·class="trait"·href="../../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.ValuesMut.html"·title="struct·alloc::collections::btree_map::ValuesMut">ValuesMut</a>&lt;'_,·K,·V&gt;</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#493-495">Source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="../../fmt/struct.Formatter.html"·title="struct·alloc::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="type"·href="../../fmt/type.Result.html"·title="type·alloc::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../../fmt/trait.Debug.html#tymethod.fmt">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Default-for-ValuesMut%3C'_,+K,+V%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.82.0">1.82.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map.rs.html#2080-2091">Source</a></span><a·href="#impl-Default-for-ValuesMut%3C'_,+K,+V%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;K,·V&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·for·<a·class="struct"·href="struct.ValuesMut.html"·title="struct·alloc::collections::btree_map::ValuesMut">ValuesMut</a>&lt;'_,·K,·V&gt;</h3>[·...·truncated·by·diffoscope;·len:·366,·SHA:·ea9e25d5eb40fd665395e230dc5fd1edf2780175bf82ebac4c45cd9647a207d4·...·]/core/default/trait.Default.html#tymethod.default"·class="fn">default</a>()·-&gt;·Self</h4></section></summary><div·class="docblock"><p>Creates·an·empty·<code>btree_map::ValuesMut</code>.</p>4 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-ValuesMut%3C'_,+K,+V%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.10.0">1.10.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map.rs.html#492-496">Source</a></span><a·href="#impl-Debug-for-ValuesMut%3C'_,+K,+V%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;K,·V:·<a·class="trait"·href="../../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>&gt;·<a·class="trait"·href="../../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.ValuesMut.html"·title="struct·alloc::collections::btree_map::ValuesMut">ValuesMut</a>&lt;'_,·K,·V&gt;</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#493-495">Source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="../../fmt/struct.Formatter.html"·title="struct·alloc::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="type"·href="../../fmt/type.Result.html"·title="type·alloc::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../../fmt/trait.Debug.html#tymethod.fmt">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Default-for-ValuesMut%3C'_,+K,+V%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.82.0">1.82.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map.rs.html#2080-2091">Source</a></span><a·href="#impl-Default-for-ValuesMut%3C'_,+K,+V%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;K,·V&gt;·<a·class="trait"·href="../../../core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·for·<a·class="struct"·href="struct.ValuesMut.html"·title="struct·alloc::collections::btree_map::ValuesMut">ValuesMut</a>&lt;'_,·K,·V&gt;</h3></section></summary><div[·...·truncated·by·diffoscope;·len:·318,·SHA:·d815443be7f165fe3d9e19afde5ac9d2b4afe002fc7c9e4504ad627353148e56·...·]/core/default/trait.Default.html#tymethod.default"·class="fn">default</a>()·-&gt;·Self</h4></section></summary><div·class="docblock"><p>Creates·an·empty·<code>btree_map::ValuesMut</code>.</p>
  
5 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span>iter:·btree_map::ValuesMut&lt;<span·class="lifetime">'_</span>,·u8,·u8&gt;·=·Default::default();5 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span>iter:·btree_map::ValuesMut&lt;<span·class="lifetime">'_</span>,·u8,·u8&gt;·=·Default::default();
6 <span·class="macro">assert_eq!</span>(iter.count(),·<span·class="number">0</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::btree_map;%0A++++let+iter:+btree_map::ValuesMut%3C'_,+u8,+u8%3E+=+Default::default();%0A++++assert_eq!(iter.count(),+0);%0A%7D&amp;edition=2021"></a></div>6 <span·class="macro">assert_eq!</span>(iter.count(),·<span·class="number">0</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::btree_map;%0A++++let+iter:+btree_map::ValuesMut%3C'_,+u8,+u8%3E+=+Default::default();%0A++++assert_eq!(iter.count(),+0);%0A%7D&amp;edition=2021"></a></div>
7 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-DoubleEndedIterator-for-ValuesMut%3C'a,+K,+V%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.10.0">1.10.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map.rs.html#2063-2067">Source</a></span><a·href="#impl-DoubleEndedIterator-for-ValuesMut%3C'a,+K,+V%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·K,·V&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIterator</a>·for·<a·class="struct"·href="struct.ValuesMut.html"·title="struct·allo[·...·truncated·by·diffoscope;·len:·4391,·SHA:·4a4ac6f662b9cf551f6c1911341dfbbb56d9aaa3c0d200d5ea87b3064b667b60·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold"·class="fn">try_rfold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where7 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-DoubleEndedIterator-for-ValuesMut%3C'a,+K,+V%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.10.0">1.10.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map.rs.html#2063-2067">Source</a></span><a·href="#impl-DoubleEndedIterator-for-ValuesMut%3C'a,+K,+V%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·K,·V&gt;·<a·class="trait"·href="../../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIterator</a>·for·<a·class="struct"·href="struct.ValuesMut.html"·title="struct·alloc::collections::btree_ma[·...·truncated·by·diffoscope;·len:·3887,·SHA:·61e70c0c359f1446851141def854b2f230e3aace54270544dc52ab6efac4bd66·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold"·class="fn">try_rfold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where
8 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,8 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
9 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,9 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
10 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>This·is·the·reverse·version·of·<a·href="https://doc.rust-lang.org/1.8[·...·truncated·by·diffoscope;·len:·3,·SHA:·fbd04e1aae9ce0b11a8946e2c9ac2619f7428a64d32d01eff61d809dcb70ee8e·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·title="method·core::iter::traits::iterator::Iterator::try_fold"><code>Iterator::try_fold()</code></a>:·it·takes10 ····R:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>This·is·the·reverse·version·of·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·title="method·core::iter::traits::iterator::Iterator::try_fold"><code>Iterator::try_fold()</code></a>:·it·takes
11 elements·starting·from·the·back·of·the·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfold"·class="method·trait-impl"><span·clas[·...·truncated·by·diffoscope;·len:·325,·SHA:·7ffdb06a8ab3810207a1c974783822231eaf1d82fd94bcf810dd7b3181149b7b·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold"·class="fn">rfold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where11 elements·starting·from·the·back·of·the·iterator.·<a·href="../../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfold"·class="method·trait-impl"><span·class="rightside"><span·clas[·...·truncated·by·diffoscope;·len:·253,·SHA:·48421497f19ee93d3a7432833660cd659661b35b02b625c6376fc49660f200cf·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold"·class="fn">rfold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where
12 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,12 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
13 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·reduces·the·iterator’s·elements·to·a·single,13 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·reduces·the·iterator’s·elements·to·a·single,
14 final·value,·starting·from·the·back.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfind"·class="method·trait-impl"><span·class="r[·...·truncated·by·diffoscope;·len:·665,·SHA:·fde89feb7c0e70eefa34d688476ca36a70115bec8150dbf9b1a3c359f72dd28d·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where14 final·value,·starting·from·the·back.·<a·href="../../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfind"·class="method·trait-impl"><span·class="rightside"><span·class="s[·...·truncated·by·diffoscope;·len:·545,·SHA:·b420bc934fe1ddfd2fe0958678aa3aba1ce90383b1958958e47e13ae1b40fe25·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
15 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,15 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
16 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·7867,·SHA:·8c2ada66c9f7266e2d1a304398ed7f75f7f74a5373f0d6bdee22cd460d765035·...·]/core/primitive.usize.html">usize</a>&gt;(16 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·7123,·SHA:·19e07e5f254cbb0ab4415c4cc28c1e9bb1bd1e1f4161deaffd8e715b25d8ff9e·...·]/core/primitive.usize.html">usize</a>&gt;(
17 ····&amp;mut·self,17 ····&amp;mut·self,
18 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·4f557a9b49151e0be8c52ffd68f1def4469c08164239dc8bef8df2040551c5ef·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where18 )·-&gt;·<a·class="enum"·href="../../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::It[·...·truncated·by·diffoscope;·len:·261,·SHA:·9b488006768a86d05b68f4e1888c750c736264a3a386f1310f1b7e8bfc7d2184·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where
19 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·962,·SHA:·116e4ec2ae3d9655c3d115eaf50f435f5323b4e48b84de734c79d2a09b3c02f2·...·]/core/primitive.usize.html">usize</a><div·class="where">where19 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_next[·...·truncated·by·diffoscope;·len:·842,·SHA:·d8f387888e3ee78f4397f4b1a12eae734e055247e3aa3251433ab8ac1019b31a·...·]/core/primitive.usize.html">usize</a><div·class="where">where
20 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·counting·the·number·of·iterations·and·returning·it.·<a·href="https://doc.[·...·truncated·by·diffoscope;·len:·3529,·SHA:·36685e4ebfba7d155142dce71eec5dabe5f32dacb8a458b62987f15496f31675·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where20 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·counting·the·number·of·iterations·and·returning·it.·<a·href="../../../core/iter/traits/iterator/t[·...·truncated·by·diffoscope;·len:·3049,·SHA:·36b73bdc1b7eb71bc2ee32534a58bc8374d5403ad0bacb5cbfb32bf6be47bb80·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where
21 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by21 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by
22 the·given·amount·at·each·iteration.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><sp[·...·truncated·by·diffoscope;·len:·842,·SHA:·945c4509a8daf2f8fbccc5c6e5089e225955911e03a3e411f047f96d52d16862·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where22 the·given·amount·at·each·iteration.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="[·...·truncated·by·diffoscope;·len:·698,·SHA:·035d2f4d2e6b01ddf0b424aa6fc3f5919c82f85f857cb9cfa0f54f8357058b90·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
23 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,23 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
24 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·3b5ce32f9d564c3aa7cf2adc7130e674758d0c0f4f1275b4c3b46a74aa802cb3·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where24 ····U:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·[·...·truncated·by·diffoscope;·len:·1137,·SHA:·7916ae3a9b5afad376aafc6d698165147d82613fe975f64423f2367a02a69f6a·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
25 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,25 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
26 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·[·...·truncated·by·diffoscope;·len:·868,·SHA:·abdbf27ccc84063c7040d8fa3da9d0bda5ee310a470ef576e15554aee4bd5d21·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where26 ····U:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·of·pairs.·<a·href="../..[·...·truncated·by·diffoscope;·len:·724,·SHA:·ba31078b5c50fbfc51e53bed6f70aaa6e7e320cfda19949035c71d9363c0d919·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where
27 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,27 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
28 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent28 ····Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent
29 items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="sr[·...·truncated·by·diffoscope;·len:·427,·SHA:·6e82ad4aad49c2165d869fe30d20a968580a973cdb3a7f4c77f49e16dd59393e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where29 items·of·the·original·iterator.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="src·rightside"·href="../..[·...·truncated·by·diffoscope;·len:·331,·SHA:·451e844c9bf5d6d78b9579516e4b9fafb3e84136eaa1c95bead4539370743d7d·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where
30 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,30 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
31 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>31 ····G:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>
32 between·adjacent·items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightsi[·...·truncated·by·diffoscope;·len:·471,·SHA:·ed10488b7b2ccc3e4cc84a9a57a9695a74c1c964962e8d753cbace12f3318a66·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where32 between·adjacent·items·of·the·original·iterator.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·[·...·truncated·by·diffoscope;·len:·375,·SHA:·7bbb71535f348e442b9de05a74f9180c9acec0636566fa2a19ab1dc83779aace·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where
33 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,33 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
34 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each34 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each
35 element.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><spa[·...·truncated·by·diffoscope;·len:·306,·SHA:·61c87c39b177830189b0e4c036d97c40d8b9649d76432c90afb88de59498e8b2·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where35 element.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="S[·...·truncated·by·diffoscope;·len:·234,·SHA:·55463e0fb539911d03265cbd8abb7248189471ea74954185ed77f245746805c2·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where
36 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,36 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
37 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·a65da32c5f5ef8335cb607d3b4ab3f8a25877bc2c2e8b44ca9d575caecd5c8a5·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where37 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·772,·SHA:·de07f629315c257cc96a89e82de6752f002f259b678391b79d5fb48e279e56d2·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where
38 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,38 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
39 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·6d69c85c69fa789be551ea42d95c33c237d12a04ef157f9ddaaead1177f7771e·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element39 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·68,·SHA:·67cf1e2a20410007c7dd6c47c91b1d386626c1bfac5c1116c374da7bbee00d51·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element
40 should·be·yielded.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·489,·SHA:·9bdc636899f4e4e5a26a3a21c9603f72b3fb972865d2f459c38b7e2ac8fed7f1·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where40 should·be·yielded.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·tit[·...·truncated·by·diffoscope;·len:·393,·SHA:·328d72714f754fb793753313f01b087a9fbb30b77a2bcd5749456e1f6fd72710·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where
41 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,41 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
42 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·46dbf841c7aecd3f06bd4c944af21650faeac98c46c515dcfe643302618b1ecd·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where42 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·884,·SHA:·e8a37e28a6bfcb2d58b9ffd389d339c3dece95c14840f28c980a7d7aedcc9a05·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where
43 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as43 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as
44 the·next·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside[·...·truncated·by·diffoscope;·len:·468,·SHA:·52f7ff7f264284c3acc4429ca34d057ded9afa2e3d9d6e07571e252db9a48977·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where44 the·next·value.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside"><span·class="since"·ti[·...·truncated·by·diffoscope;·len:·372,·SHA:·9c08a613d034f21b42b8d196073d0f4d61c81458378e40e77995533a8b460837·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where
45 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·c0180fefce4346b0b4089e5c642521d7716108241c0ce6ec3e910c7a2c7364b4·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods45 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="../../../core/iter/adapters/peekable/struct.Peekable.html#method.peek"·ti[·...·truncated·by·diffoscope;·len:·103,·SHA:·e3683d31746f50069ed604def6201840bce75bbc7c584fac6c3644292077ae8a·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods
46 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See46 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See
47 their·documentation·for·more·information.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightsid[·...·truncated·by·diffoscope;·len:·498,·SHA:·e4a68861585faec6a5032b3b69d6dfb0f2799b5f387a527d9a1365571ed02069·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where47 their·documentation·for·more·information.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightside"><span·class="since"·t[·...·truncated·by·diffoscope;·len:·402,·SHA:·bdba673560d208f968337eb74446ead60d6223b0ca9ec6fbfaeb1a995a7e8001·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where
48 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,48 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
49 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·93281c1f6402743fd61110c11cf676f0f67eddceda801b4eb35e5fe9f85870fd·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where49 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·1042,·SHA:·27d4a79658fb1c97b659bd2520bcebbf5cfcb8a42420a7ecfcbff6f3330fa5e1·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where
50 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,50 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
51 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·f1cdbb1ec64f98fabbe1d89c88b03824310926cd7eaa160953ce2452fc3abb77·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where51 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·890,·SHA:·c43533da7f54bfb6611594b3436645d4d1f8e5339d2d05bf2345e87628499759·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where
52 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,52 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
53 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·f94a0b2c1396b13b89aca7830197ebf19e2c0e5ba536a9cc25b325a481799510·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where53 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·971,·SHA:·1b31b9d1d5061d4ee982a30400139f1d7319412bdea39925e0cc1e8e7cf3d65a·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where
54 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="https://doc.rust-lang[·...·truncated·by·diffoscope;·len:·783,·SHA:·c14217b89e3292a50a09192a8857485891fc769f861e1d1fc4322d04295c86ef·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where54 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="../../../core/iter/traits/iterator/trait.Iter[·...·truncated·by·diffoscope;·len:·639,·SHA:·79c7f7eddc655d329424f08baee8551b7f59cd4dc4b0d6984c5e4f241bcb949b·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where
55 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer55 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer
56 if·the·underlying·iterator·ends·sooner.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·c[·...·truncated·by·diffoscope;·len:·488,·SHA:·76f753d5a273a09a73127631acaa0ee947326a929f33be291018188793e1af56·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where56 if·the·underlying·iterator·ends·sooner.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stab[·...·truncated·by·diffoscope;·len:·392,·SHA:·50ac976eb8bf89726a483af064d5a70c100dedd17d46dc40ac3a82aba51b2082·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where
57 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,57 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
58 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·07d303586c8ad4e0082d5b44bff8eeda03cdb8f4bdbe46489f9232bca5a43ec6·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but58 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/tra[·...·truncated·by·diffoscope;·len:·329,·SHA:·14fc5ef1359fcb2171e21ba65c5f5d8ce11053860ba1d5aa32ddce90a48c2a8c·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but
59 unlike·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·2b20882d9583cee50e0c8b3cf362b27ce0d524db387d4aa4093d622b9370dada·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where59 unlike·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.scan">Rea[·...·truncated·by·diffoscope;·len:·570,·SHA:·3cdbe78e481f63f4d21b2fa94202dad167221af9d6e6f981ccd7a6e524f6157d·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where
60 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,60 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
61 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,61 ····U:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
62 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·933,·SHA:·4af94b75ba5c1e03d2d70590d2fd0706f13b3080fbff0f5b98e7b109048c403d·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where62 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·789,·SHA:·0e36f9aa81931958e65acc9e1b5bf6ad7367dcb7163dcf0af2a043314857a909·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where
63 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,63 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
64 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.I[·...·truncated·by·diffoscope;·len:·968,·SHA:·e5572ed2f3bdf5970d038da608f2f592d945541207c483c257fe5789efba168a·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where64 ····Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::trait[·...·truncated·by·diffoscope;·len:·800,·SHA:·3ea01df21dfaf9ee656fdee6aa789a6ce5be05d17c043433c5ab28da8f6d3241·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where
65 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,65 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
66 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·3013c0e49b0dade37f8ca096eccc5ceeb03fc79b9d320a4c92486d23b88d1009·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over66 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator[·...·truncated·by·diffoscope;·len:·63,·SHA:·8395b60c01b0cde6c3340bd4e6c57cddd02465a19dcf15a8aa5498bd6c8ddc11·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over
67 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,67 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="../../../core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,
68 the·windows·during·mapping·overlap·as·well.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside">[·...·truncated·by·diffoscope;·len:·454,·SHA:·040991f3914479bcc92615de2b81df7363656323622e5aadc964e1a61917d23e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where68 the·windows·during·mapping·overlap·as·well.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside"><span·class="since"·titl[·...·truncated·by·diffoscope;·len:·358,·SHA:·21db4436f04b3d09e41f294c30cd7dea235a4beb9af727cb1f1f065008ad732e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where
69 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="https://doc.rust-lang.org/1.84.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·0e0294a45242d5ce9a3ab8f95d6d410756415291d92baa7d12283ef1b3ecc3a0·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where69 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="../../../core/option/enum.Option.html#variant.None"·title="varia[·...·truncated·by·diffoscope;·len:·697,·SHA:·55b16240a265fa2f73963114b9def4c5703a60d1c3ce047915fff28502588e5b·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where
70 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,70 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
71 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·a8b562f71802a421f4745f7d1fadf4f70d98030c829e70f27b692e7915267027·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where71 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·650,·SHA:·eb862563a2da6881a0f9a31dac8f99f2b47b2c8d3033a0e1bc9ec49ae5500941·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where
72 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="https://doc.rust-lang.org/1.84.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·b3db7d84f203bbc139b1c52912705d19c664dac762898205fce452c9dc3a5318·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where72 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.by[·...·truncated·by·diffoscope;·len:·427,·SHA:·d439202f1a598c30b789e20f3d05a82f531349aa12f3af08cc5c230996ec01a9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where
73 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,73 ····B:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
74 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·431,·SHA:·a705a23f6d810357e7dcac670743884665ffcccfb9b780d0aa03720be8ca5625·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(74 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.collect[·...·truncated·by·diffoscope;·len:·335,·SHA:·d72a986b5d306b2e1ed99e18a16e26fa1b5380448fea76ac3db703052800b629·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(
75 ····&amp;mut·self,75 ····&amp;mut·self,
76 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.h[·...·truncated·by·diffoscope;·len:·479,·SHA:·fa749442d890055f86ceb34f411c84fd7ea08302b336d786d1ca36fe5868b020·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where76 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try[·...·truncated·by·diffoscope;·len:·359,·SHA:·886ccc2fbd37f1e7df4075b80b0bebd3d1a6e997fae2114ca1818fa30fa95d5a·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
77 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,77 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
78 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>, 
79 ····&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang[·...·truncated·by·diffoscope;·len:·449,·SHA:·9ddccfb7bdd27ea692d65fa83daf56e31762d1bec3a502234174b8fa4fb33a98·...·],78 ····Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="[·...·truncated·by·diffoscope;·len:·40,·SHA:·39f6b8b47216936a6251a972a3e72c0459df25c157b8b3990eefb48397aa8303·...·],
 79 ····&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;B&gt;,
80 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/itera[·...·truncated·by·diffoscope;·len:·323,·SHA:·b5c51f161dc9d77fd81d1fd23cc71fbf42ac00f3168cf9e41ebaaa2b6eb25363·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if80 ····B:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·tit[·...·truncated·by·diffoscope;·len:·227,·SHA:·91a843f71f5d4d4bdd2a6f526e4b1ace78ad1c1c0027ff429527a1e3cc1cbb42·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if
81 a·failure·is·encountered.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·ri[·...·truncated·by·diffoscope;·len:·521,·SHA:·6a54376815dab985ec8cc35604d035e98e3003b1563c9b41e70966084505542b·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where81 a·failure·is·encountered.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../../[·...·truncated·by·diffoscope;·len:·401,·SHA:·ed1d0660f20625c1d5231d569dd3e4f1d10332250dcd1a3f5d2e886618e67f5b·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
82 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,82 ····E:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
83 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·975,·SHA:·94f7f970236ba59ba5f1415764a0e3ab2f3093c6b79e76c25c797ac24a3c4d09·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where83 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_coll[·...·truncated·by·diffoscope;·len:·855,·SHA:·7b38a8c237aadc46d5211ff8698af580678e0cbcab757a66d6416b422880dd91·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
84 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,84 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
85 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·b480ec650ba000fe7cb67df58fc0351299638ee3e8f00db18f74ca24d69f9894·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,85 ····B:·<a·class="trait"·href="../../../core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="../../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associa[·...·truncated·by·diffoscope;·len:·23,·SHA:·4417dee5d41246c4acf5419e1bdac3c7d847bd34e3e87738a08734259a3b63da·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
86 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·fdf5a1845f070855ba2cfd0c8c85460ea5cb646c4d3b42a8431bf21489c73701·...·]/core/primitive.usize.html">usize</a><div·class="where">where86 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·827,·SHA:·0237b034801a953ed40ad7c10f9a80d682bdf0a649c6fde9f53efc254cd75fc0·...·]/core/primitive.usize.html">usize</a><div·class="where">where
87 ····T:·'a,87 ····T:·'a,
88 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·1fc250e258e9e42e4fa3e22f86ecd57057e9ff23e47af1aec778076a7a891134·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,88 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="../../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEnd[·...·truncated·by·diffoscope;·len:·60,·SHA:·036db50df43442a72ce04aef94ccf2727352aad0708d71fe0e34c23613b84765·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,
89 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·5846407374f20f525a4a0663ad4488141eafe64513ef82581dc5df5c2d200745·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_partition_in_place</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62543">#62543</a>)</span></div></span><div·class='docblock'>Reorders·the·elements·of·this·iterator·<em>in-place</em>·according·to·the·given·predicate,89 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="../../../core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_partition_in_place</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62543">#62543</a>)</span></div></span><div·class='docblock'>Reorders·the·elements·of·this·iterator·<em>in-place</em>·according·to·the·given·predicate,
90 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.90 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.
91 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.partition_in_place">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_partitioned"·class="method·trait-impl"><a·clas[·...·truncated·by·diffoscope;·len:·431,·SHA:·4aa7d028146c72d45794efc19a376d4bee3b75eda61ff46d969e440b3dbfa1b0·...·]/core/primitive.bool.html">bool</a><div·class="where">where91 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.partition_in_place">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_partitioned"·class="method·trait-impl"><a·class="src·rightside"·href="[·...·truncated·by·diffoscope;·len:·335,·SHA:·252e1c16199fc3c38bc7de8cbda8c9532ab6d581d449c680cd7daf8d61a74aeb·...·]/core/primitive.bool.html">bool</a><div·class="where">where
92 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,92 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
93 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·fcd03e71f79faad6d9b9a12045d59f4dfabc78e5aefebcabc9c1a5be45e31125·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,93 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·63,·SHA:·852041c2de8156fdddf9f71111c5ddf1a6b88aabd8c082f1a254f0b21c18ffa1·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,
94 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><span·class="righ[·...·truncated·by·diffoscope;·len:·319,·SHA:·9b9df13f2f4e5b4dde3908515766e1a474fa30bcb7edc98c15665a016e677c2a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where94 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><span·class="rightside"><span·class="sinc[·...·truncated·by·diffoscope;·len:·247,·SHA:·222a0145d03094cb0b20ca156583afe97e703828a8aa77e37fb7b4661759e2c7·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where
95 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,95 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
96 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,96 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
97 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns97 ····R:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns
98 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rights[·...·truncated·by·diffoscope;·len:·321,·SHA:·619fd774190944998148325de99aaa75de66ce4b7e26579fd342c564923a5652·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where98 successfully,·producing·a·single,·final·value.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"[·...·truncated·by·diffoscope;·len:·249,·SHA:·afbe9e91614278f09851b7c5920ddaf0907a2bf4c310ec39b40084e28959cc77·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where
99 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,99 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
100 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,100 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
101 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the101 ····R:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="../../../core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the
102 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·307,·SHA:·5975144fd8566efa93ad1ccec09297e280924b7372e08681d2103702124e2c52·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where102 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><span·class="rightside"><span·class="since"·tit[·...·truncated·by·diffoscope;·len:·235,·SHA:·da9aac17d9724df2aa434c2d10e1caa010eb4fd7e574e4da4e3d5b689e970097·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where
103 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,103 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
104 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,104 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,
105 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span[·...·truncated·by·diffoscope;·len:·619,·SHA:·8813f54846438870310d5f5dfabd2335a9dbf51e9da2e4cd681bcb6077d39628·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where105 returning·the·final·result.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="St[·...·truncated·by·diffoscope;·len:·499,·SHA:·ff97be2c630acbbbb397aa79317bd89b79955e6735d9da7aea9df48659f94fce·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
106 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,106 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
107 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·084691f7fc4e7f4da7db385127d0ce8d2d52f6740757129a65910c4db0dc180d·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing107 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·256,·SHA:·2fe8ae39f77649fea294c45979f427748b2a9938dfa70e4595ac661d972125b1·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing
108 operation.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·217,·SHA:·447ae00256be3de069c602a6c04889808c883eae6fa349d023f53bdd5570ecae·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(108 operation.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside"·href="../../../src/cor[·...·truncated·by·diffoscope;·len:·145,·SHA:·be4dc63adf8a4e832fd3dbaaabbf45f287388ea2bb17088d40589203a2ec6dfb·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(
109 ····&amp;mut·self,109 ····&amp;mut·self,
110 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·70b2b85cad045ac7addf647e0bd3cd5b2c9ebca5986613ad2b6a9c00e3a1132f·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,110 ····f:·impl·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·68,·SHA:·e7e11f257edcac749a5883ad9a3aa42e6e965be419f967b36caa7afd3b36d7c9·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
111 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·1823533b932e38e3200465d101f10a34421c005018974296350162e4049615ea·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where111 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</[·...·truncated·by·diffoscope;·len:·586,·SHA:·596f94ec7a4c06359aee56ccb8a7138a1ddb94415fafcecac1fc87434b1329a3·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
112 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,112 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
113 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,113 ····R:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
114 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·764ea8f08626b05426a76738d54ebb2d640042494d76cba8c20d868bfdc07a73·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the114 ····&lt;R·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</[·...·truncated·by·diffoscope;·len:·292,·SHA:·2ae73aa9b78f13099a8016e28a473713dcc755cf00fed8895c0c1b027bbcea01·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the
115 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><span·class="rightside"><s[·...·truncated·by·diffoscope;·len:·476,·SHA:·aef721c14147dea2fbec70dcfa76916b3f1273bed8304f4c9db310ca23d1e4b1·...·]/core/primitive.bool.html">bool</a><div·class="where">where115 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title=[·...·truncated·by·diffoscope;·len:·380,·SHA:·1042cdc03eabce3d330853b659f28b8566dd5841790f7f1303f3e326f05efab6·...·]/core/primitive.bool.html">bool</a><div·class="where">where
116 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,116 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
117 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·7c48e62c73a40a5cb5ebbf4a22cd789b342a88ad3d855022191f2bae33c736c6·...·]/core/primitive.bool.html">bool</a><div·class="where">where117 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·850,·SHA:·1b28d9cdfe3ba8dc7eac8cef1bb6549e78768b440ea492c70d80c8c07eae61cb·...·]/core/primitive.bool.html">bool</a><div·class="where">where
118 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,118 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
119 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·673d69ce0c23e24b2546127c463e67cd2a4c0f7be792712e2b42e75427161b75·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where119 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·980,·SHA:·a560c9e639c326a34f124b36f977291532e03ffae190e973674fee7e13b4c842·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
120 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,120 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
121 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·aa5078ff77f5638746395497f8ce92c1b684d342dea851990104d5e9981ab6b0·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where121 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·883,·SHA:·47fb849c20ee0cb36696a24bd285768bd0973774403ae956d2a517cd216452b1·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where
122 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,122 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
123 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·1bd732dff19021a1586bb486282683f5c1bc65d5d514f9e13cc9232b4e94955b·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;,</div></h4></section></summary><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns123 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·58,·SHA:·f6e1e279f463d2adecc4a9316aeab7af85329a84398e722f43ac130647fe78cf·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;,</div></h4></section></summary><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns
124 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.find_map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_find"·class="method·trait-impl"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·215,·SHA:·4d59a011c8881794ce6367c1e816f11a813db02e37c71800ed6d47056f157573·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(124 the·first·non-none·result.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.find_map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_find"·class="method·trait-impl"><a·class="src·rightside"·href="../../../src/cor[·...·truncated·by·diffoscope;·len:·143,·SHA:·00906f8dc0620ba030a634eba59c098f3aff639a062bf6231dfc4feb7727cc72·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(
125 ····&amp;mut·self,125 ····&amp;mut·self,
Max diff block lines reached; 82373/333168 bytes (24.72%) of diff not shown.
286 KB
./usr/share/doc/rust-doc/html/alloc/collections/btree_set/struct.BTreeSet.html
    
Offset 1, 13 lines modifiedOffset 1, 13 lines modified
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="An·ordered·set·based·on·a·B-Tree."><title>BTreeSet·in·alloc::collections::btree_set·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»      2025-01-07)»   (built»     from» a»source»  tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">BTree<wbr>Set</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#examples"·title="Examples">Examples</a></li></ul><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.append"·title="append">append</a></li><li><a·href="#method.clear"·title="clear">clear</a></li><li><a·href="#method.contains"·title="contains">contains</a></li><li><a·href="#method.difference"·title="difference">difference</a></li><li><a·href="#method.extract_if"·title="extract_if">extract_if</a></li><li><a·href="#method.first"·title="first">first</a></li><li><a·href="#method.get"·title="get">get</a></li><li><a·href="#method.insert"·title="insert">insert</a></li><li><a·href="#method.intersection"·title="intersection">intersection</a></li><li><a·href="#method.is_disjoint"·title="is_disjoint">is_disjoint</a></li><li><a·href="#method.is_empty"·title="is_empty">is_empty</a></li><li><a·href="#method.is_subset"·title="is_subset">is_subset</a></li><li><a·href="#method.is_superset"·title="is_superset">is_superset</a></li><li><a·href="#method.iter"·title="iter">iter</a></li><li><a·href="#method.last"·title="last">last</a></li><li><a·href="#method.len"·title="len">len</a></li><li><a·href="#method.lower_bound"·title="lower_bound">lower_bound</a></li><li><a·href="#method.lower_bound_mut"·title="lower_bound_mut">lower_bound_mut</a></li><li><a·href="#method.new"·title="new">new</a></li><li><a·href="#method.new_in"·title="new_in">new_in</a></li><li><a·href="#method.pop_first"·title="pop_first">pop_first</a></li><li><a·href="#method.pop_last"·title="pop_last">pop_last</a></li><li><a·href="#method.range"·title="range">range</a></li><li><a·href="#method.remove"·title="remove">remove</a></li><li><a·href="#method.replace"·title="replace">replace</a></li><li><a·href="#method.retain"·title="retain">retain</a></li><li><a·href="#method.split_off"·title="split_off">split_off</a></li><li><a·href="#method.symmetric_difference"·title="symmetric_difference">symmetric_difference</a></li><li><a·href="#method.take"·title="take">take</a></li><li><a·href="#method.union"·title="union">union</a></li><li><a·href="#method.upper_bound"·title="upper_bound">upper_bound</a></li><li><a·href="#method.upper_bound_mut"·title="upper_bound_mut">upper_bound_mut</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-BitAnd%3C%26BTreeSet%3CT,+A%3E%3E-for-%26BTreeSet%3CT,+A%3E"·title="BitAnd&#60;&#38;BTreeSet&#60;T,·A&#62;&#62;">BitAnd&#60;&#38;BTreeSet&#60;T,·A&#62;&#62;</a></li><li><a·href="#impl-BitOr%3C%26BTreeSet%3CT,+A%3E%3E-for-%26BTreeSet%3CT,+A%3E"·title="BitOr&#60;&#38;BTreeSet&#60;T,·A&#62;&#62;">BitOr&#60;&#38;BTreeSet&#60;T,·A&#62;&#62;</a></li><li><a·href="#impl-BitXor%3C%26BTreeSet%3CT,+A%3E%3E-for-%26BTreeSet%3CT,+A%3E"·title="BitXor&#60;&#38;BTreeSet&#60;T,·A&#62;&#62;">BitXor&#60;&#38;BTreeSet&#60;T,·A&#62;&#62;</a></li><li><a·href="#impl-Clone-for-BTreeSet%3CT,+A%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-BTreeSet%3CT,+A%3E"·title="Debug">Debug</a></li><li><a·href="#impl-Default-for-BTreeSet%3CT%3E"·title="Default">Default</a></li><li><a·href="#impl-Eq-for-BTreeSet%3CT,+A%3E"·title="Eq">Eq</a></li><li><a·href="#impl-Extend%3C%26T%3E-for-BTreeSet%3CT,+A%3E"·title="Extend&#60;&#38;&#39;a·T&#62;">Extend&#60;&#38;&#39;a·T&#62;</a></li><li><a·href="#impl-Extend%3CT%3E-for-BTreeSet%3CT,+A%3E"·title="Extend&#60;T&#62;">Extend&#60;T&#62;</a></li><li><a·href="#impl-From%3C%5BT;+N%5D%3E-for-BTreeSet%3CT%3E"·title="From&#60;[T;·N]&#62;">From&#60;[T;·N]&#62;</a></li><li><a·href="#impl-FromIterator%3CT%3E-for-BTreeSet%3CT%3E"·title="FromIterator&#60;T&#62;">FromIterator&#60;T&#62;</a></li><li><a·href="#impl-Hash-for-BTreeSet%3CT,+A%3E"·title="Hash">Hash</a></li><li><a·href="#impl-IntoIterator-for-%26BTreeSet%3CT,+A%3E"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-IntoIterator-for-BTreeSet%3CT,+A%3E"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-Ord-for-BTreeSet%3CT,+A%3E"·title="Ord">Ord</a></li><li><a·href="#impl-PartialEq-for-BTreeSet%3CT,+A%3E"·title="PartialEq">PartialEq</a></li><li><a·href="#impl-PartialOrd-for-BTreeSet%3CT,+A%3E"·title="PartialOrd">PartialOrd</a></li><li><a·href="#impl-Sub%3C%26BTreeSet%3CT,+A%3E%3E-for-%26BTreeSet%3CT,+A%3E"·title="Sub&#60;&#38;BTreeSet&#60;T,·A&#62;&#62;">Sub&#60;&#38;BTreeSet&#60;T,·A&#62;&#62;</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-BTreeSet%3CT,+A%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-BTreeSet%3CT,+A%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-BTreeSet%3CT,+A%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-BTreeSet%3CT,+A%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-BTreeSet%3CT,+A%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-BTreeSet%3CT,+A%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>collections::<wbr>btree_<wbr>set</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">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">btree_set</a></span><h1>Struct·<span·class="struct">BTreeSet</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/set.rs.html#73-78">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·BTreeSet&lt;T,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·=·<a·class="struct"·href="../../alloc/struct.Global.html"·title="struct·alloc::alloc::Global">Global</a>&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>An·ordered·set·based·on·a·B-Tree.</p>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="An·ordered·set·based·on·a·B-Tree."><title>BTreeSet·in·alloc::collections::btree_set·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»      2025-01-07)»   (built»     from» a»source»  tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">BTree<wbr>Set</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#examples"·title="Examples">Examples</a></li></ul><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.append"·title="append">append</a></li><li><a·href="#method.clear"·title="clear">clear</a></li><li><a·href="#method.contains"·title="contains">contains</a></li><li><a·href="#method.difference"·title="difference">difference</a></li><li><a·href="#method.extract_if"·title="extract_if">extract_if</a></li><li><a·href="#method.first"·title="first">first</a></li><li><a·href="#method.get"·title="get">get</a></li><li><a·href="#method.insert"·title="insert">insert</a></li><li><a·href="#method.intersection"·title="intersection">intersection</a></li><li><a·href="#method.is_disjoint"·title="is_disjoint">is_disjoint</a></li><li><a·href="#method.is_empty"·title="is_empty">is_empty</a></li><li><a·href="#method.is_subset"·title="is_subset">is_subset</a></li><li><a·href="#method.is_superset"·title="is_superset">is_superset</a></li><li><a·href="#method.iter"·title="iter">iter</a></li><li><a·href="#method.last"·title="last">last</a></li><li><a·href="#method.len"·title="len">len</a></li><li><a·href="#method.lower_bound"·title="lower_bound">lower_bound</a></li><li><a·href="#method.lower_bound_mut"·title="lower_bound_mut">lower_bound_mut</a></li><li><a·href="#method.new"·title="new">new</a></li><li><a·href="#method.new_in"·title="new_in">new_in</a></li><li><a·href="#method.pop_first"·title="pop_first">pop_first</a></li><li><a·href="#method.pop_last"·title="pop_last">pop_last</a></li><li><a·href="#method.range"·title="range">range</a></li><li><a·href="#method.remove"·title="remove">remove</a></li><li><a·href="#method.replace"·title="replace">replace</a></li><li><a·href="#method.retain"·title="retain">retain</a></li><li><a·href="#method.split_off"·title="split_off">split_off</a></li><li><a·href="#method.symmetric_difference"·title="symmetric_difference">symmetric_difference</a></li><li><a·href="#method.take"·title="take">take</a></li><li><a·href="#method.union"·title="union">union</a></li><li><a·href="#method.upper_bound"·title="upper_bound">upper_bound</a></li><li><a·href="#method.upper_bound_mut"·title="upper_bound_mut">upper_bound_mut</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-BitAnd%3C%26BTreeSet%3CT,+A%3E%3E-for-%26BTreeSet%3CT,+A%3E"·title="BitAnd&#60;&#38;BTreeSet&#60;T,·A&#62;&#62;">BitAnd&#60;&#38;BTreeSet&#60;T,·A&#62;&#62;</a></li><li><a·href="#impl-BitOr%3C%26BTreeSet%3CT,+A%3E%3E-for-%26BTreeSet%3CT,+A%3E"·title="BitOr&#60;&#38;BTreeSet&#60;T,·A&#62;&#62;">BitOr&#60;&#38;BTreeSet&#60;T,·A&#62;&#62;</a></li><li><a·href="#impl-BitXor%3C%26BTreeSet%3CT,+A%3E%3E-for-%26BTreeSet%3CT,+A%3E"·title="BitXor&#60;&#38;BTreeSet&#60;T,·A&#62;&#62;">BitXor&#60;&#38;BTreeSet&#60;T,·A&#62;&#62;</a></li><li><a·href="#impl-Clone-for-BTreeSet%3CT,+A%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-BTreeSet%3CT,+A%3E"·title="Debug">Debug</a></li><li><a·href="#impl-Default-for-BTreeSet%3CT%3E"·title="Default">Default</a></li><li><a·href="#impl-Eq-for-BTreeSet%3CT,+A%3E"·title="Eq">Eq</a></li><li><a·href="#impl-Extend%3C%26T%3E-for-BTreeSet%3CT,+A%3E"·title="Extend&#60;&#38;&#39;a·T&#62;">Extend&#60;&#38;&#39;a·T&#62;</a></li><li><a·href="#impl-Extend%3CT%3E-for-BTreeSet%3CT,+A%3E"·title="Extend&#60;T&#62;">Extend&#60;T&#62;</a></li><li><a·href="#impl-From%3C%5BT;+N%5D%3E-for-BTreeSet%3CT%3E"·title="From&#60;[T;·N]&#62;">From&#60;[T;·N]&#62;</a></li><li><a·href="#impl-FromIterator%3CT%3E-for-BTreeSet%3CT%3E"·title="FromIterator&#60;T&#62;">FromIterator&#60;T&#62;</a></li><li><a·href="#impl-Hash-for-BTreeSet%3CT,+A%3E"·title="Hash">Hash</a></li><li><a·href="#impl-IntoIterator-for-%26BTreeSet%3CT,+A%3E"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-IntoIterator-for-BTreeSet%3CT,+A%3E"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-Ord-for-BTreeSet%3CT,+A%3E"·title="Ord">Ord</a></li><li><a·href="#impl-PartialEq-for-BTreeSet%3CT,+A%3E"·title="PartialEq">PartialEq</a></li><li><a·href="#impl-PartialOrd-for-BTreeSet%3CT,+A%3E"·title="PartialOrd">PartialOrd</a></li><li><a·href="#impl-Sub%3C%26BTreeSet%3CT,+A%3E%3E-for-%26BTreeSet%3CT,+A%3E"·title="Sub&#60;&#38;BTreeSet&#60;T,·A&#62;&#62;">Sub&#60;&#38;BTreeSet&#60;T,·A&#62;&#62;</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-BTreeSet%3CT,+A%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-BTreeSet%3CT,+A%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-BTreeSet%3CT,+A%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-BTreeSet%3CT,+A%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-BTreeSet%3CT,+A%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-BTreeSet%3CT,+A%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>collections::<wbr>btree_<wbr>set</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">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">btree_set</a></span><h1>Struct·<span·class="struct">BTreeSet</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/set.rs.html#73-78">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·BTreeSet&lt;T,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·+·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·=·<a·class="struct"·href="../../alloc/struct.Global.html"·title="struct·alloc::alloc::Global">Global</a>&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>An·ordered·set·based·on·a·B-Tree.</p>
2 <p>See·<a·href="../btree_map/struct.BTreeMap.html"·title="struct·alloc::collections::btree_map::BTreeMap"><code>BTreeMap</code></a>’s·documentation·for·a·detailed·discussion·of·this·collection’s·performance2 <p>See·<a·href="../btree_map/struct.BTreeMap.html"·title="struct·alloc::collections::btree_map::BTreeMap"><code>BTreeMap</code></a>’s·documentation·for·a·detailed·discussion·of·this·collection’s·performance
3 benefits·and·drawbacks.</p>3 benefits·and·drawbacks.</p>
4 <p>It·is·a·logic·error·for·an·item·to·be·modified·in·such·a·way·that·the·item’s·ordering·relative4 <p>It·is·a·logic·error·for·an·item·to·be·modified·in·such·a·way·that·the·item’s·ordering·relative
5 to·any·other·item,·as·determined·by·the·<a·href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord"><code>Ord</code></a>·trait,·changes·while·it·is·in·the·set.·This·is5 to·any·other·item,·as·determined·by·the·<a·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord"><code>Ord</code></a>·trait,·changes·while·it·is·in·the·set.·This·is
6 normally·only·possible·through·<a·href="https://doc.rust-lang.org/1.84.0/core/cell/struct.Cell.html"·title="struct·core::cell::Cell"><code>Cell</code></a>,·<a·href="https://doc.rust-lang.org/1.84.0/core/cell/struct.RefCell.html"·title="struct·core::cell::RefCell"><code>RefCell</code></a>,·global·state,·I/O,·or·unsafe·code.6 normally·only·possible·through·<a·href="../../../core/cell/struct.Cell.html"·title="struct·core::cell::Cell"><code>Cell</code></a>,·<a·href="../../../core/cell/struct.RefCell.html"·title="struct·core::cell::RefCell"><code>RefCell</code></a>,·global·state,·I/O,·or·unsafe·code.
7 The·behavior·resulting·from·such·a·logic·error·is·not·specified,·but·will·be·encapsulated·to·the7 The·behavior·resulting·from·such·a·logic·error·is·not·specified,·but·will·be·encapsulated·to·the
8 <code>BTreeSet</code>·that·observed·the·logic·error·and·not·result·in·undefined·behavior.·This·could8 <code>BTreeSet</code>·that·observed·the·logic·error·and·not·result·in·undefined·behavior.·This·could
9 include·panics,·incorrect·results,·aborts,·memory·leaks,·and·non-termination.</p>9 include·panics,·incorrect·results,·aborts,·memory·leaks,·and·non-termination.</p>
10 <p>Iterators·returned·by·<a·href="struct.BTreeSet.html#method.iter"·title="method·alloc::collections::btree_set::BTreeSet::iter"><code>BTreeSet::iter</code></a>·and·<a·href="struct.BTreeSet.html#method.into_iter"·title="method·alloc::collections::btree_set::BTreeSet::into_iter"><code>BTreeSet::into_iter</code></a>·produce·their·items·in·order,·and·take·worst-case10 <p>Iterators·returned·by·<a·href="struct.BTreeSet.html#method.iter"·title="method·alloc::collections::btree_set::BTreeSet::iter"><code>BTreeSet::iter</code></a>·and·<a·href="struct.BTreeSet.html#method.into_iter"·title="method·alloc::collections::btree_set::BTreeSet::into_iter"><code>BTreeSet::into_iter</code></a>·produce·their·items·in·order,·and·take·worst-case
11 logarithmic·and·amortized·constant·time·per·item·returned.</p>11 logarithmic·and·amortized·constant·time·per·item·returned.</p>
12 <h2·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h2>12 <h2·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h2>
13 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BTreeSet;13 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BTreeSet;
Offset 42, 24 lines modifiedOffset 42, 24 lines modified
42 <span·class="kw">let·</span>set·=·BTreeSet::from([<span·class="number">1</span>,·<span·class="number">2</span>,·<span·class="number">3</span>]);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::BTreeSet;%0A++++%0A++++let+set+=+BTreeSet::from(%5B1,+2,+3%5D);%0A%7D&amp;edition=2021"></a></div>42 <span·class="kw">let·</span>set·=·BTreeSet::from([<span·class="number">1</span>,·<span·class="number">2</span>,·<span·class="number">3</span>]);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::BTreeSet;%0A++++%0A++++let+set+=+BTreeSet::from(%5B1,+2,+3%5D);%0A%7D&amp;edition=2021"></a></div>
43 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-BTreeSet%3CT%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/set.rs.html#323-342">Source</a><a·href="#impl-BTreeSet%3CT%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="struct"·href="struct.BTreeSet.html"·title="struct·alloc::collections::btree_set::BTreeSet">BTreeSet</a>&lt;T&gt;</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.new"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0,·const·since·1.66.0">1.0.0·(const:·1.66.0)</span>···<a·class="src"·href="../../../src/alloc/collections/btree/set.rs.html#339-341">Source</a></span><h4·class="code-header">pub·const·fn·<a·href="#method.new"·class="fn">new</a>()·-&gt;·<a·class="struct"·href="struct.BTreeSet.html"·title="struct·alloc::collections::btree_set::BTreeSet">BTreeSet</a>&lt;T&gt;</h4></section></summary><div·class="docblock"><p>Makes·a·new,·empty·<code>BTreeSet</code>.</p>43 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-BTreeSet%3CT%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/set.rs.html#323-342">Source</a><a·href="#impl-BTreeSet%3CT%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="struct"·href="struct.BTreeSet.html"·title="struct·alloc::collections::btree_set::BTreeSet">BTreeSet</a>&lt;T&gt;</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.new"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0,·const·since·1.66.0">1.0.0·(const:·1.66.0)</span>···<a·class="src"·href="../../../src/alloc/collections/btree/set.rs.html#339-341">Source</a></span><h4·class="code-header">pub·const·fn·<a·href="#method.new"·class="fn">new</a>()·-&gt;·<a·class="struct"·href="struct.BTreeSet.html"·title="struct·alloc::collections::btree_set::BTreeSet">BTreeSet</a>&lt;T&gt;</h4></section></summary><div·class="docblock"><p>Makes·a·new,·empty·<code>BTreeSet</code>.</p>
44 <p>Does·not·allocate·anything·on·its·own.</p>44 <p>Does·not·allocate·anything·on·its·own.</p>
45 <h5·id="examples-1"><a·class="doc-anchor"·href="#examples-1">§</a>Examples</h5>45 <h5·id="examples-1"><a·class="doc-anchor"·href="#examples-1">§</a>Examples</h5>
46 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BTreeSet;46 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BTreeSet;
  
47 <span·class="kw">let·</span><span·class="kw-2">mut·</span>set:·BTreeSet&lt;i32&gt;·=·BTreeSet::new();</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Ballow(unused_mut)%5D%0Afn+main()+%7B%0A++++use+std::collections::BTreeSet;%0A++++%0A++++let+mut+set:+BTreeSet%3Ci32%3E+=+BTreeSet::new();%0A%7D&amp;edition=2021"></a></div>47 <span·class="kw">let·</span><span·class="kw-2">mut·</span>set:·BTreeSet&lt;i32&gt;·=·BTreeSet::new();</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Ballow(unused_mut)%5D%0Afn+main()+%7B%0A++++use+std::collections::BTreeSet;%0A++++%0A++++let+mut+set:+BTreeSet%3Ci32%3E+=+BTreeSet::new();%0A%7D&amp;edition=2021"></a></div>
48 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-BTreeSet%3CT,+A%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/set.rs.html#344-1357">Source</a><a·href="#impl-BTreeSet%3CT,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>&gt;·<a·class="struct"·href="struct.BTreeSet.html"·title="struct·alloc::collections::btree_set::BTreeSet">BTreeSet</a>&lt;T,·A&gt;</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.new_in"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/set.rs.html#359-361">Source</a><h4·class="code-header">pub·const·fn·<a·href="#method.new_in"·class="fn">new_in</a>(alloc:·A)·-&gt;·<a·class="struct"·href="struct.BTreeSet.html"·title="struct·alloc::collections::btree_set::BTreeSet">BTreeSet</a>&lt;T,·A&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>btreemap_alloc</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/32838">#32838</a>)</span></div></span></summary><div·class="docblock"><p>Makes·a·new·<code>BTreeSet</code>·with·a·reasonable·choice·of·B.</p>48 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-BTreeSet%3CT,+A%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/set.rs.html#344-1357">Source</a><a·href="#impl-BTreeSet%3CT,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·+·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>&gt;·<a·class="struct"·href="struct.BTreeSet.html"·title="struct·alloc::collections::btree_set::BTreeSet">BTreeSet</a>&lt;T,·A&gt;</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.new_in"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/set.rs.html#359-361">Source</a><h4·class="code-header">pub·const·fn·<a·href="#method.new_in"·class="fn">new_in</a>(alloc:·A)·-&gt;·<a·class="struct"·href="struct.BTreeSet.html"·title="struct·alloc::collections::btree_set::BTreeSet">BTreeSet</a>&lt;T,·A&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>btreemap_alloc</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/32838">#32838</a>)</span></div></span></summary><div·class="docblock"><p>Makes·a·new·<code>BTreeSet</code>·with·a·reasonable·choice·of·B.</p>
49 <h5·id="examples-2"><a·class="doc-anchor"·href="#examples-2">§</a>Examples</h5>49 <h5·id="examples-2"><a·class="doc-anchor"·href="#examples-2">§</a>Examples</h5>
50 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BTreeSet;50 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BTreeSet;
51 <span·class="kw">use·</span>std::alloc::Global;51 <span·class="kw">use·</span>std::alloc::Global;
  
52 <span·class="kw">let·</span><span·class="kw-2">mut·</span>set:·BTreeSet&lt;i32&gt;·=·BTreeSet::new_in(Global);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Bfeature(allocator_api)%5D%0A%23!%5Bfeature(btreemap_alloc)%5D%0A%23!%5Ballow(unused_mut)%5D%0A%23%5Ballow(unused_extern_crates)%5D%0Aextern+crate+r%23alloc;%0Afn+main()+%7B%0A++++use+std::collections::BTreeSet;%0A++++use+std::alloc::Global;%0A++++%0A++++let+mut+set:+BTreeSet%3Ci32%3E+=+BTreeSet::new_in(Global);%0A%7D&amp;version=nightly&amp;edition=2021"></a></div>52 <span·class="kw">let·</span><span·class="kw-2">mut·</span>set:·BTreeSet&lt;i32&gt;·=·BTreeSet::new_in(Global);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Bfeature(allocator_api)%5D%0A%23!%5Bfeature(btreemap_alloc)%5D%0A%23!%5Ballow(unused_mut)%5D%0A%23%5Ballow(unused_extern_crates)%5D%0Aextern+crate+r%23alloc;%0Afn+main()+%7B%0A++++use+std::collections::BTreeSet;%0A++++use+std::alloc::Global;%0A++++%0A++++let+mut+set:+BTreeSet%3Ci32%3E+=+BTreeSet::new_in(Global);%0A%7D&amp;version=nightly&amp;edition=2021"></a></div>
53 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.range"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.17.0">1.17.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/set.rs.html#391-398">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.range"·class="fn">range</a>&lt;K,·R&gt;(&amp;self,·range:·R)·-&gt;·<a·class="struct"·href="struct.Range.html"·title="struct·alloc::collections::btree_set::Range">Range</a>&lt;'_,·T&gt;·<a·href="#"·class="tooltip"·data-notable-ty="Range&lt;&#39;_,·T&gt;">ⓘ</a><div·class="where">where53 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.range"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.17.0">1.17.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/set.rs.html#391-398">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.range"·class="fn">range</a>&lt;K,·R&gt;(&amp;self,·range:·R)·-&gt;·<a·class="struct"·href="struct.Range.html"·title="struct·alloc::collections::btree_set::Range">Range</a>&lt;'_,·T&gt;·<a·href="#"·class="tooltip"·data-notable-ty="Range&lt;&#39;_,·T&gt;">ⓘ</a><div·class="where">where
54 ····K:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>, 
55 ····T:·<a·class="trait"·href="../../borrow/trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;K&gt;·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,54 ····K:·<a·class="trait"·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>·+·?<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
 55 ····T:·<a·class="trait"·href="../../borrow/trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;K&gt;·+·<a·class="trait"·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,
56 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/range/trait.RangeBounds.html"·title="trait·core::ops::range::RangeBounds">RangeBounds</a>&lt;K&gt;,</div></h4></section></summary><div·class="docblock"><p>Constructs·a·double-ended·iterator·over·a·sub-range·of·elements·in·the·set.56 ····R:·<a·class="trait"·href="../../../core/ops/range/trait.RangeBounds.html"·title="trait·core::ops::range::RangeBounds">RangeBounds</a>&lt;K&gt;,</div></h4></section></summary><div·class="docblock"><p>Constructs·a·double-ended·iterator·over·a·sub-range·of·elements·in·the·set.
57 The·simplest·way·is·to·use·the·range·syntax·<code>min..max</code>,·thus·<code>range(min..max)</code>·will57 The·simplest·way·is·to·use·the·range·syntax·<code>min..max</code>,·thus·<code>range(min..max)</code>·will
58 yield·elements·from·min·(inclusive)·to·max·(exclusive).58 yield·elements·from·min·(inclusive)·to·max·(exclusive).
59 The·range·may·also·be·entered·as·<code>(Bound&lt;T&gt;,·Bound&lt;T&gt;)</code>,·so·for·example59 The·range·may·also·be·entered·as·<code>(Bound&lt;T&gt;,·Bound&lt;T&gt;)</code>,·so·for·example
60 <code>range((Excluded(4),·Included(10)))</code>·will·yield·a·left-exclusive,·right-inclusive60 <code>range((Excluded(4),·Included(10)))</code>·will·yield·a·left-exclusive,·right-inclusive
61 range·from·4·to·10.</p>61 range·from·4·to·10.</p>
62 <h5·id="panics"><a·class="doc-anchor"·href="#panics">§</a>Panics</h5>62 <h5·id="panics"><a·class="doc-anchor"·href="#panics">§</a>Panics</h5>
63 <p>Panics·if·range·<code>start·&gt;·end</code>.63 <p>Panics·if·range·<code>start·&gt;·end</code>.
Offset 76, 15 lines modifiedOffset 76, 15 lines modified
76 ····<span·class="macro">println!</span>(<span·class="string">"{elem}"</span>);76 ····<span·class="macro">println!</span>(<span·class="string">"{elem}"</span>);
77 }77 }
78 <span·class="macro">assert_eq!</span>(<span·class="prelude-val">Some</span>(<span·class="kw-2">&amp;</span><span·class="number">5</span>),·set.range(<span·class="number">4</span>..).next());</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::BTreeSet;%0A++++use+std::ops::Bound::Included;%0A++++%0A++++let+mut+set+=+BTreeSet::new();%0A++++set.insert(3);%0A++++set.insert(5);%0A++++set.insert(8);%0A++++for+%26elem+in+set.range((Included(%264),+Included(%268)))+%7B%0A++++++++println!(%22%7Belem%7D%22);%0A++++%7D%0A++++assert_eq!(Some(%265),+set.range(4..).next());%0A%7D&amp;edition=2021"></a></div>78 <span·class="macro">assert_eq!</span>(<span·class="prelude-val">Some</span>(<span·class="kw-2">&amp;</span><span·class="number">5</span>),·set.range(<span·class="number">4</span>..).next());</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::BTreeSet;%0A++++use+std::ops::Bound::Included;%0A++++%0A++++let+mut+set+=+BTreeSet::new();%0A++++set.insert(3);%0A++++set.insert(5);%0A++++set.insert(8);%0A++++for+%26elem+in+set.range((Included(%264),+Included(%268)))+%7B%0A++++++++println!(%22%7Belem%7D%22);%0A++++%7D%0A++++assert_eq!(Some(%265),+set.range(4..).next());%0A%7D&amp;edition=2021"></a></div>
79 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.difference"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/set.rs.html#421-459">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.difference"·class="fn">difference</a>&lt;'a&gt;(79 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.difference"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/set.rs.html#421-459">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.difference"·class="fn">difference</a>&lt;'a&gt;(
80 ····&amp;'a·self,80 ····&amp;'a·self,
81 ····other:·&amp;'a·<a·class="struct"·href="struct.BTreeSet.html"·title="struct·alloc::collections::btree_set::BTreeSet">BTreeSet</a>&lt;T,·A&gt;,81 ····other:·&amp;'a·<a·class="struct"·href="struct.BTreeSet.html"·title="struct·alloc::collections::btree_set::BTreeSet">BTreeSet</a>&lt;T,·A&gt;,
82 )·-&gt;·<a·class="struct"·href="struct.Difference.html"·title="struct·alloc::collections::btree_set::Difference">Difference</a>&lt;'a,·T,·A&gt;·<a·href="#"·class="tooltip"·data-notable-ty="Difference&lt;&#39;a,·T,·A&gt;">ⓘ</a><div·class="where">where82 )·-&gt;·<a·class="struct"·href="struct.Difference.html"·title="struct·alloc::collections::btree_set::Difference">Difference</a>&lt;'a,·T,·A&gt;·<a·href="#"·class="tooltip"·data-notable-ty="Difference&lt;&#39;a,·T,·A&gt;">ⓘ</a><div·class="where">where
83 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,</div></h4></section></summary><div·class="docblock"><p>Visits·the·elements·representing·the·difference,83 ····T:·<a·class="trait"·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,</div></h4></section></summary><div·class="docblock"><p>Visits·the·elements·representing·the·difference,
84 i.e.,·the·elements·that·are·in·<code>self</code>·but·not·in·<code>other</code>,84 i.e.,·the·elements·that·are·in·<code>self</code>·but·not·in·<code>other</code>,
85 in·ascending·order.</p>85 in·ascending·order.</p>
86 <h5·id="examples-4"><a·class="doc-anchor"·href="#examples-4">§</a>Examples</h5>86 <h5·id="examples-4"><a·class="doc-anchor"·href="#examples-4">§</a>Examples</h5>
87 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BTreeSet;87 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BTreeSet;
  
88 <span·class="kw">let·</span><span·class="kw-2">mut·</span>a·=·BTreeSet::new();88 <span·class="kw">let·</span><span·class="kw-2">mut·</span>a·=·BTreeSet::new();
89 a.insert(<span·class="number">1</span>);89 a.insert(<span·class="number">1</span>);
Offset 96, 15 lines modifiedOffset 96, 15 lines modified
  
96 <span·class="kw">let·</span>diff:·Vec&lt;<span·class="kw">_</span>&gt;·=·a.difference(<span·class="kw-2">&amp;</span>b).cloned().collect();96 <span·class="kw">let·</span>diff:·Vec&lt;<span·class="kw">_</span>&gt;·=·a.difference(<span·class="kw-2">&amp;</span>b).cloned().collect();
97 <span·class="macro">assert_eq!</span>(diff,·[<span·class="number">1</span>]);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::BTreeSet;%0A++++%0A++++let+mut+a+=+BTreeSet::new();%0A++++a.insert(1);%0A++++a.insert(2);%0A++++%0A++++let+mut+b+=+BTreeSet::new();%0A++++b.insert(2);%0A++++b.insert(3);%0A++++%0A++++let+diff:+Vec%3C_%3E+=+a.difference(%26b).cloned().collect();%0A++++assert_eq!(diff,+%5B1%5D);%0A%7D&amp;edition=2021"></a></div>97 <span·class="macro">assert_eq!</span>(diff,·[<span·class="number">1</span>]);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::BTreeSet;%0A++++%0A++++let+mut+a+=+BTreeSet::new();%0A++++a.insert(1);%0A++++a.insert(2);%0A++++%0A++++let+mut+b+=+BTreeSet::new();%0A++++b.insert(2);%0A++++b.insert(3);%0A++++%0A++++let+diff:+Vec%3C_%3E+=+a.difference(%26b).cloned().collect();%0A++++assert_eq!(diff,+%5B1%5D);%0A%7D&amp;edition=2021"></a></div>
98 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.symmetric_difference"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/set.rs.html#482-490">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.symmetric_difference"·class="fn">symmetric_difference</a>&lt;'a&gt;(98 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.symmetric_difference"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/set.rs.html#482-490">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.symmetric_difference"·class="fn">symmetric_difference</a>&lt;'a&gt;(
99 ····&amp;'a·self,99 ····&amp;'a·self,
100 ····other:·&amp;'a·<a·class="struct"·href="struct.BTreeSet.html"·title="struct·alloc::collections::btree_set::BTreeSet">BTreeSet</a>&lt;T,·A&gt;,100 ····other:·&amp;'a·<a·class="struct"·href="struct.BTreeSet.html"·title="struct·alloc::collections::btree_set::BTreeSet">BTreeSet</a>&lt;T,·A&gt;,
101 )·-&gt;·<a·class="struct"·href="struct.SymmetricDifference.html"·title="struct·alloc::collections::btree_set::SymmetricDifference">SymmetricDifference</a>&lt;'a,·T&gt;·<a·href="#"·class="tooltip"·data-notable-ty="SymmetricDifference&lt;&#39;a,·T&gt;">ⓘ</a><div·class="where">where101 )·-&gt;·<a·class="struct"·href="struct.SymmetricDifference.html"·title="struct·alloc::collections::btree_set::SymmetricDifference">SymmetricDifference</a>&lt;'a,·T&gt;·<a·href="#"·class="tooltip"·data-notable-ty="SymmetricDifference&lt;&#39;a,·T&gt;">ⓘ</a><div·class="where">where
102 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,</div></h4></section></summary><div·class="docblock"><p>Visits·the·elements·representing·the·symmetric·difference,102 ····T:·<a·class="trait"·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,</div></h4></section></summary><div·class="docblock"><p>Visits·the·elements·representing·the·symmetric·difference,
103 i.e.,·the·elements·that·are·in·<code>self</code>·or·in·<code>other</code>·but·not·in·both,103 i.e.,·the·elements·that·are·in·<code>self</code>·or·in·<code>other</code>·but·not·in·both,
104 in·ascending·order.</p>104 in·ascending·order.</p>
105 <h5·id="examples-5"><a·class="doc-anchor"·href="#examples-5">§</a>Examples</h5>105 <h5·id="examples-5"><a·class="doc-anchor"·href="#examples-5">§</a>Examples</h5>
106 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BTreeSet;106 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BTreeSet;
  
107 <span·class="kw">let·</span><span·class="kw-2">mut·</span>a·=·BTreeSet::new();107 <span·class="kw">let·</span><span·class="kw-2">mut·</span>a·=·BTreeSet::new();
108 a.insert(<span·class="number">1</span>);108 a.insert(<span·class="number">1</span>);
Offset 116, 15 lines modifiedOffset 116, 15 lines modified
  
116 <span·class="kw">let·</span>sym_diff:·Vec&lt;<span·class="kw">_</span>&gt;·=·a.symmetric_difference(<span·class="kw-2">&amp;</span>b).cloned().collect();116 <span·class="kw">let·</span>sym_diff:·Vec&lt;<span·class="kw">_</span>&gt;·=·a.symmetric_difference(<span·class="kw-2">&amp;</span>b).cloned().collect();
117 <span·class="macro">assert_eq!</span>(sym_diff,·[<span·class="number">1</span>,·<span·class="number">3</span>]);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::BTreeSet;%0A++++%0A++++let+mut+a+=+BTreeSet::new();%0A++++a.insert(1);%0A++++a.insert(2);%0A++++%0A++++let+mut+b+=+BTreeSet::new();%0A++++b.insert(2);%0A++++b.insert(3);%0A++++%0A++++let+sym_diff:+Vec%3C_%3E+=+a.symmetric_difference(%26b).cloned().collect();%0A++++assert_eq!(sym_diff,+%5B1,+3%5D);%0A%7D&amp;edition=2021"></a></div>117 <span·class="macro">assert_eq!</span>(sym_diff,·[<span·class="number">1</span>,·<span·class="number">3</span>]);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::BTreeSet;%0A++++%0A++++let+mut+a+=+BTreeSet::new();%0A++++a.insert(1);%0A++++a.insert(2);%0A++++%0A++++let+mut+b+=+BTreeSet::new();%0A++++b.insert(2);%0A++++b.insert(3);%0A++++%0A++++let+sym_diff:+Vec%3C_%3E+=+a.symmetric_difference(%26b).cloned().collect();%0A++++assert_eq!(sym_diff,+%5B1,+3%5D);%0A%7D&amp;edition=2021"></a></div>
118 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersection"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/set.rs.html#513-543">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.intersection"·class="fn">intersection</a>&lt;'a&gt;(118 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersection"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/set.rs.html#513-543">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.intersection"·class="fn">intersection</a>&lt;'a&gt;(
119 ····&amp;'a·self,119 ····&amp;'a·self,
120 ····other:·&amp;'a·<a·class="struct"·href="struct.BTreeSet.html"·title="struct·alloc::collections::btree_set::BTreeSet">BTreeSet</a>&lt;T,·A&gt;,120 ····other:·&amp;'a·<a·class="struct"·href="struct.BTreeSet.html"·title="struct·alloc::collections::btree_set::BTreeSet">BTreeSet</a>&lt;T,·A&gt;,
121 )·-&gt;·<a·class="struct"·href="struct.Intersection.html"·title="struct·alloc::collections::btree_set::Intersection">Intersection</a>&lt;'a,·T,·A&gt;·<a·href="#"·class="tooltip"·data-notable-ty="Intersection&lt;&#39;a,·T,·A&gt;">ⓘ</a><div·class="where">where121 )·-&gt;·<a·class="struct"·href="struct.Intersection.html"·title="struct·alloc::collections::btree_set::Intersection">Intersection</a>&lt;'a,·T,·A&gt;·<a·href="#"·class="tooltip"·data-notable-ty="Intersection&lt;&#39;a,·T,·A&gt;">ⓘ</a><div·class="where">where
122 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,</div></h4></section></summary><div·class="docblock"><p>Visits·the·elements·representing·the·intersection,122 ····T:·<a·class="trait"·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,</div></h4></section></summary><div·class="docblock"><p>Visits·the·elements·representing·the·intersection,
123 i.e.,·the·elements·that·are·both·in·<code>self</code>·and·<code>other</code>,123 i.e.,·the·elements·that·are·both·in·<code>self</code>·and·<code>other</code>,
124 in·ascending·order.</p>124 in·ascending·order.</p>
125 <h5·id="examples-6"><a·class="doc-anchor"·href="#examples-6">§</a>Examples</h5>125 <h5·id="examples-6"><a·class="doc-anchor"·href="#examples-6">§</a>Examples</h5>
126 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BTreeSet;126 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BTreeSet;
  
127 <span·class="kw">let·</span><span·class="kw-2">mut·</span>a·=·BTreeSet::new();127 <span·class="kw">let·</span><span·class="kw-2">mut·</span>a·=·BTreeSet::new();
128 a.insert(<span·class="number">1</span>);128 a.insert(<span·class="number">1</span>);
Offset 133, 92 lines modifiedOffset 133, 92 lines modified
133 <span·class="kw">let·</span><span·class="kw-2">mut·</span>b·=·BTreeSet::new();133 <span·class="kw">let·</span><span·class="kw-2">mut·</span>b·=·BTreeSet::new();
134 b.insert(<span·class="number">2</span>);134 b.insert(<span·class="number">2</span>);
135 b.insert(<span·class="number">3</span>);135 b.insert(<span·class="number">3</span>);
  
136 <span·class="kw">let·</span>intersection:·Vec&lt;<span·class="kw">_</span>&gt;·=·a.intersection(<span·class="kw-2">&amp;</span>b).cloned().collect();136 <span·class="kw">let·</span>intersection:·Vec&lt;<span·class="kw">_</span>&gt;·=·a.intersection(<span·class="kw-2">&amp;</span>b).cloned().collect();
137 <span·class="macro">assert_eq!</span>(intersection,·[<span·class="number">2</span>]);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::BTreeSet;%0A++++%0A++++let+mut+a+=+BTreeSet::new();%0A++++a.insert(1);%0A++++a.insert(2);%0A++++%0A++++let+mut+b+=+BTreeSet::new();%0A++++b.insert(2);%0A++++b.insert(3);%0A++++%0A++++let+intersection:+Vec%3C_%3E+=+a.intersection(%26b).cloned().collect();%0A++++assert_eq!(intersection,+%5B2%5D);%0A%7D&amp;edition=2021"></a></div>137 <span·class="macro">assert_eq!</span>(intersection,·[<span·class="number">2</span>]);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::BTreeSet;%0A++++%0A++++let+mut+a+=+BTreeSet::new();%0A++++a.insert(1);%0A++++a.insert(2);%0A++++%0A++++let+mut+b+=+BTreeSet::new();%0A++++b.insert(2);%0A++++b.insert(3);%0A++++%0A++++let+intersection:+Vec%3C_%3E+=+a.intersection(%26b).cloned().collect();%0A++++assert_eq!(intersection,+%5B2%5D);%0A%7D&amp;edition=2021"></a></div>
138 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.union"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/set.rs.html#564-569">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.union"·class="fn">union</a>&lt;'a&gt;(&amp;'a·self,·other:·&amp;'a·<a·class="struct"·href="struct.BTreeSet.html"·title="struct·alloc::collections::btree_set::BTreeSet">BTreeSet</a>&lt;T,·A&gt;)·-&gt;·<a·class="struct"·href="struct.Union.html"·title="struct·alloc::collections::btree_set::Union">Union</a>&lt;'a,·T&gt;·<a·href="#"·class="tooltip"·data-notable-ty="Union&lt;&#39;a,·T&gt;">ⓘ</a><div·class="where">where138 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.union"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/set.rs.html#564-569">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.union"·class="fn">union</a>&lt;'a&gt;(&amp;'a·self,·other:·&amp;'a·<a·class="struct"·href="struct.BTreeSet.html"·title="struct·alloc::collections::btree_set::BTreeSet">BTreeSet</a>&lt;T,·A&gt;)·-&gt;·<a·class="struct"·href="struct.Union.html"·title="struct·alloc::collections::btree_set::Union">Union</a>&lt;'a,·T&gt;·<a·href="#"·class="tooltip"·data-notable-ty="Union&lt;&#39;a,·T&gt;">ⓘ</a><div·class="where">where
139 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,</div></h4></section></summary><div·class="docblock"><p>Visits·the·elements·representing·the·union,139 ····T:·<a·class="trait"·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,</div></h4></section></summary><div·class="docblock"><p>Visits·the·elements·representing·the·union,
140 i.e.,·all·the·elements·in·<code>self</code>·or·<code>other</code>,·without·duplicates,140 i.e.,·all·the·elements·in·<code>self</code>·or·<code>other</code>,·without·duplicates,
141 in·ascending·order.</p>141 in·ascending·order.</p>
142 <h5·id="examples-7"><a·class="doc-anchor"·href="#examples-7">§</a>Examples</h5>142 <h5·id="examples-7"><a·class="doc-anchor"·href="#examples-7">§</a>Examples</h5>
143 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BTreeSet;143 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BTreeSet;
  
144 <span·class="kw">let·</span><span·class="kw-2">mut·</span>a·=·BTreeSet::new();144 <span·class="kw">let·</span><span·class="kw-2">mut·</span>a·=·BTreeSet::new();
145 a.insert(<span·class="number">1</span>);145 a.insert(<span·class="number">1</span>);
  
146 <span·class="kw">let·</span><span·class="kw-2">mut·</span>b·=·BTreeSet::new();146 <span·class="kw">let·</span><span·class="kw-2">mut·</span>b·=·BTreeSet::new();
147 b.insert(<span·class="number">2</span>);147 b.insert(<span·class="number">2</span>);
  
148 <span·class="kw">let·union</span>:·Vec&lt;<span·class="kw">_</span>&gt;·=·a.union(<span·class="kw-2">&amp;</span>b).cloned().collect();148 <span·class="kw">let·union</span>:·Vec&lt;<span·class="kw">_</span>&gt;·=·a.union(<span·class="kw-2">&amp;</span>b).cloned().collect();
149 <span·class="macro">assert_eq!</span>(union,·[<span·class="number">1</span>,·<span·class="number">2</span>]);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::BTreeSet;%0A++++%0A++++let+mut+a+=+BTreeSet::new();%0A++++a.insert(1);%0A++++%0A++++let+mut+b+=+BTreeSet::new();%0A++++b.insert(2);%0A++++%0A++++let+union:+Vec%3C_%3E+=+a.union(%26b).cloned().collect();%0A++++assert_eq!(union,+%5B1,+2%5D);%0A%7D&amp;edition=2021"></a></div>149 <span·class="macro">assert_eq!</span>(union,·[<span·class="number">1</span>,·<span·class="number">2</span>]);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::BTreeSet;%0A++++%0A++++let+mut+a+=+BTreeSet::new();%0A++++a.insert(1);%0A++++%0A++++let+mut+b+=+BTreeSet::new();%0A++++b.insert(2);%0A++++%0A++++let+union:+Vec%3C_%3E+=+a.union(%26b).cloned().collect();%0A++++assert_eq!(union,+%5B1,+2%5D);%0A%7D&amp;edition=2021"></a></div>
150 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clear"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/set.rs.html#584-589">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.clear"·class="fn">clear</a>(&amp;mut·self)<div·class="where">where150 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clear"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/set.rs.html#584-589">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.clear"·class="fn">clear</a>(&amp;mut·self)<div·class="where">where
151 ····A:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><div·class="docblock"><p>Clears·the·set,·removing·all·elements.</p>151 ····A:·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><div·class="docblock"><p>Clears·the·set,·removing·all·elements.</p>
152 <h5·id="examples-8"><a·class="doc-anchor"·href="#examples-8">§</a>Examples</h5>152 <h5·id="examples-8"><a·class="doc-anchor"·href="#examples-8">§</a>Examples</h5>
153 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BTreeSet;153 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BTreeSet;
  
154 <span·class="kw">let·</span><span·class="kw-2">mut·</span>v·=·BTreeSet::new();154 <span·class="kw">let·</span><span·class="kw-2">mut·</span>v·=·BTreeSet::new();
155 v.insert(<span·class="number">1</span>);155 v.insert(<span·class="number">1</span>);
156 v.clear();156 v.clear();
157 <span·class="macro">assert!</span>(v.is_empty());</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::BTreeSet;%0A++++%0A++++let+mut+v+=+BTreeSet::new();%0A++++v.insert(1);%0A++++v.clear();%0A++++assert!(v.is_empty());%0A%7D&amp;edition=2021"></a></div>157 <span·class="macro">assert!</span>(v.is_empty());</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::BTreeSet;%0A++++%0A++++let+mut+v+=+BTreeSet::new();%0A++++v.insert(1);%0A++++v.clear();%0A++++assert!(v.is_empty());%0A%7D&amp;edition=2021"></a></div>
158 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.contains"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/set.rs.html#607-613">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.contains"·class="fn">contains</a>&lt;Q&gt;(&amp;self,·value:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;Q</a>)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html">bool</a><div·class="where">where158 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.contains"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/set.rs.html#607-613">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.contains"·class="fn">contains</a>&lt;Q&gt;(&amp;self,·value:·<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;Q</a>)·-&gt;·<a·class="primitive"·href="../../../core/primitive.bool.html">bool</a><div·class="where">where
159 ····T:·<a·class="trait"·href="../../borrow/trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;Q&gt;·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>, 
160 ····Q:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</[·...·truncated·by·diffoscope;·len:·134,·SHA:·7846a09f73be5648a242efc25a1610d3a0d538a574f4ca3de713e542e3c7c7a8·...·]159 ····T:·<a·class="trait"·href="../../borrow/trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;Q&gt;·+·<a·class="trait"·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,
 160 ····Q:·<a·class="trait"·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>·+·?<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class="docblock"><p>Returns·<code>true</code>·if·the·set·contains·an·element·equal·to·the·value.</p>
161 <p>The·value·may·be·any·borrowed·form·of·the·set’s·element·type,161 <p>The·value·may·be·any·borrowed·form·of·the·set’s·element·type,
162 but·the·ordering·on·the·borrowed·form·<em>must</em>·match·the162 but·the·ordering·on·the·borrowed·form·<em>must</em>·match·the
163 ordering·on·the·element·type.</p>163 ordering·on·the·element·type.</p>
164 <h5·id="examples-9"><a·class="doc-anchor"·href="#examples-9">§</a>Examples</h5>164 <h5·id="examples-9"><a·class="doc-anchor"·href="#examples-9">§</a>Examples</h5>
165 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BTreeSet;165 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BTreeSet;
Max diff block lines reached; 246307/292850 bytes (84.11%) of diff not shown.
58.7 KB
./usr/share/doc/rust-doc/html/alloc/collections/btree_set/struct.Cursor.html
    
Offset 1, 34 lines modifiedOffset 1, 34 lines modified
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="A·cursor·over·a·`BTreeSet`."><title>Cursor·in·alloc::collections::btree_set·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»    2025-01-07)» (built»   from»       a»      source»tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Cursor</a></h2><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.next"·title="next">next</a></li><li><a·href="#method.peek_next"·title="peek_next">peek_next</a></li><li><a·href="#method.peek_prev"·title="peek_prev">peek_prev</a></li><li><a·href="#method.prev"·title="prev">prev</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-Cursor%3C'a,+K%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-Cursor%3C'_,+K%3E"·title="Debug">Debug</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-Cursor%3C'a,+K%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Cursor%3C'a,+K%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Cursor%3C'a,+K%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-Cursor%3C'a,+K%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-Cursor%3C'a,+K%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Cursor%3C'a,+K%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>collections::<wbr>btree_<wbr>set</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">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">btree_set</a></span><h1>Struct·<span·class="struct">Cursor</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/alloc/collections/btree/set.rs.html#2001-2003">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·Cursor&lt;'a,·K:·'a&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>btree_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/107540">#107540</a>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>A·cursor·over·a·<code>BTreeSet</code>.</p>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="A·cursor·over·a·`BTreeSet`."><title>Cursor·in·alloc::collections::btree_set·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»    2025-01-07)» (built»   from»       a»      source»tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Cursor</a></h2><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.next"·title="next">next</a></li><li><a·href="#method.peek_next"·title="peek_next">peek_next</a></li><li><a·href="#method.peek_prev"·title="peek_prev">peek_prev</a></li><li><a·href="#method.prev"·title="prev">prev</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-Cursor%3C'a,+K%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-Cursor%3C'_,+K%3E"·title="Debug">Debug</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-Cursor%3C'a,+K%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Cursor%3C'a,+K%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Cursor%3C'a,+K%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-Cursor%3C'a,+K%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-Cursor%3C'a,+K%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Cursor%3C'a,+K%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>collections::<wbr>btree_<wbr>set</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">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">btree_set</a></span><h1>Struct·<span·class="struct">Cursor</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/alloc/collections/btree/set.rs.html#2001-2003">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·Cursor&lt;'a,·K:·'a&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>btree_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/107540">#107540</a>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>A·cursor·over·a·<code>BTreeSet</code>.</p>
2 <p>A·<code>Cursor</code>·is·like·an·iterator,·except·that·it·can·freely·seek·back-and-forth.</p>2 <p>A·<code>Cursor</code>·is·like·an·iterator,·except·that·it·can·freely·seek·back-and-forth.</p>
3 <p>Cursors·always·point·to·a·gap·between·two·elements·in·the·set,·and·can3 <p>Cursors·always·point·to·a·gap·between·two·elements·in·the·set,·and·can
4 operate·on·the·two·immediately·adjacent·elements.</p>4 operate·on·the·two·immediately·adjacent·elements.</p>
5 <p>A·<code>Cursor</code>·is·created·with·the·<a·href="struct.BTreeSet.html#method.lower_bound"·title="method·alloc::collections::btree_set::BTreeSet::lower_bound"><code>BTreeSet::lower_bound</code></a>·and·<a·href="struct.BTreeSet.html#method.upper_bound"·title="method·alloc::collections::btree_set::BTreeSet::upper_bound"><code>BTreeSet::upper_bound</code></a>·methods.</p>5 <p>A·<code>Cursor</code>·is·created·with·the·<a·href="struct.BTreeSet.html#method.lower_bound"·title="method·alloc::collections::btree_set::BTreeSet::lower_bound"><code>BTreeSet::lower_bound</code></a>·and·<a·href="struct.BTreeSet.html#method.upper_bound"·title="method·alloc::collections::btree_set::BTreeSet::upper_bound"><code>BTreeSet::upper_bound</code></a>·methods.</p>
6 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Cursor%3C'a,+K%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/set.rs.html#2074-2110">Source</a><a·href="#impl-Cursor%3C'a,+K%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·K&gt;·<a·class="struct"·href="struct.Cursor.html"·title="struct·alloc::collections::btree_set::Cursor">Cursor</a>&lt;'a,·K&gt;</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.next"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/set.rs.html#2081-2083">Source</a><h4·class="code-header">pub·fn·<a·href="#method.next"·class="fn">next</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;'a·K</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>btree_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/107540">#107540</a>)</span></div></span></summary><div·class="docblock"><p>Advances·the·cursor·to·the·next·gap,·returning·the·element·that·it6 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Cursor%3C'a,+K%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/set.rs.html#2074-2110">Source</a><a·href="#impl-Cursor%3C'a,+K%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·K&gt;·<a·class="struct"·href="struct.Cursor.html"·title="struct·alloc::collections::btree_set::Cursor">Cursor</a>&lt;'a,·K&gt;</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.next"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/set.rs.html#2081-2083">Source</a><h4·class="code-header">pub·fn·<a·href="#method.next"·class="fn">next</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="../../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;'a·K</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>btree_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/107540">#107540</a>)</span></div></span></summary><div·class="docblock"><p>Advances·the·cursor·to·the·next·gap,·returning·the·element·that·it
7 moved·over.</p>7 moved·over.</p>
8 <p>If·the·cursor·is·already·at·the·end·of·the·set·then·<code>None</code>·is·returned8 <p>If·the·cursor·is·already·at·the·end·of·the·set·then·<code>None</code>·is·returned
9 and·the·cursor·is·not·moved.</p>9 and·the·cursor·is·not·moved.</p>
10 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.prev"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/set.rs.html#2091-2093">Source</a><h4·class="code-header">pub·fn·<a·href="#method.prev"·class="fn">prev</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;'a·K</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>btree_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/107540">#107540</a>)</span></div></span></summary><div·class="docblock"><p>Advances·the·cursor·to·the·previous·gap,·returning·the·element·that·it10 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.prev"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/set.rs.html#2091-2093">Source</a><h4·class="code-header">pub·fn·<a·href="#method.prev"·class="fn">prev</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="../../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;'a·K</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>btree_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/107540">#107540</a>)</span></div></span></summary><div·class="docblock"><p>Advances·the·cursor·to·the·previous·gap,·returning·the·element·that·it
11 moved·over.</p>11 moved·over.</p>
12 <p>If·the·cursor·is·already·at·the·start·of·the·set·then·<code>None</code>·is·returned12 <p>If·the·cursor·is·already·at·the·start·of·the·set·then·<code>None</code>·is·returned
13 and·the·cursor·is·not·moved.</p>13 and·the·cursor·is·not·moved.</p>
14 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peek_next"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/set.rs.html#2099-2101">Source</a><h4·class="code-header">pub·fn·<a·href="#method.peek_next"·class="fn">peek_next</a>(&amp;self)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;'a·K</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>btree_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/107540">#107540</a>)</span></div></span></summary><div·class="docblock"><p>Returns·a·reference·to·next·element·without·moving·the·cursor.</p>14 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peek_next"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/set.rs.html#2099-2101">Source</a><h4·class="code-header">pub·fn·<a·href="#method.peek_next"·class="fn">peek_next</a>(&amp;self)·-&gt;·<a·class="enum"·href="../../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;'a·K</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>btree_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/107540">#107540</a>)</span></div></span></summary><div·class="docblock"><p>Returns·a·reference·to·next·element·without·moving·the·cursor.</p>
15 <p>If·the·cursor·is·at·the·end·of·the·set·then·<code>None</code>·is·returned</p>15 <p>If·the·cursor·is·at·the·end·of·the·set·then·<code>None</code>·is·returned</p>
16 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peek_prev"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/set.rs.html#2107-2109">Source</a><h4·class="code-header">pub·fn·<a·href="#method.peek_prev"·class="fn">peek_prev</a>(&amp;self)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;'a·K</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>btree_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/107540">#107540</a>)</span></div></span></summary><div·class="docblock"><p>Returns·a·reference·to·the·previous·element·without·moving·the·cursor.</p>16 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peek_prev"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/set.rs.html#2107-2109">Source</a><h4·class="code-header">pub·fn·<a·href="#method.peek_prev"·class="fn">peek_prev</a>(&amp;self)·-&gt;·<a·class="enum"·href="../../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;'a·K</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>btree_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/107540">#107540</a>)</span></div></span></summary><div·class="docblock"><p>Returns·a·reference·to·the·previous·element·without·moving·the·cursor.</p>
17 <p>If·the·cursor·is·at·the·start·of·the·set·then·<code>None</code>·is·returned.</p>17 <p>If·the·cursor·is·at·the·start·of·the·set·then·<code>None</code>·is·returned.</p>
18 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-Cursor%3C'a,+K%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/set.rs.html#1999">Source</a><a·href="#impl-Clone-for-Cursor%3C'a,+K%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·K:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·+·'a&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="[·...·truncated·by·diffoscope;·len:·3950,·SHA:·e0de1dd4b7cde0dbdf7ecc72e4e3004798462867a33fd1aca8c8900204416974·...·]/core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="struct"·href="struct.Cursor.html"·title="struct·alloc::collections::btree_set::Cursor">Cursor</a>&lt;'a,·K&gt;<div·class="where">where18 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-Cursor%3C'a,+K%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/set.rs.html#1999">Source</a><a·href="#impl-Clone-for-Cursor%3C'a,+K%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·K:·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·+·'a&gt;·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struct"·href="struct.Cursor.html"·title="struct·[·...·truncated·by·diffoscope;·len:·3734,·SHA:·471861540be2918ad47fa61698c2910f982e1d6168dfc028e13663956eb9cacd·...·]/core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="struct"·href="struct.Cursor.html"·title="struct·alloc::collections::btree_set::Cursor">Cursor</a>&lt;'a,·K&gt;<div·class="where">where
19 ····K:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,</div></h3></section><section·id="impl-Send-for-Cursor%3C'a,+K%3E"·class="impl"><a·href="#impl-Send-fo[·...·truncated·by·diffoscope;·len:·138,·SHA:·228fb58d702d23fccaf4da9023e524a30a0b4ccd14bd0dcf9c961e907d9fca49·...·]/core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="struct"·href="struct.Cursor.html"·title="struct·alloc::collections::btree_set::Cursor">Cursor</a>&lt;'a,·K&gt;<div·class="where">where19 ····K:·<a·class="trait"·href="../../../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,</div></h3></section><section·id="impl-Send-for-Cursor%3C'a,+K%3E"·class="impl"><a·href="#impl-Send-for-Cursor%3C'a,+K%3E"·cla[·...·truncated·by·diffoscope;·len:·90,·SHA:·7b96ad8820daa581618e8920279d114a49372d77915f312561f82fd8540d9691·...·]/core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="struct"·href="struct.Cursor.html"·title="struct·alloc::collections::btree_set::Cursor">Cursor</a>&lt;'a,·K&gt;<div·class="where">where
20 ····K:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>,</div></h3></section><section·id="impl-Sync-for-Cursor%3C'a,+K%3E"·class="impl"><a·href="#impl-Sync-for-Cursor%3C'a,+K%3E"·class="anchor">§</a><h3·class[·...·truncated·by·diffoscope;·len:·88,·SHA:·a0d8c1b42f2bb492b4804aba50e49fd9191760c7aec0c123685544db02eeb54d·...·]/core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="struct"·href="struct.Cursor.html"·title="struct·alloc::collections::btree_set::Cursor">Cursor</a>&lt;'a,·K&gt;<div·class="where">where20 ····K:·<a·class="trait"·href="../../../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>,</div></h3></section><section·id="impl-Sync-for-Cursor%3C'a,+K%3E"·class="impl"><a·href="#impl-Sync-for-Cursor%3C'a,+K%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'[·...·truncated·by·diffoscope;·len:·40,·SHA:·34e9c07bcc245681c3c4a54044fc70028378857893608e369ef11737741f1f2f·...·]/core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="struct"·href="struct.Cursor.html"·title="struct·alloc::collections::btree_set::Cursor">Cursor</a>&lt;'a,·K&gt;<div·class="where">where
21 ····K:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>,</div></h3></section><section·id="impl-Unpin-for-Cursor%3C'a,+K%3E"·class="impl"><a·href="#impl-Unpin-for-Cursor%3C'a,+K%3E"·class="anchor">§</a><h3·cla[·...·truncated·by·diffoscope;·len:·535,·SHA:·821f06b40e6be285c2f03f07d1309266ffd73f3d8d0c48e3736dc5bdaf3ea13d·...·]/core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="struct"·href="struct.Cursor.html"·title="struct·alloc::collections::btree_set::Cursor">Cursor</a>&lt;'a,·K&gt;<div·class="where">where21 ····K:·<a·class="trait"·href="../../../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>,</div></h3></section><section·id="impl-Unpin-for-Cursor%3C'a,+K%3E"·class="impl"><a·href="#impl-Unpin-for-Cursor%3C'a,+K%3E"·class="anchor">§</a><h3·class="code-header">impl&lt[·...·truncated·by·diffoscope;·len:·463,·SHA:·02695c47f2169ee462811dc29c3136d12114d543c4e52dfec08525ed6665046f·...·]/core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="struct"·href="struct.Cursor.html"·title="struct·alloc::collections::btree_set::Cursor">Cursor</a>&lt;'a,·K&gt;<div·class="where">where
22 ····K:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,</div></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementat[·...·truncated·by·diffoscope;·len:·437,·SHA:·a52fd08e1c9354801da0d71245c94faa82849943038ee3eff62637aaedf75d65·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where22 ····K:·<a·class="trait"·href="../../../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,</div></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementations<a·href="#blanket-im[·...·truncated·by·diffoscope;·len:·365,·SHA:·f00ece4f5872815019648692969de68b1bd616c3a7718f1a6de7310f204999e9·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where
23 ····T:·'static·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method[·...·truncated·by·diffoscope;·len:·834,·SHA:·47dfc2aa0101a4103e2a94c1f971c559790d87a62d58631fd2bfed98e6616a34·...·]/src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where23 ····T:·'static·+·?<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="s[·...·truncated·by·diffoscope;·len:·690,·SHA:·5140301cd9ff79a41eb9c4e21645354b7b39f4611f9b3646b7c859a62ac61067·...·]/src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where
24 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·[·...·truncated·by·diffoscope;·len:·743,·SHA:·b1db3ba49d399b0b1340fa997418ee1ae0ece93cc3579963c53bf7040ec0ded6·...·]/src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.BorrowMut.html"·title="trait·alloc::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where24 ····T:·?<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="sr[·...·truncated·by·diffoscope;·len:·647,·SHA:·eced384f314b303c18919389c5abe4a96aec1091fccffab1a095e21ec4389338·...·]/src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.BorrowMut.html"·title="trait·alloc::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where
25 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="met[·...·truncated·by·diffoscope;·len:·960,·SHA:·c6354ea8fcf3b570a130235df299ddea9063b0fb7e35c91d7c9308744705dcad·...·]/core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where25 ····T:·?<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class[·...·truncated·by·diffoscope;·len:·840,·SHA:·65730076d1351b96bbc7870dcc45245c8046decde9b269779ff691512c7b6cda·...·]/core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where
26 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="[·...·truncated·by·diffoscope;·len:·1883,·SHA:·e07301fb9e28f950d7450480a6b68014ffcdcc3be12b1adda27936cb1244377e·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>26 ····T:·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·cl[·...·truncated·by·diffoscope;·len:·1643,·SHA:·1eae2ed9452ffcbbe8b3cb569c26d9b61c935793fb647d6b79fd502b505ae03b·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>
27 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where27 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where
28 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="m[·...·truncated·by·diffoscope;·len:·237,·SHA:·98603c35860102b3af9b5cf27aeabf39e3c03236551986a6ec030817f108d919·...·]/core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>28 ····U:·<a·class="trait"·href="../../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·cla[·...·truncated·by·diffoscope;·len:·165,·SHA:·423a04a226f49c7f9a948f8c413dc8519f4a9a96a55914b6e6a694710d81c0f7·...·]/core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>
29 <p>That·is,·this·conversion·is·whatever·the·implementation·of29 <p>That·is,·this·conversion·is·whatever·the·implementation·of
30 <code><a·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>30 <code><a·href="../../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>
31 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/borrow.rs.html#82-94">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where31 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/borrow.rs.html#82-94">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where
32 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·t[·...·truncated·by·diffoscope;·len:·2003,·SHA:·ecb61562e7a62580c9ad7b3f8856e4e317eddb7fa8d5eb388664331cf5eb31c0·...·]/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where32 ····T:·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src[·...·truncated·by·diffoscope;·len:·1907,·SHA:·a3ba85d2ecc25713cf37fd24854d68ee7f0f59359c2678ed0204a7cdb8c27a28·...·]/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where
33 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="asso[·...·truncated·by·diffoscope;·len:·1973,·SHA:·db4b8407e8e20581ad139aef25a6221a11da0f5f18d6aa35aa33eb843f4e1b9f·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where33 ····U:·<a·class="trait"·href="../../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><[·...·truncated·by·diffoscope;·len:·1709,·SHA:·e896b9bb1c9fd7d11ed5b2485b9a6fcb8a8eedc15783c2750df398ecae6b320e·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where
34 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·clas[·...·truncated·by·diffoscope;·len:·1578,·SHA:·998d5af10fd889567cd999d1306bfd16c91134d2238a3c172f1e7fa8ed138c18·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>34 ····U:·<a·class="trait"·href="../../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-[·...·truncated·by·diffoscope;·len:·1338,·SHA:·bf7fc0d673df53e1a193a897ac1592a2d85070ae590f9624c2e5404df56f3bb0·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>
57.6 KB
./usr/share/doc/rust-doc/html/alloc/collections/btree_set/struct.CursorMut.html
    
Offset 3, 25 lines modifiedOffset 3, 25 lines modified
3 safely·mutate·the·set·during·iteration.·This·is·because·the·lifetime·of·its·yielded3 safely·mutate·the·set·during·iteration.·This·is·because·the·lifetime·of·its·yielded
4 references·is·tied·to·its·own·lifetime,·instead·of·just·the·underlying·map.·This·means4 references·is·tied·to·its·own·lifetime,·instead·of·just·the·underlying·map.·This·means
5 cursors·cannot·yield·multiple·elements·at·once.</p>5 cursors·cannot·yield·multiple·elements·at·once.</p>
6 <p>Cursors·always·point·to·a·gap·between·two·elements·in·the·set,·and·can6 <p>Cursors·always·point·to·a·gap·between·two·elements·in·the·set,·and·can
7 operate·on·the·two·immediately·adjacent·elements.</p>7 operate·on·the·two·immediately·adjacent·elements.</p>
8 <p>A·<code>CursorMut</code>·is·created·with·the·<a·href="struct.BTreeSet.html#method.lower_bound_mut"·title="method·alloc::collections::btree_set::BTreeSet::lower_bound_mut"><code>BTreeSet::lower_bound_mut</code></a>·and·<a·href="struct.BTreeSet.html#method.upper_bound_mut"·title="method·alloc::collections::btree_set::BTreeSet::upper_bound_mut"><code>BTreeSet::upper_bound_mut</code></a>8 <p>A·<code>CursorMut</code>·is·created·with·the·<a·href="struct.BTreeSet.html#method.lower_bound_mut"·title="method·alloc::collections::btree_set::BTreeSet::lower_bound_mut"><code>BTreeSet::lower_bound_mut</code></a>·and·<a·href="struct.BTreeSet.html#method.upper_bound_mut"·title="method·alloc::collections::btree_set::BTreeSet::upper_bound_mut"><code>BTreeSet::upper_bound_mut</code></a>
9 methods.</p>9 methods.</p>
10 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-CursorMut%3C'a,+T,+A%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/set.rs.html#2112-2174">Source</a><a·href="#impl-CursorMut%3C'a,+T,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·T,·A&gt;·<a·class="struct"·href="struct.CursorMut.html"·title="struct·alloc::collections::btree_set::CursorMut">CursorMut</a>&lt;'a,·T,·A&gt;</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.next"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/set.rs.html#2119-2121">Source</a><h4·class="code-header">pub·fn·<a·href="#method.next"·class="fn">next</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;T</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>btree_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/107540">#107540</a>)</span></div></span></summary><div·class="docblock"><p>Advances·the·cursor·to·the·next·gap,·returning·the·element·that·it10 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-CursorMut%3C'a,+T,+A%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/set.rs.html#2112-2174">Source</a><a·href="#impl-CursorMut%3C'a,+T,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·T,·A&gt;·<a·class="struct"·href="struct.CursorMut.html"·title="struct·alloc::collections::btree_set::CursorMut">CursorMut</a>&lt;'a,·T,·A&gt;</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.next"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/set.rs.html#2119-2121">Source</a><h4·class="code-header">pub·fn·<a·href="#method.next"·class="fn">next</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="../../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;T</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>btree_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/107540">#107540</a>)</span></div></span></summary><div·class="docblock"><p>Advances·the·cursor·to·the·next·gap,·returning·the·element·that·it
11 moved·over.</p>11 moved·over.</p>
12 <p>If·the·cursor·is·already·at·the·end·of·the·set·then·<code>None</code>·is·returned12 <p>If·the·cursor·is·already·at·the·end·of·the·set·then·<code>None</code>·is·returned
13 and·the·cursor·is·not·moved.</p>13 and·the·cursor·is·not·moved.</p>
14 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.prev"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/set.rs.html#2129-2131">Source</a><h4·class="code-header">pub·fn·<a·href="#method.prev"·class="fn">prev</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;T</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>btree_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/107540">#107540</a>)</span></div></span></summary><div·class="docblock"><p>Advances·the·cursor·to·the·previous·gap,·returning·the·element·that·it14 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.prev"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/set.rs.html#2129-2131">Source</a><h4·class="code-header">pub·fn·<a·href="#method.prev"·class="fn">prev</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="../../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;T</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>btree_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/107540">#107540</a>)</span></div></span></summary><div·class="docblock"><p>Advances·the·cursor·to·the·previous·gap,·returning·the·element·that·it
15 moved·over.</p>15 moved·over.</p>
16 <p>If·the·cursor·is·already·at·the·start·of·the·set·then·<code>None</code>·is·returned16 <p>If·the·cursor·is·already·at·the·start·of·the·set·then·<code>None</code>·is·returned
17 and·the·cursor·is·not·moved.</p>17 and·the·cursor·is·not·moved.</p>
18 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peek_next"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/set.rs.html#2137-2139">Source</a><h4·class="code-header">pub·fn·<a·href="#method.peek_next"·class="fn">peek_next</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;T</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>btree_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/107540">#107540</a>)</span></div></span></summary><div·class="docblock"><p>Returns·a·reference·to·the·next·element·without·moving·the·cursor.</p>18 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peek_next"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/set.rs.html#2137-2139">Source</a><h4·class="code-header">pub·fn·<a·href="#method.peek_next"·class="fn">peek_next</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="../../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;T</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>btree_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/107540">#107540</a>)</span></div></span></summary><div·class="docblock"><p>Returns·a·reference·to·the·next·element·without·moving·the·cursor.</p>
19 <p>If·the·cursor·is·at·the·end·of·the·set·then·<code>None</code>·is·returned.</p>19 <p>If·the·cursor·is·at·the·end·of·the·set·then·<code>None</code>·is·returned.</p>
20 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peek_prev"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/set.rs.html#2145-2147">Source</a><h4·class="code-header">pub·fn·<a·href="#method.peek_prev"·class="fn">peek_prev</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;T</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>btree_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/107540">#107540</a>)</span></div></span></summary><div·class="docblock"><p>Returns·a·reference·to·the·previous·element·without·moving·the·cursor.</p>20 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peek_prev"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/set.rs.html#2145-2147">Source</a><h4·class="code-header">pub·fn·<a·href="#method.peek_prev"·class="fn">peek_prev</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="../../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;T</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>btree_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/107540">#107540</a>)</span></div></span></summary><div·class="docblock"><p>Returns·a·reference·to·the·previous·element·without·moving·the·cursor.</p>
21 <p>If·the·cursor·is·at·the·start·of·the·set·then·<code>None</code>·is·returned.</p>21 <p>If·the·cursor·is·at·the·start·of·the·set·then·<code>None</code>·is·returned.</p>
22 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.as_cursor"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/set.rs.html#2156-2158">Source</a><h4·class="code-header">pub·fn·<a·href="#method.as_cursor"·class="fn">as_cursor</a>(&amp;self)·-&gt;·<a·class="struct"·href="struct.Cursor.html"·title="struct·alloc::collections::btree_set::Cursor">Cursor</a>&lt;'_,·T&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>btree_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/107540">#107540</a>)</span></div></span></summary><div·class="docblock"><p>Returns·a·read-only·cursor·pointing·to·the·same·location·as·the22 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.as_cursor"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/set.rs.html#2156-2158">Source</a><h4·class="code-header">pub·fn·<a·href="#method.as_cursor"·class="fn">as_cursor</a>(&amp;self)·-&gt;·<a·class="struct"·href="struct.Cursor.html"·title="struct·alloc::collections::btree_set::Cursor">Cursor</a>&lt;'_,·T&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>btree_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/107540">#107540</a>)</span></div></span></summary><div·class="docblock"><p>Returns·a·read-only·cursor·pointing·to·the·same·location·as·the
23 <code>CursorMut</code>.</p>23 <code>CursorMut</code>.</p>
24 <p>The·lifetime·of·the·returned·<code>Cursor</code>·is·bound·to·that·of·the24 <p>The·lifetime·of·the·returned·<code>Cursor</code>·is·bound·to·that·of·the
25 <code>CursorMut</code>,·which·means·it·cannot·outlive·the·<code>CursorMut</code>·and·that·the25 <code>CursorMut</code>,·which·means·it·cannot·outlive·the·<code>CursorMut</code>·and·that·the
26 <code>CursorMut</code>·is·frozen·for·the·lifetime·of·the·<code>Cursor</code>.</p>26 <code>CursorMut</code>·is·frozen·for·the·lifetime·of·the·<code>Cursor</code>.</p>
27 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.with_mutable_key"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/set.rs.html#2171-2173">Source</a><h4·class="code-header">pub·unsafe·fn·<a·href="#method.with_mutable_key"·class="fn">with_mutable_key</a>(self)·-&gt;·<a·class="struct"·href="struct.CursorMutKey.html"·title="struct·alloc::collections::btree_set::CursorMutKey">CursorMutKey</a>&lt;'a,·T,·A&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>btree_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/107540">#107540</a>)</span></div></span></summary><div·class="docblock"><p>Converts·the·cursor·into·a·<a·href="struct.CursorMutKey.html"·title="struct·alloc::collections::btree_set::CursorMutKey"><code>CursorMutKey</code></a>,·which·allows·mutating27 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.with_mutable_key"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/set.rs.html#2171-2173">Source</a><h4·class="code-header">pub·unsafe·fn·<a·href="#method.with_mutable_key"·class="fn">with_mutable_key</a>(self)·-&gt;·<a·class="struct"·href="struct.CursorMutKey.html"·title="struct·alloc::collections::btree_set::CursorMutKey">CursorMutKey</a>&lt;'a,·T,·A&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>btree_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/107540">#107540</a>)</span></div></span></summary><div·class="docblock"><p>Converts·the·cursor·into·a·<a·href="struct.CursorMutKey.html"·title="struct·alloc::collections::btree_set::CursorMutKey"><code>CursorMutKey</code></a>,·which·allows·mutating
Offset 29, 15 lines modifiedOffset 29, 15 lines modified
29 <h5·id="safety"><a·class="doc-anchor"·href="#safety">§</a>Safety</h5>29 <h5·id="safety"><a·class="doc-anchor"·href="#safety">§</a>Safety</h5>
30 <p>Since·this·cursor·allows·mutating·elements,·you·must·ensure·that·the30 <p>Since·this·cursor·allows·mutating·elements,·you·must·ensure·that·the
31 <code>BTreeSet</code>·invariants·are·maintained.·Specifically:</p>31 <code>BTreeSet</code>·invariants·are·maintained.·Specifically:</p>
32 <ul>32 <ul>
33 <li>The·newly·inserted·element·must·be·unique·in·the·tree.</li>33 <li>The·newly·inserted·element·must·be·unique·in·the·tree.</li>
34 <li>All·elements·in·the·tree·must·remain·in·sorted·order.</li>34 <li>All·elements·in·the·tree·must·remain·in·sorted·order.</li>
35 </ul>35 </ul>
36 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-CursorMut%3C'a,+T,+A%3E-1"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/set.rs.html#2225-2309">Source</a><a·href="#impl-CursorMut%3C'a,+T,+A%3E-1"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·T:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·+·<a·class="trait"·href="https://doc.rust-lang.o[·...·truncated·by·diffoscope;·len:·9,·SHA:·4c9ec6484c759d1bca266b39ac5a39d74150885e936a4b9311f8788ec25e05b3·...·]/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>&gt;·<a·class="struct"·href="struct.CursorMut.html"·title="struct·alloc::collections::btree_set::CursorMut">CursorMut</a>&lt;'a,·T,·A&gt;</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.insert_after_unchecked"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/set.rs.html#2240-2242">Source</a><h4·class="code-header">pub·unsafe·fn·<a·href="#method.insert_after_unchecked"·class="fn">insert_after_unchecked</a>(&amp;mut·self,·value:·T)</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>btree_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/107540">#107540</a>)</span></div></span></summary><div·class="docblock"><p>Inserts·a·new·element·into·the·set·in·the·gap·that·the36 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-CursorMut%3C'a,+T,+A%3E-1"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/set.rs.html#2225-2309">Source</a><a·href="#impl-CursorMut%3C'a,+T,+A%3E-1"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·T:·<a·class="trait"·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·+·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>&gt;·<a·class="struct"·href="struct.CursorMut.html"·title="struct·alloc::collections::btree_set::CursorMut">CursorMut</a>&lt;'a,·T,·A&gt;</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.insert_after_unchecked"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/set.rs.html#2240-2242">Source</a><h4·class="code-header">pub·unsafe·fn·<a·href="#method.insert_after_unchecked"·class="fn">insert_after_unchecked</a>(&amp;mut·self,·value:·T)</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>btree_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/107540">#107540</a>)</span></div></span></summary><div·class="docblock"><p>Inserts·a·new·element·into·the·set·in·the·gap·that·the
37 cursor·is·currently·pointing·to.</p>37 cursor·is·currently·pointing·to.</p>
38 <p>After·the·insertion·the·cursor·will·be·pointing·at·the·gap·before·the38 <p>After·the·insertion·the·cursor·will·be·pointing·at·the·gap·before·the
39 newly·inserted·element.</p>39 newly·inserted·element.</p>
40 <h5·id="safety-1"><a·class="doc-anchor"·href="#safety-1">§</a>Safety</h5>40 <h5·id="safety-1"><a·class="doc-anchor"·href="#safety-1">§</a>Safety</h5>
41 <p>You·must·ensure·that·the·<code>BTreeSet</code>·invariants·are·maintained.41 <p>You·must·ensure·that·the·<code>BTreeSet</code>·invariants·are·maintained.
42 Specifically:</p>42 Specifically:</p>
43 <ul>43 <ul>
Offset 51, 46 lines modifiedOffset 51, 46 lines modified
51 <h5·id="safety-2"><a·class="doc-anchor"·href="#safety-2">§</a>Safety</h5>51 <h5·id="safety-2"><a·class="doc-anchor"·href="#safety-2">§</a>Safety</h5>
52 <p>You·must·ensure·that·the·<code>BTreeSet</code>·invariants·are·maintained.52 <p>You·must·ensure·that·the·<code>BTreeSet</code>·invariants·are·maintained.
53 Specifically:</p>53 Specifically:</p>
54 <ul>54 <ul>
55 <li>The·newly·inserted·element·must·be·unique·in·the·tree.</li>55 <li>The·newly·inserted·element·must·be·unique·in·the·tree.</li>
56 <li>All·elements·in·the·tree·must·remain·in·sorted·order.</li>56 <li>All·elements·in·the·tree·must·remain·in·sorted·order.</li>
57 </ul>57 </ul>
58 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.insert_after"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/set.rs.html#2273-2275">Source</a><h4·class="code-header">pub·fn·<a·href="#method.insert_after"·class="fn">insert_after</a>(&amp;mut·self,·value:·T)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.unit.html">()</a>,·<a·class="struct"·href="../btree_map/struct.UnorderedKeyError.html"·title="struct·alloc::collections::btree_map::UnorderedKeyError">UnorderedKeyError</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>btree_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/107540">#107540</a>)</span></div></span></summary><div·class="docblock"><p>Inserts·a·new·element·into·the·set·in·the·gap·that·the58 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.insert_after"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/set.rs.html#2273-2275">Source</a><h4·class="code-header">pub·fn·<a·href="#method.insert_after"·class="fn">insert_after</a>(&amp;mut·self,·value:·T)·-&gt;·<a·class="enum"·href="../../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="primitive"·href="../../../core/primitive.unit.html">()</a>,·<a·class="struct"·href="../btree_map/struct.UnorderedKeyError.html"·title="struct·alloc::collections::btree_map::UnorderedKeyError">UnorderedKeyError</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>btree_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/107540">#107540</a>)</span></div></span></summary><div·class="docblock"><p>Inserts·a·new·element·into·the·set·in·the·gap·that·the
59 cursor·is·currently·pointing·to.</p>59 cursor·is·currently·pointing·to.</p>
60 <p>After·the·insertion·the·cursor·will·be·pointing·at·the·gap·before·the60 <p>After·the·insertion·the·cursor·will·be·pointing·at·the·gap·before·the
61 newly·inserted·element.</p>61 newly·inserted·element.</p>
62 <p>If·the·inserted·element·is·not·greater·than·the·element·before·the62 <p>If·the·inserted·element·is·not·greater·than·the·element·before·the
63 cursor·(if·any),·or·if·it·not·less·than·the·element·after·the·cursor·(if63 cursor·(if·any),·or·if·it·not·less·than·the·element·after·the·cursor·(if
64 any),·then·an·<a·href="../btree_map/struct.UnorderedKeyError.html"·title="struct·alloc::collections::btree_map::UnorderedKeyError"><code>UnorderedKeyError</code></a>·is·returned·since·this·would64 any),·then·an·<a·href="../btree_map/struct.UnorderedKeyError.html"·title="struct·alloc::collections::btree_map::UnorderedKeyError"><code>UnorderedKeyError</code></a>·is·returned·since·this·would
65 invalidate·the·<a·href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord"><code>Ord</code></a>·invariant·between·the·elements·of·the·set.</p>65 invalidate·the·<a·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord"><code>Ord</code></a>·invariant·between·the·elements·of·the·set.</p>
66 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.insert_before"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/set.rs.html#2288-2290">Source</a><h4·class="code-header">pub·fn·<a·href="#method.insert_before"·class="fn">insert_before</a>(&amp;mut·self,·value:·T)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.unit.html">()</a>,·<a·class="struct"·href="../btree_map/struct.UnorderedKeyError.html"·title="struct·alloc::collections::btree_map::UnorderedKeyError">UnorderedKeyError</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>btree_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/107540">#107540</a>)</span></div></span></summary><div·class="docblock"><p>Inserts·a·new·element·into·the·set·in·the·gap·that·the66 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.insert_before"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/set.rs.html#2288-2290">Source</a><h4·class="code-header">pub·fn·<a·href="#method.insert_before"·class="fn">insert_before</a>(&amp;mut·self,·value:·T)·-&gt;·<a·class="enum"·href="../../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="primitive"·href="../../../core/primitive.unit.html">()</a>,·<a·class="struct"·href="../btree_map/struct.UnorderedKeyError.html"·title="struct·alloc::collections::btree_map::UnorderedKeyError">UnorderedKeyError</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>btree_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/107540">#107540</a>)</span></div></span></summary><div·class="docblock"><p>Inserts·a·new·element·into·the·set·in·the·gap·that·the
67 cursor·is·currently·pointing·to.</p>67 cursor·is·currently·pointing·to.</p>
68 <p>After·the·insertion·the·cursor·will·be·pointing·at·the·gap·after·the68 <p>After·the·insertion·the·cursor·will·be·pointing·at·the·gap·after·the
69 newly·inserted·element.</p>69 newly·inserted·element.</p>
70 <p>If·the·inserted·element·is·not·greater·than·the·element·before·the70 <p>If·the·inserted·element·is·not·greater·than·the·element·before·the
71 cursor·(if·any),·or·if·it·not·less·than·the·element·after·the·cursor·(if71 cursor·(if·any),·or·if·it·not·less·than·the·element·after·the·cursor·(if
72 any),·then·an·<a·href="../btree_map/struct.UnorderedKeyError.html"·title="struct·alloc::collections::btree_map::UnorderedKeyError"><code>UnorderedKeyError</code></a>·is·returned·since·this·would72 any),·then·an·<a·href="../btree_map/struct.UnorderedKeyError.html"·title="struct·alloc::collections::btree_map::UnorderedKeyError"><code>UnorderedKeyError</code></a>·is·returned·since·this·would
73 invalidate·the·<a·href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord"><code>Ord</code></a>·invariant·between·the·elements·of·the·set.</p>73 invalidate·the·<a·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord"><code>Ord</code></a>·invariant·between·the·elements·of·the·set.</p>
74 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.remove_next"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/set.rs.html#2297-2299">Source</a><h4·class="code-header">pub·fn·<a·href="#method.remove_next"·class="fn">remove_next</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;T&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>btree_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/107540">#107540</a>)</span></div></span></summary><div·class="docblock"><p>Removes·the·next·element·from·the·<code>BTreeSet</code>.</p>74 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.remove_next"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/set.rs.html#2297-2299">Source</a><h4·class="code-header">pub·fn·<a·href="#method.remove_next"·class="fn">remove_next</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="../../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;T&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>btree_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/107540">#107540</a>)</span></div></span></summary><div·class="docblock"><p>Removes·the·next·element·from·the·<code>BTreeSet</code>.</p>
75 <p>The·element·that·was·removed·is·returned.·The·cursor·position·is75 <p>The·element·that·was·removed·is·returned.·The·cursor·position·is
76 unchanged·(before·the·removed·element).</p>76 unchanged·(before·the·removed·element).</p>
77 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.remove_prev"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/set.rs.html#2306-2308">Source</a><h4·class="code-header">pub·fn·<a·href="#method.remove_prev"·class="fn">remove_prev</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;T&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>btree_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/107540">#107540</a>)</span></div></span></summary><div·class="docblock"><p>Removes·the·preceding·element·from·the·<code>BTreeSet</code>.</p>77 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.remove_prev"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/set.rs.html#2306-2308">Source</a><h4·class="code-header">pub·fn·<a·href="#method.remove_prev"·class="fn">remove_prev</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="../../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;T&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>btree_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/107540">#107540</a>)</span></div></span></summary><div·class="docblock"><p>Removes·the·preceding·element·from·the·<code>BTreeSet</code>.</p>
78 <p>The·element·that·was·removed·is·returned.·The·cursor·position·is78 <p>The·element·that·was·removed·is·returned.·The·cursor·position·is
79 unchanged·(after·the·removed·element).</p>79 unchanged·(after·the·removed·element).</p>
80 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-CursorMut%3C'_,+K,+A%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/set.rs.html#2031-2035">Source</a><a·href="#impl-Debug-for-CursorMut%3C'_,+K,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;K:·<a·class="trait"·href="../../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,·A&gt;·<a·class="trait"·href="../../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.CursorMut.html"·title="struct·alloc::collections::btree_set::CursorMut">CursorMut</a>&lt;'_,·K,·A&gt;</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/set.rs.html#2032-2034">Source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="../../fmt/struct.Formatter.html"·title="struct·alloc::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="type"·href="../../fmt/type.Result.html"·title="type·alloc::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../../fmt/trait.Debug.html#tymethod.fmt">Read·more</a></div></details></div></details></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-CursorMut%3C'a,+K,+A%3E"·class="impl"><a·href="#impl-Freeze-for-CursorMut%3C'a,+K,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·K,·A&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="struct"·href="struct.CursorMut.html"·title="struct·alloc::collections::btree_set::CursorMut">CursorMut</a>&lt;'a,·K,·A&gt;</h3></sec[·...·truncated·by·diffoscope;·len:·257,·SHA:·b5a5b0cee67ced1f7be8ecb5052b21f2a2eaf4ca07582de12710a9a31fe8e198·...·]/core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="struct"·href="struct.CursorMut.html"·title="struct·alloc::collections::btree_set::CursorMut">CursorMut</a>&lt;'a,·K,·A&gt;<div·class="where">where80 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-CursorMut%3C'_,+K,+A%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/set.rs.html#2031-2035">Source</a><a·href="#impl-Debug-for-CursorMut%3C'_,+K,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;K:·<a·class="trait"·href="../../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,·A&gt;·<a·class="trait"·href="../../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.CursorMut.html"·title="struct·alloc::collections::btree_set::CursorMut">CursorMut</a>&lt;'_,·K,·A&gt;</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/set.rs.html#2032-2034">Source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="../../fmt/struct.Formatter.html"·title="struct·alloc::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="type"·href="../../fmt/type.Result.html"·title="type·alloc::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../../fmt/trait.Debug.html#tymethod.fmt">Read·more</a></div></details></div></details></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-CursorMut%3C'a,+K,+A%3E"·class="impl"><a·href="#impl-Freeze-for-CursorMut%3C'a,+K,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·K,·A&gt;·<a·class="trait"·href="../../../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="struct"·href="struct.CursorMut.html"·title="struct·alloc::collections::btree_set::CursorMut">CursorMut</a>&lt;'a,·K,·A&gt;</h3></section><section·id="impl-R[·...·truncated·by·diffoscope;·len:·209,·SHA:·4182e86530fd65564d9d4b64c25caa80184b80f46cad22a8f9cc718f6e190606·...·]/core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="struct"·href="struct.CursorMut.html"·title="struct·alloc::collections::btree_set::CursorMut">CursorMut</a>&lt;'a,·K,·A&gt;<div·class="where">where
81 ····A:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,81 ····A:·<a·class="trait"·href="../../../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,
82 ····K:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,</div></h3></section><section·id="impl-Send-for-CursorMut%3C'a,+K,+A%3E"·class="impl"><a·href="#impl-S[·...·truncated·by·diffoscope;·len:·153,·SHA:·01a01e418571fca478c3334078ebf5bc32c67de659a2af95d27d860abb7ac9da·...·]/core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="struct"·href="struct.CursorMut.html"·title="struct·alloc::collections::btree_set::CursorMut">CursorMut</a>&lt;'a,·K,·A&gt;<div·class="where">where82 ····K:·<a·class="trait"·href="../../../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,</div></h3></section><section·id="impl-Send-for-CursorMut%3C'a,+K,+A%3E"·class="impl"><a·href="#impl-Send-for-CursorMut%3C'a,+[·...·truncated·by·diffoscope;·len:·105,·SHA:·189c74c232f277ab9ed8b0e216a69596e6c61ae92029d7baf9111c0bbf899e06·...·]/core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="struct"·href="struct.CursorMut.html"·title="struct·alloc::collections::btree_set::CursorMut">CursorMut</a>&lt;'a,·K,·A&gt;<div·class="where">where
83 ····A:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>,83 ····A:·<a·class="trait"·href="../../../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>,
84 ····K:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>,</div></h3></section><section·id="impl-Sync-for-CursorMut%3C'a,+K,+A%3E"·class="impl"><a·href="#impl-Sync-for-CursorMut%3C'a,+K,+A%3E"·class="anchor">§<[·...·truncated·by·diffoscope;·len:·103,·SHA:·5ee592828431390c37680880cfa6b4519371192d68491feffbe3a348b608f6ba·...·]/core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="struct"·href="struct.CursorMut.html"·title="struct·alloc::collections::btree_set::CursorMut">CursorMut</a>&lt;'a,·K,·A&gt;<div·class="where">where84 ····K:·<a·class="trait"·href="../../../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>,</div></h3></section><section·id="impl-Sync-for-CursorMut%3C'a,+K,+A%3E"·class="impl"><a·href="#impl-Sync-for-CursorMut%3C'a,+K,+A%3E"·class="anchor">§</a><h3·class="code-heade[·...·truncated·by·diffoscope;·len:·55,·SHA:·73f3f7871fa0dfaed294ea54b54bcf48be4ef4c3360667efff95ddfb40c9be1d·...·]/core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="struct"·href="struct.CursorMut.html"·title="struct·alloc::collections::btree_set::CursorMut">CursorMut</a>&lt;'a,·K,·A&gt;<div·class="where">where
85 ····A:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>,85 ····A:·<a·class="trait"·href="../../../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>,
86 ····K:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>,</div></h3></section><section·id="impl-Unpin-for-CursorMut%3C'a,+K,+A%3E"·class="impl"><a·href="#impl-Unpin-for-CursorMut%3C'a,+K,+A%3E"·class="anchor">[·...·truncated·by·diffoscope;·len:·1465,·SHA:·a537b380a0b50aa7db01f66a46368e6d2d130d589cbcbcd4f29b67911e4d48c5·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where86 ····K:·<a·class="trait"·href="../../../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>,</div></h3></section><section·id="impl-Unpin-for-CursorMut%3C'a,+K,+A%3E"·class="impl"><a·href="#impl-Unpin-for-CursorMut%3C'a,+K,+A%3E"·class="anchor">§</a><h3·class="code-hea[·...·truncated·by·diffoscope;·len:·1345,·SHA:·ee9b3fb74b0a91cae4d4fee108c0741099621a9e5b298097a21a1cd8186c075a·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where
87 ····T:·'static·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method[·...·truncated·by·diffoscope;·len:·834,·SHA:·47dfc2aa0101a4103e2a94c1f971c559790d87a62d58631fd2bfed98e6616a34·...·]/src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where87 ····T:·'static·+·?<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="s[·...·truncated·by·diffoscope;·len:·690,·SHA:·5140301cd9ff79a41eb9c4e21645354b7b39f4611f9b3646b7c859a62ac61067·...·]/src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where
88 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·[·...·truncated·by·diffoscope;·len:·743,·SHA:·b1db3ba49d399b0b1340fa997418ee1ae0ece93cc3579963c53bf7040ec0ded6·...·]/src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.BorrowMut.html"·title="trait·alloc::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where88 ····T:·?<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="sr[·...·truncated·by·diffoscope;·len:·647,·SHA:·eced384f314b303c18919389c5abe4a96aec1091fccffab1a095e21ec4389338·...·]/src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.BorrowMut.html"·title="trait·alloc::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where
89 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="met[·...·truncated·by·diffoscope;·len:·1422,·SHA:·3b5041f32ed902526095ebde8745452b32cbfac2cd9503735eec716deff7280f·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>89 ····T:·?<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class[·...·truncated·by·diffoscope;·len:·1254,·SHA:·7fcbbe8bd9862b59809c60d05e5f59904ccadf8a3a9f11da30f9fcc6b839c5b3·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>
90 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where90 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where
91 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="m[·...·truncated·by·diffoscope;·len:·237,·SHA:·98603c35860102b3af9b5cf27aeabf39e3c03236551986a6ec030817f108d919·...·]/core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>91 ····U:·<a·class="trait"·href="../../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·cla[·...·truncated·by·diffoscope;·len:·165,·SHA:·423a04a226f49c7f9a948f8c413dc8519f4a9a96a55914b6e6a694710d81c0f7·...·]/core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>
92 <p>That·is,·this·conversion·is·whatever·the·implementation·of92 <p>That·is,·this·conversion·is·whatever·the·implementation·of
93 <code><a·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>93 <code><a·href="../../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>
94 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#805-807">Source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where94 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../../src/core/convert/mod.rs.html#805-807">Source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where
95 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="asso[·...·truncated·by·diffoscope;·len:·1973,·SHA:·db4b8407e8e20581ad139aef25a6221a11da0f5f18d6aa35aa33eb843f4e1b9f·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where95 ····U:·<a·class="trait"·href="../../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><[·...·truncated·by·diffoscope;·len:·1709,·SHA:·e896b9bb1c9fd7d11ed5b2485b9a6fcb8a8eedc15783c2750df398ecae6b320e·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where
96 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·clas[·...·truncated·by·diffoscope;·len:·1578,·SHA:·998d5af10fd889567cd999d1306bfd16c91134d2238a3c172f1e7fa8ed138c18·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>96 ····U:·<a·class="trait"·href="../../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-[·...·truncated·by·diffoscope;·len:·1338,·SHA:·bf7fc0d673df53e1a193a897ac1592a2d85070ae590f9624c2e5404df56f3bb0·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>
56.2 KB
./usr/share/doc/rust-doc/html/alloc/collections/btree_set/struct.CursorMutKey.html
    
Offset 11, 32 lines modifiedOffset 11, 32 lines modified
11 <h2·id="safety"><a·class="doc-anchor"·href="#safety">§</a>Safety</h2>11 <h2·id="safety"><a·class="doc-anchor"·href="#safety">§</a>Safety</h2>
12 <p>Since·this·cursor·allows·mutating·elements,·you·must·ensure·that·the12 <p>Since·this·cursor·allows·mutating·elements,·you·must·ensure·that·the
13 <code>BTreeSet</code>·invariants·are·maintained.·Specifically:</p>13 <code>BTreeSet</code>·invariants·are·maintained.·Specifically:</p>
14 <ul>14 <ul>
15 <li>The·newly·inserted·element·must·be·unique·in·the·tree.</li>15 <li>The·newly·inserted·element·must·be·unique·in·the·tree.</li>
16 <li>All·elements·in·the·tree·must·remain·in·sorted·order.</li>16 <li>All·elements·in·the·tree·must·remain·in·sorted·order.</li>
17 </ul>17 </ul>
18 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-CursorMutKey%3C'a,+T,+A%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/set.rs.html#2176-2223">Source</a><a·href="#impl-CursorMutKey%3C'a,+T,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·T,·A&gt;·<a·class="struct"·href="struct.CursorMutKey.html"·title="struct·alloc::collections::btree_set::CursorMutKey">CursorMutKey</a>&lt;'a,·T,·A&gt;</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.next"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/set.rs.html#2183-2185">Source</a><h4·class="code-header">pub·fn·<a·href="#method.next"·class="fn">next</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;mut·T</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>btree_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/107540">#107540</a>)</span></div></span></summary><div·class="docblock"><p>Advances·the·cursor·to·the·next·gap,·returning·the··element·that·it18 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-CursorMutKey%3C'a,+T,+A%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/set.rs.html#2176-2223">Source</a><a·href="#impl-CursorMutKey%3C'a,+T,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·T,·A&gt;·<a·class="struct"·href="struct.CursorMutKey.html"·title="struct·alloc::collections::btree_set::CursorMutKey">CursorMutKey</a>&lt;'a,·T,·A&gt;</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.next"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/set.rs.html#2183-2185">Source</a><h4·class="code-header">pub·fn·<a·href="#method.next"·class="fn">next</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="../../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;mut·T</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>btree_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/107540">#107540</a>)</span></div></span></summary><div·class="docblock"><p>Advances·the·cursor·to·the·next·gap,·returning·the··element·that·it
19 moved·over.</p>19 moved·over.</p>
20 <p>If·the·cursor·is·already·at·the·end·of·the·set·then·<code>None</code>·is·returned20 <p>If·the·cursor·is·already·at·the·end·of·the·set·then·<code>None</code>·is·returned
21 and·the·cursor·is·not·moved.</p>21 and·the·cursor·is·not·moved.</p>
22 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.prev"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/set.rs.html#2193-2195">Source</a><h4·class="code-header">pub·fn·<a·href="#method.prev"·class="fn">prev</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;mut·T</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>btree_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/107540">#107540</a>)</span></div></span></summary><div·class="docblock"><p>Advances·the·cursor·to·the·previous·gap,·returning·the·element·that·it22 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.prev"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/set.rs.html#2193-2195">Source</a><h4·class="code-header">pub·fn·<a·href="#method.prev"·class="fn">prev</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="../../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;mut·T</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>btree_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/107540">#107540</a>)</span></div></span></summary><div·class="docblock"><p>Advances·the·cursor·to·the·previous·gap,·returning·the·element·that·it
23 moved·over.</p>23 moved·over.</p>
24 <p>If·the·cursor·is·already·at·the·start·of·the·set·then·<code>None</code>·is·returned24 <p>If·the·cursor·is·already·at·the·start·of·the·set·then·<code>None</code>·is·returned
25 and·the·cursor·is·not·moved.</p>25 and·the·cursor·is·not·moved.</p>
26 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peek_next"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/set.rs.html#2201-2203">Source</a><h4·class="code-header">pub·fn·<a·href="#method.peek_next"·class="fn">peek_next</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;mut·T</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>btree_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/107540">#107540</a>)</span></div></span></summary><div·class="docblock"><p>Returns·a·reference·to·the·next·element·without·moving·the·cursor.</p>26 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peek_next"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/set.rs.html#2201-2203">Source</a><h4·class="code-header">pub·fn·<a·href="#method.peek_next"·class="fn">peek_next</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="../../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;mut·T</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>btree_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/107540">#107540</a>)</span></div></span></summary><div·class="docblock"><p>Returns·a·reference·to·the·next·element·without·moving·the·cursor.</p>
27 <p>If·the·cursor·is·at·the·end·of·the·set·then·<code>None</code>·is·returned</p>27 <p>If·the·cursor·is·at·the·end·of·the·set·then·<code>None</code>·is·returned</p>
28 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peek_prev"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/set.rs.html#2209-2211">Source</a><h4·class="code-header">pub·fn·<a·href="#method.peek_prev"·class="fn">peek_prev</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;mut·T</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>btree_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/107540">#107540</a>)</span></div></span></summary><div·class="docblock"><p>Returns·a·reference·to·the·previous·element·without·moving·the·cursor.</p>28 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peek_prev"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/set.rs.html#2209-2211">Source</a><h4·class="code-header">pub·fn·<a·href="#method.peek_prev"·class="fn">peek_prev</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="../../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;mut·T</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>btree_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/107540">#107540</a>)</span></div></span></summary><div·class="docblock"><p>Returns·a·reference·to·the·previous·element·without·moving·the·cursor.</p>
29 <p>If·the·cursor·is·at·the·start·of·the·set·then·<code>None</code>·is·returned.</p>29 <p>If·the·cursor·is·at·the·start·of·the·set·then·<code>None</code>·is·returned.</p>
30 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.as_cursor"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/set.rs.html#2220-2222">Source</a><h4·class="code-header">pub·fn·<a·href="#method.as_cursor"·class="fn">as_cursor</a>(&amp;self)·-&gt;·<a·class="struct"·href="struct.Cursor.html"·title="struct·alloc::collections::btree_set::Cursor">Cursor</a>&lt;'_,·T&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>btree_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/107540">#107540</a>)</span></div></span></summary><div·class="docblock"><p>Returns·a·read-only·cursor·pointing·to·the·same·location·as·the30 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.as_cursor"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/set.rs.html#2220-2222">Source</a><h4·class="code-header">pub·fn·<a·href="#method.as_cursor"·class="fn">as_cursor</a>(&amp;self)·-&gt;·<a·class="struct"·href="struct.Cursor.html"·title="struct·alloc::collections::btree_set::Cursor">Cursor</a>&lt;'_,·T&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>btree_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/107540">#107540</a>)</span></div></span></summary><div·class="docblock"><p>Returns·a·read-only·cursor·pointing·to·the·same·location·as·the
31 <code>CursorMutKey</code>.</p>31 <code>CursorMutKey</code>.</p>
32 <p>The·lifetime·of·the·returned·<code>Cursor</code>·is·bound·to·that·of·the32 <p>The·lifetime·of·the·returned·<code>Cursor</code>·is·bound·to·that·of·the
33 <code>CursorMutKey</code>,·which·means·it·cannot·outlive·the·<code>CursorMutKey</code>·and·that·the33 <code>CursorMutKey</code>,·which·means·it·cannot·outlive·the·<code>CursorMutKey</code>·and·that·the
34 <code>CursorMutKey</code>·is·frozen·for·the·lifetime·of·the·<code>Cursor</code>.</p>34 <code>CursorMutKey</code>·is·frozen·for·the·lifetime·of·the·<code>Cursor</code>.</p>
35 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-CursorMutKey%3C'a,+T,+A%3E-1"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/set.rs.html#2311-2395">Source</a><a·href="#impl-CursorMutKey%3C'a,+T,+A%3E-1"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·T:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·+·<a·class="trait"·href="https://doc.rust-lang.o[·...·truncated·by·diffoscope;·len:·9,·SHA:·4c9ec6484c759d1bca266b39ac5a39d74150885e936a4b9311f8788ec25e05b3·...·]/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>&gt;·<a·class="struct"·href="struct.CursorMutKey.html"·title="struct·alloc::collections::btree_set::CursorMutKey">CursorMutKey</a>&lt;'a,·T,·A&gt;</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.insert_after_unchecked"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/set.rs.html#2326-2328">Source</a><h4·class="code-header">pub·unsafe·fn·<a·href="#method.insert_after_unchecked"·class="fn">insert_after_unchecked</a>(&amp;mut·self,·value:·T)</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>btree_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/107540">#107540</a>)</span></div></span></summary><div·class="docblock"><p>Inserts·a·new·element·into·the·set·in·the·gap·that·the35 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-CursorMutKey%3C'a,+T,+A%3E-1"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/set.rs.html#2311-2395">Source</a><a·href="#impl-CursorMutKey%3C'a,+T,+A%3E-1"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·T:·<a·class="trait"·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·+·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>&gt;·<a·class="struct"·href="struct.CursorMutKey.html"·title="struct·alloc::collections::btree_set::CursorMutKey">CursorMutKey</a>&lt;'a,·T,·A&gt;</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.insert_after_unchecked"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/set.rs.html#2326-2328">Source</a><h4·class="code-header">pub·unsafe·fn·<a·href="#method.insert_after_unchecked"·class="fn">insert_after_unchecked</a>(&amp;mut·self,·value:·T)</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>btree_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/107540">#107540</a>)</span></div></span></summary><div·class="docblock"><p>Inserts·a·new·element·into·the·set·in·the·gap·that·the
36 cursor·is·currently·pointing·to.</p>36 cursor·is·currently·pointing·to.</p>
37 <p>After·the·insertion·the·cursor·will·be·pointing·at·the·gap·before·the37 <p>After·the·insertion·the·cursor·will·be·pointing·at·the·gap·before·the
38 newly·inserted·element.</p>38 newly·inserted·element.</p>
39 <h5·id="safety-1"><a·class="doc-anchor"·href="#safety-1">§</a>Safety</h5>39 <h5·id="safety-1"><a·class="doc-anchor"·href="#safety-1">§</a>Safety</h5>
40 <p>You·must·ensure·that·the·<code>BTreeSet</code>·invariants·are·maintained.40 <p>You·must·ensure·that·the·<code>BTreeSet</code>·invariants·are·maintained.
41 Specifically:</p>41 Specifically:</p>
42 <ul>42 <ul>
Offset 50, 46 lines modifiedOffset 50, 46 lines modified
50 <h5·id="safety-2"><a·class="doc-anchor"·href="#safety-2">§</a>Safety</h5>50 <h5·id="safety-2"><a·class="doc-anchor"·href="#safety-2">§</a>Safety</h5>
51 <p>You·must·ensure·that·the·<code>BTreeSet</code>·invariants·are·maintained.51 <p>You·must·ensure·that·the·<code>BTreeSet</code>·invariants·are·maintained.
52 Specifically:</p>52 Specifically:</p>
53 <ul>53 <ul>
54 <li>The·newly·inserted·element·must·be·unique·in·the·tree.</li>54 <li>The·newly·inserted·element·must·be·unique·in·the·tree.</li>
55 <li>All·elements·in·the·tree·must·remain·in·sorted·order.</li>55 <li>All·elements·in·the·tree·must·remain·in·sorted·order.</li>
56 </ul>56 </ul>
57 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.insert_after"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/set.rs.html#2359-2361">Source</a><h4·class="code-header">pub·fn·<a·href="#method.insert_after"·class="fn">insert_after</a>(&amp;mut·self,·value:·T)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.unit.html">()</a>,·<a·class="struct"·href="../btree_map/struct.UnorderedKeyError.html"·title="struct·alloc::collections::btree_map::UnorderedKeyError">UnorderedKeyError</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>btree_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/107540">#107540</a>)</span></div></span></summary><div·class="docblock"><p>Inserts·a·new·element·into·the·set·in·the·gap·that·the57 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.insert_after"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/set.rs.html#2359-2361">Source</a><h4·class="code-header">pub·fn·<a·href="#method.insert_after"·class="fn">insert_after</a>(&amp;mut·self,·value:·T)·-&gt;·<a·class="enum"·href="../../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="primitive"·href="../../../core/primitive.unit.html">()</a>,·<a·class="struct"·href="../btree_map/struct.UnorderedKeyError.html"·title="struct·alloc::collections::btree_map::UnorderedKeyError">UnorderedKeyError</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>btree_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/107540">#107540</a>)</span></div></span></summary><div·class="docblock"><p>Inserts·a·new·element·into·the·set·in·the·gap·that·the
58 cursor·is·currently·pointing·to.</p>58 cursor·is·currently·pointing·to.</p>
59 <p>After·the·insertion·the·cursor·will·be·pointing·at·the·gap·before·the59 <p>After·the·insertion·the·cursor·will·be·pointing·at·the·gap·before·the
60 newly·inserted·element.</p>60 newly·inserted·element.</p>
61 <p>If·the·inserted·element·is·not·greater·than·the·element·before·the61 <p>If·the·inserted·element·is·not·greater·than·the·element·before·the
62 cursor·(if·any),·or·if·it·not·less·than·the·element·after·the·cursor·(if62 cursor·(if·any),·or·if·it·not·less·than·the·element·after·the·cursor·(if
63 any),·then·an·<a·href="../btree_map/struct.UnorderedKeyError.html"·title="struct·alloc::collections::btree_map::UnorderedKeyError"><code>UnorderedKeyError</code></a>·is·returned·since·this·would63 any),·then·an·<a·href="../btree_map/struct.UnorderedKeyError.html"·title="struct·alloc::collections::btree_map::UnorderedKeyError"><code>UnorderedKeyError</code></a>·is·returned·since·this·would
64 invalidate·the·<a·href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord"><code>Ord</code></a>·invariant·between·the·elements·of·the·set.</p>64 invalidate·the·<a·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord"><code>Ord</code></a>·invariant·between·the·elements·of·the·set.</p>
65 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.insert_before"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/set.rs.html#2374-2376">Source</a><h4·class="code-header">pub·fn·<a·href="#method.insert_before"·class="fn">insert_before</a>(&amp;mut·self,·value:·T)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.unit.html">()</a>,·<a·class="struct"·href="../btree_map/struct.UnorderedKeyError.html"·title="struct·alloc::collections::btree_map::UnorderedKeyError">UnorderedKeyError</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>btree_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/107540">#107540</a>)</span></div></span></summary><div·class="docblock"><p>Inserts·a·new·element·into·the·set·in·the·gap·that·the65 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.insert_before"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/set.rs.html#2374-2376">Source</a><h4·class="code-header">pub·fn·<a·href="#method.insert_before"·class="fn">insert_before</a>(&amp;mut·self,·value:·T)·-&gt;·<a·class="enum"·href="../../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="primitive"·href="../../../core/primitive.unit.html">()</a>,·<a·class="struct"·href="../btree_map/struct.UnorderedKeyError.html"·title="struct·alloc::collections::btree_map::UnorderedKeyError">UnorderedKeyError</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>btree_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/107540">#107540</a>)</span></div></span></summary><div·class="docblock"><p>Inserts·a·new·element·into·the·set·in·the·gap·that·the
66 cursor·is·currently·pointing·to.</p>66 cursor·is·currently·pointing·to.</p>
67 <p>After·the·insertion·the·cursor·will·be·pointing·at·the·gap·after·the67 <p>After·the·insertion·the·cursor·will·be·pointing·at·the·gap·after·the
68 newly·inserted·element.</p>68 newly·inserted·element.</p>
69 <p>If·the·inserted·element·is·not·greater·than·the·element·before·the69 <p>If·the·inserted·element·is·not·greater·than·the·element·before·the
70 cursor·(if·any),·or·if·it·not·less·than·the·element·after·the·cursor·(if70 cursor·(if·any),·or·if·it·not·less·than·the·element·after·the·cursor·(if
71 any),·then·an·<a·href="../btree_map/struct.UnorderedKeyError.html"·title="struct·alloc::collections::btree_map::UnorderedKeyError"><code>UnorderedKeyError</code></a>·is·returned·since·this·would71 any),·then·an·<a·href="../btree_map/struct.UnorderedKeyError.html"·title="struct·alloc::collections::btree_map::UnorderedKeyError"><code>UnorderedKeyError</code></a>·is·returned·since·this·would
72 invalidate·the·<a·href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord"><code>Ord</code></a>·invariant·between·the·elements·of·the·set.</p>72 invalidate·the·<a·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord"><code>Ord</code></a>·invariant·between·the·elements·of·the·set.</p>
73 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.remove_next"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/set.rs.html#2383-2385">Source</a><h4·class="code-header">pub·fn·<a·href="#method.remove_next"·class="fn">remove_next</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;T&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>btree_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/107540">#107540</a>)</span></div></span></summary><div·class="docblock"><p>Removes·the·next·element·from·the·<code>BTreeSet</code>.</p>73 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.remove_next"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/set.rs.html#2383-2385">Source</a><h4·class="code-header">pub·fn·<a·href="#method.remove_next"·class="fn">remove_next</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="../../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;T&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>btree_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/107540">#107540</a>)</span></div></span></summary><div·class="docblock"><p>Removes·the·next·element·from·the·<code>BTreeSet</code>.</p>
74 <p>The·element·that·was·removed·is·returned.·The·cursor·position·is74 <p>The·element·that·was·removed·is·returned.·The·cursor·position·is
75 unchanged·(before·the·removed·element).</p>75 unchanged·(before·the·removed·element).</p>
76 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.remove_prev"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/set.rs.html#2392-2394">Source</a><h4·class="code-header">pub·fn·<a·href="#method.remove_prev"·class="fn">remove_prev</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;T&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>btree_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/107540">#107540</a>)</span></div></span></summary><div·class="docblock"><p>Removes·the·preceding·element·from·the·<code>BTreeSet</code>.</p>76 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.remove_prev"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/set.rs.html#2392-2394">Source</a><h4·class="code-header">pub·fn·<a·href="#method.remove_prev"·class="fn">remove_prev</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="../../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;T&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>btree_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/107540">#107540</a>)</span></div></span></summary><div·class="docblock"><p>Removes·the·preceding·element·from·the·<code>BTreeSet</code>.</p>
77 <p>The·element·that·was·removed·is·returned.·The·cursor·position·is77 <p>The·element·that·was·removed·is·returned.·The·cursor·position·is
78 unchanged·(after·the·removed·element).</p>78 unchanged·(after·the·removed·element).</p>
79 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-CursorMutKey%3C'_,+K,+A%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/set.rs.html#2068-2072">Source</a><a·href="#impl-Debug-for-CursorMutKey%3C'_,+K,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;K:·<a·class="trait"·href="../../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,·A&gt;·<a·class="trait"·href="../../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.CursorMutKey.html"·title="struct·alloc::collections::btree_set::CursorMutKey">CursorMutKey</a>&lt;'_,·K,·A&gt;</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/set.rs.html#2069-2071">Source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="../../fmt/struct.Formatter.html"·title="struct·alloc::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="type"·href="../../fmt/type.Result.html"·title="type·alloc::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../../fmt/trait.Debug.html#tymethod.fmt">Read·more</a></div></details></div></details></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-CursorMutKey%3C'a,+K,+A%3E"·class="impl"><a·href="#impl-Freeze-for-CursorMutKey%3C'a,+K,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·K,·A&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="struct"·href="struct.CursorMutKey.html"·title="struct·alloc::collections::btree_set::CursorMutKey">CursorMutKey</a>&lt;'a,·K,·A&gt;<[·...·truncated·by·diffoscope;·len:·272,·SHA:·76daa3a4cb5867f09480877a4c1d7a6cbf6345e810ef55f8fec797262d7c22aa·...·]/core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="struct"·href="struct.CursorMutKey.html"·title="struct·alloc::collections::btree_set::CursorMutKey">CursorMutKey</a>&lt;'a,·K,·A&gt;<div·class="where">where79 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-CursorMutKey%3C'_,+K,+A%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/set.rs.html#2068-2072">Source</a><a·href="#impl-Debug-for-CursorMutKey%3C'_,+K,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;K:·<a·class="trait"·href="../../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,·A&gt;·<a·class="trait"·href="../../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.CursorMutKey.html"·title="struct·alloc::collections::btree_set::CursorMutKey">CursorMutKey</a>&lt;'_,·K,·A&gt;</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/set.rs.html#2069-2071">Source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="../../fmt/struct.Formatter.html"·title="struct·alloc::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="type"·href="../../fmt/type.Result.html"·title="type·alloc::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../../fmt/trait.Debug.html#tymethod.fmt">Read·more</a></div></details></div></details></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-CursorMutKey%3C'a,+K,+A%3E"·class="impl"><a·href="#impl-Freeze-for-CursorMutKey%3C'a,+K,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·K,·A&gt;·<a·class="trait"·href="../../../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="struct"·href="struct.CursorMutKey.html"·title="struct·alloc::collections::btree_set::CursorMutKey">CursorMutKey</a>&lt;'a,·K,·A&gt;</h3></section><section·i[·...·truncated·by·diffoscope;·len:·224,·SHA:·d13c2ebfc8cee5f3e610323e40e27dacdf622b397d1e084c44001579e6319ad7·...·]/core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="struct"·href="struct.CursorMutKey.html"·title="struct·alloc::collections::btree_set::CursorMutKey">CursorMutKey</a>&lt;'a,·K,·A&gt;<div·class="where">where
80 ····A:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,80 ····A:·<a·class="trait"·href="../../../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,
81 ····K:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,</div></h3></section><section·id="impl-Send-for-CursorMutKey%3C'a,+K,+A%3E"·class="impl"><a·href="#imp[·...·truncated·by·diffoscope;·len:·159,·SHA:·d63db428802c525899bdd6169dbaa12bed6a987fe780e7511f4097bf52470981·...·]/core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="struct"·href="struct.CursorMutKey.html"·title="struct·alloc::collections::btree_set::CursorMutKey">CursorMutKey</a>&lt;'a,·K,·A&gt;<div·class="where">where81 ····K:·<a·class="trait"·href="../../../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,</div></h3></section><section·id="impl-Send-for-CursorMutKey%3C'a,+K,+A%3E"·class="impl"><a·href="#impl-Send-for-CursorMutKey%[·...·truncated·by·diffoscope;·len:·111,·SHA:·a8eee9a844f349c8974c32b44740e241ccd779c3be7580f0f530e6f8c94b00e7·...·]/core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="struct"·href="struct.CursorMutKey.html"·title="struct·alloc::collections::btree_set::CursorMutKey">CursorMutKey</a>&lt;'a,·K,·A&gt;<div·class="where">where
82 ····A:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>,82 ····A:·<a·class="trait"·href="../../../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>,
83 ····K:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>,</div></h3></section><section·id="impl-Sync-for-CursorMutKey%3C'a,+K,+A%3E"·class="impl"><a·href="#impl-Sync-for-CursorMutKey%3C'a,+K,+A%3E"·class="anch[·...·truncated·by·diffoscope;·len:·109,·SHA:·5c38bb55ef2acf82594acdb9f9a8f696bbce25e333513e7cf97a324f43d85c85·...·]/core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="struct"·href="struct.CursorMutKey.html"·title="struct·alloc::collections::btree_set::CursorMutKey">CursorMutKey</a>&lt;'a,·K,·A&gt;<div·class="where">where83 ····K:·<a·class="trait"·href="../../../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>,</div></h3></section><section·id="impl-Sync-for-CursorMutKey%3C'a,+K,+A%3E"·class="impl"><a·href="#impl-Sync-for-CursorMutKey%3C'a,+K,+A%3E"·class="anchor">§</a><h3·class="code[·...·truncated·by·diffoscope;·len:·61,·SHA:·137e0885c417c0696e0b97e49e762329fd4ae65e76df6f452af38b3d94a578bb·...·]/core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="struct"·href="struct.CursorMutKey.html"·title="struct·alloc::collections::btree_set::CursorMutKey">CursorMutKey</a>&lt;'a,·K,·A&gt;<div·class="where">where
84 ····A:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>,84 ····A:·<a·class="trait"·href="../../../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>,
85 ····K:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>,</div></h3></section><section·id="impl-Unpin-for-CursorMutKey%3C'a,+K,+A%3E"·class="impl"><a·href="#impl-Unpin-for-CursorMutKey%3C'a,+K,+A%3E"·class="an[·...·truncated·by·diffoscope;·len:·1495,·SHA:·e472fad3c5b32e1d90021c4212f284b1a6425dc3b47cb1d11556c5fc2f63f387·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where85 ····K:·<a·class="trait"·href="../../../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>,</div></h3></section><section·id="impl-Unpin-for-CursorMutKey%3C'a,+K,+A%3E"·class="impl"><a·href="#impl-Unpin-for-CursorMutKey%3C'a,+K,+A%3E"·class="anchor">§</a><h3·class="co[·...·truncated·by·diffoscope;·len:·1375,·SHA:·69852500377ef5e6042def61c37313cecb83e3d1be834fe65950530b6f23e95a·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where
86 ····T:·'static·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method[·...·truncated·by·diffoscope;·len:·834,·SHA:·47dfc2aa0101a4103e2a94c1f971c559790d87a62d58631fd2bfed98e6616a34·...·]/src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where86 ····T:·'static·+·?<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="s[·...·truncated·by·diffoscope;·len:·690,·SHA:·5140301cd9ff79a41eb9c4e21645354b7b39f4611f9b3646b7c859a62ac61067·...·]/src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where
87 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·[·...·truncated·by·diffoscope;·len:·743,·SHA:·b1db3ba49d399b0b1340fa997418ee1ae0ece93cc3579963c53bf7040ec0ded6·...·]/src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.BorrowMut.html"·title="trait·alloc::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where87 ····T:·?<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="sr[·...·truncated·by·diffoscope;·len:·647,·SHA:·eced384f314b303c18919389c5abe4a96aec1091fccffab1a095e21ec4389338·...·]/src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.BorrowMut.html"·title="trait·alloc::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where
88 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="met[·...·truncated·by·diffoscope;·len:·1422,·SHA:·3b5041f32ed902526095ebde8745452b32cbfac2cd9503735eec716deff7280f·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>88 ····T:·?<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class[·...·truncated·by·diffoscope;·len:·1254,·SHA:·7fcbbe8bd9862b59809c60d05e5f59904ccadf8a3a9f11da30f9fcc6b839c5b3·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>
89 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where89 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where
90 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="m[·...·truncated·by·diffoscope;·len:·237,·SHA:·98603c35860102b3af9b5cf27aeabf39e3c03236551986a6ec030817f108d919·...·]/core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>90 ····U:·<a·class="trait"·href="../../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·cla[·...·truncated·by·diffoscope;·len:·165,·SHA:·423a04a226f49c7f9a948f8c413dc8519f4a9a96a55914b6e6a694710d81c0f7·...·]/core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>
91 <p>That·is,·this·conversion·is·whatever·the·implementation·of91 <p>That·is,·this·conversion·is·whatever·the·implementation·of
92 <code><a·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>92 <code><a·href="../../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>
93 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#805-807">Source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where93 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../../src/core/convert/mod.rs.html#805-807">Source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where
94 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="asso[·...·truncated·by·diffoscope;·len:·1973,·SHA:·db4b8407e8e20581ad139aef25a6221a11da0f5f18d6aa35aa33eb843f4e1b9f·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where94 ····U:·<a·class="trait"·href="../../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><[·...·truncated·by·diffoscope;·len:·1709,·SHA:·e896b9bb1c9fd7d11ed5b2485b9a6fcb8a8eedc15783c2750df398ecae6b320e·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where
95 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·clas[·...·truncated·by·diffoscope;·len:·1578,·SHA:·998d5af10fd889567cd999d1306bfd16c91134d2238a3c172f1e7fa8ed138c18·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>95 ····U:·<a·class="trait"·href="../../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-[·...·truncated·by·diffoscope;·len:·1338,·SHA:·bf7fc0d673df53e1a193a897ac1592a2d85070ae590f9624c2e5404df56f3bb0·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>
312 KB
./usr/share/doc/rust-doc/html/alloc/collections/btree_set/struct.Difference.html
    
Offset 1, 221 lines modifiedOffset 1, 221 lines modified
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="A·lazy·iterator·producing·elements·in·the·difference·of·`BTreeSet`s."><title>Difference·in·alloc::collections::btree_set·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»    2025-01-07)» (built»   from»       a»      source»tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Difference</a></h2><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-Difference%3C'_,+T,+A%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-Difference%3C'_,+T,+A%3E"·title="Debug">Debug</a></li><li><a·href="#impl-FusedIterator-for-Difference%3C'_,+T,+A%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-Difference%3C'a,+T,+A%3E"·title="Iterator">Iterator</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-Difference%3C'a,+T,+A%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Difference%3C'a,+T,+A%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Difference%3C'a,+T,+A%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-Difference%3C'a,+T,+A%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-Difference%3C'a,+T,+A%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Difference%3C'a,+T,+A%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>collections::<wbr>btree_<wbr>set</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">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">btree_set</a></span><h1>Struct·<span·class="struct">Difference</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/set.rs.html#178-184">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·Difference&lt;'a,·T:·'a,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·=·<a·class="struct"·href="../../alloc/struct.Global.html"·title="struct·alloc::alloc::Global">Global</a>&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>A·lazy·iterator·producing·elements·in·the·difference·of·<code>BTreeSet</code>s.</p>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="A·lazy·iterator·producing·elements·in·the·difference·of·`BTreeSet`s."><title>Difference·in·alloc::collections::btree_set·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»    2025-01-07)» (built»   from»       a»      source»tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Difference</a></h2><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-Difference%3C'_,+T,+A%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-Difference%3C'_,+T,+A%3E"·title="Debug">Debug</a></li><li><a·href="#impl-FusedIterator-for-Difference%3C'_,+T,+A%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-Difference%3C'a,+T,+A%3E"·title="Iterator">Iterator</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-Difference%3C'a,+T,+A%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Difference%3C'a,+T,+A%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Difference%3C'a,+T,+A%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-Difference%3C'a,+T,+A%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-Difference%3C'a,+T,+A%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Difference%3C'a,+T,+A%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>collections::<wbr>btree_<wbr>set</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">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">btree_set</a></span><h1>Struct·<span·class="struct">Difference</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/set.rs.html#178-184">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·Difference&lt;'a,·T:·'a,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·+·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·=·<a·class="struct"·href="../../alloc/struct.Global.html"·title="struct·alloc::alloc::Global">Global</a>&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>A·lazy·iterator·producing·elements·in·the·difference·of·<code>BTreeSet</code>s.</p>
2 <p>This·<code>struct</code>·is·created·by·the·<a·href="struct.BTreeSet.html#method.difference"·title="method·alloc::collections::btree_set::BTreeSet::difference"><code>difference</code></a>·method·on·<a·href="struct.BTreeSet.html"·title="struct·alloc::collections::btree_set::BTreeSet"><code>BTreeSet</code></a>.2 <p>This·<code>struct</code>·is·created·by·the·<a·href="struct.BTreeSet.html#method.difference"·title="method·alloc::collections::btree_set::BTreeSet::difference"><code>difference</code></a>·method·on·<a·href="struct.BTreeSet.html"·title="struct·alloc::collections::btree_set::BTreeSet"><code>BTreeSet</code></a>.
3 See·its·documentation·for·more.</p>3 See·its·documentation·for·more.</p>
4 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-Difference%3C'_,+T,+A%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/set.rs.html#1801-1816">Source</a></span><a·href="#impl-Clone-for-Difference%3C'_,+T,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struc[·...·truncated·by·diffoscope;·len:·8415,·SHA:·7e5a8a45b7f7f9961a8d40f00b94cacf3d0291b5176a73ce396f9e3ea99fdbe1·...·]/core/primitive.usize.html">usize</a>&gt;(4 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-Difference%3C'_,+T,+A%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/set.rs.html#1801-1816">Source</a></span><a·href="#impl-Clone-for-Difference%3C'_,+T,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·+·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>&gt;·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struct"·href="struct.Difference.html"·title="struct·a[·...·truncated·by·diffoscope;·len:·7719,·SHA:·7dd77f4e8bdede880c9e7f4432070d53bce845865fda8c96c31249f4ea4948a3·...·]/core/primitive.usize.html">usize</a>&gt;(
5 ····&amp;mut·self,5 ····&amp;mut·self,
6 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·4f557a9b49151e0be8c52ffd68f1def4469c08164239dc8bef8df2040551c5ef·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where6 )·-&gt;·<a·class="enum"·href="../../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::It[·...·truncated·by·diffoscope;·len:·261,·SHA:·9b488006768a86d05b68f4e1888c750c736264a3a386f1310f1b7e8bfc7d2184·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where
7 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·962,·SHA:·116e4ec2ae3d9655c3d115eaf50f435f5323b4e48b84de734c79d2a09b3c02f2·...·]/core/primitive.usize.html">usize</a><div·class="where">where7 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_next[·...·truncated·by·diffoscope;·len:·842,·SHA:·d8f387888e3ee78f4397f4b1a12eae734e055247e3aa3251433ab8ac1019b31a·...·]/core/primitive.usize.html">usize</a><div·class="where">where
8 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·counting·the·number·of·iterations·and·returning·it.·<a·href="https://doc.[·...·truncated·by·diffoscope;·len:·837,·SHA:·47e25b6f9687bcc1d1fcdf9842fb085e6aba767d70531028f948636b80563dfc·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where8 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·counting·the·number·of·iterations·and·returning·it.·<a·href="../../../core/iter/traits/iterator/t[·...·truncated·by·diffoscope;·len:·693,·SHA:·725f42ff290538a513ec93cf7284210e1c519a4cc200b6d5878e7ccff2777059·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
9 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·returning·the·last·element.·<a·href="https://doc.rust-lang.org/1.84.0/cor[·...·truncated·by·diffoscope;·len:·3504,·SHA:·ec43d0f6d8d2a1e0fb7a684c382b9934abe1250844e53cce08bdfc6017ecb276·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where9 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·returning·the·last·element.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#metho[·...·truncated·by·diffoscope;·len:·3024,·SHA:·33e764ec8aa4ce60da61c340591349678c8144088b1440d0c5d8b7b28ba27fc9·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where
10 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by10 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by
11 the·given·amount·at·each·iteration.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><sp[·...·truncated·by·diffoscope;·len:·842,·SHA:·945c4509a8daf2f8fbccc5c6e5089e225955911e03a3e411f047f96d52d16862·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where11 the·given·amount·at·each·iteration.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="[·...·truncated·by·diffoscope;·len:·698,·SHA:·035d2f4d2e6b01ddf0b424aa6fc3f5919c82f85f857cb9cfa0f54f8357058b90·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
12 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,12 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
13 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·3b5ce32f9d564c3aa7cf2adc7130e674758d0c0f4f1275b4c3b46a74aa802cb3·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where13 ····U:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·[·...·truncated·by·diffoscope;·len:·1137,·SHA:·7916ae3a9b5afad376aafc6d698165147d82613fe975f64423f2367a02a69f6a·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
14 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,14 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
15 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·[·...·truncated·by·diffoscope;·len:·868,·SHA:·abdbf27ccc84063c7040d8fa3da9d0bda5ee310a470ef576e15554aee4bd5d21·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where15 ····U:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·of·pairs.·<a·href="../..[·...·truncated·by·diffoscope;·len:·724,·SHA:·ba31078b5c50fbfc51e53bed6f70aaa6e7e320cfda19949035c71d9363c0d919·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where
16 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,16 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
17 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent17 ····Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent
18 items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="sr[·...·truncated·by·diffoscope;·len:·427,·SHA:·6e82ad4aad49c2165d869fe30d20a968580a973cdb3a7f4c77f49e16dd59393e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where18 items·of·the·original·iterator.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="src·rightside"·href="../..[·...·truncated·by·diffoscope;·len:·331,·SHA:·451e844c9bf5d6d78b9579516e4b9fafb3e84136eaa1c95bead4539370743d7d·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where
19 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,19 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
20 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>20 ····G:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>
21 between·adjacent·items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightsi[·...·truncated·by·diffoscope;·len:·471,·SHA:·ed10488b7b2ccc3e4cc84a9a57a9695a74c1c964962e8d753cbace12f3318a66·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where21 between·adjacent·items·of·the·original·iterator.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·[·...·truncated·by·diffoscope;·len:·375,·SHA:·7bbb71535f348e442b9de05a74f9180c9acec0636566fa2a19ab1dc83779aace·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where
22 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,22 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
23 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each23 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each
24 element.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><spa[·...·truncated·by·diffoscope;·len:·306,·SHA:·61c87c39b177830189b0e4c036d97c40d8b9649d76432c90afb88de59498e8b2·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where24 element.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="S[·...·truncated·by·diffoscope;·len:·234,·SHA:·55463e0fb539911d03265cbd8abb7248189471ea74954185ed77f245746805c2·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where
25 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,25 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
26 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·a65da32c5f5ef8335cb607d3b4ab3f8a25877bc2c2e8b44ca9d575caecd5c8a5·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where26 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·772,·SHA:·de07f629315c257cc96a89e82de6752f002f259b678391b79d5fb48e279e56d2·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where
27 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,27 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
28 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·6d69c85c69fa789be551ea42d95c33c237d12a04ef157f9ddaaead1177f7771e·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element28 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·68,·SHA:·67cf1e2a20410007c7dd6c47c91b1d386626c1bfac5c1116c374da7bbee00d51·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element
29 should·be·yielded.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·489,·SHA:·9bdc636899f4e4e5a26a3a21c9603f72b3fb972865d2f459c38b7e2ac8fed7f1·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where29 should·be·yielded.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·tit[·...·truncated·by·diffoscope;·len:·393,·SHA:·328d72714f754fb793753313f01b087a9fbb30b77a2bcd5749456e1f6fd72710·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where
30 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,30 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
31 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·46dbf841c7aecd3f06bd4c944af21650faeac98c46c515dcfe643302618b1ecd·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where31 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·884,·SHA:·e8a37e28a6bfcb2d58b9ffd389d339c3dece95c14840f28c980a7d7aedcc9a05·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where
32 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as32 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as
33 the·next·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside[·...·truncated·by·diffoscope;·len:·468,·SHA:·52f7ff7f264284c3acc4429ca34d057ded9afa2e3d9d6e07571e252db9a48977·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where33 the·next·value.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside"><span·class="since"·ti[·...·truncated·by·diffoscope;·len:·372,·SHA:·9c08a613d034f21b42b8d196073d0f4d61c81458378e40e77995533a8b460837·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where
34 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·c0180fefce4346b0b4089e5c642521d7716108241c0ce6ec3e910c7a2c7364b4·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods34 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="../../../core/iter/adapters/peekable/struct.Peekable.html#method.peek"·ti[·...·truncated·by·diffoscope;·len:·103,·SHA:·e3683d31746f50069ed604def6201840bce75bbc7c584fac6c3644292077ae8a·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods
35 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See35 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See
36 their·documentation·for·more·information.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightsid[·...·truncated·by·diffoscope;·len:·498,·SHA:·e4a68861585faec6a5032b3b69d6dfb0f2799b5f387a527d9a1365571ed02069·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where36 their·documentation·for·more·information.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightside"><span·class="since"·t[·...·truncated·by·diffoscope;·len:·402,·SHA:·bdba673560d208f968337eb74446ead60d6223b0ca9ec6fbfaeb1a995a7e8001·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where
37 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,37 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
38 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·93281c1f6402743fd61110c11cf676f0f67eddceda801b4eb35e5fe9f85870fd·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where38 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·1042,·SHA:·27d4a79658fb1c97b659bd2520bcebbf5cfcb8a42420a7ecfcbff6f3330fa5e1·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where
39 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,39 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
40 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·f1cdbb1ec64f98fabbe1d89c88b03824310926cd7eaa160953ce2452fc3abb77·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where40 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·890,·SHA:·c43533da7f54bfb6611594b3436645d4d1f8e5339d2d05bf2345e87628499759·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where
41 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,41 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
42 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·f94a0b2c1396b13b89aca7830197ebf19e2c0e5ba536a9cc25b325a481799510·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where42 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·971,·SHA:·1b31b9d1d5061d4ee982a30400139f1d7319412bdea39925e0cc1e8e7cf3d65a·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where
43 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="https://doc.rust-lang[·...·truncated·by·diffoscope;·len:·783,·SHA:·c14217b89e3292a50a09192a8857485891fc769f861e1d1fc4322d04295c86ef·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where43 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="../../../core/iter/traits/iterator/trait.Iter[·...·truncated·by·diffoscope;·len:·639,·SHA:·79c7f7eddc655d329424f08baee8551b7f59cd4dc4b0d6984c5e4f241bcb949b·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where
44 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer44 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer
45 if·the·underlying·iterator·ends·sooner.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·c[·...·truncated·by·diffoscope;·len:·488,·SHA:·76f753d5a273a09a73127631acaa0ee947326a929f33be291018188793e1af56·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where45 if·the·underlying·iterator·ends·sooner.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stab[·...·truncated·by·diffoscope;·len:·392,·SHA:·50ac976eb8bf89726a483af064d5a70c100dedd17d46dc40ac3a82aba51b2082·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where
46 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,46 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
47 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·07d303586c8ad4e0082d5b44bff8eeda03cdb8f4bdbe46489f9232bca5a43ec6·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but47 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/tra[·...·truncated·by·diffoscope;·len:·329,·SHA:·14fc5ef1359fcb2171e21ba65c5f5d8ce11053860ba1d5aa32ddce90a48c2a8c·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but
48 unlike·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·2b20882d9583cee50e0c8b3cf362b27ce0d524db387d4aa4093d622b9370dada·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where48 unlike·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.scan">Rea[·...·truncated·by·diffoscope;·len:·570,·SHA:·3cdbe78e481f63f4d21b2fa94202dad167221af9d6e6f981ccd7a6e524f6157d·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where
49 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,49 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
50 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,50 ····U:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
51 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·933,·SHA:·4af94b75ba5c1e03d2d70590d2fd0706f13b3080fbff0f5b98e7b109048c403d·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where51 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·789,·SHA:·0e36f9aa81931958e65acc9e1b5bf6ad7367dcb7163dcf0af2a043314857a909·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where
52 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,52 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
53 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.I[·...·truncated·by·diffoscope;·len:·968,·SHA:·e5572ed2f3bdf5970d038da608f2f592d945541207c483c257fe5789efba168a·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where53 ····Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::trait[·...·truncated·by·diffoscope;·len:·800,·SHA:·3ea01df21dfaf9ee656fdee6aa789a6ce5be05d17c043433c5ab28da8f6d3241·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where
54 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,54 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
55 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·3013c0e49b0dade37f8ca096eccc5ceeb03fc79b9d320a4c92486d23b88d1009·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over55 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator[·...·truncated·by·diffoscope;·len:·63,·SHA:·8395b60c01b0cde6c3340bd4e6c57cddd02465a19dcf15a8aa5498bd6c8ddc11·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over
56 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,56 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="../../../core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,
57 the·windows·during·mapping·overlap·as·well.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside">[·...·truncated·by·diffoscope;·len:·454,·SHA:·040991f3914479bcc92615de2b81df7363656323622e5aadc964e1a61917d23e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where57 the·windows·during·mapping·overlap·as·well.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside"><span·class="since"·titl[·...·truncated·by·diffoscope;·len:·358,·SHA:·21db4436f04b3d09e41f294c30cd7dea235a4beb9af727cb1f1f065008ad732e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where
58 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="https://doc.rust-lang.org/1.84.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·0e0294a45242d5ce9a3ab8f95d6d410756415291d92baa7d12283ef1b3ecc3a0·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where58 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="../../../core/option/enum.Option.html#variant.None"·title="varia[·...·truncated·by·diffoscope;·len:·697,·SHA:·55b16240a265fa2f73963114b9def4c5703a60d1c3ce047915fff28502588e5b·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where
59 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,59 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
60 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·a8b562f71802a421f4745f7d1fadf4f70d98030c829e70f27b692e7915267027·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where60 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·650,·SHA:·eb862563a2da6881a0f9a31dac8f99f2b47b2c8d3033a0e1bc9ec49ae5500941·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where
61 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="https://doc.rust-lang.org/1.84.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·b3db7d84f203bbc139b1c52912705d19c664dac762898205fce452c9dc3a5318·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where61 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.by[·...·truncated·by·diffoscope;·len:·427,·SHA:·d439202f1a598c30b789e20f3d05a82f531349aa12f3af08cc5c230996ec01a9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where
62 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,62 ····B:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
63 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·431,·SHA:·a705a23f6d810357e7dcac670743884665ffcccfb9b780d0aa03720be8ca5625·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(63 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.collect[·...·truncated·by·diffoscope;·len:·335,·SHA:·d72a986b5d306b2e1ed99e18a16e26fa1b5380448fea76ac3db703052800b629·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(
64 ····&amp;mut·self,64 ····&amp;mut·self,
65 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.h[·...·truncated·by·diffoscope;·len:·479,·SHA:·fa749442d890055f86ceb34f411c84fd7ea08302b336d786d1ca36fe5868b020·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where65 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try[·...·truncated·by·diffoscope;·len:·359,·SHA:·886ccc2fbd37f1e7df4075b80b0bebd3d1a6e997fae2114ca1818fa30fa95d5a·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
66 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,66 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
67 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>, 
68 ····&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang[·...·truncated·by·diffoscope;·len:·449,·SHA:·9ddccfb7bdd27ea692d65fa83daf56e31762d1bec3a502234174b8fa4fb33a98·...·],67 ····Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="[·...·truncated·by·diffoscope;·len:·40,·SHA:·39f6b8b47216936a6251a972a3e72c0459df25c157b8b3990eefb48397aa8303·...·],
 68 ····&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;B&gt;,
69 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/itera[·...·truncated·by·diffoscope;·len:·323,·SHA:·b5c51f161dc9d77fd81d1fd23cc71fbf42ac00f3168cf9e41ebaaa2b6eb25363·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if69 ····B:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·tit[·...·truncated·by·diffoscope;·len:·227,·SHA:·91a843f71f5d4d4bdd2a6f526e4b1ace78ad1c1c0027ff429527a1e3cc1cbb42·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if
70 a·failure·is·encountered.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·ri[·...·truncated·by·diffoscope;·len:·521,·SHA:·6a54376815dab985ec8cc35604d035e98e3003b1563c9b41e70966084505542b·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where70 a·failure·is·encountered.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../../[·...·truncated·by·diffoscope;·len:·401,·SHA:·ed1d0660f20625c1d5231d569dd3e4f1d10332250dcd1a3f5d2e886618e67f5b·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
71 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,71 ····E:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
72 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·975,·SHA:·94f7f970236ba59ba5f1415764a0e3ab2f3093c6b79e76c25c797ac24a3c4d09·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where72 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_coll[·...·truncated·by·diffoscope;·len:·855,·SHA:·7b38a8c237aadc46d5211ff8698af580678e0cbcab757a66d6416b422880dd91·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
73 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,73 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
74 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·b480ec650ba000fe7cb67df58fc0351299638ee3e8f00db18f74ca24d69f9894·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,74 ····B:·<a·class="trait"·href="../../../core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="../../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associa[·...·truncated·by·diffoscope;·len:·23,·SHA:·4417dee5d41246c4acf5419e1bdac3c7d847bd34e3e87738a08734259a3b63da·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
75 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·972,·SHA:·0a54d9b1f5cb78c4f6b5f5b1153955eea3a8c16edcc762351208dabad1e8e9aa·...·]/core/primitive.bool.html">bool</a><div·class="where">where75 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·804,·SHA:·9304858cfccb085a534269651ae33dddafe29b7d287f0db58b4a9394480a2fa6·...·]/core/primitive.bool.html">bool</a><div·class="where">where
76 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,76 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
77 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·fcd03e71f79faad6d9b9a12045d59f4dfabc78e5aefebcabc9c1a5be45e31125·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,77 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·63,·SHA:·852041c2de8156fdddf9f71111c5ddf1a6b88aabd8c082f1a254f0b21c18ffa1·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,
78 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><span·class="righ[·...·truncated·by·diffoscope;·len:·319,·SHA:·9b9df13f2f4e5b4dde3908515766e1a474fa30bcb7edc98c15665a016e677c2a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where78 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><span·class="rightside"><span·class="sinc[·...·truncated·by·diffoscope;·len:·247,·SHA:·222a0145d03094cb0b20ca156583afe97e703828a8aa77e37fb7b4661759e2c7·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where
79 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,79 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
80 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,80 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
81 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns81 ····R:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns
82 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rights[·...·truncated·by·diffoscope;·len:·321,·SHA:·619fd774190944998148325de99aaa75de66ce4b7e26579fd342c564923a5652·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where82 successfully,·producing·a·single,·final·value.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"[·...·truncated·by·diffoscope;·len:·249,·SHA:·afbe9e91614278f09851b7c5920ddaf0907a2bf4c310ec39b40084e28959cc77·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where
83 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,83 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
84 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,84 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
85 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the85 ····R:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="../../../core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the
86 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·307,·SHA:·5975144fd8566efa93ad1ccec09297e280924b7372e08681d2103702124e2c52·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where86 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><span·class="rightside"><span·class="since"·tit[·...·truncated·by·diffoscope;·len:·235,·SHA:·da9aac17d9724df2aa434c2d10e1caa010eb4fd7e574e4da4e3d5b689e970097·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where
87 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,87 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
88 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,88 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,
89 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span[·...·truncated·by·diffoscope;·len:·619,·SHA:·8813f54846438870310d5f5dfabd2335a9dbf51e9da2e4cd681bcb6077d39628·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where89 returning·the·final·result.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="St[·...·truncated·by·diffoscope;·len:·499,·SHA:·ff97be2c630acbbbb397aa79317bd89b79955e6735d9da7aea9df48659f94fce·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
90 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,90 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
91 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·084691f7fc4e7f4da7db385127d0ce8d2d52f6740757129a65910c4db0dc180d·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing91 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·256,·SHA:·2fe8ae39f77649fea294c45979f427748b2a9938dfa70e4595ac661d972125b1·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing
92 operation.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·217,·SHA:·447ae00256be3de069c602a6c04889808c883eae6fa349d023f53bdd5570ecae·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(92 operation.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside"·href="../../../src/cor[·...·truncated·by·diffoscope;·len:·145,·SHA:·be4dc63adf8a4e832fd3dbaaabbf45f287388ea2bb17088d40589203a2ec6dfb·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(
93 ····&amp;mut·self,93 ····&amp;mut·self,
94 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·70b2b85cad045ac7addf647e0bd3cd5b2c9ebca5986613ad2b6a9c00e3a1132f·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,94 ····f:·impl·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·68,·SHA:·e7e11f257edcac749a5883ad9a3aa42e6e965be419f967b36caa7afd3b36d7c9·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
95 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·1823533b932e38e3200465d101f10a34421c005018974296350162e4049615ea·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where95 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</[·...·truncated·by·diffoscope;·len:·586,·SHA:·596f94ec7a4c06359aee56ccb8a7138a1ddb94415fafcecac1fc87434b1329a3·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
96 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,96 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
97 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,97 ····R:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
98 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·764ea8f08626b05426a76738d54ebb2d640042494d76cba8c20d868bfdc07a73·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the98 ····&lt;R·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</[·...·truncated·by·diffoscope;·len:·292,·SHA:·2ae73aa9b78f13099a8016e28a473713dcc755cf00fed8895c0c1b027bbcea01·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the
99 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><span·class="rightside"><s[·...·truncated·by·diffoscope;·len:·476,·SHA:·aef721c14147dea2fbec70dcfa76916b3f1273bed8304f4c9db310ca23d1e4b1·...·]/core/primitive.bool.html">bool</a><div·class="where">where99 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title=[·...·truncated·by·diffoscope;·len:·380,·SHA:·1042cdc03eabce3d330853b659f28b8566dd5841790f7f1303f3e326f05efab6·...·]/core/primitive.bool.html">bool</a><div·class="where">where
100 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,100 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
101 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·7c48e62c73a40a5cb5ebbf4a22cd789b342a88ad3d855022191f2bae33c736c6·...·]/core/primitive.bool.html">bool</a><div·class="where">where101 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·850,·SHA:·1b28d9cdfe3ba8dc7eac8cef1bb6549e78768b440ea492c70d80c8c07eae61cb·...·]/core/primitive.bool.html">bool</a><div·class="where">where
102 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,102 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
103 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·673d69ce0c23e24b2546127c463e67cd2a4c0f7be792712e2b42e75427161b75·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where103 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·980,·SHA:·a560c9e639c326a34f124b36f977291532e03ffae190e973674fee7e13b4c842·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
104 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,104 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
105 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·aa5078ff77f5638746395497f8ce92c1b684d342dea851990104d5e9981ab6b0·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where105 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·883,·SHA:·47fb849c20ee0cb36696a24bd285768bd0973774403ae956d2a517cd216452b1·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where
106 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,106 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
107 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·1bd732dff19021a1586bb486282683f5c1bc65d5d514f9e13cc9232b4e94955b·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;,</div></h4></section></summary><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns107 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·58,·SHA:·f6e1e279f463d2adecc4a9316aeab7af85329a84398e722f43ac130647fe78cf·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;,</div></h4></section></summary><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns
108 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.find_map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_find"·class="method·trait-impl"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·215,·SHA:·4d59a011c8881794ce6367c1e816f11a813db02e37c71800ed6d47056f157573·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(108 the·first·non-none·result.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.find_map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_find"·class="method·trait-impl"><a·class="src·rightside"·href="../../../src/cor[·...·truncated·by·diffoscope;·len:·143,·SHA:·00906f8dc0620ba030a634eba59c098f3aff639a062bf6231dfc4feb7727cc72·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(
109 ····&amp;mut·self,109 ····&amp;mut·self,
110 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,110 ····f:·impl·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
111 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·efb03e5c706e0947c6a4490b17f1efb0f1944a7d81f2640b5933212334dd255a·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where111 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</[·...·truncated·by·diffoscope;·len:·482,·SHA:·9ae34b47b226617c3eb5738e2b006056038b8280724fbbb72477bd2e900a4e85·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
112 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,112 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
113 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html">bool</a>&gt;,113 ····R:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="../../../core/primitive.bool.html">bool</a>&gt;,
114 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·764ea8f08626b05426a76738d54ebb2d640042494d76cba8c20d868bfdc07a73·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>try_find</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/63178">#63178</a>)</span></div></span><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns114 ····&lt;R·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</[·...·truncated·by·diffoscope;·len:·292,·SHA:·2ae73aa9b78f13099a8016e28a473713dcc755cf00fed8895c0c1b027bbcea01·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>try_find</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/63178">#63178</a>)</span></div></span><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns
115 the·first·true·result·or·the·first·error.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_find">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.position"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·635,·SHA:·348891c2a01ad4ba1f5ccca4c270bd2cefaf47e6b8194dc69d227209558119ff·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where115 the·first·true·result·or·the·first·error.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_find">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.position"·class="method·trait-impl"><span·class="rightside"><span·class="since"·tit[·...·truncated·by·diffoscope;·len:·515,·SHA:·a1fda5a0c76c9054797870324df8cd1bb446d66310ff913ddcbc9467fea7a33a·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
116 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,116 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
117 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1144,·SHA:·924dabfde33cb637151c206b5bef45e7e2185053d933cf9a15c59eecaafa6d5c·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where117 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·952,·SHA:·72f72454b4804f46746efa385fa104f63e84fb586632dd1c4c930f34217d1e30·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
118 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,118 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
119 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.Ord.html"·title="[·...·truncated·by·diffoscope;·len:·1027,·SHA:·7ea45bb0396663d53190e2d043f0af1f755a90938f5e2272e0be32ed7aaee2cf·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where119 ····Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,</div></h4></secti[·...·truncated·by·diffoscope;·len:·859,·SHA:·c6328448ba9ee8b3f9c035dc6beb27d220f1cfb75bec76831422a5a7699528ad·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
120 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,120 ····B:·<a·class="trait"·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,
121 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,121 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
122 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Returns·the·element·that·gives·the·maximum·value·from·the122 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Returns·the·element·that·gives·the·maximum·value·from·the
123 specified·function.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.max_by_key">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.max_by"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·631,·SHA:·85969676239612a4af79ca58ddb20274f3ef3c8441f7ce5fa7050e530fed90d6·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where123 specified·function.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.max_by_key">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.max_by"·class="method·trait-impl"><span·class="rightside"><span·class="since"·tit[·...·truncated·by·diffoscope;·len:·511,·SHA:·28a81c6cecf40d424b9fff4f8efe3c058d66ecd63997796e214fc2bfce83e488·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
124 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,124 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
125 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·346,·SHA:·89ac74208295b291143af90fbbe08713bd1029679a1ef1eac39de92bb3981c03·...·]/core/cmp/enum.Ordering.html"·title="enum·core::cmp::Ordering">Ordering</a>,</div></h4></section></summary><div·class='docblock'>Returns·the·element·that·gives·the·maximum·value·with·respect·to·the125 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·250,·SHA:·8f55ec1ee28e7749caf0f66b596dbeacdc1675fa7c004a791e54bb3ea4ca2ea7·...·]/core/cmp/enum.Ordering.html"·title="enum·core::cmp::Ordering">Ordering</a>,</div></h4></section></summary><div·class='docblock'>Returns·the·element·that·gives·the·maximum·value·with·respect·to·the
126 specified·comparison·function.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.max_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.min_by_key"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·638,·SHA:·f613f75de1f91a4ed72540d49ff57e2fd0e395db510c03661ef3120f8a9e038a·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where126 specified·comparison·function.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.max_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.min_by_key"·class="method·trait-impl"><span·class="rightside"><span·class="since"·tit[·...·truncated·by·diffoscope;·len:·518,·SHA:·22bc8d4e53ae6ff60ccbb54fa8a2acbbe4bc6c9f8e2a9c6c08df10f0906ff721·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
Max diff block lines reached; 91943/319341 bytes (28.79%) of diff not shown.
301 KB
./usr/share/doc/rust-doc/html/alloc/collections/btree_set/struct.ExtractIf.html
    
Offset 1, 229 lines modifiedOffset 1, 229 lines modified
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="An·iterator·produced·by·calling·`extract_if`·on·BTreeSet."><title>ExtractIf·in·alloc::collections::btree_set·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»      2025-01-07)»   (built»     from» a»source»  tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Extract<wbr>If</a></h2><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Debug-for-ExtractIf%3C'_,+T,+F,+A%3E"·title="Debug">Debug</a></li><li><a·href="#impl-FusedIterator-for-ExtractIf%3C'_,+T,+F,+A%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-ExtractIf%3C'_,+T,+F,+A%3E"·title="Iterator">Iterator</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-UnwindSafe-for-ExtractIf%3C'a,+T,+F,+A%3E"·title="!UnwindSafe">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-ExtractIf%3C'a,+T,+F,+A%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-ExtractIf%3C'a,+T,+F,+A%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-ExtractIf%3C'a,+T,+F,+A%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-ExtractIf%3C'a,+T,+F,+A%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-ExtractIf%3C'a,+T,+F,+A%3E"·title="Unpin">Unpin</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>collections::<wbr>btree_<wbr>set</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">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">btree_set</a></span><h1>Struct·<span·class="struct">ExtractIf</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/alloc/collections/btree/set.rs.html#1441-1454">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·ExtractIf&lt;'a,·T,·F,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·=·<a·class="struct"·href="../../alloc/struct.Global.html"·title="struct·alloc::alloc::Global">Global</a>&gt;<div·class="where">where1 <!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="An·iterator·produced·by·calling·`extract_if`·on·BTreeSet."><title>ExtractIf·in·alloc::collections::btree_set·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»      2025-01-07)»   (built»     from» a»source»  tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Extract<wbr>If</a></h2><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Debug-for-ExtractIf%3C'_,+T,+F,+A%3E"·title="Debug">Debug</a></li><li><a·href="#impl-FusedIterator-for-ExtractIf%3C'_,+T,+F,+A%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-ExtractIf%3C'_,+T,+F,+A%3E"·title="Iterator">Iterator</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-UnwindSafe-for-ExtractIf%3C'a,+T,+F,+A%3E"·title="!UnwindSafe">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-ExtractIf%3C'a,+T,+F,+A%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-ExtractIf%3C'a,+T,+F,+A%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-ExtractIf%3C'a,+T,+F,+A%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-ExtractIf%3C'a,+T,+F,+A%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-ExtractIf%3C'a,+T,+F,+A%3E"·title="Unpin">Unpin</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>collections::<wbr>btree_<wbr>set</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">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">btree_set</a></span><h1>Struct·<span·class="struct">ExtractIf</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/alloc/collections/btree/set.rs.html#1441-1454">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·ExtractIf&lt;'a,·T,·F,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·+·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·=·<a·class="struct"·href="../../alloc/struct.Global.html"·title="struct·alloc::alloc::Global">Global</a>&gt;<div·class="where">where
2 ····T:·'a,2 ····T:·'a,
3 ····F:·'a·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·5846407374f20f525a4a0663ad4488141eafe64513ef82581dc5df5c2d200745·...·]/core/primitive.bool.html">bool</a>,</div>{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>btree_extract_if</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/70530">#70530</a>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>An·iterator·produced·by·calling·<code>extract_if</code>·on·BTreeSet.</p>3 ····F:·'a·+·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="../../../core/primitive.bool.html">bool</a>,</div>{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>btree_extract_if</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/70530">#70530</a>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>An·iterator·produced·by·calling·<code>extract_if</code>·on·BTreeSet.</p>
4 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-ExtractIf%3C'_,+T,+F,+A%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/set.rs.html#1457-1465">Source</a><a·href="#impl-Debug-for-ExtractIf%3C'_,+T,+F,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·F,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>&gt;·<a·class="trait"·href="../../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.ExtractIf.html"·title="struct·alloc::collections::btree_set::ExtractIf">ExtractIf</a>&lt;'_,·T,·F,·A&gt;<div·class="where">where4 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-ExtractIf%3C'_,+T,+F,+A%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/set.rs.html#1457-1465">Source</a><a·href="#impl-Debug-for-ExtractIf%3C'_,+T,+F,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·F,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·+·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>&gt;·<a·class="trait"·href="../../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.ExtractIf.html"·title="struct·alloc::collections::btree_set::ExtractIf">ExtractIf</a>&lt;'_,·T,·F,·A&gt;<div·class="where">where
5 ····T:·<a·class="trait"·href="../../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,5 ····T:·<a·class="trait"·href="../../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,
6 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·1542,·SHA:·e6561eb705c7f78dcf93622f83f2c697b51c07b08f92b56ae119bcd46f4dbd6f·...·]/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::Iterator">Iterator</a>·for·<a·class="struct"·href="struct.ExtractIf.html"·title="struct·alloc::collections::btree_set::ExtractIf">ExtractIf</a>&lt;'_,·T,·F,·A&gt;<div·class="where">where6 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="../../../core/primitive.bool.html">bool</a>,</di[·...·truncated·by·diffoscope;·len:·1422,·SHA:·c78f3198f5761dda9a0bd435832621f0ec08926d06aba5955376671483a736ca·...·]/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::Iterator">Iterator</a>·for·<a·class="struct"·href="struct.ExtractIf.html"·title="struct·alloc::collections::btree_set::ExtractIf">ExtractIf</a>&lt;'_,·T,·F,·A&gt;<div·class="where">where
7 ····F:·'a·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·2962,·SHA:·42d83273d75b97bdf3d05cbc8868c14edea5b93291b324af4cd9da73a8396ecb·...·]/core/primitive.usize.html">usize</a>&gt;(7 ····F:·'a·+·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="../../../core/primitive.bool.html">bool</a>,</di[·...·truncated·by·diffoscope;·len:·2602,·SHA:·01799a3edca9d1953837b26e3d3bc1b101b4d536a4020b61a486c611bd5d26f7·...·]/core/primitive.usize.html">usize</a>&gt;(
8 ····&amp;mut·self,8 ····&amp;mut·self,
9 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·4f557a9b49151e0be8c52ffd68f1def4469c08164239dc8bef8df2040551c5ef·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where9 )·-&gt;·<a·class="enum"·href="../../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::It[·...·truncated·by·diffoscope;·len:·261,·SHA:·9b488006768a86d05b68f4e1888c750c736264a3a386f1310f1b7e8bfc7d2184·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where
10 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·962,·SHA:·116e4ec2ae3d9655c3d115eaf50f435f5323b4e48b84de734c79d2a09b3c02f2·...·]/core/primitive.usize.html">usize</a><div·class="where">where10 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_next[·...·truncated·by·diffoscope;·len:·842,·SHA:·d8f387888e3ee78f4397f4b1a12eae734e055247e3aa3251433ab8ac1019b31a·...·]/core/primitive.usize.html">usize</a><div·class="where">where
11 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·counting·the·number·of·iterations·and·returning·it.·<a·href="https://doc.[·...·truncated·by·diffoscope;·len:·837,·SHA:·47e25b6f9687bcc1d1fcdf9842fb085e6aba767d70531028f948636b80563dfc·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where11 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·counting·the·number·of·iterations·and·returning·it.·<a·href="../../../core/iter/traits/iterator/t[·...·truncated·by·diffoscope;·len:·693,·SHA:·725f42ff290538a513ec93cf7284210e1c519a4cc200b6d5878e7ccff2777059·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
12 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·returning·the·last·element.·<a·href="https://doc.rust-lang.org/1.84.0/cor[·...·truncated·by·diffoscope;·len:·3504,·SHA:·ec43d0f6d8d2a1e0fb7a684c382b9934abe1250844e53cce08bdfc6017ecb276·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where12 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·returning·the·last·element.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#metho[·...·truncated·by·diffoscope;·len:·3024,·SHA:·33e764ec8aa4ce60da61c340591349678c8144088b1440d0c5d8b7b28ba27fc9·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where
13 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by13 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by
14 the·given·amount·at·each·iteration.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><sp[·...·truncated·by·diffoscope;·len:·842,·SHA:·945c4509a8daf2f8fbccc5c6e5089e225955911e03a3e411f047f96d52d16862·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where14 the·given·amount·at·each·iteration.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="[·...·truncated·by·diffoscope;·len:·698,·SHA:·035d2f4d2e6b01ddf0b424aa6fc3f5919c82f85f857cb9cfa0f54f8357058b90·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
15 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,15 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
16 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·3b5ce32f9d564c3aa7cf2adc7130e674758d0c0f4f1275b4c3b46a74aa802cb3·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where16 ····U:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·[·...·truncated·by·diffoscope;·len:·1137,·SHA:·7916ae3a9b5afad376aafc6d698165147d82613fe975f64423f2367a02a69f6a·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
17 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,17 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
18 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·[·...·truncated·by·diffoscope;·len:·868,·SHA:·abdbf27ccc84063c7040d8fa3da9d0bda5ee310a470ef576e15554aee4bd5d21·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where18 ····U:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·of·pairs.·<a·href="../..[·...·truncated·by·diffoscope;·len:·724,·SHA:·ba31078b5c50fbfc51e53bed6f70aaa6e7e320cfda19949035c71d9363c0d919·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where
19 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,19 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
20 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent20 ····Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent
21 items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="sr[·...·truncated·by·diffoscope;·len:·427,·SHA:·6e82ad4aad49c2165d869fe30d20a968580a973cdb3a7f4c77f49e16dd59393e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where21 items·of·the·original·iterator.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="src·rightside"·href="../..[·...·truncated·by·diffoscope;·len:·331,·SHA:·451e844c9bf5d6d78b9579516e4b9fafb3e84136eaa1c95bead4539370743d7d·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where
22 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,22 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
23 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>23 ····G:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>
24 between·adjacent·items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightsi[·...·truncated·by·diffoscope;·len:·471,·SHA:·ed10488b7b2ccc3e4cc84a9a57a9695a74c1c964962e8d753cbace12f3318a66·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where24 between·adjacent·items·of·the·original·iterator.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·[·...·truncated·by·diffoscope;·len:·375,·SHA:·7bbb71535f348e442b9de05a74f9180c9acec0636566fa2a19ab1dc83779aace·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where
25 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,25 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
26 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each26 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each
27 element.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><spa[·...·truncated·by·diffoscope;·len:·306,·SHA:·61c87c39b177830189b0e4c036d97c40d8b9649d76432c90afb88de59498e8b2·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where27 element.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="S[·...·truncated·by·diffoscope;·len:·234,·SHA:·55463e0fb539911d03265cbd8abb7248189471ea74954185ed77f245746805c2·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where
28 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,28 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
29 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·a65da32c5f5ef8335cb607d3b4ab3f8a25877bc2c2e8b44ca9d575caecd5c8a5·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where29 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·772,·SHA:·de07f629315c257cc96a89e82de6752f002f259b678391b79d5fb48e279e56d2·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where
30 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,30 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
31 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·6d69c85c69fa789be551ea42d95c33c237d12a04ef157f9ddaaead1177f7771e·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element31 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·68,·SHA:·67cf1e2a20410007c7dd6c47c91b1d386626c1bfac5c1116c374da7bbee00d51·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element
32 should·be·yielded.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·489,·SHA:·9bdc636899f4e4e5a26a3a21c9603f72b3fb972865d2f459c38b7e2ac8fed7f1·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where32 should·be·yielded.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·tit[·...·truncated·by·diffoscope;·len:·393,·SHA:·328d72714f754fb793753313f01b087a9fbb30b77a2bcd5749456e1f6fd72710·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where
33 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,33 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
34 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·46dbf841c7aecd3f06bd4c944af21650faeac98c46c515dcfe643302618b1ecd·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where34 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·884,·SHA:·e8a37e28a6bfcb2d58b9ffd389d339c3dece95c14840f28c980a7d7aedcc9a05·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where
35 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as35 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as
36 the·next·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside[·...·truncated·by·diffoscope;·len:·468,·SHA:·52f7ff7f264284c3acc4429ca34d057ded9afa2e3d9d6e07571e252db9a48977·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where36 the·next·value.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside"><span·class="since"·ti[·...·truncated·by·diffoscope;·len:·372,·SHA:·9c08a613d034f21b42b8d196073d0f4d61c81458378e40e77995533a8b460837·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where
37 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·c0180fefce4346b0b4089e5c642521d7716108241c0ce6ec3e910c7a2c7364b4·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods37 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="../../../core/iter/adapters/peekable/struct.Peekable.html#method.peek"·ti[·...·truncated·by·diffoscope;·len:·103,·SHA:·e3683d31746f50069ed604def6201840bce75bbc7c584fac6c3644292077ae8a·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods
38 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See38 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See
39 their·documentation·for·more·information.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightsid[·...·truncated·by·diffoscope;·len:·498,·SHA:·e4a68861585faec6a5032b3b69d6dfb0f2799b5f387a527d9a1365571ed02069·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where39 their·documentation·for·more·information.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightside"><span·class="since"·t[·...·truncated·by·diffoscope;·len:·402,·SHA:·bdba673560d208f968337eb74446ead60d6223b0ca9ec6fbfaeb1a995a7e8001·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where
40 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,40 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
41 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·93281c1f6402743fd61110c11cf676f0f67eddceda801b4eb35e5fe9f85870fd·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where41 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·1042,·SHA:·27d4a79658fb1c97b659bd2520bcebbf5cfcb8a42420a7ecfcbff6f3330fa5e1·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where
42 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,42 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
43 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·f1cdbb1ec64f98fabbe1d89c88b03824310926cd7eaa160953ce2452fc3abb77·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where43 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·890,·SHA:·c43533da7f54bfb6611594b3436645d4d1f8e5339d2d05bf2345e87628499759·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where
44 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,44 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
45 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·f94a0b2c1396b13b89aca7830197ebf19e2c0e5ba536a9cc25b325a481799510·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where45 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·971,·SHA:·1b31b9d1d5061d4ee982a30400139f1d7319412bdea39925e0cc1e8e7cf3d65a·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where
46 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="https://doc.rust-lang[·...·truncated·by·diffoscope;·len:·783,·SHA:·c14217b89e3292a50a09192a8857485891fc769f861e1d1fc4322d04295c86ef·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where46 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="../../../core/iter/traits/iterator/trait.Iter[·...·truncated·by·diffoscope;·len:·639,·SHA:·79c7f7eddc655d329424f08baee8551b7f59cd4dc4b0d6984c5e4f241bcb949b·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where
47 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer47 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer
48 if·the·underlying·iterator·ends·sooner.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·c[·...·truncated·by·diffoscope;·len:·488,·SHA:·76f753d5a273a09a73127631acaa0ee947326a929f33be291018188793e1af56·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where48 if·the·underlying·iterator·ends·sooner.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stab[·...·truncated·by·diffoscope;·len:·392,·SHA:·50ac976eb8bf89726a483af064d5a70c100dedd17d46dc40ac3a82aba51b2082·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where
49 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,49 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
50 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·07d303586c8ad4e0082d5b44bff8eeda03cdb8f4bdbe46489f9232bca5a43ec6·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but50 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/tra[·...·truncated·by·diffoscope;·len:·329,·SHA:·14fc5ef1359fcb2171e21ba65c5f5d8ce11053860ba1d5aa32ddce90a48c2a8c·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but
51 unlike·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·2b20882d9583cee50e0c8b3cf362b27ce0d524db387d4aa4093d622b9370dada·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where51 unlike·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.scan">Rea[·...·truncated·by·diffoscope;·len:·570,·SHA:·3cdbe78e481f63f4d21b2fa94202dad167221af9d6e6f981ccd7a6e524f6157d·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where
52 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,52 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
53 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,53 ····U:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
54 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·933,·SHA:·4af94b75ba5c1e03d2d70590d2fd0706f13b3080fbff0f5b98e7b109048c403d·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where54 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·789,·SHA:·0e36f9aa81931958e65acc9e1b5bf6ad7367dcb7163dcf0af2a043314857a909·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where
55 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,55 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
56 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.I[·...·truncated·by·diffoscope;·len:·968,·SHA:·e5572ed2f3bdf5970d038da608f2f592d945541207c483c257fe5789efba168a·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where56 ····Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::trait[·...·truncated·by·diffoscope;·len:·800,·SHA:·3ea01df21dfaf9ee656fdee6aa789a6ce5be05d17c043433c5ab28da8f6d3241·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where
57 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,57 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
58 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·3013c0e49b0dade37f8ca096eccc5ceeb03fc79b9d320a4c92486d23b88d1009·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over58 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator[·...·truncated·by·diffoscope;·len:·63,·SHA:·8395b60c01b0cde6c3340bd4e6c57cddd02465a19dcf15a8aa5498bd6c8ddc11·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over
59 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,59 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="../../../core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,
60 the·windows·during·mapping·overlap·as·well.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside">[·...·truncated·by·diffoscope;·len:·454,·SHA:·040991f3914479bcc92615de2b81df7363656323622e5aadc964e1a61917d23e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where60 the·windows·during·mapping·overlap·as·well.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside"><span·class="since"·titl[·...·truncated·by·diffoscope;·len:·358,·SHA:·21db4436f04b3d09e41f294c30cd7dea235a4beb9af727cb1f1f065008ad732e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where
61 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="https://doc.rust-lang.org/1.84.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·0e0294a45242d5ce9a3ab8f95d6d410756415291d92baa7d12283ef1b3ecc3a0·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where61 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="../../../core/option/enum.Option.html#variant.None"·title="varia[·...·truncated·by·diffoscope;·len:·697,·SHA:·55b16240a265fa2f73963114b9def4c5703a60d1c3ce047915fff28502588e5b·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where
62 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,62 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
63 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·a8b562f71802a421f4745f7d1fadf4f70d98030c829e70f27b692e7915267027·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where63 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·650,·SHA:·eb862563a2da6881a0f9a31dac8f99f2b47b2c8d3033a0e1bc9ec49ae5500941·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where
64 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="https://doc.rust-lang.org/1.84.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·b3db7d84f203bbc139b1c52912705d19c664dac762898205fce452c9dc3a5318·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where64 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.by[·...·truncated·by·diffoscope;·len:·427,·SHA:·d439202f1a598c30b789e20f3d05a82f531349aa12f3af08cc5c230996ec01a9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where
65 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,65 ····B:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
66 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·431,·SHA:·a705a23f6d810357e7dcac670743884665ffcccfb9b780d0aa03720be8ca5625·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(66 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.collect[·...·truncated·by·diffoscope;·len:·335,·SHA:·d72a986b5d306b2e1ed99e18a16e26fa1b5380448fea76ac3db703052800b629·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(
67 ····&amp;mut·self,67 ····&amp;mut·self,
68 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.h[·...·truncated·by·diffoscope;·len:·479,·SHA:·fa749442d890055f86ceb34f411c84fd7ea08302b336d786d1ca36fe5868b020·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where68 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try[·...·truncated·by·diffoscope;·len:·359,·SHA:·886ccc2fbd37f1e7df4075b80b0bebd3d1a6e997fae2114ca1818fa30fa95d5a·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
69 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,69 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
70 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>, 
71 ····&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang[·...·truncated·by·diffoscope;·len:·449,·SHA:·9ddccfb7bdd27ea692d65fa83daf56e31762d1bec3a502234174b8fa4fb33a98·...·],70 ····Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="[·...·truncated·by·diffoscope;·len:·40,·SHA:·39f6b8b47216936a6251a972a3e72c0459df25c157b8b3990eefb48397aa8303·...·],
 71 ····&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;B&gt;,
72 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/itera[·...·truncated·by·diffoscope;·len:·323,·SHA:·b5c51f161dc9d77fd81d1fd23cc71fbf42ac00f3168cf9e41ebaaa2b6eb25363·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if72 ····B:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·tit[·...·truncated·by·diffoscope;·len:·227,·SHA:·91a843f71f5d4d4bdd2a6f526e4b1ace78ad1c1c0027ff429527a1e3cc1cbb42·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if
73 a·failure·is·encountered.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·ri[·...·truncated·by·diffoscope;·len:·521,·SHA:·6a54376815dab985ec8cc35604d035e98e3003b1563c9b41e70966084505542b·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where73 a·failure·is·encountered.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../../[·...·truncated·by·diffoscope;·len:·401,·SHA:·ed1d0660f20625c1d5231d569dd3e4f1d10332250dcd1a3f5d2e886618e67f5b·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
74 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,74 ····E:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
75 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·975,·SHA:·94f7f970236ba59ba5f1415764a0e3ab2f3093c6b79e76c25c797ac24a3c4d09·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where75 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_coll[·...·truncated·by·diffoscope;·len:·855,·SHA:·7b38a8c237aadc46d5211ff8698af580678e0cbcab757a66d6416b422880dd91·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
76 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,76 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
77 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·b480ec650ba000fe7cb67df58fc0351299638ee3e8f00db18f74ca24d69f9894·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,77 ····B:·<a·class="trait"·href="../../../core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="../../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associa[·...·truncated·by·diffoscope;·len:·23,·SHA:·4417dee5d41246c4acf5419e1bdac3c7d847bd34e3e87738a08734259a3b63da·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
78 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·972,·SHA:·0a54d9b1f5cb78c4f6b5f5b1153955eea3a8c16edcc762351208dabad1e8e9aa·...·]/core/primitive.bool.html">bool</a><div·class="where">where78 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·804,·SHA:·9304858cfccb085a534269651ae33dddafe29b7d287f0db58b4a9394480a2fa6·...·]/core/primitive.bool.html">bool</a><div·class="where">where
79 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,79 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
80 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·fcd03e71f79faad6d9b9a12045d59f4dfabc78e5aefebcabc9c1a5be45e31125·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,80 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·63,·SHA:·852041c2de8156fdddf9f71111c5ddf1a6b88aabd8c082f1a254f0b21c18ffa1·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,
81 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><span·class="righ[·...·truncated·by·diffoscope;·len:·319,·SHA:·9b9df13f2f4e5b4dde3908515766e1a474fa30bcb7edc98c15665a016e677c2a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where81 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><span·class="rightside"><span·class="sinc[·...·truncated·by·diffoscope;·len:·247,·SHA:·222a0145d03094cb0b20ca156583afe97e703828a8aa77e37fb7b4661759e2c7·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where
82 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,82 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
83 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,83 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
84 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns84 ····R:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns
85 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rights[·...·truncated·by·diffoscope;·len:·321,·SHA:·619fd774190944998148325de99aaa75de66ce4b7e26579fd342c564923a5652·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where85 successfully,·producing·a·single,·final·value.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"[·...·truncated·by·diffoscope;·len:·249,·SHA:·afbe9e91614278f09851b7c5920ddaf0907a2bf4c310ec39b40084e28959cc77·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where
86 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,86 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
87 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,87 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
88 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the88 ····R:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="../../../core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the
89 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·307,·SHA:·5975144fd8566efa93ad1ccec09297e280924b7372e08681d2103702124e2c52·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where89 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><span·class="rightside"><span·class="since"·tit[·...·truncated·by·diffoscope;·len:·235,·SHA:·da9aac17d9724df2aa434c2d10e1caa010eb4fd7e574e4da4e3d5b689e970097·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where
90 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,90 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
91 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,91 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,
92 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span[·...·truncated·by·diffoscope;·len:·619,·SHA:·8813f54846438870310d5f5dfabd2335a9dbf51e9da2e4cd681bcb6077d39628·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where92 returning·the·final·result.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="St[·...·truncated·by·diffoscope;·len:·499,·SHA:·ff97be2c630acbbbb397aa79317bd89b79955e6735d9da7aea9df48659f94fce·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
93 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,93 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
94 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·084691f7fc4e7f4da7db385127d0ce8d2d52f6740757129a65910c4db0dc180d·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing94 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·256,·SHA:·2fe8ae39f77649fea294c45979f427748b2a9938dfa70e4595ac661d972125b1·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing
95 operation.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·217,·SHA:·447ae00256be3de069c602a6c04889808c883eae6fa349d023f53bdd5570ecae·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(95 operation.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside"·href="../../../src/cor[·...·truncated·by·diffoscope;·len:·145,·SHA:·be4dc63adf8a4e832fd3dbaaabbf45f287388ea2bb17088d40589203a2ec6dfb·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(
96 ····&amp;mut·self,96 ····&amp;mut·self,
97 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·70b2b85cad045ac7addf647e0bd3cd5b2c9ebca5986613ad2b6a9c00e3a1132f·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,97 ····f:·impl·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·68,·SHA:·e7e11f257edcac749a5883ad9a3aa42e6e965be419f967b36caa7afd3b36d7c9·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
98 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·1823533b932e38e3200465d101f10a34421c005018974296350162e4049615ea·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where98 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</[·...·truncated·by·diffoscope;·len:·586,·SHA:·596f94ec7a4c06359aee56ccb8a7138a1ddb94415fafcecac1fc87434b1329a3·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
99 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,99 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
100 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,100 ····R:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
101 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·764ea8f08626b05426a76738d54ebb2d640042494d76cba8c20d868bfdc07a73·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the101 ····&lt;R·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</[·...·truncated·by·diffoscope;·len:·292,·SHA:·2ae73aa9b78f13099a8016e28a473713dcc755cf00fed8895c0c1b027bbcea01·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the
102 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><span·class="rightside"><s[·...·truncated·by·diffoscope;·len:·476,·SHA:·aef721c14147dea2fbec70dcfa76916b3f1273bed8304f4c9db310ca23d1e4b1·...·]/core/primitive.bool.html">bool</a><div·class="where">where102 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title=[·...·truncated·by·diffoscope;·len:·380,·SHA:·1042cdc03eabce3d330853b659f28b8566dd5841790f7f1303f3e326f05efab6·...·]/core/primitive.bool.html">bool</a><div·class="where">where
103 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,103 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
104 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·7c48e62c73a40a5cb5ebbf4a22cd789b342a88ad3d855022191f2bae33c736c6·...·]/core/primitive.bool.html">bool</a><div·class="where">where104 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·850,·SHA:·1b28d9cdfe3ba8dc7eac8cef1bb6549e78768b440ea492c70d80c8c07eae61cb·...·]/core/primitive.bool.html">bool</a><div·class="where">where
105 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,105 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
106 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·673d69ce0c23e24b2546127c463e67cd2a4c0f7be792712e2b42e75427161b75·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where106 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·980,·SHA:·a560c9e639c326a34f124b36f977291532e03ffae190e973674fee7e13b4c842·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
107 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,107 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
108 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·aa5078ff77f5638746395497f8ce92c1b684d342dea851990104d5e9981ab6b0·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where108 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·883,·SHA:·47fb849c20ee0cb36696a24bd285768bd0973774403ae956d2a517cd216452b1·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where
109 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,109 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
110 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·1bd732dff19021a1586bb486282683f5c1bc65d5d514f9e13cc9232b4e94955b·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;,</div></h4></section></summary><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns110 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·58,·SHA:·f6e1e279f463d2adecc4a9316aeab7af85329a84398e722f43ac130647fe78cf·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;,</div></h4></section></summary><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns
111 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.find_map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_find"·class="method·trait-impl"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·215,·SHA:·4d59a011c8881794ce6367c1e816f11a813db02e37c71800ed6d47056f157573·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(111 the·first·non-none·result.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.find_map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_find"·class="method·trait-impl"><a·class="src·rightside"·href="../../../src/cor[·...·truncated·by·diffoscope;·len:·143,·SHA:·00906f8dc0620ba030a634eba59c098f3aff639a062bf6231dfc4feb7727cc72·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(
112 ····&amp;mut·self,112 ····&amp;mut·self,
113 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,113 ····f:·impl·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
114 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·efb03e5c706e0947c6a4490b17f1efb0f1944a7d81f2640b5933212334dd255a·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where114 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</[·...·truncated·by·diffoscope;·len:·482,·SHA:·9ae34b47b226617c3eb5738e2b006056038b8280724fbbb72477bd2e900a4e85·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
115 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,115 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
116 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html">bool</a>&gt;,116 ····R:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="../../../core/primitive.bool.html">bool</a>&gt;,
117 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·764ea8f08626b05426a76738d54ebb2d640042494d76cba8c20d868bfdc07a73·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>try_find</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/63178">#63178</a>)</span></div></span><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns117 ····&lt;R·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</[·...·truncated·by·diffoscope;·len:·292,·SHA:·2ae73aa9b78f13099a8016e28a473713dcc755cf00fed8895c0c1b027bbcea01·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>try_find</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/63178">#63178</a>)</span></div></span><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns
118 the·first·true·result·or·the·first·error.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_find">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.position"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·635,·SHA:·348891c2a01ad4ba1f5ccca4c270bd2cefaf47e6b8194dc69d227209558119ff·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where118 the·first·true·result·or·the·first·error.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_find">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.position"·class="method·trait-impl"><span·class="rightside"><span·class="since"·tit[·...·truncated·by·diffoscope;·len:·515,·SHA:·a1fda5a0c76c9054797870324df8cd1bb446d66310ff913ddcbc9467fea7a33a·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
119 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,119 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
120 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1144,·SHA:·924dabfde33cb637151c206b5bef45e7e2185053d933cf9a15c59eecaafa6d5c·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where120 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·952,·SHA:·72f72454b4804f46746efa385fa104f63e84fb586632dd1c4c930f34217d1e30·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
121 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,121 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
122 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.Ord.html"·title="[·...·truncated·by·diffoscope;·len:·981,·SHA:·98dce65e46bcafc96c419533e0f8c95c11436175b878a43b5be30d98cc9d33a9·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where122 ····Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,</div></h4></secti[·...·truncated·by·diffoscope;·len:·813,·SHA:·a0835641b75785105c101f7557a09e01b6db0cd6ef4ff7164fe09dd76f56b780·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
123 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,123 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
124 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.Ord.html"·title="[·...·truncated·by·diffoscope;·len:·1027,·SHA:·b928182faf179ccb90df08564d70ae31d5dcbcdfc0c8037cf6b7f6a22530a7a1·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where124 ····Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,</div></h4></secti[·...·truncated·by·diffoscope;·len:·859,·SHA:·54ac45d4399a4f662f44869a9a8a7e38fa5f356937ca7d1a3e902478b74ba5e5·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
125 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,125 ····B:·<a·class="trait"·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,
126 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,126 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
Max diff block lines reached; 85703/308274 bytes (27.80%) of diff not shown.
312 KB
./usr/share/doc/rust-doc/html/alloc/collections/btree_set/struct.Intersection.html
    
Offset 1, 221 lines modifiedOffset 1, 221 lines modified
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="A·lazy·iterator·producing·elements·in·the·intersection·of·`BTreeSet`s."><title>Intersection·in·alloc::collections::btree_set·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»2025-01-07)»     (built»       from»   a»  source»    tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Intersection</a></h2><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-Intersection%3C'_,+T,+A%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-Intersection%3C'_,+T,+A%3E"·title="Debug">Debug</a></li><li><a·href="#impl-FusedIterator-for-Intersection%3C'_,+T,+A%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-Intersection%3C'a,+T,+A%3E"·title="Iterator">Iterator</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-Intersection%3C'a,+T,+A%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Intersection%3C'a,+T,+A%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Intersection%3C'a,+T,+A%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-Intersection%3C'a,+T,+A%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-Intersection%3C'a,+T,+A%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Intersection%3C'a,+T,+A%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>collections::<wbr>btree_<wbr>set</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">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">btree_set</a></span><h1>Struct·<span·class="struct">Intersection</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/set.rs.html#252-258">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·Intersection&lt;'a,·T:·'a,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·=·<a·class="struct"·href="../../alloc/struct.Global.html"·title="struct·alloc::alloc::Global">Global</a>&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>A·lazy·iterator·producing·elements·in·the·intersection·of·<code>BTreeSet</code>s.</p>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="A·lazy·iterator·producing·elements·in·the·intersection·of·`BTreeSet`s."><title>Intersection·in·alloc::collections::btree_set·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»2025-01-07)»     (built»       from»   a»  source»    tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Intersection</a></h2><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-Intersection%3C'_,+T,+A%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-Intersection%3C'_,+T,+A%3E"·title="Debug">Debug</a></li><li><a·href="#impl-FusedIterator-for-Intersection%3C'_,+T,+A%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-Intersection%3C'a,+T,+A%3E"·title="Iterator">Iterator</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-Intersection%3C'a,+T,+A%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Intersection%3C'a,+T,+A%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Intersection%3C'a,+T,+A%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-Intersection%3C'a,+T,+A%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-Intersection%3C'a,+T,+A%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Intersection%3C'a,+T,+A%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>collections::<wbr>btree_<wbr>set</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">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">btree_set</a></span><h1>Struct·<span·class="struct">Intersection</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/set.rs.html#252-258">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·Intersection&lt;'a,·T:·'a,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·+·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·=·<a·class="struct"·href="../../alloc/struct.Global.html"·title="struct·alloc::alloc::Global">Global</a>&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>A·lazy·iterator·producing·elements·in·the·intersection·of·<code>BTreeSet</code>s.</p>
2 <p>This·<code>struct</code>·is·created·by·the·<a·href="struct.BTreeSet.html#method.intersection"·title="method·alloc::collections::btree_set::BTreeSet::intersection"><code>intersection</code></a>·method·on·<a·href="struct.BTreeSet.html"·title="struct·alloc::collections::btree_set::BTreeSet"><code>BTreeSet</code></a>.2 <p>This·<code>struct</code>·is·created·by·the·<a·href="struct.BTreeSet.html#method.intersection"·title="method·alloc::collections::btree_set::BTreeSet::intersection"><code>intersection</code></a>·method·on·<a·href="struct.BTreeSet.html"·title="struct·alloc::collections::btree_set::BTreeSet"><code>BTreeSet</code></a>.
3 See·its·documentation·for·more.</p>3 See·its·documentation·for·more.</p>
4 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-Intersection%3C'_,+T,+A%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/set.rs.html#1903-1917">Source</a></span><a·href="#impl-Clone-for-Intersection%3C'_,+T,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struc[·...·truncated·by·diffoscope;·len:·8441,·SHA:·19a45dc162154b897a3653645763a7ed12f7e9914f8e068ae2dc57a800803b7c·...·]/core/primitive.usize.html">usize</a>&gt;(4 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-Intersection%3C'_,+T,+A%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/set.rs.html#1903-1917">Source</a></span><a·href="#impl-Clone-for-Intersection%3C'_,+T,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·+·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>&gt;·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struct"·href="struct.Intersection.html"·title="struct[·...·truncated·by·diffoscope;·len:·7745,·SHA:·e4268d2dddff127fa19790dea1a340d2750d95d765a34167204d6bc2039ea3fe·...·]/core/primitive.usize.html">usize</a>&gt;(
5 ····&amp;mut·self,5 ····&amp;mut·self,
6 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·4f557a9b49151e0be8c52ffd68f1def4469c08164239dc8bef8df2040551c5ef·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where6 )·-&gt;·<a·class="enum"·href="../../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::It[·...·truncated·by·diffoscope;·len:·261,·SHA:·9b488006768a86d05b68f4e1888c750c736264a3a386f1310f1b7e8bfc7d2184·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where
7 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·962,·SHA:·116e4ec2ae3d9655c3d115eaf50f435f5323b4e48b84de734c79d2a09b3c02f2·...·]/core/primitive.usize.html">usize</a><div·class="where">where7 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_next[·...·truncated·by·diffoscope;·len:·842,·SHA:·d8f387888e3ee78f4397f4b1a12eae734e055247e3aa3251433ab8ac1019b31a·...·]/core/primitive.usize.html">usize</a><div·class="where">where
8 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·counting·the·number·of·iterations·and·returning·it.·<a·href="https://doc.[·...·truncated·by·diffoscope;·len:·837,·SHA:·47e25b6f9687bcc1d1fcdf9842fb085e6aba767d70531028f948636b80563dfc·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where8 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·counting·the·number·of·iterations·and·returning·it.·<a·href="../../../core/iter/traits/iterator/t[·...·truncated·by·diffoscope;·len:·693,·SHA:·725f42ff290538a513ec93cf7284210e1c519a4cc200b6d5878e7ccff2777059·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
9 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·returning·the·last·element.·<a·href="https://doc.rust-lang.org/1.84.0/cor[·...·truncated·by·diffoscope;·len:·3504,·SHA:·ec43d0f6d8d2a1e0fb7a684c382b9934abe1250844e53cce08bdfc6017ecb276·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where9 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·returning·the·last·element.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#metho[·...·truncated·by·diffoscope;·len:·3024,·SHA:·33e764ec8aa4ce60da61c340591349678c8144088b1440d0c5d8b7b28ba27fc9·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where
10 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by10 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by
11 the·given·amount·at·each·iteration.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><sp[·...·truncated·by·diffoscope;·len:·842,·SHA:·945c4509a8daf2f8fbccc5c6e5089e225955911e03a3e411f047f96d52d16862·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where11 the·given·amount·at·each·iteration.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="[·...·truncated·by·diffoscope;·len:·698,·SHA:·035d2f4d2e6b01ddf0b424aa6fc3f5919c82f85f857cb9cfa0f54f8357058b90·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
12 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,12 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
13 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·3b5ce32f9d564c3aa7cf2adc7130e674758d0c0f4f1275b4c3b46a74aa802cb3·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where13 ····U:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·[·...·truncated·by·diffoscope;·len:·1137,·SHA:·7916ae3a9b5afad376aafc6d698165147d82613fe975f64423f2367a02a69f6a·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
14 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,14 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
15 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·[·...·truncated·by·diffoscope;·len:·868,·SHA:·abdbf27ccc84063c7040d8fa3da9d0bda5ee310a470ef576e15554aee4bd5d21·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where15 ····U:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·of·pairs.·<a·href="../..[·...·truncated·by·diffoscope;·len:·724,·SHA:·ba31078b5c50fbfc51e53bed6f70aaa6e7e320cfda19949035c71d9363c0d919·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where
16 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,16 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
17 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent17 ····Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent
18 items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="sr[·...·truncated·by·diffoscope;·len:·427,·SHA:·6e82ad4aad49c2165d869fe30d20a968580a973cdb3a7f4c77f49e16dd59393e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where18 items·of·the·original·iterator.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="src·rightside"·href="../..[·...·truncated·by·diffoscope;·len:·331,·SHA:·451e844c9bf5d6d78b9579516e4b9fafb3e84136eaa1c95bead4539370743d7d·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where
19 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,19 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
20 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>20 ····G:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>
21 between·adjacent·items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightsi[·...·truncated·by·diffoscope;·len:·471,·SHA:·ed10488b7b2ccc3e4cc84a9a57a9695a74c1c964962e8d753cbace12f3318a66·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where21 between·adjacent·items·of·the·original·iterator.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·[·...·truncated·by·diffoscope;·len:·375,·SHA:·7bbb71535f348e442b9de05a74f9180c9acec0636566fa2a19ab1dc83779aace·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where
22 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,22 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
23 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each23 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each
24 element.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><spa[·...·truncated·by·diffoscope;·len:·306,·SHA:·61c87c39b177830189b0e4c036d97c40d8b9649d76432c90afb88de59498e8b2·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where24 element.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="S[·...·truncated·by·diffoscope;·len:·234,·SHA:·55463e0fb539911d03265cbd8abb7248189471ea74954185ed77f245746805c2·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where
25 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,25 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
26 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·a65da32c5f5ef8335cb607d3b4ab3f8a25877bc2c2e8b44ca9d575caecd5c8a5·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where26 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·772,·SHA:·de07f629315c257cc96a89e82de6752f002f259b678391b79d5fb48e279e56d2·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where
27 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,27 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
28 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·6d69c85c69fa789be551ea42d95c33c237d12a04ef157f9ddaaead1177f7771e·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element28 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·68,·SHA:·67cf1e2a20410007c7dd6c47c91b1d386626c1bfac5c1116c374da7bbee00d51·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element
29 should·be·yielded.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·489,·SHA:·9bdc636899f4e4e5a26a3a21c9603f72b3fb972865d2f459c38b7e2ac8fed7f1·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where29 should·be·yielded.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·tit[·...·truncated·by·diffoscope;·len:·393,·SHA:·328d72714f754fb793753313f01b087a9fbb30b77a2bcd5749456e1f6fd72710·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where
30 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,30 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
31 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·46dbf841c7aecd3f06bd4c944af21650faeac98c46c515dcfe643302618b1ecd·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where31 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·884,·SHA:·e8a37e28a6bfcb2d58b9ffd389d339c3dece95c14840f28c980a7d7aedcc9a05·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where
32 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as32 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as
33 the·next·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside[·...·truncated·by·diffoscope;·len:·468,·SHA:·52f7ff7f264284c3acc4429ca34d057ded9afa2e3d9d6e07571e252db9a48977·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where33 the·next·value.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside"><span·class="since"·ti[·...·truncated·by·diffoscope;·len:·372,·SHA:·9c08a613d034f21b42b8d196073d0f4d61c81458378e40e77995533a8b460837·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where
34 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·c0180fefce4346b0b4089e5c642521d7716108241c0ce6ec3e910c7a2c7364b4·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods34 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="../../../core/iter/adapters/peekable/struct.Peekable.html#method.peek"·ti[·...·truncated·by·diffoscope;·len:·103,·SHA:·e3683d31746f50069ed604def6201840bce75bbc7c584fac6c3644292077ae8a·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods
35 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See35 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See
36 their·documentation·for·more·information.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightsid[·...·truncated·by·diffoscope;·len:·498,·SHA:·e4a68861585faec6a5032b3b69d6dfb0f2799b5f387a527d9a1365571ed02069·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where36 their·documentation·for·more·information.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightside"><span·class="since"·t[·...·truncated·by·diffoscope;·len:·402,·SHA:·bdba673560d208f968337eb74446ead60d6223b0ca9ec6fbfaeb1a995a7e8001·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where
37 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,37 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
38 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·93281c1f6402743fd61110c11cf676f0f67eddceda801b4eb35e5fe9f85870fd·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where38 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·1042,·SHA:·27d4a79658fb1c97b659bd2520bcebbf5cfcb8a42420a7ecfcbff6f3330fa5e1·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where
39 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,39 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
40 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·f1cdbb1ec64f98fabbe1d89c88b03824310926cd7eaa160953ce2452fc3abb77·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where40 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·890,·SHA:·c43533da7f54bfb6611594b3436645d4d1f8e5339d2d05bf2345e87628499759·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where
41 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,41 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
42 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·f94a0b2c1396b13b89aca7830197ebf19e2c0e5ba536a9cc25b325a481799510·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where42 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·971,·SHA:·1b31b9d1d5061d4ee982a30400139f1d7319412bdea39925e0cc1e8e7cf3d65a·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where
43 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="https://doc.rust-lang[·...·truncated·by·diffoscope;·len:·783,·SHA:·c14217b89e3292a50a09192a8857485891fc769f861e1d1fc4322d04295c86ef·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where43 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="../../../core/iter/traits/iterator/trait.Iter[·...·truncated·by·diffoscope;·len:·639,·SHA:·79c7f7eddc655d329424f08baee8551b7f59cd4dc4b0d6984c5e4f241bcb949b·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where
44 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer44 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer
45 if·the·underlying·iterator·ends·sooner.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·c[·...·truncated·by·diffoscope;·len:·488,·SHA:·76f753d5a273a09a73127631acaa0ee947326a929f33be291018188793e1af56·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where45 if·the·underlying·iterator·ends·sooner.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stab[·...·truncated·by·diffoscope;·len:·392,·SHA:·50ac976eb8bf89726a483af064d5a70c100dedd17d46dc40ac3a82aba51b2082·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where
46 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,46 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
47 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·07d303586c8ad4e0082d5b44bff8eeda03cdb8f4bdbe46489f9232bca5a43ec6·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but47 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/tra[·...·truncated·by·diffoscope;·len:·329,·SHA:·14fc5ef1359fcb2171e21ba65c5f5d8ce11053860ba1d5aa32ddce90a48c2a8c·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but
48 unlike·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·2b20882d9583cee50e0c8b3cf362b27ce0d524db387d4aa4093d622b9370dada·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where48 unlike·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.scan">Rea[·...·truncated·by·diffoscope;·len:·570,·SHA:·3cdbe78e481f63f4d21b2fa94202dad167221af9d6e6f981ccd7a6e524f6157d·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where
49 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,49 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
50 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,50 ····U:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
51 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·933,·SHA:·4af94b75ba5c1e03d2d70590d2fd0706f13b3080fbff0f5b98e7b109048c403d·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where51 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·789,·SHA:·0e36f9aa81931958e65acc9e1b5bf6ad7367dcb7163dcf0af2a043314857a909·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where
52 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,52 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
53 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.I[·...·truncated·by·diffoscope;·len:·968,·SHA:·e5572ed2f3bdf5970d038da608f2f592d945541207c483c257fe5789efba168a·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where53 ····Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::trait[·...·truncated·by·diffoscope;·len:·800,·SHA:·3ea01df21dfaf9ee656fdee6aa789a6ce5be05d17c043433c5ab28da8f6d3241·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where
54 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,54 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
55 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·3013c0e49b0dade37f8ca096eccc5ceeb03fc79b9d320a4c92486d23b88d1009·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over55 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator[·...·truncated·by·diffoscope;·len:·63,·SHA:·8395b60c01b0cde6c3340bd4e6c57cddd02465a19dcf15a8aa5498bd6c8ddc11·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over
56 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,56 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="../../../core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,
57 the·windows·during·mapping·overlap·as·well.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside">[·...·truncated·by·diffoscope;·len:·454,·SHA:·040991f3914479bcc92615de2b81df7363656323622e5aadc964e1a61917d23e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where57 the·windows·during·mapping·overlap·as·well.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside"><span·class="since"·titl[·...·truncated·by·diffoscope;·len:·358,·SHA:·21db4436f04b3d09e41f294c30cd7dea235a4beb9af727cb1f1f065008ad732e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where
58 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="https://doc.rust-lang.org/1.84.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·0e0294a45242d5ce9a3ab8f95d6d410756415291d92baa7d12283ef1b3ecc3a0·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where58 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="../../../core/option/enum.Option.html#variant.None"·title="varia[·...·truncated·by·diffoscope;·len:·697,·SHA:·55b16240a265fa2f73963114b9def4c5703a60d1c3ce047915fff28502588e5b·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where
59 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,59 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
60 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·a8b562f71802a421f4745f7d1fadf4f70d98030c829e70f27b692e7915267027·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where60 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·650,·SHA:·eb862563a2da6881a0f9a31dac8f99f2b47b2c8d3033a0e1bc9ec49ae5500941·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where
61 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="https://doc.rust-lang.org/1.84.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·b3db7d84f203bbc139b1c52912705d19c664dac762898205fce452c9dc3a5318·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where61 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.by[·...·truncated·by·diffoscope;·len:·427,·SHA:·d439202f1a598c30b789e20f3d05a82f531349aa12f3af08cc5c230996ec01a9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where
62 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,62 ····B:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
63 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·431,·SHA:·a705a23f6d810357e7dcac670743884665ffcccfb9b780d0aa03720be8ca5625·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(63 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.collect[·...·truncated·by·diffoscope;·len:·335,·SHA:·d72a986b5d306b2e1ed99e18a16e26fa1b5380448fea76ac3db703052800b629·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(
64 ····&amp;mut·self,64 ····&amp;mut·self,
65 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.h[·...·truncated·by·diffoscope;·len:·479,·SHA:·fa749442d890055f86ceb34f411c84fd7ea08302b336d786d1ca36fe5868b020·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where65 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try[·...·truncated·by·diffoscope;·len:·359,·SHA:·886ccc2fbd37f1e7df4075b80b0bebd3d1a6e997fae2114ca1818fa30fa95d5a·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
66 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,66 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
67 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>, 
68 ····&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang[·...·truncated·by·diffoscope;·len:·449,·SHA:·9ddccfb7bdd27ea692d65fa83daf56e31762d1bec3a502234174b8fa4fb33a98·...·],67 ····Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="[·...·truncated·by·diffoscope;·len:·40,·SHA:·39f6b8b47216936a6251a972a3e72c0459df25c157b8b3990eefb48397aa8303·...·],
 68 ····&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;B&gt;,
69 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/itera[·...·truncated·by·diffoscope;·len:·323,·SHA:·b5c51f161dc9d77fd81d1fd23cc71fbf42ac00f3168cf9e41ebaaa2b6eb25363·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if69 ····B:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·tit[·...·truncated·by·diffoscope;·len:·227,·SHA:·91a843f71f5d4d4bdd2a6f526e4b1ace78ad1c1c0027ff429527a1e3cc1cbb42·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if
70 a·failure·is·encountered.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·ri[·...·truncated·by·diffoscope;·len:·521,·SHA:·6a54376815dab985ec8cc35604d035e98e3003b1563c9b41e70966084505542b·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where70 a·failure·is·encountered.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../../[·...·truncated·by·diffoscope;·len:·401,·SHA:·ed1d0660f20625c1d5231d569dd3e4f1d10332250dcd1a3f5d2e886618e67f5b·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
71 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,71 ····E:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
72 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·975,·SHA:·94f7f970236ba59ba5f1415764a0e3ab2f3093c6b79e76c25c797ac24a3c4d09·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where72 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_coll[·...·truncated·by·diffoscope;·len:·855,·SHA:·7b38a8c237aadc46d5211ff8698af580678e0cbcab757a66d6416b422880dd91·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
73 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,73 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
74 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·b480ec650ba000fe7cb67df58fc0351299638ee3e8f00db18f74ca24d69f9894·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,74 ····B:·<a·class="trait"·href="../../../core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="../../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associa[·...·truncated·by·diffoscope;·len:·23,·SHA:·4417dee5d41246c4acf5419e1bdac3c7d847bd34e3e87738a08734259a3b63da·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
75 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·972,·SHA:·0a54d9b1f5cb78c4f6b5f5b1153955eea3a8c16edcc762351208dabad1e8e9aa·...·]/core/primitive.bool.html">bool</a><div·class="where">where75 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·804,·SHA:·9304858cfccb085a534269651ae33dddafe29b7d287f0db58b4a9394480a2fa6·...·]/core/primitive.bool.html">bool</a><div·class="where">where
76 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,76 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
77 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·fcd03e71f79faad6d9b9a12045d59f4dfabc78e5aefebcabc9c1a5be45e31125·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,77 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·63,·SHA:·852041c2de8156fdddf9f71111c5ddf1a6b88aabd8c082f1a254f0b21c18ffa1·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,
78 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><span·class="righ[·...·truncated·by·diffoscope;·len:·319,·SHA:·9b9df13f2f4e5b4dde3908515766e1a474fa30bcb7edc98c15665a016e677c2a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where78 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><span·class="rightside"><span·class="sinc[·...·truncated·by·diffoscope;·len:·247,·SHA:·222a0145d03094cb0b20ca156583afe97e703828a8aa77e37fb7b4661759e2c7·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where
79 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,79 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
80 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,80 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
81 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns81 ····R:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns
82 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rights[·...·truncated·by·diffoscope;·len:·321,·SHA:·619fd774190944998148325de99aaa75de66ce4b7e26579fd342c564923a5652·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where82 successfully,·producing·a·single,·final·value.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"[·...·truncated·by·diffoscope;·len:·249,·SHA:·afbe9e91614278f09851b7c5920ddaf0907a2bf4c310ec39b40084e28959cc77·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where
83 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,83 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
84 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,84 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
85 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the85 ····R:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="../../../core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the
86 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·307,·SHA:·5975144fd8566efa93ad1ccec09297e280924b7372e08681d2103702124e2c52·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where86 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><span·class="rightside"><span·class="since"·tit[·...·truncated·by·diffoscope;·len:·235,·SHA:·da9aac17d9724df2aa434c2d10e1caa010eb4fd7e574e4da4e3d5b689e970097·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where
87 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,87 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
88 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,88 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,
89 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span[·...·truncated·by·diffoscope;·len:·619,·SHA:·8813f54846438870310d5f5dfabd2335a9dbf51e9da2e4cd681bcb6077d39628·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where89 returning·the·final·result.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="St[·...·truncated·by·diffoscope;·len:·499,·SHA:·ff97be2c630acbbbb397aa79317bd89b79955e6735d9da7aea9df48659f94fce·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
90 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,90 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
91 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·084691f7fc4e7f4da7db385127d0ce8d2d52f6740757129a65910c4db0dc180d·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing91 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·256,·SHA:·2fe8ae39f77649fea294c45979f427748b2a9938dfa70e4595ac661d972125b1·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing
92 operation.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·217,·SHA:·447ae00256be3de069c602a6c04889808c883eae6fa349d023f53bdd5570ecae·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(92 operation.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside"·href="../../../src/cor[·...·truncated·by·diffoscope;·len:·145,·SHA:·be4dc63adf8a4e832fd3dbaaabbf45f287388ea2bb17088d40589203a2ec6dfb·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(
93 ····&amp;mut·self,93 ····&amp;mut·self,
94 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·70b2b85cad045ac7addf647e0bd3cd5b2c9ebca5986613ad2b6a9c00e3a1132f·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,94 ····f:·impl·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·68,·SHA:·e7e11f257edcac749a5883ad9a3aa42e6e965be419f967b36caa7afd3b36d7c9·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
95 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·1823533b932e38e3200465d101f10a34421c005018974296350162e4049615ea·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where95 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</[·...·truncated·by·diffoscope;·len:·586,·SHA:·596f94ec7a4c06359aee56ccb8a7138a1ddb94415fafcecac1fc87434b1329a3·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
96 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,96 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
97 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,97 ····R:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
98 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·764ea8f08626b05426a76738d54ebb2d640042494d76cba8c20d868bfdc07a73·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the98 ····&lt;R·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</[·...·truncated·by·diffoscope;·len:·292,·SHA:·2ae73aa9b78f13099a8016e28a473713dcc755cf00fed8895c0c1b027bbcea01·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the
99 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><span·class="rightside"><s[·...·truncated·by·diffoscope;·len:·476,·SHA:·aef721c14147dea2fbec70dcfa76916b3f1273bed8304f4c9db310ca23d1e4b1·...·]/core/primitive.bool.html">bool</a><div·class="where">where99 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title=[·...·truncated·by·diffoscope;·len:·380,·SHA:·1042cdc03eabce3d330853b659f28b8566dd5841790f7f1303f3e326f05efab6·...·]/core/primitive.bool.html">bool</a><div·class="where">where
100 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,100 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
101 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·7c48e62c73a40a5cb5ebbf4a22cd789b342a88ad3d855022191f2bae33c736c6·...·]/core/primitive.bool.html">bool</a><div·class="where">where101 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·850,·SHA:·1b28d9cdfe3ba8dc7eac8cef1bb6549e78768b440ea492c70d80c8c07eae61cb·...·]/core/primitive.bool.html">bool</a><div·class="where">where
102 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,102 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
103 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·673d69ce0c23e24b2546127c463e67cd2a4c0f7be792712e2b42e75427161b75·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where103 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·980,·SHA:·a560c9e639c326a34f124b36f977291532e03ffae190e973674fee7e13b4c842·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
104 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,104 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
105 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·aa5078ff77f5638746395497f8ce92c1b684d342dea851990104d5e9981ab6b0·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where105 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·883,·SHA:·47fb849c20ee0cb36696a24bd285768bd0973774403ae956d2a517cd216452b1·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where
106 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,106 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
107 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·1bd732dff19021a1586bb486282683f5c1bc65d5d514f9e13cc9232b4e94955b·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;,</div></h4></section></summary><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns107 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·58,·SHA:·f6e1e279f463d2adecc4a9316aeab7af85329a84398e722f43ac130647fe78cf·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;,</div></h4></section></summary><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns
108 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.find_map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_find"·class="method·trait-impl"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·215,·SHA:·4d59a011c8881794ce6367c1e816f11a813db02e37c71800ed6d47056f157573·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(108 the·first·non-none·result.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.find_map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_find"·class="method·trait-impl"><a·class="src·rightside"·href="../../../src/cor[·...·truncated·by·diffoscope;·len:·143,·SHA:·00906f8dc0620ba030a634eba59c098f3aff639a062bf6231dfc4feb7727cc72·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(
109 ····&amp;mut·self,109 ····&amp;mut·self,
110 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,110 ····f:·impl·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
111 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·efb03e5c706e0947c6a4490b17f1efb0f1944a7d81f2640b5933212334dd255a·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where111 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</[·...·truncated·by·diffoscope;·len:·482,·SHA:·9ae34b47b226617c3eb5738e2b006056038b8280724fbbb72477bd2e900a4e85·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
112 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,112 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
113 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html">bool</a>&gt;,113 ····R:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="../../../core/primitive.bool.html">bool</a>&gt;,
114 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·764ea8f08626b05426a76738d54ebb2d640042494d76cba8c20d868bfdc07a73·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>try_find</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/63178">#63178</a>)</span></div></span><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns114 ····&lt;R·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</[·...·truncated·by·diffoscope;·len:·292,·SHA:·2ae73aa9b78f13099a8016e28a473713dcc755cf00fed8895c0c1b027bbcea01·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>try_find</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/63178">#63178</a>)</span></div></span><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns
115 the·first·true·result·or·the·first·error.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_find">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.position"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·635,·SHA:·348891c2a01ad4ba1f5ccca4c270bd2cefaf47e6b8194dc69d227209558119ff·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where115 the·first·true·result·or·the·first·error.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_find">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.position"·class="method·trait-impl"><span·class="rightside"><span·class="since"·tit[·...·truncated·by·diffoscope;·len:·515,·SHA:·a1fda5a0c76c9054797870324df8cd1bb446d66310ff913ddcbc9467fea7a33a·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
116 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,116 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
117 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1144,·SHA:·924dabfde33cb637151c206b5bef45e7e2185053d933cf9a15c59eecaafa6d5c·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where117 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·952,·SHA:·72f72454b4804f46746efa385fa104f63e84fb586632dd1c4c930f34217d1e30·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
118 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,118 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
119 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.Ord.html"·title="[·...·truncated·by·diffoscope;·len:·1027,·SHA:·7ea45bb0396663d53190e2d043f0af1f755a90938f5e2272e0be32ed7aaee2cf·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where119 ····Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,</div></h4></secti[·...·truncated·by·diffoscope;·len:·859,·SHA:·c6328448ba9ee8b3f9c035dc6beb27d220f1cfb75bec76831422a5a7699528ad·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
120 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,120 ····B:·<a·class="trait"·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,
121 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,121 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
122 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Returns·the·element·that·gives·the·maximum·value·from·the122 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Returns·the·element·that·gives·the·maximum·value·from·the
123 specified·function.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.max_by_key">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.max_by"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·631,·SHA:·85969676239612a4af79ca58ddb20274f3ef3c8441f7ce5fa7050e530fed90d6·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where123 specified·function.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.max_by_key">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.max_by"·class="method·trait-impl"><span·class="rightside"><span·class="since"·tit[·...·truncated·by·diffoscope;·len:·511,·SHA:·28a81c6cecf40d424b9fff4f8efe3c058d66ecd63997796e214fc2bfce83e488·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
124 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,124 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
125 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·346,·SHA:·89ac74208295b291143af90fbbe08713bd1029679a1ef1eac39de92bb3981c03·...·]/core/cmp/enum.Ordering.html"·title="enum·core::cmp::Ordering">Ordering</a>,</div></h4></section></summary><div·class='docblock'>Returns·the·element·that·gives·the·maximum·value·with·respect·to·the125 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·250,·SHA:·8f55ec1ee28e7749caf0f66b596dbeacdc1675fa7c004a791e54bb3ea4ca2ea7·...·]/core/cmp/enum.Ordering.html"·title="enum·core::cmp::Ordering">Ordering</a>,</div></h4></section></summary><div·class='docblock'>Returns·the·element·that·gives·the·maximum·value·with·respect·to·the
126 specified·comparison·function.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.max_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.min_by_key"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·638,·SHA:·f613f75de1f91a4ed72540d49ff57e2fd0e395db510c03661ef3120f8a9e038a·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where126 specified·comparison·function.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.max_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.min_by_key"·class="method·trait-impl"><span·class="rightside"><span·class="since"·tit[·...·truncated·by·diffoscope;·len:·518,·SHA:·22bc8d4e53ae6ff60ccbb54fa8a2acbbe4bc6c9f8e2a9c6c08df10f0906ff721·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
Max diff block lines reached; 92083/319611 bytes (28.81%) of diff not shown.
336 KB
./usr/share/doc/rust-doc/html/alloc/collections/btree_set/struct.IntoIter.html
    
Offset 1, 245 lines modifiedOffset 1, 245 lines modified
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="An·owning·iterator·over·the·items·of·a·`BTreeSet`·in·ascending·order."><title>IntoIter·in·alloc::collections::btree_set·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»       2025-01-07)»    (built»      from»  a» source»   tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Into<wbr>Iter</a></h2><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Debug-for-IntoIter%3CT,+A%3E"·title="Debug">Debug</a></li><li><a·href="#impl-Default-for-IntoIter%3CT,+A%3E"·title="Default">Default</a></li><li><a·href="#impl-DoubleEndedIterator-for-IntoIter%3CT,+A%3E"·title="DoubleEndedIterator">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-IntoIter%3CT,+A%3E"·title="ExactSizeIterator">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-IntoIter%3CT,+A%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-IntoIter%3CT,+A%3E"·title="Iterator">Iterator</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-IntoIter%3CT,+A%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-IntoIter%3CT,+A%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-IntoIter%3CT,+A%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-IntoIter%3CT,+A%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-IntoIter%3CT,+A%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-IntoIter%3CT,+A%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>collections::<wbr>btree_<wbr>set</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">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">btree_set</a></span><h1>Struct·<span·class="struct">IntoIter</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/set.rs.html#149-154">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·IntoIter&lt;T,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·=·<a·class="struct"·href="../../alloc/struct.Global.html"·title="struct·alloc::alloc::Global">Global</a>&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>An·owning·iterator·over·the·items·of·a·<code>BTreeSet</code>·in·ascending·order.</p>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="An·owning·iterator·over·the·items·of·a·`BTreeSet`·in·ascending·order."><title>IntoIter·in·alloc::collections::btree_set·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»       2025-01-07)»    (built»      from»  a» source»   tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Into<wbr>Iter</a></h2><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Debug-for-IntoIter%3CT,+A%3E"·title="Debug">Debug</a></li><li><a·href="#impl-Default-for-IntoIter%3CT,+A%3E"·title="Default">Default</a></li><li><a·href="#impl-DoubleEndedIterator-for-IntoIter%3CT,+A%3E"·title="DoubleEndedIterator">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-IntoIter%3CT,+A%3E"·title="ExactSizeIterator">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-IntoIter%3CT,+A%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-IntoIter%3CT,+A%3E"·title="Iterator">Iterator</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-IntoIter%3CT,+A%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-IntoIter%3CT,+A%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-IntoIter%3CT,+A%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-IntoIter%3CT,+A%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-IntoIter%3CT,+A%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-IntoIter%3CT,+A%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>collections::<wbr>btree_<wbr>set</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">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">btree_set</a></span><h1>Struct·<span·class="struct">IntoIter</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/set.rs.html#149-154">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·IntoIter&lt;T,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·+·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·=·<a·class="struct"·href="../../alloc/struct.Global.html"·title="struct·alloc::alloc::Global">Global</a>&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>An·owning·iterator·over·the·items·of·a·<code>BTreeSet</code>·in·ascending·order.</p>
2 <p>This·<code>struct</code>·is·created·by·the·<a·href="struct.BTreeSet.html#method.into_iter"·title="struct·alloc::collections::btree_set::BTreeSet"><code>into_iter</code></a>·method·on·<a·href="struct.BTreeSet.html"·title="struct·alloc::collections::btree_set::BTreeSet"><code>BTreeSet</code></a>2 <p>This·<code>struct</code>·is·created·by·the·<a·href="struct.BTreeSet.html#method.into_iter"·title="struct·alloc::collections::btree_set::BTreeSet"><code>into_iter</code></a>·method·on·<a·href="struct.BTreeSet.html"·title="struct·alloc::collections::btree_set::BTreeSet"><code>BTreeSet</code></a>
3 (provided·by·the·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator"><code>IntoIterator</code></a>·trait).·See·its·documentation·for·more.</p>3 (provided·by·the·<a·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator"><code>IntoIterator</code></a>·trait).·See·its·documentation·for·more.</p>
4 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-IntoIter%3CT,+A%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/set.rs.html#148">Source</a></span><a·href="#impl-Debug-for-IntoIter%3CT,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T:·<a·class="trait"·href="../../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,·A:·<a·class="trait"·href="../../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·+·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>&gt;·<a·class="trait"·href="../../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.IntoIter.html"·titl[·...·truncated·by·diffoscope;·len:·1370,·SHA:·968f395dab9ea11361b0196fab5ecda51142288ca6824b213364a5aac991af42·...·]/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·for·<a·class="struct"·href="struct.IntoIter.html"·title="struct·alloc::collections::btree_set::IntoIter">IntoIter</a>&lt;T,·A&gt;<div·class="where">where4 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-IntoIter%3CT,+A%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/set.rs.html#148">Source</a></span><a·href="#impl-Debug-for-IntoIter%3CT,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T:·<a·class="trait"·href="../../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,·A:·<a·class="trait"·href="../../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·+·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·+·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>&gt;·<a·class="trait"·href="../../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.IntoIter.html"·title="struct·alloc::collect[·...·truncated·by·diffoscope;·len:·1322,·SHA:·4a86bce8224ace74dbe9b4632e8903cad474546bd15093f6d46460dfd955545e·...·]/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·for·<a·class="struct"·href="struct.IntoIter.html"·title="struct·alloc::collections::btree_set::IntoIter">IntoIter</a>&lt;T,·A&gt;<div·class="where">where
5 ····A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3>[·...·truncated·by·diffoscope;·len:·366,·SHA:·ac4ee06506d51814f6d29ab1c229efcd40d4cb4d82d4316690e245dde3222a28·...·]/core/default/trait.Default.html#tymethod.default"·class="fn">default</a>()·-&gt;·Self</h4></section></summary><div·class="docblock"><p>Creates·an·empty·<code>btree_set::IntoIter</code>.</p>5 ····A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·+·<a·class="trait"·href="../../../core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><det[·...·truncated·by·diffoscope;·len:·294,·SHA:·6be9f5aae7f9e04d509aaa59f746c448e1e58b2c1b44bc5c7e38a6ed35fefe17·...·]/core/default/trait.Default.html#tymethod.default"·class="fn">default</a>()·-&gt;·Self</h4></section></summary><div·class="docblock"><p>Creates·an·empty·<code>btree_set::IntoIter</code>.</p>
  
6 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span>iter:·btree_set::IntoIter&lt;u8&gt;·=·Default::default();6 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span>iter:·btree_set::IntoIter&lt;u8&gt;·=·Default::default();
7 <span·class="macro">assert_eq!</span>(iter.len(),·<span·class="number">0</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::btree_set;%0A++++let+iter:+btree_set::IntoIter%3Cu8%3E+=+Default::default();%0A++++assert_eq!(iter.len(),+0);%0A%7D&amp;edition=2021"></a></div>7 <span·class="macro">assert_eq!</span>(iter.len(),·<span·class="number">0</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::btree_set;%0A++++let+iter:+btree_set::IntoIter%3Cu8%3E+=+Default::default();%0A++++assert_eq!(iter.len(),+0);%0A%7D&amp;edition=2021"></a></div>
8 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-DoubleEndedIterator-for-IntoIter%3CT,+A%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/set.rs.html#1710-1714">Source</a></span><a·href="#impl-DoubleEndedIterator-for-IntoIter%3CT,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·4409,·SHA:·99d82662650eb7f1d423fd534a87717143484eba6b04fffc2b0ff276a49af1b0·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold"·class="fn">try_rfold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where8 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-DoubleEndedIterator-for-IntoIter%3CT,+A%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/set.rs.html#1710-1714">Source</a></span><a·href="#impl-DoubleEndedIterator-for-IntoIter%3CT,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·+·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>&gt;·<a·class="trait"·href="../../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEnd[·...·truncated·by·diffoscope;·len:·3905,·SHA:·068e2ea0039a81b7c611129677330b54559e6f34c02d735cc3af1e2f4813d9d5·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold"·class="fn">try_rfold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where
9 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,9 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
10 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,10 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
11 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>This·is·the·reverse·version·of·<a·href="https://doc.rust-lang.org/1.8[·...·truncated·by·diffoscope;·len:·3,·SHA:·fbd04e1aae9ce0b11a8946e2c9ac2619f7428a64d32d01eff61d809dcb70ee8e·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·title="method·core::iter::traits::iterator::Iterator::try_fold"><code>Iterator::try_fold()</code></a>:·it·takes11 ····R:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>This·is·the·reverse·version·of·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·title="method·core::iter::traits::iterator::Iterator::try_fold"><code>Iterator::try_fold()</code></a>:·it·takes
12 elements·starting·from·the·back·of·the·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfold"·class="method·trait-impl"><span·clas[·...·truncated·by·diffoscope;·len:·325,·SHA:·7ffdb06a8ab3810207a1c974783822231eaf1d82fd94bcf810dd7b3181149b7b·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold"·class="fn">rfold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where12 elements·starting·from·the·back·of·the·iterator.·<a·href="../../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfold"·class="method·trait-impl"><span·class="rightside"><span·clas[·...·truncated·by·diffoscope;·len:·253,·SHA:·48421497f19ee93d3a7432833660cd659661b35b02b625c6376fc49660f200cf·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold"·class="fn">rfold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where
13 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,13 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
14 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·reduces·the·iterator’s·elements·to·a·single,14 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·reduces·the·iterator’s·elements·to·a·single,
15 final·value,·starting·from·the·back.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfind"·class="method·trait-impl"><span·class="r[·...·truncated·by·diffoscope;·len:·665,·SHA:·fde89feb7c0e70eefa34d688476ca36a70115bec8150dbf9b1a3c359f72dd28d·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where15 final·value,·starting·from·the·back.·<a·href="../../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfind"·class="method·trait-impl"><span·class="rightside"><span·class="s[·...·truncated·by·diffoscope;·len:·545,·SHA:·b420bc934fe1ddfd2fe0958678aa3aba1ce90383b1958958e47e13ae1b40fe25·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
16 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,16 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
17 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·7210,·SHA:·aa48872983034e21e6345855045600c9034cdbf496a7236b0af716e0f44d5d0d·...·]/core/primitive.usize.html">usize</a>&gt;(17 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·6562,·SHA:·84d2271bff99404c5899f60ab646c78541d951be2374f74d8d4bd24453f78ea8·...·]/core/primitive.usize.html">usize</a>&gt;(
18 ····&amp;mut·self,18 ····&amp;mut·self,
19 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·4f557a9b49151e0be8c52ffd68f1def4469c08164239dc8bef8df2040551c5ef·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where19 )·-&gt;·<a·class="enum"·href="../../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::It[·...·truncated·by·diffoscope;·len:·261,·SHA:·9b488006768a86d05b68f4e1888c750c736264a3a386f1310f1b7e8bfc7d2184·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where
20 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·962,·SHA:·116e4ec2ae3d9655c3d115eaf50f435f5323b4e48b84de734c79d2a09b3c02f2·...·]/core/primitive.usize.html">usize</a><div·class="where">where20 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_next[·...·truncated·by·diffoscope;·len:·842,·SHA:·d8f387888e3ee78f4397f4b1a12eae734e055247e3aa3251433ab8ac1019b31a·...·]/core/primitive.usize.html">usize</a><div·class="where">where
21 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·counting·the·number·of·iterations·and·returning·it.·<a·href="https://doc.[·...·truncated·by·diffoscope;·len:·837,·SHA:·47e25b6f9687bcc1d1fcdf9842fb085e6aba767d70531028f948636b80563dfc·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where21 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·counting·the·number·of·iterations·and·returning·it.·<a·href="../../../core/iter/traits/iterator/t[·...·truncated·by·diffoscope;·len:·693,·SHA:·725f42ff290538a513ec93cf7284210e1c519a4cc200b6d5878e7ccff2777059·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
22 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·returning·the·last·element.·<a·href="https://doc.rust-lang.org/1.84.0/cor[·...·truncated·by·diffoscope;·len:·3504,·SHA:·ec43d0f6d8d2a1e0fb7a684c382b9934abe1250844e53cce08bdfc6017ecb276·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where22 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·returning·the·last·element.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#metho[·...·truncated·by·diffoscope;·len:·3024,·SHA:·33e764ec8aa4ce60da61c340591349678c8144088b1440d0c5d8b7b28ba27fc9·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where
23 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by23 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by
24 the·given·amount·at·each·iteration.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><sp[·...·truncated·by·diffoscope;·len:·842,·SHA:·945c4509a8daf2f8fbccc5c6e5089e225955911e03a3e411f047f96d52d16862·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where24 the·given·amount·at·each·iteration.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="[·...·truncated·by·diffoscope;·len:·698,·SHA:·035d2f4d2e6b01ddf0b424aa6fc3f5919c82f85f857cb9cfa0f54f8357058b90·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
25 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,25 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
26 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·3b5ce32f9d564c3aa7cf2adc7130e674758d0c0f4f1275b4c3b46a74aa802cb3·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where26 ····U:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·[·...·truncated·by·diffoscope;·len:·1137,·SHA:·7916ae3a9b5afad376aafc6d698165147d82613fe975f64423f2367a02a69f6a·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
27 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,27 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
28 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·[·...·truncated·by·diffoscope;·len:·868,·SHA:·abdbf27ccc84063c7040d8fa3da9d0bda5ee310a470ef576e15554aee4bd5d21·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where28 ····U:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·of·pairs.·<a·href="../..[·...·truncated·by·diffoscope;·len:·724,·SHA:·ba31078b5c50fbfc51e53bed6f70aaa6e7e320cfda19949035c71d9363c0d919·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where
29 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,29 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
30 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent30 ····Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent
31 items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="sr[·...·truncated·by·diffoscope;·len:·427,·SHA:·6e82ad4aad49c2165d869fe30d20a968580a973cdb3a7f4c77f49e16dd59393e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where31 items·of·the·original·iterator.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="src·rightside"·href="../..[·...·truncated·by·diffoscope;·len:·331,·SHA:·451e844c9bf5d6d78b9579516e4b9fafb3e84136eaa1c95bead4539370743d7d·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where
32 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,32 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
33 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>33 ····G:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>
34 between·adjacent·items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightsi[·...·truncated·by·diffoscope;·len:·471,·SHA:·ed10488b7b2ccc3e4cc84a9a57a9695a74c1c964962e8d753cbace12f3318a66·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where34 between·adjacent·items·of·the·original·iterator.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·[·...·truncated·by·diffoscope;·len:·375,·SHA:·7bbb71535f348e442b9de05a74f9180c9acec0636566fa2a19ab1dc83779aace·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where
35 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,35 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
36 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each36 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each
37 element.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><spa[·...·truncated·by·diffoscope;·len:·306,·SHA:·61c87c39b177830189b0e4c036d97c40d8b9649d76432c90afb88de59498e8b2·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where37 element.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="S[·...·truncated·by·diffoscope;·len:·234,·SHA:·55463e0fb539911d03265cbd8abb7248189471ea74954185ed77f245746805c2·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where
38 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,38 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
39 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·a65da32c5f5ef8335cb607d3b4ab3f8a25877bc2c2e8b44ca9d575caecd5c8a5·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where39 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·772,·SHA:·de07f629315c257cc96a89e82de6752f002f259b678391b79d5fb48e279e56d2·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where
40 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,40 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
41 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·6d69c85c69fa789be551ea42d95c33c237d12a04ef157f9ddaaead1177f7771e·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element41 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·68,·SHA:·67cf1e2a20410007c7dd6c47c91b1d386626c1bfac5c1116c374da7bbee00d51·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element
42 should·be·yielded.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·489,·SHA:·9bdc636899f4e4e5a26a3a21c9603f72b3fb972865d2f459c38b7e2ac8fed7f1·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where42 should·be·yielded.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·tit[·...·truncated·by·diffoscope;·len:·393,·SHA:·328d72714f754fb793753313f01b087a9fbb30b77a2bcd5749456e1f6fd72710·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where
43 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,43 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
44 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·46dbf841c7aecd3f06bd4c944af21650faeac98c46c515dcfe643302618b1ecd·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where44 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·884,·SHA:·e8a37e28a6bfcb2d58b9ffd389d339c3dece95c14840f28c980a7d7aedcc9a05·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where
45 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as45 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as
46 the·next·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside[·...·truncated·by·diffoscope;·len:·468,·SHA:·52f7ff7f264284c3acc4429ca34d057ded9afa2e3d9d6e07571e252db9a48977·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where46 the·next·value.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside"><span·class="since"·ti[·...·truncated·by·diffoscope;·len:·372,·SHA:·9c08a613d034f21b42b8d196073d0f4d61c81458378e40e77995533a8b460837·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where
47 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·c0180fefce4346b0b4089e5c642521d7716108241c0ce6ec3e910c7a2c7364b4·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods47 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="../../../core/iter/adapters/peekable/struct.Peekable.html#method.peek"·ti[·...·truncated·by·diffoscope;·len:·103,·SHA:·e3683d31746f50069ed604def6201840bce75bbc7c584fac6c3644292077ae8a·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods
48 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See48 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See
49 their·documentation·for·more·information.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightsid[·...·truncated·by·diffoscope;·len:·498,·SHA:·e4a68861585faec6a5032b3b69d6dfb0f2799b5f387a527d9a1365571ed02069·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where49 their·documentation·for·more·information.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightside"><span·class="since"·t[·...·truncated·by·diffoscope;·len:·402,·SHA:·bdba673560d208f968337eb74446ead60d6223b0ca9ec6fbfaeb1a995a7e8001·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where
50 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,50 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
51 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·93281c1f6402743fd61110c11cf676f0f67eddceda801b4eb35e5fe9f85870fd·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where51 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·1042,·SHA:·27d4a79658fb1c97b659bd2520bcebbf5cfcb8a42420a7ecfcbff6f3330fa5e1·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where
52 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,52 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
53 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·f1cdbb1ec64f98fabbe1d89c88b03824310926cd7eaa160953ce2452fc3abb77·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where53 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·890,·SHA:·c43533da7f54bfb6611594b3436645d4d1f8e5339d2d05bf2345e87628499759·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where
54 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,54 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
55 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·f94a0b2c1396b13b89aca7830197ebf19e2c0e5ba536a9cc25b325a481799510·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where55 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·971,·SHA:·1b31b9d1d5061d4ee982a30400139f1d7319412bdea39925e0cc1e8e7cf3d65a·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where
56 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="https://doc.rust-lang[·...·truncated·by·diffoscope;·len:·783,·SHA:·c14217b89e3292a50a09192a8857485891fc769f861e1d1fc4322d04295c86ef·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where56 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="../../../core/iter/traits/iterator/trait.Iter[·...·truncated·by·diffoscope;·len:·639,·SHA:·79c7f7eddc655d329424f08baee8551b7f59cd4dc4b0d6984c5e4f241bcb949b·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where
57 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer57 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer
58 if·the·underlying·iterator·ends·sooner.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·c[·...·truncated·by·diffoscope;·len:·488,·SHA:·76f753d5a273a09a73127631acaa0ee947326a929f33be291018188793e1af56·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where58 if·the·underlying·iterator·ends·sooner.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stab[·...·truncated·by·diffoscope;·len:·392,·SHA:·50ac976eb8bf89726a483af064d5a70c100dedd17d46dc40ac3a82aba51b2082·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where
59 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,59 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
60 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·07d303586c8ad4e0082d5b44bff8eeda03cdb8f4bdbe46489f9232bca5a43ec6·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but60 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/tra[·...·truncated·by·diffoscope;·len:·329,·SHA:·14fc5ef1359fcb2171e21ba65c5f5d8ce11053860ba1d5aa32ddce90a48c2a8c·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but
61 unlike·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·2b20882d9583cee50e0c8b3cf362b27ce0d524db387d4aa4093d622b9370dada·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where61 unlike·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.scan">Rea[·...·truncated·by·diffoscope;·len:·570,·SHA:·3cdbe78e481f63f4d21b2fa94202dad167221af9d6e6f981ccd7a6e524f6157d·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where
62 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,62 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
63 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,63 ····U:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
64 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·933,·SHA:·4af94b75ba5c1e03d2d70590d2fd0706f13b3080fbff0f5b98e7b109048c403d·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where64 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·789,·SHA:·0e36f9aa81931958e65acc9e1b5bf6ad7367dcb7163dcf0af2a043314857a909·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where
65 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,65 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
66 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.I[·...·truncated·by·diffoscope;·len:·968,·SHA:·e5572ed2f3bdf5970d038da608f2f592d945541207c483c257fe5789efba168a·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where66 ····Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::trait[·...·truncated·by·diffoscope;·len:·800,·SHA:·3ea01df21dfaf9ee656fdee6aa789a6ce5be05d17c043433c5ab28da8f6d3241·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where
67 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,67 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
68 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·3013c0e49b0dade37f8ca096eccc5ceeb03fc79b9d320a4c92486d23b88d1009·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over68 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator[·...·truncated·by·diffoscope;·len:·63,·SHA:·8395b60c01b0cde6c3340bd4e6c57cddd02465a19dcf15a8aa5498bd6c8ddc11·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over
69 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,69 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="../../../core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,
70 the·windows·during·mapping·overlap·as·well.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside">[·...·truncated·by·diffoscope;·len:·454,·SHA:·040991f3914479bcc92615de2b81df7363656323622e5aadc964e1a61917d23e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where70 the·windows·during·mapping·overlap·as·well.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside"><span·class="since"·titl[·...·truncated·by·diffoscope;·len:·358,·SHA:·21db4436f04b3d09e41f294c30cd7dea235a4beb9af727cb1f1f065008ad732e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where
71 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="https://doc.rust-lang.org/1.84.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·0e0294a45242d5ce9a3ab8f95d6d410756415291d92baa7d12283ef1b3ecc3a0·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where71 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="../../../core/option/enum.Option.html#variant.None"·title="varia[·...·truncated·by·diffoscope;·len:·697,·SHA:·55b16240a265fa2f73963114b9def4c5703a60d1c3ce047915fff28502588e5b·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where
72 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,72 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
73 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·a8b562f71802a421f4745f7d1fadf4f70d98030c829e70f27b692e7915267027·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where73 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·650,·SHA:·eb862563a2da6881a0f9a31dac8f99f2b47b2c8d3033a0e1bc9ec49ae5500941·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where
74 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="https://doc.rust-lang.org/1.84.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·b3db7d84f203bbc139b1c52912705d19c664dac762898205fce452c9dc3a5318·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where74 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.by[·...·truncated·by·diffoscope;·len:·427,·SHA:·d439202f1a598c30b789e20f3d05a82f531349aa12f3af08cc5c230996ec01a9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where
75 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,75 ····B:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
76 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·431,·SHA:·a705a23f6d810357e7dcac670743884665ffcccfb9b780d0aa03720be8ca5625·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(76 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.collect[·...·truncated·by·diffoscope;·len:·335,·SHA:·d72a986b5d306b2e1ed99e18a16e26fa1b5380448fea76ac3db703052800b629·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(
77 ····&amp;mut·self,77 ····&amp;mut·self,
78 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.h[·...·truncated·by·diffoscope;·len:·479,·SHA:·fa749442d890055f86ceb34f411c84fd7ea08302b336d786d1ca36fe5868b020·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where78 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try[·...·truncated·by·diffoscope;·len:·359,·SHA:·886ccc2fbd37f1e7df4075b80b0bebd3d1a6e997fae2114ca1818fa30fa95d5a·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
79 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,79 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
80 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>, 
81 ····&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang[·...·truncated·by·diffoscope;·len:·449,·SHA:·9ddccfb7bdd27ea692d65fa83daf56e31762d1bec3a502234174b8fa4fb33a98·...·],80 ····Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="[·...·truncated·by·diffoscope;·len:·40,·SHA:·39f6b8b47216936a6251a972a3e72c0459df25c157b8b3990eefb48397aa8303·...·],
 81 ····&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;B&gt;,
82 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/itera[·...·truncated·by·diffoscope;·len:·323,·SHA:·b5c51f161dc9d77fd81d1fd23cc71fbf42ac00f3168cf9e41ebaaa2b6eb25363·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if82 ····B:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·tit[·...·truncated·by·diffoscope;·len:·227,·SHA:·91a843f71f5d4d4bdd2a6f526e4b1ace78ad1c1c0027ff429527a1e3cc1cbb42·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if
83 a·failure·is·encountered.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·ri[·...·truncated·by·diffoscope;·len:·521,·SHA:·6a54376815dab985ec8cc35604d035e98e3003b1563c9b41e70966084505542b·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where83 a·failure·is·encountered.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../../[·...·truncated·by·diffoscope;·len:·401,·SHA:·ed1d0660f20625c1d5231d569dd3e4f1d10332250dcd1a3f5d2e886618e67f5b·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
84 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,84 ····E:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
85 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·975,·SHA:·94f7f970236ba59ba5f1415764a0e3ab2f3093c6b79e76c25c797ac24a3c4d09·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where85 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_coll[·...·truncated·by·diffoscope;·len:·855,·SHA:·7b38a8c237aadc46d5211ff8698af580678e0cbcab757a66d6416b422880dd91·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
86 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,86 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
87 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·b480ec650ba000fe7cb67df58fc0351299638ee3e8f00db18f74ca24d69f9894·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,87 ····B:·<a·class="trait"·href="../../../core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="../../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associa[·...·truncated·by·diffoscope;·len:·23,·SHA:·4417dee5d41246c4acf5419e1bdac3c7d847bd34e3e87738a08734259a3b63da·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
88 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·fdf5a1845f070855ba2cfd0c8c85460ea5cb646c4d3b42a8431bf21489c73701·...·]/core/primitive.usize.html">usize</a><div·class="where">where88 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·827,·SHA:·0237b034801a953ed40ad7c10f9a80d682bdf0a649c6fde9f53efc254cd75fc0·...·]/core/primitive.usize.html">usize</a><div·class="where">where
89 ····T:·'a,89 ····T:·'a,
90 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·1fc250e258e9e42e4fa3e22f86ecd57057e9ff23e47af1aec778076a7a891134·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,90 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="../../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEnd[·...·truncated·by·diffoscope;·len:·60,·SHA:·036db50df43442a72ce04aef94ccf2727352aad0708d71fe0e34c23613b84765·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,
91 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·5846407374f20f525a4a0663ad4488141eafe64513ef82581dc5df5c2d200745·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_partition_in_place</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62543">#62543</a>)</span></div></span><div·class='docblock'>Reorders·the·elements·of·this·iterator·<em>in-place</em>·according·to·the·given·predicate,91 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="../../../core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_partition_in_place</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62543">#62543</a>)</span></div></span><div·class='docblock'>Reorders·the·elements·of·this·iterator·<em>in-place</em>·according·to·the·given·predicate,
92 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.92 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.
93 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.partition_in_place">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_partitioned"·class="method·trait-impl"><a·clas[·...·truncated·by·diffoscope;·len:·431,·SHA:·4aa7d028146c72d45794efc19a376d4bee3b75eda61ff46d969e440b3dbfa1b0·...·]/core/primitive.bool.html">bool</a><div·class="where">where93 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.partition_in_place">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_partitioned"·class="method·trait-impl"><a·class="src·rightside"·href="[·...·truncated·by·diffoscope;·len:·335,·SHA:·252e1c16199fc3c38bc7de8cbda8c9532ab6d581d449c680cd7daf8d61a74aeb·...·]/core/primitive.bool.html">bool</a><div·class="where">where
94 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,94 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
95 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·fcd03e71f79faad6d9b9a12045d59f4dfabc78e5aefebcabc9c1a5be45e31125·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,95 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·63,·SHA:·852041c2de8156fdddf9f71111c5ddf1a6b88aabd8c082f1a254f0b21c18ffa1·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,
96 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><span·class="righ[·...·truncated·by·diffoscope;·len:·319,·SHA:·9b9df13f2f4e5b4dde3908515766e1a474fa30bcb7edc98c15665a016e677c2a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where96 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><span·class="rightside"><span·class="sinc[·...·truncated·by·diffoscope;·len:·247,·SHA:·222a0145d03094cb0b20ca156583afe97e703828a8aa77e37fb7b4661759e2c7·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where
97 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,97 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
98 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,98 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
99 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns99 ····R:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns
100 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rights[·...·truncated·by·diffoscope;·len:·321,·SHA:·619fd774190944998148325de99aaa75de66ce4b7e26579fd342c564923a5652·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where100 successfully,·producing·a·single,·final·value.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"[·...·truncated·by·diffoscope;·len:·249,·SHA:·afbe9e91614278f09851b7c5920ddaf0907a2bf4c310ec39b40084e28959cc77·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where
101 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,101 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
102 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,102 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
103 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the103 ····R:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="../../../core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the
104 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·307,·SHA:·5975144fd8566efa93ad1ccec09297e280924b7372e08681d2103702124e2c52·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where104 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><span·class="rightside"><span·class="since"·tit[·...·truncated·by·diffoscope;·len:·235,·SHA:·da9aac17d9724df2aa434c2d10e1caa010eb4fd7e574e4da4e3d5b689e970097·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where
105 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,105 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
106 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,106 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,
107 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span[·...·truncated·by·diffoscope;·len:·619,·SHA:·8813f54846438870310d5f5dfabd2335a9dbf51e9da2e4cd681bcb6077d39628·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where107 returning·the·final·result.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="St[·...·truncated·by·diffoscope;·len:·499,·SHA:·ff97be2c630acbbbb397aa79317bd89b79955e6735d9da7aea9df48659f94fce·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
108 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,108 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
109 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·084691f7fc4e7f4da7db385127d0ce8d2d52f6740757129a65910c4db0dc180d·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing109 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·256,·SHA:·2fe8ae39f77649fea294c45979f427748b2a9938dfa70e4595ac661d972125b1·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing
110 operation.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·217,·SHA:·447ae00256be3de069c602a6c04889808c883eae6fa349d023f53bdd5570ecae·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(110 operation.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside"·href="../../../src/cor[·...·truncated·by·diffoscope;·len:·145,·SHA:·be4dc63adf8a4e832fd3dbaaabbf45f287388ea2bb17088d40589203a2ec6dfb·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(
111 ····&amp;mut·self,111 ····&amp;mut·self,
112 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·70b2b85cad045ac7addf647e0bd3cd5b2c9ebca5986613ad2b6a9c00e3a1132f·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,112 ····f:·impl·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·68,·SHA:·e7e11f257edcac749a5883ad9a3aa42e6e965be419f967b36caa7afd3b36d7c9·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
113 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·1823533b932e38e3200465d101f10a34421c005018974296350162e4049615ea·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where113 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</[·...·truncated·by·diffoscope;·len:·586,·SHA:·596f94ec7a4c06359aee56ccb8a7138a1ddb94415fafcecac1fc87434b1329a3·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
114 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,114 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
115 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,115 ····R:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
116 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·764ea8f08626b05426a76738d54ebb2d640042494d76cba8c20d868bfdc07a73·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the116 ····&lt;R·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</[·...·truncated·by·diffoscope;·len:·292,·SHA:·2ae73aa9b78f13099a8016e28a473713dcc755cf00fed8895c0c1b027bbcea01·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the
117 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><span·class="rightside"><s[·...·truncated·by·diffoscope;·len:·476,·SHA:·aef721c14147dea2fbec70dcfa76916b3f1273bed8304f4c9db310ca23d1e4b1·...·]/core/primitive.bool.html">bool</a><div·class="where">where117 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title=[·...·truncated·by·diffoscope;·len:·380,·SHA:·1042cdc03eabce3d330853b659f28b8566dd5841790f7f1303f3e326f05efab6·...·]/core/primitive.bool.html">bool</a><div·class="where">where
118 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,118 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
119 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·7c48e62c73a40a5cb5ebbf4a22cd789b342a88ad3d855022191f2bae33c736c6·...·]/core/primitive.bool.html">bool</a><div·class="where">where119 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·850,·SHA:·1b28d9cdfe3ba8dc7eac8cef1bb6549e78768b440ea492c70d80c8c07eae61cb·...·]/core/primitive.bool.html">bool</a><div·class="where">where
120 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,120 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
121 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·673d69ce0c23e24b2546127c463e67cd2a4c0f7be792712e2b42e75427161b75·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where121 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·980,·SHA:·a560c9e639c326a34f124b36f977291532e03ffae190e973674fee7e13b4c842·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
122 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,122 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
123 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·aa5078ff77f5638746395497f8ce92c1b684d342dea851990104d5e9981ab6b0·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where123 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·883,·SHA:·47fb849c20ee0cb36696a24bd285768bd0973774403ae956d2a517cd216452b1·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where
124 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,124 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
125 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·1bd732dff19021a1586bb486282683f5c1bc65d5d514f9e13cc9232b4e94955b·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;,</div></h4></section></summary><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns125 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·58,·SHA:·f6e1e279f463d2adecc4a9316aeab7af85329a84398e722f43ac130647fe78cf·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;,</div></h4></section></summary><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns
Max diff block lines reached; 151677/344341 bytes (44.05%) of diff not shown.
337 KB
./usr/share/doc/rust-doc/html/alloc/collections/btree_set/struct.Iter.html
    
Offset 1, 238 lines modifiedOffset 1, 238 lines modified
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="An·iterator·over·the·items·of·a·`BTreeSet`."><title>Iter·in·alloc::collections::btree_set·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312» 2025-01-07)»      (built»from»    a»   source»     tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Iter</a></h2><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-Iter%3C'_,+T%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-Iter%3C'_,+T%3E"·title="Debug">Debug</a></li><li><a·href="#impl-Default-for-Iter%3C'_,+T%3E"·title="Default">Default</a></li><li><a·href="#impl-DoubleEndedIterator-for-Iter%3C'a,+T%3E"·title="DoubleEndedIterator">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-Iter%3C'_,+T%3E"·title="ExactSizeIterator">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-Iter%3C'_,+T%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-Iter%3C'a,+T%3E"·title="Iterator">Iterator</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-Iter%3C'a,+T%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Iter%3C'a,+T%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Iter%3C'a,+T%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-Iter%3C'a,+T%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-Iter%3C'a,+T%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Iter%3C'a,+T%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>collections::<wbr>btree_<wbr>set</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">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">btree_set</a></span><h1>Struct·<span·class="struct">Iter</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/set.rs.html#130-132">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·Iter&lt;'a,·T:·'a&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>An·iterator·over·the·items·of·a·<code>BTreeSet</code>.</p>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="An·iterator·over·the·items·of·a·`BTreeSet`."><title>Iter·in·alloc::collections::btree_set·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312» 2025-01-07)»      (built»from»    a»   source»     tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Iter</a></h2><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-Iter%3C'_,+T%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-Iter%3C'_,+T%3E"·title="Debug">Debug</a></li><li><a·href="#impl-Default-for-Iter%3C'_,+T%3E"·title="Default">Default</a></li><li><a·href="#impl-DoubleEndedIterator-for-Iter%3C'a,+T%3E"·title="DoubleEndedIterator">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-Iter%3C'_,+T%3E"·title="ExactSizeIterator">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-Iter%3C'_,+T%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-Iter%3C'a,+T%3E"·title="Iterator">Iterator</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-Iter%3C'a,+T%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Iter%3C'a,+T%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Iter%3C'a,+T%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-Iter%3C'a,+T%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-Iter%3C'a,+T%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Iter%3C'a,+T%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>collections::<wbr>btree_<wbr>set</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">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">btree_set</a></span><h1>Struct·<span·class="struct">Iter</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/set.rs.html#130-132">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·Iter&lt;'a,·T:·'a&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>An·iterator·over·the·items·of·a·<code>BTreeSet</code>.</p>
2 <p>This·<code>struct</code>·is·created·by·the·<a·href="struct.BTreeSet.html#method.iter"·title="method·alloc::collections::btree_set::BTreeSet::iter"><code>iter</code></a>·method·on·<a·href="struct.BTreeSet.html"·title="struct·alloc::collections::btree_set::BTreeSet"><code>BTreeSet</code></a>.2 <p>This·<code>struct</code>·is·created·by·the·<a·href="struct.BTreeSet.html#method.iter"·title="method·alloc::collections::btree_set::BTreeSet::iter"><code>iter</code></a>·method·on·<a·href="struct.BTreeSet.html"·title="struct·alloc::collections::btree_set::BTreeSet"><code>BTreeSet</code></a>.
3 See·its·documentation·for·more.</p>3 See·its·documentation·for·more.</p>
4 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-Iter%3C'_,+T%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/set.rs.html#1631-1635">Source</a></span><a·href="#impl-Clone-for-Iter%3C'_,+T%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struct"·href="struct.Iter.html"·title="struct·alloc::collections::btree_set::Iter">Iter</a>&lt;'_,·T&gt;</h3></section></summary><div·cla[·...·truncated·by·diffoscope;·len:·3956,·SHA:·cf6c24b15f025983a155002f11b10c0de1a370a406ae31a20c6c044a5fbc80eb·...·]/core/default/trait.Default.html#tymethod.default"·class="fn">default</a>()·-&gt;·Self</h4></section></summary><div·class="docblock"><p>Creates·an·empty·<code>btree_set::Iter</code>.</p>4 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-Iter%3C'_,+T%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/set.rs.html#1631-1635">Source</a></span><a·href="#impl-Clone-for-Iter%3C'_,+T%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struct"·href="struct.Iter.html"·title="struct·alloc::collections::btree_set::Iter">Iter</a>&lt;'_,·T&gt;</h3></section></summary><div·class="impl-items"><details[·...·truncated·by·diffoscope;·len:·3764,·SHA:·104be8755d1b9b21361d9696191c6c0c9b258780fe1b8a3f569554f59a9420a7·...·]/core/default/trait.Default.html#tymethod.default"·class="fn">default</a>()·-&gt;·Self</h4></section></summary><div·class="docblock"><p>Creates·an·empty·<code>btree_set::Iter</code>.</p>
  
5 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span>iter:·btree_set::Iter&lt;<span·class="lifetime">'_</span>,·u8&gt;·=·Default::default();5 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span>iter:·btree_set::Iter&lt;<span·class="lifetime">'_</span>,·u8&gt;·=·Default::default();
6 <span·class="macro">assert_eq!</span>(iter.len(),·<span·class="number">0</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::btree_set;%0A++++let+iter:+btree_set::Iter%3C'_,+u8%3E+=+Default::default();%0A++++assert_eq!(iter.len(),+0);%0A%7D&amp;edition=2021"></a></div>6 <span·class="macro">assert_eq!</span>(iter.len(),·<span·class="number">0</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::btree_set;%0A++++let+iter:+btree_set::Iter%3C'_,+u8%3E+=+Default::default();%0A++++assert_eq!(iter.len(),+0);%0A%7D&amp;edition=2021"></a></div>
7 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-DoubleEndedIterator-for-Iter%3C'a,+T%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/set.rs.html#1667-1671">Source</a></span><a·href="#impl-DoubleEndedIterator-for-Iter%3C'a,+T%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·T&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIterator</a>·for·<a·class="struct"·href="struct.Iter.html"·title="struct·alloc::co[·...·truncated·by·diffoscope;·len:·4369,·SHA:·603baff49038e0c94897c01b78de8053c9c4dc5629573a6c135de60012340a85·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold"·class="fn">try_rfold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where7 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-DoubleEndedIterator-for-Iter%3C'a,+T%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/set.rs.html#1667-1671">Source</a></span><a·href="#impl-DoubleEndedIterator-for-Iter%3C'a,+T%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·T&gt;·<a·class="trait"·href="../../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIterator</a>·for·<a·class="struct"·href="struct.Iter.html"·title="struct·alloc::collections::btree_set::It[·...·truncated·by·diffoscope;·len:·3865,·SHA:·8118893c2d26c3f1710c88b8ad2e85974b59aa59d39fd6f9e755426b77a38469·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold"·class="fn">try_rfold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where
8 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,8 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
9 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,9 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
10 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>This·is·the·reverse·version·of·<a·href="https://doc.rust-lang.org/1.8[·...·truncated·by·diffoscope;·len:·3,·SHA:·fbd04e1aae9ce0b11a8946e2c9ac2619f7428a64d32d01eff61d809dcb70ee8e·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·title="method·core::iter::traits::iterator::Iterator::try_fold"><code>Iterator::try_fold()</code></a>:·it·takes10 ····R:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>This·is·the·reverse·version·of·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·title="method·core::iter::traits::iterator::Iterator::try_fold"><code>Iterator::try_fold()</code></a>:·it·takes
11 elements·starting·from·the·back·of·the·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfold"·class="method·trait-impl"><span·clas[·...·truncated·by·diffoscope;·len:·325,·SHA:·7ffdb06a8ab3810207a1c974783822231eaf1d82fd94bcf810dd7b3181149b7b·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold"·class="fn">rfold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where11 elements·starting·from·the·back·of·the·iterator.·<a·href="../../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfold"·class="method·trait-impl"><span·class="rightside"><span·clas[·...·truncated·by·diffoscope;·len:·253,·SHA:·48421497f19ee93d3a7432833660cd659661b35b02b625c6376fc49660f200cf·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold"·class="fn">rfold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where
12 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,12 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
13 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·reduces·the·iterator’s·elements·to·a·single,13 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·reduces·the·iterator’s·elements·to·a·single,
14 final·value,·starting·from·the·back.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfind"·class="method·trait-impl"><span·class="r[·...·truncated·by·diffoscope;·len:·665,·SHA:·fde89feb7c0e70eefa34d688476ca36a70115bec8150dbf9b1a3c359f72dd28d·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where14 final·value,·starting·from·the·back.·<a·href="../../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfind"·class="method·trait-impl"><span·class="rightside"><span·class="s[·...·truncated·by·diffoscope;·len:·545,·SHA:·b420bc934fe1ddfd2fe0958678aa3aba1ce90383b1958958e47e13ae1b40fe25·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
15 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,15 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
16 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·7862,·SHA:·428bb4e0892c31a7b18667c405de989c238f4dc2f5ae0d668d399b39b168e049·...·]/core/primitive.reference.html">&amp;'a·T</a>&gt;<div·class="where">where16 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·7118,·SHA:·6900ca1f21555673f5a043e2202b698a89d8149211f6c6942e279baef18dd75a·...·]/core/primitive.reference.html">&amp;'a·T</a>&gt;<div·class="where">where
17 ····<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;'a·T</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,</div></h4></section></summary><div·class='docblock'>Return[·...·truncated·by·diffoscope;·len:·763,·SHA:·77c02701ddcf7b35c8f743d88108462881d625ca07094df716e9ac3fffe17c97·...·]/core/primitive.reference.html">&amp;'a·T</a>&gt;<div·class="where">where17 ····<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;'a·T</a>:·<a·class="trait"·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,</div></h4></section></summary><div·class='docblock'>Returns·the·minimum·element·of·an·iterator.·<a·href=".[·...·truncated·by·diffoscope;·len:·619,·SHA:·f4a31639b0148fd389e327b58e38b62f9d2826cc96c0da60810f72c87fc7eda2·...·]/core/primitive.reference.html">&amp;'a·T</a>&gt;<div·class="where">where
18 ····<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;'a·T</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,</div></h4></section></summary><div·class='docblock'>Return[·...·truncated·by·diffoscope;·len:·678,·SHA:·67dd0e6537972ed0cee7cce88e32170e329745fdc42db9ea5ceef2a173d5f33c·...·]/core/primitive.usize.html">usize</a>&gt;(18 ····<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;'a·T</a>:·<a·class="trait"·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,</div></h4></section></summary><div·class='docblock'>Returns·the·maximum·element·of·an·iterator.·<a·href=".[·...·truncated·by·diffoscope;·len:·534,·SHA:·cce08d06936eba7acfa96325f5e1dbf01a7d6eea71869e5dcb83da012c4019b0·...·]/core/primitive.usize.html">usize</a>&gt;(
19 ····&amp;mut·self,19 ····&amp;mut·self,
20 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·4f557a9b49151e0be8c52ffd68f1def4469c08164239dc8bef8df2040551c5ef·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where20 )·-&gt;·<a·class="enum"·href="../../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::It[·...·truncated·by·diffoscope;·len:·261,·SHA:·9b488006768a86d05b68f4e1888c750c736264a3a386f1310f1b7e8bfc7d2184·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where
21 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·962,·SHA:·116e4ec2ae3d9655c3d115eaf50f435f5323b4e48b84de734c79d2a09b3c02f2·...·]/core/primitive.usize.html">usize</a><div·class="where">where21 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_next[·...·truncated·by·diffoscope;·len:·842,·SHA:·d8f387888e3ee78f4397f4b1a12eae734e055247e3aa3251433ab8ac1019b31a·...·]/core/primitive.usize.html">usize</a><div·class="where">where
22 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·counting·the·number·of·iterations·and·returning·it.·<a·href="https://doc.[·...·truncated·by·diffoscope;·len:·3529,·SHA:·36685e4ebfba7d155142dce71eec5dabe5f32dacb8a458b62987f15496f31675·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where22 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·counting·the·number·of·iterations·and·returning·it.·<a·href="../../../core/iter/traits/iterator/t[·...·truncated·by·diffoscope;·len:·3049,·SHA:·36b73bdc1b7eb71bc2ee32534a58bc8374d5403ad0bacb5cbfb32bf6be47bb80·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where
23 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by23 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by
24 the·given·amount·at·each·iteration.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><sp[·...·truncated·by·diffoscope;·len:·842,·SHA:·945c4509a8daf2f8fbccc5c6e5089e225955911e03a3e411f047f96d52d16862·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where24 the·given·amount·at·each·iteration.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="[·...·truncated·by·diffoscope;·len:·698,·SHA:·035d2f4d2e6b01ddf0b424aa6fc3f5919c82f85f857cb9cfa0f54f8357058b90·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
25 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,25 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
26 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·3b5ce32f9d564c3aa7cf2adc7130e674758d0c0f4f1275b4c3b46a74aa802cb3·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where26 ····U:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·[·...·truncated·by·diffoscope;·len:·1137,·SHA:·7916ae3a9b5afad376aafc6d698165147d82613fe975f64423f2367a02a69f6a·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
27 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,27 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
28 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·[·...·truncated·by·diffoscope;·len:·868,·SHA:·abdbf27ccc84063c7040d8fa3da9d0bda5ee310a470ef576e15554aee4bd5d21·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where28 ····U:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·of·pairs.·<a·href="../..[·...·truncated·by·diffoscope;·len:·724,·SHA:·ba31078b5c50fbfc51e53bed6f70aaa6e7e320cfda19949035c71d9363c0d919·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where
29 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,29 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
30 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent30 ····Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent
31 items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="sr[·...·truncated·by·diffoscope;·len:·427,·SHA:·6e82ad4aad49c2165d869fe30d20a968580a973cdb3a7f4c77f49e16dd59393e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where31 items·of·the·original·iterator.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="src·rightside"·href="../..[·...·truncated·by·diffoscope;·len:·331,·SHA:·451e844c9bf5d6d78b9579516e4b9fafb3e84136eaa1c95bead4539370743d7d·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where
32 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,32 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
33 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>33 ····G:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>
34 between·adjacent·items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightsi[·...·truncated·by·diffoscope;·len:·471,·SHA:·ed10488b7b2ccc3e4cc84a9a57a9695a74c1c964962e8d753cbace12f3318a66·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where34 between·adjacent·items·of·the·original·iterator.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·[·...·truncated·by·diffoscope;·len:·375,·SHA:·7bbb71535f348e442b9de05a74f9180c9acec0636566fa2a19ab1dc83779aace·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where
35 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,35 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
36 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each36 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each
37 element.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><spa[·...·truncated·by·diffoscope;·len:·306,·SHA:·61c87c39b177830189b0e4c036d97c40d8b9649d76432c90afb88de59498e8b2·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where37 element.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="S[·...·truncated·by·diffoscope;·len:·234,·SHA:·55463e0fb539911d03265cbd8abb7248189471ea74954185ed77f245746805c2·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where
38 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,38 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
39 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·a65da32c5f5ef8335cb607d3b4ab3f8a25877bc2c2e8b44ca9d575caecd5c8a5·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where39 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·772,·SHA:·de07f629315c257cc96a89e82de6752f002f259b678391b79d5fb48e279e56d2·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where
40 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,40 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
41 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·6d69c85c69fa789be551ea42d95c33c237d12a04ef157f9ddaaead1177f7771e·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element41 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·68,·SHA:·67cf1e2a20410007c7dd6c47c91b1d386626c1bfac5c1116c374da7bbee00d51·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element
42 should·be·yielded.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·489,·SHA:·9bdc636899f4e4e5a26a3a21c9603f72b3fb972865d2f459c38b7e2ac8fed7f1·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where42 should·be·yielded.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·tit[·...·truncated·by·diffoscope;·len:·393,·SHA:·328d72714f754fb793753313f01b087a9fbb30b77a2bcd5749456e1f6fd72710·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where
43 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,43 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
44 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·46dbf841c7aecd3f06bd4c944af21650faeac98c46c515dcfe643302618b1ecd·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where44 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·884,·SHA:·e8a37e28a6bfcb2d58b9ffd389d339c3dece95c14840f28c980a7d7aedcc9a05·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where
45 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as45 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as
46 the·next·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside[·...·truncated·by·diffoscope;·len:·468,·SHA:·52f7ff7f264284c3acc4429ca34d057ded9afa2e3d9d6e07571e252db9a48977·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where46 the·next·value.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside"><span·class="since"·ti[·...·truncated·by·diffoscope;·len:·372,·SHA:·9c08a613d034f21b42b8d196073d0f4d61c81458378e40e77995533a8b460837·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where
47 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·c0180fefce4346b0b4089e5c642521d7716108241c0ce6ec3e910c7a2c7364b4·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods47 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="../../../core/iter/adapters/peekable/struct.Peekable.html#method.peek"·ti[·...·truncated·by·diffoscope;·len:·103,·SHA:·e3683d31746f50069ed604def6201840bce75bbc7c584fac6c3644292077ae8a·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods
48 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See48 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See
49 their·documentation·for·more·information.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightsid[·...·truncated·by·diffoscope;·len:·498,·SHA:·e4a68861585faec6a5032b3b69d6dfb0f2799b5f387a527d9a1365571ed02069·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where49 their·documentation·for·more·information.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightside"><span·class="since"·t[·...·truncated·by·diffoscope;·len:·402,·SHA:·bdba673560d208f968337eb74446ead60d6223b0ca9ec6fbfaeb1a995a7e8001·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where
50 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,50 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
51 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·93281c1f6402743fd61110c11cf676f0f67eddceda801b4eb35e5fe9f85870fd·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where51 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·1042,·SHA:·27d4a79658fb1c97b659bd2520bcebbf5cfcb8a42420a7ecfcbff6f3330fa5e1·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where
52 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,52 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
53 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·f1cdbb1ec64f98fabbe1d89c88b03824310926cd7eaa160953ce2452fc3abb77·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where53 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·890,·SHA:·c43533da7f54bfb6611594b3436645d4d1f8e5339d2d05bf2345e87628499759·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where
54 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,54 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
55 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·f94a0b2c1396b13b89aca7830197ebf19e2c0e5ba536a9cc25b325a481799510·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where55 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·971,·SHA:·1b31b9d1d5061d4ee982a30400139f1d7319412bdea39925e0cc1e8e7cf3d65a·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where
56 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="https://doc.rust-lang[·...·truncated·by·diffoscope;·len:·783,·SHA:·c14217b89e3292a50a09192a8857485891fc769f861e1d1fc4322d04295c86ef·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where56 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="../../../core/iter/traits/iterator/trait.Iter[·...·truncated·by·diffoscope;·len:·639,·SHA:·79c7f7eddc655d329424f08baee8551b7f59cd4dc4b0d6984c5e4f241bcb949b·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where
57 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer57 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer
58 if·the·underlying·iterator·ends·sooner.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·c[·...·truncated·by·diffoscope;·len:·488,·SHA:·76f753d5a273a09a73127631acaa0ee947326a929f33be291018188793e1af56·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where58 if·the·underlying·iterator·ends·sooner.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stab[·...·truncated·by·diffoscope;·len:·392,·SHA:·50ac976eb8bf89726a483af064d5a70c100dedd17d46dc40ac3a82aba51b2082·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where
59 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,59 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
60 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·07d303586c8ad4e0082d5b44bff8eeda03cdb8f4bdbe46489f9232bca5a43ec6·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but60 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/tra[·...·truncated·by·diffoscope;·len:·329,·SHA:·14fc5ef1359fcb2171e21ba65c5f5d8ce11053860ba1d5aa32ddce90a48c2a8c·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but
61 unlike·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·2b20882d9583cee50e0c8b3cf362b27ce0d524db387d4aa4093d622b9370dada·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where61 unlike·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.scan">Rea[·...·truncated·by·diffoscope;·len:·570,·SHA:·3cdbe78e481f63f4d21b2fa94202dad167221af9d6e6f981ccd7a6e524f6157d·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where
62 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,62 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
63 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,63 ····U:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
64 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·933,·SHA:·4af94b75ba5c1e03d2d70590d2fd0706f13b3080fbff0f5b98e7b109048c403d·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where64 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·789,·SHA:·0e36f9aa81931958e65acc9e1b5bf6ad7367dcb7163dcf0af2a043314857a909·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where
65 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,65 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
66 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.I[·...·truncated·by·diffoscope;·len:·968,·SHA:·e5572ed2f3bdf5970d038da608f2f592d945541207c483c257fe5789efba168a·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where66 ····Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::trait[·...·truncated·by·diffoscope;·len:·800,·SHA:·3ea01df21dfaf9ee656fdee6aa789a6ce5be05d17c043433c5ab28da8f6d3241·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where
67 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,67 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
68 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·3013c0e49b0dade37f8ca096eccc5ceeb03fc79b9d320a4c92486d23b88d1009·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over68 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator[·...·truncated·by·diffoscope;·len:·63,·SHA:·8395b60c01b0cde6c3340bd4e6c57cddd02465a19dcf15a8aa5498bd6c8ddc11·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over
69 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,69 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="../../../core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,
70 the·windows·during·mapping·overlap·as·well.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside">[·...·truncated·by·diffoscope;·len:·454,·SHA:·040991f3914479bcc92615de2b81df7363656323622e5aadc964e1a61917d23e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where70 the·windows·during·mapping·overlap·as·well.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside"><span·class="since"·titl[·...·truncated·by·diffoscope;·len:·358,·SHA:·21db4436f04b3d09e41f294c30cd7dea235a4beb9af727cb1f1f065008ad732e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where
71 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="https://doc.rust-lang.org/1.84.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·0e0294a45242d5ce9a3ab8f95d6d410756415291d92baa7d12283ef1b3ecc3a0·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where71 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="../../../core/option/enum.Option.html#variant.None"·title="varia[·...·truncated·by·diffoscope;·len:·697,·SHA:·55b16240a265fa2f73963114b9def4c5703a60d1c3ce047915fff28502588e5b·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where
72 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,72 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
73 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·a8b562f71802a421f4745f7d1fadf4f70d98030c829e70f27b692e7915267027·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where73 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·650,·SHA:·eb862563a2da6881a0f9a31dac8f99f2b47b2c8d3033a0e1bc9ec49ae5500941·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where
74 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="https://doc.rust-lang.org/1.84.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·b3db7d84f203bbc139b1c52912705d19c664dac762898205fce452c9dc3a5318·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where74 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.by[·...·truncated·by·diffoscope;·len:·427,·SHA:·d439202f1a598c30b789e20f3d05a82f531349aa12f3af08cc5c230996ec01a9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where
75 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,75 ····B:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
76 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·431,·SHA:·a705a23f6d810357e7dcac670743884665ffcccfb9b780d0aa03720be8ca5625·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(76 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.collect[·...·truncated·by·diffoscope;·len:·335,·SHA:·d72a986b5d306b2e1ed99e18a16e26fa1b5380448fea76ac3db703052800b629·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(
77 ····&amp;mut·self,77 ····&amp;mut·self,
78 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.h[·...·truncated·by·diffoscope;·len:·479,·SHA:·fa749442d890055f86ceb34f411c84fd7ea08302b336d786d1ca36fe5868b020·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where78 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try[·...·truncated·by·diffoscope;·len:·359,·SHA:·886ccc2fbd37f1e7df4075b80b0bebd3d1a6e997fae2114ca1818fa30fa95d5a·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
79 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,79 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
80 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>, 
81 ····&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang[·...·truncated·by·diffoscope;·len:·449,·SHA:·9ddccfb7bdd27ea692d65fa83daf56e31762d1bec3a502234174b8fa4fb33a98·...·],80 ····Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="[·...·truncated·by·diffoscope;·len:·40,·SHA:·39f6b8b47216936a6251a972a3e72c0459df25c157b8b3990eefb48397aa8303·...·],
 81 ····&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;B&gt;,
82 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/itera[·...·truncated·by·diffoscope;·len:·323,·SHA:·b5c51f161dc9d77fd81d1fd23cc71fbf42ac00f3168cf9e41ebaaa2b6eb25363·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if82 ····B:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·tit[·...·truncated·by·diffoscope;·len:·227,·SHA:·91a843f71f5d4d4bdd2a6f526e4b1ace78ad1c1c0027ff429527a1e3cc1cbb42·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if
83 a·failure·is·encountered.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·ri[·...·truncated·by·diffoscope;·len:·521,·SHA:·6a54376815dab985ec8cc35604d035e98e3003b1563c9b41e70966084505542b·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where83 a·failure·is·encountered.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../../[·...·truncated·by·diffoscope;·len:·401,·SHA:·ed1d0660f20625c1d5231d569dd3e4f1d10332250dcd1a3f5d2e886618e67f5b·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
84 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,84 ····E:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
85 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·975,·SHA:·94f7f970236ba59ba5f1415764a0e3ab2f3093c6b79e76c25c797ac24a3c4d09·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where85 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_coll[·...·truncated·by·diffoscope;·len:·855,·SHA:·7b38a8c237aadc46d5211ff8698af580678e0cbcab757a66d6416b422880dd91·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
86 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,86 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
87 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·b480ec650ba000fe7cb67df58fc0351299638ee3e8f00db18f74ca24d69f9894·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,87 ····B:·<a·class="trait"·href="../../../core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="../../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associa[·...·truncated·by·diffoscope;·len:·23,·SHA:·4417dee5d41246c4acf5419e1bdac3c7d847bd34e3e87738a08734259a3b63da·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
88 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·fdf5a1845f070855ba2cfd0c8c85460ea5cb646c4d3b42a8431bf21489c73701·...·]/core/primitive.usize.html">usize</a><div·class="where">where88 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·827,·SHA:·0237b034801a953ed40ad7c10f9a80d682bdf0a649c6fde9f53efc254cd75fc0·...·]/core/primitive.usize.html">usize</a><div·class="where">where
89 ····T:·'a,89 ····T:·'a,
90 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·1fc250e258e9e42e4fa3e22f86ecd57057e9ff23e47af1aec778076a7a891134·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,90 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="../../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEnd[·...·truncated·by·diffoscope;·len:·60,·SHA:·036db50df43442a72ce04aef94ccf2727352aad0708d71fe0e34c23613b84765·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,
91 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·5846407374f20f525a4a0663ad4488141eafe64513ef82581dc5df5c2d200745·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_partition_in_place</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62543">#62543</a>)</span></div></span><div·class='docblock'>Reorders·the·elements·of·this·iterator·<em>in-place</em>·according·to·the·given·predicate,91 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="../../../core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_partition_in_place</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62543">#62543</a>)</span></div></span><div·class='docblock'>Reorders·the·elements·of·this·iterator·<em>in-place</em>·according·to·the·given·predicate,
92 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.92 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.
93 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.partition_in_place">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_partitioned"·class="method·trait-impl"><a·clas[·...·truncated·by·diffoscope;·len:·431,·SHA:·4aa7d028146c72d45794efc19a376d4bee3b75eda61ff46d969e440b3dbfa1b0·...·]/core/primitive.bool.html">bool</a><div·class="where">where93 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.partition_in_place">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_partitioned"·class="method·trait-impl"><a·class="src·rightside"·href="[·...·truncated·by·diffoscope;·len:·335,·SHA:·252e1c16199fc3c38bc7de8cbda8c9532ab6d581d449c680cd7daf8d61a74aeb·...·]/core/primitive.bool.html">bool</a><div·class="where">where
94 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,94 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
95 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·fcd03e71f79faad6d9b9a12045d59f4dfabc78e5aefebcabc9c1a5be45e31125·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,95 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·63,·SHA:·852041c2de8156fdddf9f71111c5ddf1a6b88aabd8c082f1a254f0b21c18ffa1·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,
96 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><span·class="righ[·...·truncated·by·diffoscope;·len:·319,·SHA:·9b9df13f2f4e5b4dde3908515766e1a474fa30bcb7edc98c15665a016e677c2a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where96 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><span·class="rightside"><span·class="sinc[·...·truncated·by·diffoscope;·len:·247,·SHA:·222a0145d03094cb0b20ca156583afe97e703828a8aa77e37fb7b4661759e2c7·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where
97 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,97 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
98 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,98 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
99 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns99 ····R:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns
100 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rights[·...·truncated·by·diffoscope;·len:·321,·SHA:·619fd774190944998148325de99aaa75de66ce4b7e26579fd342c564923a5652·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where100 successfully,·producing·a·single,·final·value.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"[·...·truncated·by·diffoscope;·len:·249,·SHA:·afbe9e91614278f09851b7c5920ddaf0907a2bf4c310ec39b40084e28959cc77·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where
101 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,101 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
102 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,102 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
103 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the103 ····R:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="../../../core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the
104 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·307,·SHA:·5975144fd8566efa93ad1ccec09297e280924b7372e08681d2103702124e2c52·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where104 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><span·class="rightside"><span·class="since"·tit[·...·truncated·by·diffoscope;·len:·235,·SHA:·da9aac17d9724df2aa434c2d10e1caa010eb4fd7e574e4da4e3d5b689e970097·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where
105 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,105 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
106 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,106 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,
107 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span[·...·truncated·by·diffoscope;·len:·619,·SHA:·8813f54846438870310d5f5dfabd2335a9dbf51e9da2e4cd681bcb6077d39628·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where107 returning·the·final·result.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="St[·...·truncated·by·diffoscope;·len:·499,·SHA:·ff97be2c630acbbbb397aa79317bd89b79955e6735d9da7aea9df48659f94fce·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
108 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,108 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
109 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·084691f7fc4e7f4da7db385127d0ce8d2d52f6740757129a65910c4db0dc180d·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing109 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·256,·SHA:·2fe8ae39f77649fea294c45979f427748b2a9938dfa70e4595ac661d972125b1·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing
110 operation.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·217,·SHA:·447ae00256be3de069c602a6c04889808c883eae6fa349d023f53bdd5570ecae·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(110 operation.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside"·href="../../../src/cor[·...·truncated·by·diffoscope;·len:·145,·SHA:·be4dc63adf8a4e832fd3dbaaabbf45f287388ea2bb17088d40589203a2ec6dfb·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(
111 ····&amp;mut·self,111 ····&amp;mut·self,
112 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·70b2b85cad045ac7addf647e0bd3cd5b2c9ebca5986613ad2b6a9c00e3a1132f·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,112 ····f:·impl·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·68,·SHA:·e7e11f257edcac749a5883ad9a3aa42e6e965be419f967b36caa7afd3b36d7c9·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
113 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·1823533b932e38e3200465d101f10a34421c005018974296350162e4049615ea·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where113 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</[·...·truncated·by·diffoscope;·len:·586,·SHA:·596f94ec7a4c06359aee56ccb8a7138a1ddb94415fafcecac1fc87434b1329a3·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
114 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,114 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
115 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,115 ····R:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
116 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·764ea8f08626b05426a76738d54ebb2d640042494d76cba8c20d868bfdc07a73·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the116 ····&lt;R·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</[·...·truncated·by·diffoscope;·len:·292,·SHA:·2ae73aa9b78f13099a8016e28a473713dcc755cf00fed8895c0c1b027bbcea01·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the
117 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><span·class="rightside"><s[·...·truncated·by·diffoscope;·len:·476,·SHA:·aef721c14147dea2fbec70dcfa76916b3f1273bed8304f4c9db310ca23d1e4b1·...·]/core/primitive.bool.html">bool</a><div·class="where">where117 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title=[·...·truncated·by·diffoscope;·len:·380,·SHA:·1042cdc03eabce3d330853b659f28b8566dd5841790f7f1303f3e326f05efab6·...·]/core/primitive.bool.html">bool</a><div·class="where">where
118 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,118 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
119 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·7c48e62c73a40a5cb5ebbf4a22cd789b342a88ad3d855022191f2bae33c736c6·...·]/core/primitive.bool.html">bool</a><div·class="where">where119 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·850,·SHA:·1b28d9cdfe3ba8dc7eac8cef1bb6549e78768b440ea492c70d80c8c07eae61cb·...·]/core/primitive.bool.html">bool</a><div·class="where">where
120 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,120 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
121 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·673d69ce0c23e24b2546127c463e67cd2a4c0f7be792712e2b42e75427161b75·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where121 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·980,·SHA:·a560c9e639c326a34f124b36f977291532e03ffae190e973674fee7e13b4c842·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
122 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,122 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
123 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·aa5078ff77f5638746395497f8ce92c1b684d342dea851990104d5e9981ab6b0·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where123 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·883,·SHA:·47fb849c20ee0cb36696a24bd285768bd0973774403ae956d2a517cd216452b1·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where
124 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,124 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
125 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·1bd732dff19021a1586bb486282683f5c1bc65d5d514f9e13cc9232b4e94955b·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;,</div></h4></section></summary><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns125 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·58,·SHA:·f6e1e279f463d2adecc4a9316aeab7af85329a84398e722f43ac130647fe78cf·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;,</div></h4></section></summary><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns
Max diff block lines reached; 153583/344440 bytes (44.59%) of diff not shown.
328 KB
./usr/share/doc/rust-doc/html/alloc/collections/btree_set/struct.Range.html
    
Offset 1, 235 lines modifiedOffset 1, 235 lines modified
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="An·iterator·over·a·sub-range·of·items·in·a·`BTreeSet`."><title>Range·in·alloc::collections::btree_set·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»       2025-01-07)»    (built»      from»  a» source»   tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Range</a></h2><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-Range%3C'_,+T%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-Range%3C'a,+T%3E"·title="Debug">Debug</a></li><li><a·href="#impl-Default-for-Range%3C'_,+T%3E"·title="Default">Default</a></li><li><a·href="#impl-DoubleEndedIterator-for-Range%3C'a,+T%3E"·title="DoubleEndedIterator">DoubleEndedIterator</a></li><li><a·href="#impl-FusedIterator-for-Range%3C'_,+T%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-Range%3C'a,+T%3E"·title="Iterator">Iterator</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-Range%3C'a,+T%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Range%3C'a,+T%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Range%3C'a,+T%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-Range%3C'a,+T%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-Range%3C'a,+T%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Range%3C'a,+T%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>collections::<wbr>btree_<wbr>set</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">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">btree_set</a></span><h1>Struct·<span·class="struct">Range</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/set.rs.html#165-167">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·Range&lt;'a,·T:·'a&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>An·iterator·over·a·sub-range·of·items·in·a·<code>BTreeSet</code>.</p>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="An·iterator·over·a·sub-range·of·items·in·a·`BTreeSet`."><title>Range·in·alloc::collections::btree_set·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»       2025-01-07)»    (built»      from»  a» source»   tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Range</a></h2><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-Range%3C'_,+T%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-Range%3C'a,+T%3E"·title="Debug">Debug</a></li><li><a·href="#impl-Default-for-Range%3C'_,+T%3E"·title="Default">Default</a></li><li><a·href="#impl-DoubleEndedIterator-for-Range%3C'a,+T%3E"·title="DoubleEndedIterator">DoubleEndedIterator</a></li><li><a·href="#impl-FusedIterator-for-Range%3C'_,+T%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-Range%3C'a,+T%3E"·title="Iterator">Iterator</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-Range%3C'a,+T%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Range%3C'a,+T%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Range%3C'a,+T%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-Range%3C'a,+T%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-Range%3C'a,+T%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Range%3C'a,+T%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>collections::<wbr>btree_<wbr>set</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">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">btree_set</a></span><h1>Struct·<span·class="struct">Range</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/set.rs.html#165-167">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·Range&lt;'a,·T:·'a&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>An·iterator·over·a·sub-range·of·items·in·a·<code>BTreeSet</code>.</p>
2 <p>This·<code>struct</code>·is·created·by·the·<a·href="struct.BTreeSet.html#method.range"·title="method·alloc::collections::btree_set::BTreeSet::range"><code>range</code></a>·method·on·<a·href="struct.BTreeSet.html"·title="struct·alloc::collections::btree_set::BTreeSet"><code>BTreeSet</code></a>.2 <p>This·<code>struct</code>·is·created·by·the·<a·href="struct.BTreeSet.html#method.range"·title="method·alloc::collections::btree_set::BTreeSet::range"><code>range</code></a>·method·on·<a·href="struct.BTreeSet.html"·title="struct·alloc::collections::btree_set::BTreeSet"><code>BTreeSet</code></a>.
3 See·its·documentation·for·more.</p>3 See·its·documentation·for·more.</p>
4 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-Range%3C'_,+T%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.17.0">1.17.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/set.rs.html#1743-1747">Source</a></span><a·href="#impl-Clone-for-Range%3C'_,+T%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struct"·href="struct.Range.html"·title="struct·alloc::collections::btree_set::Range">Range</a>&lt;'_,·T&gt;</h3></section></summary><div·[·...·truncated·by·diffoscope;·len:·3970,·SHA:·791121135f3b30a3e9f3f92d0570773ba2c0f3c5aee01327e76b66f21c1ee223·...·]/core/default/trait.Default.html#tymethod.default"·class="fn">default</a>()·-&gt;·Self</h4></section></summary><div·class="docblock"><p>Creates·an·empty·<code>btree_set::Range</code>.</p>4 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-Range%3C'_,+T%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.17.0">1.17.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/set.rs.html#1743-1747">Source</a></span><a·href="#impl-Clone-for-Range%3C'_,+T%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struct"·href="struct.Range.html"·title="struct·alloc::collections::btree_set::Range">Range</a>&lt;'_,·T&gt;</h3></section></summary><div·class="impl-items"><deta[·...·truncated·by·diffoscope;·len:·3778,·SHA:·1907280a699d4ebc30bdcb3feb8911582db0a834a76a5136636fde0cdd621417·...·]/core/default/trait.Default.html#tymethod.default"·class="fn">default</a>()·-&gt;·Self</h4></section></summary><div·class="docblock"><p>Creates·an·empty·<code>btree_set::Range</code>.</p>
  
5 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span>iter:·btree_set::Range&lt;<span·class="lifetime">'_</span>,·u8&gt;·=·Default::default();5 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span>iter:·btree_set::Range&lt;<span·class="lifetime">'_</span>,·u8&gt;·=·Default::default();
6 <span·class="macro">assert_eq!</span>(iter.count(),·<span·class="number">0</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::btree_set;%0A++++let+iter:+btree_set::Range%3C'_,+u8%3E+=+Default::default();%0A++++assert_eq!(iter.count(),+0);%0A%7D&amp;edition=2021"></a></div>6 <span·class="macro">assert_eq!</span>(iter.count(),·<span·class="number">0</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::btree_set;%0A++++let+iter:+btree_set::Range%3C'_,+u8%3E+=+Default::default();%0A++++assert_eq!(iter.count(),+0);%0A%7D&amp;edition=2021"></a></div>
7 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-DoubleEndedIterator-for-Range%3C'a,+T%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.17.0">1.17.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/set.rs.html#1777-1781">Source</a></span><a·href="#impl-DoubleEndedIterator-for-Range%3C'a,+T%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·T&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIterator</a>·for·<a·class="struct"·href="struct.Range.html"·title="struct·alloc::c[·...·truncated·by·diffoscope;·len:·4372,·SHA:·413c8cd3022da4c26ca373f89b817c06d3330a4c5859ec2fccf530ce857dd3c9·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold"·class="fn">try_rfold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where7 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-DoubleEndedIterator-for-Range%3C'a,+T%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.17.0">1.17.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/set.rs.html#1777-1781">Source</a></span><a·href="#impl-DoubleEndedIterator-for-Range%3C'a,+T%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·T&gt;·<a·class="trait"·href="../../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIterator</a>·for·<a·class="struct"·href="struct.Range.html"·title="struct·alloc::collections::btree_set::R[·...·truncated·by·diffoscope;·len:·3868,·SHA:·b511cb08f53a8ace056b0e3a11ca7b0fa078de3673215197f9d7162d317eea74·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold"·class="fn">try_rfold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where
8 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,8 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
9 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,9 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
10 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>This·is·the·reverse·version·of·<a·href="https://doc.rust-lang.org/1.8[·...·truncated·by·diffoscope;·len:·3,·SHA:·fbd04e1aae9ce0b11a8946e2c9ac2619f7428a64d32d01eff61d809dcb70ee8e·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·title="method·core::iter::traits::iterator::Iterator::try_fold"><code>Iterator::try_fold()</code></a>:·it·takes10 ····R:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>This·is·the·reverse·version·of·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·title="method·core::iter::traits::iterator::Iterator::try_fold"><code>Iterator::try_fold()</code></a>:·it·takes
11 elements·starting·from·the·back·of·the·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfold"·class="method·trait-impl"><span·clas[·...·truncated·by·diffoscope;·len:·325,·SHA:·7ffdb06a8ab3810207a1c974783822231eaf1d82fd94bcf810dd7b3181149b7b·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold"·class="fn">rfold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where11 elements·starting·from·the·back·of·the·iterator.·<a·href="../../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfold"·class="method·trait-impl"><span·class="rightside"><span·clas[·...·truncated·by·diffoscope;·len:·253,·SHA:·48421497f19ee93d3a7432833660cd659661b35b02b625c6376fc49660f200cf·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold"·class="fn">rfold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where
12 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,12 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
13 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·reduces·the·iterator’s·elements·to·a·single,13 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·reduces·the·iterator’s·elements·to·a·single,
14 final·value,·starting·from·the·back.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfind"·class="method·trait-impl"><span·class="r[·...·truncated·by·diffoscope;·len:·665,·SHA:·fde89feb7c0e70eefa34d688476ca36a70115bec8150dbf9b1a3c359f72dd28d·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where14 final·value,·starting·from·the·back.·<a·href="../../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfind"·class="method·trait-impl"><span·class="rightside"><span·class="s[·...·truncated·by·diffoscope;·len:·545,·SHA:·b420bc934fe1ddfd2fe0958678aa3aba1ce90383b1958958e47e13ae1b40fe25·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
15 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,15 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
16 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·4237,·SHA:·ecbb51b19eb5d6341c43f9f826f766f6e716f70b3b296e1503d4cd87ca54a6c4·...·]/core/primitive.reference.html">&amp;'a·T</a>&gt;<div·class="where">where16 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·3805,·SHA:·c279b06266bc531b1ac195c6c02d2f8b5c94b55b1b20862cd70e0a7f2947d1e6·...·]/core/primitive.reference.html">&amp;'a·T</a>&gt;<div·class="where">where
17 ····<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;'a·T</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,</div></h4></section></summary><div·class='docblock'>Return[·...·truncated·by·diffoscope;·len:·763,·SHA:·0557625157076881a3e26f581876df1312063658faa5be0424002f8a901f5a25·...·]/core/primitive.reference.html">&amp;'a·T</a>&gt;<div·class="where">where17 ····<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;'a·T</a>:·<a·class="trait"·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,</div></h4></section></summary><div·class='docblock'>Returns·the·minimum·element·of·an·iterator.·<a·href=".[·...·truncated·by·diffoscope;·len:·619,·SHA:·7cfaf61a28796b18e8b894b0ad40af91975492614960cd04271967520db0de28·...·]/core/primitive.reference.html">&amp;'a·T</a>&gt;<div·class="where">where
18 ····<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;'a·T</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,</div></h4></section></summary><div·class='docblock'>Return[·...·truncated·by·diffoscope;·len:·678,·SHA:·67dd0e6537972ed0cee7cce88e32170e329745fdc42db9ea5ceef2a173d5f33c·...·]/core/primitive.usize.html">usize</a>&gt;(18 ····<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;'a·T</a>:·<a·class="trait"·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,</div></h4></section></summary><div·class='docblock'>Returns·the·maximum·element·of·an·iterator.·<a·href=".[·...·truncated·by·diffoscope;·len:·534,·SHA:·cce08d06936eba7acfa96325f5e1dbf01a7d6eea71869e5dcb83da012c4019b0·...·]/core/primitive.usize.html">usize</a>&gt;(
19 ····&amp;mut·self,19 ····&amp;mut·self,
20 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·4f557a9b49151e0be8c52ffd68f1def4469c08164239dc8bef8df2040551c5ef·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where20 )·-&gt;·<a·class="enum"·href="../../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::It[·...·truncated·by·diffoscope;·len:·261,·SHA:·9b488006768a86d05b68f4e1888c750c736264a3a386f1310f1b7e8bfc7d2184·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where
21 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·2082,·SHA:·a83a032e1004fe4c3d3b7e56fd0b204c97eb443397e8e7afb9497dc56a12f3d1·...·]/core/primitive.usize.html">usize</a><div·class="where">where21 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_next[·...·truncated·by·diffoscope;·len:·1818,·SHA:·55a6fc77aaa82da99c864cbd69fd58796c0c24606122111be0ee4ba06dfb97cf·...·]/core/primitive.usize.html">usize</a><div·class="where">where
22 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·counting·the·number·of·iterations·and·returning·it.·<a·href="https://doc.[·...·truncated·by·diffoscope;·len:·3529,·SHA:·36685e4ebfba7d155142dce71eec5dabe5f32dacb8a458b62987f15496f31675·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where22 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·counting·the·number·of·iterations·and·returning·it.·<a·href="../../../core/iter/traits/iterator/t[·...·truncated·by·diffoscope;·len:·3049,·SHA:·36b73bdc1b7eb71bc2ee32534a58bc8374d5403ad0bacb5cbfb32bf6be47bb80·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where
23 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by23 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by
24 the·given·amount·at·each·iteration.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><sp[·...·truncated·by·diffoscope;·len:·842,·SHA:·945c4509a8daf2f8fbccc5c6e5089e225955911e03a3e411f047f96d52d16862·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where24 the·given·amount·at·each·iteration.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="[·...·truncated·by·diffoscope;·len:·698,·SHA:·035d2f4d2e6b01ddf0b424aa6fc3f5919c82f85f857cb9cfa0f54f8357058b90·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
25 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,25 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
26 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·3b5ce32f9d564c3aa7cf2adc7130e674758d0c0f4f1275b4c3b46a74aa802cb3·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where26 ····U:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·[·...·truncated·by·diffoscope;·len:·1137,·SHA:·7916ae3a9b5afad376aafc6d698165147d82613fe975f64423f2367a02a69f6a·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
27 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,27 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
28 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·[·...·truncated·by·diffoscope;·len:·868,·SHA:·abdbf27ccc84063c7040d8fa3da9d0bda5ee310a470ef576e15554aee4bd5d21·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where28 ····U:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·of·pairs.·<a·href="../..[·...·truncated·by·diffoscope;·len:·724,·SHA:·ba31078b5c50fbfc51e53bed6f70aaa6e7e320cfda19949035c71d9363c0d919·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where
29 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,29 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
30 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent30 ····Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent
31 items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="sr[·...·truncated·by·diffoscope;·len:·427,·SHA:·6e82ad4aad49c2165d869fe30d20a968580a973cdb3a7f4c77f49e16dd59393e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where31 items·of·the·original·iterator.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="src·rightside"·href="../..[·...·truncated·by·diffoscope;·len:·331,·SHA:·451e844c9bf5d6d78b9579516e4b9fafb3e84136eaa1c95bead4539370743d7d·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where
32 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,32 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
33 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>33 ····G:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>
34 between·adjacent·items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightsi[·...·truncated·by·diffoscope;·len:·471,·SHA:·ed10488b7b2ccc3e4cc84a9a57a9695a74c1c964962e8d753cbace12f3318a66·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where34 between·adjacent·items·of·the·original·iterator.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·[·...·truncated·by·diffoscope;·len:·375,·SHA:·7bbb71535f348e442b9de05a74f9180c9acec0636566fa2a19ab1dc83779aace·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where
35 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,35 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
36 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each36 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each
37 element.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><spa[·...·truncated·by·diffoscope;·len:·306,·SHA:·61c87c39b177830189b0e4c036d97c40d8b9649d76432c90afb88de59498e8b2·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where37 element.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="S[·...·truncated·by·diffoscope;·len:·234,·SHA:·55463e0fb539911d03265cbd8abb7248189471ea74954185ed77f245746805c2·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where
38 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,38 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
39 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·a65da32c5f5ef8335cb607d3b4ab3f8a25877bc2c2e8b44ca9d575caecd5c8a5·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where39 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·772,·SHA:·de07f629315c257cc96a89e82de6752f002f259b678391b79d5fb48e279e56d2·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where
40 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,40 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
41 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·6d69c85c69fa789be551ea42d95c33c237d12a04ef157f9ddaaead1177f7771e·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element41 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·68,·SHA:·67cf1e2a20410007c7dd6c47c91b1d386626c1bfac5c1116c374da7bbee00d51·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element
42 should·be·yielded.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·489,·SHA:·9bdc636899f4e4e5a26a3a21c9603f72b3fb972865d2f459c38b7e2ac8fed7f1·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where42 should·be·yielded.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·tit[·...·truncated·by·diffoscope;·len:·393,·SHA:·328d72714f754fb793753313f01b087a9fbb30b77a2bcd5749456e1f6fd72710·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where
43 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,43 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
44 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·46dbf841c7aecd3f06bd4c944af21650faeac98c46c515dcfe643302618b1ecd·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where44 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·884,·SHA:·e8a37e28a6bfcb2d58b9ffd389d339c3dece95c14840f28c980a7d7aedcc9a05·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where
45 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as45 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as
46 the·next·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside[·...·truncated·by·diffoscope;·len:·468,·SHA:·52f7ff7f264284c3acc4429ca34d057ded9afa2e3d9d6e07571e252db9a48977·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where46 the·next·value.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside"><span·class="since"·ti[·...·truncated·by·diffoscope;·len:·372,·SHA:·9c08a613d034f21b42b8d196073d0f4d61c81458378e40e77995533a8b460837·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where
47 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·c0180fefce4346b0b4089e5c642521d7716108241c0ce6ec3e910c7a2c7364b4·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods47 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="../../../core/iter/adapters/peekable/struct.Peekable.html#method.peek"·ti[·...·truncated·by·diffoscope;·len:·103,·SHA:·e3683d31746f50069ed604def6201840bce75bbc7c584fac6c3644292077ae8a·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods
48 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See48 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See
49 their·documentation·for·more·information.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightsid[·...·truncated·by·diffoscope;·len:·498,·SHA:·e4a68861585faec6a5032b3b69d6dfb0f2799b5f387a527d9a1365571ed02069·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where49 their·documentation·for·more·information.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightside"><span·class="since"·t[·...·truncated·by·diffoscope;·len:·402,·SHA:·bdba673560d208f968337eb74446ead60d6223b0ca9ec6fbfaeb1a995a7e8001·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where
50 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,50 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
51 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·93281c1f6402743fd61110c11cf676f0f67eddceda801b4eb35e5fe9f85870fd·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where51 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·1042,·SHA:·27d4a79658fb1c97b659bd2520bcebbf5cfcb8a42420a7ecfcbff6f3330fa5e1·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where
52 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,52 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
53 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·f1cdbb1ec64f98fabbe1d89c88b03824310926cd7eaa160953ce2452fc3abb77·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where53 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·890,·SHA:·c43533da7f54bfb6611594b3436645d4d1f8e5339d2d05bf2345e87628499759·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where
54 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,54 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
55 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·f94a0b2c1396b13b89aca7830197ebf19e2c0e5ba536a9cc25b325a481799510·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where55 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·971,·SHA:·1b31b9d1d5061d4ee982a30400139f1d7319412bdea39925e0cc1e8e7cf3d65a·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where
56 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="https://doc.rust-lang[·...·truncated·by·diffoscope;·len:·783,·SHA:·c14217b89e3292a50a09192a8857485891fc769f861e1d1fc4322d04295c86ef·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where56 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="../../../core/iter/traits/iterator/trait.Iter[·...·truncated·by·diffoscope;·len:·639,·SHA:·79c7f7eddc655d329424f08baee8551b7f59cd4dc4b0d6984c5e4f241bcb949b·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where
57 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer57 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer
58 if·the·underlying·iterator·ends·sooner.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·c[·...·truncated·by·diffoscope;·len:·488,·SHA:·76f753d5a273a09a73127631acaa0ee947326a929f33be291018188793e1af56·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where58 if·the·underlying·iterator·ends·sooner.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stab[·...·truncated·by·diffoscope;·len:·392,·SHA:·50ac976eb8bf89726a483af064d5a70c100dedd17d46dc40ac3a82aba51b2082·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where
59 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,59 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
60 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·07d303586c8ad4e0082d5b44bff8eeda03cdb8f4bdbe46489f9232bca5a43ec6·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but60 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/tra[·...·truncated·by·diffoscope;·len:·329,·SHA:·14fc5ef1359fcb2171e21ba65c5f5d8ce11053860ba1d5aa32ddce90a48c2a8c·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but
61 unlike·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·2b20882d9583cee50e0c8b3cf362b27ce0d524db387d4aa4093d622b9370dada·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where61 unlike·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.scan">Rea[·...·truncated·by·diffoscope;·len:·570,·SHA:·3cdbe78e481f63f4d21b2fa94202dad167221af9d6e6f981ccd7a6e524f6157d·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where
62 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,62 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
63 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,63 ····U:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
64 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·933,·SHA:·4af94b75ba5c1e03d2d70590d2fd0706f13b3080fbff0f5b98e7b109048c403d·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where64 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·789,·SHA:·0e36f9aa81931958e65acc9e1b5bf6ad7367dcb7163dcf0af2a043314857a909·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where
65 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,65 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
66 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.I[·...·truncated·by·diffoscope;·len:·968,·SHA:·e5572ed2f3bdf5970d038da608f2f592d945541207c483c257fe5789efba168a·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where66 ····Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::trait[·...·truncated·by·diffoscope;·len:·800,·SHA:·3ea01df21dfaf9ee656fdee6aa789a6ce5be05d17c043433c5ab28da8f6d3241·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where
67 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,67 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
68 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·3013c0e49b0dade37f8ca096eccc5ceeb03fc79b9d320a4c92486d23b88d1009·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over68 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator[·...·truncated·by·diffoscope;·len:·63,·SHA:·8395b60c01b0cde6c3340bd4e6c57cddd02465a19dcf15a8aa5498bd6c8ddc11·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over
69 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,69 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="../../../core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,
70 the·windows·during·mapping·overlap·as·well.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside">[·...·truncated·by·diffoscope;·len:·454,·SHA:·040991f3914479bcc92615de2b81df7363656323622e5aadc964e1a61917d23e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where70 the·windows·during·mapping·overlap·as·well.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside"><span·class="since"·titl[·...·truncated·by·diffoscope;·len:·358,·SHA:·21db4436f04b3d09e41f294c30cd7dea235a4beb9af727cb1f1f065008ad732e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where
71 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="https://doc.rust-lang.org/1.84.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·0e0294a45242d5ce9a3ab8f95d6d410756415291d92baa7d12283ef1b3ecc3a0·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where71 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="../../../core/option/enum.Option.html#variant.None"·title="varia[·...·truncated·by·diffoscope;·len:·697,·SHA:·55b16240a265fa2f73963114b9def4c5703a60d1c3ce047915fff28502588e5b·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where
72 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,72 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
73 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·a8b562f71802a421f4745f7d1fadf4f70d98030c829e70f27b692e7915267027·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where73 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·650,·SHA:·eb862563a2da6881a0f9a31dac8f99f2b47b2c8d3033a0e1bc9ec49ae5500941·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where
74 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="https://doc.rust-lang.org/1.84.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·b3db7d84f203bbc139b1c52912705d19c664dac762898205fce452c9dc3a5318·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where74 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.by[·...·truncated·by·diffoscope;·len:·427,·SHA:·d439202f1a598c30b789e20f3d05a82f531349aa12f3af08cc5c230996ec01a9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where
75 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,75 ····B:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
76 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·431,·SHA:·a705a23f6d810357e7dcac670743884665ffcccfb9b780d0aa03720be8ca5625·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(76 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.collect[·...·truncated·by·diffoscope;·len:·335,·SHA:·d72a986b5d306b2e1ed99e18a16e26fa1b5380448fea76ac3db703052800b629·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(
77 ····&amp;mut·self,77 ····&amp;mut·self,
78 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.h[·...·truncated·by·diffoscope;·len:·479,·SHA:·fa749442d890055f86ceb34f411c84fd7ea08302b336d786d1ca36fe5868b020·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where78 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try[·...·truncated·by·diffoscope;·len:·359,·SHA:·886ccc2fbd37f1e7df4075b80b0bebd3d1a6e997fae2114ca1818fa30fa95d5a·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
79 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,79 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
80 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>, 
81 ····&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang[·...·truncated·by·diffoscope;·len:·449,·SHA:·9ddccfb7bdd27ea692d65fa83daf56e31762d1bec3a502234174b8fa4fb33a98·...·],80 ····Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="[·...·truncated·by·diffoscope;·len:·40,·SHA:·39f6b8b47216936a6251a972a3e72c0459df25c157b8b3990eefb48397aa8303·...·],
 81 ····&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;B&gt;,
82 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/itera[·...·truncated·by·diffoscope;·len:·323,·SHA:·b5c51f161dc9d77fd81d1fd23cc71fbf42ac00f3168cf9e41ebaaa2b6eb25363·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if82 ····B:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·tit[·...·truncated·by·diffoscope;·len:·227,·SHA:·91a843f71f5d4d4bdd2a6f526e4b1ace78ad1c1c0027ff429527a1e3cc1cbb42·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if
83 a·failure·is·encountered.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·ri[·...·truncated·by·diffoscope;·len:·521,·SHA:·6a54376815dab985ec8cc35604d035e98e3003b1563c9b41e70966084505542b·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where83 a·failure·is·encountered.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../../[·...·truncated·by·diffoscope;·len:·401,·SHA:·ed1d0660f20625c1d5231d569dd3e4f1d10332250dcd1a3f5d2e886618e67f5b·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
84 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,84 ····E:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
85 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·975,·SHA:·94f7f970236ba59ba5f1415764a0e3ab2f3093c6b79e76c25c797ac24a3c4d09·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where85 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_coll[·...·truncated·by·diffoscope;·len:·855,·SHA:·7b38a8c237aadc46d5211ff8698af580678e0cbcab757a66d6416b422880dd91·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
86 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,86 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
87 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·b480ec650ba000fe7cb67df58fc0351299638ee3e8f00db18f74ca24d69f9894·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,87 ····B:·<a·class="trait"·href="../../../core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="../../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associa[·...·truncated·by·diffoscope;·len:·23,·SHA:·4417dee5d41246c4acf5419e1bdac3c7d847bd34e3e87738a08734259a3b63da·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
88 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·fdf5a1845f070855ba2cfd0c8c85460ea5cb646c4d3b42a8431bf21489c73701·...·]/core/primitive.usize.html">usize</a><div·class="where">where88 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·827,·SHA:·0237b034801a953ed40ad7c10f9a80d682bdf0a649c6fde9f53efc254cd75fc0·...·]/core/primitive.usize.html">usize</a><div·class="where">where
89 ····T:·'a,89 ····T:·'a,
90 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·1fc250e258e9e42e4fa3e22f86ecd57057e9ff23e47af1aec778076a7a891134·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,90 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="../../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEnd[·...·truncated·by·diffoscope;·len:·60,·SHA:·036db50df43442a72ce04aef94ccf2727352aad0708d71fe0e34c23613b84765·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,
91 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·5846407374f20f525a4a0663ad4488141eafe64513ef82581dc5df5c2d200745·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_partition_in_place</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62543">#62543</a>)</span></div></span><div·class='docblock'>Reorders·the·elements·of·this·iterator·<em>in-place</em>·according·to·the·given·predicate,91 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="../../../core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_partition_in_place</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62543">#62543</a>)</span></div></span><div·class='docblock'>Reorders·the·elements·of·this·iterator·<em>in-place</em>·according·to·the·given·predicate,
92 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.92 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.
93 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.partition_in_place">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_partitioned"·class="method·trait-impl"><a·clas[·...·truncated·by·diffoscope;·len:·431,·SHA:·4aa7d028146c72d45794efc19a376d4bee3b75eda61ff46d969e440b3dbfa1b0·...·]/core/primitive.bool.html">bool</a><div·class="where">where93 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.partition_in_place">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_partitioned"·class="method·trait-impl"><a·class="src·rightside"·href="[·...·truncated·by·diffoscope;·len:·335,·SHA:·252e1c16199fc3c38bc7de8cbda8c9532ab6d581d449c680cd7daf8d61a74aeb·...·]/core/primitive.bool.html">bool</a><div·class="where">where
94 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,94 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
95 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·fcd03e71f79faad6d9b9a12045d59f4dfabc78e5aefebcabc9c1a5be45e31125·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,95 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·63,·SHA:·852041c2de8156fdddf9f71111c5ddf1a6b88aabd8c082f1a254f0b21c18ffa1·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,
96 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><span·class="righ[·...·truncated·by·diffoscope;·len:·319,·SHA:·9b9df13f2f4e5b4dde3908515766e1a474fa30bcb7edc98c15665a016e677c2a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where96 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><span·class="rightside"><span·class="sinc[·...·truncated·by·diffoscope;·len:·247,·SHA:·222a0145d03094cb0b20ca156583afe97e703828a8aa77e37fb7b4661759e2c7·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where
97 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,97 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
98 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,98 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
99 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns99 ····R:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns
100 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rights[·...·truncated·by·diffoscope;·len:·321,·SHA:·619fd774190944998148325de99aaa75de66ce4b7e26579fd342c564923a5652·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where100 successfully,·producing·a·single,·final·value.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"[·...·truncated·by·diffoscope;·len:·249,·SHA:·afbe9e91614278f09851b7c5920ddaf0907a2bf4c310ec39b40084e28959cc77·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where
101 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,101 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
102 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,102 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
103 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the103 ····R:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="../../../core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the
104 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·307,·SHA:·5975144fd8566efa93ad1ccec09297e280924b7372e08681d2103702124e2c52·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where104 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><span·class="rightside"><span·class="since"·tit[·...·truncated·by·diffoscope;·len:·235,·SHA:·da9aac17d9724df2aa434c2d10e1caa010eb4fd7e574e4da4e3d5b689e970097·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where
105 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,105 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
106 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,106 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,
107 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span[·...·truncated·by·diffoscope;·len:·619,·SHA:·8813f54846438870310d5f5dfabd2335a9dbf51e9da2e4cd681bcb6077d39628·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where107 returning·the·final·result.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="St[·...·truncated·by·diffoscope;·len:·499,·SHA:·ff97be2c630acbbbb397aa79317bd89b79955e6735d9da7aea9df48659f94fce·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
108 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,108 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
109 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·084691f7fc4e7f4da7db385127d0ce8d2d52f6740757129a65910c4db0dc180d·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing109 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·256,·SHA:·2fe8ae39f77649fea294c45979f427748b2a9938dfa70e4595ac661d972125b1·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing
110 operation.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·217,·SHA:·447ae00256be3de069c602a6c04889808c883eae6fa349d023f53bdd5570ecae·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(110 operation.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside"·href="../../../src/cor[·...·truncated·by·diffoscope;·len:·145,·SHA:·be4dc63adf8a4e832fd3dbaaabbf45f287388ea2bb17088d40589203a2ec6dfb·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(
111 ····&amp;mut·self,111 ····&amp;mut·self,
112 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·70b2b85cad045ac7addf647e0bd3cd5b2c9ebca5986613ad2b6a9c00e3a1132f·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,112 ····f:·impl·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·68,·SHA:·e7e11f257edcac749a5883ad9a3aa42e6e965be419f967b36caa7afd3b36d7c9·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
113 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·1823533b932e38e3200465d101f10a34421c005018974296350162e4049615ea·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where113 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</[·...·truncated·by·diffoscope;·len:·586,·SHA:·596f94ec7a4c06359aee56ccb8a7138a1ddb94415fafcecac1fc87434b1329a3·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
114 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,114 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
115 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,115 ····R:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
116 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·764ea8f08626b05426a76738d54ebb2d640042494d76cba8c20d868bfdc07a73·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the116 ····&lt;R·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</[·...·truncated·by·diffoscope;·len:·292,·SHA:·2ae73aa9b78f13099a8016e28a473713dcc755cf00fed8895c0c1b027bbcea01·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the
117 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><span·class="rightside"><s[·...·truncated·by·diffoscope;·len:·476,·SHA:·aef721c14147dea2fbec70dcfa76916b3f1273bed8304f4c9db310ca23d1e4b1·...·]/core/primitive.bool.html">bool</a><div·class="where">where117 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title=[·...·truncated·by·diffoscope;·len:·380,·SHA:·1042cdc03eabce3d330853b659f28b8566dd5841790f7f1303f3e326f05efab6·...·]/core/primitive.bool.html">bool</a><div·class="where">where
118 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,118 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
119 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·7c48e62c73a40a5cb5ebbf4a22cd789b342a88ad3d855022191f2bae33c736c6·...·]/core/primitive.bool.html">bool</a><div·class="where">where119 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·850,·SHA:·1b28d9cdfe3ba8dc7eac8cef1bb6549e78768b440ea492c70d80c8c07eae61cb·...·]/core/primitive.bool.html">bool</a><div·class="where">where
120 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,120 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
121 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·673d69ce0c23e24b2546127c463e67cd2a4c0f7be792712e2b42e75427161b75·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where121 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·980,·SHA:·a560c9e639c326a34f124b36f977291532e03ffae190e973674fee7e13b4c842·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
122 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,122 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
123 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·aa5078ff77f5638746395497f8ce92c1b684d342dea851990104d5e9981ab6b0·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where123 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·883,·SHA:·47fb849c20ee0cb36696a24bd285768bd0973774403ae956d2a517cd216452b1·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where
124 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,124 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
125 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·1bd732dff19021a1586bb486282683f5c1bc65d5d514f9e13cc9232b4e94955b·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;,</div></h4></section></summary><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns125 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·58,·SHA:·f6e1e279f463d2adecc4a9316aeab7af85329a84398e722f43ac130647fe78cf·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;,</div></h4></section></summary><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns
Max diff block lines reached; 149687/335691 bytes (44.59%) of diff not shown.
303 KB
./usr/share/doc/rust-doc/html/alloc/collections/btree_set/struct.SymmetricDifference.html
    
Offset 1, 217 lines modifiedOffset 1, 217 lines modified
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="A·lazy·iterator·producing·elements·in·the·symmetric·difference·of·`BTreeSet`s."><title>SymmetricDifference·in·alloc::collections::btree_set·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»  2025-01-07)»       (built» from»     a»    source»      tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Symmetric<wbr>Difference</a></h2><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-SymmetricDifference%3C'_,+T%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-SymmetricDifference%3C'_,+T%3E"·title="Debug">Debug</a></li><li><a·href="#impl-FusedIterator-for-SymmetricDifference%3C'_,+T%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-SymmetricDifference%3C'a,+T%3E"·title="Iterator">Iterator</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-SymmetricDifference%3C'a,+T%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-SymmetricDifference%3C'a,+T%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-SymmetricDifference%3C'a,+T%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-SymmetricDifference%3C'a,+T%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-SymmetricDifference%3C'a,+T%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-SymmetricDifference%3C'a,+T%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>collections::<wbr>btree_<wbr>set</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">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">btree_set</a></span><h1>Struct·<span·class="struct">SymmetricDifference</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/set.rs.html#234">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·SymmetricDifference&lt;'a,·T:·'a&gt;(<span·class="comment">/*·private·fields·*/</span>);</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>A·lazy·iterator·producing·elements·in·the·symmetric·difference·of·<code>BTreeSet</code>s.</p>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="A·lazy·iterator·producing·elements·in·the·symmetric·difference·of·`BTreeSet`s."><title>SymmetricDifference·in·alloc::collections::btree_set·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»  2025-01-07)»       (built» from»     a»    source»      tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Symmetric<wbr>Difference</a></h2><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-SymmetricDifference%3C'_,+T%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-SymmetricDifference%3C'_,+T%3E"·title="Debug">Debug</a></li><li><a·href="#impl-FusedIterator-for-SymmetricDifference%3C'_,+T%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-SymmetricDifference%3C'a,+T%3E"·title="Iterator">Iterator</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-SymmetricDifference%3C'a,+T%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-SymmetricDifference%3C'a,+T%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-SymmetricDifference%3C'a,+T%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-SymmetricDifference%3C'a,+T%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-SymmetricDifference%3C'a,+T%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-SymmetricDifference%3C'a,+T%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>collections::<wbr>btree_<wbr>set</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">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">btree_set</a></span><h1>Struct·<span·class="struct">SymmetricDifference</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/set.rs.html#234">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·SymmetricDifference&lt;'a,·T:·'a&gt;(<span·class="comment">/*·private·fields·*/</span>);</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>A·lazy·iterator·producing·elements·in·the·symmetric·difference·of·<code>BTreeSet</code>s.</p>
2 <p>This·<code>struct</code>·is·created·by·the·<a·href="struct.BTreeSet.html#method.symmetric_difference"·title="method·alloc::collections::btree_set::BTreeSet::symmetric_difference"><code>symmetric_difference</code></a>·method·on2 <p>This·<code>struct</code>·is·created·by·the·<a·href="struct.BTreeSet.html#method.symmetric_difference"·title="method·alloc::collections::btree_set::BTreeSet::symmetric_difference"><code>symmetric_difference</code></a>·method·on
3 <a·href="struct.BTreeSet.html"·title="struct·alloc::collections::btree_set::BTreeSet"><code>BTreeSet</code></a>.·See·its·documentation·for·more.</p>3 <a·href="struct.BTreeSet.html"·title="struct·alloc::collections::btree_set::BTreeSet"><code>BTreeSet</code></a>.·See·its·documentation·for·more.</p>
4 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-SymmetricDifference%3C'_,+T%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/set.rs.html#1868-1872">Source</a></span><a·href="#impl-Clone-for-SymmetricDifference%3C'_,+T%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struct"·href="struct.SymmetricDifference.html"·title="struct·alloc::collections::btree_set::SymmetricDifference">SymmetricDifference</a>&[·...·truncated·by·diffoscope;·len:·7893,·SHA:·b8cf008a44e42b85afa00c73877b6b362a527c30722912a757a20b8ab06c3613·...·]/core/primitive.usize.html">usize</a>&gt;(4 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-SymmetricDifference%3C'_,+T%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/set.rs.html#1868-1872">Source</a></span><a·href="#impl-Clone-for-SymmetricDifference%3C'_,+T%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struct"·href="struct.SymmetricDifference.html"·title="struct·alloc::collections::btree_set::SymmetricDifference">SymmetricDifference</a>&lt;'_,·T&gt;</h3></secti[·...·truncated·by·diffoscope;·len:·7269,·SHA:·fdab6e254ecef242376927b6a092ea3382a8b0f45f9013ba2f9e6bef5c82343e·...·]/core/primitive.usize.html">usize</a>&gt;(
5 ····&amp;mut·self,5 ····&amp;mut·self,
6 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·4f557a9b49151e0be8c52ffd68f1def4469c08164239dc8bef8df2040551c5ef·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where6 )·-&gt;·<a·class="enum"·href="../../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::It[·...·truncated·by·diffoscope;·len:·261,·SHA:·9b488006768a86d05b68f4e1888c750c736264a3a386f1310f1b7e8bfc7d2184·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where
7 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·962,·SHA:·116e4ec2ae3d9655c3d115eaf50f435f5323b4e48b84de734c79d2a09b3c02f2·...·]/core/primitive.usize.html">usize</a><div·class="where">where7 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_next[·...·truncated·by·diffoscope;·len:·842,·SHA:·d8f387888e3ee78f4397f4b1a12eae734e055247e3aa3251433ab8ac1019b31a·...·]/core/primitive.usize.html">usize</a><div·class="where">where
8 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·counting·the·number·of·iterations·and·returning·it.·<a·href="https://doc.[·...·truncated·by·diffoscope;·len:·837,·SHA:·47e25b6f9687bcc1d1fcdf9842fb085e6aba767d70531028f948636b80563dfc·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where8 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·counting·the·number·of·iterations·and·returning·it.·<a·href="../../../core/iter/traits/iterator/t[·...·truncated·by·diffoscope;·len:·693,·SHA:·725f42ff290538a513ec93cf7284210e1c519a4cc200b6d5878e7ccff2777059·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
9 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·returning·the·last·element.·<a·href="https://doc.rust-lang.org/1.84.0/cor[·...·truncated·by·diffoscope;·len:·3504,·SHA:·ec43d0f6d8d2a1e0fb7a684c382b9934abe1250844e53cce08bdfc6017ecb276·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where9 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·returning·the·last·element.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#metho[·...·truncated·by·diffoscope;·len:·3024,·SHA:·33e764ec8aa4ce60da61c340591349678c8144088b1440d0c5d8b7b28ba27fc9·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where
10 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by10 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by
11 the·given·amount·at·each·iteration.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><sp[·...·truncated·by·diffoscope;·len:·842,·SHA:·945c4509a8daf2f8fbccc5c6e5089e225955911e03a3e411f047f96d52d16862·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where11 the·given·amount·at·each·iteration.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="[·...·truncated·by·diffoscope;·len:·698,·SHA:·035d2f4d2e6b01ddf0b424aa6fc3f5919c82f85f857cb9cfa0f54f8357058b90·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
12 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,12 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
13 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·3b5ce32f9d564c3aa7cf2adc7130e674758d0c0f4f1275b4c3b46a74aa802cb3·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where13 ····U:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·[·...·truncated·by·diffoscope;·len:·1137,·SHA:·7916ae3a9b5afad376aafc6d698165147d82613fe975f64423f2367a02a69f6a·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
14 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,14 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
15 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·[·...·truncated·by·diffoscope;·len:·868,·SHA:·abdbf27ccc84063c7040d8fa3da9d0bda5ee310a470ef576e15554aee4bd5d21·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where15 ····U:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·of·pairs.·<a·href="../..[·...·truncated·by·diffoscope;·len:·724,·SHA:·ba31078b5c50fbfc51e53bed6f70aaa6e7e320cfda19949035c71d9363c0d919·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where
16 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,16 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
17 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent17 ····Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent
18 items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="sr[·...·truncated·by·diffoscope;·len:·427,·SHA:·6e82ad4aad49c2165d869fe30d20a968580a973cdb3a7f4c77f49e16dd59393e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where18 items·of·the·original·iterator.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="src·rightside"·href="../..[·...·truncated·by·diffoscope;·len:·331,·SHA:·451e844c9bf5d6d78b9579516e4b9fafb3e84136eaa1c95bead4539370743d7d·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where
19 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,19 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
20 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>20 ····G:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>
21 between·adjacent·items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightsi[·...·truncated·by·diffoscope;·len:·471,·SHA:·ed10488b7b2ccc3e4cc84a9a57a9695a74c1c964962e8d753cbace12f3318a66·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where21 between·adjacent·items·of·the·original·iterator.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·[·...·truncated·by·diffoscope;·len:·375,·SHA:·7bbb71535f348e442b9de05a74f9180c9acec0636566fa2a19ab1dc83779aace·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where
22 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,22 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
23 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each23 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each
24 element.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><spa[·...·truncated·by·diffoscope;·len:·306,·SHA:·61c87c39b177830189b0e4c036d97c40d8b9649d76432c90afb88de59498e8b2·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where24 element.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="S[·...·truncated·by·diffoscope;·len:·234,·SHA:·55463e0fb539911d03265cbd8abb7248189471ea74954185ed77f245746805c2·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where
25 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,25 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
26 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·a65da32c5f5ef8335cb607d3b4ab3f8a25877bc2c2e8b44ca9d575caecd5c8a5·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where26 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·772,·SHA:·de07f629315c257cc96a89e82de6752f002f259b678391b79d5fb48e279e56d2·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where
27 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,27 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
28 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·6d69c85c69fa789be551ea42d95c33c237d12a04ef157f9ddaaead1177f7771e·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element28 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·68,·SHA:·67cf1e2a20410007c7dd6c47c91b1d386626c1bfac5c1116c374da7bbee00d51·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element
29 should·be·yielded.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·489,·SHA:·9bdc636899f4e4e5a26a3a21c9603f72b3fb972865d2f459c38b7e2ac8fed7f1·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where29 should·be·yielded.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·tit[·...·truncated·by·diffoscope;·len:·393,·SHA:·328d72714f754fb793753313f01b087a9fbb30b77a2bcd5749456e1f6fd72710·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where
30 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,30 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
31 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·46dbf841c7aecd3f06bd4c944af21650faeac98c46c515dcfe643302618b1ecd·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where31 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·884,·SHA:·e8a37e28a6bfcb2d58b9ffd389d339c3dece95c14840f28c980a7d7aedcc9a05·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where
32 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as32 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as
33 the·next·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside[·...·truncated·by·diffoscope;·len:·468,·SHA:·52f7ff7f264284c3acc4429ca34d057ded9afa2e3d9d6e07571e252db9a48977·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where33 the·next·value.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside"><span·class="since"·ti[·...·truncated·by·diffoscope;·len:·372,·SHA:·9c08a613d034f21b42b8d196073d0f4d61c81458378e40e77995533a8b460837·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where
34 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·c0180fefce4346b0b4089e5c642521d7716108241c0ce6ec3e910c7a2c7364b4·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods34 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="../../../core/iter/adapters/peekable/struct.Peekable.html#method.peek"·ti[·...·truncated·by·diffoscope;·len:·103,·SHA:·e3683d31746f50069ed604def6201840bce75bbc7c584fac6c3644292077ae8a·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods
35 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See35 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See
36 their·documentation·for·more·information.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightsid[·...·truncated·by·diffoscope;·len:·498,·SHA:·e4a68861585faec6a5032b3b69d6dfb0f2799b5f387a527d9a1365571ed02069·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where36 their·documentation·for·more·information.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightside"><span·class="since"·t[·...·truncated·by·diffoscope;·len:·402,·SHA:·bdba673560d208f968337eb74446ead60d6223b0ca9ec6fbfaeb1a995a7e8001·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where
37 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,37 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
38 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·93281c1f6402743fd61110c11cf676f0f67eddceda801b4eb35e5fe9f85870fd·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where38 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·1042,·SHA:·27d4a79658fb1c97b659bd2520bcebbf5cfcb8a42420a7ecfcbff6f3330fa5e1·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where
39 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,39 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
40 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·f1cdbb1ec64f98fabbe1d89c88b03824310926cd7eaa160953ce2452fc3abb77·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where40 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·890,·SHA:·c43533da7f54bfb6611594b3436645d4d1f8e5339d2d05bf2345e87628499759·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where
41 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,41 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
42 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·f94a0b2c1396b13b89aca7830197ebf19e2c0e5ba536a9cc25b325a481799510·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where42 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·971,·SHA:·1b31b9d1d5061d4ee982a30400139f1d7319412bdea39925e0cc1e8e7cf3d65a·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where
43 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="https://doc.rust-lang[·...·truncated·by·diffoscope;·len:·783,·SHA:·c14217b89e3292a50a09192a8857485891fc769f861e1d1fc4322d04295c86ef·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where43 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="../../../core/iter/traits/iterator/trait.Iter[·...·truncated·by·diffoscope;·len:·639,·SHA:·79c7f7eddc655d329424f08baee8551b7f59cd4dc4b0d6984c5e4f241bcb949b·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where
44 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer44 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer
45 if·the·underlying·iterator·ends·sooner.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·c[·...·truncated·by·diffoscope;·len:·488,·SHA:·76f753d5a273a09a73127631acaa0ee947326a929f33be291018188793e1af56·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where45 if·the·underlying·iterator·ends·sooner.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stab[·...·truncated·by·diffoscope;·len:·392,·SHA:·50ac976eb8bf89726a483af064d5a70c100dedd17d46dc40ac3a82aba51b2082·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where
46 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,46 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
47 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·07d303586c8ad4e0082d5b44bff8eeda03cdb8f4bdbe46489f9232bca5a43ec6·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but47 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/tra[·...·truncated·by·diffoscope;·len:·329,·SHA:·14fc5ef1359fcb2171e21ba65c5f5d8ce11053860ba1d5aa32ddce90a48c2a8c·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but
48 unlike·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·2b20882d9583cee50e0c8b3cf362b27ce0d524db387d4aa4093d622b9370dada·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where48 unlike·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.scan">Rea[·...·truncated·by·diffoscope;·len:·570,·SHA:·3cdbe78e481f63f4d21b2fa94202dad167221af9d6e6f981ccd7a6e524f6157d·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where
49 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,49 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
50 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,50 ····U:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
51 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·933,·SHA:·4af94b75ba5c1e03d2d70590d2fd0706f13b3080fbff0f5b98e7b109048c403d·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where51 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·789,·SHA:·0e36f9aa81931958e65acc9e1b5bf6ad7367dcb7163dcf0af2a043314857a909·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where
52 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,52 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
53 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.I[·...·truncated·by·diffoscope;·len:·968,·SHA:·e5572ed2f3bdf5970d038da608f2f592d945541207c483c257fe5789efba168a·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where53 ····Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::trait[·...·truncated·by·diffoscope;·len:·800,·SHA:·3ea01df21dfaf9ee656fdee6aa789a6ce5be05d17c043433c5ab28da8f6d3241·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where
54 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,54 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
55 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·3013c0e49b0dade37f8ca096eccc5ceeb03fc79b9d320a4c92486d23b88d1009·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over55 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator[·...·truncated·by·diffoscope;·len:·63,·SHA:·8395b60c01b0cde6c3340bd4e6c57cddd02465a19dcf15a8aa5498bd6c8ddc11·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over
56 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,56 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="../../../core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,
57 the·windows·during·mapping·overlap·as·well.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside">[·...·truncated·by·diffoscope;·len:·454,·SHA:·040991f3914479bcc92615de2b81df7363656323622e5aadc964e1a61917d23e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where57 the·windows·during·mapping·overlap·as·well.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside"><span·class="since"·titl[·...·truncated·by·diffoscope;·len:·358,·SHA:·21db4436f04b3d09e41f294c30cd7dea235a4beb9af727cb1f1f065008ad732e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where
58 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="https://doc.rust-lang.org/1.84.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·0e0294a45242d5ce9a3ab8f95d6d410756415291d92baa7d12283ef1b3ecc3a0·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where58 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="../../../core/option/enum.Option.html#variant.None"·title="varia[·...·truncated·by·diffoscope;·len:·697,·SHA:·55b16240a265fa2f73963114b9def4c5703a60d1c3ce047915fff28502588e5b·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where
59 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,59 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
60 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·a8b562f71802a421f4745f7d1fadf4f70d98030c829e70f27b692e7915267027·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where60 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·650,·SHA:·eb862563a2da6881a0f9a31dac8f99f2b47b2c8d3033a0e1bc9ec49ae5500941·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where
61 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="https://doc.rust-lang.org/1.84.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·b3db7d84f203bbc139b1c52912705d19c664dac762898205fce452c9dc3a5318·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where61 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.by[·...·truncated·by·diffoscope;·len:·427,·SHA:·d439202f1a598c30b789e20f3d05a82f531349aa12f3af08cc5c230996ec01a9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where
62 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,62 ····B:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
63 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·431,·SHA:·a705a23f6d810357e7dcac670743884665ffcccfb9b780d0aa03720be8ca5625·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(63 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.collect[·...·truncated·by·diffoscope;·len:·335,·SHA:·d72a986b5d306b2e1ed99e18a16e26fa1b5380448fea76ac3db703052800b629·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(
64 ····&amp;mut·self,64 ····&amp;mut·self,
65 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.h[·...·truncated·by·diffoscope;·len:·479,·SHA:·fa749442d890055f86ceb34f411c84fd7ea08302b336d786d1ca36fe5868b020·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where65 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try[·...·truncated·by·diffoscope;·len:·359,·SHA:·886ccc2fbd37f1e7df4075b80b0bebd3d1a6e997fae2114ca1818fa30fa95d5a·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
66 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,66 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
67 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>, 
68 ····&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang[·...·truncated·by·diffoscope;·len:·449,·SHA:·9ddccfb7bdd27ea692d65fa83daf56e31762d1bec3a502234174b8fa4fb33a98·...·],67 ····Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="[·...·truncated·by·diffoscope;·len:·40,·SHA:·39f6b8b47216936a6251a972a3e72c0459df25c157b8b3990eefb48397aa8303·...·],
 68 ····&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;B&gt;,
69 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/itera[·...·truncated·by·diffoscope;·len:·323,·SHA:·b5c51f161dc9d77fd81d1fd23cc71fbf42ac00f3168cf9e41ebaaa2b6eb25363·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if69 ····B:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·tit[·...·truncated·by·diffoscope;·len:·227,·SHA:·91a843f71f5d4d4bdd2a6f526e4b1ace78ad1c1c0027ff429527a1e3cc1cbb42·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if
70 a·failure·is·encountered.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·ri[·...·truncated·by·diffoscope;·len:·521,·SHA:·6a54376815dab985ec8cc35604d035e98e3003b1563c9b41e70966084505542b·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where70 a·failure·is·encountered.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../../[·...·truncated·by·diffoscope;·len:·401,·SHA:·ed1d0660f20625c1d5231d569dd3e4f1d10332250dcd1a3f5d2e886618e67f5b·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
71 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,71 ····E:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
72 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·975,·SHA:·94f7f970236ba59ba5f1415764a0e3ab2f3093c6b79e76c25c797ac24a3c4d09·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where72 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_coll[·...·truncated·by·diffoscope;·len:·855,·SHA:·7b38a8c237aadc46d5211ff8698af580678e0cbcab757a66d6416b422880dd91·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
73 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,73 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
74 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·b480ec650ba000fe7cb67df58fc0351299638ee3e8f00db18f74ca24d69f9894·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,74 ····B:·<a·class="trait"·href="../../../core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="../../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associa[·...·truncated·by·diffoscope;·len:·23,·SHA:·4417dee5d41246c4acf5419e1bdac3c7d847bd34e3e87738a08734259a3b63da·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
75 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·972,·SHA:·0a54d9b1f5cb78c4f6b5f5b1153955eea3a8c16edcc762351208dabad1e8e9aa·...·]/core/primitive.bool.html">bool</a><div·class="where">where75 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·804,·SHA:·9304858cfccb085a534269651ae33dddafe29b7d287f0db58b4a9394480a2fa6·...·]/core/primitive.bool.html">bool</a><div·class="where">where
76 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,76 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
77 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·fcd03e71f79faad6d9b9a12045d59f4dfabc78e5aefebcabc9c1a5be45e31125·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,77 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·63,·SHA:·852041c2de8156fdddf9f71111c5ddf1a6b88aabd8c082f1a254f0b21c18ffa1·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,
78 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><span·class="righ[·...·truncated·by·diffoscope;·len:·319,·SHA:·9b9df13f2f4e5b4dde3908515766e1a474fa30bcb7edc98c15665a016e677c2a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where78 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><span·class="rightside"><span·class="sinc[·...·truncated·by·diffoscope;·len:·247,·SHA:·222a0145d03094cb0b20ca156583afe97e703828a8aa77e37fb7b4661759e2c7·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where
79 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,79 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
80 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,80 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
81 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns81 ····R:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns
82 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rights[·...·truncated·by·diffoscope;·len:·321,·SHA:·619fd774190944998148325de99aaa75de66ce4b7e26579fd342c564923a5652·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where82 successfully,·producing·a·single,·final·value.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"[·...·truncated·by·diffoscope;·len:·249,·SHA:·afbe9e91614278f09851b7c5920ddaf0907a2bf4c310ec39b40084e28959cc77·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where
83 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,83 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
84 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,84 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
85 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the85 ····R:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="../../../core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the
86 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·307,·SHA:·5975144fd8566efa93ad1ccec09297e280924b7372e08681d2103702124e2c52·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where86 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><span·class="rightside"><span·class="since"·tit[·...·truncated·by·diffoscope;·len:·235,·SHA:·da9aac17d9724df2aa434c2d10e1caa010eb4fd7e574e4da4e3d5b689e970097·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where
87 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,87 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
88 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,88 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,
89 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span[·...·truncated·by·diffoscope;·len:·619,·SHA:·8813f54846438870310d5f5dfabd2335a9dbf51e9da2e4cd681bcb6077d39628·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where89 returning·the·final·result.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="St[·...·truncated·by·diffoscope;·len:·499,·SHA:·ff97be2c630acbbbb397aa79317bd89b79955e6735d9da7aea9df48659f94fce·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
90 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,90 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
91 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·084691f7fc4e7f4da7db385127d0ce8d2d52f6740757129a65910c4db0dc180d·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing91 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·256,·SHA:·2fe8ae39f77649fea294c45979f427748b2a9938dfa70e4595ac661d972125b1·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing
92 operation.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·217,·SHA:·447ae00256be3de069c602a6c04889808c883eae6fa349d023f53bdd5570ecae·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(92 operation.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside"·href="../../../src/cor[·...·truncated·by·diffoscope;·len:·145,·SHA:·be4dc63adf8a4e832fd3dbaaabbf45f287388ea2bb17088d40589203a2ec6dfb·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(
93 ····&amp;mut·self,93 ····&amp;mut·self,
94 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·70b2b85cad045ac7addf647e0bd3cd5b2c9ebca5986613ad2b6a9c00e3a1132f·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,94 ····f:·impl·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·68,·SHA:·e7e11f257edcac749a5883ad9a3aa42e6e965be419f967b36caa7afd3b36d7c9·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
95 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·1823533b932e38e3200465d101f10a34421c005018974296350162e4049615ea·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where95 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</[·...·truncated·by·diffoscope;·len:·586,·SHA:·596f94ec7a4c06359aee56ccb8a7138a1ddb94415fafcecac1fc87434b1329a3·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
96 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,96 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
97 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,97 ····R:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
98 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·764ea8f08626b05426a76738d54ebb2d640042494d76cba8c20d868bfdc07a73·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the98 ····&lt;R·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</[·...·truncated·by·diffoscope;·len:·292,·SHA:·2ae73aa9b78f13099a8016e28a473713dcc755cf00fed8895c0c1b027bbcea01·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the
99 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><span·class="rightside"><s[·...·truncated·by·diffoscope;·len:·476,·SHA:·aef721c14147dea2fbec70dcfa76916b3f1273bed8304f4c9db310ca23d1e4b1·...·]/core/primitive.bool.html">bool</a><div·class="where">where99 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title=[·...·truncated·by·diffoscope;·len:·380,·SHA:·1042cdc03eabce3d330853b659f28b8566dd5841790f7f1303f3e326f05efab6·...·]/core/primitive.bool.html">bool</a><div·class="where">where
100 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,100 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
101 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·7c48e62c73a40a5cb5ebbf4a22cd789b342a88ad3d855022191f2bae33c736c6·...·]/core/primitive.bool.html">bool</a><div·class="where">where101 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·850,·SHA:·1b28d9cdfe3ba8dc7eac8cef1bb6549e78768b440ea492c70d80c8c07eae61cb·...·]/core/primitive.bool.html">bool</a><div·class="where">where
102 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,102 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
103 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·673d69ce0c23e24b2546127c463e67cd2a4c0f7be792712e2b42e75427161b75·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where103 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·980,·SHA:·a560c9e639c326a34f124b36f977291532e03ffae190e973674fee7e13b4c842·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
104 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,104 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
105 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·aa5078ff77f5638746395497f8ce92c1b684d342dea851990104d5e9981ab6b0·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where105 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·883,·SHA:·47fb849c20ee0cb36696a24bd285768bd0973774403ae956d2a517cd216452b1·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where
106 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,106 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
107 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·1bd732dff19021a1586bb486282683f5c1bc65d5d514f9e13cc9232b4e94955b·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;,</div></h4></section></summary><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns107 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·58,·SHA:·f6e1e279f463d2adecc4a9316aeab7af85329a84398e722f43ac130647fe78cf·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;,</div></h4></section></summary><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns
108 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.find_map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_find"·class="method·trait-impl"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·215,·SHA:·4d59a011c8881794ce6367c1e816f11a813db02e37c71800ed6d47056f157573·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(108 the·first·non-none·result.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.find_map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_find"·class="method·trait-impl"><a·class="src·rightside"·href="../../../src/cor[·...·truncated·by·diffoscope;·len:·143,·SHA:·00906f8dc0620ba030a634eba59c098f3aff639a062bf6231dfc4feb7727cc72·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(
109 ····&amp;mut·self,109 ····&amp;mut·self,
110 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,110 ····f:·impl·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
111 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·efb03e5c706e0947c6a4490b17f1efb0f1944a7d81f2640b5933212334dd255a·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where111 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</[·...·truncated·by·diffoscope;·len:·482,·SHA:·9ae34b47b226617c3eb5738e2b006056038b8280724fbbb72477bd2e900a4e85·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
112 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,112 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
113 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html">bool</a>&gt;,113 ····R:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="../../../core/primitive.bool.html">bool</a>&gt;,
114 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·764ea8f08626b05426a76738d54ebb2d640042494d76cba8c20d868bfdc07a73·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>try_find</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/63178">#63178</a>)</span></div></span><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns114 ····&lt;R·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</[·...·truncated·by·diffoscope;·len:·292,·SHA:·2ae73aa9b78f13099a8016e28a473713dcc755cf00fed8895c0c1b027bbcea01·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>try_find</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/63178">#63178</a>)</span></div></span><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns
115 the·first·true·result·or·the·first·error.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_find">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.position"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·635,·SHA:·348891c2a01ad4ba1f5ccca4c270bd2cefaf47e6b8194dc69d227209558119ff·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where115 the·first·true·result·or·the·first·error.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_find">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.position"·class="method·trait-impl"><span·class="rightside"><span·class="since"·tit[·...·truncated·by·diffoscope;·len:·515,·SHA:·a1fda5a0c76c9054797870324df8cd1bb446d66310ff913ddcbc9467fea7a33a·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
116 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,116 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
117 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1144,·SHA:·924dabfde33cb637151c206b5bef45e7e2185053d933cf9a15c59eecaafa6d5c·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where117 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·952,·SHA:·72f72454b4804f46746efa385fa104f63e84fb586632dd1c4c930f34217d1e30·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
118 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,118 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
119 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.Ord.html"·title="[·...·truncated·by·diffoscope;·len:·1027,·SHA:·7ea45bb0396663d53190e2d043f0af1f755a90938f5e2272e0be32ed7aaee2cf·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where119 ····Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,</div></h4></secti[·...·truncated·by·diffoscope;·len:·859,·SHA:·c6328448ba9ee8b3f9c035dc6beb27d220f1cfb75bec76831422a5a7699528ad·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
120 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,120 ····B:·<a·class="trait"·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,
121 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,121 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
122 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Returns·the·element·that·gives·the·maximum·value·from·the122 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Returns·the·element·that·gives·the·maximum·value·from·the
123 specified·function.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.max_by_key">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.max_by"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·631,·SHA:·85969676239612a4af79ca58ddb20274f3ef3c8441f7ce5fa7050e530fed90d6·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where123 specified·function.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.max_by_key">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.max_by"·class="method·trait-impl"><span·class="rightside"><span·class="since"·tit[·...·truncated·by·diffoscope;·len:·511,·SHA:·28a81c6cecf40d424b9fff4f8efe3c058d66ecd63997796e214fc2bfce83e488·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
124 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,124 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
125 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·346,·SHA:·89ac74208295b291143af90fbbe08713bd1029679a1ef1eac39de92bb3981c03·...·]/core/cmp/enum.Ordering.html"·title="enum·core::cmp::Ordering">Ordering</a>,</div></h4></section></summary><div·class='docblock'>Returns·the·element·that·gives·the·maximum·value·with·respect·to·the125 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·250,·SHA:·8f55ec1ee28e7749caf0f66b596dbeacdc1675fa7c004a791e54bb3ea4ca2ea7·...·]/core/cmp/enum.Ordering.html"·title="enum·core::cmp::Ordering">Ordering</a>,</div></h4></section></summary><div·class='docblock'>Returns·the·element·that·gives·the·maximum·value·with·respect·to·the
126 specified·comparison·function.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.max_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.min_by_key"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·638,·SHA:·f613f75de1f91a4ed72540d49ff57e2fd0e395db510c03661ef3120f8a9e038a·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where126 specified·comparison·function.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.max_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.min_by_key"·class="method·trait-impl"><span·class="rightside"><span·class="since"·tit[·...·truncated·by·diffoscope;·len:·518,·SHA:·22bc8d4e53ae6ff60ccbb54fa8a2acbbe4bc6c9f8e2a9c6c08df10f0906ff721·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
Max diff block lines reached; 90757/310563 bytes (29.22%) of diff not shown.
302 KB
./usr/share/doc/rust-doc/html/alloc/collections/btree_set/struct.Union.html
    
Offset 1, 217 lines modifiedOffset 1, 217 lines modified
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="A·lazy·iterator·producing·elements·in·the·union·of·`BTreeSet`s."><title>Union·in·alloc::collections::btree_set·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»      2025-01-07)»   (built»     from» a»source»  tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Union</a></h2><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-Union%3C'_,+T%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-Union%3C'_,+T%3E"·title="Debug">Debug</a></li><li><a·href="#impl-FusedIterator-for-Union%3C'_,+T%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-Union%3C'a,+T%3E"·title="Iterator">Iterator</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-Union%3C'a,+T%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Union%3C'a,+T%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Union%3C'a,+T%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-Union%3C'a,+T%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-Union%3C'a,+T%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Union%3C'a,+T%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>collections::<wbr>btree_<wbr>set</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">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">btree_set</a></span><h1>Struct·<span·class="struct">Union</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/set.rs.html#306">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·Union&lt;'a,·T:·'a&gt;(<span·class="comment">/*·private·fields·*/</span>);</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>A·lazy·iterator·producing·elements·in·the·union·of·<code>BTreeSet</code>s.</p>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="A·lazy·iterator·producing·elements·in·the·union·of·`BTreeSet`s."><title>Union·in·alloc::collections::btree_set·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»      2025-01-07)»   (built»     from» a»source»  tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Union</a></h2><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-Union%3C'_,+T%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-Union%3C'_,+T%3E"·title="Debug">Debug</a></li><li><a·href="#impl-FusedIterator-for-Union%3C'_,+T%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-Union%3C'a,+T%3E"·title="Iterator">Iterator</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-Union%3C'a,+T%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Union%3C'a,+T%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Union%3C'a,+T%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-Union%3C'a,+T%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-Union%3C'a,+T%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Union%3C'a,+T%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>collections::<wbr>btree_<wbr>set</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">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">btree_set</a></span><h1>Struct·<span·class="struct">Union</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/set.rs.html#306">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·Union&lt;'a,·T:·'a&gt;(<span·class="comment">/*·private·fields·*/</span>);</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>A·lazy·iterator·producing·elements·in·the·union·of·<code>BTreeSet</code>s.</p>
2 <p>This·<code>struct</code>·is·created·by·the·<a·href="struct.BTreeSet.html#method.union"·title="method·alloc::collections::btree_set::BTreeSet::union"><code>union</code></a>·method·on·<a·href="struct.BTreeSet.html"·title="struct·alloc::collections::btree_set::BTreeSet"><code>BTreeSet</code></a>.2 <p>This·<code>struct</code>·is·created·by·the·<a·href="struct.BTreeSet.html#method.union"·title="method·alloc::collections::btree_set::BTreeSet::union"><code>union</code></a>·method·on·<a·href="struct.BTreeSet.html"·title="struct·alloc::collections::btree_set::BTreeSet"><code>BTreeSet</code></a>.
3 See·its·documentation·for·more.</p>3 See·its·documentation·for·more.</p>
4 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-Union%3C'_,+T%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/set.rs.html#1963-1967">Source</a></span><a·href="#impl-Clone-for-Union%3C'_,+T%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struct"·href="struct.Union.html"·title="struct·alloc::collections::btree_set::Union">Union</a>&lt;'_,·T&gt;</h3></section></summary><div·[·...·truncated·by·diffoscope;·len:·7711,·SHA:·924f70a9cbbca26c5b2833b3892a6895232c7fab181a59c33effbf80ce5beab5·...·]/core/primitive.usize.html">usize</a>&gt;(4 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-Union%3C'_,+T%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/set.rs.html#1963-1967">Source</a></span><a·href="#impl-Clone-for-Union%3C'_,+T%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struct"·href="struct.Union.html"·title="struct·alloc::collections::btree_set::Union">Union</a>&lt;'_,·T&gt;</h3></section></summary><div·class="impl-items"><deta[·...·truncated·by·diffoscope;·len:·7087,·SHA:·641b02c5d2a3a0b95f37f54762147fafcc91796a23e7487b283ed39860e404c8·...·]/core/primitive.usize.html">usize</a>&gt;(
5 ····&amp;mut·self,5 ····&amp;mut·self,
6 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·4f557a9b49151e0be8c52ffd68f1def4469c08164239dc8bef8df2040551c5ef·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where6 )·-&gt;·<a·class="enum"·href="../../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::It[·...·truncated·by·diffoscope;·len:·261,·SHA:·9b488006768a86d05b68f4e1888c750c736264a3a386f1310f1b7e8bfc7d2184·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where
7 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·962,·SHA:·116e4ec2ae3d9655c3d115eaf50f435f5323b4e48b84de734c79d2a09b3c02f2·...·]/core/primitive.usize.html">usize</a><div·class="where">where7 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_next[·...·truncated·by·diffoscope;·len:·842,·SHA:·d8f387888e3ee78f4397f4b1a12eae734e055247e3aa3251433ab8ac1019b31a·...·]/core/primitive.usize.html">usize</a><div·class="where">where
8 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·counting·the·number·of·iterations·and·returning·it.·<a·href="https://doc.[·...·truncated·by·diffoscope;·len:·837,·SHA:·47e25b6f9687bcc1d1fcdf9842fb085e6aba767d70531028f948636b80563dfc·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where8 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·counting·the·number·of·iterations·and·returning·it.·<a·href="../../../core/iter/traits/iterator/t[·...·truncated·by·diffoscope;·len:·693,·SHA:·725f42ff290538a513ec93cf7284210e1c519a4cc200b6d5878e7ccff2777059·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
9 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·returning·the·last·element.·<a·href="https://doc.rust-lang.org/1.84.0/cor[·...·truncated·by·diffoscope;·len:·3504,·SHA:·ec43d0f6d8d2a1e0fb7a684c382b9934abe1250844e53cce08bdfc6017ecb276·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where9 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·returning·the·last·element.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#metho[·...·truncated·by·diffoscope;·len:·3024,·SHA:·33e764ec8aa4ce60da61c340591349678c8144088b1440d0c5d8b7b28ba27fc9·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where
10 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by10 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by
11 the·given·amount·at·each·iteration.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><sp[·...·truncated·by·diffoscope;·len:·842,·SHA:·945c4509a8daf2f8fbccc5c6e5089e225955911e03a3e411f047f96d52d16862·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where11 the·given·amount·at·each·iteration.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="[·...·truncated·by·diffoscope;·len:·698,·SHA:·035d2f4d2e6b01ddf0b424aa6fc3f5919c82f85f857cb9cfa0f54f8357058b90·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
12 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,12 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
13 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·3b5ce32f9d564c3aa7cf2adc7130e674758d0c0f4f1275b4c3b46a74aa802cb3·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where13 ····U:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·[·...·truncated·by·diffoscope;·len:·1137,·SHA:·7916ae3a9b5afad376aafc6d698165147d82613fe975f64423f2367a02a69f6a·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
14 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,14 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
15 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·[·...·truncated·by·diffoscope;·len:·868,·SHA:·abdbf27ccc84063c7040d8fa3da9d0bda5ee310a470ef576e15554aee4bd5d21·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where15 ····U:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·of·pairs.·<a·href="../..[·...·truncated·by·diffoscope;·len:·724,·SHA:·ba31078b5c50fbfc51e53bed6f70aaa6e7e320cfda19949035c71d9363c0d919·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where
16 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,16 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
17 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent17 ····Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent
18 items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="sr[·...·truncated·by·diffoscope;·len:·427,·SHA:·6e82ad4aad49c2165d869fe30d20a968580a973cdb3a7f4c77f49e16dd59393e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where18 items·of·the·original·iterator.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="src·rightside"·href="../..[·...·truncated·by·diffoscope;·len:·331,·SHA:·451e844c9bf5d6d78b9579516e4b9fafb3e84136eaa1c95bead4539370743d7d·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where
19 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,19 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
20 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>20 ····G:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>
21 between·adjacent·items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightsi[·...·truncated·by·diffoscope;·len:·471,·SHA:·ed10488b7b2ccc3e4cc84a9a57a9695a74c1c964962e8d753cbace12f3318a66·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where21 between·adjacent·items·of·the·original·iterator.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·[·...·truncated·by·diffoscope;·len:·375,·SHA:·7bbb71535f348e442b9de05a74f9180c9acec0636566fa2a19ab1dc83779aace·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where
22 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,22 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
23 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each23 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each
24 element.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><spa[·...·truncated·by·diffoscope;·len:·306,·SHA:·61c87c39b177830189b0e4c036d97c40d8b9649d76432c90afb88de59498e8b2·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where24 element.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="S[·...·truncated·by·diffoscope;·len:·234,·SHA:·55463e0fb539911d03265cbd8abb7248189471ea74954185ed77f245746805c2·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where
25 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,25 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
26 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·a65da32c5f5ef8335cb607d3b4ab3f8a25877bc2c2e8b44ca9d575caecd5c8a5·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where26 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·772,·SHA:·de07f629315c257cc96a89e82de6752f002f259b678391b79d5fb48e279e56d2·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where
27 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,27 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
28 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·6d69c85c69fa789be551ea42d95c33c237d12a04ef157f9ddaaead1177f7771e·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element28 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·68,·SHA:·67cf1e2a20410007c7dd6c47c91b1d386626c1bfac5c1116c374da7bbee00d51·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element
29 should·be·yielded.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·489,·SHA:·9bdc636899f4e4e5a26a3a21c9603f72b3fb972865d2f459c38b7e2ac8fed7f1·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where29 should·be·yielded.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·tit[·...·truncated·by·diffoscope;·len:·393,·SHA:·328d72714f754fb793753313f01b087a9fbb30b77a2bcd5749456e1f6fd72710·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where
30 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,30 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
31 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·46dbf841c7aecd3f06bd4c944af21650faeac98c46c515dcfe643302618b1ecd·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where31 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·884,·SHA:·e8a37e28a6bfcb2d58b9ffd389d339c3dece95c14840f28c980a7d7aedcc9a05·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where
32 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as32 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as
33 the·next·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside[·...·truncated·by·diffoscope;·len:·468,·SHA:·52f7ff7f264284c3acc4429ca34d057ded9afa2e3d9d6e07571e252db9a48977·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where33 the·next·value.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside"><span·class="since"·ti[·...·truncated·by·diffoscope;·len:·372,·SHA:·9c08a613d034f21b42b8d196073d0f4d61c81458378e40e77995533a8b460837·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where
34 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·c0180fefce4346b0b4089e5c642521d7716108241c0ce6ec3e910c7a2c7364b4·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods34 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="../../../core/iter/adapters/peekable/struct.Peekable.html#method.peek"·ti[·...·truncated·by·diffoscope;·len:·103,·SHA:·e3683d31746f50069ed604def6201840bce75bbc7c584fac6c3644292077ae8a·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods
35 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See35 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See
36 their·documentation·for·more·information.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightsid[·...·truncated·by·diffoscope;·len:·498,·SHA:·e4a68861585faec6a5032b3b69d6dfb0f2799b5f387a527d9a1365571ed02069·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where36 their·documentation·for·more·information.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightside"><span·class="since"·t[·...·truncated·by·diffoscope;·len:·402,·SHA:·bdba673560d208f968337eb74446ead60d6223b0ca9ec6fbfaeb1a995a7e8001·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where
37 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,37 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
38 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·93281c1f6402743fd61110c11cf676f0f67eddceda801b4eb35e5fe9f85870fd·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where38 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·1042,·SHA:·27d4a79658fb1c97b659bd2520bcebbf5cfcb8a42420a7ecfcbff6f3330fa5e1·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where
39 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,39 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
40 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·f1cdbb1ec64f98fabbe1d89c88b03824310926cd7eaa160953ce2452fc3abb77·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where40 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·890,·SHA:·c43533da7f54bfb6611594b3436645d4d1f8e5339d2d05bf2345e87628499759·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where
41 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,41 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
42 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·f94a0b2c1396b13b89aca7830197ebf19e2c0e5ba536a9cc25b325a481799510·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where42 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·971,·SHA:·1b31b9d1d5061d4ee982a30400139f1d7319412bdea39925e0cc1e8e7cf3d65a·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where
43 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="https://doc.rust-lang[·...·truncated·by·diffoscope;·len:·783,·SHA:·c14217b89e3292a50a09192a8857485891fc769f861e1d1fc4322d04295c86ef·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where43 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="../../../core/iter/traits/iterator/trait.Iter[·...·truncated·by·diffoscope;·len:·639,·SHA:·79c7f7eddc655d329424f08baee8551b7f59cd4dc4b0d6984c5e4f241bcb949b·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where
44 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer44 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer
45 if·the·underlying·iterator·ends·sooner.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·c[·...·truncated·by·diffoscope;·len:·488,·SHA:·76f753d5a273a09a73127631acaa0ee947326a929f33be291018188793e1af56·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where45 if·the·underlying·iterator·ends·sooner.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stab[·...·truncated·by·diffoscope;·len:·392,·SHA:·50ac976eb8bf89726a483af064d5a70c100dedd17d46dc40ac3a82aba51b2082·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where
46 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,46 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
47 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·07d303586c8ad4e0082d5b44bff8eeda03cdb8f4bdbe46489f9232bca5a43ec6·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but47 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/tra[·...·truncated·by·diffoscope;·len:·329,·SHA:·14fc5ef1359fcb2171e21ba65c5f5d8ce11053860ba1d5aa32ddce90a48c2a8c·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but
48 unlike·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·2b20882d9583cee50e0c8b3cf362b27ce0d524db387d4aa4093d622b9370dada·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where48 unlike·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.scan">Rea[·...·truncated·by·diffoscope;·len:·570,·SHA:·3cdbe78e481f63f4d21b2fa94202dad167221af9d6e6f981ccd7a6e524f6157d·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where
49 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,49 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
50 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,50 ····U:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
51 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·933,·SHA:·4af94b75ba5c1e03d2d70590d2fd0706f13b3080fbff0f5b98e7b109048c403d·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where51 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·789,·SHA:·0e36f9aa81931958e65acc9e1b5bf6ad7367dcb7163dcf0af2a043314857a909·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where
52 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,52 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
53 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.I[·...·truncated·by·diffoscope;·len:·968,·SHA:·e5572ed2f3bdf5970d038da608f2f592d945541207c483c257fe5789efba168a·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where53 ····Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::trait[·...·truncated·by·diffoscope;·len:·800,·SHA:·3ea01df21dfaf9ee656fdee6aa789a6ce5be05d17c043433c5ab28da8f6d3241·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where
54 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,54 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
55 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·3013c0e49b0dade37f8ca096eccc5ceeb03fc79b9d320a4c92486d23b88d1009·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over55 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator[·...·truncated·by·diffoscope;·len:·63,·SHA:·8395b60c01b0cde6c3340bd4e6c57cddd02465a19dcf15a8aa5498bd6c8ddc11·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over
56 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,56 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="../../../core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,
57 the·windows·during·mapping·overlap·as·well.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside">[·...·truncated·by·diffoscope;·len:·454,·SHA:·040991f3914479bcc92615de2b81df7363656323622e5aadc964e1a61917d23e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where57 the·windows·during·mapping·overlap·as·well.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside"><span·class="since"·titl[·...·truncated·by·diffoscope;·len:·358,·SHA:·21db4436f04b3d09e41f294c30cd7dea235a4beb9af727cb1f1f065008ad732e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where
58 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="https://doc.rust-lang.org/1.84.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·0e0294a45242d5ce9a3ab8f95d6d410756415291d92baa7d12283ef1b3ecc3a0·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where58 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="../../../core/option/enum.Option.html#variant.None"·title="varia[·...·truncated·by·diffoscope;·len:·697,·SHA:·55b16240a265fa2f73963114b9def4c5703a60d1c3ce047915fff28502588e5b·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where
59 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,59 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
60 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·a8b562f71802a421f4745f7d1fadf4f70d98030c829e70f27b692e7915267027·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where60 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·650,·SHA:·eb862563a2da6881a0f9a31dac8f99f2b47b2c8d3033a0e1bc9ec49ae5500941·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where
61 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="https://doc.rust-lang.org/1.84.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·b3db7d84f203bbc139b1c52912705d19c664dac762898205fce452c9dc3a5318·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where61 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.by[·...·truncated·by·diffoscope;·len:·427,·SHA:·d439202f1a598c30b789e20f3d05a82f531349aa12f3af08cc5c230996ec01a9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where
62 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,62 ····B:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
63 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·431,·SHA:·a705a23f6d810357e7dcac670743884665ffcccfb9b780d0aa03720be8ca5625·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(63 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.collect[·...·truncated·by·diffoscope;·len:·335,·SHA:·d72a986b5d306b2e1ed99e18a16e26fa1b5380448fea76ac3db703052800b629·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(
64 ····&amp;mut·self,64 ····&amp;mut·self,
65 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.h[·...·truncated·by·diffoscope;·len:·479,·SHA:·fa749442d890055f86ceb34f411c84fd7ea08302b336d786d1ca36fe5868b020·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where65 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try[·...·truncated·by·diffoscope;·len:·359,·SHA:·886ccc2fbd37f1e7df4075b80b0bebd3d1a6e997fae2114ca1818fa30fa95d5a·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
66 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,66 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
67 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>, 
68 ····&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang[·...·truncated·by·diffoscope;·len:·449,·SHA:·9ddccfb7bdd27ea692d65fa83daf56e31762d1bec3a502234174b8fa4fb33a98·...·],67 ····Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="[·...·truncated·by·diffoscope;·len:·40,·SHA:·39f6b8b47216936a6251a972a3e72c0459df25c157b8b3990eefb48397aa8303·...·],
 68 ····&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;B&gt;,
69 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/itera[·...·truncated·by·diffoscope;·len:·323,·SHA:·b5c51f161dc9d77fd81d1fd23cc71fbf42ac00f3168cf9e41ebaaa2b6eb25363·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if69 ····B:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·tit[·...·truncated·by·diffoscope;·len:·227,·SHA:·91a843f71f5d4d4bdd2a6f526e4b1ace78ad1c1c0027ff429527a1e3cc1cbb42·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if
70 a·failure·is·encountered.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·ri[·...·truncated·by·diffoscope;·len:·521,·SHA:·6a54376815dab985ec8cc35604d035e98e3003b1563c9b41e70966084505542b·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where70 a·failure·is·encountered.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../../[·...·truncated·by·diffoscope;·len:·401,·SHA:·ed1d0660f20625c1d5231d569dd3e4f1d10332250dcd1a3f5d2e886618e67f5b·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
71 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,71 ····E:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
72 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·975,·SHA:·94f7f970236ba59ba5f1415764a0e3ab2f3093c6b79e76c25c797ac24a3c4d09·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where72 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_coll[·...·truncated·by·diffoscope;·len:·855,·SHA:·7b38a8c237aadc46d5211ff8698af580678e0cbcab757a66d6416b422880dd91·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
73 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,73 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
74 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·b480ec650ba000fe7cb67df58fc0351299638ee3e8f00db18f74ca24d69f9894·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,74 ····B:·<a·class="trait"·href="../../../core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="../../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associa[·...·truncated·by·diffoscope;·len:·23,·SHA:·4417dee5d41246c4acf5419e1bdac3c7d847bd34e3e87738a08734259a3b63da·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
75 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·972,·SHA:·0a54d9b1f5cb78c4f6b5f5b1153955eea3a8c16edcc762351208dabad1e8e9aa·...·]/core/primitive.bool.html">bool</a><div·class="where">where75 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·804,·SHA:·9304858cfccb085a534269651ae33dddafe29b7d287f0db58b4a9394480a2fa6·...·]/core/primitive.bool.html">bool</a><div·class="where">where
76 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,76 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
77 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·fcd03e71f79faad6d9b9a12045d59f4dfabc78e5aefebcabc9c1a5be45e31125·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,77 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·63,·SHA:·852041c2de8156fdddf9f71111c5ddf1a6b88aabd8c082f1a254f0b21c18ffa1·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,
78 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><span·class="righ[·...·truncated·by·diffoscope;·len:·319,·SHA:·9b9df13f2f4e5b4dde3908515766e1a474fa30bcb7edc98c15665a016e677c2a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where78 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><span·class="rightside"><span·class="sinc[·...·truncated·by·diffoscope;·len:·247,·SHA:·222a0145d03094cb0b20ca156583afe97e703828a8aa77e37fb7b4661759e2c7·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where
79 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,79 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
80 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,80 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
81 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns81 ····R:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns
82 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rights[·...·truncated·by·diffoscope;·len:·321,·SHA:·619fd774190944998148325de99aaa75de66ce4b7e26579fd342c564923a5652·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where82 successfully,·producing·a·single,·final·value.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"[·...·truncated·by·diffoscope;·len:·249,·SHA:·afbe9e91614278f09851b7c5920ddaf0907a2bf4c310ec39b40084e28959cc77·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where
83 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,83 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
84 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,84 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
85 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the85 ····R:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="../../../core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the
86 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·307,·SHA:·5975144fd8566efa93ad1ccec09297e280924b7372e08681d2103702124e2c52·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where86 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><span·class="rightside"><span·class="since"·tit[·...·truncated·by·diffoscope;·len:·235,·SHA:·da9aac17d9724df2aa434c2d10e1caa010eb4fd7e574e4da4e3d5b689e970097·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where
87 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,87 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
88 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,88 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,
89 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span[·...·truncated·by·diffoscope;·len:·619,·SHA:·8813f54846438870310d5f5dfabd2335a9dbf51e9da2e4cd681bcb6077d39628·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where89 returning·the·final·result.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="St[·...·truncated·by·diffoscope;·len:·499,·SHA:·ff97be2c630acbbbb397aa79317bd89b79955e6735d9da7aea9df48659f94fce·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
90 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,90 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
91 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·084691f7fc4e7f4da7db385127d0ce8d2d52f6740757129a65910c4db0dc180d·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing91 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·256,·SHA:·2fe8ae39f77649fea294c45979f427748b2a9938dfa70e4595ac661d972125b1·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing
92 operation.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·217,·SHA:·447ae00256be3de069c602a6c04889808c883eae6fa349d023f53bdd5570ecae·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(92 operation.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside"·href="../../../src/cor[·...·truncated·by·diffoscope;·len:·145,·SHA:·be4dc63adf8a4e832fd3dbaaabbf45f287388ea2bb17088d40589203a2ec6dfb·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(
93 ····&amp;mut·self,93 ····&amp;mut·self,
94 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·70b2b85cad045ac7addf647e0bd3cd5b2c9ebca5986613ad2b6a9c00e3a1132f·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,94 ····f:·impl·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·68,·SHA:·e7e11f257edcac749a5883ad9a3aa42e6e965be419f967b36caa7afd3b36d7c9·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
95 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·1823533b932e38e3200465d101f10a34421c005018974296350162e4049615ea·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where95 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</[·...·truncated·by·diffoscope;·len:·586,·SHA:·596f94ec7a4c06359aee56ccb8a7138a1ddb94415fafcecac1fc87434b1329a3·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
96 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,96 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
97 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,97 ····R:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
98 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·764ea8f08626b05426a76738d54ebb2d640042494d76cba8c20d868bfdc07a73·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the98 ····&lt;R·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</[·...·truncated·by·diffoscope;·len:·292,·SHA:·2ae73aa9b78f13099a8016e28a473713dcc755cf00fed8895c0c1b027bbcea01·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the
99 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><span·class="rightside"><s[·...·truncated·by·diffoscope;·len:·476,·SHA:·aef721c14147dea2fbec70dcfa76916b3f1273bed8304f4c9db310ca23d1e4b1·...·]/core/primitive.bool.html">bool</a><div·class="where">where99 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title=[·...·truncated·by·diffoscope;·len:·380,·SHA:·1042cdc03eabce3d330853b659f28b8566dd5841790f7f1303f3e326f05efab6·...·]/core/primitive.bool.html">bool</a><div·class="where">where
100 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,100 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
101 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·7c48e62c73a40a5cb5ebbf4a22cd789b342a88ad3d855022191f2bae33c736c6·...·]/core/primitive.bool.html">bool</a><div·class="where">where101 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·850,·SHA:·1b28d9cdfe3ba8dc7eac8cef1bb6549e78768b440ea492c70d80c8c07eae61cb·...·]/core/primitive.bool.html">bool</a><div·class="where">where
102 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,102 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
103 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·673d69ce0c23e24b2546127c463e67cd2a4c0f7be792712e2b42e75427161b75·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where103 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·980,·SHA:·a560c9e639c326a34f124b36f977291532e03ffae190e973674fee7e13b4c842·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
104 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,104 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
105 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·aa5078ff77f5638746395497f8ce92c1b684d342dea851990104d5e9981ab6b0·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where105 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·883,·SHA:·47fb849c20ee0cb36696a24bd285768bd0973774403ae956d2a517cd216452b1·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where
106 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,106 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
107 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·1bd732dff19021a1586bb486282683f5c1bc65d5d514f9e13cc9232b4e94955b·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;,</div></h4></section></summary><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns107 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·58,·SHA:·f6e1e279f463d2adecc4a9316aeab7af85329a84398e722f43ac130647fe78cf·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;,</div></h4></section></summary><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns
108 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.find_map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_find"·class="method·trait-impl"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·215,·SHA:·4d59a011c8881794ce6367c1e816f11a813db02e37c71800ed6d47056f157573·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(108 the·first·non-none·result.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.find_map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_find"·class="method·trait-impl"><a·class="src·rightside"·href="../../../src/cor[·...·truncated·by·diffoscope;·len:·143,·SHA:·00906f8dc0620ba030a634eba59c098f3aff639a062bf6231dfc4feb7727cc72·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(
109 ····&amp;mut·self,109 ····&amp;mut·self,
110 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,110 ····f:·impl·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
111 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·efb03e5c706e0947c6a4490b17f1efb0f1944a7d81f2640b5933212334dd255a·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where111 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</[·...·truncated·by·diffoscope;·len:·482,·SHA:·9ae34b47b226617c3eb5738e2b006056038b8280724fbbb72477bd2e900a4e85·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
112 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,112 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
113 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html">bool</a>&gt;,113 ····R:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="../../../core/primitive.bool.html">bool</a>&gt;,
114 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·764ea8f08626b05426a76738d54ebb2d640042494d76cba8c20d868bfdc07a73·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>try_find</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/63178">#63178</a>)</span></div></span><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns114 ····&lt;R·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</[·...·truncated·by·diffoscope;·len:·292,·SHA:·2ae73aa9b78f13099a8016e28a473713dcc755cf00fed8895c0c1b027bbcea01·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>try_find</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/63178">#63178</a>)</span></div></span><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns
115 the·first·true·result·or·the·first·error.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_find">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.position"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·635,·SHA:·348891c2a01ad4ba1f5ccca4c270bd2cefaf47e6b8194dc69d227209558119ff·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where115 the·first·true·result·or·the·first·error.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_find">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.position"·class="method·trait-impl"><span·class="rightside"><span·class="since"·tit[·...·truncated·by·diffoscope;·len:·515,·SHA:·a1fda5a0c76c9054797870324df8cd1bb446d66310ff913ddcbc9467fea7a33a·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
116 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,116 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
117 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1144,·SHA:·924dabfde33cb637151c206b5bef45e7e2185053d933cf9a15c59eecaafa6d5c·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where117 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·952,·SHA:·72f72454b4804f46746efa385fa104f63e84fb586632dd1c4c930f34217d1e30·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
118 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,118 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
119 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.Ord.html"·title="[·...·truncated·by·diffoscope;·len:·1027,·SHA:·7ea45bb0396663d53190e2d043f0af1f755a90938f5e2272e0be32ed7aaee2cf·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where119 ····Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,</div></h4></secti[·...·truncated·by·diffoscope;·len:·859,·SHA:·c6328448ba9ee8b3f9c035dc6beb27d220f1cfb75bec76831422a5a7699528ad·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
120 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,120 ····B:·<a·class="trait"·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,
121 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,121 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
122 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Returns·the·element·that·gives·the·maximum·value·from·the122 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Returns·the·element·that·gives·the·maximum·value·from·the
123 specified·function.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.max_by_key">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.max_by"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·631,·SHA:·85969676239612a4af79ca58ddb20274f3ef3c8441f7ce5fa7050e530fed90d6·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where123 specified·function.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.max_by_key">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.max_by"·class="method·trait-impl"><span·class="rightside"><span·class="since"·tit[·...·truncated·by·diffoscope;·len:·511,·SHA:·28a81c6cecf40d424b9fff4f8efe3c058d66ecd63997796e214fc2bfce83e488·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
124 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,124 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
125 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·346,·SHA:·89ac74208295b291143af90fbbe08713bd1029679a1ef1eac39de92bb3981c03·...·]/core/cmp/enum.Ordering.html"·title="enum·core::cmp::Ordering">Ordering</a>,</div></h4></section></summary><div·class='docblock'>Returns·the·element·that·gives·the·maximum·value·with·respect·to·the125 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·250,·SHA:·8f55ec1ee28e7749caf0f66b596dbeacdc1675fa7c004a791e54bb3ea4ca2ea7·...·]/core/cmp/enum.Ordering.html"·title="enum·core::cmp::Ordering">Ordering</a>,</div></h4></section></summary><div·class='docblock'>Returns·the·element·that·gives·the·maximum·value·with·respect·to·the
126 specified·comparison·function.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.max_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.min_by_key"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·638,·SHA:·f613f75de1f91a4ed72540d49ff57e2fd0e395db510c03661ef3120f8a9e038a·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where126 specified·comparison·function.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.max_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.min_by_key"·class="method·trait-impl"><span·class="rightside"><span·class="since"·tit[·...·truncated·by·diffoscope;·len:·518,·SHA:·22bc8d4e53ae6ff60ccbb54fa8a2acbbe4bc6c9f8e2a9c6c08df10f0906ff721·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
Max diff block lines reached; 89777/308887 bytes (29.06%) of diff not shown.
69.4 KB
./usr/share/doc/rust-doc/html/alloc/collections/btree_set/struct.UnorderedKeyError.html
    
Offset 1, 18 lines modifiedOffset 1, 18 lines modified
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="Error·type·returned·by·`CursorMut::insert_before`·and·`CursorMut::insert_after`·if·the·key·being·inserted·is·not·properly·ordered·with·regards·to·adjacent·keys."><title>UnorderedKeyError·in·alloc::collections::btree_set·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»    2025-01-07)» (built»   from»       a»      source»tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Unordered<wbr>KeyError</a></h2><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-UnorderedKeyError"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-UnorderedKeyError"·title="Debug">Debug</a></li><li><a·href="#impl-Display-for-UnorderedKeyError"·title="Display">Display</a></li><li><a·href="#impl-Eq-for-UnorderedKeyError"·title="Eq">Eq</a></li><li><a·href="#impl-Error-for-UnorderedKeyError"·title="Error">Error</a></li><li><a·href="#impl-PartialEq-for-UnorderedKeyError"·title="PartialEq">PartialEq</a></li><li><a·href="#impl-StructuralPartialEq-for-UnorderedKeyError"·title="StructuralPartialEq">StructuralPartialEq</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-UnorderedKeyError"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-UnorderedKeyError"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-UnorderedKeyError"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-UnorderedKeyError"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-UnorderedKeyError"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-UnorderedKeyError"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-ToString-for-T"·title="ToString">ToString</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>collections::<wbr>btree_<wbr>set</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">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">btree_set</a></span><h1>Struct·<span·class="struct">UnorderedKeyError</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/alloc/collections/btree/map.rs.html#3438">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·UnorderedKeyError·{}</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>btree_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/107540">#107540</a>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Error·type·returned·by·<a·href="../btree_map/struct.CursorMut.html#method.insert_before"·title="method·alloc::collections::btree_map::CursorMut::insert_before"><code>CursorMut::insert_before</code></a>·and1 <!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="Error·type·returned·by·`CursorMut::insert_before`·and·`CursorMut::insert_after`·if·the·key·being·inserted·is·not·properly·ordered·with·regards·to·adjacent·keys."><title>UnorderedKeyError·in·alloc::collections::btree_set·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»    2025-01-07)» (built»   from»       a»      source»tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Unordered<wbr>KeyError</a></h2><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-UnorderedKeyError"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-UnorderedKeyError"·title="Debug">Debug</a></li><li><a·href="#impl-Display-for-UnorderedKeyError"·title="Display">Display</a></li><li><a·href="#impl-Eq-for-UnorderedKeyError"·title="Eq">Eq</a></li><li><a·href="#impl-Error-for-UnorderedKeyError"·title="Error">Error</a></li><li><a·href="#impl-PartialEq-for-UnorderedKeyError"·title="PartialEq">PartialEq</a></li><li><a·href="#impl-StructuralPartialEq-for-UnorderedKeyError"·title="StructuralPartialEq">StructuralPartialEq</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-UnorderedKeyError"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-UnorderedKeyError"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-UnorderedKeyError"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-UnorderedKeyError"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-UnorderedKeyError"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-UnorderedKeyError"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-ToString-for-T"·title="ToString">ToString</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>collections::<wbr>btree_<wbr>set</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">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">btree_set</a></span><h1>Struct·<span·class="struct">UnorderedKeyError</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/alloc/collections/btree/map.rs.html#3438">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·UnorderedKeyError·{}</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>btree_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/107540">#107540</a>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Error·type·returned·by·<a·href="../btree_map/struct.CursorMut.html#method.insert_before"·title="method·alloc::collections::btree_map::CursorMut::insert_before"><code>CursorMut::insert_before</code></a>·and
2 <a·href="../btree_map/struct.CursorMut.html#method.insert_after"·title="method·alloc::collections::btree_map::CursorMut::insert_after"><code>CursorMut::insert_after</code></a>·if·the·key·being·inserted·is·not·properly2 <a·href="../btree_map/struct.CursorMut.html#method.insert_after"·title="method·alloc::collections::btree_map::CursorMut::insert_after"><code>CursorMut::insert_after</code></a>·if·the·key·being·inserted·is·not·properly
3 ordered·with·regards·to·adjacent·keys.</p>3 ordered·with·regards·to·adjacent·keys.</p>
4 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-UnorderedKeyError"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#3436">Source</a><a·href="#impl-Clone-for-UnorderedKeyError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struct"·href="../btree_map/struct.UnorderedKeyError.html"·title="struct·alloc::collections::btree_map::UnorderedKeyError">UnorderedKeyErr[·...·truncated·by·diffoscope;·len:·11121,·SHA:·e381c95f45e4c32beb99e3269af8b283b8efb798a6c6bb18ac646f5f4b95826f·...·]/core/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>!=</code>.·The·default·implementation·is·almost·always·sufficient,4 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-UnorderedKeyError"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#3436">Source</a><a·href="#impl-Clone-for-UnorderedKeyError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struct"·href="../btree_map/struct.UnorderedKeyError.html"·title="struct·alloc::collections::btree_map::UnorderedKeyError">UnorderedKeyError</a></h3></section></s[·...·truncated·by·diffoscope;·len:·10377,·SHA:·2a98e2c5c69ec0d7910013a139c83c54c604abe68a8fe75d5aa33ff09c82e6dc·...·]/core/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>!=</code>.·The·default·implementation·is·almost·always·sufficient,
5 and·should·not·be·overridden·without·very·good·reason.</div></details></div></details><section·id="impl-Eq-for-UnorderedKeyError"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#3436">Source</a><a·href="#impl-Eq-for-UnorderedKeyError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.Eq.html"·title="trait·core::cmp::Eq">Eq</a>·for·<a·class="struct"·href="../btree_map/struct.UnorderedKeyError.html"·title="struct·alloc::collections::btree_map::UnorderedKeyError">UnorderedKeyError</a></h3></[·...·truncated·by·diffoscope;·len:·4176,·SHA:·f16bc04fdc08bc15f6c46e9a09598baa89dd8762ec7ea4523ac5ca3e915187ce·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where5 and·should·not·be·overridden·without·very·good·reason.</div></details></div></details><section·id="impl-Eq-for-UnorderedKeyError"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#3436">Source</a><a·href="#impl-Eq-for-UnorderedKeyError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../../core/cmp/trait.Eq.html"·title="trait·core::cmp::Eq">Eq</a>·for·<a·class="struct"·href="../btree_map/struct.UnorderedKeyError.html"·title="struct·alloc::collections::btree_map::UnorderedKeyError">UnorderedKeyError</a></h3></section><section·id="imp[·...·truncated·by·diffoscope;·len:·3936,·SHA:·602dcbe7e14e13117357a5bd2da87aa3c357eb6cf6b1b63c1b18b698415a13f4·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where
6 ····T:·'static·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method[·...·truncated·by·diffoscope;·len:·834,·SHA:·47dfc2aa0101a4103e2a94c1f971c559790d87a62d58631fd2bfed98e6616a34·...·]/src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where6 ····T:·'static·+·?<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="s[·...·truncated·by·diffoscope;·len:·690,·SHA:·5140301cd9ff79a41eb9c4e21645354b7b39f4611f9b3646b7c859a62ac61067·...·]/src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where
7 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·[·...·truncated·by·diffoscope;·len:·743,·SHA:·b1db3ba49d399b0b1340fa997418ee1ae0ece93cc3579963c53bf7040ec0ded6·...·]/src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.BorrowMut.html"·title="trait·alloc::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where7 ····T:·?<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="sr[·...·truncated·by·diffoscope;·len:·647,·SHA:·eced384f314b303c18919389c5abe4a96aec1091fccffab1a095e21ec4389338·...·]/src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.BorrowMut.html"·title="trait·alloc::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where
8 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="met[·...·truncated·by·diffoscope;·len:·960,·SHA:·c6354ea8fcf3b570a130235df299ddea9063b0fb7e35c91d7c9308744705dcad·...·]/core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where8 ····T:·?<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class[·...·truncated·by·diffoscope;·len:·840,·SHA:·65730076d1351b96bbc7870dcc45245c8046decde9b269779ff691512c7b6cda·...·]/core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where
9 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="[·...·truncated·by·diffoscope;·len:·1883,·SHA:·e07301fb9e28f950d7450480a6b68014ffcdcc3be12b1adda27936cb1244377e·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>9 ····T:·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·cl[·...·truncated·by·diffoscope;·len:·1643,·SHA:·1eae2ed9452ffcbbe8b3cb569c26d9b61c935793fb647d6b79fd502b505ae03b·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>
10 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where10 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where
11 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="m[·...·truncated·by·diffoscope;·len:·237,·SHA:·98603c35860102b3af9b5cf27aeabf39e3c03236551986a6ec030817f108d919·...·]/core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>11 ····U:·<a·class="trait"·href="../../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·cla[·...·truncated·by·diffoscope;·len:·165,·SHA:·423a04a226f49c7f9a948f8c413dc8519f4a9a96a55914b6e6a694710d81c0f7·...·]/core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>
12 <p>That·is,·this·conversion·is·whatever·the·implementation·of12 <p>That·is,·this·conversion·is·whatever·the·implementation·of
13 <code><a·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>13 <code><a·href="../../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>
14 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/borrow.rs.html#82-94">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where14 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/borrow.rs.html#82-94">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where
15 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·t[·...·truncated·by·diffoscope;·len:·1371,·SHA:·ac6a902143d4c66cbd5b550f09f2d40087fda3f7614581e6d57eee722a148cdb·...·]/core/primitive.reference.html">&amp;mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../../borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToString-for-T"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/string.rs.html#2677-2691">Source</a><a·href="#impl-ToString-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../string/trait.ToString.html"·title="trait·alloc::string::ToString">ToString</a>·for·T<div·class="where">where15 ····T:·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src[·...·truncated·by·diffoscope;·len:·1323,·SHA:·9784fad64d9bb4c5a14202acd9718b1f1e8592d658e25e3084249b2764db53a5·...·]/core/primitive.reference.html">&amp;mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../../borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToString-for-T"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/string.rs.html#2677-2691">Source</a><a·href="#impl-ToString-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../string/trait.ToString.html"·title="trait·alloc::string::ToString">ToString</a>·for·T<div·class="where">where
16 ····T:·<a·class="trait"·href="../../fmt/trait.Display.html"·title="trait·alloc::fmt::Display">Display</a>·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.to_string"·class="meth[·...·truncated·by·diffoscope;·len:·968,·SHA:·2c2df86f2afbfe3d87e77f9ea083b53e69f4a2aa7a69f6f52e9bd51d46379330·...·]/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where16 ····T:·<a·class="trait"·href="../../fmt/trait.Display.html"·title="trait·alloc::fmt::Display">Display</a>·+·?<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.to_string"·class="method·trait-impl"><a·class=[·...·truncated·by·diffoscope;·len:·896,·SHA:·74e477dd3d987253dd459192eab2c0b9b9fbf5c7dd792e4c1319bdb2ca39288a·...·]/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where
17 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="asso[·...·truncated·by·diffoscope;·len:·1973,·SHA:·db4b8407e8e20581ad139aef25a6221a11da0f5f18d6aa35aa33eb843f4e1b9f·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where17 ····U:·<a·class="trait"·href="../../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><[·...·truncated·by·diffoscope;·len:·1709,·SHA:·e896b9bb1c9fd7d11ed5b2485b9a6fcb8a8eedc15783c2750df398ecae6b320e·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where
18 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·clas[·...·truncated·by·diffoscope;·len:·1578,·SHA:·998d5af10fd889567cd999d1306bfd16c91134d2238a3c172f1e7fa8ed138c18·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>18 ····U:·<a·class="trait"·href="../../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-[·...·truncated·by·diffoscope;·len:·1338,·SHA:·bf7fc0d673df53e1a193a897ac1592a2d85070ae590f9624c2e5404df56f3bb0·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>
55.8 KB
./usr/share/doc/rust-doc/html/alloc/collections/enum.TryReserveErrorKind.html
    
Offset 5, 22 lines modifiedOffset 5, 22 lines modified
5 ········<span·class="comment">/*·private·fields·*/</span>5 ········<span·class="comment">/*·private·fields·*/</span>
6 ····},6 ····},
7 }</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>try_reserve_kind</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/48043">#48043</a>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Details·of·the·allocation·that·caused·a·<code>TryReserveError</code></p>7 }</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>try_reserve_kind</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/48043">#48043</a>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Details·of·the·allocation·that·caused·a·<code>TryReserveError</code></p>
8 </div></details><h2·id="variants"·class="variants·section-header">Variants<a·href="#variants"·class="anchor">§</a></h2><div·class="variants"><section·id="variant.CapacityOverflow"·class="variant"><a·href="#variant.CapacityOverflow"·class="anchor">§</a><h3·class="code-header">CapacityOverflow</h3></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>try_reserve_kind</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/48043">#48043</a>)</span></div></span><div·class="docblock"><p>Error·due·to·the·computed·capacity·exceeding·the·collection’s·maximum8 </div></details><h2·id="variants"·class="variants·section-header">Variants<a·href="#variants"·class="anchor">§</a></h2><div·class="variants"><section·id="variant.CapacityOverflow"·class="variant"><a·href="#variant.CapacityOverflow"·class="anchor">§</a><h3·class="code-header">CapacityOverflow</h3></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>try_reserve_kind</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/48043">#48043</a>)</span></div></span><div·class="docblock"><p>Error·due·to·the·computed·capacity·exceeding·the·collection’s·maximum
9 (usually·<code>isize::MAX</code>·bytes).</p>9 (usually·<code>isize::MAX</code>·bytes).</p>
10 </div><section·id="variant.AllocError"·class="variant"><a·href="#variant.AllocError"·class="anchor">§</a><h3·class="code-header">AllocError</h3></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>try_reserve_kind</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/48043">#48043</a>)</span></div></span><div·class="docblock"><p>The·memory·allocator·returned·an·error</p>10 </div><section·id="variant.AllocError"·class="variant"><a·href="#variant.AllocError"·class="anchor">§</a><h3·class="code-header">AllocError</h3></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>try_reserve_kind</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/48043">#48043</a>)</span></div></span><div·class="docblock"><p>The·memory·allocator·returned·an·error</p>
11 </div><div·class="sub-variant"·id="variant.AllocError.fields"><h4>Fields</h4><div·class="sub-variant-field"><span·id="variant.AllocError.field.layout"·class="section-header"><a·href="#variant.AllocError.field.layout"·class="anchor·field">§</a><code>layout:·<a·class="struct"·href="../alloc/struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a></code></span><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>try_reserve_kind</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/48043">#48043</a>)</span></div></span><div·class="docblock"><p>The·layout·of·allocation·request·that·failed</p>11 </div><div·class="sub-variant"·id="variant.AllocError.fields"><h4>Fields</h4><div·class="sub-variant-field"><span·id="variant.AllocError.field.layout"·class="section-header"><a·href="#variant.AllocError.field.layout"·class="anchor·field">§</a><code>layout:·<a·class="struct"·href="../alloc/struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a></code></span><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>try_reserve_kind</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/48043">#48043</a>)</span></div></span><div·class="docblock"><p>The·layout·of·allocation·request·that·failed</p>
12 </div></div></div></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-TryReserveErrorKind"·class="impl"><a·class="src·rightside"·href="../../src/alloc/collections/mod.rs.html#77">Source</a><a·href="#impl-Clone-for-TryReserveErrorKind"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="enum"·href="enum.TryReserveErrorKind.html"·title="enum·alloc::collections::TryReserveErrorKind">TryReserveErrorKind</a></h3></section></s[·...·truncated·by·diffoscope;·len:·3892,·SHA:·90fc5816154a56904472fc176c0ccfc19fe9ab34d364c96f949779bde284ae00·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(_:·<a·class="struct"·href="../alloc/struct.LayoutError.html"·title="struct·alloc::alloc::LayoutError">LayoutError</a>)·-&gt;·Self</h4></section></summary><div·class="docblock"><p>Always·evaluates·to·<a·href="enum.TryReserveErrorKind.html#variant.CapacityOverflow"·title="variant·alloc::collections::TryReserveErrorKind::CapacityOverflow"><code>TryReserveErrorKind::CapacityOverflow</code></a>.</p>12 </div></div></div></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-TryReserveErrorKind"·class="impl"><a·class="src·rightside"·href="../../src/alloc/collections/mod.rs.html#77">Source</a><a·href="#impl-Clone-for-TryReserveErrorKind"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="enum"·href="enum.TryReserveErrorKind.html"·title="enum·alloc::collections::TryReserveErrorKind">TryReserveErrorKind</a></h3></section></summary><div·class="impl-ite[·...·truncated·by·diffoscope;·len:·3676,·SHA:·852b304ff0e2eddf6f00a21d036c689c96c855c5d59b96e2ff62a89972609b69·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(_:·<a·class="struct"·href="../alloc/struct.LayoutError.html"·title="struct·alloc::alloc::LayoutError">LayoutError</a>)·-&gt;·Self</h4></section></summary><div·class="docblock"><p>Always·evaluates·to·<a·href="enum.TryReserveErrorKind.html#variant.CapacityOverflow"·title="variant·alloc::collections::TryReserveErrorKind::CapacityOverflow"><code>TryReserveErrorKind::CapacityOverflow</code></a>.</p>
13 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-From%3CTryReserveErrorKind%3E-for-TryReserveError"·class="impl"><a·class="src·rightside"·href="../../src/alloc/collections/mod.rs.html#111-116">Source</a><a·href="#impl-From%3CTryReserveErrorKind%3E-for-TryReserveError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;<a·class="enum"·href="enum.TryReserveErrorKind.html"·title="enum·alloc::collections::TryReserveErrorKind">TryReserveErrorKind</a>&gt;·for·<a·class=[·...·truncated·by·diffoscope;·len:·2859,·SHA:·ece4a37bcb1886212270b7177cd4b8af10f9f1509c03690c6da8416761cb334b·...·]/core/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>!=</code>.·The·default·implementation·is·almost·always·sufficient,13 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-From%3CTryReserveErrorKind%3E-for-TryReserveError"·class="impl"><a·class="src·rightside"·href="../../src/alloc/collections/mod.rs.html#111-116">Source</a><a·href="#impl-From%3CTryReserveErrorKind%3E-for-TryReserveError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;<a·class="enum"·href="enum.TryReserveErrorKind.html"·title="enum·alloc::collections::TryReserveErrorKind">TryReserveErrorKind</a>&gt;·for·<a·class="struct"·href="struct.TryRe[·...·truncated·by·diffoscope;·len:·2616,·SHA:·eb369f87a32fa52c4f5c0f14ccf6377a4fdddbd76c4ce878bb51e3d350230c4e·...·]/core/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>!=</code>.·The·default·implementation·is·almost·always·sufficient,
14 and·should·not·be·overridden·without·very·good·reason.</div></details></div></details><section·id="impl-Eq-for-TryReserveErrorKind"·class="impl"><a·class="src·rightside"·href="../../src/alloc/collections/mod.rs.html#77">Source</a><a·href="#impl-Eq-for-TryReserveErrorKind"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.Eq.html"·title="trait·core::cmp::Eq">Eq</a>·for·<a·class="enum"·href="enum.TryReserveErrorKind.html"·title="enum·alloc::collections::TryReserveErrorKind">TryReserveErrorKind</a></h3></section><section·id="imp[·...·truncated·by·diffoscope;·len:·4001,·SHA:·d8a50db445b1ae46c894453271e012d3bfd75c67dc7ed56e4b2bf49b3e8ba8a4·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where14 and·should·not·be·overridden·without·very·good·reason.</div></details></div></details><section·id="impl-Eq-for-TryReserveErrorKind"·class="impl"><a·class="src·rightside"·href="../../src/alloc/collections/mod.rs.html#77">Source</a><a·href="#impl-Eq-for-TryReserveErrorKind"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/cmp/trait.Eq.html"·title="trait·core::cmp::Eq">Eq</a>·for·<a·class="enum"·href="enum.TryReserveErrorKind.html"·title="enum·alloc::collections::TryReserveErrorKind">TryReserveErrorKind</a></h3></section><section·id="impl-StructuralPartialEq-for-T[·...·truncated·by·diffoscope;·len:·3731,·SHA:·3317ffbcc93f40a6f07a5a28813327b564ca1c7565233d84c1f2ede29c8a9993·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where
15 ····T:·'static·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method[·...·truncated·by·diffoscope;·len:·834,·SHA:·47dfc2aa0101a4103e2a94c1f971c559790d87a62d58631fd2bfed98e6616a34·...·]/src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where15 ····T:·'static·+·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·[·...·truncated·by·diffoscope;·len:·672,·SHA:·ace7a059971745d739c5abd9821e5d1d485cc233fd42150ceb251bdea1ce6bf7·...·]/src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where
16 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·[·...·truncated·by·diffoscope;·len:·737,·SHA:·9e65370662e77fc5c56c98c66a5dfda3c1d1244574dc8806ab91a8967514da78·...·]/src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.BorrowMut.html"·title="trait·alloc::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where16 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·r[·...·truncated·by·diffoscope;·len:·629,·SHA:·8e6f5d2e4a2830729c5d495459113ca6f54993696d7dc71c1f46e5691f5108ed·...·]/src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.BorrowMut.html"·title="trait·alloc::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where
17 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="met[·...·truncated·by·diffoscope;·len:·954,·SHA:·5ca69698d4bb8de1849b64ae87544dc0ec2bdd1a4d8dc75ba8d58b2c6c6a9ae6·...·]/core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where17 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="s[·...·truncated·by·diffoscope;·len:·819,·SHA:·3ca215d87d373be29774fff31d75c216034e4aa910e49de0e3fc5b88c46bc387·...·]/core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where
18 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="[·...·truncated·by·diffoscope;·len:·1887,·SHA:·9915878f137d7ea42d5168f62d8654f0a89992dd6786e1f782f7a4bb2c2e87dc·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>18 ····T:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·class[·...·truncated·by·diffoscope;·len:·1617,·SHA:·d051faf9dd8e8dc6250e3fa513b5e58ca312519c53a9a58647e62c2aedca94c0·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>
19 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where19 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where
20 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="m[·...·truncated·by·diffoscope;·len:·237,·SHA:·98603c35860102b3af9b5cf27aeabf39e3c03236551986a6ec030817f108d919·...·]/core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>20 ····U:·<a·class="trait"·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class=[·...·truncated·by·diffoscope;·len:·156,·SHA:·79561c49c77b14346871935198fc061d00c9e84705db975b0451f5fb4f6af9a0·...·]/core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>
21 <p>That·is,·this·conversion·is·whatever·the·implementation·of21 <p>That·is,·this·conversion·is·whatever·the·implementation·of
22 <code><a·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>22 <code><a·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>
23 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#82-94">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where23 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#82-94">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where
24 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·t[·...·truncated·by·diffoscope;·len:·1979,·SHA:·f368483b3c0c332622730cfd8e12b999a38da27428f159611e979a5a04486d0c·...·]/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where24 ····T:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src·ri[·...·truncated·by·diffoscope;·len:·1871,·SHA:·5d02ea96bd0cae49516e469609d9e5f2add38a0bdc9952dbf03901b514350c50·...·]/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where
25 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="asso[·...·truncated·by·diffoscope;·len:·1973,·SHA:·db4b8407e8e20581ad139aef25a6221a11da0f5f18d6aa35aa33eb843f4e1b9f·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where25 ····U:·<a·class="trait"·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·c[·...·truncated·by·diffoscope;·len:·1676,·SHA:·4c73b68f4fb433b5f24fbcd660156381e5dd9f46425d075b558b9b6ca0705f88·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where
26 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·clas[·...·truncated·by·diffoscope;·len:·1578,·SHA:·998d5af10fd889567cd999d1306bfd16c91134d2238a3c172f1e7fa8ed138c18·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>26 ····U:·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-imp[·...·truncated·by·diffoscope;·len:·1308,·SHA:·6741e462a0e1b36010204263b7580305663bb27f362987d14303068592f9f358·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>
67.7 KB
./usr/share/doc/rust-doc/html/alloc/collections/linked_list/struct.Cursor.html
    
Offset 1, 51 lines modifiedOffset 1, 51 lines modified
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="A·cursor·over·a·`LinkedList`."><title>Cursor·in·alloc::collections::linked_list·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»2025-01-07)»     (built»       from»   a»  source»    tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Cursor</a></h2><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.as_list"·title="as_list">as_list</a></li><li><a·href="#method.back"·title="back">back</a></li><li><a·href="#method.current"·title="current">current</a></li><li><a·href="#method.front"·title="front">front</a></li><li><a·href="#method.index"·title="index">index</a></li><li><a·href="#method.move_next"·title="move_next">move_next</a></li><li><a·href="#method.move_prev"·title="move_prev">move_prev</a></li><li><a·href="#method.peek_next"·title="peek_next">peek_next</a></li><li><a·href="#method.peek_prev"·title="peek_prev">peek_prev</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-Cursor%3C'_,+T,+A%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-Cursor%3C'_,+T,+A%3E"·title="Debug">Debug</a></li><li><a·href="#impl-Send-for-Cursor%3C'_,+T,+A%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-Cursor%3C'_,+T,+A%3E"·title="Sync">Sync</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-Cursor%3C'a,+T,+A%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Cursor%3C'a,+T,+A%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Unpin-for-Cursor%3C'a,+T,+A%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Cursor%3C'a,+T,+A%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>collections::<wbr>linked_<wbr>list</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">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">linked_list</a></span><h1>Struct·<span·class="struct">Cursor</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/alloc/collections/linked_list.rs.html#1327-1335">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·Cursor&lt;'a,·T:·'a,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·=·<a·class="struct"·href="../../alloc/struct.Global.html"·title="struct·alloc::alloc::Global">Global</a>&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>linked_list_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/58533">#58533</a>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>A·cursor·over·a·<code>LinkedList</code>.</p>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="A·cursor·over·a·`LinkedList`."><title>Cursor·in·alloc::collections::linked_list·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»2025-01-07)»     (built»       from»   a»  source»    tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Cursor</a></h2><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.as_list"·title="as_list">as_list</a></li><li><a·href="#method.back"·title="back">back</a></li><li><a·href="#method.current"·title="current">current</a></li><li><a·href="#method.front"·title="front">front</a></li><li><a·href="#method.index"·title="index">index</a></li><li><a·href="#method.move_next"·title="move_next">move_next</a></li><li><a·href="#method.move_prev"·title="move_prev">move_prev</a></li><li><a·href="#method.peek_next"·title="peek_next">peek_next</a></li><li><a·href="#method.peek_prev"·title="peek_prev">peek_prev</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-Cursor%3C'_,+T,+A%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-Cursor%3C'_,+T,+A%3E"·title="Debug">Debug</a></li><li><a·href="#impl-Send-for-Cursor%3C'_,+T,+A%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-Cursor%3C'_,+T,+A%3E"·title="Sync">Sync</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-Cursor%3C'a,+T,+A%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Cursor%3C'a,+T,+A%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Unpin-for-Cursor%3C'a,+T,+A%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Cursor%3C'a,+T,+A%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>collections::<wbr>linked_<wbr>list</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">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">linked_list</a></span><h1>Struct·<span·class="struct">Cursor</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/alloc/collections/linked_list.rs.html#1327-1335">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·Cursor&lt;'a,·T:·'a,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·=·<a·class="struct"·href="../../alloc/struct.Global.html"·title="struct·alloc::alloc::Global">Global</a>&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>linked_list_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/58533">#58533</a>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>A·cursor·over·a·<code>LinkedList</code>.</p>
2 <p>A·<code>Cursor</code>·is·like·an·iterator,·except·that·it·can·freely·seek·back-and-forth.</p>2 <p>A·<code>Cursor</code>·is·like·an·iterator,·except·that·it·can·freely·seek·back-and-forth.</p>
3 <p>Cursors·always·rest·between·two·elements·in·the·list,·and·index·in·a·logically·circular·way.3 <p>Cursors·always·rest·between·two·elements·in·the·list,·and·index·in·a·logically·circular·way.
4 To·accommodate·this,·there·is·a·“ghost”·non-element·that·yields·<code>None</code>·between·the·head·and4 To·accommodate·this,·there·is·a·“ghost”·non-element·that·yields·<code>None</code>·between·the·head·and
5 tail·of·the·list.</p>5 tail·of·the·list.</p>
6 <p>When·created,·cursors·start·at·the·front·of·the·list,·or·the·“ghost”·non-element·if·the·list·is·empty.</p>6 <p>When·created,·cursors·start·at·the·front·of·the·list,·or·the·“ghost”·non-element·if·the·list·is·empty.</p>
7 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Cursor%3C'a,+T,+A%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/linked_list.rs.html#1380-1505">Source</a><a·href="#impl-Cursor%3C'a,+T,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·T,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>&gt;·<a·class="struct"·href="struct.Cursor.html"·title="struct·alloc::collections::linked_list::Cursor">Cursor</a>&lt;'a,·T,·A&gt;</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.index"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/linked_list.rs.html#1387-1390">Source</a><h4·class="code-header">pub·fn·<a·href="#method.index"·class="fn">index</a>(&amp;self)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.usize.html">usize</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>linked_list_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/58533">#58533</a>)</span></div></span></summary><div·class="docblock"><p>Returns·the·cursor·position·index·within·the·<code>LinkedList</code>.</p>7 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Cursor%3C'a,+T,+A%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/linked_list.rs.html#1380-1505">Source</a><a·href="#impl-Cursor%3C'a,+T,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·T,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>&gt;·<a·class="struct"·href="struct.Cursor.html"·title="struct·alloc::collections::linked_list::Cursor">Cursor</a>&lt;'a,·T,·A&gt;</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.index"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/linked_list.rs.html#1387-1390">Source</a><h4·class="code-header">pub·fn·<a·href="#method.index"·class="fn">index</a>(&amp;self)·-&gt;·<a·class="enum"·href="../../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="../../../core/primitive.usize.html">usize</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>linked_list_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/58533">#58533</a>)</span></div></span></summary><div·class="docblock"><p>Returns·the·cursor·position·index·within·the·<code>LinkedList</code>.</p>
8 <p>This·returns·<code>None</code>·if·the·cursor·is·currently·pointing·to·the8 <p>This·returns·<code>None</code>·if·the·cursor·is·currently·pointing·to·the
9 “ghost”·non-element.</p>9 “ghost”·non-element.</p>
10 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.move_next"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/linked_list.rs.html#1398-1412">Source</a><h4·class="code-header">pub·fn·<a·href="#method.move_next"·class="fn">move_next</a>(&amp;mut·self)</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>linked_list_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/58533">#58533</a>)</span></div></span></summary><div·class="docblock"><p>Moves·the·cursor·to·the·next·element·of·the·<code>LinkedList</code>.</p>10 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.move_next"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/linked_list.rs.html#1398-1412">Source</a><h4·class="code-header">pub·fn·<a·href="#method.move_next"·class="fn">move_next</a>(&amp;mut·self)</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>linked_list_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/58533">#58533</a>)</span></div></span></summary><div·class="docblock"><p>Moves·the·cursor·to·the·next·element·of·the·<code>LinkedList</code>.</p>
11 <p>If·the·cursor·is·pointing·to·the·“ghost”·non-element·then·this·will·move·it·to11 <p>If·the·cursor·is·pointing·to·the·“ghost”·non-element·then·this·will·move·it·to
12 the·first·element·of·the·<code>LinkedList</code>.·If·it·is·pointing·to·the·last12 the·first·element·of·the·<code>LinkedList</code>.·If·it·is·pointing·to·the·last
13 element·of·the·<code>LinkedList</code>·then·this·will·move·it·to·the·“ghost”·non-element.</p>13 element·of·the·<code>LinkedList</code>·then·this·will·move·it·to·the·“ghost”·non-element.</p>
14 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.move_prev"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/linked_list.rs.html#1420-1433">Source</a><h4·class="code-header">pub·fn·<a·href="#method.move_prev"·class="fn">move_prev</a>(&amp;mut·self)</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>linked_list_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/58533">#58533</a>)</span></div></span></summary><div·class="docblock"><p>Moves·the·cursor·to·the·previous·element·of·the·<code>LinkedList</code>.</p>14 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.move_prev"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/linked_list.rs.html#1420-1433">Source</a><h4·class="code-header">pub·fn·<a·href="#method.move_prev"·class="fn">move_prev</a>(&amp;mut·self)</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>linked_list_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/58533">#58533</a>)</span></div></span></summary><div·class="docblock"><p>Moves·the·cursor·to·the·previous·element·of·the·<code>LinkedList</code>.</p>
15 <p>If·the·cursor·is·pointing·to·the·“ghost”·non-element·then·this·will·move·it·to15 <p>If·the·cursor·is·pointing·to·the·“ghost”·non-element·then·this·will·move·it·to
16 the·last·element·of·the·<code>LinkedList</code>.·If·it·is·pointing·to·the·first16 the·last·element·of·the·<code>LinkedList</code>.·If·it·is·pointing·to·the·first
17 element·of·the·<code>LinkedList</code>·then·this·will·move·it·to·the·“ghost”·non-element.</p>17 element·of·the·<code>LinkedList</code>·then·this·will·move·it·to·the·“ghost”·non-element.</p>
18 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.current"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/linked_list.rs.html#1442-1444">Source</a><h4·class="code-header">pub·fn·<a·href="#method.current"·class="fn">current</a>(&amp;self)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;'a·T</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>linked_list_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/58533">#58533</a>)</span></div></span></summary><div·class="docblock"><p>Returns·a·reference·to·the·element·that·the·cursor·is·currently18 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.current"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/linked_list.rs.html#1442-1444">Source</a><h4·class="code-header">pub·fn·<a·href="#method.current"·class="fn">current</a>(&amp;self)·-&gt;·<a·class="enum"·href="../../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;'a·T</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>linked_list_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/58533">#58533</a>)</span></div></span></summary><div·class="docblock"><p>Returns·a·reference·to·the·element·that·the·cursor·is·currently
19 pointing·to.</p>19 pointing·to.</p>
20 <p>This·returns·<code>None</code>·if·the·cursor·is·currently·pointing·to·the20 <p>This·returns·<code>None</code>·if·the·cursor·is·currently·pointing·to·the
21 “ghost”·non-element.</p>21 “ghost”·non-element.</p>
22 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peek_next"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/linked_list.rs.html#1453-1461">Source</a><h4·class="code-header">pub·fn·<a·href="#method.peek_next"·class="fn">peek_next</a>(&amp;self)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;'a·T</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>linked_list_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/58533">#58533</a>)</span></div></span></summary><div·class="docblock"><p>Returns·a·reference·to·the·next·element.</p>22 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peek_next"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/linked_list.rs.html#1453-1461">Source</a><h4·class="code-header">pub·fn·<a·href="#method.peek_next"·class="fn">peek_next</a>(&amp;self)·-&gt;·<a·class="enum"·href="../../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;'a·T</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>linked_list_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/58533">#58533</a>)</span></div></span></summary><div·class="docblock"><p>Returns·a·reference·to·the·next·element.</p>
23 <p>If·the·cursor·is·pointing·to·the·“ghost”·non-element·then·this·returns23 <p>If·the·cursor·is·pointing·to·the·“ghost”·non-element·then·this·returns
24 the·first·element·of·the·<code>LinkedList</code>.·If·it·is·pointing·to·the·last24 the·first·element·of·the·<code>LinkedList</code>.·If·it·is·pointing·to·the·last
25 element·of·the·<code>LinkedList</code>·then·this·returns·<code>None</code>.</p>25 element·of·the·<code>LinkedList</code>·then·this·returns·<code>None</code>.</p>
26 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peek_prev"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/linked_list.rs.html#1470-1478">Source</a><h4·class="code-header">pub·fn·<a·href="#method.peek_prev"·class="fn">peek_prev</a>(&amp;self)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;'a·T</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>linked_list_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/58533">#58533</a>)</span></div></span></summary><div·class="docblock"><p>Returns·a·reference·to·the·previous·element.</p>26 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peek_prev"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/linked_list.rs.html#1470-1478">Source</a><h4·class="code-header">pub·fn·<a·href="#method.peek_prev"·class="fn">peek_prev</a>(&amp;self)·-&gt;·<a·class="enum"·href="../../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;'a·T</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>linked_list_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/58533">#58533</a>)</span></div></span></summary><div·class="docblock"><p>Returns·a·reference·to·the·previous·element.</p>
27 <p>If·the·cursor·is·pointing·to·the·“ghost”·non-element·then·this·returns27 <p>If·the·cursor·is·pointing·to·the·“ghost”·non-element·then·this·returns
28 the·last·element·of·the·<code>LinkedList</code>.·If·it·is·pointing·to·the·first28 the·last·element·of·the·<code>LinkedList</code>.·If·it·is·pointing·to·the·first
29 element·of·the·<code>LinkedList</code>·then·this·returns·<code>None</code>.</p>29 element·of·the·<code>LinkedList</code>·then·this·returns·<code>None</code>.</p>
30 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.front"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/linked_list.rs.html#1485-1487">Source</a><h4·class="code-header">pub·fn·<a·href="#method.front"·class="fn">front</a>(&amp;self)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;'a·T</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>linked_list_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/58533">#58533</a>)</span></div></span></summary><div·class="docblock"><p>Provides·a·reference·to·the·front·element·of·the·cursor’s·parent·list,30 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.front"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/linked_list.rs.html#1485-1487">Source</a><h4·class="code-header">pub·fn·<a·href="#method.front"·class="fn">front</a>(&amp;self)·-&gt;·<a·class="enum"·href="../../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;'a·T</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>linked_list_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/58533">#58533</a>)</span></div></span></summary><div·class="docblock"><p>Provides·a·reference·to·the·front·element·of·the·cursor’s·parent·list,
31 or·None·if·the·list·is·empty.</p>31 or·None·if·the·list·is·empty.</p>
32 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.back"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/linked_list.rs.html#1494-1496">Source</a><h4·class="code-header">pub·fn·<a·href="#method.back"·class="fn">back</a>(&amp;self)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;'a·T</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>linked_list_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/58533">#58533</a>)</span></div></span></summary><div·class="docblock"><p>Provides·a·reference·to·the·back·element·of·the·cursor’s·parent·list,32 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.back"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/linked_list.rs.html#1494-1496">Source</a><h4·class="code-header">pub·fn·<a·href="#method.back"·class="fn">back</a>(&amp;self)·-&gt;·<a·class="enum"·href="../../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;'a·T</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>linked_list_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/58533">#58533</a>)</span></div></span></summary><div·class="docblock"><p>Provides·a·reference·to·the·back·element·of·the·cursor’s·parent·list,
33 or·None·if·the·list·is·empty.</p>33 or·None·if·the·list·is·empty.</p>
34 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.as_list"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/linked_list.rs.html#1502-1504">Source</a><h4·class="code-header">pub·fn·<a·href="#method.as_list"·class="fn">as_list</a>(&amp;self)·-&gt;·&amp;'a·<a·class="struct"·href="struct.LinkedList.html"·title="struct·alloc::collections::linked_list::LinkedList">LinkedList</a>&lt;T,·A&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>linked_list_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/58533">#58533</a>)</span></div></span></summary><div·class="docblock"><p>Provides·a·reference·to·the·cursor’s·parent·list.</p>34 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.as_list"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/linked_list.rs.html#1502-1504">Source</a><h4·class="code-header">pub·fn·<a·href="#method.as_list"·class="fn">as_list</a>(&amp;self)·-&gt;·&amp;'a·<a·class="struct"·href="struct.LinkedList.html"·title="struct·alloc::collections::linked_list::LinkedList">LinkedList</a>&lt;T,·A&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>linked_list_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/58533">#58533</a>)</span></div></span></summary><div·class="docblock"><p>Provides·a·reference·to·the·cursor’s·parent·list.</p>
35 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-Cursor%3C'_,+T,+A%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/linked_list.rs.html#1338-1343">Source</a><a·href="#impl-Clone-for-Cursor%3C'_,+T,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struct"·href="struct.Cursor.html"·title="struct·alloc::collections::linked_list::Cursor">Cursor</a>&lt;'_,·T,·A&gt;</h3></section></summa[·...·truncated·by·diffoscope;·len:·5670,·SHA:·b2b6f501cf7e2b49ba219b77bc22a161e1e55af2fc7286253858044d4ac254e4·...·]/core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="struct"·href="struct.Cursor.html"·title="struct·alloc::collections::linked_list::Cursor">Cursor</a>&lt;'a,·T,·A&gt;<div·class="where">where35 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-Cursor%3C'_,+T,+A%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/linked_list.rs.html#1338-1343">Source</a><a·href="#impl-Clone-for-Cursor%3C'_,+T,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>&gt;·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struct"·href="struct.Cursor.html"·title="struct·alloc::collections::linked_list::Cursor">Cursor</a>&lt;'_,·T,·A&gt;</h3></section></summary><div·class="impl-item[·...·truncated·by·diffoscope;·len:·5334,·SHA:·2ead25696eac69230d5c47f9fd0ac5edded0b59b03b7c393eeedade6ae907e09·...·]/core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="struct"·href="struct.Cursor.html"·title="struct·alloc::collections::linked_list::Cursor">Cursor</a>&lt;'a,·T,·A&gt;<div·class="where">where
36 ····A:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,36 ····A:·<a·class="trait"·href="../../../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,
37 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,</div></h3></section><section·id="impl-Unpin-for-Cursor%3C'a,+T,+A%3E"·class="impl"><a·href="#impl-Unp[·...·truncated·by·diffoscope;·len:·608,·SHA:·8484ae25b49f1e0090b03625aeb731cecda321ea561ae3d569672a9060ed582c·...·]/core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="struct"·href="struct.Cursor.html"·title="struct·alloc::collections::linked_list::Cursor">Cursor</a>&lt;'a,·T,·A&gt;<div·class="where">where37 ····T:·<a·class="trait"·href="../../../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,</div></h3></section><section·id="impl-Unpin-for-Cursor%3C'a,+T,+A%3E"·class="impl"><a·href="#impl-Unpin-for-Cursor%3C'a,+T,+A[·...·truncated·by·diffoscope;·len:·536,·SHA:·a1022c40f648f5226e14ca4148550d825000343837b869d11ffe6a7b551d1918·...·]/core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="struct"·href="struct.Cursor.html"·title="struct·alloc::collections::linked_list::Cursor">Cursor</a>&lt;'a,·T,·A&gt;<div·class="where">where
38 ····A:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,38 ····A:·<a·class="trait"·href="../../../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,
39 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,</div></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementat[·...·truncated·by·diffoscope;·len:·437,·SHA:·a52fd08e1c9354801da0d71245c94faa82849943038ee3eff62637aaedf75d65·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where39 ····T:·<a·class="trait"·href="../../../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,</div></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementations<a·href="#blanket-im[·...·truncated·by·diffoscope;·len:·365,·SHA:·f00ece4f5872815019648692969de68b1bd616c3a7718f1a6de7310f204999e9·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where
40 ····T:·'static·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method[·...·truncated·by·diffoscope;·len:·834,·SHA:·47dfc2aa0101a4103e2a94c1f971c559790d87a62d58631fd2bfed98e6616a34·...·]/src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where40 ····T:·'static·+·?<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="s[·...·truncated·by·diffoscope;·len:·690,·SHA:·5140301cd9ff79a41eb9c4e21645354b7b39f4611f9b3646b7c859a62ac61067·...·]/src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where
41 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·[·...·truncated·by·diffoscope;·len:·743,·SHA:·b1db3ba49d399b0b1340fa997418ee1ae0ece93cc3579963c53bf7040ec0ded6·...·]/src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.BorrowMut.html"·title="trait·alloc::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where41 ····T:·?<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="sr[·...·truncated·by·diffoscope;·len:·647,·SHA:·eced384f314b303c18919389c5abe4a96aec1091fccffab1a095e21ec4389338·...·]/src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.BorrowMut.html"·title="trait·alloc::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where
42 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="met[·...·truncated·by·diffoscope;·len:·960,·SHA:·c6354ea8fcf3b570a130235df299ddea9063b0fb7e35c91d7c9308744705dcad·...·]/core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where42 ····T:·?<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class[·...·truncated·by·diffoscope;·len:·840,·SHA:·65730076d1351b96bbc7870dcc45245c8046decde9b269779ff691512c7b6cda·...·]/core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where
43 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="[·...·truncated·by·diffoscope;·len:·1883,·SHA:·e07301fb9e28f950d7450480a6b68014ffcdcc3be12b1adda27936cb1244377e·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>43 ····T:·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·cl[·...·truncated·by·diffoscope;·len:·1643,·SHA:·1eae2ed9452ffcbbe8b3cb569c26d9b61c935793fb647d6b79fd502b505ae03b·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>
44 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where44 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where
45 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="m[·...·truncated·by·diffoscope;·len:·237,·SHA:·98603c35860102b3af9b5cf27aeabf39e3c03236551986a6ec030817f108d919·...·]/core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>45 ····U:·<a·class="trait"·href="../../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·cla[·...·truncated·by·diffoscope;·len:·165,·SHA:·423a04a226f49c7f9a948f8c413dc8519f4a9a96a55914b6e6a694710d81c0f7·...·]/core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>
46 <p>That·is,·this·conversion·is·whatever·the·implementation·of46 <p>That·is,·this·conversion·is·whatever·the·implementation·of
47 <code><a·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>47 <code><a·href="../../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>
48 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/borrow.rs.html#82-94">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where48 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/borrow.rs.html#82-94">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where
49 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·t[·...·truncated·by·diffoscope;·len:·2003,·SHA:·ecb61562e7a62580c9ad7b3f8856e4e317eddb7fa8d5eb388664331cf5eb31c0·...·]/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where49 ····T:·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src[·...·truncated·by·diffoscope;·len:·1907,·SHA:·a3ba85d2ecc25713cf37fd24854d68ee7f0f59359c2678ed0204a7cdb8c27a28·...·]/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where
50 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="asso[·...·truncated·by·diffoscope;·len:·1973,·SHA:·db4b8407e8e20581ad139aef25a6221a11da0f5f18d6aa35aa33eb843f4e1b9f·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where50 ····U:·<a·class="trait"·href="../../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><[·...·truncated·by·diffoscope;·len:·1709,·SHA:·e896b9bb1c9fd7d11ed5b2485b9a6fcb8a8eedc15783c2750df398ecae6b320e·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where
51 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·clas[·...·truncated·by·diffoscope;·len:·1578,·SHA:·998d5af10fd889567cd999d1306bfd16c91134d2238a3c172f1e7fa8ed138c18·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>51 ····U:·<a·class="trait"·href="../../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-[·...·truncated·by·diffoscope;·len:·1338,·SHA:·bf7fc0d673df53e1a193a897ac1592a2d85070ae590f9624c2e5404df56f3bb0·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>
71.1 KB
./usr/share/doc/rust-doc/html/alloc/collections/linked_list/struct.CursorMut.html
    
Offset 2, 34 lines modifiedOffset 2, 34 lines modified
2 <p>A·<code>Cursor</code>·is·like·an·iterator,·except·that·it·can·freely·seek·back-and-forth,·and·can2 <p>A·<code>Cursor</code>·is·like·an·iterator,·except·that·it·can·freely·seek·back-and-forth,·and·can
3 safely·mutate·the·list·during·iteration.·This·is·because·the·lifetime·of·its·yielded3 safely·mutate·the·list·during·iteration.·This·is·because·the·lifetime·of·its·yielded
4 references·is·tied·to·its·own·lifetime,·instead·of·just·the·underlying·list.·This·means4 references·is·tied·to·its·own·lifetime,·instead·of·just·the·underlying·list.·This·means
5 cursors·cannot·yield·multiple·elements·at·once.</p>5 cursors·cannot·yield·multiple·elements·at·once.</p>
6 <p>Cursors·always·rest·between·two·elements·in·the·list,·and·index·in·a·logically·circular·way.6 <p>Cursors·always·rest·between·two·elements·in·the·list,·and·index·in·a·logically·circular·way.
7 To·accommodate·this,·there·is·a·“ghost”·non-element·that·yields·<code>None</code>·between·the·head·and7 To·accommodate·this,·there·is·a·“ghost”·non-element·that·yields·<code>None</code>·between·the·head·and
8 tail·of·the·list.</p>8 tail·of·the·list.</p>
9 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-CursorMut%3C'a,+T,+A%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/linked_list.rs.html#1507-1627">Source</a><a·href="#impl-CursorMut%3C'a,+T,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·T,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>&gt;·<a·class="struct"·href="struct.CursorMut.html"·title="struct·alloc::collections::linked_list::CursorMut">CursorMut</a>&lt;'a,·T,·A&gt;</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.index"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/linked_list.rs.html#1514-1517">Source</a><h4·class="code-header">pub·fn·<a·href="#method.index"·class="fn">index</a>(&amp;self)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.usize.html">usize</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>linked_list_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/58533">#58533</a>)</span></div></span></summary><div·class="docblock"><p>Returns·the·cursor·position·index·within·the·<code>LinkedList</code>.</p>9 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-CursorMut%3C'a,+T,+A%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/linked_list.rs.html#1507-1627">Source</a><a·href="#impl-CursorMut%3C'a,+T,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·T,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>&gt;·<a·class="struct"·href="struct.CursorMut.html"·title="struct·alloc::collections::linked_list::CursorMut">CursorMut</a>&lt;'a,·T,·A&gt;</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.index"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/linked_list.rs.html#1514-1517">Source</a><h4·class="code-header">pub·fn·<a·href="#method.index"·class="fn">index</a>(&amp;self)·-&gt;·<a·class="enum"·href="../../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="../../../core/primitive.usize.html">usize</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>linked_list_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/58533">#58533</a>)</span></div></span></summary><div·class="docblock"><p>Returns·the·cursor·position·index·within·the·<code>LinkedList</code>.</p>
10 <p>This·returns·<code>None</code>·if·the·cursor·is·currently·pointing·to·the10 <p>This·returns·<code>None</code>·if·the·cursor·is·currently·pointing·to·the
11 “ghost”·non-element.</p>11 “ghost”·non-element.</p>
12 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.move_next"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/linked_list.rs.html#1525-1539">Source</a><h4·class="code-header">pub·fn·<a·href="#method.move_next"·class="fn">move_next</a>(&amp;mut·self)</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>linked_list_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/58533">#58533</a>)</span></div></span></summary><div·class="docblock"><p>Moves·the·cursor·to·the·next·element·of·the·<code>LinkedList</code>.</p>12 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.move_next"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/linked_list.rs.html#1525-1539">Source</a><h4·class="code-header">pub·fn·<a·href="#method.move_next"·class="fn">move_next</a>(&amp;mut·self)</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>linked_list_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/58533">#58533</a>)</span></div></span></summary><div·class="docblock"><p>Moves·the·cursor·to·the·next·element·of·the·<code>LinkedList</code>.</p>
13 <p>If·the·cursor·is·pointing·to·the·“ghost”·non-element·then·this·will·move·it·to13 <p>If·the·cursor·is·pointing·to·the·“ghost”·non-element·then·this·will·move·it·to
14 the·first·element·of·the·<code>LinkedList</code>.·If·it·is·pointing·to·the·last14 the·first·element·of·the·<code>LinkedList</code>.·If·it·is·pointing·to·the·last
15 element·of·the·<code>LinkedList</code>·then·this·will·move·it·to·the·“ghost”·non-element.</p>15 element·of·the·<code>LinkedList</code>·then·this·will·move·it·to·the·“ghost”·non-element.</p>
16 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.move_prev"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/linked_list.rs.html#1547-1560">Source</a><h4·class="code-header">pub·fn·<a·href="#method.move_prev"·class="fn">move_prev</a>(&amp;mut·self)</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>linked_list_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/58533">#58533</a>)</span></div></span></summary><div·class="docblock"><p>Moves·the·cursor·to·the·previous·element·of·the·<code>LinkedList</code>.</p>16 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.move_prev"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/linked_list.rs.html#1547-1560">Source</a><h4·class="code-header">pub·fn·<a·href="#method.move_prev"·class="fn">move_prev</a>(&amp;mut·self)</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>linked_list_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/58533">#58533</a>)</span></div></span></summary><div·class="docblock"><p>Moves·the·cursor·to·the·previous·element·of·the·<code>LinkedList</code>.</p>
17 <p>If·the·cursor·is·pointing·to·the·“ghost”·non-element·then·this·will·move·it·to17 <p>If·the·cursor·is·pointing·to·the·“ghost”·non-element·then·this·will·move·it·to
18 the·last·element·of·the·<code>LinkedList</code>.·If·it·is·pointing·to·the·first18 the·last·element·of·the·<code>LinkedList</code>.·If·it·is·pointing·to·the·first
19 element·of·the·<code>LinkedList</code>·then·this·will·move·it·to·the·“ghost”·non-element.</p>19 element·of·the·<code>LinkedList</code>·then·this·will·move·it·to·the·“ghost”·non-element.</p>
20 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.current"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/linked_list.rs.html#1569-1571">Source</a><h4·class="code-header">pub·fn·<a·href="#method.current"·class="fn">current</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;mut·T</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>linked_list_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/58533">#58533</a>)</span></div></span></summary><div·class="docblock"><p>Returns·a·reference·to·the·element·that·the·cursor·is·currently20 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.current"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/linked_list.rs.html#1569-1571">Source</a><h4·class="code-header">pub·fn·<a·href="#method.current"·class="fn">current</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="../../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;mut·T</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>linked_list_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/58533">#58533</a>)</span></div></span></summary><div·class="docblock"><p>Returns·a·reference·to·the·element·that·the·cursor·is·currently
21 pointing·to.</p>21 pointing·to.</p>
22 <p>This·returns·<code>None</code>·if·the·cursor·is·currently·pointing·to·the22 <p>This·returns·<code>None</code>·if·the·cursor·is·currently·pointing·to·the
23 “ghost”·non-element.</p>23 “ghost”·non-element.</p>
24 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peek_next"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/linked_list.rs.html#1579-1587">Source</a><h4·class="code-header">pub·fn·<a·href="#method.peek_next"·class="fn">peek_next</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;mut·T</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>linked_list_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/58533">#58533</a>)</span></div></span></summary><div·class="docblock"><p>Returns·a·reference·to·the·next·element.</p>24 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peek_next"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/linked_list.rs.html#1579-1587">Source</a><h4·class="code-header">pub·fn·<a·href="#method.peek_next"·class="fn">peek_next</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="../../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;mut·T</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>linked_list_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/58533">#58533</a>)</span></div></span></summary><div·class="docblock"><p>Returns·a·reference·to·the·next·element.</p>
25 <p>If·the·cursor·is·pointing·to·the·“ghost”·non-element·then·this·returns25 <p>If·the·cursor·is·pointing·to·the·“ghost”·non-element·then·this·returns
26 the·first·element·of·the·<code>LinkedList</code>.·If·it·is·pointing·to·the·last26 the·first·element·of·the·<code>LinkedList</code>.·If·it·is·pointing·to·the·last
27 element·of·the·<code>LinkedList</code>·then·this·returns·<code>None</code>.</p>27 element·of·the·<code>LinkedList</code>·then·this·returns·<code>None</code>.</p>
28 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peek_prev"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/linked_list.rs.html#1595-1603">Source</a><h4·class="code-header">pub·fn·<a·href="#method.peek_prev"·class="fn">peek_prev</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;mut·T</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>linked_list_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/58533">#58533</a>)</span></div></span></summary><div·class="docblock"><p>Returns·a·reference·to·the·previous·element.</p>28 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peek_prev"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/linked_list.rs.html#1595-1603">Source</a><h4·class="code-header">pub·fn·<a·href="#method.peek_prev"·class="fn">peek_prev</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="../../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;mut·T</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>linked_list_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/58533">#58533</a>)</span></div></span></summary><div·class="docblock"><p>Returns·a·reference·to·the·previous·element.</p>
29 <p>If·the·cursor·is·pointing·to·the·“ghost”·non-element·then·this·returns29 <p>If·the·cursor·is·pointing·to·the·“ghost”·non-element·then·this·returns
30 the·last·element·of·the·<code>LinkedList</code>.·If·it·is·pointing·to·the·first30 the·last·element·of·the·<code>LinkedList</code>.·If·it·is·pointing·to·the·first
31 element·of·the·<code>LinkedList</code>·then·this·returns·<code>None</code>.</p>31 element·of·the·<code>LinkedList</code>·then·this·returns·<code>None</code>.</p>
32 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.as_cursor"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/linked_list.rs.html#1612-1614">Source</a><h4·class="code-header">pub·fn·<a·href="#method.as_cursor"·class="fn">as_cursor</a>(&amp;self)·-&gt;·<a·class="struct"·href="struct.Cursor.html"·title="struct·alloc::collections::linked_list::Cursor">Cursor</a>&lt;'_,·T,·A&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>linked_list_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/58533">#58533</a>)</span></div></span></summary><div·class="docblock"><p>Returns·a·read-only·cursor·pointing·to·the·current·element.</p>32 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.as_cursor"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/linked_list.rs.html#1612-1614">Source</a><h4·class="code-header">pub·fn·<a·href="#method.as_cursor"·class="fn">as_cursor</a>(&amp;self)·-&gt;·<a·class="struct"·href="struct.Cursor.html"·title="struct·alloc::collections::linked_list::Cursor">Cursor</a>&lt;'_,·T,·A&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>linked_list_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/58533">#58533</a>)</span></div></span></summary><div·class="docblock"><p>Returns·a·read-only·cursor·pointing·to·the·current·element.</p>
33 <p>The·lifetime·of·the·returned·<code>Cursor</code>·is·bound·to·that·of·the33 <p>The·lifetime·of·the·returned·<code>Cursor</code>·is·bound·to·that·of·the
34 <code>CursorMut</code>,·which·means·it·cannot·outlive·the·<code>CursorMut</code>·and·that·the34 <code>CursorMut</code>,·which·means·it·cannot·outlive·the·<code>CursorMut</code>·and·that·the
35 <code>CursorMut</code>·is·frozen·for·the·lifetime·of·the·<code>Cursor</code>.</p>35 <code>CursorMut</code>·is·frozen·for·the·lifetime·of·the·<code>Cursor</code>.</p>
Offset 45, 60 lines modifiedOffset 45, 60 lines modified
45 inserted·at·the·end·of·the·<code>LinkedList</code>.</p>45 inserted·at·the·end·of·the·<code>LinkedList</code>.</p>
46 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-CursorMut%3C'a,+T,+A%3E-1"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/linked_list.rs.html#1676-1932">Source</a><a·href="#impl-CursorMut%3C'a,+T,+A%3E-1"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·T,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>&gt;·<a·class="struct"·href="struct.CursorMut.html"·title="struct·alloc::collections::linked_list::CursorMut">CursorMut</a>&lt;'a,·T,·A&gt;</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.insert_after"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/linked_list.rs.html#1682-1695">Source</a><h4·class="code-header">pub·fn·<a·href="#method.insert_after"·class="fn">insert_after</a>(&amp;mut·self,·item:·T)</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>linked_list_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/58533">#58533</a>)</span></div></span></summary><div·class="docblock"><p>Inserts·a·new·element·into·the·<code>LinkedList</code>·after·the·current·one.</p>46 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-CursorMut%3C'a,+T,+A%3E-1"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/linked_list.rs.html#1676-1932">Source</a><a·href="#impl-CursorMut%3C'a,+T,+A%3E-1"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·T,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>&gt;·<a·class="struct"·href="struct.CursorMut.html"·title="struct·alloc::collections::linked_list::CursorMut">CursorMut</a>&lt;'a,·T,·A&gt;</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.insert_after"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/linked_list.rs.html#1682-1695">Source</a><h4·class="code-header">pub·fn·<a·href="#method.insert_after"·class="fn">insert_after</a>(&amp;mut·self,·item:·T)</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>linked_list_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/58533">#58533</a>)</span></div></span></summary><div·class="docblock"><p>Inserts·a·new·element·into·the·<code>LinkedList</code>·after·the·current·one.</p>
47 <p>If·the·cursor·is·pointing·at·the·“ghost”·non-element·then·the·new·element·is47 <p>If·the·cursor·is·pointing·at·the·“ghost”·non-element·then·the·new·element·is
48 inserted·at·the·front·of·the·<code>LinkedList</code>.</p>48 inserted·at·the·front·of·the·<code>LinkedList</code>.</p>
49 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.insert_before"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/linked_list.rs.html#1702-1712">Source</a><h4·class="code-header">pub·fn·<a·href="#method.insert_before"·class="fn">insert_before</a>(&amp;mut·self,·item:·T)</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>linked_list_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/58533">#58533</a>)</span></div></span></summary><div·class="docblock"><p>Inserts·a·new·element·into·the·<code>LinkedList</code>·before·the·current·one.</p>49 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.insert_before"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/linked_list.rs.html#1702-1712">Source</a><h4·class="code-header">pub·fn·<a·href="#method.insert_before"·class="fn">insert_before</a>(&amp;mut·self,·item:·T)</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>linked_list_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/58533">#58533</a>)</span></div></span></summary><div·class="docblock"><p>Inserts·a·new·element·into·the·<code>LinkedList</code>·before·the·current·one.</p>
50 <p>If·the·cursor·is·pointing·at·the·“ghost”·non-element·then·the·new·element·is50 <p>If·the·cursor·is·pointing·at·the·“ghost”·non-element·then·the·new·element·is
51 inserted·at·the·end·of·the·<code>LinkedList</code>.</p>51 inserted·at·the·end·of·the·<code>LinkedList</code>.</p>
52 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.remove_current"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/linked_list.rs.html#1722-1730">Source</a><h4·class="code-header">pub·fn·<a·href="#method.remove_current"·class="fn">remove_current</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;T&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>linked_list_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/58533">#58533</a>)</span></div></span></summary><div·class="docblock"><p>Removes·the·current·element·from·the·<code>LinkedList</code>.</p>52 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.remove_current"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/linked_list.rs.html#1722-1730">Source</a><h4·class="code-header">pub·fn·<a·href="#method.remove_current"·class="fn">remove_current</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="../../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;T&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>linked_list_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/58533">#58533</a>)</span></div></span></summary><div·class="docblock"><p>Removes·the·current·element·from·the·<code>LinkedList</code>.</p>
53 <p>The·element·that·was·removed·is·returned,·and·the·cursor·is53 <p>The·element·that·was·removed·is·returned,·and·the·cursor·is
54 moved·to·point·to·the·next·element·in·the·<code>LinkedList</code>.</p>54 moved·to·point·to·the·next·element·in·the·<code>LinkedList</code>.</p>
55 <p>If·the·cursor·is·currently·pointing·to·the·“ghost”·non-element·then·no·element55 <p>If·the·cursor·is·currently·pointing·to·the·“ghost”·non-element·then·no·element
56 is·removed·and·<code>None</code>·is·returned.</p>56 is·removed·and·<code>None</code>·is·returned.</p>
57 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.remove_current_as_list"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/linked_list.rs.html#1740-1759">Source</a><h4·class="code-header">pub·fn·<a·href="#method.remove_current_as_list"·class="fn">remove_current_as_list</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="struct"·href="struct.LinkedList.html"·title="struct·alloc::collections::linked_list::LinkedList">LinkedList</a>&lt;T,·A&gt;&gt;<div·class="where">where57 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.remove_current_as_list"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/linked_list.rs.html#1740-1759">Source</a><h4·class="code-header">pub·fn·<a·href="#method.remove_current_as_list"·class="fn">remove_current_as_list</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="../../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="struct"·href="struct.LinkedList.html"·title="struct·alloc::collections::linked_list::LinkedList">LinkedList</a>&lt;T,·A&gt;&gt;<div·class="where">where
58 ····A:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>linked_list_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/58533">#58533</a>)</span></div></span></summary><div·class="docblock"><p>Removes·the·current·element·from·the·<code>LinkedList</code>·without·deallocating·the·list·node.</p>58 ····A:·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>linked_list_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/58533">#58533</a>)</span></div></span></summary><div·class="docblock"><p>Removes·the·current·element·from·the·<code>LinkedList</code>·without·deallocating·the·list·node.</p>
59 <p>The·node·that·was·removed·is·returned·as·a·new·<code>LinkedList</code>·containing·only·this·node.59 <p>The·node·that·was·removed·is·returned·as·a·new·<code>LinkedList</code>·containing·only·this·node.
60 The·cursor·is·moved·to·point·to·the·next·element·in·the·current·<code>LinkedList</code>.</p>60 The·cursor·is·moved·to·point·to·the·next·element·in·the·current·<code>LinkedList</code>.</p>
61 <p>If·the·cursor·is·currently·pointing·to·the·“ghost”·non-element·then·no·element61 <p>If·the·cursor·is·currently·pointing·to·the·“ghost”·non-element·then·no·element
62 is·removed·and·<code>None</code>·is·returned.</p>62 is·removed·and·<code>None</code>·is·returned.</p>
63 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.split_after"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/linked_list.rs.html#1768-1778">Source</a><h4·class="code-header">pub·fn·<a·href="#method.split_after"·class="fn">split_after</a>(&amp;mut·self)·-&gt;·<a·class="struct"·href="struct.LinkedList.html"·title="struct·alloc::collections::linked_list::LinkedList">LinkedList</a>&lt;T,·A&gt;<div·class="where">where63 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.split_after"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/linked_list.rs.html#1768-1778">Source</a><h4·class="code-header">pub·fn·<a·href="#method.split_after"·class="fn">split_after</a>(&amp;mut·self)·-&gt;·<a·class="struct"·href="struct.LinkedList.html"·title="struct·alloc::collections::linked_list::LinkedList">LinkedList</a>&lt;T,·A&gt;<div·class="where">where
64 ····A:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>linked_list_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/58533">#58533</a>)</span></div></span></summary><div·class="docblock"><p>Splits·the·list·into·two·after·the·current·element.·This·will·return·a64 ····A:·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>linked_list_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/58533">#58533</a>)</span></div></span></summary><div·class="docblock"><p>Splits·the·list·into·two·after·the·current·element.·This·will·return·a
65 new·list·consisting·of·everything·after·the·cursor,·with·the·original65 new·list·consisting·of·everything·after·the·cursor,·with·the·original
66 list·retaining·everything·before.</p>66 list·retaining·everything·before.</p>
67 <p>If·the·cursor·is·pointing·at·the·“ghost”·non-element·then·the·entire·contents67 <p>If·the·cursor·is·pointing·at·the·“ghost”·non-element·then·the·entire·contents
68 of·the·<code>LinkedList</code>·are·moved.</p>68 of·the·<code>LinkedList</code>·are·moved.</p>
69 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.split_before"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/linked_list.rs.html#1787-1794">Source</a><h4·class="code-header">pub·fn·<a·href="#method.split_before"·class="fn">split_before</a>(&amp;mut·self)·-&gt;·<a·class="struct"·href="struct.LinkedList.html"·title="struct·alloc::collections::linked_list::LinkedList">LinkedList</a>&lt;T,·A&gt;<div·class="where">where69 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.split_before"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/linked_list.rs.html#1787-1794">Source</a><h4·class="code-header">pub·fn·<a·href="#method.split_before"·class="fn">split_before</a>(&amp;mut·self)·-&gt;·<a·class="struct"·href="struct.LinkedList.html"·title="struct·alloc::collections::linked_list::LinkedList">LinkedList</a>&lt;T,·A&gt;<div·class="where">where
70 ····A:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>linked_list_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/58533">#58533</a>)</span></div></span></summary><div·class="docblock"><p>Splits·the·list·into·two·before·the·current·element.·This·will·return·a70 ····A:·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>linked_list_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/58533">#58533</a>)</span></div></span></summary><div·class="docblock"><p>Splits·the·list·into·two·before·the·current·element.·This·will·return·a
71 new·list·consisting·of·everything·before·the·cursor,·with·the·original71 new·list·consisting·of·everything·before·the·cursor,·with·the·original
72 list·retaining·everything·after.</p>72 list·retaining·everything·after.</p>
73 <p>If·the·cursor·is·pointing·at·the·“ghost”·non-element·then·the·entire·contents73 <p>If·the·cursor·is·pointing·at·the·“ghost”·non-element·then·the·entire·contents
74 of·the·<code>LinkedList</code>·are·moved.</p>74 of·the·<code>LinkedList</code>·are·moved.</p>
75 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.push_front"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/linked_list.rs.html#1803-1809">Source</a><h4·class="code-header">pub·fn·<a·href="#method.push_front"·class="fn">push_front</a>(&amp;mut·self,·elt:·T)</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>linked_list_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/58533">#58533</a>)</span></div></span></summary><div·class="docblock"><p>Appends·an·element·to·the·front·of·the·cursor’s·parent·list.·The·node75 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.push_front"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/linked_list.rs.html#1803-1809">Source</a><h4·class="code-header">pub·fn·<a·href="#method.push_front"·class="fn">push_front</a>(&amp;mut·self,·elt:·T)</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>linked_list_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/58533">#58533</a>)</span></div></span></summary><div·class="docblock"><p>Appends·an·element·to·the·front·of·the·cursor’s·parent·list.·The·node
76 that·the·cursor·points·to·is·unchanged,·even·if·it·is·the·“ghost”·node.</p>76 that·the·cursor·points·to·is·unchanged,·even·if·it·is·the·“ghost”·node.</p>
77 <p>This·operation·should·compute·in·<em>O</em>(1)·time.</p>77 <p>This·operation·should·compute·in·<em>O</em>(1)·time.</p>
78 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.push_back"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/linked_list.rs.html#1817-1827">Source</a><h4·class="code-header">pub·fn·<a·href="#method.push_back"·class="fn">push_back</a>(&amp;mut·self,·elt:·T)</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>linked_list_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/58533">#58533</a>)</span></div></span></summary><div·class="docblock"><p>Appends·an·element·to·the·back·of·the·cursor’s·parent·list.·The·node78 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.push_back"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/linked_list.rs.html#1817-1827">Source</a><h4·class="code-header">pub·fn·<a·href="#method.push_back"·class="fn">push_back</a>(&amp;mut·self,·elt:·T)</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>linked_list_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/58533">#58533</a>)</span></div></span></summary><div·class="docblock"><p>Appends·an·element·to·the·back·of·the·cursor’s·parent·list.·The·node
79 that·the·cursor·points·to·is·unchanged,·even·if·it·is·the·“ghost”·node.</p>79 that·the·cursor·points·to·is·unchanged,·even·if·it·is·the·“ghost”·node.</p>
80 <p>This·operation·should·compute·in·<em>O</em>(1)·time.</p>80 <p>This·operation·should·compute·in·<em>O</em>(1)·time.</p>
81 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.pop_front"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/linked_list.rs.html#1836-1854">Source</a><h4·class="code-header">pub·fn·<a·href="#method.pop_front"·class="fn">pop_front</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;T&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>linked_list_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/58533">#58533</a>)</span></div></span></summary><div·class="docblock"><p>Removes·the·first·element·from·the·cursor’s·parent·list·and·returns·it,81 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.pop_front"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/linked_list.rs.html#1836-1854">Source</a><h4·class="code-header">pub·fn·<a·href="#method.pop_front"·class="fn">pop_front</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="../../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;T&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>linked_list_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/58533">#58533</a>)</span></div></span></summary><div·class="docblock"><p>Removes·the·first·element·from·the·cursor’s·parent·list·and·returns·it,
82 or·None·if·the·list·is·empty.·The·element·the·cursor·points·to·remains82 or·None·if·the·list·is·empty.·The·element·the·cursor·points·to·remains
83 unchanged,·unless·it·was·pointing·to·the·front·element.·In·that·case,·it83 unchanged,·unless·it·was·pointing·to·the·front·element.·In·that·case,·it
84 points·to·the·new·front·element.</p>84 points·to·the·new·front·element.</p>
85 <p>This·operation·should·compute·in·<em>O</em>(1)·time.</p>85 <p>This·operation·should·compute·in·<em>O</em>(1)·time.</p>
86 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.pop_back"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/linked_list.rs.html#1864-1878">Source</a><h4·class="code-header">pub·fn·<a·href="#method.pop_back"·class="fn">pop_back</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;T&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>linked_list_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/58533">#58533</a>)</span></div></span></summary><div·class="docblock"><p>Removes·the·last·element·from·the·cursor’s·parent·list·and·returns·it,86 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.pop_back"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/linked_list.rs.html#1864-1878">Source</a><h4·class="code-header">pub·fn·<a·href="#method.pop_back"·class="fn">pop_back</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="../../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;T&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>linked_list_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/58533">#58533</a>)</span></div></span></summary><div·class="docblock"><p>Removes·the·last·element·from·the·cursor’s·parent·list·and·returns·it,
87 or·None·if·the·list·is·empty.·The·element·the·cursor·points·to·remains87 or·None·if·the·list·is·empty.·The·element·the·cursor·points·to·remains
88 unchanged,·unless·it·was·pointing·to·the·back·element.·In·that·case,·it88 unchanged,·unless·it·was·pointing·to·the·back·element.·In·that·case,·it
89 points·to·the·“ghost”·element.</p>89 points·to·the·“ghost”·element.</p>
90 <p>This·operation·should·compute·in·<em>O</em>(1)·time.</p>90 <p>This·operation·should·compute·in·<em>O</em>(1)·time.</p>
91 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.front"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/linked_list.rs.html#1885-1887">Source</a><h4·class="code-header">pub·fn·<a·href="#method.front"·class="fn">front</a>(&amp;self)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;T</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>linked_list_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/58533">#58533</a>)</span></div></span></summary><div·class="docblock"><p>Provides·a·reference·to·the·front·element·of·the·cursor’s·parent·list,91 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.front"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/linked_list.rs.html#1885-1887">Source</a><h4·class="code-header">pub·fn·<a·href="#method.front"·class="fn">front</a>(&amp;self)·-&gt;·<a·class="enum"·href="../../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;T</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>linked_list_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/58533">#58533</a>)</span></div></span></summary><div·class="docblock"><p>Provides·a·reference·to·the·front·element·of·the·cursor’s·parent·list,
92 or·None·if·the·list·is·empty.</p>92 or·None·if·the·list·is·empty.</p>
93 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.front_mut"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/linked_list.rs.html#1893-1895">Source</a><h4·class="code-header">pub·fn·<a·href="#method.front_mut"·class="fn">front_mut</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;mut·T</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>linked_list_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/58533">#58533</a>)</span></div></span></summary><div·class="docblock"><p>Provides·a·mutable·reference·to·the·front·element·of·the·cursor’s93 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.front_mut"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/linked_list.rs.html#1893-1895">Source</a><h4·class="code-header">pub·fn·<a·href="#method.front_mut"·class="fn">front_mut</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="../../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;mut·T</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>linked_list_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/58533">#58533</a>)</span></div></span></summary><div·class="docblock"><p>Provides·a·mutable·reference·to·the·front·element·of·the·cursor’s
94 parent·list,·or·None·if·the·list·is·empty.</p>94 parent·list,·or·None·if·the·list·is·empty.</p>
95 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.back"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/linked_list.rs.html#1902-1904">Source</a><h4·class="code-header">pub·fn·<a·href="#method.back"·class="fn">back</a>(&amp;self)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;T</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>linked_list_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/58533">#58533</a>)</span></div></span></summary><div·class="docblock"><p>Provides·a·reference·to·the·back·element·of·the·cursor’s·parent·list,95 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.back"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/linked_list.rs.html#1902-1904">Source</a><h4·class="code-header">pub·fn·<a·href="#method.back"·class="fn">back</a>(&amp;self)·-&gt;·<a·class="enum"·href="../../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;T</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>linked_list_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/58533">#58533</a>)</span></div></span></summary><div·class="docblock"><p>Provides·a·reference·to·the·back·element·of·the·cursor’s·parent·list,
96 or·None·if·the·list·is·empty.</p>96 or·None·if·the·list·is·empty.</p>
97 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.back_mut"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/linked_list.rs.html#1929-1931">Source</a><h4·class="code-header">pub·fn·<a·href="#method.back_mut"·class="fn">back_mut</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;mut·T</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>linked_list_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/58533">#58533</a>)</span></div></span></summary><div·class="docblock"><p>Provides·a·mutable·reference·to·back·element·of·the·cursor’s·parent97 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.back_mut"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/linked_list.rs.html#1929-1931">Source</a><h4·class="code-header">pub·fn·<a·href="#method.back_mut"·class="fn">back_mut</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="../../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;mut·T</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>linked_list_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/58533">#58533</a>)</span></div></span></summary><div·class="docblock"><p>Provides·a·mutable·reference·to·back·element·of·the·cursor’s·parent
98 list,·or·<code>None</code>·if·the·list·is·empty.</p>98 list,·or·<code>None</code>·if·the·list·is·empty.</p>
99 <h5·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h5>99 <h5·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h5>
100 <p>Building·and·mutating·a·list·with·a·cursor,·then·getting·the·back·element:</p>100 <p>Building·and·mutating·a·list·with·a·cursor,·then·getting·the·back·element:</p>
  
101 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(linked_list_cursors)]101 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(linked_list_cursors)]
102 </span><span·class="kw">use·</span>std::collections::LinkedList;102 </span><span·class="kw">use·</span>std::collections::LinkedList;
103 <span·class="kw">let·</span><span·class="kw-2">mut·</span>dl·=·LinkedList::new();103 <span·class="kw">let·</span><span·class="kw-2">mut·</span>dl·=·LinkedList::new();
Offset 109, 20 lines modifiedOffset 109, 20 lines modified
109 <span·class="kw-2">*</span>cursor.current().unwrap()·=·<span·class="number">99</span>;109 <span·class="kw-2">*</span>cursor.current().unwrap()·=·<span·class="number">99</span>;
110 <span·class="kw-2">*</span>cursor.back_mut().unwrap()·=·<span·class="number">0</span>;110 <span·class="kw-2">*</span>cursor.back_mut().unwrap()·=·<span·class="number">0</span>;
111 <span·class="kw">let·</span><span·class="kw-2">mut·</span>contents·=·dl.into_iter();111 <span·class="kw">let·</span><span·class="kw-2">mut·</span>contents·=·dl.into_iter();
112 <span·class="macro">assert_eq!</span>(contents.next(),·<span·class="prelude-val">Some</span>(<span·class="number">99</span>));112 <span·class="macro">assert_eq!</span>(contents.next(),·<span·class="prelude-val">Some</span>(<span·class="number">99</span>));
113 <span·class="macro">assert_eq!</span>(contents.next(),·<span·class="prelude-val">Some</span>(<span·class="number">2</span>));113 <span·class="macro">assert_eq!</span>(contents.next(),·<span·class="prelude-val">Some</span>(<span·class="number">2</span>));
114 <span·class="macro">assert_eq!</span>(contents.next(),·<span·class="prelude-val">Some</span>(<span·class="number">0</span>));114 <span·class="macro">assert_eq!</span>(contents.next(),·<span·class="prelude-val">Some</span>(<span·class="number">0</span>));
115 <span·class="macro">assert_eq!</span>(contents.next(),·<span·class="prelude-val">None</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Bfeature(linked_list_cursors)%5D%0Afn+main()+%7B%0A++++use+std::collections::LinkedList;%0A++++let+mut+dl+=+LinkedList::new();%0A++++dl.push_front(3);%0A++++dl.push_front(2);%0A++++dl.push_front(1);%0A++++let+mut+cursor+=+dl.cursor_front_mut();%0A++++*cursor.current().unwrap()+=+99;%0A++++*cursor.back_mut().unwrap()+=+0;%0A++++let+mut+contents+=+dl.into_iter();%0A++++assert_eq!(contents.next(),+Some(99));%0A++++assert_eq!(contents.next(),+Some(2));%0A++++assert_eq!(contents.next(),+Some(0));%0A++++assert_eq!(contents.next(),+None);%0A%7D&amp;version=nightly&amp;edition=2021"></a></div>115 <span·class="macro">assert_eq!</span>(contents.next(),·<span·class="prelude-val">None</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Bfeature(linked_list_cursors)%5D%0Afn+main()+%7B%0A++++use+std::collections::LinkedList;%0A++++let+mut+dl+=+LinkedList::new();%0A++++dl.push_front(3);%0A++++dl.push_front(2);%0A++++dl.push_front(1);%0A++++let+mut+cursor+=+dl.cursor_front_mut();%0A++++*cursor.current().unwrap()+=+99;%0A++++*cursor.back_mut().unwrap()+=+0;%0A++++let+mut+contents+=+dl.into_iter();%0A++++assert_eq!(contents.next(),+Some(99));%0A++++assert_eq!(contents.next(),+Some(2));%0A++++assert_eq!(contents.next(),+Some(0));%0A++++assert_eq!(contents.next(),+None);%0A%7D&amp;version=nightly&amp;edition=2021"></a></div>
116 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-CursorMut%3C'_,+T,+A%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/linked_list.rs.html#1374-1378">Source</a><a·href="#impl-Debug-for-CursorMut%3C'_,+T,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T:·<a·class="trait"·href="../../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>&gt;·<a·class="trait"·href="../../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.CursorMut.html"·title="struct·alloc::collections::linked_list::CursorMut">CursorMut</a>&lt;'_,·T,·A&gt;</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../../../src/alloc/collections/linked_list.rs.html#1375-1377">Source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="../../fmt/struct.Formatter.html"·title="struct·alloc::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="type"·href="../../fmt/type.Result.html"·title="type·alloc::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../../fmt/trait.Debug.html#tymethod.fmt">Read·more</a></div></details></div></details><section·id="impl-Send-for-CursorMut%3C'_,+T,+A%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/linked_list.rs.html#2240">Source</a><a·href="#impl-Send-for-CursorMut%3C'_,+T,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·+·<a·class="trait"·href="https://doc.ru[·...·truncated·by·diffoscope;·len:·2208,·SHA:·393201fe6275082bedc8b1d82d77c60d97709996064af3bee4e81f32cb302f47·...·]/core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="struct"·href="struct.CursorMut.html"·title="struct·alloc::collections::linked_list::CursorMut">CursorMut</a>&lt;'a,·T,·A&gt;<div·class="where">where116 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-CursorMut%3C'_,+T,+A%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/linked_list.rs.html#1374-1378">Source</a><a·href="#impl-Debug-for-CursorMut%3C'_,+T,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T:·<a·class="trait"·href="../../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>&gt;·<a·class="trait"·href="../../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.CursorMut.html"·title="struct·alloc::collections::linked_list::CursorMut">CursorMut</a>&lt;'_,·T,·A&gt;</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../../../src/alloc/collections/linked_list.rs.html#1375-1377">Source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="../../fmt/struct.Formatter.html"·title="struct·alloc::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="type"·href="../../fmt/type.Result.html"·title="type·alloc::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../../fmt/trait.Debug.html#tymethod.fmt">Read·more</a></div></details></div></details><section·id="impl-Send-for-CursorMut%3C'_,+T,+A%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/linked_list.rs.html#2240">Source</a><a·href="#impl-Send-for-CursorMut%3C'_,+T,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T:·<a·class="trait"·href="../../../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·+·<a·class="trait"·href="../../../core/marker/trait.Send.html"·[·...·truncated·by·diffoscope;·len:·2016,·SHA:·6f7fe84519a632dcff98805bfb95063f47374a335707087f9be5f8055c17d384·...·]/core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="struct"·href="struct.CursorMut.html"·title="struct·alloc::collections::linked_list::CursorMut">CursorMut</a>&lt;'a,·T,·A&gt;<div·class="where">where
117 ····A:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,117 ····A:·<a·class="trait"·href="../../../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,
118 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,</div></h3></section><section·id="impl-Unpin-for-CursorMut%3C'a,+T,+A%3E"·class="impl"><a·href="#impl-[·...·truncated·by·diffoscope;·len:·1519,·SHA:·cc2167ccb585a1e27a6300ea65614bac4560ac694fb822ad160c144615e721e4·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where118 ····T:·<a·class="trait"·href="../../../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,</div></h3></section><section·id="impl-Unpin-for-CursorMut%3C'a,+T,+A%3E"·class="impl"><a·href="#impl-Unpin-for-CursorMut%3C'a[·...·truncated·by·diffoscope;·len:·1399,·SHA:·7cc89e2a2dfa6422d2048c6c97566d28932703451efec4a6e4036156bc187325·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where
119 ····T:·'static·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method[·...·truncated·by·diffoscope;·len:·834,·SHA:·47dfc2aa0101a4103e2a94c1f971c559790d87a62d58631fd2bfed98e6616a34·...·]/src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where119 ····T:·'static·+·?<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="s[·...·truncated·by·diffoscope;·len:·690,·SHA:·5140301cd9ff79a41eb9c4e21645354b7b39f4611f9b3646b7c859a62ac61067·...·]/src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where
120 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·[·...·truncated·by·diffoscope;·len:·743,·SHA:·b1db3ba49d399b0b1340fa997418ee1ae0ece93cc3579963c53bf7040ec0ded6·...·]/src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.BorrowMut.html"·title="trait·alloc::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where120 ····T:·?<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="sr[·...·truncated·by·diffoscope;·len:·647,·SHA:·eced384f314b303c18919389c5abe4a96aec1091fccffab1a095e21ec4389338·...·]/src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.BorrowMut.html"·title="trait·alloc::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where
121 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="met[·...·truncated·by·diffoscope;·len:·1422,·SHA:·3b5041f32ed902526095ebde8745452b32cbfac2cd9503735eec716deff7280f·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>121 ····T:·?<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class[·...·truncated·by·diffoscope;·len:·1254,·SHA:·7fcbbe8bd9862b59809c60d05e5f59904ccadf8a3a9f11da30f9fcc6b839c5b3·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>
122 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where122 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where
123 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="m[·...·truncated·by·diffoscope;·len:·237,·SHA:·98603c35860102b3af9b5cf27aeabf39e3c03236551986a6ec030817f108d919·...·]/core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>123 ····U:·<a·class="trait"·href="../../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·cla[·...·truncated·by·diffoscope;·len:·165,·SHA:·423a04a226f49c7f9a948f8c413dc8519f4a9a96a55914b6e6a694710d81c0f7·...·]/core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>
124 <p>That·is,·this·conversion·is·whatever·the·implementation·of124 <p>That·is,·this·conversion·is·whatever·the·implementation·of
125 <code><a·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>125 <code><a·href="../../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>
126 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#805-807">Source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where126 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../../src/core/convert/mod.rs.html#805-807">Source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where
127 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="asso[·...·truncated·by·diffoscope;·len:·1973,·SHA:·db4b8407e8e20581ad139aef25a6221a11da0f5f18d6aa35aa33eb843f4e1b9f·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where127 ····U:·<a·class="trait"·href="../../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><[·...·truncated·by·diffoscope;·len:·1709,·SHA:·e896b9bb1c9fd7d11ed5b2485b9a6fcb8a8eedc15783c2750df398ecae6b320e·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where
128 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·clas[·...·truncated·by·diffoscope;·len:·1578,·SHA:·998d5af10fd889567cd999d1306bfd16c91134d2238a3c172f1e7fa8ed138c18·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>128 ····U:·<a·class="trait"·href="../../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-[·...·truncated·by·diffoscope;·len:·1338,·SHA:·bf7fc0d673df53e1a193a897ac1592a2d85070ae590f9624c2e5404df56f3bb0·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>
290 KB
./usr/share/doc/rust-doc/html/alloc/collections/linked_list/struct.ExtractIf.html
    
Offset 1, 218 lines modifiedOffset 1, 218 lines modified
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="An·iterator·produced·by·calling·`extract_if`·on·LinkedList."><title>ExtractIf·in·alloc::collections::linked_list·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»  2025-01-07)»       (built» from»     a»    source»      tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Extract<wbr>If</a></h2><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Debug-for-ExtractIf%3C'_,+T,+F%3E"·title="Debug">Debug</a></li><li><a·href="#impl-Iterator-for-ExtractIf%3C'_,+T,+F,+A%3E"·title="Iterator">Iterator</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Send-for-ExtractIf%3C'a,+T,+F,+A%3E"·title="!Send">!Send</a></li><li><a·href="#impl-Sync-for-ExtractIf%3C'a,+T,+F,+A%3E"·title="!Sync">!Sync</a></li><li><a·href="#impl-UnwindSafe-for-ExtractIf%3C'a,+T,+F,+A%3E"·title="!UnwindSafe">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-ExtractIf%3C'a,+T,+F,+A%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-ExtractIf%3C'a,+T,+F,+A%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Unpin-for-ExtractIf%3C'a,+T,+F,+A%3E"·title="Unpin">Unpin</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>collections::<wbr>linked_<wbr>list</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">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">linked_list</a></span><h1>Struct·<span·class="struct">ExtractIf</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/alloc/collections/linked_list.rs.html#1937-1950">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·ExtractIf&lt;'a,·T:·'a,·F,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·=·<a·class="struct"·href="../../alloc/struct.Global.html"·title="struct·alloc::alloc::Global">Global</a>&gt;<div·class="where">where1 <!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="An·iterator·produced·by·calling·`extract_if`·on·LinkedList."><title>ExtractIf·in·alloc::collections::linked_list·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»  2025-01-07)»       (built» from»     a»    source»      tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Extract<wbr>If</a></h2><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Debug-for-ExtractIf%3C'_,+T,+F%3E"·title="Debug">Debug</a></li><li><a·href="#impl-Iterator-for-ExtractIf%3C'_,+T,+F,+A%3E"·title="Iterator">Iterator</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Send-for-ExtractIf%3C'a,+T,+F,+A%3E"·title="!Send">!Send</a></li><li><a·href="#impl-Sync-for-ExtractIf%3C'a,+T,+F,+A%3E"·title="!Sync">!Sync</a></li><li><a·href="#impl-UnwindSafe-for-ExtractIf%3C'a,+T,+F,+A%3E"·title="!UnwindSafe">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-ExtractIf%3C'a,+T,+F,+A%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-ExtractIf%3C'a,+T,+F,+A%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Unpin-for-ExtractIf%3C'a,+T,+F,+A%3E"·title="Unpin">Unpin</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>collections::<wbr>linked_<wbr>list</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">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">linked_list</a></span><h1>Struct·<span·class="struct">ExtractIf</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/alloc/collections/linked_list.rs.html#1937-1950">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·ExtractIf&lt;'a,·T:·'a,·F,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·=·<a·class="struct"·href="../../alloc/struct.Global.html"·title="struct·alloc::alloc::Global">Global</a>&gt;<div·class="where">where
2 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;mut·T</a>)·-&gt;·<a·class="primitive"·hr[·...·truncated·by·diffoscope;·len:·36,·SHA:·2e0eaf63251a6128f861dece043b970f71c7553139f6837da9b5d10554ac1b73·...·]/core/primitive.bool.html">bool</a>·+·'a,</div>{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>extract_if</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/43244">#43244</a>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>An·iterator·produced·by·calling·<code>extract_if</code>·on·LinkedList.</p>2 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;mut·T</a>)·-&gt;·<a·class="primitive"·href="../../../core/primitive.bool.html">bool</a>·+·'a,</div>{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>extract_if</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/43244">#43244</a>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>An·iterator·produced·by·calling·<code>extract_if</code>·on·LinkedList.</p>
3 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-ExtractIf%3C'_,+T,+F%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/linked_list.rs.html#1982-1989">Source</a><a·href="#impl-Debug-for-ExtractIf%3C'_,+T,+F%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T:·<a·class="trait"·href="../../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,·F&gt;·<a·class="trait"·href="../../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.ExtractIf.html"·title="struct·alloc::collections::linked_list::ExtractIf">ExtractIf</a>&lt;'_,·T,·F&gt;<div·class="where">where3 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-ExtractIf%3C'_,+T,+F%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/linked_list.rs.html#1982-1989">Source</a><a·href="#impl-Debug-for-ExtractIf%3C'_,+T,+F%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T:·<a·class="trait"·href="../../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,·F&gt;·<a·class="trait"·href="../../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.ExtractIf.html"·title="struct·alloc::collections::linked_list::ExtractIf">ExtractIf</a>&lt;'_,·T,·F&gt;<div·class="where">where
4 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;mut·T</a>)·-&gt;·<a·class="primitive"·hr[·...·truncated·by·diffoscope;·len:·1416,·SHA:·e04d65570583b1b8029be89bd5a9fc10d02eb422c95733c17d1940e03fbed69c·...·]/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::Iterator">Iterator</a>·for·<a·class="struct"·href="struct.ExtractIf.html"·title="struct·alloc::collections::linked_list::ExtractIf">ExtractIf</a>&lt;'_,·T,·F,·A&gt;<div·class="where">where4 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;mut·T</a>)·-&gt;·<a·class="primitive"·href="../../../core/primitive.bool.html">bool</a>,[·...·truncated·by·diffoscope;·len:·1320,·SHA:·d454cbab1d4a8c0d3d3114320f238f23a481c61dd569fc14ff52cff318e3e693·...·]/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::Iterator">Iterator</a>·for·<a·class="struct"·href="struct.ExtractIf.html"·title="struct·alloc::collections::linked_list::ExtractIf">ExtractIf</a>&lt;'_,·T,·F,·A&gt;<div·class="where">where
5 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;mut·T</a>)·-&gt;·<a·class="primitive"·hr[·...·truncated·by·diffoscope;·len:·2972,·SHA:·5bf3455bf1321736074b21f98a566c50fc6d3ff81d933af6df9a757afc70748d·...·]/core/primitive.usize.html">usize</a>&gt;(5 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;mut·T</a>)·-&gt;·<a·class="primitive"·href="../../../core/primitive.bool.html">bool</a>,[·...·truncated·by·diffoscope;·len:·2612,·SHA:·bb42c1a22fb1d8d462607f7a19eca1000165a79b01f504ee2239f4f9c0042333·...·]/core/primitive.usize.html">usize</a>&gt;(
6 ····&amp;mut·self,6 ····&amp;mut·self,
7 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·4f557a9b49151e0be8c52ffd68f1def4469c08164239dc8bef8df2040551c5ef·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where7 )·-&gt;·<a·class="enum"·href="../../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::It[·...·truncated·by·diffoscope;·len:·261,·SHA:·9b488006768a86d05b68f4e1888c750c736264a3a386f1310f1b7e8bfc7d2184·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where
8 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·962,·SHA:·116e4ec2ae3d9655c3d115eaf50f435f5323b4e48b84de734c79d2a09b3c02f2·...·]/core/primitive.usize.html">usize</a><div·class="where">where8 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_next[·...·truncated·by·diffoscope;·len:·842,·SHA:·d8f387888e3ee78f4397f4b1a12eae734e055247e3aa3251433ab8ac1019b31a·...·]/core/primitive.usize.html">usize</a><div·class="where">where
9 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·counting·the·number·of·iterations·and·returning·it.·<a·href="https://doc.[·...·truncated·by·diffoscope;·len:·837,·SHA:·47e25b6f9687bcc1d1fcdf9842fb085e6aba767d70531028f948636b80563dfc·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where9 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·counting·the·number·of·iterations·and·returning·it.·<a·href="../../../core/iter/traits/iterator/t[·...·truncated·by·diffoscope;·len:·693,·SHA:·725f42ff290538a513ec93cf7284210e1c519a4cc200b6d5878e7ccff2777059·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
10 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·returning·the·last·element.·<a·href="https://doc.rust-lang.org/1.84.0/cor[·...·truncated·by·diffoscope;·len:·3504,·SHA:·ec43d0f6d8d2a1e0fb7a684c382b9934abe1250844e53cce08bdfc6017ecb276·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where10 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·returning·the·last·element.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#metho[·...·truncated·by·diffoscope;·len:·3024,·SHA:·33e764ec8aa4ce60da61c340591349678c8144088b1440d0c5d8b7b28ba27fc9·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where
11 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by11 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by
12 the·given·amount·at·each·iteration.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><sp[·...·truncated·by·diffoscope;·len:·842,·SHA:·945c4509a8daf2f8fbccc5c6e5089e225955911e03a3e411f047f96d52d16862·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where12 the·given·amount·at·each·iteration.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="[·...·truncated·by·diffoscope;·len:·698,·SHA:·035d2f4d2e6b01ddf0b424aa6fc3f5919c82f85f857cb9cfa0f54f8357058b90·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
13 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,13 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
14 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·3b5ce32f9d564c3aa7cf2adc7130e674758d0c0f4f1275b4c3b46a74aa802cb3·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where14 ····U:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·[·...·truncated·by·diffoscope;·len:·1137,·SHA:·7916ae3a9b5afad376aafc6d698165147d82613fe975f64423f2367a02a69f6a·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
15 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,15 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
16 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·[·...·truncated·by·diffoscope;·len:·868,·SHA:·abdbf27ccc84063c7040d8fa3da9d0bda5ee310a470ef576e15554aee4bd5d21·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where16 ····U:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·of·pairs.·<a·href="../..[·...·truncated·by·diffoscope;·len:·724,·SHA:·ba31078b5c50fbfc51e53bed6f70aaa6e7e320cfda19949035c71d9363c0d919·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where
17 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,17 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
18 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent18 ····Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent
19 items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="sr[·...·truncated·by·diffoscope;·len:·427,·SHA:·6e82ad4aad49c2165d869fe30d20a968580a973cdb3a7f4c77f49e16dd59393e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where19 items·of·the·original·iterator.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="src·rightside"·href="../..[·...·truncated·by·diffoscope;·len:·331,·SHA:·451e844c9bf5d6d78b9579516e4b9fafb3e84136eaa1c95bead4539370743d7d·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where
20 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,20 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
21 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>21 ····G:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>
22 between·adjacent·items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightsi[·...·truncated·by·diffoscope;·len:·471,·SHA:·ed10488b7b2ccc3e4cc84a9a57a9695a74c1c964962e8d753cbace12f3318a66·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where22 between·adjacent·items·of·the·original·iterator.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·[·...·truncated·by·diffoscope;·len:·375,·SHA:·7bbb71535f348e442b9de05a74f9180c9acec0636566fa2a19ab1dc83779aace·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where
23 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,23 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
24 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each24 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each
25 element.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><spa[·...·truncated·by·diffoscope;·len:·306,·SHA:·61c87c39b177830189b0e4c036d97c40d8b9649d76432c90afb88de59498e8b2·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where25 element.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="S[·...·truncated·by·diffoscope;·len:·234,·SHA:·55463e0fb539911d03265cbd8abb7248189471ea74954185ed77f245746805c2·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where
26 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,26 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
27 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·a65da32c5f5ef8335cb607d3b4ab3f8a25877bc2c2e8b44ca9d575caecd5c8a5·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where27 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·772,·SHA:·de07f629315c257cc96a89e82de6752f002f259b678391b79d5fb48e279e56d2·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where
28 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,28 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
29 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·6d69c85c69fa789be551ea42d95c33c237d12a04ef157f9ddaaead1177f7771e·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element29 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·68,·SHA:·67cf1e2a20410007c7dd6c47c91b1d386626c1bfac5c1116c374da7bbee00d51·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element
30 should·be·yielded.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·489,·SHA:·9bdc636899f4e4e5a26a3a21c9603f72b3fb972865d2f459c38b7e2ac8fed7f1·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where30 should·be·yielded.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·tit[·...·truncated·by·diffoscope;·len:·393,·SHA:·328d72714f754fb793753313f01b087a9fbb30b77a2bcd5749456e1f6fd72710·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where
31 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,31 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
32 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·46dbf841c7aecd3f06bd4c944af21650faeac98c46c515dcfe643302618b1ecd·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where32 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·884,·SHA:·e8a37e28a6bfcb2d58b9ffd389d339c3dece95c14840f28c980a7d7aedcc9a05·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where
33 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as33 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as
34 the·next·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside[·...·truncated·by·diffoscope;·len:·468,·SHA:·52f7ff7f264284c3acc4429ca34d057ded9afa2e3d9d6e07571e252db9a48977·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where34 the·next·value.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside"><span·class="since"·ti[·...·truncated·by·diffoscope;·len:·372,·SHA:·9c08a613d034f21b42b8d196073d0f4d61c81458378e40e77995533a8b460837·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where
35 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·c0180fefce4346b0b4089e5c642521d7716108241c0ce6ec3e910c7a2c7364b4·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods35 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="../../../core/iter/adapters/peekable/struct.Peekable.html#method.peek"·ti[·...·truncated·by·diffoscope;·len:·103,·SHA:·e3683d31746f50069ed604def6201840bce75bbc7c584fac6c3644292077ae8a·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods
36 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See36 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See
37 their·documentation·for·more·information.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightsid[·...·truncated·by·diffoscope;·len:·498,·SHA:·e4a68861585faec6a5032b3b69d6dfb0f2799b5f387a527d9a1365571ed02069·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where37 their·documentation·for·more·information.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightside"><span·class="since"·t[·...·truncated·by·diffoscope;·len:·402,·SHA:·bdba673560d208f968337eb74446ead60d6223b0ca9ec6fbfaeb1a995a7e8001·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where
38 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,38 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
39 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·93281c1f6402743fd61110c11cf676f0f67eddceda801b4eb35e5fe9f85870fd·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where39 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·1042,·SHA:·27d4a79658fb1c97b659bd2520bcebbf5cfcb8a42420a7ecfcbff6f3330fa5e1·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where
40 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,40 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
41 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·f1cdbb1ec64f98fabbe1d89c88b03824310926cd7eaa160953ce2452fc3abb77·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where41 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·890,·SHA:·c43533da7f54bfb6611594b3436645d4d1f8e5339d2d05bf2345e87628499759·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where
42 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,42 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
43 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·f94a0b2c1396b13b89aca7830197ebf19e2c0e5ba536a9cc25b325a481799510·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where43 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·971,·SHA:·1b31b9d1d5061d4ee982a30400139f1d7319412bdea39925e0cc1e8e7cf3d65a·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where
44 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="https://doc.rust-lang[·...·truncated·by·diffoscope;·len:·783,·SHA:·c14217b89e3292a50a09192a8857485891fc769f861e1d1fc4322d04295c86ef·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where44 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="../../../core/iter/traits/iterator/trait.Iter[·...·truncated·by·diffoscope;·len:·639,·SHA:·79c7f7eddc655d329424f08baee8551b7f59cd4dc4b0d6984c5e4f241bcb949b·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where
45 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer45 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer
46 if·the·underlying·iterator·ends·sooner.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·c[·...·truncated·by·diffoscope;·len:·488,·SHA:·76f753d5a273a09a73127631acaa0ee947326a929f33be291018188793e1af56·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where46 if·the·underlying·iterator·ends·sooner.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stab[·...·truncated·by·diffoscope;·len:·392,·SHA:·50ac976eb8bf89726a483af064d5a70c100dedd17d46dc40ac3a82aba51b2082·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where
47 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,47 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
48 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·07d303586c8ad4e0082d5b44bff8eeda03cdb8f4bdbe46489f9232bca5a43ec6·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but48 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/tra[·...·truncated·by·diffoscope;·len:·329,·SHA:·14fc5ef1359fcb2171e21ba65c5f5d8ce11053860ba1d5aa32ddce90a48c2a8c·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but
49 unlike·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·2b20882d9583cee50e0c8b3cf362b27ce0d524db387d4aa4093d622b9370dada·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where49 unlike·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.scan">Rea[·...·truncated·by·diffoscope;·len:·570,·SHA:·3cdbe78e481f63f4d21b2fa94202dad167221af9d6e6f981ccd7a6e524f6157d·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where
50 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,50 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
51 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,51 ····U:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
52 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·933,·SHA:·4af94b75ba5c1e03d2d70590d2fd0706f13b3080fbff0f5b98e7b109048c403d·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where52 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·789,·SHA:·0e36f9aa81931958e65acc9e1b5bf6ad7367dcb7163dcf0af2a043314857a909·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where
53 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,53 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
54 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.I[·...·truncated·by·diffoscope;·len:·968,·SHA:·e5572ed2f3bdf5970d038da608f2f592d945541207c483c257fe5789efba168a·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where54 ····Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::trait[·...·truncated·by·diffoscope;·len:·800,·SHA:·3ea01df21dfaf9ee656fdee6aa789a6ce5be05d17c043433c5ab28da8f6d3241·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where
55 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,55 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
56 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·3013c0e49b0dade37f8ca096eccc5ceeb03fc79b9d320a4c92486d23b88d1009·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over56 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator[·...·truncated·by·diffoscope;·len:·63,·SHA:·8395b60c01b0cde6c3340bd4e6c57cddd02465a19dcf15a8aa5498bd6c8ddc11·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over
57 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,57 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="../../../core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,
58 the·windows·during·mapping·overlap·as·well.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside">[·...·truncated·by·diffoscope;·len:·454,·SHA:·040991f3914479bcc92615de2b81df7363656323622e5aadc964e1a61917d23e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where58 the·windows·during·mapping·overlap·as·well.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside"><span·class="since"·titl[·...·truncated·by·diffoscope;·len:·358,·SHA:·21db4436f04b3d09e41f294c30cd7dea235a4beb9af727cb1f1f065008ad732e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where
59 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="https://doc.rust-lang.org/1.84.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·0e0294a45242d5ce9a3ab8f95d6d410756415291d92baa7d12283ef1b3ecc3a0·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where59 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="../../../core/option/enum.Option.html#variant.None"·title="varia[·...·truncated·by·diffoscope;·len:·697,·SHA:·55b16240a265fa2f73963114b9def4c5703a60d1c3ce047915fff28502588e5b·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where
60 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,60 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
61 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·a8b562f71802a421f4745f7d1fadf4f70d98030c829e70f27b692e7915267027·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where61 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·650,·SHA:·eb862563a2da6881a0f9a31dac8f99f2b47b2c8d3033a0e1bc9ec49ae5500941·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where
62 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="https://doc.rust-lang.org/1.84.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·b3db7d84f203bbc139b1c52912705d19c664dac762898205fce452c9dc3a5318·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where62 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.by[·...·truncated·by·diffoscope;·len:·427,·SHA:·d439202f1a598c30b789e20f3d05a82f531349aa12f3af08cc5c230996ec01a9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where
63 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,63 ····B:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
64 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·431,·SHA:·a705a23f6d810357e7dcac670743884665ffcccfb9b780d0aa03720be8ca5625·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(64 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.collect[·...·truncated·by·diffoscope;·len:·335,·SHA:·d72a986b5d306b2e1ed99e18a16e26fa1b5380448fea76ac3db703052800b629·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(
65 ····&amp;mut·self,65 ····&amp;mut·self,
66 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.h[·...·truncated·by·diffoscope;·len:·479,·SHA:·fa749442d890055f86ceb34f411c84fd7ea08302b336d786d1ca36fe5868b020·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where66 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try[·...·truncated·by·diffoscope;·len:·359,·SHA:·886ccc2fbd37f1e7df4075b80b0bebd3d1a6e997fae2114ca1818fa30fa95d5a·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
67 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,67 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
68 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>, 
69 ····&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang[·...·truncated·by·diffoscope;·len:·449,·SHA:·9ddccfb7bdd27ea692d65fa83daf56e31762d1bec3a502234174b8fa4fb33a98·...·],68 ····Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="[·...·truncated·by·diffoscope;·len:·40,·SHA:·39f6b8b47216936a6251a972a3e72c0459df25c157b8b3990eefb48397aa8303·...·],
 69 ····&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;B&gt;,
70 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/itera[·...·truncated·by·diffoscope;·len:·323,·SHA:·b5c51f161dc9d77fd81d1fd23cc71fbf42ac00f3168cf9e41ebaaa2b6eb25363·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if70 ····B:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·tit[·...·truncated·by·diffoscope;·len:·227,·SHA:·91a843f71f5d4d4bdd2a6f526e4b1ace78ad1c1c0027ff429527a1e3cc1cbb42·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if
71 a·failure·is·encountered.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·ri[·...·truncated·by·diffoscope;·len:·521,·SHA:·6a54376815dab985ec8cc35604d035e98e3003b1563c9b41e70966084505542b·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where71 a·failure·is·encountered.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../../[·...·truncated·by·diffoscope;·len:·401,·SHA:·ed1d0660f20625c1d5231d569dd3e4f1d10332250dcd1a3f5d2e886618e67f5b·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
72 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,72 ····E:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
73 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·975,·SHA:·94f7f970236ba59ba5f1415764a0e3ab2f3093c6b79e76c25c797ac24a3c4d09·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where73 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_coll[·...·truncated·by·diffoscope;·len:·855,·SHA:·7b38a8c237aadc46d5211ff8698af580678e0cbcab757a66d6416b422880dd91·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
74 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,74 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
75 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·b480ec650ba000fe7cb67df58fc0351299638ee3e8f00db18f74ca24d69f9894·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,75 ····B:·<a·class="trait"·href="../../../core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="../../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associa[·...·truncated·by·diffoscope;·len:·23,·SHA:·4417dee5d41246c4acf5419e1bdac3c7d847bd34e3e87738a08734259a3b63da·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
76 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·972,·SHA:·0a54d9b1f5cb78c4f6b5f5b1153955eea3a8c16edcc762351208dabad1e8e9aa·...·]/core/primitive.bool.html">bool</a><div·class="where">where76 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·804,·SHA:·9304858cfccb085a534269651ae33dddafe29b7d287f0db58b4a9394480a2fa6·...·]/core/primitive.bool.html">bool</a><div·class="where">where
77 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,77 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
78 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·fcd03e71f79faad6d9b9a12045d59f4dfabc78e5aefebcabc9c1a5be45e31125·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,78 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·63,·SHA:·852041c2de8156fdddf9f71111c5ddf1a6b88aabd8c082f1a254f0b21c18ffa1·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,
79 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><span·class="righ[·...·truncated·by·diffoscope;·len:·319,·SHA:·9b9df13f2f4e5b4dde3908515766e1a474fa30bcb7edc98c15665a016e677c2a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where79 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><span·class="rightside"><span·class="sinc[·...·truncated·by·diffoscope;·len:·247,·SHA:·222a0145d03094cb0b20ca156583afe97e703828a8aa77e37fb7b4661759e2c7·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where
80 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,80 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
81 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,81 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
82 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns82 ····R:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns
83 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rights[·...·truncated·by·diffoscope;·len:·321,·SHA:·619fd774190944998148325de99aaa75de66ce4b7e26579fd342c564923a5652·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where83 successfully,·producing·a·single,·final·value.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"[·...·truncated·by·diffoscope;·len:·249,·SHA:·afbe9e91614278f09851b7c5920ddaf0907a2bf4c310ec39b40084e28959cc77·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where
84 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,84 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
85 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,85 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
86 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the86 ····R:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="../../../core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the
87 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·307,·SHA:·5975144fd8566efa93ad1ccec09297e280924b7372e08681d2103702124e2c52·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where87 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><span·class="rightside"><span·class="since"·tit[·...·truncated·by·diffoscope;·len:·235,·SHA:·da9aac17d9724df2aa434c2d10e1caa010eb4fd7e574e4da4e3d5b689e970097·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where
88 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,88 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
89 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,89 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,
90 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span[·...·truncated·by·diffoscope;·len:·619,·SHA:·8813f54846438870310d5f5dfabd2335a9dbf51e9da2e4cd681bcb6077d39628·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where90 returning·the·final·result.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="St[·...·truncated·by·diffoscope;·len:·499,·SHA:·ff97be2c630acbbbb397aa79317bd89b79955e6735d9da7aea9df48659f94fce·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
91 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,91 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
92 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·084691f7fc4e7f4da7db385127d0ce8d2d52f6740757129a65910c4db0dc180d·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing92 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·256,·SHA:·2fe8ae39f77649fea294c45979f427748b2a9938dfa70e4595ac661d972125b1·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing
93 operation.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·217,·SHA:·447ae00256be3de069c602a6c04889808c883eae6fa349d023f53bdd5570ecae·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(93 operation.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside"·href="../../../src/cor[·...·truncated·by·diffoscope;·len:·145,·SHA:·be4dc63adf8a4e832fd3dbaaabbf45f287388ea2bb17088d40589203a2ec6dfb·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(
94 ····&amp;mut·self,94 ····&amp;mut·self,
95 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·70b2b85cad045ac7addf647e0bd3cd5b2c9ebca5986613ad2b6a9c00e3a1132f·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,95 ····f:·impl·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·68,·SHA:·e7e11f257edcac749a5883ad9a3aa42e6e965be419f967b36caa7afd3b36d7c9·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
96 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·1823533b932e38e3200465d101f10a34421c005018974296350162e4049615ea·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where96 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</[·...·truncated·by·diffoscope;·len:·586,·SHA:·596f94ec7a4c06359aee56ccb8a7138a1ddb94415fafcecac1fc87434b1329a3·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
97 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,97 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
98 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,98 ····R:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
99 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·764ea8f08626b05426a76738d54ebb2d640042494d76cba8c20d868bfdc07a73·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the99 ····&lt;R·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</[·...·truncated·by·diffoscope;·len:·292,·SHA:·2ae73aa9b78f13099a8016e28a473713dcc755cf00fed8895c0c1b027bbcea01·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the
100 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><span·class="rightside"><s[·...·truncated·by·diffoscope;·len:·476,·SHA:·aef721c14147dea2fbec70dcfa76916b3f1273bed8304f4c9db310ca23d1e4b1·...·]/core/primitive.bool.html">bool</a><div·class="where">where100 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title=[·...·truncated·by·diffoscope;·len:·380,·SHA:·1042cdc03eabce3d330853b659f28b8566dd5841790f7f1303f3e326f05efab6·...·]/core/primitive.bool.html">bool</a><div·class="where">where
101 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,101 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
102 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·7c48e62c73a40a5cb5ebbf4a22cd789b342a88ad3d855022191f2bae33c736c6·...·]/core/primitive.bool.html">bool</a><div·class="where">where102 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·850,·SHA:·1b28d9cdfe3ba8dc7eac8cef1bb6549e78768b440ea492c70d80c8c07eae61cb·...·]/core/primitive.bool.html">bool</a><div·class="where">where
103 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,103 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
104 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·673d69ce0c23e24b2546127c463e67cd2a4c0f7be792712e2b42e75427161b75·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where104 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·980,·SHA:·a560c9e639c326a34f124b36f977291532e03ffae190e973674fee7e13b4c842·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
105 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,105 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
106 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·aa5078ff77f5638746395497f8ce92c1b684d342dea851990104d5e9981ab6b0·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where106 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·883,·SHA:·47fb849c20ee0cb36696a24bd285768bd0973774403ae956d2a517cd216452b1·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where
107 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,107 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
108 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·1bd732dff19021a1586bb486282683f5c1bc65d5d514f9e13cc9232b4e94955b·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;,</div></h4></section></summary><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns108 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·58,·SHA:·f6e1e279f463d2adecc4a9316aeab7af85329a84398e722f43ac130647fe78cf·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;,</div></h4></section></summary><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns
109 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.find_map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_find"·class="method·trait-impl"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·215,·SHA:·4d59a011c8881794ce6367c1e816f11a813db02e37c71800ed6d47056f157573·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(109 the·first·non-none·result.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.find_map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_find"·class="method·trait-impl"><a·class="src·rightside"·href="../../../src/cor[·...·truncated·by·diffoscope;·len:·143,·SHA:·00906f8dc0620ba030a634eba59c098f3aff639a062bf6231dfc4feb7727cc72·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(
110 ····&amp;mut·self,110 ····&amp;mut·self,
111 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,111 ····f:·impl·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
112 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·efb03e5c706e0947c6a4490b17f1efb0f1944a7d81f2640b5933212334dd255a·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where112 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</[·...·truncated·by·diffoscope;·len:·482,·SHA:·9ae34b47b226617c3eb5738e2b006056038b8280724fbbb72477bd2e900a4e85·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
113 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,113 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
114 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html">bool</a>&gt;,114 ····R:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="../../../core/primitive.bool.html">bool</a>&gt;,
115 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·764ea8f08626b05426a76738d54ebb2d640042494d76cba8c20d868bfdc07a73·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>try_find</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/63178">#63178</a>)</span></div></span><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns115 ····&lt;R·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</[·...·truncated·by·diffoscope;·len:·292,·SHA:·2ae73aa9b78f13099a8016e28a473713dcc755cf00fed8895c0c1b027bbcea01·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>try_find</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/63178">#63178</a>)</span></div></span><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns
116 the·first·true·result·or·the·first·error.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_find">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.position"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·635,·SHA:·348891c2a01ad4ba1f5ccca4c270bd2cefaf47e6b8194dc69d227209558119ff·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where116 the·first·true·result·or·the·first·error.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_find">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.position"·class="method·trait-impl"><span·class="rightside"><span·class="since"·tit[·...·truncated·by·diffoscope;·len:·515,·SHA:·a1fda5a0c76c9054797870324df8cd1bb446d66310ff913ddcbc9467fea7a33a·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
117 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,117 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
118 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1144,·SHA:·924dabfde33cb637151c206b5bef45e7e2185053d933cf9a15c59eecaafa6d5c·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where118 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·952,·SHA:·72f72454b4804f46746efa385fa104f63e84fb586632dd1c4c930f34217d1e30·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
119 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,119 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
120 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.Ord.html"·title="[·...·truncated·by·diffoscope;·len:·981,·SHA:·98dce65e46bcafc96c419533e0f8c95c11436175b878a43b5be30d98cc9d33a9·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where120 ····Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,</div></h4></secti[·...·truncated·by·diffoscope;·len:·813,·SHA:·a0835641b75785105c101f7557a09e01b6db0cd6ef4ff7164fe09dd76f56b780·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
121 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,121 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
122 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.Ord.html"·title="[·...·truncated·by·diffoscope;·len:·1027,·SHA:·b928182faf179ccb90df08564d70ae31d5dcbcdfc0c8037cf6b7f6a22530a7a1·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where122 ····Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,</div></h4></secti[·...·truncated·by·diffoscope;·len:·859,·SHA:·54ac45d4399a4f662f44869a9a8a7e38fa5f356937ca7d1a3e902478b74ba5e5·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
123 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,123 ····B:·<a·class="trait"·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,
124 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,124 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
125 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Returns·the·element·that·gives·the·maximum·value·from·the125 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Returns·the·element·that·gives·the·maximum·value·from·the
126 specified·function.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.max_by_key">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.max_by"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·631,·SHA:·85969676239612a4af79ca58ddb20274f3ef3c8441f7ce5fa7050e530fed90d6·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where126 specified·function.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.max_by_key">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.max_by"·class="method·trait-impl"><span·class="rightside"><span·class="since"·tit[·...·truncated·by·diffoscope;·len:·511,·SHA:·28a81c6cecf40d424b9fff4f8efe3c058d66ecd63997796e214fc2bfce83e488·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
Max diff block lines reached; 81633/296826 bytes (27.50%) of diff not shown.
346 KB
./usr/share/doc/rust-doc/html/alloc/collections/linked_list/struct.IntoIter.html
Max HTML report size reached
339 KB
./usr/share/doc/rust-doc/html/alloc/collections/linked_list/struct.Iter.html
    
Offset 1, 238 lines modifiedOffset 1, 238 lines modified
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="An·iterator·over·the·elements·of·a·`LinkedList`."><title>Iter·in·alloc::collections::linked_list·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»  2025-01-07)»       (built» from»     a»    source»      tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Iter</a></h2><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-Iter%3C'_,+T%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-Iter%3C'_,+T%3E"·title="Debug">Debug</a></li><li><a·href="#impl-Default-for-Iter%3C'_,+T%3E"·title="Default">Default</a></li><li><a·href="#impl-DoubleEndedIterator-for-Iter%3C'a,+T%3E"·title="DoubleEndedIterator">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-Iter%3C'_,+T%3E"·title="ExactSizeIterator">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-Iter%3C'_,+T%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-Iter%3C'a,+T%3E"·title="Iterator">Iterator</a></li><li><a·href="#impl-Send-for-Iter%3C'_,+T%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-Iter%3C'_,+T%3E"·title="Sync">Sync</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-Iter%3C'a,+T%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Iter%3C'a,+T%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Unpin-for-Iter%3C'a,+T%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Iter%3C'a,+T%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>collections::<wbr>linked_<wbr>list</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">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">linked_list</a></span><h1>Struct·<span·class="struct">Iter</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../../src/alloc/collections/linked_list.rs.html#73-78">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·Iter&lt;'a,·T:·'a&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>An·iterator·over·the·elements·of·a·<code>LinkedList</code>.</p>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="An·iterator·over·the·elements·of·a·`LinkedList`."><title>Iter·in·alloc::collections::linked_list·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»  2025-01-07)»       (built» from»     a»    source»      tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Iter</a></h2><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-Iter%3C'_,+T%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-Iter%3C'_,+T%3E"·title="Debug">Debug</a></li><li><a·href="#impl-Default-for-Iter%3C'_,+T%3E"·title="Default">Default</a></li><li><a·href="#impl-DoubleEndedIterator-for-Iter%3C'a,+T%3E"·title="DoubleEndedIterator">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-Iter%3C'_,+T%3E"·title="ExactSizeIterator">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-Iter%3C'_,+T%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-Iter%3C'a,+T%3E"·title="Iterator">Iterator</a></li><li><a·href="#impl-Send-for-Iter%3C'_,+T%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-Iter%3C'_,+T%3E"·title="Sync">Sync</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-Iter%3C'a,+T%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Iter%3C'a,+T%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Unpin-for-Iter%3C'a,+T%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Iter%3C'a,+T%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>collections::<wbr>linked_<wbr>list</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">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">linked_list</a></span><h1>Struct·<span·class="struct">Iter</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../../src/alloc/collections/linked_list.rs.html#73-78">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·Iter&lt;'a,·T:·'a&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>An·iterator·over·the·elements·of·a·<code>LinkedList</code>.</p>
2 <p>This·<code>struct</code>·is·created·by·<a·href="struct.LinkedList.html#method.iter"·title="method·alloc::collections::linked_list::LinkedList::iter"><code>LinkedList::iter()</code></a>.·See·its2 <p>This·<code>struct</code>·is·created·by·<a·href="struct.LinkedList.html#method.iter"·title="method·alloc::collections::linked_list::LinkedList::iter"><code>LinkedList::iter()</code></a>.·See·its
3 documentation·for·more.</p>3 documentation·for·more.</p>
4 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-Iter%3C'_,+T%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/linked_list.rs.html#98-102">Source</a></span><a·href="#impl-Clone-for-Iter%3C'_,+T%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struct"·href="struct.Iter.html"·title="struct·alloc::collections::linked_list::Iter">Iter</a>&lt;'_,·T&gt;</h3></section></summary><div·c[·...·truncated·by·diffoscope;·len:·3965,·SHA:·ebf4e2c300e507fe649a6204581702a2e0ee5e629ec1f14061cf3068c401cab4·...·]/core/default/trait.Default.html#tymethod.default"·class="fn">default</a>()·-&gt;·Self</h4></section></summary><div·class="docblock"><p>Creates·an·empty·<code>linked_list::Iter</code>.</p>4 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-Iter%3C'_,+T%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/linked_list.rs.html#98-102">Source</a></span><a·href="#impl-Clone-for-Iter%3C'_,+T%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struct"·href="struct.Iter.html"·title="struct·alloc::collections::linked_list::Iter">Iter</a>&lt;'_,·T&gt;</h3></section></summary><div·class="impl-items"><detai[·...·truncated·by·diffoscope;·len:·3773,·SHA:·842eb837ae160604dd11f475ee52b7909bf2e6df9b6eab22fbbaa66f50d532aa·...·]/core/default/trait.Default.html#tymethod.default"·class="fn">default</a>()·-&gt;·Self</h4></section></summary><div·class="docblock"><p>Creates·an·empty·<code>linked_list::Iter</code>.</p>
  
5 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span>iter:·linked_list::Iter&lt;<span·class="lifetime">'_</span>,·u8&gt;·=·Default::default();5 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span>iter:·linked_list::Iter&lt;<span·class="lifetime">'_</span>,·u8&gt;·=·Default::default();
6 <span·class="macro">assert_eq!</span>(iter.len(),·<span·class="number">0</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::linked_list;%0A++++let+iter:+linked_list::Iter%3C'_,+u8%3E+=+Default::default();%0A++++assert_eq!(iter.len(),+0);%0A%7D&amp;edition=2021"></a></div>6 <span·class="macro">assert_eq!</span>(iter.len(),·<span·class="number">0</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::linked_list;%0A++++let+iter:+linked_list::Iter%3C'_,+u8%3E+=+Default::default();%0A++++assert_eq!(iter.len(),+0);%0A%7D&amp;edition=2021"></a></div>
7 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-DoubleEndedIterator-for-Iter%3C'a,+T%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/linked_list.rs.html#1219-1234">Source</a></span><a·href="#impl-DoubleEndedIterator-for-Iter%3C'a,+T%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·T&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIterator</a>·for·<a·class="struct"·href="struct.Iter.html"·title="struct·alloc::co[·...·truncated·by·diffoscope;·len:·4373,·SHA:·7c1ec437c6328239243c045ba421d8dc94ea1c89e40883c1355552427d6cf70e·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold"·class="fn">try_rfold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where7 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-DoubleEndedIterator-for-Iter%3C'a,+T%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/linked_list.rs.html#1219-1234">Source</a></span><a·href="#impl-DoubleEndedIterator-for-Iter%3C'a,+T%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·T&gt;·<a·class="trait"·href="../../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIterator</a>·for·<a·class="struct"·href="struct.Iter.html"·title="struct·alloc::collections::linked_list::[·...·truncated·by·diffoscope;·len:·3869,·SHA:·46b3d4ae7c6018fc9ee4f8b85a886e7195c6b15709d4b8df1ea1c19ec7b3f779·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold"·class="fn">try_rfold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where
8 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,8 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
9 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,9 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
10 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>This·is·the·reverse·version·of·<a·href="https://doc.rust-lang.org/1.8[·...·truncated·by·diffoscope;·len:·3,·SHA:·fbd04e1aae9ce0b11a8946e2c9ac2619f7428a64d32d01eff61d809dcb70ee8e·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·title="method·core::iter::traits::iterator::Iterator::try_fold"><code>Iterator::try_fold()</code></a>:·it·takes10 ····R:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>This·is·the·reverse·version·of·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·title="method·core::iter::traits::iterator::Iterator::try_fold"><code>Iterator::try_fold()</code></a>:·it·takes
11 elements·starting·from·the·back·of·the·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfold"·class="method·trait-impl"><span·clas[·...·truncated·by·diffoscope;·len:·325,·SHA:·7ffdb06a8ab3810207a1c974783822231eaf1d82fd94bcf810dd7b3181149b7b·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold"·class="fn">rfold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where11 elements·starting·from·the·back·of·the·iterator.·<a·href="../../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfold"·class="method·trait-impl"><span·class="rightside"><span·clas[·...·truncated·by·diffoscope;·len:·253,·SHA:·48421497f19ee93d3a7432833660cd659661b35b02b625c6376fc49660f200cf·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold"·class="fn">rfold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where
12 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,12 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
13 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·reduces·the·iterator’s·elements·to·a·single,13 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·reduces·the·iterator’s·elements·to·a·single,
14 final·value,·starting·from·the·back.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfind"·class="method·trait-impl"><span·class="r[·...·truncated·by·diffoscope;·len:·665,·SHA:·fde89feb7c0e70eefa34d688476ca36a70115bec8150dbf9b1a3c359f72dd28d·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where14 final·value,·starting·from·the·back.·<a·href="../../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfind"·class="method·trait-impl"><span·class="rightside"><span·class="s[·...·truncated·by·diffoscope;·len:·545,·SHA:·b420bc934fe1ddfd2fe0958678aa3aba1ce90383b1958958e47e13ae1b40fe25·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
15 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,15 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
16 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·7902,·SHA:·879f7bd238f8ae03c4a868165479d299e7b65e778d78a395f48fe8934fb3a362·...·]/core/primitive.usize.html">usize</a>&gt;(16 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·7134,·SHA:·5ddf1c7a143f1e54d651b0f961f7cacab4b9e8d54d526a5709cdd1564119150c·...·]/core/primitive.usize.html">usize</a>&gt;(
17 ····&amp;mut·self,17 ····&amp;mut·self,
18 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·4f557a9b49151e0be8c52ffd68f1def4469c08164239dc8bef8df2040551c5ef·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where18 )·-&gt;·<a·class="enum"·href="../../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::It[·...·truncated·by·diffoscope;·len:·261,·SHA:·9b488006768a86d05b68f4e1888c750c736264a3a386f1310f1b7e8bfc7d2184·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where
19 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·962,·SHA:·116e4ec2ae3d9655c3d115eaf50f435f5323b4e48b84de734c79d2a09b3c02f2·...·]/core/primitive.usize.html">usize</a><div·class="where">where19 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_next[·...·truncated·by·diffoscope;·len:·842,·SHA:·d8f387888e3ee78f4397f4b1a12eae734e055247e3aa3251433ab8ac1019b31a·...·]/core/primitive.usize.html">usize</a><div·class="where">where
20 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·counting·the·number·of·iterations·and·returning·it.·<a·href="https://doc.[·...·truncated·by·diffoscope;·len:·3529,·SHA:·36685e4ebfba7d155142dce71eec5dabe5f32dacb8a458b62987f15496f31675·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where20 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·counting·the·number·of·iterations·and·returning·it.·<a·href="../../../core/iter/traits/iterator/t[·...·truncated·by·diffoscope;·len:·3049,·SHA:·36b73bdc1b7eb71bc2ee32534a58bc8374d5403ad0bacb5cbfb32bf6be47bb80·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where
21 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by21 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by
22 the·given·amount·at·each·iteration.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><sp[·...·truncated·by·diffoscope;·len:·842,·SHA:·945c4509a8daf2f8fbccc5c6e5089e225955911e03a3e411f047f96d52d16862·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where22 the·given·amount·at·each·iteration.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="[·...·truncated·by·diffoscope;·len:·698,·SHA:·035d2f4d2e6b01ddf0b424aa6fc3f5919c82f85f857cb9cfa0f54f8357058b90·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
23 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,23 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
24 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·3b5ce32f9d564c3aa7cf2adc7130e674758d0c0f4f1275b4c3b46a74aa802cb3·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where24 ····U:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·[·...·truncated·by·diffoscope;·len:·1137,·SHA:·7916ae3a9b5afad376aafc6d698165147d82613fe975f64423f2367a02a69f6a·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
25 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,25 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
26 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·[·...·truncated·by·diffoscope;·len:·868,·SHA:·abdbf27ccc84063c7040d8fa3da9d0bda5ee310a470ef576e15554aee4bd5d21·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where26 ····U:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·of·pairs.·<a·href="../..[·...·truncated·by·diffoscope;·len:·724,·SHA:·ba31078b5c50fbfc51e53bed6f70aaa6e7e320cfda19949035c71d9363c0d919·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where
27 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,27 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
28 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent28 ····Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent
29 items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="sr[·...·truncated·by·diffoscope;·len:·427,·SHA:·6e82ad4aad49c2165d869fe30d20a968580a973cdb3a7f4c77f49e16dd59393e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where29 items·of·the·original·iterator.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="src·rightside"·href="../..[·...·truncated·by·diffoscope;·len:·331,·SHA:·451e844c9bf5d6d78b9579516e4b9fafb3e84136eaa1c95bead4539370743d7d·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where
30 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,30 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
31 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>31 ····G:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>
32 between·adjacent·items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightsi[·...·truncated·by·diffoscope;·len:·471,·SHA:·ed10488b7b2ccc3e4cc84a9a57a9695a74c1c964962e8d753cbace12f3318a66·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where32 between·adjacent·items·of·the·original·iterator.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·[·...·truncated·by·diffoscope;·len:·375,·SHA:·7bbb71535f348e442b9de05a74f9180c9acec0636566fa2a19ab1dc83779aace·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where
33 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,33 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
34 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each34 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each
35 element.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><spa[·...·truncated·by·diffoscope;·len:·306,·SHA:·61c87c39b177830189b0e4c036d97c40d8b9649d76432c90afb88de59498e8b2·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where35 element.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="S[·...·truncated·by·diffoscope;·len:·234,·SHA:·55463e0fb539911d03265cbd8abb7248189471ea74954185ed77f245746805c2·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where
36 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,36 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
37 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·a65da32c5f5ef8335cb607d3b4ab3f8a25877bc2c2e8b44ca9d575caecd5c8a5·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where37 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·772,·SHA:·de07f629315c257cc96a89e82de6752f002f259b678391b79d5fb48e279e56d2·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where
38 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,38 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
39 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·6d69c85c69fa789be551ea42d95c33c237d12a04ef157f9ddaaead1177f7771e·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element39 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·68,·SHA:·67cf1e2a20410007c7dd6c47c91b1d386626c1bfac5c1116c374da7bbee00d51·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element
40 should·be·yielded.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·489,·SHA:·9bdc636899f4e4e5a26a3a21c9603f72b3fb972865d2f459c38b7e2ac8fed7f1·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where40 should·be·yielded.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·tit[·...·truncated·by·diffoscope;·len:·393,·SHA:·328d72714f754fb793753313f01b087a9fbb30b77a2bcd5749456e1f6fd72710·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where
41 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,41 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
42 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·46dbf841c7aecd3f06bd4c944af21650faeac98c46c515dcfe643302618b1ecd·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where42 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·884,·SHA:·e8a37e28a6bfcb2d58b9ffd389d339c3dece95c14840f28c980a7d7aedcc9a05·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where
43 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as43 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as
44 the·next·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside[·...·truncated·by·diffoscope;·len:·468,·SHA:·52f7ff7f264284c3acc4429ca34d057ded9afa2e3d9d6e07571e252db9a48977·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where44 the·next·value.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside"><span·class="since"·ti[·...·truncated·by·diffoscope;·len:·372,·SHA:·9c08a613d034f21b42b8d196073d0f4d61c81458378e40e77995533a8b460837·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where
45 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·c0180fefce4346b0b4089e5c642521d7716108241c0ce6ec3e910c7a2c7364b4·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods45 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="../../../core/iter/adapters/peekable/struct.Peekable.html#method.peek"·ti[·...·truncated·by·diffoscope;·len:·103,·SHA:·e3683d31746f50069ed604def6201840bce75bbc7c584fac6c3644292077ae8a·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods
46 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See46 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See
47 their·documentation·for·more·information.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightsid[·...·truncated·by·diffoscope;·len:·498,·SHA:·e4a68861585faec6a5032b3b69d6dfb0f2799b5f387a527d9a1365571ed02069·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where47 their·documentation·for·more·information.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightside"><span·class="since"·t[·...·truncated·by·diffoscope;·len:·402,·SHA:·bdba673560d208f968337eb74446ead60d6223b0ca9ec6fbfaeb1a995a7e8001·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where
48 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,48 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
49 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·93281c1f6402743fd61110c11cf676f0f67eddceda801b4eb35e5fe9f85870fd·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where49 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·1042,·SHA:·27d4a79658fb1c97b659bd2520bcebbf5cfcb8a42420a7ecfcbff6f3330fa5e1·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where
50 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,50 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
51 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·f1cdbb1ec64f98fabbe1d89c88b03824310926cd7eaa160953ce2452fc3abb77·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where51 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·890,·SHA:·c43533da7f54bfb6611594b3436645d4d1f8e5339d2d05bf2345e87628499759·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where
52 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,52 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
53 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·f94a0b2c1396b13b89aca7830197ebf19e2c0e5ba536a9cc25b325a481799510·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where53 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·971,·SHA:·1b31b9d1d5061d4ee982a30400139f1d7319412bdea39925e0cc1e8e7cf3d65a·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where
54 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="https://doc.rust-lang[·...·truncated·by·diffoscope;·len:·783,·SHA:·c14217b89e3292a50a09192a8857485891fc769f861e1d1fc4322d04295c86ef·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where54 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="../../../core/iter/traits/iterator/trait.Iter[·...·truncated·by·diffoscope;·len:·639,·SHA:·79c7f7eddc655d329424f08baee8551b7f59cd4dc4b0d6984c5e4f241bcb949b·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where
55 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer55 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer
56 if·the·underlying·iterator·ends·sooner.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·c[·...·truncated·by·diffoscope;·len:·488,·SHA:·76f753d5a273a09a73127631acaa0ee947326a929f33be291018188793e1af56·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where56 if·the·underlying·iterator·ends·sooner.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stab[·...·truncated·by·diffoscope;·len:·392,·SHA:·50ac976eb8bf89726a483af064d5a70c100dedd17d46dc40ac3a82aba51b2082·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where
57 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,57 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
58 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·07d303586c8ad4e0082d5b44bff8eeda03cdb8f4bdbe46489f9232bca5a43ec6·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but58 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/tra[·...·truncated·by·diffoscope;·len:·329,·SHA:·14fc5ef1359fcb2171e21ba65c5f5d8ce11053860ba1d5aa32ddce90a48c2a8c·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but
59 unlike·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·2b20882d9583cee50e0c8b3cf362b27ce0d524db387d4aa4093d622b9370dada·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where59 unlike·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.scan">Rea[·...·truncated·by·diffoscope;·len:·570,·SHA:·3cdbe78e481f63f4d21b2fa94202dad167221af9d6e6f981ccd7a6e524f6157d·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where
60 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,60 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
61 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,61 ····U:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
62 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·933,·SHA:·4af94b75ba5c1e03d2d70590d2fd0706f13b3080fbff0f5b98e7b109048c403d·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where62 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·789,·SHA:·0e36f9aa81931958e65acc9e1b5bf6ad7367dcb7163dcf0af2a043314857a909·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where
63 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,63 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
64 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.I[·...·truncated·by·diffoscope;·len:·968,·SHA:·e5572ed2f3bdf5970d038da608f2f592d945541207c483c257fe5789efba168a·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where64 ····Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::trait[·...·truncated·by·diffoscope;·len:·800,·SHA:·3ea01df21dfaf9ee656fdee6aa789a6ce5be05d17c043433c5ab28da8f6d3241·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where
65 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,65 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
66 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·3013c0e49b0dade37f8ca096eccc5ceeb03fc79b9d320a4c92486d23b88d1009·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over66 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator[·...·truncated·by·diffoscope;·len:·63,·SHA:·8395b60c01b0cde6c3340bd4e6c57cddd02465a19dcf15a8aa5498bd6c8ddc11·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over
67 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,67 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="../../../core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,
68 the·windows·during·mapping·overlap·as·well.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside">[·...·truncated·by·diffoscope;·len:·454,·SHA:·040991f3914479bcc92615de2b81df7363656323622e5aadc964e1a61917d23e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where68 the·windows·during·mapping·overlap·as·well.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside"><span·class="since"·titl[·...·truncated·by·diffoscope;·len:·358,·SHA:·21db4436f04b3d09e41f294c30cd7dea235a4beb9af727cb1f1f065008ad732e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where
69 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="https://doc.rust-lang.org/1.84.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·0e0294a45242d5ce9a3ab8f95d6d410756415291d92baa7d12283ef1b3ecc3a0·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where69 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="../../../core/option/enum.Option.html#variant.None"·title="varia[·...·truncated·by·diffoscope;·len:·697,·SHA:·55b16240a265fa2f73963114b9def4c5703a60d1c3ce047915fff28502588e5b·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where
70 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,70 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
71 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·a8b562f71802a421f4745f7d1fadf4f70d98030c829e70f27b692e7915267027·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where71 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·650,·SHA:·eb862563a2da6881a0f9a31dac8f99f2b47b2c8d3033a0e1bc9ec49ae5500941·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where
72 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="https://doc.rust-lang.org/1.84.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·b3db7d84f203bbc139b1c52912705d19c664dac762898205fce452c9dc3a5318·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where72 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.by[·...·truncated·by·diffoscope;·len:·427,·SHA:·d439202f1a598c30b789e20f3d05a82f531349aa12f3af08cc5c230996ec01a9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where
73 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,73 ····B:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
74 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·431,·SHA:·a705a23f6d810357e7dcac670743884665ffcccfb9b780d0aa03720be8ca5625·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(74 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.collect[·...·truncated·by·diffoscope;·len:·335,·SHA:·d72a986b5d306b2e1ed99e18a16e26fa1b5380448fea76ac3db703052800b629·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(
75 ····&amp;mut·self,75 ····&amp;mut·self,
76 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.h[·...·truncated·by·diffoscope;·len:·479,·SHA:·fa749442d890055f86ceb34f411c84fd7ea08302b336d786d1ca36fe5868b020·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where76 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try[·...·truncated·by·diffoscope;·len:·359,·SHA:·886ccc2fbd37f1e7df4075b80b0bebd3d1a6e997fae2114ca1818fa30fa95d5a·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
77 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,77 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
78 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>, 
79 ····&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang[·...·truncated·by·diffoscope;·len:·449,·SHA:·9ddccfb7bdd27ea692d65fa83daf56e31762d1bec3a502234174b8fa4fb33a98·...·],78 ····Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="[·...·truncated·by·diffoscope;·len:·40,·SHA:·39f6b8b47216936a6251a972a3e72c0459df25c157b8b3990eefb48397aa8303·...·],
 79 ····&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;B&gt;,
80 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/itera[·...·truncated·by·diffoscope;·len:·323,·SHA:·b5c51f161dc9d77fd81d1fd23cc71fbf42ac00f3168cf9e41ebaaa2b6eb25363·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if80 ····B:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·tit[·...·truncated·by·diffoscope;·len:·227,·SHA:·91a843f71f5d4d4bdd2a6f526e4b1ace78ad1c1c0027ff429527a1e3cc1cbb42·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if
81 a·failure·is·encountered.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·ri[·...·truncated·by·diffoscope;·len:·521,·SHA:·6a54376815dab985ec8cc35604d035e98e3003b1563c9b41e70966084505542b·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where81 a·failure·is·encountered.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../../[·...·truncated·by·diffoscope;·len:·401,·SHA:·ed1d0660f20625c1d5231d569dd3e4f1d10332250dcd1a3f5d2e886618e67f5b·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
82 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,82 ····E:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
83 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·975,·SHA:·94f7f970236ba59ba5f1415764a0e3ab2f3093c6b79e76c25c797ac24a3c4d09·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where83 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_coll[·...·truncated·by·diffoscope;·len:·855,·SHA:·7b38a8c237aadc46d5211ff8698af580678e0cbcab757a66d6416b422880dd91·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
84 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,84 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
85 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·b480ec650ba000fe7cb67df58fc0351299638ee3e8f00db18f74ca24d69f9894·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,85 ····B:·<a·class="trait"·href="../../../core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="../../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associa[·...·truncated·by·diffoscope;·len:·23,·SHA:·4417dee5d41246c4acf5419e1bdac3c7d847bd34e3e87738a08734259a3b63da·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
86 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·fdf5a1845f070855ba2cfd0c8c85460ea5cb646c4d3b42a8431bf21489c73701·...·]/core/primitive.usize.html">usize</a><div·class="where">where86 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·827,·SHA:·0237b034801a953ed40ad7c10f9a80d682bdf0a649c6fde9f53efc254cd75fc0·...·]/core/primitive.usize.html">usize</a><div·class="where">where
87 ····T:·'a,87 ····T:·'a,
88 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·1fc250e258e9e42e4fa3e22f86ecd57057e9ff23e47af1aec778076a7a891134·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,88 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="../../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEnd[·...·truncated·by·diffoscope;·len:·60,·SHA:·036db50df43442a72ce04aef94ccf2727352aad0708d71fe0e34c23613b84765·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,
89 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·5846407374f20f525a4a0663ad4488141eafe64513ef82581dc5df5c2d200745·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_partition_in_place</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62543">#62543</a>)</span></div></span><div·class='docblock'>Reorders·the·elements·of·this·iterator·<em>in-place</em>·according·to·the·given·predicate,89 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="../../../core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_partition_in_place</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62543">#62543</a>)</span></div></span><div·class='docblock'>Reorders·the·elements·of·this·iterator·<em>in-place</em>·according·to·the·given·predicate,
90 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.90 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.
91 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.partition_in_place">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_partitioned"·class="method·trait-impl"><a·clas[·...·truncated·by·diffoscope;·len:·431,·SHA:·4aa7d028146c72d45794efc19a376d4bee3b75eda61ff46d969e440b3dbfa1b0·...·]/core/primitive.bool.html">bool</a><div·class="where">where91 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.partition_in_place">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_partitioned"·class="method·trait-impl"><a·class="src·rightside"·href="[·...·truncated·by·diffoscope;·len:·335,·SHA:·252e1c16199fc3c38bc7de8cbda8c9532ab6d581d449c680cd7daf8d61a74aeb·...·]/core/primitive.bool.html">bool</a><div·class="where">where
92 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,92 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
93 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·fcd03e71f79faad6d9b9a12045d59f4dfabc78e5aefebcabc9c1a5be45e31125·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,93 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·63,·SHA:·852041c2de8156fdddf9f71111c5ddf1a6b88aabd8c082f1a254f0b21c18ffa1·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,
94 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><span·class="righ[·...·truncated·by·diffoscope;·len:·319,·SHA:·9b9df13f2f4e5b4dde3908515766e1a474fa30bcb7edc98c15665a016e677c2a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where94 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><span·class="rightside"><span·class="sinc[·...·truncated·by·diffoscope;·len:·247,·SHA:·222a0145d03094cb0b20ca156583afe97e703828a8aa77e37fb7b4661759e2c7·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where
95 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,95 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
96 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,96 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
97 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns97 ····R:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns
98 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rights[·...·truncated·by·diffoscope;·len:·321,·SHA:·619fd774190944998148325de99aaa75de66ce4b7e26579fd342c564923a5652·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where98 successfully,·producing·a·single,·final·value.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"[·...·truncated·by·diffoscope;·len:·249,·SHA:·afbe9e91614278f09851b7c5920ddaf0907a2bf4c310ec39b40084e28959cc77·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where
99 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,99 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
100 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,100 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
101 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the101 ····R:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="../../../core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the
102 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·307,·SHA:·5975144fd8566efa93ad1ccec09297e280924b7372e08681d2103702124e2c52·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where102 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><span·class="rightside"><span·class="since"·tit[·...·truncated·by·diffoscope;·len:·235,·SHA:·da9aac17d9724df2aa434c2d10e1caa010eb4fd7e574e4da4e3d5b689e970097·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where
103 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,103 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
104 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,104 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,
105 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span[·...·truncated·by·diffoscope;·len:·619,·SHA:·8813f54846438870310d5f5dfabd2335a9dbf51e9da2e4cd681bcb6077d39628·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where105 returning·the·final·result.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="St[·...·truncated·by·diffoscope;·len:·499,·SHA:·ff97be2c630acbbbb397aa79317bd89b79955e6735d9da7aea9df48659f94fce·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
106 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,106 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
107 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·084691f7fc4e7f4da7db385127d0ce8d2d52f6740757129a65910c4db0dc180d·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing107 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·256,·SHA:·2fe8ae39f77649fea294c45979f427748b2a9938dfa70e4595ac661d972125b1·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing
108 operation.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·217,·SHA:·447ae00256be3de069c602a6c04889808c883eae6fa349d023f53bdd5570ecae·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(108 operation.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside"·href="../../../src/cor[·...·truncated·by·diffoscope;·len:·145,·SHA:·be4dc63adf8a4e832fd3dbaaabbf45f287388ea2bb17088d40589203a2ec6dfb·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(
109 ····&amp;mut·self,109 ····&amp;mut·self,
110 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·70b2b85cad045ac7addf647e0bd3cd5b2c9ebca5986613ad2b6a9c00e3a1132f·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,110 ····f:·impl·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·68,·SHA:·e7e11f257edcac749a5883ad9a3aa42e6e965be419f967b36caa7afd3b36d7c9·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
111 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·1823533b932e38e3200465d101f10a34421c005018974296350162e4049615ea·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where111 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</[·...·truncated·by·diffoscope;·len:·586,·SHA:·596f94ec7a4c06359aee56ccb8a7138a1ddb94415fafcecac1fc87434b1329a3·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
112 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,112 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
113 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,113 ····R:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
114 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·764ea8f08626b05426a76738d54ebb2d640042494d76cba8c20d868bfdc07a73·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the114 ····&lt;R·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</[·...·truncated·by·diffoscope;·len:·292,·SHA:·2ae73aa9b78f13099a8016e28a473713dcc755cf00fed8895c0c1b027bbcea01·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the
115 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><span·class="rightside"><s[·...·truncated·by·diffoscope;·len:·476,·SHA:·aef721c14147dea2fbec70dcfa76916b3f1273bed8304f4c9db310ca23d1e4b1·...·]/core/primitive.bool.html">bool</a><div·class="where">where115 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title=[·...·truncated·by·diffoscope;·len:·380,·SHA:·1042cdc03eabce3d330853b659f28b8566dd5841790f7f1303f3e326f05efab6·...·]/core/primitive.bool.html">bool</a><div·class="where">where
116 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,116 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
117 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·7c48e62c73a40a5cb5ebbf4a22cd789b342a88ad3d855022191f2bae33c736c6·...·]/core/primitive.bool.html">bool</a><div·class="where">where117 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·850,·SHA:·1b28d9cdfe3ba8dc7eac8cef1bb6549e78768b440ea492c70d80c8c07eae61cb·...·]/core/primitive.bool.html">bool</a><div·class="where">where
118 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,118 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
119 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·673d69ce0c23e24b2546127c463e67cd2a4c0f7be792712e2b42e75427161b75·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where119 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·980,·SHA:·a560c9e639c326a34f124b36f977291532e03ffae190e973674fee7e13b4c842·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
120 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,120 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
121 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·aa5078ff77f5638746395497f8ce92c1b684d342dea851990104d5e9981ab6b0·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where121 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·883,·SHA:·47fb849c20ee0cb36696a24bd285768bd0973774403ae956d2a517cd216452b1·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where
122 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,122 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
123 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·1bd732dff19021a1586bb486282683f5c1bc65d5d514f9e13cc9232b4e94955b·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;,</div></h4></section></summary><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns123 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·58,·SHA:·f6e1e279f463d2adecc4a9316aeab7af85329a84398e722f43ac130647fe78cf·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;,</div></h4></section></summary><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns
124 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.find_map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_find"·class="method·trait-impl"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·215,·SHA:·4d59a011c8881794ce6367c1e816f11a813db02e37c71800ed6d47056f157573·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(124 the·first·non-none·result.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.find_map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_find"·class="method·trait-impl"><a·class="src·rightside"·href="../../../src/cor[·...·truncated·by·diffoscope;·len:·143,·SHA:·00906f8dc0620ba030a634eba59c098f3aff639a062bf6231dfc4feb7727cc72·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(
125 ····&amp;mut·self,125 ····&amp;mut·self,
Max diff block lines reached; 90133/346998 bytes (25.98%) of diff not shown.
324 KB
./usr/share/doc/rust-doc/html/alloc/collections/linked_list/struct.IterMut.html
    
Offset 1, 230 lines modifiedOffset 1, 230 lines modified
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="A·mutable·iterator·over·the·elements·of·a·`LinkedList`."><title>IterMut·in·alloc::collections::linked_list·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312» 2025-01-07)»      (built»from»    a»   source»     tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">IterMut</a></h2><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Debug-for-IterMut%3C'_,+T%3E"·title="Debug">Debug</a></li><li><a·href="#impl-Default-for-IterMut%3C'_,+T%3E"·title="Default">Default</a></li><li><a·href="#impl-DoubleEndedIterator-for-IterMut%3C'a,+T%3E"·title="DoubleEndedIterator">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-IterMut%3C'_,+T%3E"·title="ExactSizeIterator">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-IterMut%3C'_,+T%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-IterMut%3C'a,+T%3E"·title="Iterator">Iterator</a></li><li><a·href="#impl-Send-for-IterMut%3C'_,+T%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-IterMut%3C'_,+T%3E"·title="Sync">Sync</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-UnwindSafe-for-IterMut%3C'a,+T%3E"·title="!UnwindSafe">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-IterMut%3C'a,+T%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-IterMut%3C'a,+T%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Unpin-for-IterMut%3C'a,+T%3E"·title="Unpin">Unpin</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>collections::<wbr>linked_<wbr>list</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">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">linked_list</a></span><h1>Struct·<span·class="struct">IterMut</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../../src/alloc/collections/linked_list.rs.html#110-115">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·IterMut&lt;'a,·T:·'a&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>A·mutable·iterator·over·the·elements·of·a·<code>LinkedList</code>.</p>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="A·mutable·iterator·over·the·elements·of·a·`LinkedList`."><title>IterMut·in·alloc::collections::linked_list·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312» 2025-01-07)»      (built»from»    a»   source»     tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">IterMut</a></h2><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Debug-for-IterMut%3C'_,+T%3E"·title="Debug">Debug</a></li><li><a·href="#impl-Default-for-IterMut%3C'_,+T%3E"·title="Default">Default</a></li><li><a·href="#impl-DoubleEndedIterator-for-IterMut%3C'a,+T%3E"·title="DoubleEndedIterator">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-IterMut%3C'_,+T%3E"·title="ExactSizeIterator">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-IterMut%3C'_,+T%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-IterMut%3C'a,+T%3E"·title="Iterator">Iterator</a></li><li><a·href="#impl-Send-for-IterMut%3C'_,+T%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-IterMut%3C'_,+T%3E"·title="Sync">Sync</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-UnwindSafe-for-IterMut%3C'a,+T%3E"·title="!UnwindSafe">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-IterMut%3C'a,+T%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-IterMut%3C'a,+T%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Unpin-for-IterMut%3C'a,+T%3E"·title="Unpin">Unpin</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>collections::<wbr>linked_<wbr>list</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">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">linked_list</a></span><h1>Struct·<span·class="struct">IterMut</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../../src/alloc/collections/linked_list.rs.html#110-115">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·IterMut&lt;'a,·T:·'a&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>A·mutable·iterator·over·the·elements·of·a·<code>LinkedList</code>.</p>
2 <p>This·<code>struct</code>·is·created·by·<a·href="struct.LinkedList.html#method.iter_mut"·title="method·alloc::collections::linked_list::LinkedList::iter_mut"><code>LinkedList::iter_mut()</code></a>.·See·its2 <p>This·<code>struct</code>·is·created·by·<a·href="struct.LinkedList.html#method.iter_mut"·title="method·alloc::collections::linked_list::LinkedList::iter_mut"><code>LinkedList::iter_mut()</code></a>.·See·its
3 documentation·for·more.</p>3 documentation·for·more.</p>
4 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-IterMut%3C'_,+T%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.17.0">1.17.0</span>···<a·class="src"·href="../../../src/alloc/collections/linked_list.rs.html#118-131">Source</a></span><a·href="#impl-Debug-for-IterMut%3C'_,+T%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T:·<a·class="trait"·href="../../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>&gt;·<a·class="trait"·href="../../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.IterMut.html"·title="struct·alloc::collections::linked_list::IterMut">IterMut</a>&lt;'_,·T&gt;</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../../../src/alloc/collections/linked_list.rs.html#119-130">Source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="../../fmt/struct.Formatter.html"·title="struct·alloc::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="type"·href="../../fmt/type.Result.html"·title="type·alloc::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../../fmt/trait.Debug.html#tymethod.fmt">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Default-for-IterMut%3C'_,+T%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.70.0">1.70.0</span>···<a·class="src"·href="../../../src/alloc/collections/linked_list.rs.html#1311-1315">Source</a></span><a·href="#impl-Default-for-IterMut%3C'_,+T%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·for·<a·class="struct"·href="struct.IterMut.html"·title="struct·alloc::collections::linked_list::IterMut">IterMut</a>&lt;'_,·T&gt;</h3></secti[·...·truncated·by·diffoscope;·len:·5789,·SHA:·5e3fd0508013ab5438fd32ccec17a164358680e20bf032a556eb7776c7f10dd0·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold"·class="fn">try_rfold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where4 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-IterMut%3C'_,+T%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.17.0">1.17.0</span>···<a·class="src"·href="../../../src/alloc/collections/linked_list.rs.html#118-131">Source</a></span><a·href="#impl-Debug-for-IterMut%3C'_,+T%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T:·<a·class="trait"·href="../../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>&gt;·<a·class="trait"·href="../../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.IterMut.html"·title="struct·alloc::collections::linked_list::IterMut">IterMut</a>&lt;'_,·T&gt;</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../../../src/alloc/collections/linked_list.rs.html#119-130">Source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="../../fmt/struct.Formatter.html"·title="struct·alloc::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="type"·href="../../fmt/type.Result.html"·title="type·alloc::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../../fmt/trait.Debug.html#tymethod.fmt">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Default-for-IterMut%3C'_,+T%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.70.0">1.70.0</span>···<a·class="src"·href="../../../src/alloc/collections/linked_list.rs.html#1311-1315">Source</a></span><a·href="#impl-Default-for-IterMut%3C'_,+T%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../../core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·for·<a·class="struct"·href="struct.IterMut.html"·title="struct·alloc::collections::linked_list::IterMut">IterMut</a>&lt;'_,·T&gt;</h3></section></summary><div·class=[·...·truncated·by·diffoscope;·len:·5213,·SHA:·b87f4d1544dcc06ae6261703c9eb4c13fef5628e1b1ce8ad4b142a02459c727d·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold"·class="fn">try_rfold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where
5 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,5 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
6 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,6 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
7 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>This·is·the·reverse·version·of·<a·href="https://doc.rust-lang.org/1.8[·...·truncated·by·diffoscope;·len:·3,·SHA:·fbd04e1aae9ce0b11a8946e2c9ac2619f7428a64d32d01eff61d809dcb70ee8e·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·title="method·core::iter::traits::iterator::Iterator::try_fold"><code>Iterator::try_fold()</code></a>:·it·takes7 ····R:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>This·is·the·reverse·version·of·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·title="method·core::iter::traits::iterator::Iterator::try_fold"><code>Iterator::try_fold()</code></a>:·it·takes
8 elements·starting·from·the·back·of·the·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfold"·class="method·trait-impl"><span·clas[·...·truncated·by·diffoscope;·len:·325,·SHA:·7ffdb06a8ab3810207a1c974783822231eaf1d82fd94bcf810dd7b3181149b7b·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold"·class="fn">rfold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where8 elements·starting·from·the·back·of·the·iterator.·<a·href="../../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfold"·class="method·trait-impl"><span·class="rightside"><span·clas[·...·truncated·by·diffoscope;·len:·253,·SHA:·48421497f19ee93d3a7432833660cd659661b35b02b625c6376fc49660f200cf·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold"·class="fn">rfold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where
9 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,9 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
10 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·reduces·the·iterator’s·elements·to·a·single,10 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·reduces·the·iterator’s·elements·to·a·single,
11 final·value,·starting·from·the·back.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfind"·class="method·trait-impl"><span·class="r[·...·truncated·by·diffoscope;·len:·665,·SHA:·fde89feb7c0e70eefa34d688476ca36a70115bec8150dbf9b1a3c359f72dd28d·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where11 final·value,·starting·from·the·back.·<a·href="../../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfind"·class="method·trait-impl"><span·class="rightside"><span·class="s[·...·truncated·by·diffoscope;·len:·545,·SHA:·b420bc934fe1ddfd2fe0958678aa3aba1ce90383b1958958e47e13ae1b40fe25·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
12 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,12 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
13 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·7944,·SHA:·e47af210d5ec463ae749ead5326acf98f6e6baf642014e6479920b3b984faecb·...·]/core/primitive.usize.html">usize</a>&gt;(13 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·7176,·SHA:·576ad18e2b51682977104ca4eba9fe83cf1fa92836d6f0346698e0d918d7b392·...·]/core/primitive.usize.html">usize</a>&gt;(
14 ····&amp;mut·self,14 ····&amp;mut·self,
15 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·4f557a9b49151e0be8c52ffd68f1def4469c08164239dc8bef8df2040551c5ef·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where15 )·-&gt;·<a·class="enum"·href="../../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::It[·...·truncated·by·diffoscope;·len:·261,·SHA:·9b488006768a86d05b68f4e1888c750c736264a3a386f1310f1b7e8bfc7d2184·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where
16 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·962,·SHA:·116e4ec2ae3d9655c3d115eaf50f435f5323b4e48b84de734c79d2a09b3c02f2·...·]/core/primitive.usize.html">usize</a><div·class="where">where16 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_next[·...·truncated·by·diffoscope;·len:·842,·SHA:·d8f387888e3ee78f4397f4b1a12eae734e055247e3aa3251433ab8ac1019b31a·...·]/core/primitive.usize.html">usize</a><div·class="where">where
17 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·counting·the·number·of·iterations·and·returning·it.·<a·href="https://doc.[·...·truncated·by·diffoscope;·len:·3529,·SHA:·36685e4ebfba7d155142dce71eec5dabe5f32dacb8a458b62987f15496f31675·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where17 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·counting·the·number·of·iterations·and·returning·it.·<a·href="../../../core/iter/traits/iterator/t[·...·truncated·by·diffoscope;·len:·3049,·SHA:·36b73bdc1b7eb71bc2ee32534a58bc8374d5403ad0bacb5cbfb32bf6be47bb80·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where
18 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by18 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by
19 the·given·amount·at·each·iteration.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><sp[·...·truncated·by·diffoscope;·len:·842,·SHA:·945c4509a8daf2f8fbccc5c6e5089e225955911e03a3e411f047f96d52d16862·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where19 the·given·amount·at·each·iteration.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="[·...·truncated·by·diffoscope;·len:·698,·SHA:·035d2f4d2e6b01ddf0b424aa6fc3f5919c82f85f857cb9cfa0f54f8357058b90·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
20 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,20 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
21 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·3b5ce32f9d564c3aa7cf2adc7130e674758d0c0f4f1275b4c3b46a74aa802cb3·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where21 ····U:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·[·...·truncated·by·diffoscope;·len:·1137,·SHA:·7916ae3a9b5afad376aafc6d698165147d82613fe975f64423f2367a02a69f6a·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
22 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,22 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
23 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·[·...·truncated·by·diffoscope;·len:·868,·SHA:·abdbf27ccc84063c7040d8fa3da9d0bda5ee310a470ef576e15554aee4bd5d21·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where23 ····U:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·of·pairs.·<a·href="../..[·...·truncated·by·diffoscope;·len:·724,·SHA:·ba31078b5c50fbfc51e53bed6f70aaa6e7e320cfda19949035c71d9363c0d919·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where
24 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,24 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
25 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent25 ····Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent
26 items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="sr[·...·truncated·by·diffoscope;·len:·427,·SHA:·6e82ad4aad49c2165d869fe30d20a968580a973cdb3a7f4c77f49e16dd59393e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where26 items·of·the·original·iterator.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="src·rightside"·href="../..[·...·truncated·by·diffoscope;·len:·331,·SHA:·451e844c9bf5d6d78b9579516e4b9fafb3e84136eaa1c95bead4539370743d7d·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where
27 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,27 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
28 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>28 ····G:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>
29 between·adjacent·items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightsi[·...·truncated·by·diffoscope;·len:·471,·SHA:·ed10488b7b2ccc3e4cc84a9a57a9695a74c1c964962e8d753cbace12f3318a66·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where29 between·adjacent·items·of·the·original·iterator.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·[·...·truncated·by·diffoscope;·len:·375,·SHA:·7bbb71535f348e442b9de05a74f9180c9acec0636566fa2a19ab1dc83779aace·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where
30 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,30 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
31 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each31 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each
32 element.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><spa[·...·truncated·by·diffoscope;·len:·306,·SHA:·61c87c39b177830189b0e4c036d97c40d8b9649d76432c90afb88de59498e8b2·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where32 element.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="S[·...·truncated·by·diffoscope;·len:·234,·SHA:·55463e0fb539911d03265cbd8abb7248189471ea74954185ed77f245746805c2·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where
33 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,33 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
34 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·a65da32c5f5ef8335cb607d3b4ab3f8a25877bc2c2e8b44ca9d575caecd5c8a5·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where34 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·772,·SHA:·de07f629315c257cc96a89e82de6752f002f259b678391b79d5fb48e279e56d2·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where
35 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,35 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
36 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·6d69c85c69fa789be551ea42d95c33c237d12a04ef157f9ddaaead1177f7771e·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element36 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·68,·SHA:·67cf1e2a20410007c7dd6c47c91b1d386626c1bfac5c1116c374da7bbee00d51·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element
37 should·be·yielded.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·489,·SHA:·9bdc636899f4e4e5a26a3a21c9603f72b3fb972865d2f459c38b7e2ac8fed7f1·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where37 should·be·yielded.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·tit[·...·truncated·by·diffoscope;·len:·393,·SHA:·328d72714f754fb793753313f01b087a9fbb30b77a2bcd5749456e1f6fd72710·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where
38 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,38 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
39 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·46dbf841c7aecd3f06bd4c944af21650faeac98c46c515dcfe643302618b1ecd·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where39 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·884,·SHA:·e8a37e28a6bfcb2d58b9ffd389d339c3dece95c14840f28c980a7d7aedcc9a05·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where
40 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as40 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as
41 the·next·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside[·...·truncated·by·diffoscope;·len:·468,·SHA:·52f7ff7f264284c3acc4429ca34d057ded9afa2e3d9d6e07571e252db9a48977·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where41 the·next·value.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside"><span·class="since"·ti[·...·truncated·by·diffoscope;·len:·372,·SHA:·9c08a613d034f21b42b8d196073d0f4d61c81458378e40e77995533a8b460837·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where
42 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·c0180fefce4346b0b4089e5c642521d7716108241c0ce6ec3e910c7a2c7364b4·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods42 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="../../../core/iter/adapters/peekable/struct.Peekable.html#method.peek"·ti[·...·truncated·by·diffoscope;·len:·103,·SHA:·e3683d31746f50069ed604def6201840bce75bbc7c584fac6c3644292077ae8a·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods
43 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See43 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See
44 their·documentation·for·more·information.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightsid[·...·truncated·by·diffoscope;·len:·498,·SHA:·e4a68861585faec6a5032b3b69d6dfb0f2799b5f387a527d9a1365571ed02069·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where44 their·documentation·for·more·information.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightside"><span·class="since"·t[·...·truncated·by·diffoscope;·len:·402,·SHA:·bdba673560d208f968337eb74446ead60d6223b0ca9ec6fbfaeb1a995a7e8001·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where
45 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,45 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
46 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·93281c1f6402743fd61110c11cf676f0f67eddceda801b4eb35e5fe9f85870fd·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where46 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·1042,·SHA:·27d4a79658fb1c97b659bd2520bcebbf5cfcb8a42420a7ecfcbff6f3330fa5e1·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where
47 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,47 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
48 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·f1cdbb1ec64f98fabbe1d89c88b03824310926cd7eaa160953ce2452fc3abb77·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where48 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·890,·SHA:·c43533da7f54bfb6611594b3436645d4d1f8e5339d2d05bf2345e87628499759·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where
49 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,49 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
50 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·f94a0b2c1396b13b89aca7830197ebf19e2c0e5ba536a9cc25b325a481799510·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where50 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·971,·SHA:·1b31b9d1d5061d4ee982a30400139f1d7319412bdea39925e0cc1e8e7cf3d65a·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where
51 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="https://doc.rust-lang[·...·truncated·by·diffoscope;·len:·783,·SHA:·c14217b89e3292a50a09192a8857485891fc769f861e1d1fc4322d04295c86ef·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where51 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="../../../core/iter/traits/iterator/trait.Iter[·...·truncated·by·diffoscope;·len:·639,·SHA:·79c7f7eddc655d329424f08baee8551b7f59cd4dc4b0d6984c5e4f241bcb949b·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where
52 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer52 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer
53 if·the·underlying·iterator·ends·sooner.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·c[·...·truncated·by·diffoscope;·len:·488,·SHA:·76f753d5a273a09a73127631acaa0ee947326a929f33be291018188793e1af56·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where53 if·the·underlying·iterator·ends·sooner.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stab[·...·truncated·by·diffoscope;·len:·392,·SHA:·50ac976eb8bf89726a483af064d5a70c100dedd17d46dc40ac3a82aba51b2082·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where
54 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,54 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
55 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·07d303586c8ad4e0082d5b44bff8eeda03cdb8f4bdbe46489f9232bca5a43ec6·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but55 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/tra[·...·truncated·by·diffoscope;·len:·329,·SHA:·14fc5ef1359fcb2171e21ba65c5f5d8ce11053860ba1d5aa32ddce90a48c2a8c·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but
56 unlike·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·2b20882d9583cee50e0c8b3cf362b27ce0d524db387d4aa4093d622b9370dada·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where56 unlike·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.scan">Rea[·...·truncated·by·diffoscope;·len:·570,·SHA:·3cdbe78e481f63f4d21b2fa94202dad167221af9d6e6f981ccd7a6e524f6157d·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where
57 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,57 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
58 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,58 ····U:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
59 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·933,·SHA:·4af94b75ba5c1e03d2d70590d2fd0706f13b3080fbff0f5b98e7b109048c403d·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where59 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·789,·SHA:·0e36f9aa81931958e65acc9e1b5bf6ad7367dcb7163dcf0af2a043314857a909·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where
60 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,60 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
61 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.I[·...·truncated·by·diffoscope;·len:·968,·SHA:·e5572ed2f3bdf5970d038da608f2f592d945541207c483c257fe5789efba168a·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where61 ····Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::trait[·...·truncated·by·diffoscope;·len:·800,·SHA:·3ea01df21dfaf9ee656fdee6aa789a6ce5be05d17c043433c5ab28da8f6d3241·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where
62 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,62 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
63 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·3013c0e49b0dade37f8ca096eccc5ceeb03fc79b9d320a4c92486d23b88d1009·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over63 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator[·...·truncated·by·diffoscope;·len:·63,·SHA:·8395b60c01b0cde6c3340bd4e6c57cddd02465a19dcf15a8aa5498bd6c8ddc11·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over
64 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,64 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="../../../core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,
65 the·windows·during·mapping·overlap·as·well.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside">[·...·truncated·by·diffoscope;·len:·454,·SHA:·040991f3914479bcc92615de2b81df7363656323622e5aadc964e1a61917d23e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where65 the·windows·during·mapping·overlap·as·well.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside"><span·class="since"·titl[·...·truncated·by·diffoscope;·len:·358,·SHA:·21db4436f04b3d09e41f294c30cd7dea235a4beb9af727cb1f1f065008ad732e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where
66 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="https://doc.rust-lang.org/1.84.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·0e0294a45242d5ce9a3ab8f95d6d410756415291d92baa7d12283ef1b3ecc3a0·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where66 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="../../../core/option/enum.Option.html#variant.None"·title="varia[·...·truncated·by·diffoscope;·len:·697,·SHA:·55b16240a265fa2f73963114b9def4c5703a60d1c3ce047915fff28502588e5b·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where
67 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,67 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
68 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·a8b562f71802a421f4745f7d1fadf4f70d98030c829e70f27b692e7915267027·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where68 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·650,·SHA:·eb862563a2da6881a0f9a31dac8f99f2b47b2c8d3033a0e1bc9ec49ae5500941·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where
69 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="https://doc.rust-lang.org/1.84.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·b3db7d84f203bbc139b1c52912705d19c664dac762898205fce452c9dc3a5318·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where69 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.by[·...·truncated·by·diffoscope;·len:·427,·SHA:·d439202f1a598c30b789e20f3d05a82f531349aa12f3af08cc5c230996ec01a9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where
70 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,70 ····B:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
71 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·431,·SHA:·a705a23f6d810357e7dcac670743884665ffcccfb9b780d0aa03720be8ca5625·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(71 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.collect[·...·truncated·by·diffoscope;·len:·335,·SHA:·d72a986b5d306b2e1ed99e18a16e26fa1b5380448fea76ac3db703052800b629·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(
72 ····&amp;mut·self,72 ····&amp;mut·self,
73 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.h[·...·truncated·by·diffoscope;·len:·479,·SHA:·fa749442d890055f86ceb34f411c84fd7ea08302b336d786d1ca36fe5868b020·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where73 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try[·...·truncated·by·diffoscope;·len:·359,·SHA:·886ccc2fbd37f1e7df4075b80b0bebd3d1a6e997fae2114ca1818fa30fa95d5a·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
74 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,74 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
75 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>, 
76 ····&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang[·...·truncated·by·diffoscope;·len:·449,·SHA:·9ddccfb7bdd27ea692d65fa83daf56e31762d1bec3a502234174b8fa4fb33a98·...·],75 ····Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="[·...·truncated·by·diffoscope;·len:·40,·SHA:·39f6b8b47216936a6251a972a3e72c0459df25c157b8b3990eefb48397aa8303·...·],
 76 ····&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;B&gt;,
77 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/itera[·...·truncated·by·diffoscope;·len:·323,·SHA:·b5c51f161dc9d77fd81d1fd23cc71fbf42ac00f3168cf9e41ebaaa2b6eb25363·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if77 ····B:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·tit[·...·truncated·by·diffoscope;·len:·227,·SHA:·91a843f71f5d4d4bdd2a6f526e4b1ace78ad1c1c0027ff429527a1e3cc1cbb42·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if
78 a·failure·is·encountered.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·ri[·...·truncated·by·diffoscope;·len:·521,·SHA:·6a54376815dab985ec8cc35604d035e98e3003b1563c9b41e70966084505542b·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where78 a·failure·is·encountered.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../../[·...·truncated·by·diffoscope;·len:·401,·SHA:·ed1d0660f20625c1d5231d569dd3e4f1d10332250dcd1a3f5d2e886618e67f5b·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
79 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,79 ····E:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
80 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·975,·SHA:·94f7f970236ba59ba5f1415764a0e3ab2f3093c6b79e76c25c797ac24a3c4d09·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where80 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_coll[·...·truncated·by·diffoscope;·len:·855,·SHA:·7b38a8c237aadc46d5211ff8698af580678e0cbcab757a66d6416b422880dd91·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
81 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,81 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
82 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·b480ec650ba000fe7cb67df58fc0351299638ee3e8f00db18f74ca24d69f9894·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,82 ····B:·<a·class="trait"·href="../../../core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="../../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associa[·...·truncated·by·diffoscope;·len:·23,·SHA:·4417dee5d41246c4acf5419e1bdac3c7d847bd34e3e87738a08734259a3b63da·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
83 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·fdf5a1845f070855ba2cfd0c8c85460ea5cb646c4d3b42a8431bf21489c73701·...·]/core/primitive.usize.html">usize</a><div·class="where">where83 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·827,·SHA:·0237b034801a953ed40ad7c10f9a80d682bdf0a649c6fde9f53efc254cd75fc0·...·]/core/primitive.usize.html">usize</a><div·class="where">where
84 ····T:·'a,84 ····T:·'a,
85 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·1fc250e258e9e42e4fa3e22f86ecd57057e9ff23e47af1aec778076a7a891134·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,85 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="../../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEnd[·...·truncated·by·diffoscope;·len:·60,·SHA:·036db50df43442a72ce04aef94ccf2727352aad0708d71fe0e34c23613b84765·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,
86 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·5846407374f20f525a4a0663ad4488141eafe64513ef82581dc5df5c2d200745·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_partition_in_place</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62543">#62543</a>)</span></div></span><div·class='docblock'>Reorders·the·elements·of·this·iterator·<em>in-place</em>·according·to·the·given·predicate,86 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="../../../core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_partition_in_place</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62543">#62543</a>)</span></div></span><div·class='docblock'>Reorders·the·elements·of·this·iterator·<em>in-place</em>·according·to·the·given·predicate,
87 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.87 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.
88 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.partition_in_place">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_partitioned"·class="method·trait-impl"><a·clas[·...·truncated·by·diffoscope;·len:·431,·SHA:·4aa7d028146c72d45794efc19a376d4bee3b75eda61ff46d969e440b3dbfa1b0·...·]/core/primitive.bool.html">bool</a><div·class="where">where88 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.partition_in_place">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_partitioned"·class="method·trait-impl"><a·class="src·rightside"·href="[·...·truncated·by·diffoscope;·len:·335,·SHA:·252e1c16199fc3c38bc7de8cbda8c9532ab6d581d449c680cd7daf8d61a74aeb·...·]/core/primitive.bool.html">bool</a><div·class="where">where
89 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,89 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
90 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·fcd03e71f79faad6d9b9a12045d59f4dfabc78e5aefebcabc9c1a5be45e31125·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,90 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·63,·SHA:·852041c2de8156fdddf9f71111c5ddf1a6b88aabd8c082f1a254f0b21c18ffa1·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,
91 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><span·class="righ[·...·truncated·by·diffoscope;·len:·319,·SHA:·9b9df13f2f4e5b4dde3908515766e1a474fa30bcb7edc98c15665a016e677c2a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where91 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><span·class="rightside"><span·class="sinc[·...·truncated·by·diffoscope;·len:·247,·SHA:·222a0145d03094cb0b20ca156583afe97e703828a8aa77e37fb7b4661759e2c7·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where
92 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,92 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
93 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,93 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
94 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns94 ····R:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns
95 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rights[·...·truncated·by·diffoscope;·len:·321,·SHA:·619fd774190944998148325de99aaa75de66ce4b7e26579fd342c564923a5652·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where95 successfully,·producing·a·single,·final·value.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"[·...·truncated·by·diffoscope;·len:·249,·SHA:·afbe9e91614278f09851b7c5920ddaf0907a2bf4c310ec39b40084e28959cc77·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where
96 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,96 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
97 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,97 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
98 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the98 ····R:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="../../../core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the
99 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·307,·SHA:·5975144fd8566efa93ad1ccec09297e280924b7372e08681d2103702124e2c52·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where99 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><span·class="rightside"><span·class="since"·tit[·...·truncated·by·diffoscope;·len:·235,·SHA:·da9aac17d9724df2aa434c2d10e1caa010eb4fd7e574e4da4e3d5b689e970097·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where
100 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,100 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
101 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,101 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,
102 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span[·...·truncated·by·diffoscope;·len:·619,·SHA:·8813f54846438870310d5f5dfabd2335a9dbf51e9da2e4cd681bcb6077d39628·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where102 returning·the·final·result.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="St[·...·truncated·by·diffoscope;·len:·499,·SHA:·ff97be2c630acbbbb397aa79317bd89b79955e6735d9da7aea9df48659f94fce·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
103 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,103 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
104 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·084691f7fc4e7f4da7db385127d0ce8d2d52f6740757129a65910c4db0dc180d·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing104 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·256,·SHA:·2fe8ae39f77649fea294c45979f427748b2a9938dfa70e4595ac661d972125b1·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing
105 operation.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·217,·SHA:·447ae00256be3de069c602a6c04889808c883eae6fa349d023f53bdd5570ecae·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(105 operation.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside"·href="../../../src/cor[·...·truncated·by·diffoscope;·len:·145,·SHA:·be4dc63adf8a4e832fd3dbaaabbf45f287388ea2bb17088d40589203a2ec6dfb·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(
106 ····&amp;mut·self,106 ····&amp;mut·self,
107 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·70b2b85cad045ac7addf647e0bd3cd5b2c9ebca5986613ad2b6a9c00e3a1132f·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,107 ····f:·impl·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·68,·SHA:·e7e11f257edcac749a5883ad9a3aa42e6e965be419f967b36caa7afd3b36d7c9·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
108 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·1823533b932e38e3200465d101f10a34421c005018974296350162e4049615ea·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where108 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</[·...·truncated·by·diffoscope;·len:·586,·SHA:·596f94ec7a4c06359aee56ccb8a7138a1ddb94415fafcecac1fc87434b1329a3·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
109 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,109 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
110 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,110 ····R:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
111 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·764ea8f08626b05426a76738d54ebb2d640042494d76cba8c20d868bfdc07a73·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the111 ····&lt;R·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</[·...·truncated·by·diffoscope;·len:·292,·SHA:·2ae73aa9b78f13099a8016e28a473713dcc755cf00fed8895c0c1b027bbcea01·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the
112 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><span·class="rightside"><s[·...·truncated·by·diffoscope;·len:·476,·SHA:·aef721c14147dea2fbec70dcfa76916b3f1273bed8304f4c9db310ca23d1e4b1·...·]/core/primitive.bool.html">bool</a><div·class="where">where112 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title=[·...·truncated·by·diffoscope;·len:·380,·SHA:·1042cdc03eabce3d330853b659f28b8566dd5841790f7f1303f3e326f05efab6·...·]/core/primitive.bool.html">bool</a><div·class="where">where
113 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,113 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
114 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·7c48e62c73a40a5cb5ebbf4a22cd789b342a88ad3d855022191f2bae33c736c6·...·]/core/primitive.bool.html">bool</a><div·class="where">where114 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·850,·SHA:·1b28d9cdfe3ba8dc7eac8cef1bb6549e78768b440ea492c70d80c8c07eae61cb·...·]/core/primitive.bool.html">bool</a><div·class="where">where
115 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,115 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
116 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·673d69ce0c23e24b2546127c463e67cd2a4c0f7be792712e2b42e75427161b75·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where116 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·980,·SHA:·a560c9e639c326a34f124b36f977291532e03ffae190e973674fee7e13b4c842·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
117 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,117 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
118 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·aa5078ff77f5638746395497f8ce92c1b684d342dea851990104d5e9981ab6b0·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where118 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·883,·SHA:·47fb849c20ee0cb36696a24bd285768bd0973774403ae956d2a517cd216452b1·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where
119 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,119 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
120 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·1bd732dff19021a1586bb486282683f5c1bc65d5d514f9e13cc9232b4e94955b·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;,</div></h4></section></summary><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns120 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·58,·SHA:·f6e1e279f463d2adecc4a9316aeab7af85329a84398e722f43ac130647fe78cf·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;,</div></h4></section></summary><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns
121 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.find_map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_find"·class="method·trait-impl"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·215,·SHA:·4d59a011c8881794ce6367c1e816f11a813db02e37c71800ed6d47056f157573·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(121 the·first·non-none·result.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.find_map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_find"·class="method·trait-impl"><a·class="src·rightside"·href="../../../src/cor[·...·truncated·by·diffoscope;·len:·143,·SHA:·00906f8dc0620ba030a634eba59c098f3aff639a062bf6231dfc4feb7727cc72·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(
122 ····&amp;mut·self,122 ····&amp;mut·self,
123 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,123 ····f:·impl·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
124 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·efb03e5c706e0947c6a4490b17f1efb0f1944a7d81f2640b5933212334dd255a·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where124 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</[·...·truncated·by·diffoscope;·len:·482,·SHA:·9ae34b47b226617c3eb5738e2b006056038b8280724fbbb72477bd2e900a4e85·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
125 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,125 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
126 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html">bool</a>&gt;,126 ····R:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="../../../core/primitive.bool.html">bool</a>&gt;,
Max diff block lines reached; 81861/332049 bytes (24.65%) of diff not shown.
178 KB
./usr/share/doc/rust-doc/html/alloc/collections/linked_list/struct.LinkedList.html
    
Offset 83, 25 lines modifiedOffset 83, 25 lines modified
83 <p>The·cursor·is·pointing·to·the·“ghost”·non-element·if·the·list·is·empty.</p>83 <p>The·cursor·is·pointing·to·the·“ghost”·non-element·if·the·list·is·empty.</p>
84 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.cursor_front_mut"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/linked_list.rs.html#589-591">Source</a><h4·class="code-header">pub·fn·<a·href="#method.cursor_front_mut"·class="fn">cursor_front_mut</a>(&amp;mut·self)·-&gt;·<a·class="struct"·href="struct.CursorMut.html"·title="struct·alloc::collections::linked_list::CursorMut">CursorMut</a>&lt;'_,·T,·A&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>linked_list_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/58533">#58533</a>)</span></div></span></summary><div·class="docblock"><p>Provides·a·cursor·with·editing·operations·at·the·front·element.</p>84 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.cursor_front_mut"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/linked_list.rs.html#589-591">Source</a><h4·class="code-header">pub·fn·<a·href="#method.cursor_front_mut"·class="fn">cursor_front_mut</a>(&amp;mut·self)·-&gt;·<a·class="struct"·href="struct.CursorMut.html"·title="struct·alloc::collections::linked_list::CursorMut">CursorMut</a>&lt;'_,·T,·A&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>linked_list_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/58533">#58533</a>)</span></div></span></summary><div·class="docblock"><p>Provides·a·cursor·with·editing·operations·at·the·front·element.</p>
85 <p>The·cursor·is·pointing·to·the·“ghost”·non-element·if·the·list·is·empty.</p>85 <p>The·cursor·is·pointing·to·the·“ghost”·non-element·if·the·list·is·empty.</p>
86 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.cursor_back"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/linked_list.rs.html#599-601">Source</a><h4·class="code-header">pub·fn·<a·href="#method.cursor_back"·class="fn">cursor_back</a>(&amp;self)·-&gt;·<a·class="struct"·href="struct.Cursor.html"·title="struct·alloc::collections::linked_list::Cursor">Cursor</a>&lt;'_,·T,·A&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>linked_list_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/58533">#58533</a>)</span></div></span></summary><div·class="docblock"><p>Provides·a·cursor·at·the·back·element.</p>86 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.cursor_back"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/linked_list.rs.html#599-601">Source</a><h4·class="code-header">pub·fn·<a·href="#method.cursor_back"·class="fn">cursor_back</a>(&amp;self)·-&gt;·<a·class="struct"·href="struct.Cursor.html"·title="struct·alloc::collections::linked_list::Cursor">Cursor</a>&lt;'_,·T,·A&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>linked_list_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/58533">#58533</a>)</span></div></span></summary><div·class="docblock"><p>Provides·a·cursor·at·the·back·element.</p>
87 <p>The·cursor·is·pointing·to·the·“ghost”·non-element·if·the·list·is·empty.</p>87 <p>The·cursor·is·pointing·to·the·“ghost”·non-element·if·the·list·is·empty.</p>
88 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.cursor_back_mut"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/linked_list.rs.html#609-611">Source</a><h4·class="code-header">pub·fn·<a·href="#method.cursor_back_mut"·class="fn">cursor_back_mut</a>(&amp;mut·self)·-&gt;·<a·class="struct"·href="struct.CursorMut.html"·title="struct·alloc::collections::linked_list::CursorMut">CursorMut</a>&lt;'_,·T,·A&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>linked_list_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/58533">#58533</a>)</span></div></span></summary><div·class="docblock"><p>Provides·a·cursor·with·editing·operations·at·the·back·element.</p>88 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.cursor_back_mut"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/linked_list.rs.html#609-611">Source</a><h4·class="code-header">pub·fn·<a·href="#method.cursor_back_mut"·class="fn">cursor_back_mut</a>(&amp;mut·self)·-&gt;·<a·class="struct"·href="struct.CursorMut.html"·title="struct·alloc::collections::linked_list::CursorMut">CursorMut</a>&lt;'_,·T,·A&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>linked_list_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/58533">#58533</a>)</span></div></span></summary><div·class="docblock"><p>Provides·a·cursor·with·editing·operations·at·the·back·element.</p>
89 <p>The·cursor·is·pointing·to·the·“ghost”·non-element·if·the·list·is·empty.</p>89 <p>The·cursor·is·pointing·to·the·“ghost”·non-element·if·the·list·is·empty.</p>
90 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_empty"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/linked_list.rs.html#631-633">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.is_empty"·class="fn">is_empty</a>(&amp;self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html">bool</a></h4></section></summary><div·class="docblock"><p>Returns·<code>true</code>·if·the·<code>LinkedList</code>·is·empty.</p>90 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_empty"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/linked_list.rs.html#631-633">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.is_empty"·class="fn">is_empty</a>(&amp;self)·-&gt;·<a·class="primitive"·href="../../../core/primitive.bool.html">bool</a></h4></section></summary><div·class="docblock"><p>Returns·<code>true</code>·if·the·<code>LinkedList</code>·is·empty.</p>
91 <p>This·operation·should·compute·in·<em>O</em>(1)·time.</p>91 <p>This·operation·should·compute·in·<em>O</em>(1)·time.</p>
92 <h5·id="examples-5"><a·class="doc-anchor"·href="#examples-5">§</a>Examples</h5>92 <h5·id="examples-5"><a·class="doc-anchor"·href="#examples-5">§</a>Examples</h5>
93 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::LinkedList;93 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::LinkedList;
  
94 <span·class="kw">let·</span><span·class="kw-2">mut·</span>dl·=·LinkedList::new();94 <span·class="kw">let·</span><span·class="kw-2">mut·</span>dl·=·LinkedList::new();
95 <span·class="macro">assert!</span>(dl.is_empty());95 <span·class="macro">assert!</span>(dl.is_empty());
  
96 dl.push_front(<span·class="string">"foo"</span>);96 dl.push_front(<span·class="string">"foo"</span>);
97 <span·class="macro">assert!</span>(!dl.is_empty());</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::LinkedList;%0A++++%0A++++let+mut+dl+=+LinkedList::new();%0A++++assert!(dl.is_empty());%0A++++%0A++++dl.push_front(%22foo%22);%0A++++assert!(!dl.is_empty());%0A%7D&amp;edition=2021"></a></div>97 <span·class="macro">assert!</span>(!dl.is_empty());</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::LinkedList;%0A++++%0A++++let+mut+dl+=+LinkedList::new();%0A++++assert!(dl.is_empty());%0A++++%0A++++dl.push_front(%22foo%22);%0A++++assert!(!dl.is_empty());%0A%7D&amp;edition=2021"></a></div>
98 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.len"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/linked_list.rs.html#659-661">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.len"·class="fn">len</a>(&amp;self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.usize.html">usize</a></h4></section></summary><div·class="docblock"><p>Returns·the·length·of·the·<code>LinkedList</code>.</p>98 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.len"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/linked_list.rs.html#659-661">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.len"·class="fn">len</a>(&amp;self)·-&gt;·<a·class="primitive"·href="../../../core/primitive.usize.html">usize</a></h4></section></summary><div·class="docblock"><p>Returns·the·length·of·the·<code>LinkedList</code>.</p>
99 <p>This·operation·should·compute·in·<em>O</em>(1)·time.</p>99 <p>This·operation·should·compute·in·<em>O</em>(1)·time.</p>
100 <h5·id="examples-6"><a·class="doc-anchor"·href="#examples-6">§</a>Examples</h5>100 <h5·id="examples-6"><a·class="doc-anchor"·href="#examples-6">§</a>Examples</h5>
101 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::LinkedList;101 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::LinkedList;
  
102 <span·class="kw">let·</span><span·class="kw-2">mut·</span>dl·=·LinkedList::new();102 <span·class="kw">let·</span><span·class="kw-2">mut·</span>dl·=·LinkedList::new();
  
103 dl.push_front(<span·class="number">2</span>);103 dl.push_front(<span·class="number">2</span>);
Offset 123, 41 lines modifiedOffset 123, 41 lines modified
123 dl.push_front(<span·class="number">1</span>);123 dl.push_front(<span·class="number">1</span>);
124 <span·class="macro">assert_eq!</span>(dl.len(),·<span·class="number">2</span>);124 <span·class="macro">assert_eq!</span>(dl.len(),·<span·class="number">2</span>);
125 <span·class="macro">assert_eq!</span>(dl.front(),·<span·class="prelude-val">Some</span>(<span·class="kw-2">&amp;</span><span·class="number">1</span>));125 <span·class="macro">assert_eq!</span>(dl.front(),·<span·class="prelude-val">Some</span>(<span·class="kw-2">&amp;</span><span·class="number">1</span>));
  
126 dl.clear();126 dl.clear();
127 <span·class="macro">assert_eq!</span>(dl.len(),·<span·class="number">0</span>);127 <span·class="macro">assert_eq!</span>(dl.len(),·<span·class="number">0</span>);
128 <span·class="macro">assert_eq!</span>(dl.front(),·<span·class="prelude-val">None</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::LinkedList;%0A++++%0A++++let+mut+dl+=+LinkedList::new();%0A++++%0A++++dl.push_front(2);%0A++++dl.push_front(1);%0A++++assert_eq!(dl.len(),+2);%0A++++assert_eq!(dl.front(),+Some(%261));%0A++++%0A++++dl.clear();%0A++++assert_eq!(dl.len(),+0);%0A++++assert_eq!(dl.front(),+None);%0A%7D&amp;edition=2021"></a></div>128 <span·class="macro">assert_eq!</span>(dl.front(),·<span·class="prelude-val">None</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::LinkedList;%0A++++%0A++++let+mut+dl+=+LinkedList::new();%0A++++%0A++++dl.push_front(2);%0A++++dl.push_front(1);%0A++++assert_eq!(dl.len(),+2);%0A++++assert_eq!(dl.front(),+Some(%261));%0A++++%0A++++dl.clear();%0A++++assert_eq!(dl.len(),+0);%0A++++assert_eq!(dl.front(),+None);%0A%7D&amp;edition=2021"></a></div>
129 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.contains"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.12.0">1.12.0</span>···<a·class="src"·href="../../../src/alloc/collections/linked_list.rs.html#717-722">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.contains"·class="fn">contains</a>(&amp;self,·x:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html">bool</a><div·class="where">where129 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.contains"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.12.0">1.12.0</span>···<a·class="src"·href="../../../src/alloc/collections/linked_list.rs.html#717-722">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.contains"·class="fn">contains</a>(&amp;self,·x:·<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="../../../core/primitive.bool.html">bool</a><div·class="where">where
130 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.PartialEq.html"·title="trait·core::cmp::PartialEq">PartialEq</a>&lt;T&gt;,</div></h4></section></summary><div·class="docblock"><p>Returns·<code>true</code>·if·the·<code>LinkedList</code>·contains·an·element·equal·to·the130 ····T:·<a·class="trait"·href="../../../core/cmp/trait.PartialEq.html"·title="trait·core::cmp::PartialEq">PartialEq</a>&lt;T&gt;,</div></h4></section></summary><div·class="docblock"><p>Returns·<code>true</code>·if·the·<code>LinkedList</code>·contains·an·element·equal·to·the
131 given·value.</p>131 given·value.</p>
132 <p>This·operation·should·compute·linearly·in·<em>O</em>(<em>n</em>)·time.</p>132 <p>This·operation·should·compute·linearly·in·<em>O</em>(<em>n</em>)·time.</p>
133 <h5·id="examples-8"><a·class="doc-anchor"·href="#examples-8">§</a>Examples</h5>133 <h5·id="examples-8"><a·class="doc-anchor"·href="#examples-8">§</a>Examples</h5>
134 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::LinkedList;134 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::LinkedList;
  
135 <span·class="kw">let·</span><span·class="kw-2">mut·</span>list:·LinkedList&lt;u32&gt;·=·LinkedList::new();135 <span·class="kw">let·</span><span·class="kw-2">mut·</span>list:·LinkedList&lt;u32&gt;·=·LinkedList::new();
  
136 list.push_back(<span·class="number">0</span>);136 list.push_back(<span·class="number">0</span>);
137 list.push_back(<span·class="number">1</span>);137 list.push_back(<span·class="number">1</span>);
138 list.push_back(<span·class="number">2</span>);138 list.push_back(<span·class="number">2</span>);
  
139 <span·class="macro">assert_eq!</span>(list.contains(<span·class="kw-2">&amp;</span><span·class="number">0</span>),·<span·class="bool-val">true</span>);139 <span·class="macro">assert_eq!</span>(list.contains(<span·class="kw-2">&amp;</span><span·class="number">0</span>),·<span·class="bool-val">true</span>);
140 <span·class="macro">assert_eq!</span>(list.contains(<span·class="kw-2">&amp;</span><span·class="number">10</span>),·<span·class="bool-val">false</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::LinkedList;%0A++++%0A++++let+mut+list:+LinkedList%3Cu32%3E+=+LinkedList::new();%0A++++%0A++++list.push_back(0);%0A++++list.push_back(1);%0A++++list.push_back(2);%0A++++%0A++++assert_eq!(list.contains(%260),+true);%0A++++assert_eq!(list.contains(%2610),+false);%0A%7D&amp;edition=2021"></a></div>140 <span·class="macro">assert_eq!</span>(list.contains(<span·class="kw-2">&amp;</span><span·class="number">10</span>),·<span·class="bool-val">false</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::LinkedList;%0A++++%0A++++let+mut+list:+LinkedList%3Cu32%3E+=+LinkedList::new();%0A++++%0A++++list.push_back(0);%0A++++list.push_back(1);%0A++++list.push_back(2);%0A++++%0A++++assert_eq!(list.contains(%260),+true);%0A++++assert_eq!(list.contains(%2610),+false);%0A%7D&amp;edition=2021"></a></div>
141 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.front"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/linked_list.rs.html#744-746">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.front"·class="fn">front</a>(&amp;self)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;T</a>&gt;</h4></section></summary><div·class="docblock"><p>Provides·a·reference·to·the·front·element,·or·<code>None</code>·if·the·list·is141 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.front"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/linked_list.rs.html#744-746">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.front"·class="fn">front</a>(&amp;self)·-&gt;·<a·class="enum"·href="../../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;T</a>&gt;</h4></section></summary><div·class="docblock"><p>Provides·a·reference·to·the·front·element,·or·<code>None</code>·if·the·list·is
142 empty.</p>142 empty.</p>
143 <p>This·operation·should·compute·in·<em>O</em>(1)·time.</p>143 <p>This·operation·should·compute·in·<em>O</em>(1)·time.</p>
144 <h5·id="examples-9"><a·class="doc-anchor"·href="#examples-9">§</a>Examples</h5>144 <h5·id="examples-9"><a·class="doc-anchor"·href="#examples-9">§</a>Examples</h5>
145 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::LinkedList;145 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::LinkedList;
  
146 <span·class="kw">let·</span><span·class="kw-2">mut·</span>dl·=·LinkedList::new();146 <span·class="kw">let·</span><span·class="kw-2">mut·</span>dl·=·LinkedList::new();
147 <span·class="macro">assert_eq!</span>(dl.front(),·<span·class="prelude-val">None</span>);147 <span·class="macro">assert_eq!</span>(dl.front(),·<span·class="prelude-val">None</span>);
  
148 dl.push_front(<span·class="number">1</span>);148 dl.push_front(<span·class="number">1</span>);
149 <span·class="macro">assert_eq!</span>(dl.front(),·<span·class="prelude-val">Some</span>(<span·class="kw-2">&amp;</span><span·class="number">1</span>));</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::LinkedList;%0A++++%0A++++let+mut+dl+=+LinkedList::new();%0A++++assert_eq!(dl.front(),+None);%0A++++%0A++++dl.push_front(1);%0A++++assert_eq!(dl.front(),+Some(%261));%0A%7D&amp;edition=2021"></a></div>149 <span·class="macro">assert_eq!</span>(dl.front(),·<span·class="prelude-val">Some</span>(<span·class="kw-2">&amp;</span><span·class="number">1</span>));</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::LinkedList;%0A++++%0A++++let+mut+dl+=+LinkedList::new();%0A++++assert_eq!(dl.front(),+None);%0A++++%0A++++dl.push_front(1);%0A++++assert_eq!(dl.front(),+Some(%261));%0A%7D&amp;edition=2021"></a></div>
150 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.front_mut"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/linked_list.rs.html#773-775">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.front_mut"·class="fn">front_mut</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;mut·T</a>&gt;</h4></section></summary><div·class="docblock"><p>Provides·a·mutable·reference·to·the·front·element,·or·<code>None</code>·if·the·list150 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.front_mut"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/linked_list.rs.html#773-775">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.front_mut"·class="fn">front_mut</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="../../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;mut·T</a>&gt;</h4></section></summary><div·class="docblock"><p>Provides·a·mutable·reference·to·the·front·element,·or·<code>None</code>·if·the·list
151 is·empty.</p>151 is·empty.</p>
152 <p>This·operation·should·compute·in·<em>O</em>(1)·time.</p>152 <p>This·operation·should·compute·in·<em>O</em>(1)·time.</p>
153 <h5·id="examples-10"><a·class="doc-anchor"·href="#examples-10">§</a>Examples</h5>153 <h5·id="examples-10"><a·class="doc-anchor"·href="#examples-10">§</a>Examples</h5>
154 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::LinkedList;154 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::LinkedList;
  
155 <span·class="kw">let·</span><span·class="kw-2">mut·</span>dl·=·LinkedList::new();155 <span·class="kw">let·</span><span·class="kw-2">mut·</span>dl·=·LinkedList::new();
156 <span·class="macro">assert_eq!</span>(dl.front(),·<span·class="prelude-val">None</span>);156 <span·class="macro">assert_eq!</span>(dl.front(),·<span·class="prelude-val">None</span>);
Offset 166, 26 lines modifiedOffset 166, 26 lines modified
166 <span·class="macro">assert_eq!</span>(dl.front(),·<span·class="prelude-val">Some</span>(<span·class="kw-2">&amp;</span><span·class="number">1</span>));166 <span·class="macro">assert_eq!</span>(dl.front(),·<span·class="prelude-val">Some</span>(<span·class="kw-2">&amp;</span><span·class="number">1</span>));
  
167 <span·class="kw">match·</span>dl.front_mut()·{167 <span·class="kw">match·</span>dl.front_mut()·{
168 ····<span·class="prelude-val">None·</span>=&gt;·{},168 ····<span·class="prelude-val">None·</span>=&gt;·{},
169 ····<span·class="prelude-val">Some</span>(x)·=&gt;·<span·class="kw-2">*</span>x·=·<span·class="number">5</span>,169 ····<span·class="prelude-val">Some</span>(x)·=&gt;·<span·class="kw-2">*</span>x·=·<span·class="number">5</span>,
170 }170 }
171 <span·class="macro">assert_eq!</span>(dl.front(),·<span·class="prelude-val">Some</span>(<span·class="kw-2">&amp;</span><span·class="number">5</span>));</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::LinkedList;%0A++++%0A++++let+mut+dl+=+LinkedList::new();%0A++++assert_eq!(dl.front(),+None);%0A++++%0A++++dl.push_front(1);%0A++++assert_eq!(dl.front(),+Some(%261));%0A++++%0A++++match+dl.front_mut()+%7B%0A++++++++None+=%3E+%7B%7D,%0A++++++++Some(x)+=%3E+*x+=+5,%0A++++%7D%0A++++assert_eq!(dl.front(),+Some(%265));%0A%7D&amp;edition=2021"></a></div>171 <span·class="macro">assert_eq!</span>(dl.front(),·<span·class="prelude-val">Some</span>(<span·class="kw-2">&amp;</span><span·class="number">5</span>));</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::LinkedList;%0A++++%0A++++let+mut+dl+=+LinkedList::new();%0A++++assert_eq!(dl.front(),+None);%0A++++%0A++++dl.push_front(1);%0A++++assert_eq!(dl.front(),+Some(%261));%0A++++%0A++++match+dl.front_mut()+%7B%0A++++++++None+=%3E+%7B%7D,%0A++++++++Some(x)+=%3E+*x+=+5,%0A++++%7D%0A++++assert_eq!(dl.front(),+Some(%265));%0A%7D&amp;edition=2021"></a></div>
172 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.back"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/linked_list.rs.html#796-798">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.back"·class="fn">back</a>(&amp;self)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;T</a>&gt;</h4></section></summary><div·class="docblock"><p>Provides·a·reference·to·the·back·element,·or·<code>None</code>·if·the·list·is172 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.back"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/linked_list.rs.html#796-798">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.back"·class="fn">back</a>(&amp;self)·-&gt;·<a·class="enum"·href="../../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;T</a>&gt;</h4></section></summary><div·class="docblock"><p>Provides·a·reference·to·the·back·element,·or·<code>None</code>·if·the·list·is
173 empty.</p>173 empty.</p>
174 <p>This·operation·should·compute·in·<em>O</em>(1)·time.</p>174 <p>This·operation·should·compute·in·<em>O</em>(1)·time.</p>
175 <h5·id="examples-11"><a·class="doc-anchor"·href="#examples-11">§</a>Examples</h5>175 <h5·id="examples-11"><a·class="doc-anchor"·href="#examples-11">§</a>Examples</h5>
176 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::LinkedList;176 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::LinkedList;
  
177 <span·class="kw">let·</span><span·class="kw-2">mut·</span>dl·=·LinkedList::new();177 <span·class="kw">let·</span><span·class="kw-2">mut·</span>dl·=·LinkedList::new();
178 <span·class="macro">assert_eq!</span>(dl.back(),·<span·class="prelude-val">None</span>);178 <span·class="macro">assert_eq!</span>(dl.back(),·<span·class="prelude-val">None</span>);
  
179 dl.push_back(<span·class="number">1</span>);179 dl.push_back(<span·class="number">1</span>);
180 <span·class="macro">assert_eq!</span>(dl.back(),·<span·class="prelude-val">Some</span>(<span·class="kw-2">&amp;</span><span·class="number">1</span>));</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::LinkedList;%0A++++%0A++++let+mut+dl+=+LinkedList::new();%0A++++assert_eq!(dl.back(),+None);%0A++++%0A++++dl.push_back(1);%0A++++assert_eq!(dl.back(),+Some(%261));%0A%7D&amp;edition=2021"></a></div>180 <span·class="macro">assert_eq!</span>(dl.back(),·<span·class="prelude-val">Some</span>(<span·class="kw-2">&amp;</span><span·class="number">1</span>));</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::LinkedList;%0A++++%0A++++let+mut+dl+=+LinkedList::new();%0A++++assert_eq!(dl.back(),+None);%0A++++%0A++++dl.push_back(1);%0A++++assert_eq!(dl.back(),+Some(%261));%0A%7D&amp;edition=2021"></a></div>
181 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.back_mut"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/linked_list.rs.html#824-826">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.back_mut"·class="fn">back_mut</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;mut·T</a>&gt;</h4></section></summary><div·class="docblock"><p>Provides·a·mutable·reference·to·the·back·element,·or·<code>None</code>·if·the·list181 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.back_mut"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/linked_list.rs.html#824-826">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.back_mut"·class="fn">back_mut</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="../../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;mut·T</a>&gt;</h4></section></summary><div·class="docblock"><p>Provides·a·mutable·reference·to·the·back·element,·or·<code>None</code>·if·the·list
182 is·empty.</p>182 is·empty.</p>
183 <p>This·operation·should·compute·in·<em>O</em>(1)·time.</p>183 <p>This·operation·should·compute·in·<em>O</em>(1)·time.</p>
184 <h5·id="examples-12"><a·class="doc-anchor"·href="#examples-12">§</a>Examples</h5>184 <h5·id="examples-12"><a·class="doc-anchor"·href="#examples-12">§</a>Examples</h5>
185 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::LinkedList;185 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::LinkedList;
  
186 <span·class="kw">let·</span><span·class="kw-2">mut·</span>dl·=·LinkedList::new();186 <span·class="kw">let·</span><span·class="kw-2">mut·</span>dl·=·LinkedList::new();
187 <span·class="macro">assert_eq!</span>(dl.back(),·<span·class="prelude-val">None</span>);187 <span·class="macro">assert_eq!</span>(dl.back(),·<span·class="prelude-val">None</span>);
Offset 206, 15 lines modifiedOffset 206, 15 lines modified
206 <span·class="kw">let·</span><span·class="kw-2">mut·</span>dl·=·LinkedList::new();206 <span·class="kw">let·</span><span·class="kw-2">mut·</span>dl·=·LinkedList::new();
  
207 dl.push_front(<span·class="number">2</span>);207 dl.push_front(<span·class="number">2</span>);
208 <span·class="macro">assert_eq!</span>(dl.front().unwrap(),·<span·class="kw-2">&amp;</span><span·class="number">2</span>);208 <span·class="macro">assert_eq!</span>(dl.front().unwrap(),·<span·class="kw-2">&amp;</span><span·class="number">2</span>);
  
209 dl.push_front(<span·class="number">1</span>);209 dl.push_front(<span·class="number">1</span>);
210 <span·class="macro">assert_eq!</span>(dl.front().unwrap(),·<span·class="kw-2">&amp;</span><span·class="number">1</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::LinkedList;%0A++++%0A++++let+mut+dl+=+LinkedList::new();%0A++++%0A++++dl.push_front(2);%0A++++assert_eq!(dl.front().unwrap(),+%262);%0A++++%0A++++dl.push_front(1);%0A++++assert_eq!(dl.front().unwrap(),+%261);%0A%7D&amp;edition=2021"></a></div>210 <span·class="macro">assert_eq!</span>(dl.front().unwrap(),·<span·class="kw-2">&amp;</span><span·class="number">1</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::LinkedList;%0A++++%0A++++let+mut+dl+=+LinkedList::new();%0A++++%0A++++dl.push_front(2);%0A++++assert_eq!(dl.front().unwrap(),+%262);%0A++++%0A++++dl.push_front(1);%0A++++assert_eq!(dl.front().unwrap(),+%261);%0A%7D&amp;edition=2021"></a></div>
211 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.pop_front"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/linked_list.rs.html#875-877">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.pop_front"·class="fn">pop_front</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;T&gt;</h4></section></summary><div·class="docblock"><p>Removes·the·first·element·and·returns·it,·or·<code>None</code>·if·the·list·is211 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.pop_front"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/linked_list.rs.html#875-877">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.pop_front"·class="fn">pop_front</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="../../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;T&gt;</h4></section></summary><div·class="docblock"><p>Removes·the·first·element·and·returns·it,·or·<code>None</code>·if·the·list·is
212 empty.</p>212 empty.</p>
213 <p>This·operation·should·compute·in·<em>O</em>(1)·time.</p>213 <p>This·operation·should·compute·in·<em>O</em>(1)·time.</p>
214 <h5·id="examples-14"><a·class="doc-anchor"·href="#examples-14">§</a>Examples</h5>214 <h5·id="examples-14"><a·class="doc-anchor"·href="#examples-14">§</a>Examples</h5>
215 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::LinkedList;215 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::LinkedList;
  
216 <span·class="kw">let·</span><span·class="kw-2">mut·</span>d·=·LinkedList::new();216 <span·class="kw">let·</span><span·class="kw-2">mut·</span>d·=·LinkedList::new();
217 <span·class="macro">assert_eq!</span>(d.pop_front(),·<span·class="prelude-val">None</span>);217 <span·class="macro">assert_eq!</span>(d.pop_front(),·<span·class="prelude-val">None</span>);
Offset 229, 27 lines modifiedOffset 229, 27 lines modified
229 <h5·id="examples-15"><a·class="doc-anchor"·href="#examples-15">§</a>Examples</h5>229 <h5·id="examples-15"><a·class="doc-anchor"·href="#examples-15">§</a>Examples</h5>
230 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::LinkedList;230 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::LinkedList;
  
231 <span·class="kw">let·</span><span·class="kw-2">mut·</span>d·=·LinkedList::new();231 <span·class="kw">let·</span><span·class="kw-2">mut·</span>d·=·LinkedList::new();
232 d.push_back(<span·class="number">1</span>);232 d.push_back(<span·class="number">1</span>);
233 d.push_back(<span·class="number">3</span>);233 d.push_back(<span·class="number">3</span>);
234 <span·class="macro">assert_eq!</span>(<span·class="number">3</span>,·<span·class="kw-2">*</span>d.back().unwrap());</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::LinkedList;%0A++++%0A++++let+mut+d+=+LinkedList::new();%0A++++d.push_back(1);%0A++++d.push_back(3);%0A++++assert_eq!(3,+*d.back().unwrap());%0A%7D&amp;edition=2021"></a></div>234 <span·class="macro">assert_eq!</span>(<span·class="number">3</span>,·<span·class="kw-2">*</span>d.back().unwrap());</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::LinkedList;%0A++++%0A++++let+mut+d+=+LinkedList::new();%0A++++d.push_back(1);%0A++++d.push_back(3);%0A++++assert_eq!(3,+*d.back().unwrap());%0A%7D&amp;edition=2021"></a></div>
235 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.pop_back"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/linked_list.rs.html#921-923">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.pop_back"·class="fn">pop_back</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;T&gt;</h4></section></summary><div·class="docblock"><p>Removes·the·last·element·from·a·list·and·returns·it,·or·<code>None</code>·if235 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.pop_back"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/linked_list.rs.html#921-923">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.pop_back"·class="fn">pop_back</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="../../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;T&gt;</h4></section></summary><div·class="docblock"><p>Removes·the·last·element·from·a·list·and·returns·it,·or·<code>None</code>·if
236 it·is·empty.</p>236 it·is·empty.</p>
237 <p>This·operation·should·compute·in·<em>O</em>(1)·time.</p>237 <p>This·operation·should·compute·in·<em>O</em>(1)·time.</p>
238 <h5·id="examples-16"><a·class="doc-anchor"·href="#examples-16">§</a>Examples</h5>238 <h5·id="examples-16"><a·class="doc-anchor"·href="#examples-16">§</a>Examples</h5>
239 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::LinkedList;239 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::LinkedList;
  
240 <span·class="kw">let·</span><span·class="kw-2">mut·</span>d·=·LinkedList::new();240 <span·class="kw">let·</span><span·class="kw-2">mut·</span>d·=·LinkedList::new();
241 <span·class="macro">assert_eq!</span>(d.pop_back(),·<span·class="prelude-val">None</span>);241 <span·class="macro">assert_eq!</span>(d.pop_back(),·<span·class="prelude-val">None</span>);
242 d.push_back(<span·class="number">1</span>);242 d.push_back(<span·class="number">1</span>);
Max diff block lines reached; 155765/181949 bytes (85.61%) of diff not shown.
73.1 KB
./usr/share/doc/rust-doc/html/alloc/collections/struct.TryReserveError.html
    
Offset 1, 17 lines modifiedOffset 1, 17 lines modified
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="The·error·type·for·`try_reserve`·methods."><title>TryReserveError·in·alloc::collections·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»      2025-01-07)»   (built»     from» a»source»  tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">TryReserve<wbr>Error</a></h2><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.kind"·title="kind">kind</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-TryReserveError"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-TryReserveError"·title="Debug">Debug</a></li><li><a·href="#impl-Display-for-TryReserveError"·title="Display">Display</a></li><li><a·href="#impl-Eq-for-TryReserveError"·title="Eq">Eq</a></li><li><a·href="#impl-Error-for-TryReserveError"·title="Error">Error</a></li><li><a·href="#impl-From%3CTryReserveErrorKind%3E-for-TryReserveError"·title="From&#60;TryReserveErrorKind&#62;">From&#60;TryReserveErrorKind&#62;</a></li><li><a·href="#impl-PartialEq-for-TryReserveError"·title="PartialEq">PartialEq</a></li><li><a·href="#impl-StructuralPartialEq-for-TryReserveError"·title="StructuralPartialEq">StructuralPartialEq</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-TryReserveError"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-TryReserveError"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-TryReserveError"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-TryReserveError"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-TryReserveError"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-TryReserveError"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-ToString-for-T"·title="ToString">ToString</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>collections</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">alloc</a>::<wbr><a·href="index.html">collections</a></span><h1>Struct·<span·class="struct">TryReserveError</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.57.0">1.57.0</span>···<a·class="src"·href="../../src/alloc/collections/mod.rs.html#58-60">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·TryReserveError·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>The·error·type·for·<code>try_reserve</code>·methods.</p>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="The·error·type·for·`try_reserve`·methods."><title>TryReserveError·in·alloc::collections·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»      2025-01-07)»   (built»     from» a»source»  tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">TryReserve<wbr>Error</a></h2><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.kind"·title="kind">kind</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-TryReserveError"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-TryReserveError"·title="Debug">Debug</a></li><li><a·href="#impl-Display-for-TryReserveError"·title="Display">Display</a></li><li><a·href="#impl-Eq-for-TryReserveError"·title="Eq">Eq</a></li><li><a·href="#impl-Error-for-TryReserveError"·title="Error">Error</a></li><li><a·href="#impl-From%3CTryReserveErrorKind%3E-for-TryReserveError"·title="From&#60;TryReserveErrorKind&#62;">From&#60;TryReserveErrorKind&#62;</a></li><li><a·href="#impl-PartialEq-for-TryReserveError"·title="PartialEq">PartialEq</a></li><li><a·href="#impl-StructuralPartialEq-for-TryReserveError"·title="StructuralPartialEq">StructuralPartialEq</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-TryReserveError"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-TryReserveError"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-TryReserveError"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-TryReserveError"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-TryReserveError"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-TryReserveError"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-ToString-for-T"·title="ToString">ToString</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>collections</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">alloc</a>::<wbr><a·href="index.html">collections</a></span><h1>Struct·<span·class="struct">TryReserveError</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.57.0">1.57.0</span>···<a·class="src"·href="../../src/alloc/collections/mod.rs.html#58-60">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·TryReserveError·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>The·error·type·for·<code>try_reserve</code>·methods.</p>
2 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-TryReserveError"·class="impl"><a·class="src·rightside"·href="../../src/alloc/collections/mod.rs.html#62-74">Source</a><a·href="#impl-TryReserveError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="struct"·href="struct.TryReserveError.html"·title="struct·alloc::collections::TryReserveError">TryReserveError</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.kind"·class="method"><a·class="src·rightside"·href="../../src/alloc/collections/mod.rs.html#71-73">Source</a><h4·class="code-header">pub·fn·<a·href="#method.kind"·class="fn">kind</a>(&amp;self)·-&gt;·<a·class="enum"·href="enum.TryReserveErrorKind.html"·title="enum·alloc::collections::TryReserveErrorKind">TryReserveErrorKind</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>try_reserve_kind</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/48043">#48043</a>)</span></div></span></summary><div·class="docblock"><p>Details·about·the·allocation·that·caused·the·error</p>2 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-TryReserveError"·class="impl"><a·class="src·rightside"·href="../../src/alloc/collections/mod.rs.html#62-74">Source</a><a·href="#impl-TryReserveError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="struct"·href="struct.TryReserveError.html"·title="struct·alloc::collections::TryReserveError">TryReserveError</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.kind"·class="method"><a·class="src·rightside"·href="../../src/alloc/collections/mod.rs.html#71-73">Source</a><h4·class="code-header">pub·fn·<a·href="#method.kind"·class="fn">kind</a>(&amp;self)·-&gt;·<a·class="enum"·href="enum.TryReserveErrorKind.html"·title="enum·alloc::collections::TryReserveErrorKind">TryReserveErrorKind</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>try_reserve_kind</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/48043">#48043</a>)</span></div></span></summary><div·class="docblock"><p>Details·about·the·allocation·that·caused·the·error</p>
3 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-TryReserveError"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.57.0">1.57.0</span>···<a·class="src"·href="../../src/alloc/collections/mod.rs.html#56">Source</a></span><a·href="#impl-Clone-for-TryReserveError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struct"·href="struct.TryReserveError.html"·title="struct·alloc::collections::TryReserveError">TryReserveError</a></h3></section></summary[·...·truncated·by·diffoscope;·len:·12831,·SHA:·38ca4183df4453b5ec53cd99acf98c6704c84a57f28694d9debdce723da6330a·...·]/core/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>!=</code>.·The·default·implementation·is·almost·always·sufficient,3 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-TryReserveError"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.57.0">1.57.0</span>···<a·class="src"·href="../../src/alloc/collections/mod.rs.html#56">Source</a></span><a·href="#impl-Clone-for-TryReserveError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struct"·href="struct.TryReserveError.html"·title="struct·alloc::collections::TryReserveError">TryReserveError</a></h3></section></summary><div·class="impl-items"><d[·...·truncated·by·diffoscope;·len:·11886,·SHA:·fc0c20c258cca4425d64783ade772bbc4fb852aa482807af1814d4a3dd193540·...·]/core/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>!=</code>.·The·default·implementation·is·almost·always·sufficient,
4 and·should·not·be·overridden·without·very·good·reason.</div></details></div></details><section·id="impl-Eq-for-TryReserveError"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.57.0">1.57.0</span>···<a·class="src"·href="../../src/alloc/collections/mod.rs.html#56">Source</a></span><a·href="#impl-Eq-for-TryReserveError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.Eq.html"·title="trait·core::cmp::Eq">Eq</a>·for·<a·class="struct"·href="struct.TryReserveError.html"·title="struct·alloc::collections::TryReserveError">TryReserveError</a></h3></section><section·id="impl-Stru[·...·truncated·by·diffoscope;·len:·3995,·SHA:·aef4df3a7dbe6661e6135cb97a36a39a7d94ba6f26df445c8b14a938367c1983·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where4 and·should·not·be·overridden·without·very·good·reason.</div></details></div></details><section·id="impl-Eq-for-TryReserveError"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.57.0">1.57.0</span>···<a·class="src"·href="../../src/alloc/collections/mod.rs.html#56">Source</a></span><a·href="#impl-Eq-for-TryReserveError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/cmp/trait.Eq.html"·title="trait·core::cmp::Eq">Eq</a>·for·<a·class="struct"·href="struct.TryReserveError.html"·title="struct·alloc::collections::TryReserveError">TryReserveError</a></h3></section><section·id="impl-StructuralPartialEq-for-TryRese[·...·truncated·by·diffoscope;·len:·3725,·SHA:·62e3c404b8c2cba66d5fac9f2c2f051d1493319df26d2ef28906bbf95c4b4451·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where
5 ····T:·'static·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method[·...·truncated·by·diffoscope;·len:·834,·SHA:·47dfc2aa0101a4103e2a94c1f971c559790d87a62d58631fd2bfed98e6616a34·...·]/src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where5 ····T:·'static·+·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·[·...·truncated·by·diffoscope;·len:·672,·SHA:·ace7a059971745d739c5abd9821e5d1d485cc233fd42150ceb251bdea1ce6bf7·...·]/src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where
6 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·[·...·truncated·by·diffoscope;·len:·737,·SHA:·9e65370662e77fc5c56c98c66a5dfda3c1d1244574dc8806ab91a8967514da78·...·]/src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.BorrowMut.html"·title="trait·alloc::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where6 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·r[·...·truncated·by·diffoscope;·len:·629,·SHA:·8e6f5d2e4a2830729c5d495459113ca6f54993696d7dc71c1f46e5691f5108ed·...·]/src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.BorrowMut.html"·title="trait·alloc::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where
7 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="met[·...·truncated·by·diffoscope;·len:·954,·SHA:·5ca69698d4bb8de1849b64ae87544dc0ec2bdd1a4d8dc75ba8d58b2c6c6a9ae6·...·]/core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where7 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="s[·...·truncated·by·diffoscope;·len:·819,·SHA:·3ca215d87d373be29774fff31d75c216034e4aa910e49de0e3fc5b88c46bc387·...·]/core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where
8 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="[·...·truncated·by·diffoscope;·len:·1887,·SHA:·ba94ba5d6d0e4b7d8ba0c28e24194af98f9ba69b26ff6f0caa0f8bd64350ebca·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>8 ····T:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·class[·...·truncated·by·diffoscope;·len:·1617,·SHA:·f630005bc959b6ed45da20c59691d16b5b655ba527fe218fe43e589a8a98da7d·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>
9 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where9 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where
10 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="m[·...·truncated·by·diffoscope;·len:·237,·SHA:·98603c35860102b3af9b5cf27aeabf39e3c03236551986a6ec030817f108d919·...·]/core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>10 ····U:·<a·class="trait"·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class=[·...·truncated·by·diffoscope;·len:·156,·SHA:·79561c49c77b14346871935198fc061d00c9e84705db975b0451f5fb4f6af9a0·...·]/core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>
11 <p>That·is,·this·conversion·is·whatever·the·implementation·of11 <p>That·is,·this·conversion·is·whatever·the·implementation·of
12 <code><a·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>12 <code><a·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>
13 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#82-94">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where13 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#82-94">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where
14 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·t[·...·truncated·by·diffoscope;·len:·1350,·SHA:·06ff485c70db27d96df4529c9aabc3407488a0d8b3f238ea19fe87222f3c0e93·...·]/core/primitive.reference.html">&amp;mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToString-for-T"·class="impl"><a·class="src·rightside"·href="../../src/alloc/string.rs.html#2677-2691">Source</a><a·href="#impl-ToString-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../string/trait.ToString.html"·title="trait·alloc::string::ToString">ToString</a>·for·T<div·class="where">where14 ····T:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src·ri[·...·truncated·by·diffoscope;·len:·1296,·SHA:·88285bd52e5f5ad6b3e1b6d101339ab4047bdbd5b9d568c1e216b159cf17296e·...·]/core/primitive.reference.html">&amp;mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToString-for-T"·class="impl"><a·class="src·rightside"·href="../../src/alloc/string.rs.html#2677-2691">Source</a><a·href="#impl-ToString-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../string/trait.ToString.html"·title="trait·alloc::string::ToString">ToString</a>·for·T<div·class="where">where
15 ····T:·<a·class="trait"·href="../fmt/trait.Display.html"·title="trait·alloc::fmt::Display">Display</a>·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.to_string"·class="meth[·...·truncated·by·diffoscope;·len:·956,·SHA:·5fb3fa997a6fe164f1c04c1d4cb696121571b376241266dc87e8079ebdfed810·...·]/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where15 ····T:·<a·class="trait"·href="../fmt/trait.Display.html"·title="trait·alloc::fmt::Display">Display</a>·+·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.to_string"·class="method·trait-impl"><a·class="sr[·...·truncated·by·diffoscope;·len:·875,·SHA:·e58967f6ca4eee938a4135856f0af0adfcd5abe0b4e62c194e5c506c603bfcf1·...·]/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where
16 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="asso[·...·truncated·by·diffoscope;·len:·1973,·SHA:·db4b8407e8e20581ad139aef25a6221a11da0f5f18d6aa35aa33eb843f4e1b9f·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where16 ····U:·<a·class="trait"·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·c[·...·truncated·by·diffoscope;·len:·1676,·SHA:·4c73b68f4fb433b5f24fbcd660156381e5dd9f46425d075b558b9b6ca0705f88·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where
17 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·clas[·...·truncated·by·diffoscope;·len:·1578,·SHA:·998d5af10fd889567cd999d1306bfd16c91134d2238a3c172f1e7fa8ed138c18·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>17 ····U:·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-imp[·...·truncated·by·diffoscope;·len:·1308,·SHA:·6741e462a0e1b36010204263b7580305663bb27f362987d14303068592f9f358·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>
328 KB
./usr/share/doc/rust-doc/html/alloc/collections/vec_deque/struct.Drain.html
    
Offset 1, 234 lines modifiedOffset 1, 234 lines modified
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="A·draining·iterator·over·the·elements·of·a·`VecDeque`."><title>Drain·in·alloc::collections::vec_deque·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»      2025-01-07)»   (built»     from» a»source»  tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Drain</a></h2><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Debug-for-Drain%3C'_,+T,+A%3E"·title="Debug">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-Drain%3C'_,+T,+A%3E"·title="DoubleEndedIterator">DoubleEndedIterator</a></li><li><a·href="#impl-Drop-for-Drain%3C'_,+T,+A%3E"·title="Drop">Drop</a></li><li><a·href="#impl-ExactSizeIterator-for-Drain%3C'_,+T,+A%3E"·title="ExactSizeIterator">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-Drain%3C'_,+T,+A%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-Drain%3C'_,+T,+A%3E"·title="Iterator">Iterator</a></li><li><a·href="#impl-Send-for-Drain%3C'_,+T,+A%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-Drain%3C'_,+T,+A%3E"·title="Sync">Sync</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-Drain%3C'a,+T,+A%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Drain%3C'a,+T,+A%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Unpin-for-Drain%3C'a,+T,+A%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Drain%3C'a,+T,+A%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>collections::<wbr>vec_<wbr>deque</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">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">vec_deque</a></span><h1>Struct·<span·class="struct">Drain</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../../src/alloc/collections/vec_deque/drain.rs.html#17-34">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·Drain&lt;'a,·T:·'a,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·=·<a·class="struct"·href="../../alloc/struct.Global.html"·title="struct·alloc::alloc::Global">Global</a>&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>A·draining·iterator·over·the·elements·of·a·<code>VecDeque</code>.</p>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="A·draining·iterator·over·the·elements·of·a·`VecDeque`."><title>Drain·in·alloc::collections::vec_deque·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»      2025-01-07)»   (built»     from» a»source»  tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Drain</a></h2><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Debug-for-Drain%3C'_,+T,+A%3E"·title="Debug">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-Drain%3C'_,+T,+A%3E"·title="DoubleEndedIterator">DoubleEndedIterator</a></li><li><a·href="#impl-Drop-for-Drain%3C'_,+T,+A%3E"·title="Drop">Drop</a></li><li><a·href="#impl-ExactSizeIterator-for-Drain%3C'_,+T,+A%3E"·title="ExactSizeIterator">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-Drain%3C'_,+T,+A%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-Drain%3C'_,+T,+A%3E"·title="Iterator">Iterator</a></li><li><a·href="#impl-Send-for-Drain%3C'_,+T,+A%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-Drain%3C'_,+T,+A%3E"·title="Sync">Sync</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-Drain%3C'a,+T,+A%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Drain%3C'a,+T,+A%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Unpin-for-Drain%3C'a,+T,+A%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Drain%3C'a,+T,+A%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>collections::<wbr>vec_<wbr>deque</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">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">vec_deque</a></span><h1>Struct·<span·class="struct">Drain</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../../src/alloc/collections/vec_deque/drain.rs.html#17-34">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·Drain&lt;'a,·T:·'a,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·=·<a·class="struct"·href="../../alloc/struct.Global.html"·title="struct·alloc::alloc::Global">Global</a>&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>A·draining·iterator·over·the·elements·of·a·<code>VecDeque</code>.</p>
2 <p>This·<code>struct</code>·is·created·by·the·<a·href="struct.VecDeque.html#method.drain"·title="method·alloc::collections::vec_deque::VecDeque::drain"><code>drain</code></a>·method·on·<a·href="struct.VecDeque.html"·title="struct·alloc::collections::vec_deque::VecDeque"><code>VecDeque</code></a>.·See·its2 <p>This·<code>struct</code>·is·created·by·the·<a·href="struct.VecDeque.html#method.drain"·title="method·alloc::collections::vec_deque::VecDeque::drain"><code>drain</code></a>·method·on·<a·href="struct.VecDeque.html"·title="struct·alloc::collections::vec_deque::VecDeque"><code>VecDeque</code></a>.·See·its
3 documentation·for·more.</p>3 documentation·for·more.</p>
4 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-Drain%3C'_,+T,+A%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.17.0">1.17.0</span>···<a·class="src"·href="../../../src/alloc/collections/vec_deque/drain.rs.html#76-85">Source</a></span><a·href="#impl-Debug-for-Drain%3C'_,+T,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T:·<a·class="trait"·href="../../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>&gt;·<a·class="trait"·href="../../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.Drain.html"·title="struct·alloc::collections::vec_deque::Drain">Drain</a>&lt;'_,·T,·A&gt;</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../../../src/alloc/collections/vec_deque/drain.rs.html#77-84">Source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="../../fmt/struct.Formatter.html"·title="struct·alloc::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="type"·href="../../fmt/type.Result.html"·title="type·alloc::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../../fmt/trait.Debug.html#tymethod.fmt">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-DoubleEndedIterator-for-Drain%3C'_,+T,+A%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.6.0">1.6.0</span>···<a·class="src"·href="../../../src/alloc/collections/vec_deque/drain.rs.html#258-268">Source</a></span><a·href="#impl-DoubleEndedIterator-for-Drain%3C'_,+T,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIterator</a>·for·<a·class="struct"·href="struct.Drain.html"·title="struct·alloc::c[·...·truncated·by·diffoscope;·len:·4276,·SHA:·5c1643edc8b5951e88d3e885da9128e0478e81464214cba510f326e83a5647aa·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold"·class="fn">try_rfold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where4 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-Drain%3C'_,+T,+A%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.17.0">1.17.0</span>···<a·class="src"·href="../../../src/alloc/collections/vec_deque/drain.rs.html#76-85">Source</a></span><a·href="#impl-Debug-for-Drain%3C'_,+T,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T:·<a·class="trait"·href="../../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>&gt;·<a·class="trait"·href="../../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.Drain.html"·title="struct·alloc::collections::vec_deque::Drain">Drain</a>&lt;'_,·T,·A&gt;</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../../../src/alloc/collections/vec_deque/drain.rs.html#77-84">Source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="../../fmt/struct.Formatter.html"·title="struct·alloc::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="type"·href="../../fmt/type.Result.html"·title="type·alloc::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../../fmt/trait.Debug.html#tymethod.fmt">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-DoubleEndedIterator-for-Drain%3C'_,+T,+A%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.6.0">1.6.0</span>···<a·class="src"·href="../../../src/alloc/collections/vec_deque/drain.rs.html#258-268">Source</a></span><a·href="#impl-DoubleEndedIterator-for-Drain%3C'_,+T,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>&gt;·<a·class="trait"·href="../../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIterator</a>·for·<a·class="struct"·href="struct.Drain.html"·title="struct·alloc::collections::vec_deque::D[·...·truncated·by·diffoscope;·len:·3796,·SHA:·572ffa7d01ffe5e743d1f0fafedc6b3a2d3f221d2da3eb4ff3b524c265d52c80·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold"·class="fn">try_rfold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where
5 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,5 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
6 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,6 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
7 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>This·is·the·reverse·version·of·<a·href="https://doc.rust-lang.org/1.8[·...·truncated·by·diffoscope;·len:·3,·SHA:·fbd04e1aae9ce0b11a8946e2c9ac2619f7428a64d32d01eff61d809dcb70ee8e·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·title="method·core::iter::traits::iterator::Iterator::try_fold"><code>Iterator::try_fold()</code></a>:·it·takes7 ····R:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>This·is·the·reverse·version·of·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·title="method·core::iter::traits::iterator::Iterator::try_fold"><code>Iterator::try_fold()</code></a>:·it·takes
8 elements·starting·from·the·back·of·the·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfold"·class="method·trait-impl"><span·clas[·...·truncated·by·diffoscope;·len:·325,·SHA:·7ffdb06a8ab3810207a1c974783822231eaf1d82fd94bcf810dd7b3181149b7b·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold"·class="fn">rfold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where8 elements·starting·from·the·back·of·the·iterator.·<a·href="../../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfold"·class="method·trait-impl"><span·class="rightside"><span·clas[·...·truncated·by·diffoscope;·len:·253,·SHA:·48421497f19ee93d3a7432833660cd659661b35b02b625c6376fc49660f200cf·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold"·class="fn">rfold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where
9 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,9 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
10 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·reduces·the·iterator’s·elements·to·a·single,10 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·reduces·the·iterator’s·elements·to·a·single,
11 final·value,·starting·from·the·back.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfind"·class="method·trait-impl"><span·class="r[·...·truncated·by·diffoscope;·len:·665,·SHA:·fde89feb7c0e70eefa34d688476ca36a70115bec8150dbf9b1a3c359f72dd28d·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where11 final·value,·starting·from·the·back.·<a·href="../../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfind"·class="method·trait-impl"><span·class="rightside"><span·class="s[·...·truncated·by·diffoscope;·len:·545,·SHA:·b420bc934fe1ddfd2fe0958678aa3aba1ce90383b1958958e47e13ae1b40fe25·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
12 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,12 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
13 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·8532,·SHA:·f9b999ffb7350378e41b95bef917c57a76d192d53bb0593db5cf80fb138f746a·...·]/core/primitive.usize.html">usize</a>&gt;(13 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·7836,·SHA:·8c7caacd31730d5d3a277338a171f7a03115857c2f3d563780e589858d49fef9·...·]/core/primitive.usize.html">usize</a>&gt;(
14 ····&amp;mut·self,14 ····&amp;mut·self,
15 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·4f557a9b49151e0be8c52ffd68f1def4469c08164239dc8bef8df2040551c5ef·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where15 )·-&gt;·<a·class="enum"·href="../../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::It[·...·truncated·by·diffoscope;·len:·261,·SHA:·9b488006768a86d05b68f4e1888c750c736264a3a386f1310f1b7e8bfc7d2184·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where
16 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·962,·SHA:·116e4ec2ae3d9655c3d115eaf50f435f5323b4e48b84de734c79d2a09b3c02f2·...·]/core/primitive.usize.html">usize</a><div·class="where">where16 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_next[·...·truncated·by·diffoscope;·len:·842,·SHA:·d8f387888e3ee78f4397f4b1a12eae734e055247e3aa3251433ab8ac1019b31a·...·]/core/primitive.usize.html">usize</a><div·class="where">where
17 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·counting·the·number·of·iterations·and·returning·it.·<a·href="https://doc.[·...·truncated·by·diffoscope;·len:·837,·SHA:·47e25b6f9687bcc1d1fcdf9842fb085e6aba767d70531028f948636b80563dfc·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where17 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·counting·the·number·of·iterations·and·returning·it.·<a·href="../../../core/iter/traits/iterator/t[·...·truncated·by·diffoscope;·len:·693,·SHA:·725f42ff290538a513ec93cf7284210e1c519a4cc200b6d5878e7ccff2777059·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
18 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·returning·the·last·element.·<a·href="https://doc.rust-lang.org/1.84.0/cor[·...·truncated·by·diffoscope;·len:·3504,·SHA:·ec43d0f6d8d2a1e0fb7a684c382b9934abe1250844e53cce08bdfc6017ecb276·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where18 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·returning·the·last·element.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#metho[·...·truncated·by·diffoscope;·len:·3024,·SHA:·33e764ec8aa4ce60da61c340591349678c8144088b1440d0c5d8b7b28ba27fc9·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where
19 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by19 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by
20 the·given·amount·at·each·iteration.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><sp[·...·truncated·by·diffoscope;·len:·842,·SHA:·945c4509a8daf2f8fbccc5c6e5089e225955911e03a3e411f047f96d52d16862·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where20 the·given·amount·at·each·iteration.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="[·...·truncated·by·diffoscope;·len:·698,·SHA:·035d2f4d2e6b01ddf0b424aa6fc3f5919c82f85f857cb9cfa0f54f8357058b90·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
21 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,21 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
22 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·3b5ce32f9d564c3aa7cf2adc7130e674758d0c0f4f1275b4c3b46a74aa802cb3·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where22 ····U:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·[·...·truncated·by·diffoscope;·len:·1137,·SHA:·7916ae3a9b5afad376aafc6d698165147d82613fe975f64423f2367a02a69f6a·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
23 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,23 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
24 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·[·...·truncated·by·diffoscope;·len:·868,·SHA:·abdbf27ccc84063c7040d8fa3da9d0bda5ee310a470ef576e15554aee4bd5d21·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where24 ····U:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·of·pairs.·<a·href="../..[·...·truncated·by·diffoscope;·len:·724,·SHA:·ba31078b5c50fbfc51e53bed6f70aaa6e7e320cfda19949035c71d9363c0d919·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where
25 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,25 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
26 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent26 ····Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent
27 items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="sr[·...·truncated·by·diffoscope;·len:·427,·SHA:·6e82ad4aad49c2165d869fe30d20a968580a973cdb3a7f4c77f49e16dd59393e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where27 items·of·the·original·iterator.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="src·rightside"·href="../..[·...·truncated·by·diffoscope;·len:·331,·SHA:·451e844c9bf5d6d78b9579516e4b9fafb3e84136eaa1c95bead4539370743d7d·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where
28 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,28 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
29 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>29 ····G:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>
30 between·adjacent·items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightsi[·...·truncated·by·diffoscope;·len:·471,·SHA:·ed10488b7b2ccc3e4cc84a9a57a9695a74c1c964962e8d753cbace12f3318a66·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where30 between·adjacent·items·of·the·original·iterator.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·[·...·truncated·by·diffoscope;·len:·375,·SHA:·7bbb71535f348e442b9de05a74f9180c9acec0636566fa2a19ab1dc83779aace·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where
31 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,31 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
32 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each32 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each
33 element.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><spa[·...·truncated·by·diffoscope;·len:·306,·SHA:·61c87c39b177830189b0e4c036d97c40d8b9649d76432c90afb88de59498e8b2·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where33 element.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="S[·...·truncated·by·diffoscope;·len:·234,·SHA:·55463e0fb539911d03265cbd8abb7248189471ea74954185ed77f245746805c2·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where
34 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,34 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
35 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·a65da32c5f5ef8335cb607d3b4ab3f8a25877bc2c2e8b44ca9d575caecd5c8a5·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where35 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·772,·SHA:·de07f629315c257cc96a89e82de6752f002f259b678391b79d5fb48e279e56d2·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where
36 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,36 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
37 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·6d69c85c69fa789be551ea42d95c33c237d12a04ef157f9ddaaead1177f7771e·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element37 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·68,·SHA:·67cf1e2a20410007c7dd6c47c91b1d386626c1bfac5c1116c374da7bbee00d51·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element
38 should·be·yielded.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·489,·SHA:·9bdc636899f4e4e5a26a3a21c9603f72b3fb972865d2f459c38b7e2ac8fed7f1·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where38 should·be·yielded.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·tit[·...·truncated·by·diffoscope;·len:·393,·SHA:·328d72714f754fb793753313f01b087a9fbb30b77a2bcd5749456e1f6fd72710·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where
39 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,39 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
40 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·46dbf841c7aecd3f06bd4c944af21650faeac98c46c515dcfe643302618b1ecd·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where40 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·884,·SHA:·e8a37e28a6bfcb2d58b9ffd389d339c3dece95c14840f28c980a7d7aedcc9a05·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where
41 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as41 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as
42 the·next·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside[·...·truncated·by·diffoscope;·len:·468,·SHA:·52f7ff7f264284c3acc4429ca34d057ded9afa2e3d9d6e07571e252db9a48977·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where42 the·next·value.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside"><span·class="since"·ti[·...·truncated·by·diffoscope;·len:·372,·SHA:·9c08a613d034f21b42b8d196073d0f4d61c81458378e40e77995533a8b460837·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where
43 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·c0180fefce4346b0b4089e5c642521d7716108241c0ce6ec3e910c7a2c7364b4·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods43 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="../../../core/iter/adapters/peekable/struct.Peekable.html#method.peek"·ti[·...·truncated·by·diffoscope;·len:·103,·SHA:·e3683d31746f50069ed604def6201840bce75bbc7c584fac6c3644292077ae8a·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods
44 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See44 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See
45 their·documentation·for·more·information.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightsid[·...·truncated·by·diffoscope;·len:·498,·SHA:·e4a68861585faec6a5032b3b69d6dfb0f2799b5f387a527d9a1365571ed02069·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where45 their·documentation·for·more·information.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightside"><span·class="since"·t[·...·truncated·by·diffoscope;·len:·402,·SHA:·bdba673560d208f968337eb74446ead60d6223b0ca9ec6fbfaeb1a995a7e8001·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where
46 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,46 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
47 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·93281c1f6402743fd61110c11cf676f0f67eddceda801b4eb35e5fe9f85870fd·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where47 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·1042,·SHA:·27d4a79658fb1c97b659bd2520bcebbf5cfcb8a42420a7ecfcbff6f3330fa5e1·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where
48 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,48 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
49 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·f1cdbb1ec64f98fabbe1d89c88b03824310926cd7eaa160953ce2452fc3abb77·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where49 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·890,·SHA:·c43533da7f54bfb6611594b3436645d4d1f8e5339d2d05bf2345e87628499759·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where
50 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,50 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
51 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·f94a0b2c1396b13b89aca7830197ebf19e2c0e5ba536a9cc25b325a481799510·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where51 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·971,·SHA:·1b31b9d1d5061d4ee982a30400139f1d7319412bdea39925e0cc1e8e7cf3d65a·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where
52 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="https://doc.rust-lang[·...·truncated·by·diffoscope;·len:·783,·SHA:·c14217b89e3292a50a09192a8857485891fc769f861e1d1fc4322d04295c86ef·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where52 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="../../../core/iter/traits/iterator/trait.Iter[·...·truncated·by·diffoscope;·len:·639,·SHA:·79c7f7eddc655d329424f08baee8551b7f59cd4dc4b0d6984c5e4f241bcb949b·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where
53 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer53 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer
54 if·the·underlying·iterator·ends·sooner.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·c[·...·truncated·by·diffoscope;·len:·488,·SHA:·76f753d5a273a09a73127631acaa0ee947326a929f33be291018188793e1af56·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where54 if·the·underlying·iterator·ends·sooner.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stab[·...·truncated·by·diffoscope;·len:·392,·SHA:·50ac976eb8bf89726a483af064d5a70c100dedd17d46dc40ac3a82aba51b2082·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where
55 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,55 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
56 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·07d303586c8ad4e0082d5b44bff8eeda03cdb8f4bdbe46489f9232bca5a43ec6·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but56 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/tra[·...·truncated·by·diffoscope;·len:·329,·SHA:·14fc5ef1359fcb2171e21ba65c5f5d8ce11053860ba1d5aa32ddce90a48c2a8c·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but
57 unlike·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·2b20882d9583cee50e0c8b3cf362b27ce0d524db387d4aa4093d622b9370dada·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where57 unlike·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.scan">Rea[·...·truncated·by·diffoscope;·len:·570,·SHA:·3cdbe78e481f63f4d21b2fa94202dad167221af9d6e6f981ccd7a6e524f6157d·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where
58 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,58 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
59 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,59 ····U:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
60 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·933,·SHA:·4af94b75ba5c1e03d2d70590d2fd0706f13b3080fbff0f5b98e7b109048c403d·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where60 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·789,·SHA:·0e36f9aa81931958e65acc9e1b5bf6ad7367dcb7163dcf0af2a043314857a909·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where
61 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,61 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
62 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.I[·...·truncated·by·diffoscope;·len:·968,·SHA:·e5572ed2f3bdf5970d038da608f2f592d945541207c483c257fe5789efba168a·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where62 ····Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::trait[·...·truncated·by·diffoscope;·len:·800,·SHA:·3ea01df21dfaf9ee656fdee6aa789a6ce5be05d17c043433c5ab28da8f6d3241·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where
63 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,63 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
64 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·3013c0e49b0dade37f8ca096eccc5ceeb03fc79b9d320a4c92486d23b88d1009·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over64 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator[·...·truncated·by·diffoscope;·len:·63,·SHA:·8395b60c01b0cde6c3340bd4e6c57cddd02465a19dcf15a8aa5498bd6c8ddc11·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over
65 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,65 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="../../../core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,
66 the·windows·during·mapping·overlap·as·well.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside">[·...·truncated·by·diffoscope;·len:·454,·SHA:·040991f3914479bcc92615de2b81df7363656323622e5aadc964e1a61917d23e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where66 the·windows·during·mapping·overlap·as·well.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside"><span·class="since"·titl[·...·truncated·by·diffoscope;·len:·358,·SHA:·21db4436f04b3d09e41f294c30cd7dea235a4beb9af727cb1f1f065008ad732e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where
67 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="https://doc.rust-lang.org/1.84.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·0e0294a45242d5ce9a3ab8f95d6d410756415291d92baa7d12283ef1b3ecc3a0·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where67 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="../../../core/option/enum.Option.html#variant.None"·title="varia[·...·truncated·by·diffoscope;·len:·697,·SHA:·55b16240a265fa2f73963114b9def4c5703a60d1c3ce047915fff28502588e5b·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where
68 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,68 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
69 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·a8b562f71802a421f4745f7d1fadf4f70d98030c829e70f27b692e7915267027·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where69 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·650,·SHA:·eb862563a2da6881a0f9a31dac8f99f2b47b2c8d3033a0e1bc9ec49ae5500941·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where
70 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="https://doc.rust-lang.org/1.84.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·b3db7d84f203bbc139b1c52912705d19c664dac762898205fce452c9dc3a5318·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where70 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.by[·...·truncated·by·diffoscope;·len:·427,·SHA:·d439202f1a598c30b789e20f3d05a82f531349aa12f3af08cc5c230996ec01a9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where
71 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,71 ····B:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
72 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·431,·SHA:·a705a23f6d810357e7dcac670743884665ffcccfb9b780d0aa03720be8ca5625·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(72 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.collect[·...·truncated·by·diffoscope;·len:·335,·SHA:·d72a986b5d306b2e1ed99e18a16e26fa1b5380448fea76ac3db703052800b629·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(
73 ····&amp;mut·self,73 ····&amp;mut·self,
74 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.h[·...·truncated·by·diffoscope;·len:·479,·SHA:·fa749442d890055f86ceb34f411c84fd7ea08302b336d786d1ca36fe5868b020·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where74 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try[·...·truncated·by·diffoscope;·len:·359,·SHA:·886ccc2fbd37f1e7df4075b80b0bebd3d1a6e997fae2114ca1818fa30fa95d5a·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
75 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,75 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
76 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>, 
77 ····&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang[·...·truncated·by·diffoscope;·len:·449,·SHA:·9ddccfb7bdd27ea692d65fa83daf56e31762d1bec3a502234174b8fa4fb33a98·...·],76 ····Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="[·...·truncated·by·diffoscope;·len:·40,·SHA:·39f6b8b47216936a6251a972a3e72c0459df25c157b8b3990eefb48397aa8303·...·],
 77 ····&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;B&gt;,
78 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/itera[·...·truncated·by·diffoscope;·len:·323,·SHA:·b5c51f161dc9d77fd81d1fd23cc71fbf42ac00f3168cf9e41ebaaa2b6eb25363·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if78 ····B:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·tit[·...·truncated·by·diffoscope;·len:·227,·SHA:·91a843f71f5d4d4bdd2a6f526e4b1ace78ad1c1c0027ff429527a1e3cc1cbb42·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if
79 a·failure·is·encountered.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·ri[·...·truncated·by·diffoscope;·len:·521,·SHA:·6a54376815dab985ec8cc35604d035e98e3003b1563c9b41e70966084505542b·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where79 a·failure·is·encountered.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../../[·...·truncated·by·diffoscope;·len:·401,·SHA:·ed1d0660f20625c1d5231d569dd3e4f1d10332250dcd1a3f5d2e886618e67f5b·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
80 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,80 ····E:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
81 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·975,·SHA:·94f7f970236ba59ba5f1415764a0e3ab2f3093c6b79e76c25c797ac24a3c4d09·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where81 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_coll[·...·truncated·by·diffoscope;·len:·855,·SHA:·7b38a8c237aadc46d5211ff8698af580678e0cbcab757a66d6416b422880dd91·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
82 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,82 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
83 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·b480ec650ba000fe7cb67df58fc0351299638ee3e8f00db18f74ca24d69f9894·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,83 ····B:·<a·class="trait"·href="../../../core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="../../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associa[·...·truncated·by·diffoscope;·len:·23,·SHA:·4417dee5d41246c4acf5419e1bdac3c7d847bd34e3e87738a08734259a3b63da·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
84 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·fdf5a1845f070855ba2cfd0c8c85460ea5cb646c4d3b42a8431bf21489c73701·...·]/core/primitive.usize.html">usize</a><div·class="where">where84 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·827,·SHA:·0237b034801a953ed40ad7c10f9a80d682bdf0a649c6fde9f53efc254cd75fc0·...·]/core/primitive.usize.html">usize</a><div·class="where">where
85 ····T:·'a,85 ····T:·'a,
86 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·1fc250e258e9e42e4fa3e22f86ecd57057e9ff23e47af1aec778076a7a891134·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,86 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="../../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEnd[·...·truncated·by·diffoscope;·len:·60,·SHA:·036db50df43442a72ce04aef94ccf2727352aad0708d71fe0e34c23613b84765·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,
87 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·5846407374f20f525a4a0663ad4488141eafe64513ef82581dc5df5c2d200745·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_partition_in_place</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62543">#62543</a>)</span></div></span><div·class='docblock'>Reorders·the·elements·of·this·iterator·<em>in-place</em>·according·to·the·given·predicate,87 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="../../../core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_partition_in_place</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62543">#62543</a>)</span></div></span><div·class='docblock'>Reorders·the·elements·of·this·iterator·<em>in-place</em>·according·to·the·given·predicate,
88 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.88 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.
89 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.partition_in_place">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_partitioned"·class="method·trait-impl"><a·clas[·...·truncated·by·diffoscope;·len:·431,·SHA:·4aa7d028146c72d45794efc19a376d4bee3b75eda61ff46d969e440b3dbfa1b0·...·]/core/primitive.bool.html">bool</a><div·class="where">where89 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.partition_in_place">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_partitioned"·class="method·trait-impl"><a·class="src·rightside"·href="[·...·truncated·by·diffoscope;·len:·335,·SHA:·252e1c16199fc3c38bc7de8cbda8c9532ab6d581d449c680cd7daf8d61a74aeb·...·]/core/primitive.bool.html">bool</a><div·class="where">where
90 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,90 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
91 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·fcd03e71f79faad6d9b9a12045d59f4dfabc78e5aefebcabc9c1a5be45e31125·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,91 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·63,·SHA:·852041c2de8156fdddf9f71111c5ddf1a6b88aabd8c082f1a254f0b21c18ffa1·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,
92 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><span·class="righ[·...·truncated·by·diffoscope;·len:·319,·SHA:·9b9df13f2f4e5b4dde3908515766e1a474fa30bcb7edc98c15665a016e677c2a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where92 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><span·class="rightside"><span·class="sinc[·...·truncated·by·diffoscope;·len:·247,·SHA:·222a0145d03094cb0b20ca156583afe97e703828a8aa77e37fb7b4661759e2c7·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where
93 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,93 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
94 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,94 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
95 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns95 ····R:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns
96 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rights[·...·truncated·by·diffoscope;·len:·321,·SHA:·619fd774190944998148325de99aaa75de66ce4b7e26579fd342c564923a5652·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where96 successfully,·producing·a·single,·final·value.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"[·...·truncated·by·diffoscope;·len:·249,·SHA:·afbe9e91614278f09851b7c5920ddaf0907a2bf4c310ec39b40084e28959cc77·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where
97 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,97 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
98 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,98 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
99 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the99 ····R:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="../../../core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the
100 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·307,·SHA:·5975144fd8566efa93ad1ccec09297e280924b7372e08681d2103702124e2c52·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where100 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><span·class="rightside"><span·class="since"·tit[·...·truncated·by·diffoscope;·len:·235,·SHA:·da9aac17d9724df2aa434c2d10e1caa010eb4fd7e574e4da4e3d5b689e970097·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where
101 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,101 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
102 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,102 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,
103 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span[·...·truncated·by·diffoscope;·len:·619,·SHA:·8813f54846438870310d5f5dfabd2335a9dbf51e9da2e4cd681bcb6077d39628·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where103 returning·the·final·result.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="St[·...·truncated·by·diffoscope;·len:·499,·SHA:·ff97be2c630acbbbb397aa79317bd89b79955e6735d9da7aea9df48659f94fce·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
104 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,104 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
105 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·084691f7fc4e7f4da7db385127d0ce8d2d52f6740757129a65910c4db0dc180d·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing105 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·256,·SHA:·2fe8ae39f77649fea294c45979f427748b2a9938dfa70e4595ac661d972125b1·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing
106 operation.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·217,·SHA:·447ae00256be3de069c602a6c04889808c883eae6fa349d023f53bdd5570ecae·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(106 operation.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside"·href="../../../src/cor[·...·truncated·by·diffoscope;·len:·145,·SHA:·be4dc63adf8a4e832fd3dbaaabbf45f287388ea2bb17088d40589203a2ec6dfb·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(
107 ····&amp;mut·self,107 ····&amp;mut·self,
108 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·70b2b85cad045ac7addf647e0bd3cd5b2c9ebca5986613ad2b6a9c00e3a1132f·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,108 ····f:·impl·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·68,·SHA:·e7e11f257edcac749a5883ad9a3aa42e6e965be419f967b36caa7afd3b36d7c9·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
109 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·1823533b932e38e3200465d101f10a34421c005018974296350162e4049615ea·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where109 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</[·...·truncated·by·diffoscope;·len:·586,·SHA:·596f94ec7a4c06359aee56ccb8a7138a1ddb94415fafcecac1fc87434b1329a3·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
110 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,110 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
111 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,111 ····R:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
112 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·764ea8f08626b05426a76738d54ebb2d640042494d76cba8c20d868bfdc07a73·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the112 ····&lt;R·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</[·...·truncated·by·diffoscope;·len:·292,·SHA:·2ae73aa9b78f13099a8016e28a473713dcc755cf00fed8895c0c1b027bbcea01·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the
113 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><span·class="rightside"><s[·...·truncated·by·diffoscope;·len:·476,·SHA:·aef721c14147dea2fbec70dcfa76916b3f1273bed8304f4c9db310ca23d1e4b1·...·]/core/primitive.bool.html">bool</a><div·class="where">where113 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title=[·...·truncated·by·diffoscope;·len:·380,·SHA:·1042cdc03eabce3d330853b659f28b8566dd5841790f7f1303f3e326f05efab6·...·]/core/primitive.bool.html">bool</a><div·class="where">where
114 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,114 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
115 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·7c48e62c73a40a5cb5ebbf4a22cd789b342a88ad3d855022191f2bae33c736c6·...·]/core/primitive.bool.html">bool</a><div·class="where">where115 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·850,·SHA:·1b28d9cdfe3ba8dc7eac8cef1bb6549e78768b440ea492c70d80c8c07eae61cb·...·]/core/primitive.bool.html">bool</a><div·class="where">where
116 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,116 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
117 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·673d69ce0c23e24b2546127c463e67cd2a4c0f7be792712e2b42e75427161b75·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where117 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·980,·SHA:·a560c9e639c326a34f124b36f977291532e03ffae190e973674fee7e13b4c842·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
118 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,118 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
119 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·aa5078ff77f5638746395497f8ce92c1b684d342dea851990104d5e9981ab6b0·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where119 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·883,·SHA:·47fb849c20ee0cb36696a24bd285768bd0973774403ae956d2a517cd216452b1·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where
120 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,120 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
121 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·1bd732dff19021a1586bb486282683f5c1bc65d5d514f9e13cc9232b4e94955b·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;,</div></h4></section></summary><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns121 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·58,·SHA:·f6e1e279f463d2adecc4a9316aeab7af85329a84398e722f43ac130647fe78cf·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;,</div></h4></section></summary><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns
122 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.find_map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_find"·class="method·trait-impl"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·215,·SHA:·4d59a011c8881794ce6367c1e816f11a813db02e37c71800ed6d47056f157573·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(122 the·first·non-none·result.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.find_map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_find"·class="method·trait-impl"><a·class="src·rightside"·href="../../../src/cor[·...·truncated·by·diffoscope;·len:·143,·SHA:·00906f8dc0620ba030a634eba59c098f3aff639a062bf6231dfc4feb7727cc72·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(
123 ····&amp;mut·self,123 ····&amp;mut·self,
124 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,124 ····f:·impl·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
125 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·efb03e5c706e0947c6a4490b17f1efb0f1944a7d81f2640b5933212334dd255a·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where125 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</[·...·truncated·by·diffoscope;·len:·482,·SHA:·9ae34b47b226617c3eb5738e2b006056038b8280724fbbb72477bd2e900a4e85·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
126 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,126 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
Max diff block lines reached; 84105/335805 bytes (25.05%) of diff not shown.
341 KB
./usr/share/doc/rust-doc/html/alloc/collections/vec_deque/struct.IntoIter.html
    
Offset 1, 237 lines modifiedOffset 1, 237 lines modified
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="An·owning·iterator·over·the·elements·of·a·`VecDeque`."><title>IntoIter·in·alloc::collections::vec_deque·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»    2025-01-07)» (built»   from»       a»      source»tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Into<wbr>Iter</a></h2><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-IntoIter%3CT,+A%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-IntoIter%3CT,+A%3E"·title="Debug">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-IntoIter%3CT,+A%3E"·title="DoubleEndedIterator">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-IntoIter%3CT,+A%3E"·title="ExactSizeIterator">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-IntoIter%3CT,+A%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-IntoIter%3CT,+A%3E"·title="Iterator">Iterator</a></li><li><a·href="#impl-TrustedLen-for-IntoIter%3CT,+A%3E"·title="TrustedLen">TrustedLen</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-IntoIter%3CT,+A%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-IntoIter%3CT,+A%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-IntoIter%3CT,+A%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-IntoIter%3CT,+A%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-IntoIter%3CT,+A%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-IntoIter%3CT,+A%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>collections::<wbr>vec_<wbr>deque</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">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">vec_deque</a></span><h1>Struct·<span·class="struct">IntoIter</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../../src/alloc/collections/vec_deque/into_iter.rs.html#18-23">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·IntoIter&lt;T,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·=·<a·class="struct"·href="../../alloc/struct.Global.html"·title="struct·alloc::alloc::Global">Global</a>&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>An·owning·iterator·over·the·elements·of·a·<code>VecDeque</code>.</p>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="An·owning·iterator·over·the·elements·of·a·`VecDeque`."><title>IntoIter·in·alloc::collections::vec_deque·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»    2025-01-07)» (built»   from»       a»      source»tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Into<wbr>Iter</a></h2><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-IntoIter%3CT,+A%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-IntoIter%3CT,+A%3E"·title="Debug">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-IntoIter%3CT,+A%3E"·title="DoubleEndedIterator">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-IntoIter%3CT,+A%3E"·title="ExactSizeIterator">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-IntoIter%3CT,+A%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-IntoIter%3CT,+A%3E"·title="Iterator">Iterator</a></li><li><a·href="#impl-TrustedLen-for-IntoIter%3CT,+A%3E"·title="TrustedLen">TrustedLen</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-IntoIter%3CT,+A%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-IntoIter%3CT,+A%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-IntoIter%3CT,+A%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-IntoIter%3CT,+A%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-IntoIter%3CT,+A%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-IntoIter%3CT,+A%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>collections::<wbr>vec_<wbr>deque</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">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">vec_deque</a></span><h1>Struct·<span·class="struct">IntoIter</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../../src/alloc/collections/vec_deque/into_iter.rs.html#18-23">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·IntoIter&lt;T,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·=·<a·class="struct"·href="../../alloc/struct.Global.html"·title="struct·alloc::alloc::Global">Global</a>&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>An·owning·iterator·over·the·elements·of·a·<code>VecDeque</code>.</p>
2 <p>This·<code>struct</code>·is·created·by·the·<a·href="struct.VecDeque.html#method.into_iter"·title="method·alloc::collections::vec_deque::VecDeque::into_iter"><code>into_iter</code></a>·method·on·<a·href="struct.VecDeque.html"·title="struct·alloc::collections::vec_deque::VecDeque"><code>VecDeque</code></a>2 <p>This·<code>struct</code>·is·created·by·the·<a·href="struct.VecDeque.html#method.into_iter"·title="method·alloc::collections::vec_deque::VecDeque::into_iter"><code>into_iter</code></a>·method·on·<a·href="struct.VecDeque.html"·title="struct·alloc::collections::vec_deque::VecDeque"><code>VecDeque</code></a>
3 (provided·by·the·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator"><code>IntoIterator</code></a>·trait).·See·its·documentation·for·more.</p>3 (provided·by·the·<a·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator"><code>IntoIterator</code></a>·trait).·See·its·documentation·for·more.</p>
4 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-IntoIter%3CT,+A%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/vec_deque/into_iter.rs.html#16">Source</a></span><a·href="#impl-Clone-for-IntoIter%3CT,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,·A:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·+·<a·class="trait"·[·...·truncated·by·diffoscope;·len:·7374,·SHA:·d6a22a765395b5ed1253b3eafe168827ef27a89a817b8bda24e0b2b2a9228f4c·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold"·class="fn">try_rfold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where4 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-IntoIter%3CT,+A%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/vec_deque/into_iter.rs.html#16">Source</a></span><a·href="#impl-Clone-for-IntoIter%3CT,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T:·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,·A:·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·+·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="t[·...·truncated·by·diffoscope;·len:·6894,·SHA:·68d3a99eacb4bcdeaf2ed5ec71be360bd518e64c4a9395857d10f959120eacfa·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold"·class="fn">try_rfold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where
5 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,5 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
6 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>This·is·the·reverse·version·of·<a·href="https://doc.rust-lang.org/1.8[·...·truncated·by·diffoscope;·len:·3,·SHA:·fbd04e1aae9ce0b11a8946e2c9ac2619f7428a64d32d01eff61d809dcb70ee8e·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·title="method·core::iter::traits::iterator::Iterator::try_fold"><code>Iterator::try_fold()</code></a>:·it·takes6 ····R:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>This·is·the·reverse·version·of·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·title="method·core::iter::traits::iterator::Iterator::try_fold"><code>Iterator::try_fold()</code></a>:·it·takes
7 elements·starting·from·the·back·of·the·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfold"·class="method·trait-impl"><a·class="[·...·truncated·by·diffoscope;·len:·211,·SHA:·27790b74a7f9a836bcfd89d2244eb037c8c7402b693d5ceb5a2fcf7371d4732f·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold"·class="fn">rfold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where7 elements·starting·from·the·back·of·the·iterator.·<a·href="../../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfold"·class="method·trait-impl"><a·class="src·rightside"·href="../[·...·truncated·by·diffoscope;·len:·163,·SHA:·a54d89d59c00c4cad1bc7f3dc4a86d45143689c2fc61e3a3ba5b4213c1915b7f·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold"·class="fn">rfold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where
8 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·reduces·the·iterator’s·elements·to·a·single,8 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·reduces·the·iterator’s·elements·to·a·single,
9 final·value,·starting·from·the·back.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.nth_back"·class="method·trait-impl"><span·class[·...·truncated·by·diffoscope;·len:·1936,·SHA:·3e1cba574246665043051f31c88bb55a1e60497330d7b454f558a5799e3e9102·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where9 final·value,·starting·from·the·back.·<a·href="../../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.nth_back"·class="method·trait-impl"><span·class="rightside"><span·class[·...·truncated·by·diffoscope;·len:·1672,·SHA:·f6051220564923d78b7b1f630fe1b9673311edddc63bd2674e08f38ce08e9ab9·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
10 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,10 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
11 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·9190,·SHA:·ad489f3443944ea8e2b3ce38d8d20cc8b7748453b20583ead1cd073534b5ab80·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where11 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·8398,·SHA:·a03b799924af61d8d85a8eea1fed93f4a65d2fd5a99b23d6bc1cbd5dcde42398·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where
12 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,12 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
13 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns13 ····R:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns
14 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><a·class="src·rightside"·hr[·...·truncated·by·diffoscope;·len:·193,·SHA:·06fdfc0019f2da1e49e4f9390ea15a2b54afd7ac49f282dae421636a79502cc4·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where14 successfully,·producing·a·single,·final·value.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><a·class="src·rightside"·href="../../../src/alloc/c[·...·truncated·by·diffoscope;·len:·145,·SHA:·ef2acc53589abb0693e4a3c7a2f08608c89cd829aba963fc997beeade52498bb·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where
15 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,15 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,
16 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.last"·class="method·trait-impl"><a·class="src·rightside"·href="[·...·truncated·by·diffoscope;·len:·1349,·SHA:·49f191a638efa2a342826cb5357b4ff2311bfb60bd9639f803518557b92171f8·...·]/core/primitive.usize.html">usize</a>&gt;(16 returning·the·final·result.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.last"·class="method·trait-impl"><a·class="src·rightside"·href="../../../src/alloc/colle[·...·truncated·by·diffoscope;·len:·1181,·SHA:·437ea3f4c909196a2613e24e8f23ce7abc0835451e7452881dd02b35e7e954ed·...·]/core/primitive.usize.html">usize</a>&gt;(
17 ····&amp;mut·self,17 ····&amp;mut·self,
18 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·2939,·SHA:·839679d481356ce21d236f880175dbd13e1cadb205eb5b0184afa50deb71eb49·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where18 )·-&gt;·<a·class="enum"·href="../../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::It[·...·truncated·by·diffoscope;·len:·2555,·SHA:·3f23dcf955957ce0f0880db59a67eeef09cc0e3d53006a795752a995f535ec6e·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where
19 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by19 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by
20 the·given·amount·at·each·iteration.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><sp[·...·truncated·by·diffoscope;·len:·842,·SHA:·945c4509a8daf2f8fbccc5c6e5089e225955911e03a3e411f047f96d52d16862·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where20 the·given·amount·at·each·iteration.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="[·...·truncated·by·diffoscope;·len:·698,·SHA:·035d2f4d2e6b01ddf0b424aa6fc3f5919c82f85f857cb9cfa0f54f8357058b90·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
21 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,21 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
22 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·3b5ce32f9d564c3aa7cf2adc7130e674758d0c0f4f1275b4c3b46a74aa802cb3·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where22 ····U:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·[·...·truncated·by·diffoscope;·len:·1137,·SHA:·7916ae3a9b5afad376aafc6d698165147d82613fe975f64423f2367a02a69f6a·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
23 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,23 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
24 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·[·...·truncated·by·diffoscope;·len:·868,·SHA:·abdbf27ccc84063c7040d8fa3da9d0bda5ee310a470ef576e15554aee4bd5d21·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where24 ····U:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·of·pairs.·<a·href="../..[·...·truncated·by·diffoscope;·len:·724,·SHA:·ba31078b5c50fbfc51e53bed6f70aaa6e7e320cfda19949035c71d9363c0d919·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where
25 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,25 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
26 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent26 ····Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent
27 items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="sr[·...·truncated·by·diffoscope;·len:·427,·SHA:·6e82ad4aad49c2165d869fe30d20a968580a973cdb3a7f4c77f49e16dd59393e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where27 items·of·the·original·iterator.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="src·rightside"·href="../..[·...·truncated·by·diffoscope;·len:·331,·SHA:·451e844c9bf5d6d78b9579516e4b9fafb3e84136eaa1c95bead4539370743d7d·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where
28 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,28 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
29 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>29 ····G:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>
30 between·adjacent·items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightsi[·...·truncated·by·diffoscope;·len:·471,·SHA:·ed10488b7b2ccc3e4cc84a9a57a9695a74c1c964962e8d753cbace12f3318a66·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where30 between·adjacent·items·of·the·original·iterator.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·[·...·truncated·by·diffoscope;·len:·375,·SHA:·7bbb71535f348e442b9de05a74f9180c9acec0636566fa2a19ab1dc83779aace·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where
31 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,31 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
32 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each32 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each
33 element.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><spa[·...·truncated·by·diffoscope;·len:·306,·SHA:·61c87c39b177830189b0e4c036d97c40d8b9649d76432c90afb88de59498e8b2·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where33 element.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="S[·...·truncated·by·diffoscope;·len:·234,·SHA:·55463e0fb539911d03265cbd8abb7248189471ea74954185ed77f245746805c2·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where
34 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,34 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
35 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·a65da32c5f5ef8335cb607d3b4ab3f8a25877bc2c2e8b44ca9d575caecd5c8a5·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where35 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·772,·SHA:·de07f629315c257cc96a89e82de6752f002f259b678391b79d5fb48e279e56d2·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where
36 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,36 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
37 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·6d69c85c69fa789be551ea42d95c33c237d12a04ef157f9ddaaead1177f7771e·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element37 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·68,·SHA:·67cf1e2a20410007c7dd6c47c91b1d386626c1bfac5c1116c374da7bbee00d51·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element
38 should·be·yielded.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·489,·SHA:·9bdc636899f4e4e5a26a3a21c9603f72b3fb972865d2f459c38b7e2ac8fed7f1·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where38 should·be·yielded.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·tit[·...·truncated·by·diffoscope;·len:·393,·SHA:·328d72714f754fb793753313f01b087a9fbb30b77a2bcd5749456e1f6fd72710·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where
39 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,39 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
40 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·46dbf841c7aecd3f06bd4c944af21650faeac98c46c515dcfe643302618b1ecd·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where40 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·884,·SHA:·e8a37e28a6bfcb2d58b9ffd389d339c3dece95c14840f28c980a7d7aedcc9a05·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where
41 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as41 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as
42 the·next·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside[·...·truncated·by·diffoscope;·len:·468,·SHA:·52f7ff7f264284c3acc4429ca34d057ded9afa2e3d9d6e07571e252db9a48977·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where42 the·next·value.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside"><span·class="since"·ti[·...·truncated·by·diffoscope;·len:·372,·SHA:·9c08a613d034f21b42b8d196073d0f4d61c81458378e40e77995533a8b460837·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where
43 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·c0180fefce4346b0b4089e5c642521d7716108241c0ce6ec3e910c7a2c7364b4·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods43 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="../../../core/iter/adapters/peekable/struct.Peekable.html#method.peek"·ti[·...·truncated·by·diffoscope;·len:·103,·SHA:·e3683d31746f50069ed604def6201840bce75bbc7c584fac6c3644292077ae8a·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods
44 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See44 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See
45 their·documentation·for·more·information.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightsid[·...·truncated·by·diffoscope;·len:·498,·SHA:·e4a68861585faec6a5032b3b69d6dfb0f2799b5f387a527d9a1365571ed02069·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where45 their·documentation·for·more·information.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightside"><span·class="since"·t[·...·truncated·by·diffoscope;·len:·402,·SHA:·bdba673560d208f968337eb74446ead60d6223b0ca9ec6fbfaeb1a995a7e8001·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where
46 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,46 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
47 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·93281c1f6402743fd61110c11cf676f0f67eddceda801b4eb35e5fe9f85870fd·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where47 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·1042,·SHA:·27d4a79658fb1c97b659bd2520bcebbf5cfcb8a42420a7ecfcbff6f3330fa5e1·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where
48 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,48 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
49 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·f1cdbb1ec64f98fabbe1d89c88b03824310926cd7eaa160953ce2452fc3abb77·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where49 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·890,·SHA:·c43533da7f54bfb6611594b3436645d4d1f8e5339d2d05bf2345e87628499759·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where
50 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,50 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
51 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·f94a0b2c1396b13b89aca7830197ebf19e2c0e5ba536a9cc25b325a481799510·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where51 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·971,·SHA:·1b31b9d1d5061d4ee982a30400139f1d7319412bdea39925e0cc1e8e7cf3d65a·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where
52 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="https://doc.rust-lang[·...·truncated·by·diffoscope;·len:·783,·SHA:·c14217b89e3292a50a09192a8857485891fc769f861e1d1fc4322d04295c86ef·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where52 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="../../../core/iter/traits/iterator/trait.Iter[·...·truncated·by·diffoscope;·len:·639,·SHA:·79c7f7eddc655d329424f08baee8551b7f59cd4dc4b0d6984c5e4f241bcb949b·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where
53 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer53 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer
54 if·the·underlying·iterator·ends·sooner.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·c[·...·truncated·by·diffoscope;·len:·488,·SHA:·76f753d5a273a09a73127631acaa0ee947326a929f33be291018188793e1af56·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where54 if·the·underlying·iterator·ends·sooner.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stab[·...·truncated·by·diffoscope;·len:·392,·SHA:·50ac976eb8bf89726a483af064d5a70c100dedd17d46dc40ac3a82aba51b2082·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where
55 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,55 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
56 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·07d303586c8ad4e0082d5b44bff8eeda03cdb8f4bdbe46489f9232bca5a43ec6·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but56 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/tra[·...·truncated·by·diffoscope;·len:·329,·SHA:·14fc5ef1359fcb2171e21ba65c5f5d8ce11053860ba1d5aa32ddce90a48c2a8c·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but
57 unlike·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·2b20882d9583cee50e0c8b3cf362b27ce0d524db387d4aa4093d622b9370dada·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where57 unlike·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.scan">Rea[·...·truncated·by·diffoscope;·len:·570,·SHA:·3cdbe78e481f63f4d21b2fa94202dad167221af9d6e6f981ccd7a6e524f6157d·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where
58 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,58 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
59 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,59 ····U:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
60 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·933,·SHA:·4af94b75ba5c1e03d2d70590d2fd0706f13b3080fbff0f5b98e7b109048c403d·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where60 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·789,·SHA:·0e36f9aa81931958e65acc9e1b5bf6ad7367dcb7163dcf0af2a043314857a909·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where
61 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,61 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
62 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.I[·...·truncated·by·diffoscope;·len:·968,·SHA:·e5572ed2f3bdf5970d038da608f2f592d945541207c483c257fe5789efba168a·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where62 ····Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::trait[·...·truncated·by·diffoscope;·len:·800,·SHA:·3ea01df21dfaf9ee656fdee6aa789a6ce5be05d17c043433c5ab28da8f6d3241·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where
63 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,63 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
64 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·3013c0e49b0dade37f8ca096eccc5ceeb03fc79b9d320a4c92486d23b88d1009·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over64 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator[·...·truncated·by·diffoscope;·len:·63,·SHA:·8395b60c01b0cde6c3340bd4e6c57cddd02465a19dcf15a8aa5498bd6c8ddc11·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over
65 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,65 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="../../../core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,
66 the·windows·during·mapping·overlap·as·well.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside">[·...·truncated·by·diffoscope;·len:·454,·SHA:·040991f3914479bcc92615de2b81df7363656323622e5aadc964e1a61917d23e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where66 the·windows·during·mapping·overlap·as·well.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside"><span·class="since"·titl[·...·truncated·by·diffoscope;·len:·358,·SHA:·21db4436f04b3d09e41f294c30cd7dea235a4beb9af727cb1f1f065008ad732e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where
67 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="https://doc.rust-lang.org/1.84.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·0e0294a45242d5ce9a3ab8f95d6d410756415291d92baa7d12283ef1b3ecc3a0·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where67 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="../../../core/option/enum.Option.html#variant.None"·title="varia[·...·truncated·by·diffoscope;·len:·697,·SHA:·55b16240a265fa2f73963114b9def4c5703a60d1c3ce047915fff28502588e5b·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where
68 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,68 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
69 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·a8b562f71802a421f4745f7d1fadf4f70d98030c829e70f27b692e7915267027·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where69 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·650,·SHA:·eb862563a2da6881a0f9a31dac8f99f2b47b2c8d3033a0e1bc9ec49ae5500941·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where
70 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="https://doc.rust-lang.org/1.84.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·b3db7d84f203bbc139b1c52912705d19c664dac762898205fce452c9dc3a5318·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where70 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.by[·...·truncated·by·diffoscope;·len:·427,·SHA:·d439202f1a598c30b789e20f3d05a82f531349aa12f3af08cc5c230996ec01a9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where
71 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,71 ····B:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
72 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·431,·SHA:·a705a23f6d810357e7dcac670743884665ffcccfb9b780d0aa03720be8ca5625·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(72 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.collect[·...·truncated·by·diffoscope;·len:·335,·SHA:·d72a986b5d306b2e1ed99e18a16e26fa1b5380448fea76ac3db703052800b629·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(
73 ····&amp;mut·self,73 ····&amp;mut·self,
74 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.h[·...·truncated·by·diffoscope;·len:·479,·SHA:·fa749442d890055f86ceb34f411c84fd7ea08302b336d786d1ca36fe5868b020·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where74 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try[·...·truncated·by·diffoscope;·len:·359,·SHA:·886ccc2fbd37f1e7df4075b80b0bebd3d1a6e997fae2114ca1818fa30fa95d5a·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
75 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,75 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
76 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>, 
77 ····&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang[·...·truncated·by·diffoscope;·len:·449,·SHA:·9ddccfb7bdd27ea692d65fa83daf56e31762d1bec3a502234174b8fa4fb33a98·...·],76 ····Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="[·...·truncated·by·diffoscope;·len:·40,·SHA:·39f6b8b47216936a6251a972a3e72c0459df25c157b8b3990eefb48397aa8303·...·],
 77 ····&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;B&gt;,
78 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/itera[·...·truncated·by·diffoscope;·len:·323,·SHA:·b5c51f161dc9d77fd81d1fd23cc71fbf42ac00f3168cf9e41ebaaa2b6eb25363·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if78 ····B:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·tit[·...·truncated·by·diffoscope;·len:·227,·SHA:·91a843f71f5d4d4bdd2a6f526e4b1ace78ad1c1c0027ff429527a1e3cc1cbb42·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if
79 a·failure·is·encountered.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·ri[·...·truncated·by·diffoscope;·len:·521,·SHA:·6a54376815dab985ec8cc35604d035e98e3003b1563c9b41e70966084505542b·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where79 a·failure·is·encountered.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../../[·...·truncated·by·diffoscope;·len:·401,·SHA:·ed1d0660f20625c1d5231d569dd3e4f1d10332250dcd1a3f5d2e886618e67f5b·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
80 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,80 ····E:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
81 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·975,·SHA:·94f7f970236ba59ba5f1415764a0e3ab2f3093c6b79e76c25c797ac24a3c4d09·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where81 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_coll[·...·truncated·by·diffoscope;·len:·855,·SHA:·7b38a8c237aadc46d5211ff8698af580678e0cbcab757a66d6416b422880dd91·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
82 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,82 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
83 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·b480ec650ba000fe7cb67df58fc0351299638ee3e8f00db18f74ca24d69f9894·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,83 ····B:·<a·class="trait"·href="../../../core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="../../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associa[·...·truncated·by·diffoscope;·len:·23,·SHA:·4417dee5d41246c4acf5419e1bdac3c7d847bd34e3e87738a08734259a3b63da·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
84 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·fdf5a1845f070855ba2cfd0c8c85460ea5cb646c4d3b42a8431bf21489c73701·...·]/core/primitive.usize.html">usize</a><div·class="where">where84 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·827,·SHA:·0237b034801a953ed40ad7c10f9a80d682bdf0a649c6fde9f53efc254cd75fc0·...·]/core/primitive.usize.html">usize</a><div·class="where">where
85 ····T:·'a,85 ····T:·'a,
86 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·1fc250e258e9e42e4fa3e22f86ecd57057e9ff23e47af1aec778076a7a891134·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,86 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="../../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEnd[·...·truncated·by·diffoscope;·len:·60,·SHA:·036db50df43442a72ce04aef94ccf2727352aad0708d71fe0e34c23613b84765·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,
87 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·5846407374f20f525a4a0663ad4488141eafe64513ef82581dc5df5c2d200745·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_partition_in_place</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62543">#62543</a>)</span></div></span><div·class='docblock'>Reorders·the·elements·of·this·iterator·<em>in-place</em>·according·to·the·given·predicate,87 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="../../../core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_partition_in_place</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62543">#62543</a>)</span></div></span><div·class='docblock'>Reorders·the·elements·of·this·iterator·<em>in-place</em>·according·to·the·given·predicate,
88 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.88 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.
89 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.partition_in_place">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_partitioned"·class="method·trait-impl"><a·clas[·...·truncated·by·diffoscope;·len:·431,·SHA:·4aa7d028146c72d45794efc19a376d4bee3b75eda61ff46d969e440b3dbfa1b0·...·]/core/primitive.bool.html">bool</a><div·class="where">where89 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.partition_in_place">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_partitioned"·class="method·trait-impl"><a·class="src·rightside"·href="[·...·truncated·by·diffoscope;·len:·335,·SHA:·252e1c16199fc3c38bc7de8cbda8c9532ab6d581d449c680cd7daf8d61a74aeb·...·]/core/primitive.bool.html">bool</a><div·class="where">where
90 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,90 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
91 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·fcd03e71f79faad6d9b9a12045d59f4dfabc78e5aefebcabc9c1a5be45e31125·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,91 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·63,·SHA:·852041c2de8156fdddf9f71111c5ddf1a6b88aabd8c082f1a254f0b21c18ffa1·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,
92 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="[·...·truncated·by·diffoscope;·len:·327,·SHA:·6a5e1fb3d277395b79208a4b9226a3f67079855ea8ea2a966f794f23ed6151ba·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where92 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rightside"><span·class="[·...·truncated·by·diffoscope;·len:·255,·SHA:·71abafaa75b75be2ab5b9eb43b3043f2c6d1e77bd8bce5dacb8b85a64c63db0f·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where
93 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,93 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
94 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,94 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
95 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the95 ····R:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="../../../core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the
96 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightsid[·...·truncated·by·diffoscope;·len:·627,·SHA:·6a5bb11fcfdaae1b3149efa5eb584c4da7964c86ed0f5313c3ee12e94ad8d787·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where96 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span·class="since"·t[·...·truncated·by·diffoscope;·len:·507,·SHA:·2baaf60dde801d16bab4f0663cf4aeaf2e1e0d48ab5809513d2361b958b8f3b8·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
97 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,97 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
98 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·084691f7fc4e7f4da7db385127d0ce8d2d52f6740757129a65910c4db0dc180d·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing98 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·256,·SHA:·2fe8ae39f77649fea294c45979f427748b2a9938dfa70e4595ac661d972125b1·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing
99 operation.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·217,·SHA:·447ae00256be3de069c602a6c04889808c883eae6fa349d023f53bdd5570ecae·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(99 operation.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside"·href="../../../src/cor[·...·truncated·by·diffoscope;·len:·145,·SHA:·be4dc63adf8a4e832fd3dbaaabbf45f287388ea2bb17088d40589203a2ec6dfb·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(
100 ····&amp;mut·self,100 ····&amp;mut·self,
101 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·70b2b85cad045ac7addf647e0bd3cd5b2c9ebca5986613ad2b6a9c00e3a1132f·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,101 ····f:·impl·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·68,·SHA:·e7e11f257edcac749a5883ad9a3aa42e6e965be419f967b36caa7afd3b36d7c9·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
102 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·1823533b932e38e3200465d101f10a34421c005018974296350162e4049615ea·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where102 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</[·...·truncated·by·diffoscope;·len:·586,·SHA:·596f94ec7a4c06359aee56ccb8a7138a1ddb94415fafcecac1fc87434b1329a3·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
103 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,103 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
104 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,104 ····R:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
105 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·764ea8f08626b05426a76738d54ebb2d640042494d76cba8c20d868bfdc07a73·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the105 ····&lt;R·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</[·...·truncated·by·diffoscope;·len:·292,·SHA:·2ae73aa9b78f13099a8016e28a473713dcc755cf00fed8895c0c1b027bbcea01·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the
106 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><span·class="rightside"><s[·...·truncated·by·diffoscope;·len:·476,·SHA:·aef721c14147dea2fbec70dcfa76916b3f1273bed8304f4c9db310ca23d1e4b1·...·]/core/primitive.bool.html">bool</a><div·class="where">where106 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title=[·...·truncated·by·diffoscope;·len:·380,·SHA:·1042cdc03eabce3d330853b659f28b8566dd5841790f7f1303f3e326f05efab6·...·]/core/primitive.bool.html">bool</a><div·class="where">where
107 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,107 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
108 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·7c48e62c73a40a5cb5ebbf4a22cd789b342a88ad3d855022191f2bae33c736c6·...·]/core/primitive.bool.html">bool</a><div·class="where">where108 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·850,·SHA:·1b28d9cdfe3ba8dc7eac8cef1bb6549e78768b440ea492c70d80c8c07eae61cb·...·]/core/primitive.bool.html">bool</a><div·class="where">where
109 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,109 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
110 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·673d69ce0c23e24b2546127c463e67cd2a4c0f7be792712e2b42e75427161b75·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where110 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·980,·SHA:·a560c9e639c326a34f124b36f977291532e03ffae190e973674fee7e13b4c842·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
111 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,111 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
112 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·aa5078ff77f5638746395497f8ce92c1b684d342dea851990104d5e9981ab6b0·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where112 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·883,·SHA:·47fb849c20ee0cb36696a24bd285768bd0973774403ae956d2a517cd216452b1·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where
113 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,113 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
114 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·1bd732dff19021a1586bb486282683f5c1bc65d5d514f9e13cc9232b4e94955b·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;,</div></h4></section></summary><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns114 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·58,·SHA:·f6e1e279f463d2adecc4a9316aeab7af85329a84398e722f43ac130647fe78cf·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;,</div></h4></section></summary><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns
115 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.find_map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_find"·class="method·trait-impl"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·215,·SHA:·4d59a011c8881794ce6367c1e816f11a813db02e37c71800ed6d47056f157573·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(115 the·first·non-none·result.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.find_map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_find"·class="method·trait-impl"><a·class="src·rightside"·href="../../../src/cor[·...·truncated·by·diffoscope;·len:·143,·SHA:·00906f8dc0620ba030a634eba59c098f3aff639a062bf6231dfc4feb7727cc72·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(
116 ····&amp;mut·self,116 ····&amp;mut·self,
117 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,117 ····f:·impl·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
118 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·efb03e5c706e0947c6a4490b17f1efb0f1944a7d81f2640b5933212334dd255a·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where118 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</[·...·truncated·by·diffoscope;·len:·482,·SHA:·9ae34b47b226617c3eb5738e2b006056038b8280724fbbb72477bd2e900a4e85·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
119 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,119 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
120 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html">bool</a>&gt;,120 ····R:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="../../../core/primitive.bool.html">bool</a>&gt;,
121 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·764ea8f08626b05426a76738d54ebb2d640042494d76cba8c20d868bfdc07a73·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>try_find</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/63178">#63178</a>)</span></div></span><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns121 ····&lt;R·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</[·...·truncated·by·diffoscope;·len:·292,·SHA:·2ae73aa9b78f13099a8016e28a473713dcc755cf00fed8895c0c1b027bbcea01·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>try_find</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/63178">#63178</a>)</span></div></span><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns
122 the·first·true·result·or·the·first·error.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_find">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.position"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·635,·SHA:·348891c2a01ad4ba1f5ccca4c270bd2cefaf47e6b8194dc69d227209558119ff·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where122 the·first·true·result·or·the·first·error.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_find">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.position"·class="method·trait-impl"><span·class="rightside"><span·class="since"·tit[·...·truncated·by·diffoscope;·len:·515,·SHA:·a1fda5a0c76c9054797870324df8cd1bb446d66310ff913ddcbc9467fea7a33a·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
123 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,123 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
124 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1189,·SHA:·4360ca57800771c35ace077798534aad7ac95777a9346afa743da53c39cd8341·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where124 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·997,·SHA:·720af93496e07ab2f8582f7fbd8b219de5f80316a59f0e151ff409eb57615a41·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
125 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·fcd03e71f79faad6d9b9a12045d59f4dfabc78e5aefebcabc9c1a5be45e31125·...·]/core/primitive.bool.html">bool</a>,125 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·63,·SHA:·852041c2de8156fdddf9f71111c5ddf1a6b88aabd8c082f1a254f0b21c18ffa1·...·]/core/primitive.bool.html">bool</a>,
126 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/exact_size/trait.ExactSizeIterator.html"·title="trait·core::iter::traits::[·...·truncated·by·diffoscope;·len:·110,·SHA:·0820928829289d98a1966be462f362db3ccaddf5fdad8e605000a126e2801bc6·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIterator</a>,</div></h4></section></summary><div·class='docblock'>Searches·for·an·element·in·an·iterator·from·the·right,·returning·its126 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="../../../core/iter/traits/exact_size/trait.ExactSizeIterator.html"·title="trait·core::iter::traits::exact_size::ExactSizeIterator">ExactSizeIterator[·...·truncated·by·diffoscope;·len:·38,·SHA:·4abdae377d2a3e2675bc9655e8e3bcefdf65b43fd7d15acd05aa8badc9f5e5bf·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIterator</a>,</div></h4></section></summary><div·class='docblock'>Searches·for·an·element·in·an·iterator·from·the·right,·returning·its
Max diff block lines reached; 95185/349027 bytes (27.27%) of diff not shown.
342 KB
./usr/share/doc/rust-doc/html/alloc/collections/vec_deque/struct.Iter.html
    
Offset 1, 11 lines modifiedOffset 1, 11 lines modified
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="An·iterator·over·the·elements·of·a·`VecDeque`."><title>Iter·in·alloc::collections::vec_deque·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»      2025-01-07)»   (built»     from» a»source»  tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Iter</a></h2><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.as_slices"·title="as_slices">as_slices</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-Iter%3C'_,+T%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-Iter%3C'_,+T%3E"·title="Debug">Debug</a></li><li><a·href="#impl-Default-for-Iter%3C'_,+T%3E"·title="Default">Default</a></li><li><a·href="#impl-DoubleEndedIterator-for-Iter%3C'a,+T%3E"·title="DoubleEndedIterator">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-Iter%3C'_,+T%3E"·title="ExactSizeIterator">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-Iter%3C'_,+T%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-Iter%3C'a,+T%3E"·title="Iterator">Iterator</a></li><li><a·href="#impl-TrustedLen-for-Iter%3C'_,+T%3E"·title="TrustedLen">TrustedLen</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-Iter%3C'a,+T%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Iter%3C'a,+T%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Iter%3C'a,+T%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-Iter%3C'a,+T%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-Iter%3C'a,+T%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Iter%3C'a,+T%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>collections::<wbr>vec_<wbr>deque</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">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">vec_deque</a></span><h1>Struct·<span·class="struct">Iter</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../../src/alloc/collections/vec_deque/iter.rs.html#13-16">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·Iter&lt;'a,·T:·'a&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>An·iterator·over·the·elements·of·a·<code>VecDeque</code>.</p>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="An·iterator·over·the·elements·of·a·`VecDeque`."><title>Iter·in·alloc::collections::vec_deque·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»      2025-01-07)»   (built»     from» a»source»  tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Iter</a></h2><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.as_slices"·title="as_slices">as_slices</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-Iter%3C'_,+T%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-Iter%3C'_,+T%3E"·title="Debug">Debug</a></li><li><a·href="#impl-Default-for-Iter%3C'_,+T%3E"·title="Default">Default</a></li><li><a·href="#impl-DoubleEndedIterator-for-Iter%3C'a,+T%3E"·title="DoubleEndedIterator">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-Iter%3C'_,+T%3E"·title="ExactSizeIterator">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-Iter%3C'_,+T%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-Iter%3C'a,+T%3E"·title="Iterator">Iterator</a></li><li><a·href="#impl-TrustedLen-for-Iter%3C'_,+T%3E"·title="TrustedLen">TrustedLen</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-Iter%3C'a,+T%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Iter%3C'a,+T%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Iter%3C'a,+T%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-Iter%3C'a,+T%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-Iter%3C'a,+T%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Iter%3C'a,+T%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>collections::<wbr>vec_<wbr>deque</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">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">vec_deque</a></span><h1>Struct·<span·class="struct">Iter</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../../src/alloc/collections/vec_deque/iter.rs.html#13-16">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·Iter&lt;'a,·T:·'a&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>An·iterator·over·the·elements·of·a·<code>VecDeque</code>.</p>
2 <p>This·<code>struct</code>·is·created·by·the·<a·href="struct.VecDeque.html#method.iter"·title="method·alloc::collections::vec_deque::VecDeque::iter"><code>iter</code></a>·method·on·<a·href="struct.VecDeque.html"·title="struct·alloc::collections::vec_deque::VecDeque"><code>super::VecDeque</code></a>.·See·its2 <p>This·<code>struct</code>·is·created·by·the·<a·href="struct.VecDeque.html#method.iter"·title="method·alloc::collections::vec_deque::VecDeque::iter"><code>iter</code></a>·method·on·<a·href="struct.VecDeque.html"·title="struct·alloc::collections::vec_deque::VecDeque"><code>super::VecDeque</code></a>.·See·its
3 documentation·for·more.</p>3 documentation·for·more.</p>
4 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Iter%3C'a,+T%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/vec_deque/iter.rs.html#18-56">Source</a><a·href="#impl-Iter%3C'a,+T%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·T&gt;·<a·class="struct"·href="struct.Iter.html"·title="struct·alloc::collections::vec_deque::Iter">Iter</a>&lt;'a,·T&gt;</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.as_slices"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/vec_deque/iter.rs.html#53-55">Source</a><h4·class="code-header">pub·fn·<a·href="#method.as_slices"·class="fn">as_slices</a>(&amp;self)·-&gt;·(&amp;'a·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html">[T]</a>,·&amp;'a·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html">[T]</a>)</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>vec_deque_iter_as_slices</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/123947">#123947</a>)</span></div></span></summary><div·class="docblock"><p>Views·the·underlying·data·as·a·pair·of·subslices·of·the·original·data.</p>4 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Iter%3C'a,+T%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/vec_deque/iter.rs.html#18-56">Source</a><a·href="#impl-Iter%3C'a,+T%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·T&gt;·<a·class="struct"·href="struct.Iter.html"·title="struct·alloc::collections::vec_deque::Iter">Iter</a>&lt;'a,·T&gt;</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.as_slices"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/vec_deque/iter.rs.html#53-55">Source</a><h4·class="code-header">pub·fn·<a·href="#method.as_slices"·class="fn">as_slices</a>(&amp;self)·-&gt;·(&amp;'a·<a·class="primitive"·href="../../../core/primitive.slice.html">[T]</a>,·&amp;'a·<a·class="primitive"·href="../../../core/primitive.slice.html">[T]</a>)</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>vec_deque_iter_as_slices</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/123947">#123947</a>)</span></div></span></summary><div·class="docblock"><p>Views·the·underlying·data·as·a·pair·of·subslices·of·the·original·data.</p>
5 <p>The·slices·contain,·in·order,·the·contents·of·the·deque·not·yet·yielded5 <p>The·slices·contain,·in·order,·the·contents·of·the·deque·not·yet·yielded
6 by·the·iterator.</p>6 by·the·iterator.</p>
7 <p>This·has·the·same·lifetime·as·the·original·<code>VecDeque</code>,·and·so·the7 <p>This·has·the·same·lifetime·as·the·original·<code>VecDeque</code>,·and·so·the
8 iterator·can·continue·to·be·used·while·this·exists.</p>8 iterator·can·continue·to·be·used·while·this·exists.</p>
9 <h5·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h5>9 <h5·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h5>
10 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(vec_deque_iter_as_slices)]10 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(vec_deque_iter_as_slices)]
  
Offset 20, 240 lines modifiedOffset 20, 240 lines modified
20 deque.push_front(<span·class="number">8</span>);20 deque.push_front(<span·class="number">8</span>);
  
21 <span·class="kw">let·</span><span·class="kw-2">mut·</span>iter·=·deque.iter();21 <span·class="kw">let·</span><span·class="kw-2">mut·</span>iter·=·deque.iter();
22 iter.next();22 iter.next();
23 iter.next_back();23 iter.next_back();
  
24 <span·class="macro">assert_eq!</span>(iter.as_slices(),·(<span·class="kw-2">&amp;</span>[<span·class="number">9</span>,·<span·class="number">10</span>][..],·<span·class="kw-2">&amp;</span>[<span·class="number">0</span>,·<span·class="number">1</span>][..]));</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Bfeature(vec_deque_iter_as_slices)%5D%0A%0Afn+main()+%7B%0A++++use+std::collections::VecDeque;%0A++++%0A++++let+mut+deque+=+VecDeque::new();%0A++++deque.push_back(0);%0A++++deque.push_back(1);%0A++++deque.push_back(2);%0A++++deque.push_front(10);%0A++++deque.push_front(9);%0A++++deque.push_front(8);%0A++++%0A++++let+mut+iter+=+deque.iter();%0A++++iter.next();%0A++++iter.next_back();%0A++++%0A++++assert_eq!(iter.as_slices(),+(%26%5B9,+10%5D%5B..%5D,+%26%5B0,+1%5D%5B..%5D));%0A%7D&amp;version=nightly&amp;edition=2021"></a></div>24 <span·class="macro">assert_eq!</span>(iter.as_slices(),·(<span·class="kw-2">&amp;</span>[<span·class="number">9</span>,·<span·class="number">10</span>][..],·<span·class="kw-2">&amp;</span>[<span·class="number">0</span>,·<span·class="number">1</span>][..]));</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Bfeature(vec_deque_iter_as_slices)%5D%0A%0Afn+main()+%7B%0A++++use+std::collections::VecDeque;%0A++++%0A++++let+mut+deque+=+VecDeque::new();%0A++++deque.push_back(0);%0A++++deque.push_back(1);%0A++++deque.push_back(2);%0A++++deque.push_front(10);%0A++++deque.push_front(9);%0A++++deque.push_front(8);%0A++++%0A++++let+mut+iter+=+deque.iter();%0A++++iter.next();%0A++++iter.next_back();%0A++++%0A++++assert_eq!(iter.as_slices(),+(%26%5B9,+10%5D%5B..%5D,+%26%5B0,+1%5D%5B..%5D));%0A%7D&amp;version=nightly&amp;edition=2021"></a></div>
25 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-Iter%3C'_,+T%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/vec_deque/iter.rs.html#81-85">Source</a></span><a·href="#impl-Clone-for-Iter%3C'_,+T%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struct"·href="struct.Iter.html"·title="struct·alloc::collections::vec_deque::Iter">Iter</a>&lt;'_,·T&gt;</h3></section></summary><div·cla[·...·truncated·by·diffoscope;·len:·3965,·SHA:·2f707cfd05328f4dfb372fe3a44763884732398e8028b18de6cbedb601b868a8·...·]/core/default/trait.Default.html#tymethod.default"·class="fn">default</a>()·-&gt;·Self</h4></section></summary><div·class="docblock"><p>Creates·an·empty·<code>vec_deque::Iter</code>.</p>25 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-Iter%3C'_,+T%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/vec_deque/iter.rs.html#81-85">Source</a></span><a·href="#impl-Clone-for-Iter%3C'_,+T%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struct"·href="struct.Iter.html"·title="struct·alloc::collections::vec_deque::Iter">Iter</a>&lt;'_,·T&gt;</h3></section></summary><div·class="impl-items"><details[·...·truncated·by·diffoscope;·len:·3773,·SHA:·b0638efcc5ec983fe3fa0ffbf8b0a863abd25ad6bd2cc9ffcd6f146709acb296·...·]/core/default/trait.Default.html#tymethod.default"·class="fn">default</a>()·-&gt;·Self</h4></section></summary><div·class="docblock"><p>Creates·an·empty·<code>vec_deque::Iter</code>.</p>
  
26 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span>iter:·vec_deque::Iter&lt;<span·class="lifetime">'_</span>,·u8&gt;·=·Default::default();26 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span>iter:·vec_deque::Iter&lt;<span·class="lifetime">'_</span>,·u8&gt;·=·Default::default();
27 <span·class="macro">assert_eq!</span>(iter.len(),·<span·class="number">0</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::vec_deque;%0A++++let+iter:+vec_deque::Iter%3C'_,+u8%3E+=+Default::default();%0A++++assert_eq!(iter.len(),+0);%0A%7D&amp;edition=2021"></a></div>27 <span·class="macro">assert_eq!</span>(iter.len(),·<span·class="number">0</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::vec_deque;%0A++++let+iter:+vec_deque::Iter%3C'_,+u8%3E+=+Default::default();%0A++++assert_eq!(iter.len(),+0);%0A%7D&amp;edition=2021"></a></div>
28 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-DoubleEndedIterator-for-Iter%3C'a,+T%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/vec_deque/iter.rs.html#162-205">Source</a></span><a·href="#impl-DoubleEndedIterator-for-Iter%3C'a,+T%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·T&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIterator</a>·for·<a·class="struct"·href="struct.Iter.html"·title="struct·alloc::co[·...·truncated·by·diffoscope;·len:·2957,·SHA:·610df8b8a1bf8ad5b9ad89b4cc05a7109af74808d29101de6d64f6842755df61·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold"·class="fn">rfold</a>&lt;Acc,·F&gt;(self,·accum:·Acc,·f:·F)·-&gt;·Acc<div·class="where">where28 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-DoubleEndedIterator-for-Iter%3C'a,+T%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/vec_deque/iter.rs.html#162-205">Source</a></span><a·href="#impl-DoubleEndedIterator-for-Iter%3C'a,+T%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·T&gt;·<a·class="trait"·href="../../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIterator</a>·for·<a·class="struct"·href="struct.Iter.html"·title="struct·alloc::collections::vec_deque::It[·...·truncated·by·diffoscope;·len:·2645,·SHA:·de9239c4dc71a9c605996a8796cbe3fc587f9fd56c25c2cd63e110a867aee51f·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold"·class="fn">rfold</a>&lt;Acc,·F&gt;(self,·accum:·Acc,·f:·F)·-&gt;·Acc<div·class="where">where
29 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Acc,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·Acc,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·reduces·the·iterator’s·elements·to·a·single,29 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Acc,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·Acc,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·reduces·the·iterator’s·elements·to·a·single,
30 final·value,·starting·from·the·back.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_rfold"·class="method·trait-impl"><a·class="[·...·truncated·by·diffoscope;·len:·210,·SHA:·2c71b2aa812a2366b7f71cafcde86bbcc4132fa913a0fd6d19757989af94653e·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold"·class="fn">try_rfold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where30 final·value,·starting·from·the·back.·<a·href="../../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_rfold"·class="method·trait-impl"><a·class="src·rightside"·href="../[·...·truncated·by·diffoscope;·len:·162,·SHA:·174b39e6cd883ffe2d62d6ac97d62363d6094b81870cd8e5e77199b86171ce2c·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold"·class="fn">try_rfold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where
31 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,31 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
32 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>This·is·the·reverse·version·of·<a·href="https://doc.rust-lang.org/1.8[·...·truncated·by·diffoscope;·len:·3,·SHA:·fbd04e1aae9ce0b11a8946e2c9ac2619f7428a64d32d01eff61d809dcb70ee8e·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·title="method·core::iter::traits::iterator::Iterator::try_fold"><code>Iterator::try_fold()</code></a>:·it·takes32 ····R:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>This·is·the·reverse·version·of·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·title="method·core::iter::traits::iterator::Iterator::try_fold"><code>Iterator::try_fold()</code></a>:·it·takes
33 elements·starting·from·the·back·of·the·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.nth_back"·class="method·trait-impl"><span·c[·...·truncated·by·diffoscope;·len:·1940,·SHA:·b123714e5278a0aaac2ecc90ae8d7a74759827ac7f861b655e54d63638729657·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where33 elements·starting·from·the·back·of·the·iterator.·<a·href="../../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.nth_back"·class="method·trait-impl"><span·class="rightside"><span·c[·...·truncated·by·diffoscope;·len:·1676,·SHA:·5cf55dc57ad3bee68b71ed749ccac956a8f29ddd7927276e0e333c4163b11342·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
34 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,34 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
35 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·8220,·SHA:·d3eb5a203aaecbbf888a970150b8d36ba7efd6d5f7a5b2901b1b08fd2fcc92d3·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;Acc,·F&gt;(self,·accum:·Acc,·f:·F)·-&gt;·Acc<div·class="where">where35 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·7476,·SHA:·8580337f7077be1750ff256701851e9646ea7bfceab0354a1cdce6383b5f6b27·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;Acc,·F&gt;(self,·accum:·Acc,·f:·F)·-&gt;·Acc<div·class="where">where
36 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Acc,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·Acc,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,36 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Acc,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·Acc,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,
37 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><a·class="src·rightside"·hr[·...·truncated·by·diffoscope;·len:·192,·SHA:·fd9ec270ae8855439450e0b27705038ad1f8c90376d47311366757b30667cc6f·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where37 returning·the·final·result.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><a·class="src·rightside"·href="../../../src/alloc/c[·...·truncated·by·diffoscope;·len:·144,·SHA:·a53a1b76567bc433a9064ca7dd6d644d6c58a590ffb67b3ae64e4b737255ecff·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where
38 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,38 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
39 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns39 ····R:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns
40 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.last"·class="method·trait-impl"><a·class="src·rightside"·hr[·...·truncated·by·diffoscope;·len:·1260,·SHA:·684c2f0d755f49761dafd557ede5b37d76ed5bdb0d4955847c97ae54492c9a1f·...·]/core/primitive.usize.html">usize</a>&gt;(40 successfully,·producing·a·single,·final·value.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.last"·class="method·trait-impl"><a·class="src·rightside"·href="../../../src/alloc/c[·...·truncated·by·diffoscope;·len:·1068,·SHA:·61ac4b2798d4f0ce4a30094baf7891b7d119355670f768ae9904cb9181cc9697·...·]/core/primitive.usize.html">usize</a>&gt;(
41 ····&amp;mut·self,41 ····&amp;mut·self,
42 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·4f557a9b49151e0be8c52ffd68f1def4469c08164239dc8bef8df2040551c5ef·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where42 )·-&gt;·<a·class="enum"·href="../../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::It[·...·truncated·by·diffoscope;·len:·261,·SHA:·9b488006768a86d05b68f4e1888c750c736264a3a386f1310f1b7e8bfc7d2184·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where
43 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·962,·SHA:·116e4ec2ae3d9655c3d115eaf50f435f5323b4e48b84de734c79d2a09b3c02f2·...·]/core/primitive.usize.html">usize</a><div·class="where">where43 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_next[·...·truncated·by·diffoscope;·len:·842,·SHA:·d8f387888e3ee78f4397f4b1a12eae734e055247e3aa3251433ab8ac1019b31a·...·]/core/primitive.usize.html">usize</a><div·class="where">where
44 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·counting·the·number·of·iterations·and·returning·it.·<a·href="https://doc.[·...·truncated·by·diffoscope;·len:·2005,·SHA:·20ab9c5e204712269a42ae671782e34b0c75555b43898ea5fa50fb40f87f2817·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where44 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·counting·the·number·of·iterations·and·returning·it.·<a·href="../../../core/iter/traits/iterator/t[·...·truncated·by·diffoscope;·len:·1717,·SHA:·49be3eb3ceab4b3373167d6eb287d2a5cd4209574bb9d12f38e45643b658e6a5·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where
45 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by45 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by
46 the·given·amount·at·each·iteration.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><sp[·...·truncated·by·diffoscope;·len:·842,·SHA:·945c4509a8daf2f8fbccc5c6e5089e225955911e03a3e411f047f96d52d16862·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where46 the·given·amount·at·each·iteration.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="[·...·truncated·by·diffoscope;·len:·698,·SHA:·035d2f4d2e6b01ddf0b424aa6fc3f5919c82f85f857cb9cfa0f54f8357058b90·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
47 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,47 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
48 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·3b5ce32f9d564c3aa7cf2adc7130e674758d0c0f4f1275b4c3b46a74aa802cb3·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where48 ····U:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·[·...·truncated·by·diffoscope;·len:·1137,·SHA:·7916ae3a9b5afad376aafc6d698165147d82613fe975f64423f2367a02a69f6a·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
49 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,49 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
50 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·[·...·truncated·by·diffoscope;·len:·868,·SHA:·abdbf27ccc84063c7040d8fa3da9d0bda5ee310a470ef576e15554aee4bd5d21·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where50 ····U:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·of·pairs.·<a·href="../..[·...·truncated·by·diffoscope;·len:·724,·SHA:·ba31078b5c50fbfc51e53bed6f70aaa6e7e320cfda19949035c71d9363c0d919·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where
51 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,51 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
52 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent52 ····Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent
53 items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="sr[·...·truncated·by·diffoscope;·len:·427,·SHA:·6e82ad4aad49c2165d869fe30d20a968580a973cdb3a7f4c77f49e16dd59393e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where53 items·of·the·original·iterator.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="src·rightside"·href="../..[·...·truncated·by·diffoscope;·len:·331,·SHA:·451e844c9bf5d6d78b9579516e4b9fafb3e84136eaa1c95bead4539370743d7d·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where
54 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,54 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
55 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>55 ····G:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>
56 between·adjacent·items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightsi[·...·truncated·by·diffoscope;·len:·471,·SHA:·ed10488b7b2ccc3e4cc84a9a57a9695a74c1c964962e8d753cbace12f3318a66·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where56 between·adjacent·items·of·the·original·iterator.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·[·...·truncated·by·diffoscope;·len:·375,·SHA:·7bbb71535f348e442b9de05a74f9180c9acec0636566fa2a19ab1dc83779aace·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where
57 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,57 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
58 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each58 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each
59 element.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><spa[·...·truncated·by·diffoscope;·len:·306,·SHA:·61c87c39b177830189b0e4c036d97c40d8b9649d76432c90afb88de59498e8b2·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where59 element.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="S[·...·truncated·by·diffoscope;·len:·234,·SHA:·55463e0fb539911d03265cbd8abb7248189471ea74954185ed77f245746805c2·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where
60 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,60 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
61 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·a65da32c5f5ef8335cb607d3b4ab3f8a25877bc2c2e8b44ca9d575caecd5c8a5·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where61 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·772,·SHA:·de07f629315c257cc96a89e82de6752f002f259b678391b79d5fb48e279e56d2·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where
62 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,62 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
63 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·6d69c85c69fa789be551ea42d95c33c237d12a04ef157f9ddaaead1177f7771e·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element63 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·68,·SHA:·67cf1e2a20410007c7dd6c47c91b1d386626c1bfac5c1116c374da7bbee00d51·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element
64 should·be·yielded.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·489,·SHA:·9bdc636899f4e4e5a26a3a21c9603f72b3fb972865d2f459c38b7e2ac8fed7f1·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where64 should·be·yielded.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·tit[·...·truncated·by·diffoscope;·len:·393,·SHA:·328d72714f754fb793753313f01b087a9fbb30b77a2bcd5749456e1f6fd72710·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where
65 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,65 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
66 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·46dbf841c7aecd3f06bd4c944af21650faeac98c46c515dcfe643302618b1ecd·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where66 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·884,·SHA:·e8a37e28a6bfcb2d58b9ffd389d339c3dece95c14840f28c980a7d7aedcc9a05·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where
67 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as67 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as
68 the·next·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside[·...·truncated·by·diffoscope;·len:·468,·SHA:·52f7ff7f264284c3acc4429ca34d057ded9afa2e3d9d6e07571e252db9a48977·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where68 the·next·value.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside"><span·class="since"·ti[·...·truncated·by·diffoscope;·len:·372,·SHA:·9c08a613d034f21b42b8d196073d0f4d61c81458378e40e77995533a8b460837·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where
69 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·c0180fefce4346b0b4089e5c642521d7716108241c0ce6ec3e910c7a2c7364b4·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods69 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="../../../core/iter/adapters/peekable/struct.Peekable.html#method.peek"·ti[·...·truncated·by·diffoscope;·len:·103,·SHA:·e3683d31746f50069ed604def6201840bce75bbc7c584fac6c3644292077ae8a·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods
70 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See70 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See
71 their·documentation·for·more·information.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightsid[·...·truncated·by·diffoscope;·len:·498,·SHA:·e4a68861585faec6a5032b3b69d6dfb0f2799b5f387a527d9a1365571ed02069·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where71 their·documentation·for·more·information.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightside"><span·class="since"·t[·...·truncated·by·diffoscope;·len:·402,·SHA:·bdba673560d208f968337eb74446ead60d6223b0ca9ec6fbfaeb1a995a7e8001·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where
72 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,72 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
73 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·93281c1f6402743fd61110c11cf676f0f67eddceda801b4eb35e5fe9f85870fd·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where73 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·1042,·SHA:·27d4a79658fb1c97b659bd2520bcebbf5cfcb8a42420a7ecfcbff6f3330fa5e1·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where
74 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,74 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
75 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·f1cdbb1ec64f98fabbe1d89c88b03824310926cd7eaa160953ce2452fc3abb77·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where75 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·890,·SHA:·c43533da7f54bfb6611594b3436645d4d1f8e5339d2d05bf2345e87628499759·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where
76 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,76 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
77 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·f94a0b2c1396b13b89aca7830197ebf19e2c0e5ba536a9cc25b325a481799510·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where77 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·971,·SHA:·1b31b9d1d5061d4ee982a30400139f1d7319412bdea39925e0cc1e8e7cf3d65a·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where
78 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="https://doc.rust-lang[·...·truncated·by·diffoscope;·len:·783,·SHA:·c14217b89e3292a50a09192a8857485891fc769f861e1d1fc4322d04295c86ef·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where78 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="../../../core/iter/traits/iterator/trait.Iter[·...·truncated·by·diffoscope;·len:·639,·SHA:·79c7f7eddc655d329424f08baee8551b7f59cd4dc4b0d6984c5e4f241bcb949b·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where
79 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer79 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer
80 if·the·underlying·iterator·ends·sooner.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·c[·...·truncated·by·diffoscope;·len:·488,·SHA:·76f753d5a273a09a73127631acaa0ee947326a929f33be291018188793e1af56·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where80 if·the·underlying·iterator·ends·sooner.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stab[·...·truncated·by·diffoscope;·len:·392,·SHA:·50ac976eb8bf89726a483af064d5a70c100dedd17d46dc40ac3a82aba51b2082·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where
81 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,81 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
82 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·07d303586c8ad4e0082d5b44bff8eeda03cdb8f4bdbe46489f9232bca5a43ec6·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but82 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/tra[·...·truncated·by·diffoscope;·len:·329,·SHA:·14fc5ef1359fcb2171e21ba65c5f5d8ce11053860ba1d5aa32ddce90a48c2a8c·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but
83 unlike·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·2b20882d9583cee50e0c8b3cf362b27ce0d524db387d4aa4093d622b9370dada·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where83 unlike·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.scan">Rea[·...·truncated·by·diffoscope;·len:·570,·SHA:·3cdbe78e481f63f4d21b2fa94202dad167221af9d6e6f981ccd7a6e524f6157d·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where
84 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,84 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
85 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,85 ····U:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
86 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·933,·SHA:·4af94b75ba5c1e03d2d70590d2fd0706f13b3080fbff0f5b98e7b109048c403d·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where86 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·789,·SHA:·0e36f9aa81931958e65acc9e1b5bf6ad7367dcb7163dcf0af2a043314857a909·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where
87 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,87 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
88 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.I[·...·truncated·by·diffoscope;·len:·968,·SHA:·e5572ed2f3bdf5970d038da608f2f592d945541207c483c257fe5789efba168a·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where88 ····Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::trait[·...·truncated·by·diffoscope;·len:·800,·SHA:·3ea01df21dfaf9ee656fdee6aa789a6ce5be05d17c043433c5ab28da8f6d3241·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where
89 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,89 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
90 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·3013c0e49b0dade37f8ca096eccc5ceeb03fc79b9d320a4c92486d23b88d1009·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over90 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator[·...·truncated·by·diffoscope;·len:·63,·SHA:·8395b60c01b0cde6c3340bd4e6c57cddd02465a19dcf15a8aa5498bd6c8ddc11·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over
91 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,91 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="../../../core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,
92 the·windows·during·mapping·overlap·as·well.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside">[·...·truncated·by·diffoscope;·len:·454,·SHA:·040991f3914479bcc92615de2b81df7363656323622e5aadc964e1a61917d23e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where92 the·windows·during·mapping·overlap·as·well.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside"><span·class="since"·titl[·...·truncated·by·diffoscope;·len:·358,·SHA:·21db4436f04b3d09e41f294c30cd7dea235a4beb9af727cb1f1f065008ad732e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where
93 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="https://doc.rust-lang.org/1.84.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·0e0294a45242d5ce9a3ab8f95d6d410756415291d92baa7d12283ef1b3ecc3a0·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where93 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="../../../core/option/enum.Option.html#variant.None"·title="varia[·...·truncated·by·diffoscope;·len:·697,·SHA:·55b16240a265fa2f73963114b9def4c5703a60d1c3ce047915fff28502588e5b·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where
94 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,94 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
95 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·a8b562f71802a421f4745f7d1fadf4f70d98030c829e70f27b692e7915267027·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where95 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·650,·SHA:·eb862563a2da6881a0f9a31dac8f99f2b47b2c8d3033a0e1bc9ec49ae5500941·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where
96 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="https://doc.rust-lang.org/1.84.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·b3db7d84f203bbc139b1c52912705d19c664dac762898205fce452c9dc3a5318·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where96 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.by[·...·truncated·by·diffoscope;·len:·427,·SHA:·d439202f1a598c30b789e20f3d05a82f531349aa12f3af08cc5c230996ec01a9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where
97 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,97 ····B:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
98 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·431,·SHA:·a705a23f6d810357e7dcac670743884665ffcccfb9b780d0aa03720be8ca5625·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(98 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.collect[·...·truncated·by·diffoscope;·len:·335,·SHA:·d72a986b5d306b2e1ed99e18a16e26fa1b5380448fea76ac3db703052800b629·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(
99 ····&amp;mut·self,99 ····&amp;mut·self,
100 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.h[·...·truncated·by·diffoscope;·len:·479,·SHA:·fa749442d890055f86ceb34f411c84fd7ea08302b336d786d1ca36fe5868b020·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where100 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try[·...·truncated·by·diffoscope;·len:·359,·SHA:·886ccc2fbd37f1e7df4075b80b0bebd3d1a6e997fae2114ca1818fa30fa95d5a·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
101 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,101 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
102 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>, 
103 ····&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang[·...·truncated·by·diffoscope;·len:·449,·SHA:·9ddccfb7bdd27ea692d65fa83daf56e31762d1bec3a502234174b8fa4fb33a98·...·],102 ····Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="[·...·truncated·by·diffoscope;·len:·40,·SHA:·39f6b8b47216936a6251a972a3e72c0459df25c157b8b3990eefb48397aa8303·...·],
 103 ····&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;B&gt;,
104 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/itera[·...·truncated·by·diffoscope;·len:·323,·SHA:·b5c51f161dc9d77fd81d1fd23cc71fbf42ac00f3168cf9e41ebaaa2b6eb25363·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if104 ····B:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·tit[·...·truncated·by·diffoscope;·len:·227,·SHA:·91a843f71f5d4d4bdd2a6f526e4b1ace78ad1c1c0027ff429527a1e3cc1cbb42·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if
105 a·failure·is·encountered.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·ri[·...·truncated·by·diffoscope;·len:·521,·SHA:·6a54376815dab985ec8cc35604d035e98e3003b1563c9b41e70966084505542b·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where105 a·failure·is·encountered.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../../[·...·truncated·by·diffoscope;·len:·401,·SHA:·ed1d0660f20625c1d5231d569dd3e4f1d10332250dcd1a3f5d2e886618e67f5b·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
106 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,106 ····E:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
107 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·975,·SHA:·94f7f970236ba59ba5f1415764a0e3ab2f3093c6b79e76c25c797ac24a3c4d09·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where107 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_coll[·...·truncated·by·diffoscope;·len:·855,·SHA:·7b38a8c237aadc46d5211ff8698af580678e0cbcab757a66d6416b422880dd91·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
108 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,108 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
109 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·b480ec650ba000fe7cb67df58fc0351299638ee3e8f00db18f74ca24d69f9894·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,109 ····B:·<a·class="trait"·href="../../../core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="../../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associa[·...·truncated·by·diffoscope;·len:·23,·SHA:·4417dee5d41246c4acf5419e1bdac3c7d847bd34e3e87738a08734259a3b63da·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
110 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·fdf5a1845f070855ba2cfd0c8c85460ea5cb646c4d3b42a8431bf21489c73701·...·]/core/primitive.usize.html">usize</a><div·class="where">where110 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·827,·SHA:·0237b034801a953ed40ad7c10f9a80d682bdf0a649c6fde9f53efc254cd75fc0·...·]/core/primitive.usize.html">usize</a><div·class="where">where
111 ····T:·'a,111 ····T:·'a,
112 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·1fc250e258e9e42e4fa3e22f86ecd57057e9ff23e47af1aec778076a7a891134·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,112 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="../../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEnd[·...·truncated·by·diffoscope;·len:·60,·SHA:·036db50df43442a72ce04aef94ccf2727352aad0708d71fe0e34c23613b84765·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,
113 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·5846407374f20f525a4a0663ad4488141eafe64513ef82581dc5df5c2d200745·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_partition_in_place</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62543">#62543</a>)</span></div></span><div·class='docblock'>Reorders·the·elements·of·this·iterator·<em>in-place</em>·according·to·the·given·predicate,113 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="../../../core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_partition_in_place</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62543">#62543</a>)</span></div></span><div·class='docblock'>Reorders·the·elements·of·this·iterator·<em>in-place</em>·according·to·the·given·predicate,
114 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.114 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.
115 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.partition_in_place">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_partitioned"·class="method·trait-impl"><a·clas[·...·truncated·by·diffoscope;·len:·431,·SHA:·4aa7d028146c72d45794efc19a376d4bee3b75eda61ff46d969e440b3dbfa1b0·...·]/core/primitive.bool.html">bool</a><div·class="where">where115 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.partition_in_place">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_partitioned"·class="method·trait-impl"><a·class="src·rightside"·href="[·...·truncated·by·diffoscope;·len:·335,·SHA:·252e1c16199fc3c38bc7de8cbda8c9532ab6d581d449c680cd7daf8d61a74aeb·...·]/core/primitive.bool.html">bool</a><div·class="where">where
116 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,116 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
117 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·fcd03e71f79faad6d9b9a12045d59f4dfabc78e5aefebcabc9c1a5be45e31125·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,117 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·63,·SHA:·852041c2de8156fdddf9f71111c5ddf1a6b88aabd8c082f1a254f0b21c18ffa1·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,
118 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="[·...·truncated·by·diffoscope;·len:·327,·SHA:·6a5e1fb3d277395b79208a4b9226a3f67079855ea8ea2a966f794f23ed6151ba·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where118 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rightside"><span·class="[·...·truncated·by·diffoscope;·len:·255,·SHA:·71abafaa75b75be2ab5b9eb43b3043f2c6d1e77bd8bce5dacb8b85a64c63db0f·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where
119 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,119 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
120 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,120 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
121 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the121 ····R:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="../../../core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the
122 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightsid[·...·truncated·by·diffoscope;·len:·627,·SHA:·6a5bb11fcfdaae1b3149efa5eb584c4da7964c86ed0f5313c3ee12e94ad8d787·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where122 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span·class="since"·t[·...·truncated·by·diffoscope;·len:·507,·SHA:·2baaf60dde801d16bab4f0663cf4aeaf2e1e0d48ab5809513d2361b958b8f3b8·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
123 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,123 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
124 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·084691f7fc4e7f4da7db385127d0ce8d2d52f6740757129a65910c4db0dc180d·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing124 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·256,·SHA:·2fe8ae39f77649fea294c45979f427748b2a9938dfa70e4595ac661d972125b1·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing
125 operation.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·217,·SHA:·447ae00256be3de069c602a6c04889808c883eae6fa349d023f53bdd5570ecae·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(125 operation.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside"·href="../../../src/cor[·...·truncated·by·diffoscope;·len:·145,·SHA:·be4dc63adf8a4e832fd3dbaaabbf45f287388ea2bb17088d40589203a2ec6dfb·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(
126 ····&amp;mut·self,126 ····&amp;mut·self,
127 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·70b2b85cad045ac7addf647e0bd3cd5b2c9ebca5986613ad2b6a9c00e3a1132f·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,127 ····f:·impl·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·68,·SHA:·e7e11f257edcac749a5883ad9a3aa42e6e965be419f967b36caa7afd3b36d7c9·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
128 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·1823533b932e38e3200465d101f10a34421c005018974296350162e4049615ea·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where128 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</[·...·truncated·by·diffoscope;·len:·586,·SHA:·596f94ec7a4c06359aee56ccb8a7138a1ddb94415fafcecac1fc87434b1329a3·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
129 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,129 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
130 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,130 ····R:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
Max diff block lines reached; 160667/350376 bytes (45.86%) of diff not shown.
336 KB
./usr/share/doc/rust-doc/html/alloc/collections/vec_deque/struct.IterMut.html
    
Offset 1, 11 lines modifiedOffset 1, 11 lines modified
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="A·mutable·iterator·over·the·elements·of·a·`VecDeque`."><title>IterMut·in·alloc::collections::vec_deque·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»     2025-01-07)»  (built»    from»a»       source» tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">IterMut</a></h2><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.as_mut_slices"·title="as_mut_slices">as_mut_slices</a></li><li><a·href="#method.as_slices"·title="as_slices">as_slices</a></li><li><a·href="#method.into_slices"·title="into_slices">into_slices</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Debug-for-IterMut%3C'_,+T%3E"·title="Debug">Debug</a></li><li><a·href="#impl-Default-for-IterMut%3C'_,+T%3E"·title="Default">Default</a></li><li><a·href="#impl-DoubleEndedIterator-for-IterMut%3C'a,+T%3E"·title="DoubleEndedIterator">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-IterMut%3C'_,+T%3E"·title="ExactSizeIterator">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-IterMut%3C'_,+T%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-IterMut%3C'a,+T%3E"·title="Iterator">Iterator</a></li><li><a·href="#impl-TrustedLen-for-IterMut%3C'_,+T%3E"·title="TrustedLen">TrustedLen</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-UnwindSafe-for-IterMut%3C'a,+T%3E"·title="!UnwindSafe">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-IterMut%3C'a,+T%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-IterMut%3C'a,+T%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-IterMut%3C'a,+T%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-IterMut%3C'a,+T%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-IterMut%3C'a,+T%3E"·title="Unpin">Unpin</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>collections::<wbr>vec_<wbr>deque</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">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">vec_deque</a></span><h1>Struct·<span·class="struct">IterMut</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../../src/alloc/collections/vec_deque/iter_mut.rs.html#13-16">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·IterMut&lt;'a,·T:·'a&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>A·mutable·iterator·over·the·elements·of·a·<code>VecDeque</code>.</p>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="A·mutable·iterator·over·the·elements·of·a·`VecDeque`."><title>IterMut·in·alloc::collections::vec_deque·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»     2025-01-07)»  (built»    from»a»       source» tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">IterMut</a></h2><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.as_mut_slices"·title="as_mut_slices">as_mut_slices</a></li><li><a·href="#method.as_slices"·title="as_slices">as_slices</a></li><li><a·href="#method.into_slices"·title="into_slices">into_slices</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Debug-for-IterMut%3C'_,+T%3E"·title="Debug">Debug</a></li><li><a·href="#impl-Default-for-IterMut%3C'_,+T%3E"·title="Default">Default</a></li><li><a·href="#impl-DoubleEndedIterator-for-IterMut%3C'a,+T%3E"·title="DoubleEndedIterator">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-IterMut%3C'_,+T%3E"·title="ExactSizeIterator">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-IterMut%3C'_,+T%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-IterMut%3C'a,+T%3E"·title="Iterator">Iterator</a></li><li><a·href="#impl-TrustedLen-for-IterMut%3C'_,+T%3E"·title="TrustedLen">TrustedLen</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-UnwindSafe-for-IterMut%3C'a,+T%3E"·title="!UnwindSafe">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-IterMut%3C'a,+T%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-IterMut%3C'a,+T%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-IterMut%3C'a,+T%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-IterMut%3C'a,+T%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-IterMut%3C'a,+T%3E"·title="Unpin">Unpin</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>collections::<wbr>vec_<wbr>deque</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">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">vec_deque</a></span><h1>Struct·<span·class="struct">IterMut</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../../src/alloc/collections/vec_deque/iter_mut.rs.html#13-16">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·IterMut&lt;'a,·T:·'a&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>A·mutable·iterator·over·the·elements·of·a·<code>VecDeque</code>.</p>
2 <p>This·<code>struct</code>·is·created·by·the·<a·href="struct.VecDeque.html#method.iter_mut"·title="method·alloc::collections::vec_deque::VecDeque::iter_mut"><code>iter_mut</code></a>·method·on·<a·href="struct.VecDeque.html"·title="struct·alloc::collections::vec_deque::VecDeque"><code>super::VecDeque</code></a>.·See·its2 <p>This·<code>struct</code>·is·created·by·the·<a·href="struct.VecDeque.html#method.iter_mut"·title="method·alloc::collections::vec_deque::VecDeque::iter_mut"><code>iter_mut</code></a>·method·on·<a·href="struct.VecDeque.html"·title="struct·alloc::collections::vec_deque::VecDeque"><code>super::VecDeque</code></a>.·See·its
3 documentation·for·more.</p>3 documentation·for·more.</p>
4 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-IterMut%3C'a,+T%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/vec_deque/iter_mut.rs.html#18-129">Source</a><a·href="#impl-IterMut%3C'a,+T%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·T&gt;·<a·class="struct"·href="struct.IterMut.html"·title="struct·alloc::collections::vec_deque::IterMut">IterMut</a>&lt;'a,·T&gt;</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into_slices"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/vec_deque/iter_mut.rs.html#56-58">Source</a><h4·class="code-header">pub·fn·<a·href="#method.into_slices"·class="fn">into_slices</a>(self)·-&gt;·(&amp;'a·mut·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html">[T]</a>,·&amp;'a·mut·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html">[T]</a>)</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>vec_deque_iter_as_slices</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/123947">#123947</a>)</span></div></span></summary><div·class="docblock"><p>Views·the·underlying·data·as·a·pair·of·subslices·of·the·original·data.</p>4 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-IterMut%3C'a,+T%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/vec_deque/iter_mut.rs.html#18-129">Source</a><a·href="#impl-IterMut%3C'a,+T%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·T&gt;·<a·class="struct"·href="struct.IterMut.html"·title="struct·alloc::collections::vec_deque::IterMut">IterMut</a>&lt;'a,·T&gt;</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into_slices"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/vec_deque/iter_mut.rs.html#56-58">Source</a><h4·class="code-header">pub·fn·<a·href="#method.into_slices"·class="fn">into_slices</a>(self)·-&gt;·(&amp;'a·mut·<a·class="primitive"·href="../../../core/primitive.slice.html">[T]</a>,·&amp;'a·mut·<a·class="primitive"·href="../../../core/primitive.slice.html">[T]</a>)</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>vec_deque_iter_as_slices</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/123947">#123947</a>)</span></div></span></summary><div·class="docblock"><p>Views·the·underlying·data·as·a·pair·of·subslices·of·the·original·data.</p>
5 <p>The·slices·contain,·in·order,·the·contents·of·the·deque·not·yet·yielded5 <p>The·slices·contain,·in·order,·the·contents·of·the·deque·not·yet·yielded
6 by·the·iterator.</p>6 by·the·iterator.</p>
7 <p>To·avoid·creating·<code>&amp;mut</code>·references·that·alias,·this·is·forced·to7 <p>To·avoid·creating·<code>&amp;mut</code>·references·that·alias,·this·is·forced·to
8 consume·the·iterator.</p>8 consume·the·iterator.</p>
9 <h5·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h5>9 <h5·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h5>
10 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(vec_deque_iter_as_slices)]10 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(vec_deque_iter_as_slices)]
  
Offset 23, 15 lines modifiedOffset 23, 15 lines modified
23 iter.next();23 iter.next();
24 iter.next_back();24 iter.next_back();
  
25 <span·class="kw">let·</span>slices·=·iter.into_slices();25 <span·class="kw">let·</span>slices·=·iter.into_slices();
26 slices.<span·class="number">0</span>[<span·class="number">0</span>]·=·<span·class="number">42</span>;26 slices.<span·class="number">0</span>[<span·class="number">0</span>]·=·<span·class="number">42</span>;
27 slices.<span·class="number">1</span>[<span·class="number">0</span>]·=·<span·class="number">24</span>;27 slices.<span·class="number">1</span>[<span·class="number">0</span>]·=·<span·class="number">24</span>;
28 <span·class="macro">assert_eq!</span>(deque.as_slices(),·(<span·class="kw-2">&amp;</span>[<span·class="number">8</span>,·<span·class="number">42</span>,·<span·class="number">10</span>][..],·<span·class="kw-2">&amp;</span>[<span·class="number">24</span>,·<span·class="number">1</span>,·<span·class="number">2</span>][..]));</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Bfeature(vec_deque_iter_as_slices)%5D%0A%0Afn+main()+%7B%0A++++use+std::collections::VecDeque;%0A++++%0A++++let+mut+deque+=+VecDeque::new();%0A++++deque.push_back(0);%0A++++deque.push_back(1);%0A++++deque.push_back(2);%0A++++deque.push_front(10);%0A++++deque.push_front(9);%0A++++deque.push_front(8);%0A++++%0A++++let+mut+iter+=+deque.iter_mut();%0A++++iter.next();%0A++++iter.next_back();%0A++++%0A++++let+slices+=+iter.into_slices();%0A++++slices.0%5B0%5D+=+42;%0A++++slices.1%5B0%5D+=+24;%0A++++assert_eq!(deque.as_slices(),+(%26%5B8,+42,+10%5D%5B..%5D,+%26%5B24,+1,+2%5D%5B..%5D));%0A%7D&amp;version=nightly&amp;edition=2021"></a></div>28 <span·class="macro">assert_eq!</span>(deque.as_slices(),·(<span·class="kw-2">&amp;</span>[<span·class="number">8</span>,·<span·class="number">42</span>,·<span·class="number">10</span>][..],·<span·class="kw-2">&amp;</span>[<span·class="number">24</span>,·<span·class="number">1</span>,·<span·class="number">2</span>][..]));</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Bfeature(vec_deque_iter_as_slices)%5D%0A%0Afn+main()+%7B%0A++++use+std::collections::VecDeque;%0A++++%0A++++let+mut+deque+=+VecDeque::new();%0A++++deque.push_back(0);%0A++++deque.push_back(1);%0A++++deque.push_back(2);%0A++++deque.push_front(10);%0A++++deque.push_front(9);%0A++++deque.push_front(8);%0A++++%0A++++let+mut+iter+=+deque.iter_mut();%0A++++iter.next();%0A++++iter.next_back();%0A++++%0A++++let+slices+=+iter.into_slices();%0A++++slices.0%5B0%5D+=+42;%0A++++slices.1%5B0%5D+=+24;%0A++++assert_eq!(deque.as_slices(),+(%26%5B8,+42,+10%5D%5B..%5D,+%26%5B24,+1,+2%5D%5B..%5D));%0A%7D&amp;version=nightly&amp;edition=2021"></a></div>
29 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.as_slices"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/vec_deque/iter_mut.rs.html#90-92">Source</a><h4·class="code-header">pub·fn·<a·href="#method.as_slices"·class="fn">as_slices</a>(&amp;self)·-&gt;·(&amp;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html">[T]</a>,·&amp;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html">[T]</a>)</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>vec_deque_iter_as_slices</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/123947">#123947</a>)</span></div></span></summary><div·class="docblock"><p>Views·the·underlying·data·as·a·pair·of·subslices·of·the·original·data.</p>29 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.as_slices"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/vec_deque/iter_mut.rs.html#90-92">Source</a><h4·class="code-header">pub·fn·<a·href="#method.as_slices"·class="fn">as_slices</a>(&amp;self)·-&gt;·(&amp;<a·class="primitive"·href="../../../core/primitive.slice.html">[T]</a>,·&amp;<a·class="primitive"·href="../../../core/primitive.slice.html">[T]</a>)</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>vec_deque_iter_as_slices</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/123947">#123947</a>)</span></div></span></summary><div·class="docblock"><p>Views·the·underlying·data·as·a·pair·of·subslices·of·the·original·data.</p>
30 <p>The·slices·contain,·in·order,·the·contents·of·the·deque·not·yet·yielded30 <p>The·slices·contain,·in·order,·the·contents·of·the·deque·not·yet·yielded
31 by·the·iterator.</p>31 by·the·iterator.</p>
32 <p>To·avoid·creating·<code>&amp;mut·[T]</code>·references·that·alias,·the·returned·slices32 <p>To·avoid·creating·<code>&amp;mut·[T]</code>·references·that·alias,·the·returned·slices
33 borrow·their·lifetimes·from·the·iterator·the·method·is·applied·on.</p>33 borrow·their·lifetimes·from·the·iterator·the·method·is·applied·on.</p>
34 <h5·id="examples-1"><a·class="doc-anchor"·href="#examples-1">§</a>Examples</h5>34 <h5·id="examples-1"><a·class="doc-anchor"·href="#examples-1">§</a>Examples</h5>
35 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(vec_deque_iter_as_slices)]35 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(vec_deque_iter_as_slices)]
  
Offset 46, 15 lines modifiedOffset 46, 15 lines modified
46 deque.push_front(<span·class="number">8</span>);46 deque.push_front(<span·class="number">8</span>);
  
47 <span·class="kw">let·</span><span·class="kw-2">mut·</span>iter·=·deque.iter_mut();47 <span·class="kw">let·</span><span·class="kw-2">mut·</span>iter·=·deque.iter_mut();
48 iter.next();48 iter.next();
49 iter.next_back();49 iter.next_back();
  
50 <span·class="macro">assert_eq!</span>(iter.as_slices(),·(<span·class="kw-2">&amp;</span>[<span·class="number">9</span>,·<span·class="number">10</span>][..],·<span·class="kw-2">&amp;</span>[<span·class="number">0</span>,·<span·class="number">1</span>][..]));</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Bfeature(vec_deque_iter_as_slices)%5D%0A%0Afn+main()+%7B%0A++++use+std::collections::VecDeque;%0A++++%0A++++let+mut+deque+=+VecDeque::new();%0A++++deque.push_back(0);%0A++++deque.push_back(1);%0A++++deque.push_back(2);%0A++++deque.push_front(10);%0A++++deque.push_front(9);%0A++++deque.push_front(8);%0A++++%0A++++let+mut+iter+=+deque.iter_mut();%0A++++iter.next();%0A++++iter.next_back();%0A++++%0A++++assert_eq!(iter.as_slices(),+(%26%5B9,+10%5D%5B..%5D,+%26%5B0,+1%5D%5B..%5D));%0A%7D&amp;version=nightly&amp;edition=2021"></a></div>50 <span·class="macro">assert_eq!</span>(iter.as_slices(),·(<span·class="kw-2">&amp;</span>[<span·class="number">9</span>,·<span·class="number">10</span>][..],·<span·class="kw-2">&amp;</span>[<span·class="number">0</span>,·<span·class="number">1</span>][..]));</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Bfeature(vec_deque_iter_as_slices)%5D%0A%0Afn+main()+%7B%0A++++use+std::collections::VecDeque;%0A++++%0A++++let+mut+deque+=+VecDeque::new();%0A++++deque.push_back(0);%0A++++deque.push_back(1);%0A++++deque.push_back(2);%0A++++deque.push_front(10);%0A++++deque.push_front(9);%0A++++deque.push_front(8);%0A++++%0A++++let+mut+iter+=+deque.iter_mut();%0A++++iter.next();%0A++++iter.next_back();%0A++++%0A++++assert_eq!(iter.as_slices(),+(%26%5B9,+10%5D%5B..%5D,+%26%5B0,+1%5D%5B..%5D));%0A%7D&amp;version=nightly&amp;edition=2021"></a></div>
51 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.as_mut_slices"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/vec_deque/iter_mut.rs.html#126-128">Source</a><h4·class="code-header">pub·fn·<a·href="#method.as_mut_slices"·class="fn">as_mut_slices</a>(&amp;mut·self)·-&gt;·(&amp;mut·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html">[T]</a>,·&amp;mut·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html">[T]</a>)</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>vec_deque_iter_as_slices</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/123947">#123947</a>)</span></div></span></summary><div·class="docblock"><p>Views·the·underlying·data·as·a·pair·of·subslices·of·the·original·data.</p>51 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.as_mut_slices"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/vec_deque/iter_mut.rs.html#126-128">Source</a><h4·class="code-header">pub·fn·<a·href="#method.as_mut_slices"·class="fn">as_mut_slices</a>(&amp;mut·self)·-&gt;·(&amp;mut·<a·class="primitive"·href="../../../core/primitive.slice.html">[T]</a>,·&amp;mut·<a·class="primitive"·href="../../../core/primitive.slice.html">[T]</a>)</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>vec_deque_iter_as_slices</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/123947">#123947</a>)</span></div></span></summary><div·class="docblock"><p>Views·the·underlying·data·as·a·pair·of·subslices·of·the·original·data.</p>
52 <p>The·slices·contain,·in·order,·the·contents·of·the·deque·not·yet·yielded52 <p>The·slices·contain,·in·order,·the·contents·of·the·deque·not·yet·yielded
53 by·the·iterator.</p>53 by·the·iterator.</p>
54 <p>To·avoid·creating·<code>&amp;mut·[T]</code>·references·that·alias,·the·returned·slices54 <p>To·avoid·creating·<code>&amp;mut·[T]</code>·references·that·alias,·the·returned·slices
55 borrow·their·lifetimes·from·the·iterator·the·method·is·applied·on.</p>55 borrow·their·lifetimes·from·the·iterator·the·method·is·applied·on.</p>
56 <h5·id="examples-2"><a·class="doc-anchor"·href="#examples-2">§</a>Examples</h5>56 <h5·id="examples-2"><a·class="doc-anchor"·href="#examples-2">§</a>Examples</h5>
57 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(vec_deque_iter_as_slices)]57 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(vec_deque_iter_as_slices)]
  
Offset 71, 236 lines modifiedOffset 71, 236 lines modified
71 <span·class="kw">let·</span><span·class="kw-2">mut·</span>iter·=·deque.iter_mut();71 <span·class="kw">let·</span><span·class="kw-2">mut·</span>iter·=·deque.iter_mut();
72 iter.next();72 iter.next();
73 iter.next_back();73 iter.next_back();
  
74 iter.as_mut_slices().<span·class="number">0</span>[<span·class="number">0</span>]·=·<span·class="number">42</span>;74 iter.as_mut_slices().<span·class="number">0</span>[<span·class="number">0</span>]·=·<span·class="number">42</span>;
75 iter.as_mut_slices().<span·class="number">1</span>[<span·class="number">0</span>]·=·<span·class="number">24</span>;75 iter.as_mut_slices().<span·class="number">1</span>[<span·class="number">0</span>]·=·<span·class="number">24</span>;
76 <span·class="macro">assert_eq!</span>(deque.as_slices(),·(<span·class="kw-2">&amp;</span>[<span·class="number">8</span>,·<span·class="number">42</span>,·<span·class="number">10</span>][..],·<span·class="kw-2">&amp;</span>[<span·class="number">24</span>,·<span·class="number">1</span>,·<span·class="number">2</span>][..]));</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Bfeature(vec_deque_iter_as_slices)%5D%0A%0Afn+main()+%7B%0A++++use+std::collections::VecDeque;%0A++++%0A++++let+mut+deque+=+VecDeque::new();%0A++++deque.push_back(0);%0A++++deque.push_back(1);%0A++++deque.push_back(2);%0A++++deque.push_front(10);%0A++++deque.push_front(9);%0A++++deque.push_front(8);%0A++++%0A++++let+mut+iter+=+deque.iter_mut();%0A++++iter.next();%0A++++iter.next_back();%0A++++%0A++++iter.as_mut_slices().0%5B0%5D+=+42;%0A++++iter.as_mut_slices().1%5B0%5D+=+24;%0A++++assert_eq!(deque.as_slices(),+(%26%5B8,+42,+10%5D%5B..%5D,+%26%5B24,+1,+2%5D%5B..%5D));%0A%7D&amp;version=nightly&amp;edition=2021"></a></div>76 <span·class="macro">assert_eq!</span>(deque.as_slices(),·(<span·class="kw-2">&amp;</span>[<span·class="number">8</span>,·<span·class="number">42</span>,·<span·class="number">10</span>][..],·<span·class="kw-2">&amp;</span>[<span·class="number">24</span>,·<span·class="number">1</span>,·<span·class="number">2</span>][..]));</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Bfeature(vec_deque_iter_as_slices)%5D%0A%0Afn+main()+%7B%0A++++use+std::collections::VecDeque;%0A++++%0A++++let+mut+deque+=+VecDeque::new();%0A++++deque.push_back(0);%0A++++deque.push_back(1);%0A++++deque.push_back(2);%0A++++deque.push_front(10);%0A++++deque.push_front(9);%0A++++deque.push_front(8);%0A++++%0A++++let+mut+iter+=+deque.iter_mut();%0A++++iter.next();%0A++++iter.next_back();%0A++++%0A++++iter.as_mut_slices().0%5B0%5D+=+42;%0A++++iter.as_mut_slices().1%5B0%5D+=+24;%0A++++assert_eq!(deque.as_slices(),+(%26%5B8,+42,+10%5D%5B..%5D,+%26%5B24,+1,+2%5D%5B..%5D));%0A%7D&amp;version=nightly&amp;edition=2021"></a></div>
77 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-IterMut%3C'_,+T%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.17.0">1.17.0</span>···<a·class="src"·href="../../../src/alloc/collections/vec_deque/iter_mut.rs.html#132-136">Source</a></span><a·href="#impl-Debug-for-IterMut%3C'_,+T%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T:·<a·class="trait"·href="../../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>&gt;·<a·class="trait"·href="../../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.IterMut.html"·title="struct·alloc::collections::vec_deque::IterMut">IterMut</a>&lt;'_,·T&gt;</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../../../src/alloc/collections/vec_deque/iter_mut.rs.html#133-135">Source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="../../fmt/struct.Formatter.html"·title="struct·alloc::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="type"·href="../../fmt/type.Result.html"·title="type·alloc::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../../fmt/trait.Debug.html#tymethod.fmt">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Default-for-IterMut%3C'_,+T%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.82.0">1.82.0</span>···<a·class="src"·href="../../../src/alloc/collections/vec_deque/iter_mut.rs.html#139-150">Source</a></span><a·href="#impl-Default-for-IterMut%3C'_,+T%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·for·<a·class="struct"·href="struct.IterMut.html"·title="struct·alloc::collections::vec_deque::IterMut">IterMut</a>&lt;'_,·T&gt;</h3></section[·...·truncated·by·diffoscope;·len:·364,·SHA:·0ce87017dde526aef0677ea98796e3b6b2d3f48184a5d29672b3811cd292b9e4·...·]/core/default/trait.Default.html#tymethod.default"·class="fn">default</a>()·-&gt;·Self</h4></section></summary><div·class="docblock"><p>Creates·an·empty·<code>vec_deque::IterMut</code>.</p>77 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-IterMut%3C'_,+T%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.17.0">1.17.0</span>···<a·class="src"·href="../../../src/alloc/collections/vec_deque/iter_mut.rs.html#132-136">Source</a></span><a·href="#impl-Debug-for-IterMut%3C'_,+T%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T:·<a·class="trait"·href="../../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>&gt;·<a·class="trait"·href="../../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.IterMut.html"·title="struct·alloc::collections::vec_deque::IterMut">IterMut</a>&lt;'_,·T&gt;</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../../../src/alloc/collections/vec_deque/iter_mut.rs.html#133-135">Source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="../../fmt/struct.Formatter.html"·title="struct·alloc::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="type"·href="../../fmt/type.Result.html"·title="type·alloc::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../../fmt/trait.Debug.html#tymethod.fmt">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Default-for-IterMut%3C'_,+T%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.82.0">1.82.0</span>···<a·class="src"·href="../../../src/alloc/collections/vec_deque/iter_mut.rs.html#139-150">Source</a></span><a·href="#impl-Default-for-IterMut%3C'_,+T%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../../core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·for·<a·class="struct"·href="struct.IterMut.html"·title="struct·alloc::collections::vec_deque::IterMut">IterMut</a>&lt;'_,·T&gt;</h3></section></summary><div·class="i[·...·truncated·by·diffoscope;·len:·316,·SHA:·e2f68ff270a0f66da36bd8c693e1568c2c2c71277ccbc00a392e2f177e6e5759·...·]/core/default/trait.Default.html#tymethod.default"·class="fn">default</a>()·-&gt;·Self</h4></section></summary><div·class="docblock"><p>Creates·an·empty·<code>vec_deque::IterMut</code>.</p>
  
78 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span>iter:·vec_deque::IterMut&lt;<span·class="lifetime">'_</span>,·u8&gt;·=·Default::default();78 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span>iter:·vec_deque::IterMut&lt;<span·class="lifetime">'_</span>,·u8&gt;·=·Default::default();
79 <span·class="macro">assert_eq!</span>(iter.len(),·<span·class="number">0</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::vec_deque;%0A++++let+iter:+vec_deque::IterMut%3C'_,+u8%3E+=+Default::default();%0A++++assert_eq!(iter.len(),+0);%0A%7D&amp;edition=2021"></a></div>79 <span·class="macro">assert_eq!</span>(iter.len(),·<span·class="number">0</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::vec_deque;%0A++++let+iter:+vec_deque::IterMut%3C'_,+u8%3E+=+Default::default();%0A++++assert_eq!(iter.len(),+0);%0A%7D&amp;edition=2021"></a></div>
80 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-DoubleEndedIterator-for-IterMut%3C'a,+T%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/vec_deque/iter_mut.rs.html#226-269">Source</a></span><a·href="#impl-DoubleEndedIterator-for-IterMut%3C'a,+T%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·T&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIterator</a>·for·<a·class="struct"·href="struct.IterMut.html"·title="struct·alloc:[·...·truncated·by·diffoscope;·len:·2982,·SHA:·a8f540c61f5facb8205b4f7a74f20c5ac80460a6d48bda37333dc5242e64d2d8·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold"·class="fn">rfold</a>&lt;Acc,·F&gt;(self,·accum:·Acc,·f:·F)·-&gt;·Acc<div·class="where">where80 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-DoubleEndedIterator-for-IterMut%3C'a,+T%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/vec_deque/iter_mut.rs.html#226-269">Source</a></span><a·href="#impl-DoubleEndedIterator-for-IterMut%3C'a,+T%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·T&gt;·<a·class="trait"·href="../../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIterator</a>·for·<a·class="struct"·href="struct.IterMut.html"·title="struct·alloc::collections::vec_deque:[·...·truncated·by·diffoscope;·len:·2670,·SHA:·49cf5077bd57bae7fcb0e324b01ed894ae00338d072c492fee92444645e309a3·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold"·class="fn">rfold</a>&lt;Acc,·F&gt;(self,·accum:·Acc,·f:·F)·-&gt;·Acc<div·class="where">where
81 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Acc,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·Acc,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·reduces·the·iterator’s·elements·to·a·single,81 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Acc,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·Acc,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·reduces·the·iterator’s·elements·to·a·single,
82 final·value,·starting·from·the·back.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_rfold"·class="method·trait-impl"><a·class="[·...·truncated·by·diffoscope;·len:·214,·SHA:·03ff913d3670f6305c56d1211a7df5fba4e5c893a09475cd91df7c79dbc3668f·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold"·class="fn">try_rfold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where82 final·value,·starting·from·the·back.·<a·href="../../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_rfold"·class="method·trait-impl"><a·class="src·rightside"·href="../[·...·truncated·by·diffoscope;·len:·166,·SHA:·e901d72ec68cac5aa5aef34bc6ef33a81486ad0e00e3ed608cdfd5b9fb47aa61·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold"·class="fn">try_rfold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where
83 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,83 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
84 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>This·is·the·reverse·version·of·<a·href="https://doc.rust-lang.org/1.8[·...·truncated·by·diffoscope;·len:·3,·SHA:·fbd04e1aae9ce0b11a8946e2c9ac2619f7428a64d32d01eff61d809dcb70ee8e·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·title="method·core::iter::traits::iterator::Iterator::try_fold"><code>Iterator::try_fold()</code></a>:·it·takes84 ····R:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>This·is·the·reverse·version·of·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·title="method·core::iter::traits::iterator::Iterator::try_fold"><code>Iterator::try_fold()</code></a>:·it·takes
85 elements·starting·from·the·back·of·the·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.nth_back"·class="method·trait-impl"><span·c[·...·truncated·by·diffoscope;·len:·1940,·SHA:·b123714e5278a0aaac2ecc90ae8d7a74759827ac7f861b655e54d63638729657·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where85 elements·starting·from·the·back·of·the·iterator.·<a·href="../../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.nth_back"·class="method·trait-impl"><span·class="rightside"><span·c[·...·truncated·by·diffoscope;·len:·1676,·SHA:·5cf55dc57ad3bee68b71ed749ccac956a8f29ddd7927276e0e333c4163b11342·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
86 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,86 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
87 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·8297,·SHA:·8219297ee414115ddfa949c3f0d8b80a5fb1c7766e31c8a76bb7b90b95324cfe·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;Acc,·F&gt;(self,·accum:·Acc,·f:·F)·-&gt;·Acc<div·class="where">where87 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·7553,·SHA:·946cfdcb2b641ec8151e26548117624d9f0ed6ac8604bc5d406b14b4c3205225·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;Acc,·F&gt;(self,·accum:·Acc,·f:·F)·-&gt;·Acc<div·class="where">where
88 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Acc,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·Acc,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,88 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Acc,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·Acc,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,
89 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><a·class="src·rightside"·hr[·...·truncated·by·diffoscope;·len:·196,·SHA:·2c8f37c155b9537ff381a4c935c276f8156c5e59ee82da806aa4411f4eb7ae24·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where89 returning·the·final·result.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><a·class="src·rightside"·href="../../../src/alloc/c[·...·truncated·by·diffoscope;·len:·148,·SHA:·0f0ede2e5531166ac0619bb674b8777e854a4d6c83a6161934349addbb24e6f4·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where
90 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,90 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
91 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns91 ····R:·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns
92 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.last"·class="method·trait-impl"><a·class="src·rightside"·hr[·...·truncated·by·diffoscope;·len:·1268,·SHA:·df2828a95acb3f789b29f69ce28cf6198bbb91e55cae953608796f0b29fa1c1d·...·]/core/primitive.usize.html">usize</a>&gt;(92 successfully,·producing·a·single,·final·value.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.last"·class="method·trait-impl"><a·class="src·rightside"·href="../../../src/alloc/c[·...·truncated·by·diffoscope;·len:·1076,·SHA:·7f7c83ab685014cabc51099aec74e3e2aad40fd9f90321029c6f045f1015426c·...·]/core/primitive.usize.html">usize</a>&gt;(
93 ····&amp;mut·self,93 ····&amp;mut·self,
94 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·4f557a9b49151e0be8c52ffd68f1def4469c08164239dc8bef8df2040551c5ef·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where94 )·-&gt;·<a·class="enum"·href="../../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::It[·...·truncated·by·diffoscope;·len:·261,·SHA:·9b488006768a86d05b68f4e1888c750c736264a3a386f1310f1b7e8bfc7d2184·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where
95 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·962,·SHA:·116e4ec2ae3d9655c3d115eaf50f435f5323b4e48b84de734c79d2a09b3c02f2·...·]/core/primitive.usize.html">usize</a><div·class="where">where95 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_next[·...·truncated·by·diffoscope;·len:·842,·SHA:·d8f387888e3ee78f4397f4b1a12eae734e055247e3aa3251433ab8ac1019b31a·...·]/core/primitive.usize.html">usize</a><div·class="where">where
96 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·counting·the·number·of·iterations·and·returning·it.·<a·href="https://doc.[·...·truncated·by·diffoscope;·len:·2005,·SHA:·20ab9c5e204712269a42ae671782e34b0c75555b43898ea5fa50fb40f87f2817·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where96 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·counting·the·number·of·iterations·and·returning·it.·<a·href="../../../core/iter/traits/iterator/t[·...·truncated·by·diffoscope;·len:·1717,·SHA:·49be3eb3ceab4b3373167d6eb287d2a5cd4209574bb9d12f38e45643b658e6a5·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where
97 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by97 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by
98 the·given·amount·at·each·iteration.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><sp[·...·truncated·by·diffoscope;·len:·842,·SHA:·945c4509a8daf2f8fbccc5c6e5089e225955911e03a3e411f047f96d52d16862·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where98 the·given·amount·at·each·iteration.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="[·...·truncated·by·diffoscope;·len:·698,·SHA:·035d2f4d2e6b01ddf0b424aa6fc3f5919c82f85f857cb9cfa0f54f8357058b90·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
99 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,99 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
100 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·3b5ce32f9d564c3aa7cf2adc7130e674758d0c0f4f1275b4c3b46a74aa802cb3·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where100 ····U:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·[·...·truncated·by·diffoscope;·len:·1137,·SHA:·7916ae3a9b5afad376aafc6d698165147d82613fe975f64423f2367a02a69f6a·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
101 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,101 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
102 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·[·...·truncated·by·diffoscope;·len:·868,·SHA:·abdbf27ccc84063c7040d8fa3da9d0bda5ee310a470ef576e15554aee4bd5d21·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where102 ····U:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·of·pairs.·<a·href="../..[·...·truncated·by·diffoscope;·len:·724,·SHA:·ba31078b5c50fbfc51e53bed6f70aaa6e7e320cfda19949035c71d9363c0d919·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where
103 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,103 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
104 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent104 ····Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent
105 items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="sr[·...·truncated·by·diffoscope;·len:·427,·SHA:·6e82ad4aad49c2165d869fe30d20a968580a973cdb3a7f4c77f49e16dd59393e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where105 items·of·the·original·iterator.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="src·rightside"·href="../..[·...·truncated·by·diffoscope;·len:·331,·SHA:·451e844c9bf5d6d78b9579516e4b9fafb3e84136eaa1c95bead4539370743d7d·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where
106 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,106 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
107 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>107 ····G:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>
108 between·adjacent·items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightsi[·...·truncated·by·diffoscope;·len:·471,·SHA:·ed10488b7b2ccc3e4cc84a9a57a9695a74c1c964962e8d753cbace12f3318a66·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where108 between·adjacent·items·of·the·original·iterator.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·[·...·truncated·by·diffoscope;·len:·375,·SHA:·7bbb71535f348e442b9de05a74f9180c9acec0636566fa2a19ab1dc83779aace·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where
109 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,109 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
110 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each110 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each
111 element.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><spa[·...·truncated·by·diffoscope;·len:·306,·SHA:·61c87c39b177830189b0e4c036d97c40d8b9649d76432c90afb88de59498e8b2·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where111 element.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="S[·...·truncated·by·diffoscope;·len:·234,·SHA:·55463e0fb539911d03265cbd8abb7248189471ea74954185ed77f245746805c2·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where
112 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,112 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
113 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·a65da32c5f5ef8335cb607d3b4ab3f8a25877bc2c2e8b44ca9d575caecd5c8a5·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where113 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·772,·SHA:·de07f629315c257cc96a89e82de6752f002f259b678391b79d5fb48e279e56d2·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where
114 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,114 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
115 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·6d69c85c69fa789be551ea42d95c33c237d12a04ef157f9ddaaead1177f7771e·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element115 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·68,·SHA:·67cf1e2a20410007c7dd6c47c91b1d386626c1bfac5c1116c374da7bbee00d51·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element
116 should·be·yielded.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·489,·SHA:·9bdc636899f4e4e5a26a3a21c9603f72b3fb972865d2f459c38b7e2ac8fed7f1·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where116 should·be·yielded.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·tit[·...·truncated·by·diffoscope;·len:·393,·SHA:·328d72714f754fb793753313f01b087a9fbb30b77a2bcd5749456e1f6fd72710·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where
117 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,117 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
118 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·46dbf841c7aecd3f06bd4c944af21650faeac98c46c515dcfe643302618b1ecd·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where118 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·884,·SHA:·e8a37e28a6bfcb2d58b9ffd389d339c3dece95c14840f28c980a7d7aedcc9a05·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where
119 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as119 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as
120 the·next·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside[·...·truncated·by·diffoscope;·len:·468,·SHA:·52f7ff7f264284c3acc4429ca34d057ded9afa2e3d9d6e07571e252db9a48977·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where120 the·next·value.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside"><span·class="since"·ti[·...·truncated·by·diffoscope;·len:·372,·SHA:·9c08a613d034f21b42b8d196073d0f4d61c81458378e40e77995533a8b460837·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where
121 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·c0180fefce4346b0b4089e5c642521d7716108241c0ce6ec3e910c7a2c7364b4·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods121 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="../../../core/iter/adapters/peekable/struct.Peekable.html#method.peek"·ti[·...·truncated·by·diffoscope;·len:·103,·SHA:·e3683d31746f50069ed604def6201840bce75bbc7c584fac6c3644292077ae8a·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods
122 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See122 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See
123 their·documentation·for·more·information.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightsid[·...·truncated·by·diffoscope;·len:·498,·SHA:·e4a68861585faec6a5032b3b69d6dfb0f2799b5f387a527d9a1365571ed02069·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where123 their·documentation·for·more·information.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightside"><span·class="since"·t[·...·truncated·by·diffoscope;·len:·402,·SHA:·bdba673560d208f968337eb74446ead60d6223b0ca9ec6fbfaeb1a995a7e8001·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where
124 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,124 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
125 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·93281c1f6402743fd61110c11cf676f0f67eddceda801b4eb35e5fe9f85870fd·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where125 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·1042,·SHA:·27d4a79658fb1c97b659bd2520bcebbf5cfcb8a42420a7ecfcbff6f3330fa5e1·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where
126 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,126 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
127 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·f1cdbb1ec64f98fabbe1d89c88b03824310926cd7eaa160953ce2452fc3abb77·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where127 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·890,·SHA:·c43533da7f54bfb6611594b3436645d4d1f8e5339d2d05bf2345e87628499759·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where
128 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,128 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
129 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·f94a0b2c1396b13b89aca7830197ebf19e2c0e5ba536a9cc25b325a481799510·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where129 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·971,·SHA:·1b31b9d1d5061d4ee982a30400139f1d7319412bdea39925e0cc1e8e7cf3d65a·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where
130 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="https://doc.rust-lang[·...·truncated·by·diffoscope;·len:·783,·SHA:·c14217b89e3292a50a09192a8857485891fc769f861e1d1fc4322d04295c86ef·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where130 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="../../../core/iter/traits/iterator/trait.Iter[·...·truncated·by·diffoscope;·len:·639,·SHA:·79c7f7eddc655d329424f08baee8551b7f59cd4dc4b0d6984c5e4f241bcb949b·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where
131 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer131 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer
132 if·the·underlying·iterator·ends·sooner.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·c[·...·truncated·by·diffoscope;·len:·488,·SHA:·76f753d5a273a09a73127631acaa0ee947326a929f33be291018188793e1af56·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where132 if·the·underlying·iterator·ends·sooner.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stab[·...·truncated·by·diffoscope;·len:·392,·SHA:·50ac976eb8bf89726a483af064d5a70c100dedd17d46dc40ac3a82aba51b2082·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where
133 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,133 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
134 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·07d303586c8ad4e0082d5b44bff8eeda03cdb8f4bdbe46489f9232bca5a43ec6·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but134 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/tra[·...·truncated·by·diffoscope;·len:·329,·SHA:·14fc5ef1359fcb2171e21ba65c5f5d8ce11053860ba1d5aa32ddce90a48c2a8c·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but
135 unlike·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·2b20882d9583cee50e0c8b3cf362b27ce0d524db387d4aa4093d622b9370dada·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where135 unlike·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.scan">Rea[·...·truncated·by·diffoscope;·len:·570,·SHA:·3cdbe78e481f63f4d21b2fa94202dad167221af9d6e6f981ccd7a6e524f6157d·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where
136 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,136 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
137 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,137 ····U:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
138 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·933,·SHA:·4af94b75ba5c1e03d2d70590d2fd0706f13b3080fbff0f5b98e7b109048c403d·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where138 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·789,·SHA:·0e36f9aa81931958e65acc9e1b5bf6ad7367dcb7163dcf0af2a043314857a909·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where
139 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,139 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
140 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.I[·...·truncated·by·diffoscope;·len:·968,·SHA:·e5572ed2f3bdf5970d038da608f2f592d945541207c483c257fe5789efba168a·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where140 ····Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::trait[·...·truncated·by·diffoscope;·len:·800,·SHA:·3ea01df21dfaf9ee656fdee6aa789a6ce5be05d17c043433c5ab28da8f6d3241·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where
141 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,141 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
142 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·3013c0e49b0dade37f8ca096eccc5ceeb03fc79b9d320a4c92486d23b88d1009·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over142 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator[·...·truncated·by·diffoscope;·len:·63,·SHA:·8395b60c01b0cde6c3340bd4e6c57cddd02465a19dcf15a8aa5498bd6c8ddc11·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over
143 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,143 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="../../../core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,
144 the·windows·during·mapping·overlap·as·well.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside">[·...·truncated·by·diffoscope;·len:·454,·SHA:·040991f3914479bcc92615de2b81df7363656323622e5aadc964e1a61917d23e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where144 the·windows·during·mapping·overlap·as·well.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside"><span·class="since"·titl[·...·truncated·by·diffoscope;·len:·358,·SHA:·21db4436f04b3d09e41f294c30cd7dea235a4beb9af727cb1f1f065008ad732e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where
145 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="https://doc.rust-lang.org/1.84.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·0e0294a45242d5ce9a3ab8f95d6d410756415291d92baa7d12283ef1b3ecc3a0·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where145 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="../../../core/option/enum.Option.html#variant.None"·title="varia[·...·truncated·by·diffoscope;·len:·697,·SHA:·55b16240a265fa2f73963114b9def4c5703a60d1c3ce047915fff28502588e5b·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where
146 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,146 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
147 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·a8b562f71802a421f4745f7d1fadf4f70d98030c829e70f27b692e7915267027·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where147 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·650,·SHA:·eb862563a2da6881a0f9a31dac8f99f2b47b2c8d3033a0e1bc9ec49ae5500941·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where
148 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="https://doc.rust-lang.org/1.84.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·b3db7d84f203bbc139b1c52912705d19c664dac762898205fce452c9dc3a5318·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where148 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.by[·...·truncated·by·diffoscope;·len:·427,·SHA:·d439202f1a598c30b789e20f3d05a82f531349aa12f3af08cc5c230996ec01a9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where
149 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,149 ····B:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
150 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·431,·SHA:·a705a23f6d810357e7dcac670743884665ffcccfb9b780d0aa03720be8ca5625·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(150 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.collect[·...·truncated·by·diffoscope;·len:·335,·SHA:·d72a986b5d306b2e1ed99e18a16e26fa1b5380448fea76ac3db703052800b629·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(
151 ····&amp;mut·self,151 ····&amp;mut·self,
Max diff block lines reached; 184540/343736 bytes (53.69%) of diff not shown.
324 KB
./usr/share/doc/rust-doc/html/alloc/collections/vec_deque/struct.VecDeque.html
    
Offset 14, 114 lines modifiedOffset 14, 114 lines modified
14 so·that·its·elements·do·not·wrap,·and·returns·a·mutable·slice·to·the14 so·that·its·elements·do·not·wrap,·and·returns·a·mutable·slice·to·the
15 now-contiguous·element·sequence.</p>15 now-contiguous·element·sequence.</p>
16 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-VecDeque%3CT%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/vec_deque/mod.rs.html#544-603">Source</a><a·href="#impl-VecDeque%3CT%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="struct"·href="struct.VecDeque.html"·title="struct·alloc::collections::vec_deque::VecDeque">VecDeque</a>&lt;T&gt;</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.new"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0,·const·since·1.68.0">1.0.0·(const:·1.68.0)</span>···<a·class="src"·href="../../../src/alloc/collections/vec_deque/mod.rs.html#558-561">Source</a></span><h4·class="code-header">pub·const·fn·<a·href="#method.new"·class="fn">new</a>()·-&gt;·<a·class="struct"·href="struct.VecDeque.html"·title="struct·alloc::collections::vec_deque::VecDeque">VecDeque</a>&lt;T&gt;</h4></section></summary><div·class="docblock"><p>Creates·an·empty·deque.</p>16 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-VecDeque%3CT%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/vec_deque/mod.rs.html#544-603">Source</a><a·href="#impl-VecDeque%3CT%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="struct"·href="struct.VecDeque.html"·title="struct·alloc::collections::vec_deque::VecDeque">VecDeque</a>&lt;T&gt;</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.new"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0,·const·since·1.68.0">1.0.0·(const:·1.68.0)</span>···<a·class="src"·href="../../../src/alloc/collections/vec_deque/mod.rs.html#558-561">Source</a></span><h4·class="code-header">pub·const·fn·<a·href="#method.new"·class="fn">new</a>()·-&gt;·<a·class="struct"·href="struct.VecDeque.html"·title="struct·alloc::collections::vec_deque::VecDeque">VecDeque</a>&lt;T&gt;</h4></section></summary><div·class="docblock"><p>Creates·an·empty·deque.</p>
17 <h5·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h5>17 <h5·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h5>
18 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::VecDeque;18 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::VecDeque;
  
19 <span·class="kw">let·</span>deque:·VecDeque&lt;u32&gt;·=·VecDeque::new();</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::VecDeque;%0A++++%0A++++let+deque:+VecDeque%3Cu32%3E+=+VecDeque::new();%0A%7D&amp;edition=2021"></a></div>19 <span·class="kw">let·</span>deque:·VecDeque&lt;u32&gt;·=·VecDeque::new();</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::VecDeque;%0A++++%0A++++let+deque:+VecDeque%3Cu32%3E+=+VecDeque::new();%0A%7D&amp;edition=2021"></a></div>
20 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.with_capacity"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/vec_deque/mod.rs.html#576-578">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.with_capacity"·class="fn">with_capacity</a>(capacity:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.usize.html">usize</a>)·-&gt;·<a·class="struct"·href="struct.VecDeque.html"·title="struct·alloc::collections::vec_deque::VecDeque">VecDeque</a>&lt;T&gt;</h4></section></summary><div·class="docblock"><p>Creates·an·empty·deque·with·space·for·at·least·<code>capacity</code>·elements.</p>20 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.with_capacity"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/vec_deque/mod.rs.html#576-578">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.with_capacity"·class="fn">with_capacity</a>(capacity:·<a·class="primitive"·href="../../../core/primitive.usize.html">usize</a>)·-&gt;·<a·class="struct"·href="struct.VecDeque.html"·title="struct·alloc::collections::vec_deque::VecDeque">VecDeque</a>&lt;T&gt;</h4></section></summary><div·class="docblock"><p>Creates·an·empty·deque·with·space·for·at·least·<code>capacity</code>·elements.</p>
21 <h5·id="examples-1"><a·class="doc-anchor"·href="#examples-1">§</a>Examples</h5>21 <h5·id="examples-1"><a·class="doc-anchor"·href="#examples-1">§</a>Examples</h5>
22 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::VecDeque;22 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::VecDeque;
  
23 <span·class="kw">let·</span>deque:·VecDeque&lt;u32&gt;·=·VecDeque::with_capacity(<span·class="number">10</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::VecDeque;%0A++++%0A++++let+deque:+VecDeque%3Cu32%3E+=+VecDeque::with_capacity(10);%0A%7D&amp;edition=2021"></a></div>23 <span·class="kw">let·</span>deque:·VecDeque&lt;u32&gt;·=·VecDeque::with_capacity(<span·class="number">10</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::VecDeque;%0A++++%0A++++let+deque:+VecDeque%3Cu32%3E+=+VecDeque::with_capacity(10);%0A%7D&amp;edition=2021"></a></div>
24 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_with_capacity"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/vec_deque/mod.rs.html#600-602">Source</a><h4·class="code-header">pub·fn·<a·href="#method.try_with_capacity"·class="fn">try_with_capacity</a>(24 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_with_capacity"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/vec_deque/mod.rs.html#600-602">Source</a><h4·class="code-header">pub·fn·<a·href="#method.try_with_capacity"·class="fn">try_with_capacity</a>(
25 ····capacity:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.usize.html">usize</a>,25 ····capacity:·<a·class="primitive"·href="../../../core/primitive.usize.html">usize</a>,
26 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="struct"·href="struct.VecDeque.html"·title="struct·alloc::collections::vec_deque::VecDeque">VecDeque</a>&lt;T&gt;,·<a·class="struct"·href="../struct.TryReserveError.html"·title="struct·alloc::collections::TryReserveError">TryReserveError</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>try_with_capacity</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/91913">#91913</a>)</span></div></span></summary><div·class="docblock"><p>Creates·an·empty·deque·with·space·for·at·least·<code>capacity</code>·elements.</p>26 )·-&gt;·<a·class="enum"·href="../../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="struct"·href="struct.VecDeque.html"·title="struct·alloc::collections::vec_deque::VecDeque">VecDeque</a>&lt;T&gt;,·<a·class="struct"·href="../struct.TryReserveError.html"·title="struct·alloc::collections::TryReserveError">TryReserveError</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>try_with_capacity</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/91913">#91913</a>)</span></div></span></summary><div·class="docblock"><p>Creates·an·empty·deque·with·space·for·at·least·<code>capacity</code>·elements.</p>
27 <h5·id="errors"><a·class="doc-anchor"·href="#errors">§</a>Errors</h5>27 <h5·id="errors"><a·class="doc-anchor"·href="#errors">§</a>Errors</h5>
28 <p>Returns·an·error·if·the·capacity·exceeds·<code>isize::MAX</code>·<em>bytes</em>,28 <p>Returns·an·error·if·the·capacity·exceeds·<code>isize::MAX</code>·<em>bytes</em>,
29 or·if·the·allocator·reports·allocation·failure.</p>29 or·if·the·allocator·reports·allocation·failure.</p>
30 <h5·id="examples-2"><a·class="doc-anchor"·href="#examples-2">§</a>Examples</h5>30 <h5·id="examples-2"><a·class="doc-anchor"·href="#examples-2">§</a>Examples</h5>
31 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::VecDeque;31 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::VecDeque;
  
32 <span·class="kw">let·</span>deque:·VecDeque&lt;u32&gt;·=·VecDeque::try_with_capacity(<span·class="number">10</span>)<span·class="question-mark">?</span>;</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Bfeature(try_with_capacity)%5D%0Afn+main()+%7B%0A++++%23%5Ballow(unused)%5D%0A++++fn+example()+-%3E+Result%3C(),+std::collections::TryReserveError%3E+%7B%0A++++use+std::collections::VecDeque;%0A++++%0A++++let+deque:+VecDeque%3Cu32%3E+=+VecDeque::try_with_capacity(10)?;%0A++++Ok(())+%7D%0A%7D&amp;version=nightly&amp;edition=2021"></a></div>32 <span·class="kw">let·</span>deque:·VecDeque&lt;u32&gt;·=·VecDeque::try_with_capacity(<span·class="number">10</span>)<span·class="question-mark">?</span>;</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Bfeature(try_with_capacity)%5D%0Afn+main()+%7B%0A++++%23%5Ballow(unused)%5D%0A++++fn+example()+-%3E+Result%3C(),+std::collections::TryReserveError%3E+%7B%0A++++use+std::collections::VecDeque;%0A++++%0A++++let+deque:+VecDeque%3Cu32%3E+=+VecDeque::try_with_capacity(10)?;%0A++++Ok(())+%7D%0A%7D&amp;version=nightly&amp;edition=2021"></a></div>
33 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-VecDeque%3CT,+A%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/vec_deque/mod.rs.html#605-2744">Source</a><a·href="#impl-VecDeque%3CT,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>&gt;·<a·class="struct"·href="struct.VecDeque.html"·title="struct·alloc::collections::vec_deque::VecDeque">VecDeque</a>&lt;T,·A&gt;</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.new_in"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/vec_deque/mod.rs.html#617-619">Source</a><h4·class="code-header">pub·const·fn·<a·href="#method.new_in"·class="fn">new_in</a>(alloc:·A)·-&gt;·<a·class="struct"·href="struct.VecDeque.html"·title="struct·alloc::collections::vec_deque::VecDeque">VecDeque</a>&lt;T,·A&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>allocator_api</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/32838">#32838</a>)</span></div></span></summary><div·class="docblock"><p>Creates·an·empty·deque.</p>33 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-VecDeque%3CT,+A%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/vec_deque/mod.rs.html#605-2744">Source</a><a·href="#impl-VecDeque%3CT,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>&gt;·<a·class="struct"·href="struct.VecDeque.html"·title="struct·alloc::collections::vec_deque::VecDeque">VecDeque</a>&lt;T,·A&gt;</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.new_in"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/vec_deque/mod.rs.html#617-619">Source</a><h4·class="code-header">pub·const·fn·<a·href="#method.new_in"·class="fn">new_in</a>(alloc:·A)·-&gt;·<a·class="struct"·href="struct.VecDeque.html"·title="struct·alloc::collections::vec_deque::VecDeque">VecDeque</a>&lt;T,·A&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>allocator_api</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/32838">#32838</a>)</span></div></span></summary><div·class="docblock"><p>Creates·an·empty·deque.</p>
34 <h5·id="examples-3"><a·class="doc-anchor"·href="#examples-3">§</a>Examples</h5>34 <h5·id="examples-3"><a·class="doc-anchor"·href="#examples-3">§</a>Examples</h5>
35 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::VecDeque;35 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::VecDeque;
  
36 <span·class="kw">let·</span>deque:·VecDeque&lt;u32&gt;·=·VecDeque::new();</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::VecDeque;%0A++++%0A++++let+deque:+VecDeque%3Cu32%3E+=+VecDeque::new();%0A%7D&amp;edition=2021"></a></div>36 <span·class="kw">let·</span>deque:·VecDeque&lt;u32&gt;·=·VecDeque::new();</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::VecDeque;%0A++++%0A++++let+deque:+VecDeque%3Cu32%3E+=+VecDeque::new();%0A%7D&amp;edition=2021"></a></div>
37 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.with_capacity_in"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/vec_deque/mod.rs.html#632-634">Source</a><h4·class="code-header">pub·fn·<a·href="#method.with_capacity_in"·class="fn">with_capacity_in</a>(capacity:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.usize.html">usize</a>,·alloc:·A)·-&gt;·<a·class="struct"·href="struct.VecDeque.html"·title="struct·alloc::collections::vec_deque::VecDeque">VecDeque</a>&lt;T,·A&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>allocator_api</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/32838">#32838</a>)</span></div></span></summary><div·class="docblock"><p>Creates·an·empty·deque·with·space·for·at·least·<code>capacity</code>·elements.</p>37 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.with_capacity_in"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/vec_deque/mod.rs.html#632-634">Source</a><h4·class="code-header">pub·fn·<a·href="#method.with_capacity_in"·class="fn">with_capacity_in</a>(capacity:·<a·class="primitive"·href="../../../core/primitive.usize.html">usize</a>,·alloc:·A)·-&gt;·<a·class="struct"·href="struct.VecDeque.html"·title="struct·alloc::collections::vec_deque::VecDeque">VecDeque</a>&lt;T,·A&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>allocator_api</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/32838">#32838</a>)</span></div></span></summary><div·class="docblock"><p>Creates·an·empty·deque·with·space·for·at·least·<code>capacity</code>·elements.</p>
38 <h5·id="examples-4"><a·class="doc-anchor"·href="#examples-4">§</a>Examples</h5>38 <h5·id="examples-4"><a·class="doc-anchor"·href="#examples-4">§</a>Examples</h5>
39 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::VecDeque;39 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::VecDeque;
  
40 <span·class="kw">let·</span>deque:·VecDeque&lt;u32&gt;·=·VecDeque::with_capacity(<span·class="number">10</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::VecDeque;%0A++++%0A++++let+deque:+VecDeque%3Cu32%3E+=+VecDeque::with_capacity(10);%0A%7D&amp;edition=2021"></a></div>40 <span·class="kw">let·</span>deque:·VecDeque&lt;u32&gt;·=·VecDeque::with_capacity(<span·class="number">10</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::VecDeque;%0A++++%0A++++let+deque:+VecDeque%3Cu32%3E+=+VecDeque::with_capacity(10);%0A%7D&amp;edition=2021"></a></div>
41 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.get"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/vec_deque/mod.rs.html#685-692">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.get"·class="fn">get</a>(&amp;self,·index:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.usize.html">usize</a>)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="https://doc.rust-la[·...·truncated·by·diffoscope;·len:·13,·SHA:·aaedfc5b86b9874d823cbfe8740eb3c70445e78747978958dcfaac30cd4e36f9·...·]/core/primitive.reference.html">&amp;T</a>&gt;</h4></section></summary><div·class="docblock"><p>Provides·a·reference·to·the·element·at·the·given·index.</p>41 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.get"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/vec_deque/mod.rs.html#685-692">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.get"·class="fn">get</a>(&amp;self,·index:·<a·class="primitive"·href="../../../core/primitive.usize.html">usize</a>)·-&gt;·<a·class="enum"·href="../../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;T</a>&gt;</h4></section></summary><div·class="docblock"><p>Provides·a·reference·to·the·element·at·the·given·index.</p>
42 <p>Element·at·index·0·is·the·front·of·the·queue.</p>42 <p>Element·at·index·0·is·the·front·of·the·queue.</p>
43 <h5·id="examples-5"><a·class="doc-anchor"·href="#examples-5">§</a>Examples</h5>43 <h5·id="examples-5"><a·class="doc-anchor"·href="#examples-5">§</a>Examples</h5>
44 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::VecDeque;44 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::VecDeque;
  
45 <span·class="kw">let·</span><span·class="kw-2">mut·</span>buf·=·VecDeque::new();45 <span·class="kw">let·</span><span·class="kw-2">mut·</span>buf·=·VecDeque::new();
46 buf.push_back(<span·class="number">3</span>);46 buf.push_back(<span·class="number">3</span>);
47 buf.push_back(<span·class="number">4</span>);47 buf.push_back(<span·class="number">4</span>);
48 buf.push_back(<span·class="number">5</span>);48 buf.push_back(<span·class="number">5</span>);
49 buf.push_back(<span·class="number">6</span>);49 buf.push_back(<span·class="number">6</span>);
50 <span·class="macro">assert_eq!</span>(buf.get(<span·class="number">1</span>),·<span·class="prelude-val">Some</span>(<span·class="kw-2">&amp;</span><span·class="number">4</span>));</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::VecDeque;%0A++++%0A++++let+mut+buf+=+VecDeque::new();%0A++++buf.push_back(3);%0A++++buf.push_back(4);%0A++++buf.push_back(5);%0A++++buf.push_back(6);%0A++++assert_eq!(buf.get(1),+Some(%264));%0A%7D&amp;edition=2021"></a></div>50 <span·class="macro">assert_eq!</span>(buf.get(<span·class="number">1</span>),·<span·class="prelude-val">Some</span>(<span·class="kw-2">&amp;</span><span·class="number">4</span>));</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::VecDeque;%0A++++%0A++++let+mut+buf+=+VecDeque::new();%0A++++buf.push_back(3);%0A++++buf.push_back(4);%0A++++buf.push_back(5);%0A++++buf.push_back(6);%0A++++assert_eq!(buf.get(1),+Some(%264));%0A%7D&amp;edition=2021"></a></div>
51 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.get_mut"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/vec_deque/mod.rs.html#715-722">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.get_mut"·class="fn">get_mut</a>(&amp;mut·self,·index:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.usize.html">usize</a>)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="https://doc.rust-la[·...·truncated·by·diffoscope;·len:·13,·SHA:·aaedfc5b86b9874d823cbfe8740eb3c70445e78747978958dcfaac30cd4e36f9·...·]/core/primitive.reference.html">&amp;mut·T</a>&gt;</h4></section></summary><div·class="docblock"><p>Provides·a·mutable·reference·to·the·element·at·the·given·index.</p>51 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.get_mut"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/vec_deque/mod.rs.html#715-722">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.get_mut"·class="fn">get_mut</a>(&amp;mut·self,·index:·<a·class="primitive"·href="../../../core/primitive.usize.html">usize</a>)·-&gt;·<a·class="enum"·href="../../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;mut·T</a>&gt;</h4></section></summary><div·class="docblock"><p>Provides·a·mutable·reference·to·the·element·at·the·given·index.</p>
52 <p>Element·at·index·0·is·the·front·of·the·queue.</p>52 <p>Element·at·index·0·is·the·front·of·the·queue.</p>
53 <h5·id="examples-6"><a·class="doc-anchor"·href="#examples-6">§</a>Examples</h5>53 <h5·id="examples-6"><a·class="doc-anchor"·href="#examples-6">§</a>Examples</h5>
54 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::VecDeque;54 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::VecDeque;
  
55 <span·class="kw">let·</span><span·class="kw-2">mut·</span>buf·=·VecDeque::new();55 <span·class="kw">let·</span><span·class="kw-2">mut·</span>buf·=·VecDeque::new();
56 buf.push_back(<span·class="number">3</span>);56 buf.push_back(<span·class="number">3</span>);
57 buf.push_back(<span·class="number">4</span>);57 buf.push_back(<span·class="number">4</span>);
58 buf.push_back(<span·class="number">5</span>);58 buf.push_back(<span·class="number">5</span>);
59 buf.push_back(<span·class="number">6</span>);59 buf.push_back(<span·class="number">6</span>);
60 <span·class="macro">assert_eq!</span>(buf[<span·class="number">1</span>],·<span·class="number">4</span>);60 <span·class="macro">assert_eq!</span>(buf[<span·class="number">1</span>],·<span·class="number">4</span>);
61 <span·class="kw">if·let·</span><span·class="prelude-val">Some</span>(elem)·=·buf.get_mut(<span·class="number">1</span>)·{61 <span·class="kw">if·let·</span><span·class="prelude-val">Some</span>(elem)·=·buf.get_mut(<span·class="number">1</span>)·{
62 ····<span·class="kw-2">*</span>elem·=·<span·class="number">7</span>;62 ····<span·class="kw-2">*</span>elem·=·<span·class="number">7</span>;
63 }63 }
64 <span·class="macro">assert_eq!</span>(buf[<span·class="number">1</span>],·<span·class="number">7</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::VecDeque;%0A++++%0A++++let+mut+buf+=+VecDeque::new();%0A++++buf.push_back(3);%0A++++buf.push_back(4);%0A++++buf.push_back(5);%0A++++buf.push_back(6);%0A++++assert_eq!(buf%5B1%5D,+4);%0A++++if+let+Some(elem)+=+buf.get_mut(1)+%7B%0A++++++++*elem+=+7;%0A++++%7D%0A++++assert_eq!(buf%5B1%5D,+7);%0A%7D&amp;edition=2021"></a></div>64 <span·class="macro">assert_eq!</span>(buf[<span·class="number">1</span>],·<span·class="number">7</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::VecDeque;%0A++++%0A++++let+mut+buf+=+VecDeque::new();%0A++++buf.push_back(3);%0A++++buf.push_back(4);%0A++++buf.push_back(5);%0A++++buf.push_back(6);%0A++++assert_eq!(buf%5B1%5D,+4);%0A++++if+let+Some(elem)+=+buf.get_mut(1)+%7B%0A++++++++*elem+=+7;%0A++++%7D%0A++++assert_eq!(buf%5B1%5D,+7);%0A%7D&amp;edition=2021"></a></div>
65 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.swap"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/vec_deque/mod.rs.html#748-754">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.swap"·class="fn">swap</a>(&amp;mut·self,·i:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.usize.html">usize</a>,·j:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.usize.html">usize</a>)</h4></section></summary><div·class="docblock"><p>Swaps·elements·at·indices·<code>i</code>·and·<code>j</code>.</p>65 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.swap"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/vec_deque/mod.rs.html#748-754">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.swap"·class="fn">swap</a>(&amp;mut·self,·i:·<a·class="primitive"·href="../../../core/primitive.usize.html">usize</a>,·j:·<a·class="primitive"·href="../../../core/primitive.usize.html">usize</a>)</h4></section></summary><div·class="docblock"><p>Swaps·elements·at·indices·<code>i</code>·and·<code>j</code>.</p>
66 <p><code>i</code>·and·<code>j</code>·may·be·equal.</p>66 <p><code>i</code>·and·<code>j</code>·may·be·equal.</p>
67 <p>Element·at·index·0·is·the·front·of·the·queue.</p>67 <p>Element·at·index·0·is·the·front·of·the·queue.</p>
68 <h5·id="panics"><a·class="doc-anchor"·href="#panics">§</a>Panics</h5>68 <h5·id="panics"><a·class="doc-anchor"·href="#panics">§</a>Panics</h5>
69 <p>Panics·if·either·index·is·out·of·bounds.</p>69 <p>Panics·if·either·index·is·out·of·bounds.</p>
70 <h5·id="examples-7"><a·class="doc-anchor"·href="#examples-7">§</a>Examples</h5>70 <h5·id="examples-7"><a·class="doc-anchor"·href="#examples-7">§</a>Examples</h5>
71 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::VecDeque;71 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::VecDeque;
  
72 <span·class="kw">let·</span><span·class="kw-2">mut·</span>buf·=·VecDeque::new();72 <span·class="kw">let·</span><span·class="kw-2">mut·</span>buf·=·VecDeque::new();
73 buf.push_back(<span·class="number">3</span>);73 buf.push_back(<span·class="number">3</span>);
74 buf.push_back(<span·class="number">4</span>);74 buf.push_back(<span·class="number">4</span>);
75 buf.push_back(<span·class="number">5</span>);75 buf.push_back(<span·class="number">5</span>);
76 <span·class="macro">assert_eq!</span>(buf,·[<span·class="number">3</span>,·<span·class="number">4</span>,·<span·class="number">5</span>]);76 <span·class="macro">assert_eq!</span>(buf,·[<span·class="number">3</span>,·<span·class="number">4</span>,·<span·class="number">5</span>]);
77 buf.swap(<span·class="number">0</span>,·<span·class="number">2</span>);77 buf.swap(<span·class="number">0</span>,·<span·class="number">2</span>);
78 <span·class="macro">assert_eq!</span>(buf,·[<span·class="number">5</span>,·<span·class="number">4</span>,·<span·class="number">3</span>]);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::VecDeque;%0A++++%0A++++let+mut+buf+=+VecDeque::new();%0A++++buf.push_back(3);%0A++++buf.push_back(4);%0A++++buf.push_back(5);%0A++++assert_eq!(buf,+%5B3,+4,+5%5D);%0A++++buf.swap(0,+2);%0A++++assert_eq!(buf,+%5B5,+4,+3%5D);%0A%7D&amp;edition=2021"></a></div>78 <span·class="macro">assert_eq!</span>(buf,·[<span·class="number">5</span>,·<span·class="number">4</span>,·<span·class="number">3</span>]);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::VecDeque;%0A++++%0A++++let+mut+buf+=+VecDeque::new();%0A++++buf.push_back(3);%0A++++buf.push_back(4);%0A++++buf.push_back(5);%0A++++assert_eq!(buf,+%5B3,+4,+5%5D);%0A++++buf.swap(0,+2);%0A++++assert_eq!(buf,+%5B5,+4,+3%5D);%0A%7D&amp;edition=2021"></a></div>
79 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.capacity"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/vec_deque/mod.rs.html#769-771">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.capacity"·class="fn">capacity</a>(&amp;self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.usize.html">usize</a></h4></section></summary><div·class="docblock"><p>Returns·the·number·of·elements·the·deque·can·hold·without79 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.capacity"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/vec_deque/mod.rs.html#769-771">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.capacity"·class="fn">capacity</a>(&amp;self)·-&gt;·<a·class="primitive"·href="../../../core/primitive.usize.html">usize</a></h4></section></summary><div·class="docblock"><p>Returns·the·number·of·elements·the·deque·can·hold·without
80 reallocating.</p>80 reallocating.</p>
81 <h5·id="examples-8"><a·class="doc-anchor"·href="#examples-8">§</a>Examples</h5>81 <h5·id="examples-8"><a·class="doc-anchor"·href="#examples-8">§</a>Examples</h5>
82 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::VecDeque;82 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::VecDeque;
  
83 <span·class="kw">let·</span>buf:·VecDeque&lt;i32&gt;·=·VecDeque::with_capacity(<span·class="number">10</span>);83 <span·class="kw">let·</span>buf:·VecDeque&lt;i32&gt;·=·VecDeque::with_capacity(<span·class="number">10</span>);
84 <span·class="macro">assert!</span>(buf.capacity()·&gt;=·<span·class="number">10</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::VecDeque;%0A++++%0A++++let+buf:+VecDeque%3Ci32%3E+=+VecDeque::with_capacity(10);%0A++++assert!(buf.capacity()+%3E=+10);%0A%7D&amp;edition=2021"></a></div>84 <span·class="macro">assert!</span>(buf.capacity()·&gt;=·<span·class="number">10</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::VecDeque;%0A++++%0A++++let+buf:+VecDeque%3Ci32%3E+=+VecDeque::with_capacity(10);%0A++++assert!(buf.capacity()+%3E=+10);%0A%7D&amp;edition=2021"></a></div>
85 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reserve_exact"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/vec_deque/mod.rs.html#797-807">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.reserve_exact"·class="fn">reserve_exact</a>(&amp;mut·self,·additional:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.usize.html">usize</a>)</h4></section></summary><div·class="docblock"><p>Reserves·the·minimum·capacity·for·at·least·<code>additional</code>·more·elements·to·be·inserted·in·the85 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reserve_exact"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/vec_deque/mod.rs.html#797-807">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.reserve_exact"·class="fn">reserve_exact</a>(&amp;mut·self,·additional:·<a·class="primitive"·href="../../../core/primitive.usize.html">usize</a>)</h4></section></summary><div·class="docblock"><p>Reserves·the·minimum·capacity·for·at·least·<code>additional</code>·more·elements·to·be·inserted·in·the
86 given·deque.·Does·nothing·if·the·capacity·is·already·sufficient.</p>86 given·deque.·Does·nothing·if·the·capacity·is·already·sufficient.</p>
87 <p>Note·that·the·allocator·may·give·the·collection·more·space·than·it·requests.·Therefore87 <p>Note·that·the·allocator·may·give·the·collection·more·space·than·it·requests.·Therefore
88 capacity·can·not·be·relied·upon·to·be·precisely·minimal.·Prefer·<a·href="struct.VecDeque.html#method.reserve"·title="method·alloc::collections::vec_deque::VecDeque::reserve"><code>reserve</code></a>·if·future88 capacity·can·not·be·relied·upon·to·be·precisely·minimal.·Prefer·<a·href="struct.VecDeque.html#method.reserve"·title="method·alloc::collections::vec_deque::VecDeque::reserve"><code>reserve</code></a>·if·future
89 insertions·are·expected.</p>89 insertions·are·expected.</p>
90 <h5·id="panics-1"><a·class="doc-anchor"·href="#panics-1">§</a>Panics</h5>90 <h5·id="panics-1"><a·class="doc-anchor"·href="#panics-1">§</a>Panics</h5>
91 <p>Panics·if·the·new·capacity·overflows·<code>usize</code>.</p>91 <p>Panics·if·the·new·capacity·overflows·<code>usize</code>.</p>
92 <h5·id="examples-9"><a·class="doc-anchor"·href="#examples-9">§</a>Examples</h5>92 <h5·id="examples-9"><a·class="doc-anchor"·href="#examples-9">§</a>Examples</h5>
93 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::VecDeque;93 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::VecDeque;
  
94 <span·class="kw">let·</span><span·class="kw-2">mut·</span>buf:·VecDeque&lt;i32&gt;·=·[<span·class="number">1</span>].into();94 <span·class="kw">let·</span><span·class="kw-2">mut·</span>buf:·VecDeque&lt;i32&gt;·=·[<span·class="number">1</span>].into();
95 buf.reserve_exact(<span·class="number">10</span>);95 buf.reserve_exact(<span·class="number">10</span>);
96 <span·class="macro">assert!</span>(buf.capacity()·&gt;=·<span·class="number">11</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::VecDeque;%0A++++%0A++++let+mut+buf:+VecDeque%3Ci32%3E+=+%5B1%5D.into();%0A++++buf.reserve_exact(10);%0A++++assert!(buf.capacity()+%3E=+11);%0A%7D&amp;edition=2021"></a></div>96 <span·class="macro">assert!</span>(buf.capacity()·&gt;=·<span·class="number">11</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::VecDeque;%0A++++%0A++++let+mut+buf:+VecDeque%3Ci32%3E+=+%5B1%5D.into();%0A++++buf.reserve_exact(10);%0A++++assert!(buf.capacity()+%3E=+11);%0A%7D&amp;edition=2021"></a></div>
97 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reserve"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/vec_deque/mod.rs.html#827-839">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.reserve"·class="fn">reserve</a>(&amp;mut·self,·additional:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.usize.html">usize</a>)</h4></section></summary><div·class="docblock"><p>Reserves·capacity·for·at·least·<code>additional</code>·more·elements·to·be·inserted·in·the·given97 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reserve"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/vec_deque/mod.rs.html#827-839">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.reserve"·class="fn">reserve</a>(&amp;mut·self,·additional:·<a·class="primitive"·href="../../../core/primitive.usize.html">usize</a>)</h4></section></summary><div·class="docblock"><p>Reserves·capacity·for·at·least·<code>additional</code>·more·elements·to·be·inserted·in·the·given
98 deque.·The·collection·may·reserve·more·space·to·speculatively·avoid·frequent·reallocations.</p>98 deque.·The·collection·may·reserve·more·space·to·speculatively·avoid·frequent·reallocations.</p>
99 <h5·id="panics-2"><a·class="doc-anchor"·href="#panics-2">§</a>Panics</h5>99 <h5·id="panics-2"><a·class="doc-anchor"·href="#panics-2">§</a>Panics</h5>
100 <p>Panics·if·the·new·capacity·overflows·<code>usize</code>.</p>100 <p>Panics·if·the·new·capacity·overflows·<code>usize</code>.</p>
101 <h5·id="examples-10"><a·class="doc-anchor"·href="#examples-10">§</a>Examples</h5>101 <h5·id="examples-10"><a·class="doc-anchor"·href="#examples-10">§</a>Examples</h5>
102 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::VecDeque;102 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::VecDeque;
  
103 <span·class="kw">let·</span><span·class="kw-2">mut·</span>buf:·VecDeque&lt;i32&gt;·=·[<span·class="number">1</span>].into();103 <span·class="kw">let·</span><span·class="kw-2">mut·</span>buf:·VecDeque&lt;i32&gt;·=·[<span·class="number">1</span>].into();
104 buf.reserve(<span·class="number">10</span>);104 buf.reserve(<span·class="number">10</span>);
105 <span·class="macro">assert!</span>(buf.capacity()·&gt;=·<span·class="number">11</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::VecDeque;%0A++++%0A++++let+mut+buf:+VecDeque%3Ci32%3E+=+%5B1%5D.into();%0A++++buf.reserve(10);%0A++++assert!(buf.capacity()+%3E=+11);%0A%7D&amp;edition=2021"></a></div>105 <span·class="macro">assert!</span>(buf.capacity()·&gt;=·<span·class="number">11</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::VecDeque;%0A++++%0A++++let+mut+buf:+VecDeque%3Ci32%3E+=+%5B1%5D.into();%0A++++buf.reserve(10);%0A++++assert!(buf.capacity()+%3E=+11);%0A%7D&amp;edition=2021"></a></div>
106 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reserve_exact"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.57.0">1.57.0</span>···<a·class="src"·href="../../../src/alloc/collections/vec_deque/mod.rs.html#879-891">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.try_reserve_exact"·class="fn">try_reserve_exact</a>(106 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reserve_exact"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.57.0">1.57.0</span>···<a·class="src"·href="../../../src/alloc/collections/vec_deque/mod.rs.html#879-891">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.try_reserve_exact"·class="fn">try_reserve_exact</a>(
107 ····&amp;mut·self,107 ····&amp;mut·self,
108 ····additional:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.usize.html">usize</a>,108 ····additional:·<a·class="primitive"·href="../../../core/primitive.usize.html">usize</a>,
109 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.unit.html">()</a>,·<a·class="struct"·href="../struct.TryReserveError.html"·title="struct·alloc::collections::TryReserveError">TryReserveError</a>&gt;</h4></section></summary><div·class="docblock"><p>Tries·to·reserve·the·minimum·capacity·for·at·least·<code>additional</code>·more·elements·to109 )·-&gt;·<a·class="enum"·href="../../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="primitive"·href="../../../core/primitive.unit.html">()</a>,·<a·class="struct"·href="../struct.TryReserveError.html"·title="struct·alloc::collections::TryReserveError">TryReserveError</a>&gt;</h4></section></summary><div·class="docblock"><p>Tries·to·reserve·the·minimum·capacity·for·at·least·<code>additional</code>·more·elements·to
110 be·inserted·in·the·given·deque.·After·calling·<code>try_reserve_exact</code>,110 be·inserted·in·the·given·deque.·After·calling·<code>try_reserve_exact</code>,
111 capacity·will·be·greater·than·or·equal·to·<code>self.len()·+·additional</code>·if111 capacity·will·be·greater·than·or·equal·to·<code>self.len()·+·additional</code>·if
112 it·returns·<code>Ok(())</code>.·Does·nothing·if·the·capacity·is·already·sufficient.</p>112 it·returns·<code>Ok(())</code>.·Does·nothing·if·the·capacity·is·already·sufficient.</p>
113 <p>Note·that·the·allocator·may·give·the·collection·more·space·than·it113 <p>Note·that·the·allocator·may·give·the·collection·more·space·than·it
114 requests.·Therefore,·capacity·can·not·be·relied·upon·to·be·precisely114 requests.·Therefore,·capacity·can·not·be·relied·upon·to·be·precisely
115 minimal.·Prefer·<a·href="struct.VecDeque.html#method.try_reserve"·title="method·alloc::collections::vec_deque::VecDeque::try_reserve"><code>try_reserve</code></a>·if·future·insertions·are·expected.</p>115 minimal.·Prefer·<a·href="struct.VecDeque.html#method.try_reserve"·title="method·alloc::collections::vec_deque::VecDeque::try_reserve"><code>try_reserve</code></a>·if·future·insertions·are·expected.</p>
116 <h5·id="errors-1"><a·class="doc-anchor"·href="#errors-1">§</a>Errors</h5>116 <h5·id="errors-1"><a·class="doc-anchor"·href="#errors-1">§</a>Errors</h5>
Offset 140, 15 lines modifiedOffset 140, 15 lines modified
140 ····<span·class="comment">//·Now·we·know·this·can't·OOM(Out-Of-Memory)·in·the·middle·of·our·complex·work140 ····<span·class="comment">//·Now·we·know·this·can't·OOM(Out-Of-Memory)·in·the·middle·of·our·complex·work
141 ····</span>output.extend(data.iter().map(|<span·class="kw-2">&amp;</span>val|·{141 ····</span>output.extend(data.iter().map(|<span·class="kw-2">&amp;</span>val|·{
142 ········val·*·<span·class="number">2·</span>+·<span·class="number">5·</span><span·class="comment">//·very·complicated142 ········val·*·<span·class="number">2·</span>+·<span·class="number">5·</span><span·class="comment">//·very·complicated
143 ····</span>}));143 ····</span>}));
  
144 ····<span·class="prelude-val">Ok</span>(output)144 ····<span·class="prelude-val">Ok</span>(output)
145 }</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::TryReserveError;%0A++++use+std::collections::VecDeque;%0A++++%0A++++fn+process_data(data:+%26%5Bu32%5D)+-%3E+Result%3CVecDeque%3Cu32%3E,+TryReserveError%3E+%7B%0A++++++++let+mut+output+=+VecDeque::new();%0A++++%0A++++++++//+Pre-reserve+the+memory,+exiting+if+we+can't%0A++++++++output.try_reserve_exact(data.len())?;%0A++++%0A++++++++//+Now+we+know+this+can't+OOM(Out-Of-Memory)+in+the+middle+of+our+complex+work%0A++++++++output.extend(data.iter().map(%7C%26val%7C+%7B%0A++++++++++++val+*+2+%2B+5+//+very+complicated%0A++++++++%7D));%0A++++%0A++++++++Ok(output)%0A++++%7D%0A++++process_data(%26%5B1,+2,+3%5D).expect(%22why+is+the+test+harness+OOMing+on+12+bytes?%22);%0A%7D&amp;edition=2021"></a></div>145 }</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::TryReserveError;%0A++++use+std::collections::VecDeque;%0A++++%0A++++fn+process_data(data:+%26%5Bu32%5D)+-%3E+Result%3CVecDeque%3Cu32%3E,+TryReserveError%3E+%7B%0A++++++++let+mut+output+=+VecDeque::new();%0A++++%0A++++++++//+Pre-reserve+the+memory,+exiting+if+we+can't%0A++++++++output.try_reserve_exact(data.len())?;%0A++++%0A++++++++//+Now+we+know+this+can't+OOM(Out-Of-Memory)+in+the+middle+of+our+complex+work%0A++++++++output.extend(data.iter().map(%7C%26val%7C+%7B%0A++++++++++++val+*+2+%2B+5+//+very+complicated%0A++++++++%7D));%0A++++%0A++++++++Ok(output)%0A++++%7D%0A++++process_data(%26%5B1,+2,+3%5D).expect(%22why+is+the+test+harness+OOMing+on+12+bytes?%22);%0A%7D&amp;edition=2021"></a></div>
146 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reserve"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.57.0">1.57.0</span>···<a·class="src"·href="../../../src/alloc/collections/vec_deque/mod.rs.html#927-939">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.try_reserve"·class="fn">try_reserve</a>(&amp;mut·self,·additional:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.usize.html">usize</a>)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="primitive"·href="https://doc.rust-la[·...·truncated·by·diffoscope;·len:·13,·SHA:·aaedfc5b86b9874d823cbfe8740eb3c70445e78747978958dcfaac30cd4e36f9·...·]/core/primitive.unit.html">()</a>,·<a·class="struct"·href="../struct.TryReserveError.html"·title="struct·alloc::collections::TryReserveError">TryReserveError</a>&gt;</h4></section></summary><div·class="docblock"><p>Tries·to·reserve·capacity·for·at·least·<code>additional</code>·more·elements·to·be·inserted146 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reserve"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.57.0">1.57.0</span>···<a·class="src"·href="../../../src/alloc/collections/vec_deque/mod.rs.html#927-939">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.try_reserve"·class="fn">try_reserve</a>(&amp;mut·self,·additional:·<a·class="primitive"·href="../../../core/primitive.usize.html">usize</a>)·-&gt;·<a·class="enum"·href="../../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="primitive"·href="../../../core/primitive.unit.html">()</a>,·<a·class="struct"·href="../struct.TryReserveError.html"·title="struct·alloc::collections::TryReserveError">TryReserveError</a>&gt;</h4></section></summary><div·class="docblock"><p>Tries·to·reserve·capacity·for·at·least·<code>additional</code>·more·elements·to·be·inserted
147 in·the·given·deque.·The·collection·may·reserve·more·space·to·speculatively·avoid147 in·the·given·deque.·The·collection·may·reserve·more·space·to·speculatively·avoid
148 frequent·reallocations.·After·calling·<code>try_reserve</code>,·capacity·will·be148 frequent·reallocations.·After·calling·<code>try_reserve</code>,·capacity·will·be
149 greater·than·or·equal·to·<code>self.len()·+·additional</code>·if·it·returns149 greater·than·or·equal·to·<code>self.len()·+·additional</code>·if·it·returns
150 <code>Ok(())</code>.·Does·nothing·if·capacity·is·already·sufficient.·This·method150 <code>Ok(())</code>.·Does·nothing·if·capacity·is·already·sufficient.·This·method
Max diff block lines reached; 298749/332101 bytes (89.96%) of diff not shown.
227 KB
./usr/share/doc/rust-doc/html/alloc/ffi/c_str/struct.CString.html
    
Offset 1, 45 lines modifiedOffset 1, 45 lines modified
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="A·type·representing·an·owned,·C-compatible,·nul-terminated·string·with·no·nul·bytes·in·the·middle."><title>CString·in·alloc::ffi::c_str·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»  2025-01-07)»       (built» from»     a»    source»      tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">CString</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#creating-a-cstring"·title="Creating·a·`CString`">Creating·a·<code>CString</code></a></li><li><a·href="#extracting-a-raw-pointer-to-the-whole-c-string"·title="Extracting·a·raw·pointer·to·the·whole·C·string">Extracting·a·raw·pointer·to·the·whole·C·string</a></li><li><a·href="#extracting-a-slice-of-the-whole-c-string"·title="Extracting·a·slice·of·the·whole·C·string">Extracting·a·slice·of·the·whole·C·string</a></li><li><a·href="#examples"·title="Examples">Examples</a></li><li><a·href="#safety"·title="Safety">Safety</a></li></ul><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.as_bytes"·title="as_bytes">as_bytes</a></li><li><a·href="#method.as_bytes_with_nul"·title="as_bytes_with_nul">as_bytes_with_nul</a></li><li><a·href="#method.as_c_str"·title="as_c_str">as_c_str</a></li><li><a·href="#method.from_raw"·title="from_raw">from_raw</a></li><li><a·href="#method.from_vec_unchecked"·title="from_vec_unchecked">from_vec_unchecked</a></li><li><a·href="#method.from_vec_with_nul"·title="from_vec_with_nul">from_vec_with_nul</a></li><li><a·href="#method.from_vec_with_nul_unchecked"·title="from_vec_with_nul_unchecked">from_vec_with_nul_unchecked</a></li><li><a·href="#method.into_boxed_c_str"·title="into_boxed_c_str">into_boxed_c_str</a></li><li><a·href="#method.into_bytes"·title="into_bytes">into_bytes</a></li><li><a·href="#method.into_bytes_with_nul"·title="into_bytes_with_nul">into_bytes_with_nul</a></li><li><a·href="#method.into_raw"·title="into_raw">into_raw</a></li><li><a·href="#method.into_string"·title="into_string">into_string</a></li><li><a·href="#method.new"·title="new">new</a></li></ul><h3><a·href="#deref-methods-CStr">Methods·from·Deref&lt;<wbr>Target=C<wbr>Str&gt;</a></h3><ul·class="block·deref-methods"><li><a·href="#method.as_ptr"·title="as_ptr">as_ptr</a></li><li><a·href="#method.bytes"·title="bytes">bytes</a></li><li><a·href="#method.count_bytes"·title="count_bytes">count_bytes</a></li><li><a·href="#method.is_empty"·title="is_empty">is_empty</a></li><li><a·href="#method.to_bytes"·title="to_bytes">to_bytes</a></li><li><a·href="#method.to_bytes_with_nul"·title="to_bytes_with_nul">to_bytes_with_nul</a></li><li><a·href="#method.to_str"·title="to_str">to_str</a></li><li><a·href="#method.to_string_lossy"·title="to_string_lossy">to_string_lossy</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-AsRef%3CCStr%3E-for-CString"·title="AsRef&#60;CStr&#62;">AsRef&#60;CStr&#62;</a></li><li><a·href="#impl-Borrow%3CCStr%3E-for-CString"·title="Borrow&#60;CStr&#62;">Borrow&#60;CStr&#62;</a></li><li><a·href="#impl-Clone-for-CString"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-CString"·title="Debug">Debug</a></li><li><a·href="#impl-Default-for-CString"·title="Default">Default</a></li><li><a·href="#impl-Deref-for-CString"·title="Deref">Deref</a></li><li><a·href="#impl-Drop-for-CString"·title="Drop">Drop</a></li><li><a·href="#impl-Eq-for-CString"·title="Eq">Eq</a></li><li><a·href="#impl-From%3C%26CString%3E-for-Cow%3C'a,+CStr%3E"·title="From&#60;&#38;&#39;a·CString&#62;">From&#60;&#38;&#39;a·CString&#62;</a></li><li><a·href="#impl-From%3C%26CStr%3E-for-CString"·title="From&#60;&#38;CStr&#62;">From&#60;&#38;CStr&#62;</a></li><li><a·href="#impl-From%3CBox%3CCStr%3E%3E-for-CString"·title="From&#60;Box&#60;CStr&#62;&#62;">From&#60;Box&#60;CStr&#62;&#62;</a></li><li><a·href="#impl-From%3CCString%3E-for-Arc%3CCStr%3E"·title="From&#60;CString&#62;">From&#60;CString&#62;</a></li><li><a·href="#impl-From%3CCString%3E-for-Box%3CCStr%3E"·title="From&#60;CString&#62;">From&#60;CString&#62;</a></li><li><a·href="#impl-From%3CCString%3E-for-Cow%3C'a,+CStr%3E"·title="From&#60;CString&#62;">From&#60;CString&#62;</a></li><li><a·href="#impl-From%3CCString%3E-for-Rc%3CCStr%3E"·title="From&#60;CString&#62;">From&#60;CString&#62;</a></li><li><a·href="#impl-From%3CCString%3E-for-Vec%3Cu8%3E"·title="From&#60;CString&#62;">From&#60;CString&#62;</a></li><li><a·href="#impl-From%3CCow%3C'a,+CStr%3E%3E-for-CString"·title="From&#60;Cow&#60;&#39;a,·CStr&#62;&#62;">From&#60;Cow&#60;&#39;a,·CStr&#62;&#62;</a></li><li><a·href="#impl-From%3CVec%3CNonZero%3Cu8%3E%3E%3E-for-CString"·title="From&#60;Vec&#60;NonZero&#60;u8&#62;&#62;&#62;">From&#60;Vec&#60;NonZero&#60;u8&#62;&#62;&#62;</a></li><li><a·href="#impl-FromStr-for-CString"·title="FromStr">FromStr</a></li><li><a·href="#impl-Hash-for-CString"·title="Hash">Hash</a></li><li><a·href="#impl-Index%3CRangeFull%3E-for-CString"·title="Index&#60;RangeFull&#62;">Index&#60;RangeFull&#62;</a></li><li><a·href="#impl-Ord-for-CString"·title="Ord">Ord</a></li><li><a·href="#impl-PartialEq-for-CString"·title="PartialEq">PartialEq</a></li><li><a·href="#impl-PartialOrd-for-CString"·title="PartialOrd">PartialOrd</a></li><li><a·href="#impl-StructuralPartialEq-for-CString"·title="StructuralPartialEq">StructuralPartialEq</a></li><li><a·href="#impl-TryFrom%3CCString%3E-for-String"·title="TryFrom&#60;CString&#62;">TryFrom&#60;CString&#62;</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-CString"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-CString"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-CString"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-CString"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-CString"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-CString"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-Receiver-for-P"·title="Receiver">Receiver</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>ffi::<wbr>c_<wbr>str</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">alloc</a>::<wbr><a·href="../index.html">ffi</a>::<wbr><a·href="index.html">c_str</a></span><h1>Struct·<span·class="struct">CString</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/alloc/ffi/c_str.rs.html#111-116">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·CString·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>c_str_module</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/112134">#112134</a>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>A·type·representing·an·owned,·C-compatible,·nul-terminated·string·with·no·nul·bytes·in·the1 <!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·type·representing·an·owned,·C-compatible,·nul-terminated·string·with·no·nul·bytes·in·the·middle."><title>CString·in·alloc::ffi::c_str·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»  2025-01-07)»       (built» from»     a»    source»      tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">CString</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#creating-a-cstring"·title="Creating·a·`CString`">Creating·a·<code>CString</code></a></li><li><a·href="#extracting-a-raw-pointer-to-the-whole-c-string"·title="Extracting·a·raw·pointer·to·the·whole·C·string">Extracting·a·raw·pointer·to·the·whole·C·string</a></li><li><a·href="#extracting-a-slice-of-the-whole-c-string"·title="Extracting·a·slice·of·the·whole·C·string">Extracting·a·slice·of·the·whole·C·string</a></li><li><a·href="#examples"·title="Examples">Examples</a></li><li><a·href="#safety"·title="Safety">Safety</a></li></ul><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.as_bytes"·title="as_bytes">as_bytes</a></li><li><a·href="#method.as_bytes_with_nul"·title="as_bytes_with_nul">as_bytes_with_nul</a></li><li><a·href="#method.as_c_str"·title="as_c_str">as_c_str</a></li><li><a·href="#method.from_raw"·title="from_raw">from_raw</a></li><li><a·href="#method.from_vec_unchecked"·title="from_vec_unchecked">from_vec_unchecked</a></li><li><a·href="#method.from_vec_with_nul"·title="from_vec_with_nul">from_vec_with_nul</a></li><li><a·href="#method.from_vec_with_nul_unchecked"·title="from_vec_with_nul_unchecked">from_vec_with_nul_unchecked</a></li><li><a·href="#method.into_boxed_c_str"·title="into_boxed_c_str">into_boxed_c_str</a></li><li><a·href="#method.into_bytes"·title="into_bytes">into_bytes</a></li><li><a·href="#method.into_bytes_with_nul"·title="into_bytes_with_nul">into_bytes_with_nul</a></li><li><a·href="#method.into_raw"·title="into_raw">into_raw</a></li><li><a·href="#method.into_string"·title="into_string">into_string</a></li><li><a·href="#method.new"·title="new">new</a></li></ul><h3><a·href="#deref-methods-CStr">Methods·from·Deref&lt;<wbr>Target=C<wbr>Str&gt;</a></h3><ul·class="block·deref-methods"><li><a·href="#method.as_ptr"·title="as_ptr">as_ptr</a></li><li><a·href="#method.bytes"·title="bytes">bytes</a></li><li><a·href="#method.count_bytes"·title="count_bytes">count_bytes</a></li><li><a·href="#method.is_empty"·title="is_empty">is_empty</a></li><li><a·href="#method.to_bytes"·title="to_bytes">to_bytes</a></li><li><a·href="#method.to_bytes_with_nul"·title="to_bytes_with_nul">to_bytes_with_nul</a></li><li><a·href="#method.to_str"·title="to_str">to_str</a></li><li><a·href="#method.to_string_lossy"·title="to_string_lossy">to_string_lossy</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-AsRef%3CCStr%3E-for-CString"·title="AsRef&#60;CStr&#62;">AsRef&#60;CStr&#62;</a></li><li><a·href="#impl-Borrow%3CCStr%3E-for-CString"·title="Borrow&#60;CStr&#62;">Borrow&#60;CStr&#62;</a></li><li><a·href="#impl-Clone-for-CString"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-CString"·title="Debug">Debug</a></li><li><a·href="#impl-Default-for-CString"·title="Default">Default</a></li><li><a·href="#impl-Deref-for-CString"·title="Deref">Deref</a></li><li><a·href="#impl-Drop-for-CString"·title="Drop">Drop</a></li><li><a·href="#impl-Eq-for-CString"·title="Eq">Eq</a></li><li><a·href="#impl-From%3C%26CString%3E-for-Cow%3C'a,+CStr%3E"·title="From&#60;&#38;&#39;a·CString&#62;">From&#60;&#38;&#39;a·CString&#62;</a></li><li><a·href="#impl-From%3C%26CStr%3E-for-CString"·title="From&#60;&#38;CStr&#62;">From&#60;&#38;CStr&#62;</a></li><li><a·href="#impl-From%3CBox%3CCStr%3E%3E-for-CString"·title="From&#60;Box&#60;CStr&#62;&#62;">From&#60;Box&#60;CStr&#62;&#62;</a></li><li><a·href="#impl-From%3CCString%3E-for-Arc%3CCStr%3E"·title="From&#60;CString&#62;">From&#60;CString&#62;</a></li><li><a·href="#impl-From%3CCString%3E-for-Box%3CCStr%3E"·title="From&#60;CString&#62;">From&#60;CString&#62;</a></li><li><a·href="#impl-From%3CCString%3E-for-Cow%3C'a,+CStr%3E"·title="From&#60;CString&#62;">From&#60;CString&#62;</a></li><li><a·href="#impl-From%3CCString%3E-for-Rc%3CCStr%3E"·title="From&#60;CString&#62;">From&#60;CString&#62;</a></li><li><a·href="#impl-From%3CCString%3E-for-Vec%3Cu8%3E"·title="From&#60;CString&#62;">From&#60;CString&#62;</a></li><li><a·href="#impl-From%3CCow%3C'a,+CStr%3E%3E-for-CString"·title="From&#60;Cow&#60;&#39;a,·CStr&#62;&#62;">From&#60;Cow&#60;&#39;a,·CStr&#62;&#62;</a></li><li><a·href="#impl-From%3CVec%3CNonZero%3Cu8%3E%3E%3E-for-CString"·title="From&#60;Vec&#60;NonZero&#60;u8&#62;&#62;&#62;">From&#60;Vec&#60;NonZero&#60;u8&#62;&#62;&#62;</a></li><li><a·href="#impl-FromStr-for-CString"·title="FromStr">FromStr</a></li><li><a·href="#impl-Hash-for-CString"·title="Hash">Hash</a></li><li><a·href="#impl-Index%3CRangeFull%3E-for-CString"·title="Index&#60;RangeFull&#62;">Index&#60;RangeFull&#62;</a></li><li><a·href="#impl-Ord-for-CString"·title="Ord">Ord</a></li><li><a·href="#impl-PartialEq-for-CString"·title="PartialEq">PartialEq</a></li><li><a·href="#impl-PartialOrd-for-CString"·title="PartialOrd">PartialOrd</a></li><li><a·href="#impl-StructuralPartialEq-for-CString"·title="StructuralPartialEq">StructuralPartialEq</a></li><li><a·href="#impl-TryFrom%3CCString%3E-for-String"·title="TryFrom&#60;CString&#62;">TryFrom&#60;CString&#62;</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-CString"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-CString"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-CString"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-CString"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-CString"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-CString"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-Receiver-for-P"·title="Receiver">Receiver</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>ffi::<wbr>c_<wbr>str</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">alloc</a>::<wbr><a·href="../index.html">ffi</a>::<wbr><a·href="index.html">c_str</a></span><h1>Struct·<span·class="struct">CString</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/alloc/ffi/c_str.rs.html#111-116">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·CString·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>c_str_module</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/112134">#112134</a>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>A·type·representing·an·owned,·C-compatible,·nul-terminated·string·with·no·nul·bytes·in·the
2 middle.</p>2 middle.</p>
3 <p>This·type·serves·the·purpose·of·being·able·to·safely·generate·a3 <p>This·type·serves·the·purpose·of·being·able·to·safely·generate·a
4 C-compatible·string·from·a·Rust·byte·slice·or·vector.·An·instance·of·this4 C-compatible·string·from·a·Rust·byte·slice·or·vector.·An·instance·of·this
5 type·is·a·static·guarantee·that·the·underlying·bytes·contain·no·interior·05 type·is·a·static·guarantee·that·the·underlying·bytes·contain·no·interior·0
6 bytes·(“nul·characters”)·and·that·the·final·byte·is·0·(“nul·terminator”).</p>6 bytes·(“nul·characters”)·and·that·the·final·byte·is·0·(“nul·terminator”).</p>
7 <p><code>CString</code>·is·to·<code>&amp;<a·href="https://doc.rust-lang.org/1.84.0/core/ffi/c_str/struct.CStr.html"·title="struct·core::ffi::c_str::CStr">CStr</a></code>·as·<a·href="../../string/struct.String.html"·title="struct·alloc::string::String"><code>String</code></a>·is·to·<code>&amp;<a·href="http[·...·truncated·by·diffoscope;·len:·28,·SHA:·3505deb529863fb4b82988decb9cbdcb8f7961948140375d4ce613fe174d3598·...·]/core/primitive.str.html"·title="str">str</a></code>:·the·former7 <p><code>CString</code>·is·to·<code>&amp;<a·href="../../../core/ffi/c_str/struct.CStr.html"·title="struct·core::ffi::c_str::CStr">CStr</a></code>·as·<a·href="../../string/struct.String.html"·title="struct·alloc::string::String"><code>String</code></a>·is·to·<code>&amp;<a·href="../../../core/primitive.str.html"·title="str">str</a></code>:·the·former
8 in·each·pair·are·owned·strings;·the·latter·are·borrowed8 in·each·pair·are·owned·strings;·the·latter·are·borrowed
9 references.</p>9 references.</p>
10 <h2·id="creating-a-cstring"><a·class="doc-anchor"·href="#creating-a-cstring">§</a>Creating·a·<code>CString</code></h2>10 <h2·id="creating-a-cstring"><a·class="doc-anchor"·href="#creating-a-cstring">§</a>Creating·a·<code>CString</code></h2>
11 <p>A·<code>CString</code>·is·created·from·either·a·byte·slice·or·a·byte·vector,11 <p>A·<code>CString</code>·is·created·from·either·a·byte·slice·or·a·byte·vector,
12 or·anything·that·implements·<code><a·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;<a·href="../../vec/struct.Vec.html"·title="struct·alloc::vec::Vec">Vec</a>&lt;<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.u8.html"·title="primitive·u8">u8</a>&gt;&gt;</code>·(for12 or·anything·that·implements·<code><a·href="../../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;<a·href="../../vec/struct.Vec.html"·title="struct·alloc::vec::Vec">Vec</a>&lt;<a·href="../../../core/primitive.u8.html"·title="primitive·u8">u8</a>&gt;&gt;</code>·(for
13 example,·you·can·build·a·<code>CString</code>·straight·out·of·a·<a·href="../../string/struct.String.html"·title="struct·alloc::string::String"><code>String</code></a>·or13 example,·you·can·build·a·<code>CString</code>·straight·out·of·a·<a·href="../../string/struct.String.html"·title="struct·alloc::string::String"><code>String</code></a>·or
14 a·<code>&amp;<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.str.html"·title="str">str</a></code>,·since·both·implement·that·trait).14 a·<code>&amp;<a·href="../../../core/primitive.str.html"·title="str">str</a></code>,·since·both·implement·that·trait).
15 You·can·create·a·<code>CString</code>·from·a·literal·with·<code>CString::from(c"Text")</code>.</p>15 You·can·create·a·<code>CString</code>·from·a·literal·with·<code>CString::from(c"Text")</code>.</p>
16 <p>The·<a·href="../struct.CString.html#method.new"·title="associated·function·alloc::ffi::CString::new"><code>CString::new</code></a>·method·will·actually·check·that·the·provided·<code>&amp;[<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.u8.html"·title="primitive·u8">u8</a>]</code>16 <p>The·<a·href="../struct.CString.html#method.new"·title="associated·function·alloc::ffi::CString::new"><code>CString::new</code></a>·method·will·actually·check·that·the·provided·<code>&amp;[<a·href="../../../core/primitive.u8.html"·title="primitive·u8">u8</a>]</code>
17 does·not·have·0·bytes·in·the·middle,·and·return·an·error·if·it17 does·not·have·0·bytes·in·the·middle,·and·return·an·error·if·it
18 finds·one.</p>18 finds·one.</p>
19 <h2·id="extracting-a-raw-pointer-to-the-whole-c-string"><a·class="doc-anchor"·href="#extracting-a-raw-pointer-to-the-whole-c-string">§</a>Extracting·a·raw·pointer·to·the·whole·C·string</h2>19 <h2·id="extracting-a-raw-pointer-to-the-whole-c-string"><a·class="doc-anchor"·href="#extracting-a-raw-pointer-to-the-whole-c-string">§</a>Extracting·a·raw·pointer·to·the·whole·C·string</h2>
20 <p><code>CString</code>·implements·an·<a·href="https://doc.rust-lang.org/1.84.0/core/ffi/c_str/struct.CStr.html#method.as_ptr"·title="method·core::ffi::c_str::CStr::as_ptr"><code>as_ptr</code></a>·method·through·the·<a·href="https://doc.rust-lang.org/1.84.0/core/ops/deref/trait.Deref.html"·title="trait·core::ops::deref::Deref"><code>Deref</code></a>20 <p><code>CString</code>·implements·an·<a·href="../../../core/ffi/c_str/struct.CStr.html#method.as_ptr"·title="method·core::ffi::c_str::CStr::as_ptr"><code>as_ptr</code></a>·method·through·the·<a·href="../../../core/ops/deref/trait.Deref.html"·title="trait·core::ops::deref::Deref"><code>Deref</code></a>
21 trait.·This·method·will·give·you·a·<code>*const·c_char</code>·which·you·can21 trait.·This·method·will·give·you·a·<code>*const·c_char</code>·which·you·can
22 feed·directly·to·extern·functions·that·expect·a·nul-terminated22 feed·directly·to·extern·functions·that·expect·a·nul-terminated
23 string,·like·C’s·<code>strdup()</code>.·Notice·that·<a·href="https://doc.rust-lang.org/1.84.0/core/ffi/c_str/struct.CStr.html#method.as_ptr"·title="method·core::ffi::c_str::CStr::as_ptr"><code>as_ptr</code></a>·returns·a23 string,·like·C’s·<code>strdup()</code>.·Notice·that·<a·href="../../../core/ffi/c_str/struct.CStr.html#method.as_ptr"·title="method·core::ffi::c_str::CStr::as_ptr"><code>as_ptr</code></a>·returns·a
24 read-only·pointer;·if·the·C·code·writes·to·it,·that·causes24 read-only·pointer;·if·the·C·code·writes·to·it,·that·causes
25 undefined·behavior.</p>25 undefined·behavior.</p>
26 <h2·id="extracting-a-slice-of-the-whole-c-string"><a·class="doc-anchor"·href="#extracting-a-slice-of-the-whole-c-string">§</a>Extracting·a·slice·of·the·whole·C·string</h2>26 <h2·id="extracting-a-slice-of-the-whole-c-string"><a·class="doc-anchor"·href="#extracting-a-slice-of-the-whole-c-string">§</a>Extracting·a·slice·of·the·whole·C·string</h2>
27 <p>Alternatively,·you·can·obtain·a·<code>&amp;[<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.u8.html"·title="primitive·u8">u8</a>]</code>·slice·from·a27 <p>Alternatively,·you·can·obtain·a·<code>&amp;[<a·href="../../../core/primitive.u8.html"·title="primitive·u8">u8</a>]</code>·slice·from·a
28 <code>CString</code>·with·the·<a·href="../struct.CString.html#method.as_bytes"·title="method·alloc::ffi::CString::as_bytes"><code>CString::as_bytes</code></a>·method.·Slices·produced·in·this28 <code>CString</code>·with·the·<a·href="../struct.CString.html#method.as_bytes"·title="method·alloc::ffi::CString::as_bytes"><code>CString::as_bytes</code></a>·method.·Slices·produced·in·this
29 way·do·<em>not</em>·contain·the·trailing·nul·terminator.·This·is·useful29 way·do·<em>not</em>·contain·the·trailing·nul·terminator.·This·is·useful
30 when·you·will·be·calling·an·extern·function·that·takes·a·<code>*const·u8</code>·argument·which·is·not·necessarily·nul-terminated,·plus·another30 when·you·will·be·calling·an·extern·function·that·takes·a·<code>*const·u8</code>·argument·which·is·not·necessarily·nul-terminated,·plus·another
31 argument·with·the·length·of·the·string··like·C’s·<code>strndup()</code>.31 argument·with·the·length·of·the·string··like·C’s·<code>strndup()</code>.
32 You·can·of·course·get·the·slice’s·length·with·its32 You·can·of·course·get·the·slice’s·length·with·its
33 <a·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html#method.len"·title="method·slice::len"><code>len</code></a>·method.</p>33 <a·href="../../../core/primitive.slice.html#method.len"·title="method·slice::len"><code>len</code></a>·method.</p>
34 <p>If·you·need·a·<code>&amp;[<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.u8.html"·title="primitive·u8">u8</a>]</code>·slice·<em>with</em>·the·nul·terminator,·you34 <p>If·you·need·a·<code>&amp;[<a·href="../../../core/primitive.u8.html"·title="primitive·u8">u8</a>]</code>·slice·<em>with</em>·the·nul·terminator,·you
35 can·use·<a·href="../struct.CString.html#method.as_bytes_with_nul"·title="method·alloc::ffi::CString::as_bytes_with_nul"><code>CString::as_bytes_with_nul</code></a>·instead.</p>35 can·use·<a·href="../struct.CString.html#method.as_bytes_with_nul"·title="method·alloc::ffi::CString::as_bytes_with_nul"><code>CString::as_bytes_with_nul</code></a>·instead.</p>
36 <p>Once·you·have·the·kind·of·slice·you·need·(with·or·without·a·nul36 <p>Once·you·have·the·kind·of·slice·you·need·(with·or·without·a·nul
37 terminator),·you·can·call·the·slice’s·own37 terminator),·you·can·call·the·slice’s·own
38 <a·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html#method.as_ptr"·title="method·slice::as_ptr"><code>as_ptr</code></a>·method·to·get·a·read-only·raw·pointer·to·pass·to38 <a·href="../../../core/primitive.slice.html#method.as_ptr"·title="method·slice::as_ptr"><code>as_ptr</code></a>·method·to·get·a·read-only·raw·pointer·to·pass·to
39 extern·functions.·See·the·documentation·for·that·function·for·a39 extern·functions.·See·the·documentation·for·that·function·for·a
40 discussion·on·ensuring·the·lifetime·of·the·raw·pointer.</p>40 discussion·on·ensuring·the·lifetime·of·the·raw·pointer.</p>
41 <h2·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h2>41 <h2·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h2>
42 <div·class="example-wrap·ignore"><a·href="#"·class="tooltip"·title="This·example·is·not·tested">ⓘ</a><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::ffi::CString;42 <div·class="example-wrap·ignore"><a·href="#"·class="tooltip"·title="This·example·is·not·tested">ⓘ</a><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::ffi::CString;
43 <span·class="kw">use·</span>std::os::raw::c_char;43 <span·class="kw">use·</span>std::os::raw::c_char;
  
44 <span·class="kw">extern·</span><span·class="string">"C"·</span>{44 <span·class="kw">extern·</span><span·class="string">"C"·</span>{
Offset 57, 15 lines modifiedOffset 57, 15 lines modified
57 (a·sequence·of·non-nul·bytes·terminated·by·a·single·nul·byte);·the57 (a·sequence·of·non-nul·bytes·terminated·by·a·single·nul·byte);·the
58 primary·use·case·for·these·kinds·of·strings·is·interoperating·with·C-like58 primary·use·case·for·these·kinds·of·strings·is·interoperating·with·C-like
59 code.·Often·you·will·need·to·transfer·ownership·to/from·that·external59 code.·Often·you·will·need·to·transfer·ownership·to/from·that·external
60 code.·It·is·strongly·recommended·that·you·thoroughly·read·through·the60 code.·It·is·strongly·recommended·that·you·thoroughly·read·through·the
61 documentation·of·<code>CString</code>·before·use,·as·improper·ownership·management61 documentation·of·<code>CString</code>·before·use,·as·improper·ownership·management
62 of·<code>CString</code>·instances·can·lead·to·invalid·memory·accesses,·memory·leaks,62 of·<code>CString</code>·instances·can·lead·to·invalid·memory·accesses,·memory·leaks,
63 and·other·memory·errors.</p>63 and·other·memory·errors.</p>
64 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-CString"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/ffi/c_str.rs.html#231-693">Source</a><a·href="#impl-CString"·class="anchor">§</a><h3·class="code-header">impl·<a·class="struct"·href="../struct.CString.html"·title="struct·alloc::ffi::CString">CString</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.new"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/ffi/c_str.rs.html#260-316">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.new"·class="fn">new</a>&lt;T:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;<a·class="struct"·href="../../vec/struct.Vec.html"·title="struct·alloc::vec::Vec">Vec</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1[·...·truncated·by·diffoscope;·len:·115,·SHA:·1e0ce18a71707336fb7969f23e8a6aae97c86bf0f41b55ba4dbe5b2c22f6470d·...·]/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="struct"·href="../struct.CString.html"·title="struct·alloc::ffi::CString">CString</a>,·<a·class="struct"·href="../struct.NulError.html"·title="struct·alloc::ffi::NulError">NulError</a>&gt;</h4></section></summary><div·class="docblock"><p>Creates·a·new·C-compatible·string·from·a·container·of·bytes.</p>64 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-CString"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/ffi/c_str.rs.html#231-693">Source</a><a·href="#impl-CString"·class="anchor">§</a><h3·class="code-header">impl·<a·class="struct"·href="../struct.CString.html"·title="struct·alloc::ffi::CString">CString</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.new"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/ffi/c_str.rs.html#260-316">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.new"·class="fn">new</a>&lt;T:·<a·class="trait"·href="../../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;<a·class="struct"·href="../../vec/struct.Vec.html"·title="struct·alloc::vec::Vec">Vec</a>&lt;<a·class="primitive"·href="../../../core/primitive.u8.html">u8</a>&gt;&gt;&gt;[·...·truncated·by·diffoscope;·len:·43,·SHA:·31509dfff8925348945ad9f30258b8561b51056654c8ee496f996e286bc06058·...·]/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="struct"·href="../struct.CString.html"·title="struct·alloc::ffi::CString">CString</a>,·<a·class="struct"·href="../struct.NulError.html"·title="struct·alloc::ffi::NulError">NulError</a>&gt;</h4></section></summary><div·class="docblock"><p>Creates·a·new·C-compatible·string·from·a·container·of·bytes.</p>
65 <p>This·function·will·consume·the·provided·data·and·use·the65 <p>This·function·will·consume·the·provided·data·and·use·the
66 underlying·bytes·to·construct·a·new·string,·ensuring·that66 underlying·bytes·to·construct·a·new·string,·ensuring·that
67 there·is·a·trailing·0·byte.·This·trailing·0·byte·will·be67 there·is·a·trailing·0·byte.·This·trailing·0·byte·will·be
68 appended·by·this·function;·the·provided·data·should·<em>not</em>68 appended·by·this·function;·the·provided·data·should·<em>not</em>
69 contain·any·0·bytes·in·it.</p>69 contain·any·0·bytes·in·it.</p>
70 <h5·id="examples-1"><a·class="doc-anchor"·href="#examples-1">§</a>Examples</h5>70 <h5·id="examples-1"><a·class="doc-anchor"·href="#examples-1">§</a>Examples</h5>
71 <div·class="example-wrap·ignore"><a·href="#"·class="tooltip"·title="This·example·is·not·tested">ⓘ</a><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::ffi::CString;71 <div·class="example-wrap·ignore"><a·href="#"·class="tooltip"·title="This·example·is·not·tested">ⓘ</a><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::ffi::CString;
Offset 77, 43 lines modifiedOffset 77, 43 lines modified
77 <span·class="kw">unsafe·</span>{77 <span·class="kw">unsafe·</span>{
78 ····puts(to_print.as_ptr());78 ····puts(to_print.as_ptr());
79 }</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::ffi::CString;%0A++++use+std::os::raw::c_char;%0A++++%0A++++extern+%22C%22+%7B+fn+puts(s:+*const+c_char);+%7D%0A++++%0A++++let+to_print+=+CString::new(%22Hello!%22).expect(%22CString::new+failed%22);%0A++++unsafe+%7B%0A++++++++puts(to_print.as_ptr());%0A++++%7D%0A%7D&amp;edition=2021"></a></div>79 }</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::ffi::CString;%0A++++use+std::os::raw::c_char;%0A++++%0A++++extern+%22C%22+%7B+fn+puts(s:+*const+c_char);+%7D%0A++++%0A++++let+to_print+=+CString::new(%22Hello!%22).expect(%22CString::new+failed%22);%0A++++unsafe+%7B%0A++++++++puts(to_print.as_ptr());%0A++++%7D%0A%7D&amp;edition=2021"></a></div>
80 <h5·id="errors"><a·class="doc-anchor"·href="#errors">§</a>Errors</h5>80 <h5·id="errors"><a·class="doc-anchor"·href="#errors">§</a>Errors</h5>
81 <p>This·function·will·return·an·error·if·the·supplied·bytes·contain·an81 <p>This·function·will·return·an·error·if·the·supplied·bytes·contain·an
82 internal·0·byte.·The·<a·href="../struct.NulError.html"·title="struct·alloc::ffi::NulError"><code>NulError</code></a>·returned·will·contain·the·bytes·as·well·as82 internal·0·byte.·The·<a·href="../struct.NulError.html"·title="struct·alloc::ffi::NulError"><code>NulError</code></a>·returned·will·contain·the·bytes·as·well·as
83 the·position·of·the·nul·byte.</p>83 the·position·of·the·nul·byte.</p>
84 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.from_vec_unchecked"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/ffi/c_str.rs.html#339-342">Source</a></span><h4·class="code-header">pub·unsafe·fn·<a·href="#method.from_vec_unchecked"·class="fn">from_vec_unchecked</a>(v:·<a·class="struct"·href="../../vec/struct.Vec.html"·title="struct·alloc::vec::Vec">Vec</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.u8.html">u8</a>&gt;)·-&gt;·Self</h4></section></summary><div·class="docblock"><p>Creates·a·C-compatible·string·by·consuming·a·byte·vector,84 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.from_vec_unchecked"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/ffi/c_str.rs.html#339-342">Source</a></span><h4·class="code-header">pub·unsafe·fn·<a·href="#method.from_vec_unchecked"·class="fn">from_vec_unchecked</a>(v:·<a·class="struct"·href="../../vec/struct.Vec.html"·title="struct·alloc::vec::Vec">Vec</a>&lt;<a·class="primitive"·href="../../../core/primitive.u8.html">u8</a>&gt;)·-&gt;·Self</h4></section></summary><div·class="docblock"><p>Creates·a·C-compatible·string·by·consuming·a·byte·vector,
85 without·checking·for·interior·0·bytes.</p>85 without·checking·for·interior·0·bytes.</p>
86 <p>Trailing·0·byte·will·be·appended·by·this·function.</p>86 <p>Trailing·0·byte·will·be·appended·by·this·function.</p>
87 <p>This·method·is·equivalent·to·<a·href="../struct.CString.html#method.new"·title="associated·function·alloc::ffi::CString::new"><code>CString::new</code></a>·except·that·no·runtime87 <p>This·method·is·equivalent·to·<a·href="../struct.CString.html#method.new"·title="associated·function·alloc::ffi::CString::new"><code>CString::new</code></a>·except·that·no·runtime
88 assertion·is·made·that·<code>v</code>·contains·no·0·bytes,·and·it·requires·an88 assertion·is·made·that·<code>v</code>·contains·no·0·bytes,·and·it·requires·an
89 actual·byte·vector,·not·anything·that·can·be·converted·to·one·with·Into.</p>89 actual·byte·vector,·not·anything·that·can·be·converted·to·one·with·Into.</p>
90 <h5·id="examples-2"><a·class="doc-anchor"·href="#examples-2">§</a>Examples</h5>90 <h5·id="examples-2"><a·class="doc-anchor"·href="#examples-2">§</a>Examples</h5>
91 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::ffi::CString;91 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::ffi::CString;
  
92 <span·class="kw">let·</span>raw·=·<span·class="string">b"foo"</span>.to_vec();92 <span·class="kw">let·</span>raw·=·<span·class="string">b"foo"</span>.to_vec();
93 <span·class="kw">unsafe·</span>{93 <span·class="kw">unsafe·</span>{
94 ····<span·class="kw">let·</span>c_string·=·CString::from_vec_unchecked(raw);94 ····<span·class="kw">let·</span>c_string·=·CString::from_vec_unchecked(raw);
95 }</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::ffi::CString;%0A++++%0A++++let+raw+=+b%22foo%22.to_vec();%0A++++unsafe+%7B%0A++++++++let+c_string+=+CString::from_vec_unchecked(raw);%0A++++%7D%0A%7D&amp;edition=2021"></a></div>95 }</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::ffi::CString;%0A++++%0A++++let+raw+=+b%22foo%22.to_vec();%0A++++unsafe+%7B%0A++++++++let+c_string+=+CString::from_vec_unchecked(raw);%0A++++%7D%0A%7D&amp;edition=2021"></a></div>
96 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.from_raw"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.4.0">1.4.0</span>···<a·class="src"·href="../../../src/alloc/ffi/c_str.rs.html#396-411">Source</a></span><h4·class="code-header">pub·unsafe·fn·<a·href="#method.from_raw"·class="fn">from_raw</a>(ptr:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.pointer.html">*mut·</a><a·class="type"·href="https://doc.rust-lang.org/1.84.0/core/ffi/type.c_char.html"·title="type·core::ffi::c_char">c_char</a>)·-&gt;·<a·class="struct"·href="../struct.CString.html"·title="struct·alloc::ffi::CString">CString</a></h4></section></summary><div·class="docblock"><p>Retakes·ownership·of·a·<code>CString</code>·that·was·transferred·to·C·via96 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.from_raw"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.4.0">1.4.0</span>···<a·class="src"·href="../../../src/alloc/ffi/c_str.rs.html#396-411">Source</a></span><h4·class="code-header">pub·unsafe·fn·<a·href="#method.from_raw"·class="fn">from_raw</a>(ptr:·<a·class="primitive"·href="../../../core/primitive.pointer.html">*mut·</a><a·class="type"·href="../../../core/ffi/type.c_char.html"·title="type·core::ffi::c_char">c_char</a>)·-&gt;·<a·class="struct"·href="../struct.CString.html"·title="struct·alloc::ffi::CString">CString</a></h4></section></summary><div·class="docblock"><p>Retakes·ownership·of·a·<code>CString</code>·that·was·transferred·to·C·via
97 <a·href="../struct.CString.html#method.into_raw"·title="method·alloc::ffi::CString::into_raw"><code>CString::into_raw</code></a>.</p>97 <a·href="../struct.CString.html#method.into_raw"·title="method·alloc::ffi::CString::into_raw"><code>CString::into_raw</code></a>.</p>
98 <p>Additionally,·the·length·of·the·string·will·be·recalculated·from·the·pointer.</p>98 <p>Additionally,·the·length·of·the·string·will·be·recalculated·from·the·pointer.</p>
99 <h5·id="safety-1"><a·class="doc-anchor"·href="#safety-1">§</a>Safety</h5>99 <h5·id="safety-1"><a·class="doc-anchor"·href="#safety-1">§</a>Safety</h5>
100 <p>This·should·only·ever·be·called·with·a·pointer·that·was·earlier100 <p>This·should·only·ever·be·called·with·a·pointer·that·was·earlier
101 obtained·by·calling·<a·href="../struct.CString.html#method.into_raw"·title="method·alloc::ffi::CString::into_raw"><code>CString::into_raw</code></a>.·Other·usage·(e.g.,·trying·to·take101 obtained·by·calling·<a·href="../struct.CString.html#method.into_raw"·title="method·alloc::ffi::CString::into_raw"><code>CString::into_raw</code></a>.·Other·usage·(e.g.,·trying·to·take
102 ownership·of·a·string·that·was·allocated·by·foreign·code)·is·likely·to·lead102 ownership·of·a·string·that·was·allocated·by·foreign·code)·is·likely·to·lead
103 to·undefined·behavior·or·allocator·corruption.</p>103 to·undefined·behavior·or·allocator·corruption.</p>
104 <p>It·should·be·noted·that·the·length·isn’t·just·“recomputed,”·but·that104 <p>It·should·be·noted·that·the·length·isn’t·just·“recomputed,”·but·that
105 the·recomputed·length·must·match·the·original·length·from·the105 the·recomputed·length·must·match·the·original·length·from·the
106 <a·href="../struct.CString.html#method.into_raw"·title="method·alloc::ffi::CString::into_raw"><code>CString::into_raw</code></a>·call.·This·means·the·<a·href="../struct.CString.html#method.into_raw"·title="method·alloc::ffi::CString::into_raw"><code>CString::into_raw</code></a>/<code>from_raw</code>106 <a·href="../struct.CString.html#method.into_raw"·title="method·alloc::ffi::CString::into_raw"><code>CString::into_raw</code></a>·call.·This·means·the·<a·href="../struct.CString.html#method.into_raw"·title="method·alloc::ffi::CString::into_raw"><code>CString::into_raw</code></a>/<code>from_raw</code>
107 methods·should·not·be·used·when·passing·the·string·to·C·functions·that·can107 methods·should·not·be·used·when·passing·the·string·to·C·functions·that·can
108 modify·the·string’s·length.</p>108 modify·the·string’s·length.</p>
109 <blockquote>109 <blockquote>
110 <p><strong>Note:</strong>·If·you·need·to·borrow·a·string·that·was·allocated·by110 <p><strong>Note:</strong>·If·you·need·to·borrow·a·string·that·was·allocated·by
111 foreign·code,·use·<a·href="https://doc.rust-lang.org/1.84.0/core/ffi/c_str/struct.CStr.html"·title="struct·core::ffi::c_str::CStr"><code>CStr</code></a>.·If·you·need·to·take·ownership·of111 foreign·code,·use·<a·href="../../../core/ffi/c_str/struct.CStr.html"·title="struct·core::ffi::c_str::CStr"><code>CStr</code></a>.·If·you·need·to·take·ownership·of
112 a·string·that·was·allocated·by·foreign·code,·you·will·need·to112 a·string·that·was·allocated·by·foreign·code,·you·will·need·to
113 make·your·own·provisions·for·freeing·it·appropriately,·likely113 make·your·own·provisions·for·freeing·it·appropriately,·likely
114 with·the·foreign·code’s·API·to·do·that.</p>114 with·the·foreign·code’s·API·to·do·that.</p>
115 </blockquote>115 </blockquote>
116 <h5·id="examples-3"><a·class="doc-anchor"·href="#examples-3">§</a>Examples</h5>116 <h5·id="examples-3"><a·class="doc-anchor"·href="#examples-3">§</a>Examples</h5>
117 <p>Creates·a·<code>CString</code>,·pass·ownership·to·an·<code>extern</code>·function·(via·raw·pointer),·then·retake117 <p>Creates·a·<code>CString</code>,·pass·ownership·to·an·<code>extern</code>·function·(via·raw·pointer),·then·retake
118 ownership·with·<code>from_raw</code>:</p>118 ownership·with·<code>from_raw</code>:</p>
Offset 127, 15 lines modifiedOffset 127, 15 lines modified
  
127 <span·class="kw">let·</span>c_string·=·CString::new(<span·class="string">"Hello!"</span>).expect(<span·class="string">"CString::new·failed"</span>);127 <span·class="kw">let·</span>c_string·=·CString::new(<span·class="string">"Hello!"</span>).expect(<span·class="string">"CString::new·failed"</span>);
128 <span·class="kw">let·</span>raw·=·c_string.into_raw();128 <span·class="kw">let·</span>raw·=·c_string.into_raw();
129 <span·class="kw">unsafe·</span>{129 <span·class="kw">unsafe·</span>{
130 ····some_extern_function(raw);130 ····some_extern_function(raw);
131 ····<span·class="kw">let·</span>c_string·=·CString::from_raw(raw);131 ····<span·class="kw">let·</span>c_string·=·CString::from_raw(raw);
132 }</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::ffi::CString;%0A++++use+std::os::raw::c_char;%0A++++%0A++++extern+%22C%22+%7B%0A++++++++fn+some_extern_function(s:+*mut+c_char);%0A++++%7D%0A++++%0A++++let+c_string+=+CString::new(%22Hello!%22).expect(%22CString::new+failed%22);%0A++++let+raw+=+c_string.into_raw();%0A++++unsafe+%7B%0A++++++++some_extern_function(raw);%0A++++++++let+c_string+=+CString::from_raw(raw);%0A++++%7D%0A%7D&amp;edition=2021"></a></div>132 }</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::ffi::CString;%0A++++use+std::os::raw::c_char;%0A++++%0A++++extern+%22C%22+%7B%0A++++++++fn+some_extern_function(s:+*mut+c_char);%0A++++%7D%0A++++%0A++++let+c_string+=+CString::new(%22Hello!%22).expect(%22CString::new+failed%22);%0A++++let+raw+=+c_string.into_raw();%0A++++unsafe+%7B%0A++++++++some_extern_function(raw);%0A++++++++let+c_string+=+CString::from_raw(raw);%0A++++%7D%0A%7D&amp;edition=2021"></a></div>
133 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.into_raw"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.4.0">1.4.0</span>···<a·class="src"·href="../../../src/alloc/ffi/c_str.rs.html#449-451">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.into_raw"·class="fn">into_raw</a>(self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.pointer.html">*mut·</a><a·class="type"·href="https://doc.rust-lang.org/1.84.0/core/ffi/type.c_char.html"·title="type·core::ffi::c_char">c_char</a></h4></section></summary><div·class="docblock"><p>Consumes·the·<code>CString</code>·and·transfers·ownership·of·the·string·to·a·C·caller.</p>133 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.into_raw"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.4.0">1.4.0</span>···<a·class="src"·href="../../../src/alloc/ffi/c_str.rs.html#449-451">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.into_raw"·class="fn">into_raw</a>(self)·-&gt;·<a·class="primitive"·href="../../../core/primitive.pointer.html">*mut·</a><a·class="type"·href="../../../core/ffi/type.c_char.html"·title="type·core::ffi::c_char">c_char</a></h4></section></summary><div·class="docblock"><p>Consumes·the·<code>CString</code>·and·transfers·ownership·of·the·string·to·a·C·caller.</p>
134 <p>The·pointer·which·this·function·returns·must·be·returned·to·Rust·and·reconstituted·using134 <p>The·pointer·which·this·function·returns·must·be·returned·to·Rust·and·reconstituted·using
135 <a·href="../struct.CString.html#method.from_raw"·title="associated·function·alloc::ffi::CString::from_raw"><code>CString::from_raw</code></a>·to·be·properly·deallocated.·Specifically,·one135 <a·href="../struct.CString.html#method.from_raw"·title="associated·function·alloc::ffi::CString::from_raw"><code>CString::from_raw</code></a>·to·be·properly·deallocated.·Specifically,·one
136 should·<em>not</em>·use·the·standard·C·<code>free()</code>·function·to·deallocate136 should·<em>not</em>·use·the·standard·C·<code>free()</code>·function·to·deallocate
137 this·string.</p>137 this·string.</p>
138 <p>Failure·to·call·<a·href="../struct.CString.html#method.from_raw"·title="associated·function·alloc::ffi::CString::from_raw"><code>CString::from_raw</code></a>·will·lead·to·a·memory·leak.</p>138 <p>Failure·to·call·<a·href="../struct.CString.html#method.from_raw"·title="associated·function·alloc::ffi::CString::from_raw"><code>CString::from_raw</code></a>·will·lead·to·a·memory·leak.</p>
139 <p>The·C·side·must·<strong>not</strong>·modify·the·length·of·the·string·(by·writing·a139 <p>The·C·side·must·<strong>not</strong>·modify·the·length·of·the·string·(by·writing·a
140 nul·byte·somewhere·inside·the·string·or·removing·the·final·one)·before140 nul·byte·somewhere·inside·the·string·or·removing·the·final·one)·before
Offset 153, 92 lines modifiedOffset 153, 92 lines modified
153 ····<span·class="macro">assert_eq!</span>(<span·class="string">b'o'</span>,·<span·class="kw-2">*</span>ptr.add(<span·class="number">1</span>)·<span·class="kw">as·</span>u8);153 ····<span·class="macro">assert_eq!</span>(<span·class="string">b'o'</span>,·<span·class="kw-2">*</span>ptr.add(<span·class="number">1</span>)·<span·class="kw">as·</span>u8);
154 ····<span·class="macro">assert_eq!</span>(<span·class="string">b'o'</span>,·<span·class="kw-2">*</span>ptr.add(<span·class="number">2</span>)·<span·class="kw">as·</span>u8);154 ····<span·class="macro">assert_eq!</span>(<span·class="string">b'o'</span>,·<span·class="kw-2">*</span>ptr.add(<span·class="number">2</span>)·<span·class="kw">as·</span>u8);
155 ····<span·class="macro">assert_eq!</span>(<span·class="string">b'\0'</span>,·<span·class="kw-2">*</span>ptr.add(<span·class="number">3</span>)·<span·class="kw">as·</span>u8);155 ····<span·class="macro">assert_eq!</span>(<span·class="string">b'\0'</span>,·<span·class="kw-2">*</span>ptr.add(<span·class="number">3</span>)·<span·class="kw">as·</span>u8);
  
156 ····<span·class="comment">//·retake·pointer·to·free·memory156 ····<span·class="comment">//·retake·pointer·to·free·memory
Max diff block lines reached; 199022/232425 bytes (85.63%) of diff not shown.
70.9 KB
./usr/share/doc/rust-doc/html/alloc/ffi/c_str/struct.FromVecWithNulError.html
    
Offset 3, 49 lines modifiedOffset 3, 49 lines modified
3 positioned·at·the·end.</p>3 positioned·at·the·end.</p>
4 <p>This·error·is·created·by·the·<a·href="../struct.CString.html#method.from_vec_with_nul"·title="associated·function·alloc::ffi::CString::from_vec_with_nul"><code>CString::from_vec_with_nul</code></a>·method.4 <p>This·error·is·created·by·the·<a·href="../struct.CString.html#method.from_vec_with_nul"·title="associated·function·alloc::ffi::CString::from_vec_with_nul"><code>CString::from_vec_with_nul</code></a>·method.
5 See·its·documentation·for·more.</p>5 See·its·documentation·for·more.</p>
6 <h2·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h2>6 <h2·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h2>
7 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::ffi::{CString,·FromVecWithNulError};7 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::ffi::{CString,·FromVecWithNulError};
  
8 <span·class="kw">let·_</span>:·FromVecWithNulError·=·CString::from_vec_with_nul(<span·class="string">b"f\0oo"</span>.to_vec()).unwrap_err();</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::ffi::%7BCString,+FromVecWithNulError%7D;%0A++++%0A++++let+_:+FromVecWithNulError+=+CString::from_vec_with_nul(b%22f%5C0oo%22.to_vec()).unwrap_err();%0A%7D&amp;edition=2021"></a></div>8 <span·class="kw">let·_</span>:·FromVecWithNulError·=·CString::from_vec_with_nul(<span·class="string">b"f\0oo"</span>.to_vec()).unwrap_err();</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::ffi::%7BCString,+FromVecWithNulError%7D;%0A++++%0A++++let+_:+FromVecWithNulError+=+CString::from_vec_with_nul(b%22f%5C0oo%22.to_vec()).unwrap_err();%0A%7D&amp;edition=2021"></a></div>
9 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-FromVecWithNulError"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.58.0">1.58.0</span>···<a·class="src"·href="../../../src/alloc/ffi/c_str.rs.html#166-214">Source</a></span><a·href="#impl-FromVecWithNulError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="struct"·href="../struct.FromVecWithNulError.html"·title="struct·alloc::ffi::FromVecWithNulError">FromVecWithNulError</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.as_bytes"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.58.0">1.58.0</span>···<a·class="src"·href="../../../src/alloc/ffi/c_str.rs.html#185-187">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.as_bytes"·class="fn">as_bytes</a>(&amp;self)·-&gt;·&amp;[<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.u8.html">u8</a>]</h4></section></summary><div·class="docblock"><p>Returns·a·slice·of·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.u8.html"·title="primitive·u8"><code>u8</code></a>s·bytes·that·were·attempted·to·convert·to·a·<a·href="../struct.CString.html"·title="struct·alloc::ffi::CString"><code>CString</code></a>.</p>9 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-FromVecWithNulError"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.58.0">1.58.0</span>···<a·class="src"·href="../../../src/alloc/ffi/c_str.rs.html#166-214">Source</a></span><a·href="#impl-FromVecWithNulError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="struct"·href="../struct.FromVecWithNulError.html"·title="struct·alloc::ffi::FromVecWithNulError">FromVecWithNulError</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.as_bytes"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.58.0">1.58.0</span>···<a·class="src"·href="../../../src/alloc/ffi/c_str.rs.html#185-187">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.as_bytes"·class="fn">as_bytes</a>(&amp;self)·-&gt;·&amp;[<a·class="primitive"·href="../../../core/primitive.u8.html">u8</a>]</h4></section></summary><div·class="docblock"><p>Returns·a·slice·of·<a·href="../../../core/primitive.u8.html"·title="primitive·u8"><code>u8</code></a>s·bytes·that·were·attempted·to·convert·to·a·<a·href="../struct.CString.html"·title="struct·alloc::ffi::CString"><code>CString</code></a>.</p>
10 <h5·id="examples-1"><a·class="doc-anchor"·href="#examples-1">§</a>Examples</h5>10 <h5·id="examples-1"><a·class="doc-anchor"·href="#examples-1">§</a>Examples</h5>
11 <p>Basic·usage:</p>11 <p>Basic·usage:</p>
  
12 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::ffi::CString;12 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::ffi::CString;
  
13 <span·class="comment">//·Some·invalid·bytes·in·a·vector13 <span·class="comment">//·Some·invalid·bytes·in·a·vector
14 </span><span·class="kw">let·</span>bytes·=·<span·class="string">b"f\0oo"</span>.to_vec();14 </span><span·class="kw">let·</span>bytes·=·<span·class="string">b"f\0oo"</span>.to_vec();
  
15 <span·class="kw">let·</span>value·=·CString::from_vec_with_nul(bytes.clone());15 <span·class="kw">let·</span>value·=·CString::from_vec_with_nul(bytes.clone());
  
16 <span·class="macro">assert_eq!</span>(<span·class="kw-2">&amp;</span>bytes[..],·value.unwrap_err().as_bytes());</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::ffi::CString;%0A++++%0A++++//+Some+invalid+bytes+in+a+vector%0A++++let+bytes+=+b%22f%5C0oo%22.to_vec();%0A++++%0A++++let+value+=+CString::from_vec_with_nul(bytes.clone());%0A++++%0A++++assert_eq!(%26bytes%5B..%5D,+value.unwrap_err().as_bytes());%0A%7D&amp;edition=2021"></a></div>16 <span·class="macro">assert_eq!</span>(<span·class="kw-2">&amp;</span>bytes[..],·value.unwrap_err().as_bytes());</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::ffi::CString;%0A++++%0A++++//+Some+invalid+bytes+in+a+vector%0A++++let+bytes+=+b%22f%5C0oo%22.to_vec();%0A++++%0A++++let+value+=+CString::from_vec_with_nul(bytes.clone());%0A++++%0A++++assert_eq!(%26bytes%5B..%5D,+value.unwrap_err().as_bytes());%0A%7D&amp;edition=2021"></a></div>
17 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.into_bytes"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.58.0">1.58.0</span>···<a·class="src"·href="../../../src/alloc/ffi/c_str.rs.html#211-213">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.into_bytes"·class="fn">into_bytes</a>(self)·-&gt;·<a·class="struct"·href="../../vec/struct.Vec.html"·title="struct·alloc::vec::Vec">Vec</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.u8.html">u8</a>&gt;</h4></section></summary><div·class="docblock"><p>Returns·the·bytes·that·were·attempted·to·convert·to·a·<a·href="../struct.CString.html"·title="struct·alloc::ffi::CString"><code>CString</code></a>.</p>17 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.into_bytes"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.58.0">1.58.0</span>···<a·class="src"·href="../../../src/alloc/ffi/c_str.rs.html#211-213">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.into_bytes"·class="fn">into_bytes</a>(self)·-&gt;·<a·class="struct"·href="../../vec/struct.Vec.html"·title="struct·alloc::vec::Vec">Vec</a>&lt;<a·class="primitive"·href="../../../core/primitive.u8.html">u8</a>&gt;</h4></section></summary><div·class="docblock"><p>Returns·the·bytes·that·were·attempted·to·convert·to·a·<a·href="../struct.CString.html"·title="struct·alloc::ffi::CString"><code>CString</code></a>.</p>
18 <p>This·method·is·carefully·constructed·to·avoid·allocation.·It·will18 <p>This·method·is·carefully·constructed·to·avoid·allocation.·It·will
19 consume·the·error,·moving·out·the·bytes,·so·that·a·copy·of·the·bytes19 consume·the·error,·moving·out·the·bytes,·so·that·a·copy·of·the·bytes
20 does·not·need·to·be·made.</p>20 does·not·need·to·be·made.</p>
21 <h5·id="examples-2"><a·class="doc-anchor"·href="#examples-2">§</a>Examples</h5>21 <h5·id="examples-2"><a·class="doc-anchor"·href="#examples-2">§</a>Examples</h5>
22 <p>Basic·usage:</p>22 <p>Basic·usage:</p>
  
23 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::ffi::CString;23 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::ffi::CString;
  
24 <span·class="comment">//·Some·invalid·bytes·in·a·vector24 <span·class="comment">//·Some·invalid·bytes·in·a·vector
25 </span><span·class="kw">let·</span>bytes·=·<span·class="string">b"f\0oo"</span>.to_vec();25 </span><span·class="kw">let·</span>bytes·=·<span·class="string">b"f\0oo"</span>.to_vec();
  
26 <span·class="kw">let·</span>value·=·CString::from_vec_with_nul(bytes.clone());26 <span·class="kw">let·</span>value·=·CString::from_vec_with_nul(bytes.clone());
  
27 <span·class="macro">assert_eq!</span>(bytes,·value.unwrap_err().into_bytes());</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::ffi::CString;%0A++++%0A++++//+Some+invalid+bytes+in+a+vector%0A++++let+bytes+=+b%22f%5C0oo%22.to_vec();%0A++++%0A++++let+value+=+CString::from_vec_with_nul(bytes.clone());%0A++++%0A++++assert_eq!(bytes,+value.unwrap_err().into_bytes());%0A%7D&amp;edition=2021"></a></div>27 <span·class="macro">assert_eq!</span>(bytes,·value.unwrap_err().into_bytes());</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::ffi::CString;%0A++++%0A++++//+Some+invalid+bytes+in+a+vector%0A++++let+bytes+=+b%22f%5C0oo%22.to_vec();%0A++++%0A++++let+value+=+CString::from_vec_with_nul(bytes.clone());%0A++++%0A++++assert_eq!(bytes,+value.unwrap_err().into_bytes());%0A%7D&amp;edition=2021"></a></div>
28 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-FromVecWithNulError"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.64.0">1.64.0</span>···<a·class="src"·href="../../../src/alloc/ffi/c_str.rs.html#158">Source</a></span><a·href="#impl-Clone-for-FromVecWithNulError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struct"·href="../struct.FromVecWithNulError.html"·title="struct·alloc::ffi::FromVecWithNulError">FromVecWithNulError</a></h3></section></[·...·truncated·by·diffoscope;·len:·11267,·SHA:·6601969ce774d61402a0a3b30c03b9e4aae558bd3690a386b0d43bc1be72b170·...·]/core/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>!=</code>.·The·default·implementation·is·almost·always·sufficient,28 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-FromVecWithNulError"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.64.0">1.64.0</span>···<a·class="src"·href="../../../src/alloc/ffi/c_str.rs.html#158">Source</a></span><a·href="#impl-Clone-for-FromVecWithNulError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struct"·href="../struct.FromVecWithNulError.html"·title="struct·alloc::ffi::FromVecWithNulError">FromVecWithNulError</a></h3></section></summary><div·class="impl[·...·truncated·by·diffoscope;·len:·10523,·SHA:·de75feeddd8bad0c4ef1b8f54446cf06d7c40d12e89cc2886aefc0eb7cd5c2d6·...·]/core/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>!=</code>.·The·default·implementation·is·almost·always·sufficient,
29 and·should·not·be·overridden·without·very·good·reason.</div></details></div></details><section·id="impl-Eq-for-FromVecWithNulError"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.64.0">1.64.0</span>···<a·class="src"·href="../../../src/alloc/ffi/c_str.rs.html#158">Source</a></span><a·href="#impl-Eq-for-FromVecWithNulError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.Eq.html"·title="trait·core::cmp::Eq">Eq</a>·for·<a·class="struct"·href="../struct.FromVecWithNulError.html"·title="struct·alloc::ffi::FromVecWithNulError">FromVecWithNulError</a></h3></section><section·id="im[·...·truncated·by·diffoscope;·len:·4105,·SHA:·341b2925aae92a857b8f22d8b4fa6cd25fdc48b3d8a5864e215d987bea651976·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where29 and·should·not·be·overridden·without·very·good·reason.</div></details></div></details><section·id="impl-Eq-for-FromVecWithNulError"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.64.0">1.64.0</span>···<a·class="src"·href="../../../src/alloc/ffi/c_str.rs.html#158">Source</a></span><a·href="#impl-Eq-for-FromVecWithNulError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../../core/cmp/trait.Eq.html"·title="trait·core::cmp::Eq">Eq</a>·for·<a·class="struct"·href="../struct.FromVecWithNulError.html"·title="struct·alloc::ffi::FromVecWithNulError">FromVecWithNulError</a></h3></section><section·id="impl-StructuralPartialEq-f[·...·truncated·by·diffoscope;·len:·3865,·SHA:·7701d8fca891edbc66514dbf0f22a66108384539d1b87d2b642c736f42551d2f·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where
30 ····T:·'static·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method[·...·truncated·by·diffoscope;·len:·834,·SHA:·47dfc2aa0101a4103e2a94c1f971c559790d87a62d58631fd2bfed98e6616a34·...·]/src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where30 ····T:·'static·+·?<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="s[·...·truncated·by·diffoscope;·len:·690,·SHA:·5140301cd9ff79a41eb9c4e21645354b7b39f4611f9b3646b7c859a62ac61067·...·]/src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where
31 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·[·...·truncated·by·diffoscope;·len:·743,·SHA:·b1db3ba49d399b0b1340fa997418ee1ae0ece93cc3579963c53bf7040ec0ded6·...·]/src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.BorrowMut.html"·title="trait·alloc::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where31 ····T:·?<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="sr[·...·truncated·by·diffoscope;·len:·647,·SHA:·eced384f314b303c18919389c5abe4a96aec1091fccffab1a095e21ec4389338·...·]/src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.BorrowMut.html"·title="trait·alloc::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where
32 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="met[·...·truncated·by·diffoscope;·len:·960,·SHA:·c6354ea8fcf3b570a130235df299ddea9063b0fb7e35c91d7c9308744705dcad·...·]/core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where32 ····T:·?<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class[·...·truncated·by·diffoscope;·len:·840,·SHA:·65730076d1351b96bbc7870dcc45245c8046decde9b269779ff691512c7b6cda·...·]/core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where
33 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="[·...·truncated·by·diffoscope;·len:·1883,·SHA:·e07301fb9e28f950d7450480a6b68014ffcdcc3be12b1adda27936cb1244377e·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>33 ····T:·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·cl[·...·truncated·by·diffoscope;·len:·1643,·SHA:·1eae2ed9452ffcbbe8b3cb569c26d9b61c935793fb647d6b79fd502b505ae03b·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>
34 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where34 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where
35 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="m[·...·truncated·by·diffoscope;·len:·237,·SHA:·98603c35860102b3af9b5cf27aeabf39e3c03236551986a6ec030817f108d919·...·]/core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>35 ····U:·<a·class="trait"·href="../../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·cla[·...·truncated·by·diffoscope;·len:·165,·SHA:·423a04a226f49c7f9a948f8c413dc8519f4a9a96a55914b6e6a694710d81c0f7·...·]/core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>
36 <p>That·is,·this·conversion·is·whatever·the·implementation·of36 <p>That·is,·this·conversion·is·whatever·the·implementation·of
37 <code><a·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>37 <code><a·href="../../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>
38 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/borrow.rs.html#82-94">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where38 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/borrow.rs.html#82-94">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where
39 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·t[·...·truncated·by·diffoscope;·len:·1371,·SHA:·ac6a902143d4c66cbd5b550f09f2d40087fda3f7614581e6d57eee722a148cdb·...·]/core/primitive.reference.html">&amp;mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../../borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToString-for-T"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/string.rs.html#2677-2691">Source</a><a·href="#impl-ToString-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../string/trait.ToString.html"·title="trait·alloc::string::ToString">ToString</a>·for·T<div·class="where">where39 ····T:·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src[·...·truncated·by·diffoscope;·len:·1323,·SHA:·9784fad64d9bb4c5a14202acd9718b1f1e8592d658e25e3084249b2764db53a5·...·]/core/primitive.reference.html">&amp;mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../../borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToString-for-T"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/string.rs.html#2677-2691">Source</a><a·href="#impl-ToString-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../string/trait.ToString.html"·title="trait·alloc::string::ToString">ToString</a>·for·T<div·class="where">where
40 ····T:·<a·class="trait"·href="../../fmt/trait.Display.html"·title="trait·alloc::fmt::Display">Display</a>·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.to_string"·class="meth[·...·truncated·by·diffoscope;·len:·968,·SHA:·2c2df86f2afbfe3d87e77f9ea083b53e69f4a2aa7a69f6f52e9bd51d46379330·...·]/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where40 ····T:·<a·class="trait"·href="../../fmt/trait.Display.html"·title="trait·alloc::fmt::Display">Display</a>·+·?<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.to_string"·class="method·trait-impl"><a·class=[·...·truncated·by·diffoscope;·len:·896,·SHA:·74e477dd3d987253dd459192eab2c0b9b9fbf5c7dd792e4c1319bdb2ca39288a·...·]/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where
41 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="asso[·...·truncated·by·diffoscope;·len:·1973,·SHA:·db4b8407e8e20581ad139aef25a6221a11da0f5f18d6aa35aa33eb843f4e1b9f·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where41 ····U:·<a·class="trait"·href="../../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><[·...·truncated·by·diffoscope;·len:·1709,·SHA:·e896b9bb1c9fd7d11ed5b2485b9a6fcb8a8eedc15783c2750df398ecae6b320e·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where
42 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·clas[·...·truncated·by·diffoscope;·len:·1578,·SHA:·998d5af10fd889567cd999d1306bfd16c91134d2238a3c172f1e7fa8ed138c18·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>42 ····U:·<a·class="trait"·href="../../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-[·...·truncated·by·diffoscope;·len:·1338,·SHA:·bf7fc0d673df53e1a193a897ac1592a2d85070ae590f9624c2e5404df56f3bb0·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>
64.8 KB
./usr/share/doc/rust-doc/html/alloc/ffi/c_str/struct.IntoStringError.html
    
Offset 3, 22 lines modifiedOffset 3, 22 lines modified
3 <a·href="../struct.CString.html#method.into_string"·title="method·alloc::ffi::CString::into_string"><code>CString::into_string</code></a>·performs·UTF-8·validation·on·those·bytes·and·may3 <a·href="../struct.CString.html#method.into_string"·title="method·alloc::ffi::CString::into_string"><code>CString::into_string</code></a>·performs·UTF-8·validation·on·those·bytes·and·may
4 return·this·error.</p>4 return·this·error.</p>
5 <p>This·<code>struct</code>·is·created·by·<a·href="../struct.CString.html#method.into_string"·title="method·alloc::ffi::CString::into_string"><code>CString::into_string()</code></a>.·See5 <p>This·<code>struct</code>·is·created·by·<a·href="../struct.CString.html#method.into_string"·title="method·alloc::ffi::CString::into_string"><code>CString::into_string()</code></a>.·See
6 its·documentation·for·more.</p>6 its·documentation·for·more.</p>
7 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-IntoStringError"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/ffi/c_str.rs.html#1048-1063">Source</a><a·href="#impl-IntoStringError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="struct"·href="../struct.IntoStringError.html"·title="struct·alloc::ffi::IntoStringError">IntoStringError</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into_cstring"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.7.0">1.7.0</span>···<a·class="src"·href="../../../src/alloc/ffi/c_str.rs.html#1053-1055">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.into_cstring"·class="fn">into_cstring</a>(self)·-&gt;·<a·class="struct"·href="../struct.CString.html"·title="struct·alloc::ffi::CString">CString</a></h4></section></summary><div·class="docblock"><p>Consumes·this·error,·returning·original·<a·href="../struct.CString.html"·title="struct·alloc::ffi::CString"><code>CString</code></a>·which·generated·the7 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-IntoStringError"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/ffi/c_str.rs.html#1048-1063">Source</a><a·href="#impl-IntoStringError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="struct"·href="../struct.IntoStringError.html"·title="struct·alloc::ffi::IntoStringError">IntoStringError</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into_cstring"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.7.0">1.7.0</span>···<a·class="src"·href="../../../src/alloc/ffi/c_str.rs.html#1053-1055">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.into_cstring"·class="fn">into_cstring</a>(self)·-&gt;·<a·class="struct"·href="../struct.CString.html"·title="struct·alloc::ffi::CString">CString</a></h4></section></summary><div·class="docblock"><p>Consumes·this·error,·returning·original·<a·href="../struct.CString.html"·title="struct·alloc::ffi::CString"><code>CString</code></a>·which·generated·the
8 error.</p>8 error.</p>
9 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.utf8_error"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.7.0">1.7.0</span>···<a·class="src"·href="../../../src/alloc/ffi/c_str.rs.html#1060-1062">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.utf8_error"·class="fn">utf8_error</a>(&amp;self)·-&gt;·<a·class="struct"·href="../../str/struct.Utf8Error.html"·title="struct·alloc::str::Utf8Error">Utf8Error</a></h4></section></summary><div·class="docblock"><p>Access·the·underlying·UTF-8·error·that·was·the·cause·of·this·error.</p>9 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.utf8_error"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.7.0">1.7.0</span>···<a·class="src"·href="../../../src/alloc/ffi/c_str.rs.html#1060-1062">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.utf8_error"·class="fn">utf8_error</a>(&amp;self)·-&gt;·<a·class="struct"·href="../../str/struct.Utf8Error.html"·title="struct·alloc::str::Utf8Error">Utf8Error</a></h4></section></summary><div·class="docblock"><p>Access·the·underlying·UTF-8·error·that·was·the·cause·of·this·error.</p>
10 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-IntoStringError"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.64.0">1.64.0</span>···<a·class="src"·href="../../../src/alloc/ffi/c_str.rs.html#224">Source</a></span><a·href="#impl-Clone-for-IntoStringError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struct"·href="../struct.IntoStringError.html"·title="struct·alloc::ffi::IntoStringError">IntoStringError</a></h3></section></summary><div[·...·truncated·by·diffoscope;·len:·10933,·SHA:·c4134727706db5d52e19a017e9e8c811cccbc444b92d424b4f23b3126ee96adc·...·]/core/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>!=</code>.·The·default·implementation·is·almost·always·sufficient,10 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-IntoStringError"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.64.0">1.64.0</span>···<a·class="src"·href="../../../src/alloc/ffi/c_str.rs.html#224">Source</a></span><a·href="#impl-Clone-for-IntoStringError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struct"·href="../struct.IntoStringError.html"·title="struct·alloc::ffi::IntoStringError">IntoStringError</a></h3></section></summary><div·class="impl-items"><det[·...·truncated·by·diffoscope;·len:·10237,·SHA:·4c10b96b642a62e33e7f4a782b2d953e678bc3589d58ecfabf59e361d52a5eca·...·]/core/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>!=</code>.·The·default·implementation·is·almost·always·sufficient,
11 and·should·not·be·overridden·without·very·good·reason.</div></details></div></details><section·id="impl-Eq-for-IntoStringError"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.64.0">1.64.0</span>···<a·class="src"·href="../../../src/alloc/ffi/c_str.rs.html#224">Source</a></span><a·href="#impl-Eq-for-IntoStringError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.Eq.html"·title="trait·core::cmp::Eq">Eq</a>·for·<a·class="struct"·href="../struct.IntoStringError.html"·title="struct·alloc::ffi::IntoStringError">IntoStringError</a></h3></section><section·id="impl-Structura[·...·truncated·by·diffoscope;·len:·3953,·SHA:·f33f0f436c5be25231fd15bf4f08bd6274339f18998c66fbf5c29aa8d8ad2bee·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where11 and·should·not·be·overridden·without·very·good·reason.</div></details></div></details><section·id="impl-Eq-for-IntoStringError"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.64.0">1.64.0</span>···<a·class="src"·href="../../../src/alloc/ffi/c_str.rs.html#224">Source</a></span><a·href="#impl-Eq-for-IntoStringError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../../core/cmp/trait.Eq.html"·title="trait·core::cmp::Eq">Eq</a>·for·<a·class="struct"·href="../struct.IntoStringError.html"·title="struct·alloc::ffi::IntoStringError">IntoStringError</a></h3></section><section·id="impl-StructuralPartialEq-for-IntoStrin[·...·truncated·by·diffoscope;·len:·3713,·SHA:·a3fcd1e6f2a255d67ce65bbda2f22c174624a518fbd2a55df81504facb22bc7b·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where
12 ····T:·'static·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method[·...·truncated·by·diffoscope;·len:·834,·SHA:·47dfc2aa0101a4103e2a94c1f971c559790d87a62d58631fd2bfed98e6616a34·...·]/src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where12 ····T:·'static·+·?<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="s[·...·truncated·by·diffoscope;·len:·690,·SHA:·5140301cd9ff79a41eb9c4e21645354b7b39f4611f9b3646b7c859a62ac61067·...·]/src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where
13 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·[·...·truncated·by·diffoscope;·len:·743,·SHA:·b1db3ba49d399b0b1340fa997418ee1ae0ece93cc3579963c53bf7040ec0ded6·...·]/src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.BorrowMut.html"·title="trait·alloc::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where13 ····T:·?<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="sr[·...·truncated·by·diffoscope;·len:·647,·SHA:·eced384f314b303c18919389c5abe4a96aec1091fccffab1a095e21ec4389338·...·]/src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.BorrowMut.html"·title="trait·alloc::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where
14 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="met[·...·truncated·by·diffoscope;·len:·960,·SHA:·c6354ea8fcf3b570a130235df299ddea9063b0fb7e35c91d7c9308744705dcad·...·]/core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where14 ····T:·?<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class[·...·truncated·by·diffoscope;·len:·840,·SHA:·65730076d1351b96bbc7870dcc45245c8046decde9b269779ff691512c7b6cda·...·]/core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where
15 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="[·...·truncated·by·diffoscope;·len:·1883,·SHA:·e07301fb9e28f950d7450480a6b68014ffcdcc3be12b1adda27936cb1244377e·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>15 ····T:·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·cl[·...·truncated·by·diffoscope;·len:·1643,·SHA:·1eae2ed9452ffcbbe8b3cb569c26d9b61c935793fb647d6b79fd502b505ae03b·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>
16 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where16 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where
17 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="m[·...·truncated·by·diffoscope;·len:·237,·SHA:·98603c35860102b3af9b5cf27aeabf39e3c03236551986a6ec030817f108d919·...·]/core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>17 ····U:·<a·class="trait"·href="../../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·cla[·...·truncated·by·diffoscope;·len:·165,·SHA:·423a04a226f49c7f9a948f8c413dc8519f4a9a96a55914b6e6a694710d81c0f7·...·]/core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>
18 <p>That·is,·this·conversion·is·whatever·the·implementation·of18 <p>That·is,·this·conversion·is·whatever·the·implementation·of
19 <code><a·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>19 <code><a·href="../../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>
20 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/borrow.rs.html#82-94">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where20 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/borrow.rs.html#82-94">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where
21 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·t[·...·truncated·by·diffoscope;·len:·1371,·SHA:·ac6a902143d4c66cbd5b550f09f2d40087fda3f7614581e6d57eee722a148cdb·...·]/core/primitive.reference.html">&amp;mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../../borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToString-for-T"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/string.rs.html#2677-2691">Source</a><a·href="#impl-ToString-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../string/trait.ToString.html"·title="trait·alloc::string::ToString">ToString</a>·for·T<div·class="where">where21 ····T:·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src[·...·truncated·by·diffoscope;·len:·1323,·SHA:·9784fad64d9bb4c5a14202acd9718b1f1e8592d658e25e3084249b2764db53a5·...·]/core/primitive.reference.html">&amp;mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../../borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToString-for-T"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/string.rs.html#2677-2691">Source</a><a·href="#impl-ToString-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../string/trait.ToString.html"·title="trait·alloc::string::ToString">ToString</a>·for·T<div·class="where">where
22 ····T:·<a·class="trait"·href="../../fmt/trait.Display.html"·title="trait·alloc::fmt::Display">Display</a>·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.to_string"·class="meth[·...·truncated·by·diffoscope;·len:·968,·SHA:·2c2df86f2afbfe3d87e77f9ea083b53e69f4a2aa7a69f6f52e9bd51d46379330·...·]/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where22 ····T:·<a·class="trait"·href="../../fmt/trait.Display.html"·title="trait·alloc::fmt::Display">Display</a>·+·?<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.to_string"·class="method·trait-impl"><a·class=[·...·truncated·by·diffoscope;·len:·896,·SHA:·74e477dd3d987253dd459192eab2c0b9b9fbf5c7dd792e4c1319bdb2ca39288a·...·]/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where
23 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="asso[·...·truncated·by·diffoscope;·len:·1973,·SHA:·db4b8407e8e20581ad139aef25a6221a11da0f5f18d6aa35aa33eb843f4e1b9f·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where23 ····U:·<a·class="trait"·href="../../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><[·...·truncated·by·diffoscope;·len:·1709,·SHA:·e896b9bb1c9fd7d11ed5b2485b9a6fcb8a8eedc15783c2750df398ecae6b320e·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where
24 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·clas[·...·truncated·by·diffoscope;·len:·1578,·SHA:·998d5af10fd889567cd999d1306bfd16c91134d2238a3c172f1e7fa8ed138c18·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>24 ····U:·<a·class="trait"·href="../../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-[·...·truncated·by·diffoscope;·len:·1338,·SHA:·bf7fc0d673df53e1a193a897ac1592a2d85070ae590f9624c2e5404df56f3bb0·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>
68.3 KB
./usr/share/doc/rust-doc/html/alloc/ffi/c_str/struct.NulError.html
    
Offset 3, 39 lines modifiedOffset 3, 39 lines modified
3 can’t,·as·that·byte·would·effectively·truncate·the·string.</p>3 can’t,·as·that·byte·would·effectively·truncate·the·string.</p>
4 <p>This·error·is·created·by·the·<a·href="../struct.CString.html#method.new"·title="associated·function·alloc::ffi::CString::new"><code>new</code></a>·method·on4 <p>This·error·is·created·by·the·<a·href="../struct.CString.html#method.new"·title="associated·function·alloc::ffi::CString::new"><code>new</code></a>·method·on
5 <a·href="../struct.CString.html"·title="struct·alloc::ffi::CString"><code>CString</code></a>.·See·its·documentation·for·more.</p>5 <a·href="../struct.CString.html"·title="struct·alloc::ffi::CString"><code>CString</code></a>.·See·its·documentation·for·more.</p>
6 <h2·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h2>6 <h2·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h2>
7 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::ffi::{CString,·NulError};7 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::ffi::{CString,·NulError};
  
8 <span·class="kw">let·_</span>:·NulError·=·CString::new(<span·class="string">b"f\0oo"</span>.to_vec()).unwrap_err();</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::ffi::%7BCString,+NulError%7D;%0A++++%0A++++let+_:+NulError+=+CString::new(b%22f%5C0oo%22.to_vec()).unwrap_err();%0A%7D&amp;edition=2021"></a></div>8 <span·class="kw">let·_</span>:·NulError·=·CString::new(<span·class="string">b"f\0oo"</span>.to_vec()).unwrap_err();</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::ffi::%7BCString,+NulError%7D;%0A++++%0A++++let+_:+NulError+=+CString::new(b%22f%5C0oo%22.to_vec()).unwrap_err();%0A%7D&amp;edition=2021"></a></div>
9 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-NulError"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/ffi/c_str.rs.html#988-1025">Source</a><a·href="#impl-NulError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="struct"·href="../struct.NulError.html"·title="struct·alloc::ffi::NulError">NulError</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.nul_position"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/ffi/c_str.rs.html#1005-1007">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.nul_position"·class="fn">nul_position</a>(&amp;self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.usize.html">usize</a></h4></section></summary><div·class="docblock"><p>Returns·the·position·of·the·nul·byte·in·the·slice·that·caused9 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-NulError"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/ffi/c_str.rs.html#988-1025">Source</a><a·href="#impl-NulError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="struct"·href="../struct.NulError.html"·title="struct·alloc::ffi::NulError">NulError</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.nul_position"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/ffi/c_str.rs.html#1005-1007">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.nul_position"·class="fn">nul_position</a>(&amp;self)·-&gt;·<a·class="primitive"·href="../../../core/primitive.usize.html">usize</a></h4></section></summary><div·class="docblock"><p>Returns·the·position·of·the·nul·byte·in·the·slice·that·caused
10 <a·href="../struct.CString.html#method.new"·title="associated·function·alloc::ffi::CString::new"><code>CString::new</code></a>·to·fail.</p>10 <a·href="../struct.CString.html#method.new"·title="associated·function·alloc::ffi::CString::new"><code>CString::new</code></a>·to·fail.</p>
11 <h5·id="examples-1"><a·class="doc-anchor"·href="#examples-1">§</a>Examples</h5>11 <h5·id="examples-1"><a·class="doc-anchor"·href="#examples-1">§</a>Examples</h5>
12 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::ffi::CString;12 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::ffi::CString;
  
13 <span·class="kw">let·</span>nul_error·=·CString::new(<span·class="string">"foo\0bar"</span>).unwrap_err();13 <span·class="kw">let·</span>nul_error·=·CString::new(<span·class="string">"foo\0bar"</span>).unwrap_err();
14 <span·class="macro">assert_eq!</span>(nul_error.nul_position(),·<span·class="number">3</span>);14 <span·class="macro">assert_eq!</span>(nul_error.nul_position(),·<span·class="number">3</span>);
  
15 <span·class="kw">let·</span>nul_error·=·CString::new(<span·class="string">"foo·bar\0"</span>).unwrap_err();15 <span·class="kw">let·</span>nul_error·=·CString::new(<span·class="string">"foo·bar\0"</span>).unwrap_err();
16 <span·class="macro">assert_eq!</span>(nul_error.nul_position(),·<span·class="number">7</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::ffi::CString;%0A++++%0A++++let+nul_error+=+CString::new(%22foo%5C0bar%22).unwrap_err();%0A++++assert_eq!(nul_error.nul_position(),+3);%0A++++%0A++++let+nul_error+=+CString::new(%22foo+bar%5C0%22).unwrap_err();%0A++++assert_eq!(nul_error.nul_position(),+7);%0A%7D&amp;edition=2021"></a></div>16 <span·class="macro">assert_eq!</span>(nul_error.nul_position(),·<span·class="number">7</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::ffi::CString;%0A++++%0A++++let+nul_error+=+CString::new(%22foo%5C0bar%22).unwrap_err();%0A++++assert_eq!(nul_error.nul_position(),+3);%0A++++%0A++++let+nul_error+=+CString::new(%22foo+bar%5C0%22).unwrap_err();%0A++++assert_eq!(nul_error.nul_position(),+7);%0A%7D&amp;edition=2021"></a></div>
17 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.into_vec"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/ffi/c_str.rs.html#1022-1024">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.into_vec"·class="fn">into_vec</a>(self)·-&gt;·<a·class="struct"·href="../../vec/struct.Vec.html"·title="struct·alloc::vec::Vec">Vec</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.u8.html">u8</a>&gt;</h4></section></summary><div·class="docblock"><p>Consumes·this·error,·returning·the·underlying·vector·of·bytes·which17 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.into_vec"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/ffi/c_str.rs.html#1022-1024">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.into_vec"·class="fn">into_vec</a>(self)·-&gt;·<a·class="struct"·href="../../vec/struct.Vec.html"·title="struct·alloc::vec::Vec">Vec</a>&lt;<a·class="primitive"·href="../../../core/primitive.u8.html">u8</a>&gt;</h4></section></summary><div·class="docblock"><p>Consumes·this·error,·returning·the·underlying·vector·of·bytes·which
18 generated·the·error·in·the·first·place.</p>18 generated·the·error·in·the·first·place.</p>
19 <h5·id="examples-2"><a·class="doc-anchor"·href="#examples-2">§</a>Examples</h5>19 <h5·id="examples-2"><a·class="doc-anchor"·href="#examples-2">§</a>Examples</h5>
20 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::ffi::CString;20 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::ffi::CString;
  
21 <span·class="kw">let·</span>nul_error·=·CString::new(<span·class="string">"foo\0bar"</span>).unwrap_err();21 <span·class="kw">let·</span>nul_error·=·CString::new(<span·class="string">"foo\0bar"</span>).unwrap_err();
22 <span·class="macro">assert_eq!</span>(nul_error.into_vec(),·<span·class="string">b"foo\0bar"</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::ffi::CString;%0A++++%0A++++let+nul_error+=+CString::new(%22foo%5C0bar%22).unwrap_err();%0A++++assert_eq!(nul_error.into_vec(),+b%22foo%5C0bar%22);%0A%7D&amp;edition=2021"></a></div>22 <span·class="macro">assert_eq!</span>(nul_error.into_vec(),·<span·class="string">b"foo\0bar"</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::ffi::CString;%0A++++%0A++++let+nul_error+=+CString::new(%22foo%5C0bar%22).unwrap_err();%0A++++assert_eq!(nul_error.into_vec(),+b%22foo%5C0bar%22);%0A%7D&amp;edition=2021"></a></div>
23 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-NulError"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.64.0">1.64.0</span>···<a·class="src"·href="../../../src/alloc/ffi/c_str.rs.html#133">Source</a></span><a·href="#impl-Clone-for-NulError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struct"·href="../struct.NulError.html"·title="struct·alloc::ffi::NulError">NulError</a></h3></section></summary><div·class="impl-items"><[·...·truncated·by·diffoscope;·len:·10840,·SHA:·da4779263761530ee6bded6e4b788f209ee953ffe3cc9bf863d34ae885bb62e4·...·]/core/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>!=</code>.·The·default·implementation·is·almost·always·sufficient,23 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-NulError"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.64.0">1.64.0</span>···<a·class="src"·href="../../../src/alloc/ffi/c_str.rs.html#133">Source</a></span><a·href="#impl-Clone-for-NulError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struct"·href="../struct.NulError.html"·title="struct·alloc::ffi::NulError">NulError</a></h3></section></summary><div·class="impl-items"><details·class="toggle·me[·...·truncated·by·diffoscope;·len:·10120,·SHA:·053cefccfbb3f3487cef014a4552c2eb882fe4d7142da2373ed1933bd2ad8567·...·]/core/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>!=</code>.·The·default·implementation·is·almost·always·sufficient,
24 and·should·not·be·overridden·without·very·good·reason.</div></details></div></details><section·id="impl-Eq-for-NulError"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.64.0">1.64.0</span>···<a·class="src"·href="../../../src/alloc/ffi/c_str.rs.html#133">Source</a></span><a·href="#impl-Eq-for-NulError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.Eq.html"·title="trait·core::cmp::Eq">Eq</a>·for·<a·class="struct"·href="../struct.NulError.html"·title="struct·alloc::ffi::NulError">NulError</a></h3></section><section·id="impl-StructuralPartialEq-for-NulErr[·...·truncated·by·diffoscope;·len:·3687,·SHA:·e26ff509cc2d266c4dbe92a9ed3a94127b8421867eb1d8a0ec36ee56068e011b·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where24 and·should·not·be·overridden·without·very·good·reason.</div></details></div></details><section·id="impl-Eq-for-NulError"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.64.0">1.64.0</span>···<a·class="src"·href="../../../src/alloc/ffi/c_str.rs.html#133">Source</a></span><a·href="#impl-Eq-for-NulError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../../core/cmp/trait.Eq.html"·title="trait·core::cmp::Eq">Eq</a>·for·<a·class="struct"·href="../struct.NulError.html"·title="struct·alloc::ffi::NulError">NulError</a></h3></section><section·id="impl-StructuralPartialEq-for-NulError"·class="impl"><span·c[·...·truncated·by·diffoscope;·len:·3447,·SHA:·e5c488a0e41b3bd31bdfb9be3fb246feb12c30d884c3ecdd091e9ae471ba1d1f·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where
25 ····T:·'static·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method[·...·truncated·by·diffoscope;·len:·834,·SHA:·47dfc2aa0101a4103e2a94c1f971c559790d87a62d58631fd2bfed98e6616a34·...·]/src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where25 ····T:·'static·+·?<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="s[·...·truncated·by·diffoscope;·len:·690,·SHA:·5140301cd9ff79a41eb9c4e21645354b7b39f4611f9b3646b7c859a62ac61067·...·]/src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where
26 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·[·...·truncated·by·diffoscope;·len:·743,·SHA:·b1db3ba49d399b0b1340fa997418ee1ae0ece93cc3579963c53bf7040ec0ded6·...·]/src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.BorrowMut.html"·title="trait·alloc::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where26 ····T:·?<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="sr[·...·truncated·by·diffoscope;·len:·647,·SHA:·eced384f314b303c18919389c5abe4a96aec1091fccffab1a095e21ec4389338·...·]/src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.BorrowMut.html"·title="trait·alloc::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where
27 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="met[·...·truncated·by·diffoscope;·len:·960,·SHA:·c6354ea8fcf3b570a130235df299ddea9063b0fb7e35c91d7c9308744705dcad·...·]/core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where27 ····T:·?<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class[·...·truncated·by·diffoscope;·len:·840,·SHA:·65730076d1351b96bbc7870dcc45245c8046decde9b269779ff691512c7b6cda·...·]/core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where
28 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="[·...·truncated·by·diffoscope;·len:·1883,·SHA:·e07301fb9e28f950d7450480a6b68014ffcdcc3be12b1adda27936cb1244377e·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>28 ····T:·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·cl[·...·truncated·by·diffoscope;·len:·1643,·SHA:·1eae2ed9452ffcbbe8b3cb569c26d9b61c935793fb647d6b79fd502b505ae03b·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>
29 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where29 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where
30 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="m[·...·truncated·by·diffoscope;·len:·237,·SHA:·98603c35860102b3af9b5cf27aeabf39e3c03236551986a6ec030817f108d919·...·]/core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>30 ····U:·<a·class="trait"·href="../../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·cla[·...·truncated·by·diffoscope;·len:·165,·SHA:·423a04a226f49c7f9a948f8c413dc8519f4a9a96a55914b6e6a694710d81c0f7·...·]/core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>
31 <p>That·is,·this·conversion·is·whatever·the·implementation·of31 <p>That·is,·this·conversion·is·whatever·the·implementation·of
32 <code><a·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>32 <code><a·href="../../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>
33 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/borrow.rs.html#82-94">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where33 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/borrow.rs.html#82-94">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where
34 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·t[·...·truncated·by·diffoscope;·len:·1371,·SHA:·ac6a902143d4c66cbd5b550f09f2d40087fda3f7614581e6d57eee722a148cdb·...·]/core/primitive.reference.html">&amp;mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../../borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToString-for-T"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/string.rs.html#2677-2691">Source</a><a·href="#impl-ToString-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../string/trait.ToString.html"·title="trait·alloc::string::ToString">ToString</a>·for·T<div·class="where">where34 ····T:·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src[·...·truncated·by·diffoscope;·len:·1323,·SHA:·9784fad64d9bb4c5a14202acd9718b1f1e8592d658e25e3084249b2764db53a5·...·]/core/primitive.reference.html">&amp;mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../../borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToString-for-T"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/string.rs.html#2677-2691">Source</a><a·href="#impl-ToString-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../string/trait.ToString.html"·title="trait·alloc::string::ToString">ToString</a>·for·T<div·class="where">where
35 ····T:·<a·class="trait"·href="../../fmt/trait.Display.html"·title="trait·alloc::fmt::Display">Display</a>·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.to_string"·class="meth[·...·truncated·by·diffoscope;·len:·968,·SHA:·2c2df86f2afbfe3d87e77f9ea083b53e69f4a2aa7a69f6f52e9bd51d46379330·...·]/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where35 ····T:·<a·class="trait"·href="../../fmt/trait.Display.html"·title="trait·alloc::fmt::Display">Display</a>·+·?<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.to_string"·class="method·trait-impl"><a·class=[·...·truncated·by·diffoscope;·len:·896,·SHA:·74e477dd3d987253dd459192eab2c0b9b9fbf5c7dd792e4c1319bdb2ca39288a·...·]/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where
36 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="asso[·...·truncated·by·diffoscope;·len:·1973,·SHA:·db4b8407e8e20581ad139aef25a6221a11da0f5f18d6aa35aa33eb843f4e1b9f·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where36 ····U:·<a·class="trait"·href="../../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><[·...·truncated·by·diffoscope;·len:·1709,·SHA:·e896b9bb1c9fd7d11ed5b2485b9a6fcb8a8eedc15783c2750df398ecae6b320e·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where
37 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·clas[·...·truncated·by·diffoscope;·len:·1578,·SHA:·998d5af10fd889567cd999d1306bfd16c91134d2238a3c172f1e7fa8ed138c18·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>37 ····U:·<a·class="trait"·href="../../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-[·...·truncated·by·diffoscope;·len:·1338,·SHA:·bf7fc0d673df53e1a193a897ac1592a2d85070ae590f9624c2e5404df56f3bb0·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>
7.71 KB
./usr/share/doc/rust-doc/html/alloc/ffi/index.html
    
Offset 2, 15 lines modifiedOffset 2, 15 lines modified
2 <p>This·module·provides·utilities·to·handle·data·across·non-Rust2 <p>This·module·provides·utilities·to·handle·data·across·non-Rust
3 interfaces,·like·other·programming·languages·and·the·underlying3 interfaces,·like·other·programming·languages·and·the·underlying
4 operating·system.·It·is·mainly·of·use·for·FFI·(Foreign·Function4 operating·system.·It·is·mainly·of·use·for·FFI·(Foreign·Function
5 Interface)·bindings·and·code·that·needs·to·exchange·C-like·strings5 Interface)·bindings·and·code·that·needs·to·exchange·C-like·strings
6 with·other·languages.</p>6 with·other·languages.</p>
7 <h2·id="overview"><a·class="doc-anchor"·href="#overview">§</a>Overview</h2>7 <h2·id="overview"><a·class="doc-anchor"·href="#overview">§</a>Overview</h2>
8 <p>Rust·represents·owned·strings·with·the·<a·href="../string/struct.String.html"·title="struct·alloc::string::String"><code>String</code></a>·type,·and8 <p>Rust·represents·owned·strings·with·the·<a·href="../string/struct.String.html"·title="struct·alloc::string::String"><code>String</code></a>·type,·and
9 borrowed·slices·of·strings·with·the·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.str.html"·title="primitive·str"><code>str</code></a>·primitive.·Both·are9 borrowed·slices·of·strings·with·the·<a·href="../../core/primitive.str.html"·title="primitive·str"><code>str</code></a>·primitive.·Both·are
10 always·in·UTF-8·encoding,·and·may·contain·nul·bytes·in·the·middle,10 always·in·UTF-8·encoding,·and·may·contain·nul·bytes·in·the·middle,
11 i.e.,·if·you·look·at·the·bytes·that·make·up·the·string,·there·may11 i.e.,·if·you·look·at·the·bytes·that·make·up·the·string,·there·may
12 be·a·<code>\0</code>·among·them.·Both·<code>String</code>·and·<code>str</code>·store·their·length12 be·a·<code>\0</code>·among·them.·Both·<code>String</code>·and·<code>str</code>·store·their·length
13 explicitly;·there·are·no·nul·terminators·at·the·end·of·strings13 explicitly;·there·are·no·nul·terminators·at·the·end·of·strings
14 like·in·C.</p>14 like·in·C.</p>
15 <p>C·strings·are·different·from·Rust·strings:</p>15 <p>C·strings·are·different·from·Rust·strings:</p>
16 <ul>16 <ul>
Offset 23, 15 lines modifiedOffset 23, 15 lines modified
23 <li>23 <li>
24 <p><strong>Character·size</strong>·-·C·strings·may·use·<code>char</code>·or·<code>wchar_t</code>-sized24 <p><strong>Character·size</strong>·-·C·strings·may·use·<code>char</code>·or·<code>wchar_t</code>-sized
25 characters;·please·<strong>note</strong>·that·C’s·<code>char</code>·is·different·from·Rust’s.25 characters;·please·<strong>note</strong>·that·C’s·<code>char</code>·is·different·from·Rust’s.
26 The·C·standard·leaves·the·actual·sizes·of·those·types·open·to26 The·C·standard·leaves·the·actual·sizes·of·those·types·open·to
27 interpretation,·but·defines·different·APIs·for·strings·made·up·of27 interpretation,·but·defines·different·APIs·for·strings·made·up·of
28 each·character·type.·Rust·strings·are·always·UTF-8,·so·different28 each·character·type.·Rust·strings·are·always·UTF-8,·so·different
29 Unicode·characters·will·be·encoded·in·a·variable·number·of·bytes29 Unicode·characters·will·be·encoded·in·a·variable·number·of·bytes
30 each.·The·Rust·type·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.char.html"·title="primitive·char"><code>char</code></a>·represents·a·‘[Unicode·scalar30 each.·The·Rust·type·<a·href="../../core/primitive.char.html"·title="primitive·char"><code>char</code></a>·represents·a·‘[Unicode·scalar
31 value]’,·which·is·similar·to,·but·not·the·same·as,·a·‘[Unicode31 value]’,·which·is·similar·to,·but·not·the·same·as,·a·‘[Unicode
32 code·point]’.</p>32 code·point]’.</p>
33 </li>33 </li>
34 <li>34 <li>
35 <p><strong>Nul·terminators·and·implicit·string·lengths</strong>·-·Often,·C35 <p><strong>Nul·terminators·and·implicit·string·lengths</strong>·-·Often,·C
36 strings·are·nul-terminated,·i.e.,·they·have·a·<code>\0</code>·character·at·the36 strings·are·nul-terminated,·i.e.,·they·have·a·<code>\0</code>·character·at·the
37 end.·The·length·of·a·string·buffer·is·not·stored,·but·has·to·be37 end.·The·length·of·a·string·buffer·is·not·stored,·but·has·to·be
Offset 53, 30 lines modifiedOffset 53, 30 lines modified
53 characters·in·the·middle··a·nul·character·would·essentially53 characters·in·the·middle··a·nul·character·would·essentially
54 truncate·the·string.·Rust·strings·<em>can</em>·have·nul·characters·in54 truncate·the·string.·Rust·strings·<em>can</em>·have·nul·characters·in
55 the·middle,·because·nul·does·not·have·to·mark·the·end·of·the55 the·middle,·because·nul·does·not·have·to·mark·the·end·of·the
56 string·in·Rust.</p>56 string·in·Rust.</p>
57 </li>57 </li>
58 </ul>58 </ul>
59 <h2·id="representations-of-non-rust-strings"><a·class="doc-anchor"·href="#representations-of-non-rust-strings">§</a>Representations·of·non-Rust·strings</h2>59 <h2·id="representations-of-non-rust-strings"><a·class="doc-anchor"·href="#representations-of-non-rust-strings">§</a>Representations·of·non-Rust·strings</h2>
60 <p><a·href="struct.CString.html"·title="struct·alloc::ffi::CString"><code>CString</code></a>·and·<a·href="https://doc.rust-lang.org/1.84.0/core/ffi/c_str/struct.CStr.html"·title="struct·core::ffi::c_str::CStr"><code>CStr</code></a>·are·useful·when·you·need·to·transfer60 <p><a·href="struct.CString.html"·title="struct·alloc::ffi::CString"><code>CString</code></a>·and·<a·href="../../core/ffi/c_str/struct.CStr.html"·title="struct·core::ffi::c_str::CStr"><code>CStr</code></a>·are·useful·when·you·need·to·transfer
61 UTF-8·strings·to·and·from·languages·with·a·C·ABI,·like·Python.</p>61 UTF-8·strings·to·and·from·languages·with·a·C·ABI,·like·Python.</p>
62 <ul>62 <ul>
63 <li>63 <li>
64 <p><strong>From·Rust·to·C:</strong>·<a·href="struct.CString.html"·title="struct·alloc::ffi::CString"><code>CString</code></a>·represents·an·owned,·C-friendly64 <p><strong>From·Rust·to·C:</strong>·<a·href="struct.CString.html"·title="struct·alloc::ffi::CString"><code>CString</code></a>·represents·an·owned,·C-friendly
65 string:·it·is·nul-terminated,·and·has·no·internal·nul·characters.65 string:·it·is·nul-terminated,·and·has·no·internal·nul·characters.
66 Rust·code·can·create·a·<a·href="struct.CString.html"·title="struct·alloc::ffi::CString"><code>CString</code></a>·out·of·a·normal·string·(provided66 Rust·code·can·create·a·<a·href="struct.CString.html"·title="struct·alloc::ffi::CString"><code>CString</code></a>·out·of·a·normal·string·(provided
67 that·the·string·doesn’t·have·nul·characters·in·the·middle),·and67 that·the·string·doesn’t·have·nul·characters·in·the·middle),·and
68 then·use·a·variety·of·methods·to·obtain·a·raw·<code>*mut·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.u8.html"·title="primitive·u8">u8</a></code>·that·can68 then·use·a·variety·of·methods·to·obtain·a·raw·<code>*mut·<a·href="../../core/primitive.u8.html"·title="primitive·u8">u8</a></code>·that·can
69 then·be·passed·as·an·argument·to·functions·which·use·the·C69 then·be·passed·as·an·argument·to·functions·which·use·the·C
70 conventions·for·strings.</p>70 conventions·for·strings.</p>
71 </li>71 </li>
72 <li>72 <li>
73 <p><strong>From·C·to·Rust:</strong>·<a·href="https://doc.rust-lang.org/1.84.0/core/ffi/c_str/struct.CStr.html"·title="struct·core::ffi::c_str::CStr"><code>CStr</code></a>·represents·a·borrowed·C·string;·it73 <p><strong>From·C·to·Rust:</strong>·<a·href="../../core/ffi/c_str/struct.CStr.html"·title="struct·core::ffi::c_str::CStr"><code>CStr</code></a>·represents·a·borrowed·C·string;·it
74 is·what·you·would·use·to·wrap·a·raw·<code>*const·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.u8.html"·title="primitive·u8">u8</a></code>·that·you·got·from74 is·what·you·would·use·to·wrap·a·raw·<code>*const·<a·href="../../core/primitive.u8.html"·title="primitive·u8">u8</a></code>·that·you·got·from
75 a·C·function.·A·<a·href="https://doc.rust-lang.org/1.84.0/core/ffi/c_str/struct.CStr.html"·title="struct·core::ffi::c_str::CStr"><code>CStr</code></a>·is·guaranteed·to·be·a·nul-terminated·array75 a·C·function.·A·<a·href="../../core/ffi/c_str/struct.CStr.html"·title="struct·core::ffi::c_str::CStr"><code>CStr</code></a>·is·guaranteed·to·be·a·nul-terminated·array
76 of·bytes.·Once·you·have·a·<a·href="https://doc.rust-lang.org/1.84.0/core/ffi/c_str/struct.CStr.html"·title="struct·core::ffi::c_str::CStr"><code>CStr</code></a>,·you·can·convert·it·to·a·Rust76 of·bytes.·Once·you·have·a·<a·href="../../core/ffi/c_str/struct.CStr.html"·title="struct·core::ffi::c_str::CStr"><code>CStr</code></a>,·you·can·convert·it·to·a·Rust
77 <code>&amp;<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.str.html"·title="primitive·str">str</a></code>·if·it’s·valid·UTF-8,·or·lossily·convert·it·by·adding77 <code>&amp;<a·href="../../core/primitive.str.html"·title="primitive·str">str</a></code>·if·it’s·valid·UTF-8,·or·lossily·convert·it·by·adding
78 replacement·characters.</p>78 replacement·characters.</p>
79 </li>79 </li>
80 </ul>80 </ul>
81 </div></details><h2·id="modules"·class="section-header">Modules<a·href="#modules"·class="anchor">§</a></h2><ul·class="item-table"><li><div·class="item-name"><a·class="mod"·href="c_str/index.html"·title="mod·alloc::ffi::c_str">c_str</a><wbr><span·class="stab·unstable"·title="">Experimental</span></div><div·class="desc·docblock-short"><a·href="struct.CString.html"·title="struct·alloc::ffi::CString"><code>CString</code></a>·and·its·related·types.</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.CString.html"·title="struct·alloc::ffi::CString">CString</a></div><div·class="desc·docblock-short">A·type·representing·an·owned,·C-compatible,·nul-terminated·string·with·no·nul·bytes·in·the81 </div></details><h2·id="modules"·class="section-header">Modules<a·href="#modules"·class="anchor">§</a></h2><ul·class="item-table"><li><div·class="item-name"><a·class="mod"·href="c_str/index.html"·title="mod·alloc::ffi::c_str">c_str</a><wbr><span·class="stab·unstable"·title="">Experimental</span></div><div·class="desc·docblock-short"><a·href="struct.CString.html"·title="struct·alloc::ffi::CString"><code>CString</code></a>·and·its·related·types.</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.CString.html"·title="struct·alloc::ffi::CString">CString</a></div><div·class="desc·docblock-short">A·type·representing·an·owned,·C-compatible,·nul-terminated·string·with·no·nul·bytes·in·the
82 middle.</div></li><li><div·class="item-name"><a·class="struct"·href="struct.FromVecWithNulError.html"·title="struct·alloc::ffi::FromVecWithNulError">From<wbr>VecWith<wbr>NulError</a></div><div·class="desc·docblock-short">An·error·indicating·that·a·nul·byte·was·not·in·the·expected·position.</div></li><li><div·class="item-name"><a·class="struct"·href="struct.IntoStringError.html"·title="struct·alloc::ffi::IntoStringError">Into<wbr>String<wbr>Error</a></div><div·class="desc·docblock-short">An·error·indicating·invalid·UTF-8·when·converting·a·<a·href="struct.CString.html"·title="struct·alloc::ffi::CString"><code>CString</code></a>·into·a·<a·href="../string/struct.String.html"·title="struct·alloc::string::String"><code>String</code></a>.</div></li><li><div·class="item-name"><a·class="struct"·href="struct.NulError.html"·title="struct·alloc::ffi::NulError">NulError</a></div><div·class="desc·docblock-short">An·error·indicating·that·an·interior·nul·byte·was·found.</div></li></ul></section></div></main></body></html>82 middle.</div></li><li><div·class="item-name"><a·class="struct"·href="struct.FromVecWithNulError.html"·title="struct·alloc::ffi::FromVecWithNulError">From<wbr>VecWith<wbr>NulError</a></div><div·class="desc·docblock-short">An·error·indicating·that·a·nul·byte·was·not·in·the·expected·position.</div></li><li><div·class="item-name"><a·class="struct"·href="struct.IntoStringError.html"·title="struct·alloc::ffi::IntoStringError">Into<wbr>String<wbr>Error</a></div><div·class="desc·docblock-short">An·error·indicating·invalid·UTF-8·when·converting·a·<a·href="struct.CString.html"·title="struct·alloc::ffi::CString"><code>CString</code></a>·into·a·<a·href="../string/struct.String.html"·title="struct·alloc::string::String"><code>String</code></a>.</div></li><li><div·class="item-name"><a·class="struct"·href="struct.NulError.html"·title="struct·alloc::ffi::NulError">NulError</a></div><div·class="desc·docblock-short">An·error·indicating·that·an·interior·nul·byte·was·found.</div></li></ul></section></div></main></body></html>
225 KB
./usr/share/doc/rust-doc/html/alloc/ffi/struct.CString.html
    
Offset 1, 45 lines modifiedOffset 1, 45 lines modified
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="A·type·representing·an·owned,·C-compatible,·nul-terminated·string·with·no·nul·bytes·in·the·middle."><title>CString·in·alloc::ffi·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»      2025-01-07)»   (built»     from» a»source»  tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">CString</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#creating-a-cstring"·title="Creating·a·`CString`">Creating·a·<code>CString</code></a></li><li><a·href="#extracting-a-raw-pointer-to-the-whole-c-string"·title="Extracting·a·raw·pointer·to·the·whole·C·string">Extracting·a·raw·pointer·to·the·whole·C·string</a></li><li><a·href="#extracting-a-slice-of-the-whole-c-string"·title="Extracting·a·slice·of·the·whole·C·string">Extracting·a·slice·of·the·whole·C·string</a></li><li><a·href="#examples"·title="Examples">Examples</a></li><li><a·href="#safety"·title="Safety">Safety</a></li></ul><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.as_bytes"·title="as_bytes">as_bytes</a></li><li><a·href="#method.as_bytes_with_nul"·title="as_bytes_with_nul">as_bytes_with_nul</a></li><li><a·href="#method.as_c_str"·title="as_c_str">as_c_str</a></li><li><a·href="#method.from_raw"·title="from_raw">from_raw</a></li><li><a·href="#method.from_vec_unchecked"·title="from_vec_unchecked">from_vec_unchecked</a></li><li><a·href="#method.from_vec_with_nul"·title="from_vec_with_nul">from_vec_with_nul</a></li><li><a·href="#method.from_vec_with_nul_unchecked"·title="from_vec_with_nul_unchecked">from_vec_with_nul_unchecked</a></li><li><a·href="#method.into_boxed_c_str"·title="into_boxed_c_str">into_boxed_c_str</a></li><li><a·href="#method.into_bytes"·title="into_bytes">into_bytes</a></li><li><a·href="#method.into_bytes_with_nul"·title="into_bytes_with_nul">into_bytes_with_nul</a></li><li><a·href="#method.into_raw"·title="into_raw">into_raw</a></li><li><a·href="#method.into_string"·title="into_string">into_string</a></li><li><a·href="#method.new"·title="new">new</a></li></ul><h3><a·href="#deref-methods-CStr">Methods·from·Deref&lt;<wbr>Target=C<wbr>Str&gt;</a></h3><ul·class="block·deref-methods"><li><a·href="#method.as_ptr"·title="as_ptr">as_ptr</a></li><li><a·href="#method.bytes"·title="bytes">bytes</a></li><li><a·href="#method.count_bytes"·title="count_bytes">count_bytes</a></li><li><a·href="#method.is_empty"·title="is_empty">is_empty</a></li><li><a·href="#method.to_bytes"·title="to_bytes">to_bytes</a></li><li><a·href="#method.to_bytes_with_nul"·title="to_bytes_with_nul">to_bytes_with_nul</a></li><li><a·href="#method.to_str"·title="to_str">to_str</a></li><li><a·href="#method.to_string_lossy"·title="to_string_lossy">to_string_lossy</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-AsRef%3CCStr%3E-for-CString"·title="AsRef&#60;CStr&#62;">AsRef&#60;CStr&#62;</a></li><li><a·href="#impl-Borrow%3CCStr%3E-for-CString"·title="Borrow&#60;CStr&#62;">Borrow&#60;CStr&#62;</a></li><li><a·href="#impl-Clone-for-CString"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-CString"·title="Debug">Debug</a></li><li><a·href="#impl-Default-for-CString"·title="Default">Default</a></li><li><a·href="#impl-Deref-for-CString"·title="Deref">Deref</a></li><li><a·href="#impl-Drop-for-CString"·title="Drop">Drop</a></li><li><a·href="#impl-Eq-for-CString"·title="Eq">Eq</a></li><li><a·href="#impl-From%3C%26CString%3E-for-Cow%3C'a,+CStr%3E"·title="From&#60;&#38;&#39;a·CString&#62;">From&#60;&#38;&#39;a·CString&#62;</a></li><li><a·href="#impl-From%3C%26CStr%3E-for-CString"·title="From&#60;&#38;CStr&#62;">From&#60;&#38;CStr&#62;</a></li><li><a·href="#impl-From%3CBox%3CCStr%3E%3E-for-CString"·title="From&#60;Box&#60;CStr&#62;&#62;">From&#60;Box&#60;CStr&#62;&#62;</a></li><li><a·href="#impl-From%3CCString%3E-for-Arc%3CCStr%3E"·title="From&#60;CString&#62;">From&#60;CString&#62;</a></li><li><a·href="#impl-From%3CCString%3E-for-Box%3CCStr%3E"·title="From&#60;CString&#62;">From&#60;CString&#62;</a></li><li><a·href="#impl-From%3CCString%3E-for-Cow%3C'a,+CStr%3E"·title="From&#60;CString&#62;">From&#60;CString&#62;</a></li><li><a·href="#impl-From%3CCString%3E-for-Rc%3CCStr%3E"·title="From&#60;CString&#62;">From&#60;CString&#62;</a></li><li><a·href="#impl-From%3CCString%3E-for-Vec%3Cu8%3E"·title="From&#60;CString&#62;">From&#60;CString&#62;</a></li><li><a·href="#impl-From%3CCow%3C'a,+CStr%3E%3E-for-CString"·title="From&#60;Cow&#60;&#39;a,·CStr&#62;&#62;">From&#60;Cow&#60;&#39;a,·CStr&#62;&#62;</a></li><li><a·href="#impl-From%3CVec%3CNonZero%3Cu8%3E%3E%3E-for-CString"·title="From&#60;Vec&#60;NonZero&#60;u8&#62;&#62;&#62;">From&#60;Vec&#60;NonZero&#60;u8&#62;&#62;&#62;</a></li><li><a·href="#impl-FromStr-for-CString"·title="FromStr">FromStr</a></li><li><a·href="#impl-Hash-for-CString"·title="Hash">Hash</a></li><li><a·href="#impl-Index%3CRangeFull%3E-for-CString"·title="Index&#60;RangeFull&#62;">Index&#60;RangeFull&#62;</a></li><li><a·href="#impl-Ord-for-CString"·title="Ord">Ord</a></li><li><a·href="#impl-PartialEq-for-CString"·title="PartialEq">PartialEq</a></li><li><a·href="#impl-PartialOrd-for-CString"·title="PartialOrd">PartialOrd</a></li><li><a·href="#impl-StructuralPartialEq-for-CString"·title="StructuralPartialEq">StructuralPartialEq</a></li><li><a·href="#impl-TryFrom%3CCString%3E-for-String"·title="TryFrom&#60;CString&#62;">TryFrom&#60;CString&#62;</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-CString"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-CString"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-CString"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-CString"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-CString"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-CString"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-Receiver-for-P"·title="Receiver">Receiver</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>ffi</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">alloc</a>::<wbr><a·href="index.html">ffi</a></span><h1>Struct·<span·class="struct">CString</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.64.0">1.64.0</span>···<a·class="src"·href="../../src/alloc/ffi/c_str.rs.html#111-116">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·CString·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>A·type·representing·an·owned,·C-compatible,·nul-terminated·string·with·no·nul·bytes·in·the1 <!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·type·representing·an·owned,·C-compatible,·nul-terminated·string·with·no·nul·bytes·in·the·middle."><title>CString·in·alloc::ffi·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»      2025-01-07)»   (built»     from» a»source»  tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">CString</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#creating-a-cstring"·title="Creating·a·`CString`">Creating·a·<code>CString</code></a></li><li><a·href="#extracting-a-raw-pointer-to-the-whole-c-string"·title="Extracting·a·raw·pointer·to·the·whole·C·string">Extracting·a·raw·pointer·to·the·whole·C·string</a></li><li><a·href="#extracting-a-slice-of-the-whole-c-string"·title="Extracting·a·slice·of·the·whole·C·string">Extracting·a·slice·of·the·whole·C·string</a></li><li><a·href="#examples"·title="Examples">Examples</a></li><li><a·href="#safety"·title="Safety">Safety</a></li></ul><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.as_bytes"·title="as_bytes">as_bytes</a></li><li><a·href="#method.as_bytes_with_nul"·title="as_bytes_with_nul">as_bytes_with_nul</a></li><li><a·href="#method.as_c_str"·title="as_c_str">as_c_str</a></li><li><a·href="#method.from_raw"·title="from_raw">from_raw</a></li><li><a·href="#method.from_vec_unchecked"·title="from_vec_unchecked">from_vec_unchecked</a></li><li><a·href="#method.from_vec_with_nul"·title="from_vec_with_nul">from_vec_with_nul</a></li><li><a·href="#method.from_vec_with_nul_unchecked"·title="from_vec_with_nul_unchecked">from_vec_with_nul_unchecked</a></li><li><a·href="#method.into_boxed_c_str"·title="into_boxed_c_str">into_boxed_c_str</a></li><li><a·href="#method.into_bytes"·title="into_bytes">into_bytes</a></li><li><a·href="#method.into_bytes_with_nul"·title="into_bytes_with_nul">into_bytes_with_nul</a></li><li><a·href="#method.into_raw"·title="into_raw">into_raw</a></li><li><a·href="#method.into_string"·title="into_string">into_string</a></li><li><a·href="#method.new"·title="new">new</a></li></ul><h3><a·href="#deref-methods-CStr">Methods·from·Deref&lt;<wbr>Target=C<wbr>Str&gt;</a></h3><ul·class="block·deref-methods"><li><a·href="#method.as_ptr"·title="as_ptr">as_ptr</a></li><li><a·href="#method.bytes"·title="bytes">bytes</a></li><li><a·href="#method.count_bytes"·title="count_bytes">count_bytes</a></li><li><a·href="#method.is_empty"·title="is_empty">is_empty</a></li><li><a·href="#method.to_bytes"·title="to_bytes">to_bytes</a></li><li><a·href="#method.to_bytes_with_nul"·title="to_bytes_with_nul">to_bytes_with_nul</a></li><li><a·href="#method.to_str"·title="to_str">to_str</a></li><li><a·href="#method.to_string_lossy"·title="to_string_lossy">to_string_lossy</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-AsRef%3CCStr%3E-for-CString"·title="AsRef&#60;CStr&#62;">AsRef&#60;CStr&#62;</a></li><li><a·href="#impl-Borrow%3CCStr%3E-for-CString"·title="Borrow&#60;CStr&#62;">Borrow&#60;CStr&#62;</a></li><li><a·href="#impl-Clone-for-CString"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-CString"·title="Debug">Debug</a></li><li><a·href="#impl-Default-for-CString"·title="Default">Default</a></li><li><a·href="#impl-Deref-for-CString"·title="Deref">Deref</a></li><li><a·href="#impl-Drop-for-CString"·title="Drop">Drop</a></li><li><a·href="#impl-Eq-for-CString"·title="Eq">Eq</a></li><li><a·href="#impl-From%3C%26CString%3E-for-Cow%3C'a,+CStr%3E"·title="From&#60;&#38;&#39;a·CString&#62;">From&#60;&#38;&#39;a·CString&#62;</a></li><li><a·href="#impl-From%3C%26CStr%3E-for-CString"·title="From&#60;&#38;CStr&#62;">From&#60;&#38;CStr&#62;</a></li><li><a·href="#impl-From%3CBox%3CCStr%3E%3E-for-CString"·title="From&#60;Box&#60;CStr&#62;&#62;">From&#60;Box&#60;CStr&#62;&#62;</a></li><li><a·href="#impl-From%3CCString%3E-for-Arc%3CCStr%3E"·title="From&#60;CString&#62;">From&#60;CString&#62;</a></li><li><a·href="#impl-From%3CCString%3E-for-Box%3CCStr%3E"·title="From&#60;CString&#62;">From&#60;CString&#62;</a></li><li><a·href="#impl-From%3CCString%3E-for-Cow%3C'a,+CStr%3E"·title="From&#60;CString&#62;">From&#60;CString&#62;</a></li><li><a·href="#impl-From%3CCString%3E-for-Rc%3CCStr%3E"·title="From&#60;CString&#62;">From&#60;CString&#62;</a></li><li><a·href="#impl-From%3CCString%3E-for-Vec%3Cu8%3E"·title="From&#60;CString&#62;">From&#60;CString&#62;</a></li><li><a·href="#impl-From%3CCow%3C'a,+CStr%3E%3E-for-CString"·title="From&#60;Cow&#60;&#39;a,·CStr&#62;&#62;">From&#60;Cow&#60;&#39;a,·CStr&#62;&#62;</a></li><li><a·href="#impl-From%3CVec%3CNonZero%3Cu8%3E%3E%3E-for-CString"·title="From&#60;Vec&#60;NonZero&#60;u8&#62;&#62;&#62;">From&#60;Vec&#60;NonZero&#60;u8&#62;&#62;&#62;</a></li><li><a·href="#impl-FromStr-for-CString"·title="FromStr">FromStr</a></li><li><a·href="#impl-Hash-for-CString"·title="Hash">Hash</a></li><li><a·href="#impl-Index%3CRangeFull%3E-for-CString"·title="Index&#60;RangeFull&#62;">Index&#60;RangeFull&#62;</a></li><li><a·href="#impl-Ord-for-CString"·title="Ord">Ord</a></li><li><a·href="#impl-PartialEq-for-CString"·title="PartialEq">PartialEq</a></li><li><a·href="#impl-PartialOrd-for-CString"·title="PartialOrd">PartialOrd</a></li><li><a·href="#impl-StructuralPartialEq-for-CString"·title="StructuralPartialEq">StructuralPartialEq</a></li><li><a·href="#impl-TryFrom%3CCString%3E-for-String"·title="TryFrom&#60;CString&#62;">TryFrom&#60;CString&#62;</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-CString"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-CString"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-CString"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-CString"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-CString"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-CString"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-Receiver-for-P"·title="Receiver">Receiver</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>ffi</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">alloc</a>::<wbr><a·href="index.html">ffi</a></span><h1>Struct·<span·class="struct">CString</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.64.0">1.64.0</span>···<a·class="src"·href="../../src/alloc/ffi/c_str.rs.html#111-116">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·CString·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>A·type·representing·an·owned,·C-compatible,·nul-terminated·string·with·no·nul·bytes·in·the
2 middle.</p>2 middle.</p>
3 <p>This·type·serves·the·purpose·of·being·able·to·safely·generate·a3 <p>This·type·serves·the·purpose·of·being·able·to·safely·generate·a
4 C-compatible·string·from·a·Rust·byte·slice·or·vector.·An·instance·of·this4 C-compatible·string·from·a·Rust·byte·slice·or·vector.·An·instance·of·this
5 type·is·a·static·guarantee·that·the·underlying·bytes·contain·no·interior·05 type·is·a·static·guarantee·that·the·underlying·bytes·contain·no·interior·0
6 bytes·(“nul·characters”)·and·that·the·final·byte·is·0·(“nul·terminator”).</p>6 bytes·(“nul·characters”)·and·that·the·final·byte·is·0·(“nul·terminator”).</p>
7 <p><code>CString</code>·is·to·<code>&amp;<a·href="https://doc.rust-lang.org/1.84.0/core/ffi/c_str/struct.CStr.html"·title="struct·core::ffi::c_str::CStr">CStr</a></code>·as·<a·href="../string/struct.String.html"·title="struct·alloc::string::String"><code>String</code></a>·is·to·<code>&amp;<a·href="https:/[·...·truncated·by·diffoscope;·len:·25,·SHA:·47289d74512722892379c9593dc658e766bcd4e4b804d92b4d3102d33df6ae58·...·]/core/primitive.str.html"·title="str">str</a></code>:·the·former7 <p><code>CString</code>·is·to·<code>&amp;<a·href="../../core/ffi/c_str/struct.CStr.html"·title="struct·core::ffi::c_str::CStr">CStr</a></code>·as·<a·href="../string/struct.String.html"·title="struct·alloc::string::String"><code>String</code></a>·is·to·<code>&amp;<a·href="../../core/primitive.str.html"·title="str">str</a></code>:·the·former
8 in·each·pair·are·owned·strings;·the·latter·are·borrowed8 in·each·pair·are·owned·strings;·the·latter·are·borrowed
9 references.</p>9 references.</p>
10 <h2·id="creating-a-cstring"><a·class="doc-anchor"·href="#creating-a-cstring">§</a>Creating·a·<code>CString</code></h2>10 <h2·id="creating-a-cstring"><a·class="doc-anchor"·href="#creating-a-cstring">§</a>Creating·a·<code>CString</code></h2>
11 <p>A·<code>CString</code>·is·created·from·either·a·byte·slice·or·a·byte·vector,11 <p>A·<code>CString</code>·is·created·from·either·a·byte·slice·or·a·byte·vector,
12 or·anything·that·implements·<code><a·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;<a·href="../vec/struct.Vec.html"·title="struct·alloc::vec::Vec">Vec</a>&lt;<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.u8.html"·title="primitive·u8">u8</a>&gt;&gt;</code>·(for12 or·anything·that·implements·<code><a·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;<a·href="../vec/struct.Vec.html"·title="struct·alloc::vec::Vec">Vec</a>&lt;<a·href="../../core/primitive.u8.html"·title="primitive·u8">u8</a>&gt;&gt;</code>·(for
13 example,·you·can·build·a·<code>CString</code>·straight·out·of·a·<a·href="../string/struct.String.html"·title="struct·alloc::string::String"><code>String</code></a>·or13 example,·you·can·build·a·<code>CString</code>·straight·out·of·a·<a·href="../string/struct.String.html"·title="struct·alloc::string::String"><code>String</code></a>·or
14 a·<code>&amp;<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.str.html"·title="str">str</a></code>,·since·both·implement·that·trait).14 a·<code>&amp;<a·href="../../core/primitive.str.html"·title="str">str</a></code>,·since·both·implement·that·trait).
15 You·can·create·a·<code>CString</code>·from·a·literal·with·<code>CString::from(c"Text")</code>.</p>15 You·can·create·a·<code>CString</code>·from·a·literal·with·<code>CString::from(c"Text")</code>.</p>
16 <p>The·<a·href="struct.CString.html#method.new"·title="associated·function·alloc::ffi::CString::new"><code>CString::new</code></a>·method·will·actually·check·that·the·provided·<code>&amp;[<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.u8.html"·title="primitive·u8">u8</a>]</code>16 <p>The·<a·href="struct.CString.html#method.new"·title="associated·function·alloc::ffi::CString::new"><code>CString::new</code></a>·method·will·actually·check·that·the·provided·<code>&amp;[<a·href="../../core/primitive.u8.html"·title="primitive·u8">u8</a>]</code>
17 does·not·have·0·bytes·in·the·middle,·and·return·an·error·if·it17 does·not·have·0·bytes·in·the·middle,·and·return·an·error·if·it
18 finds·one.</p>18 finds·one.</p>
19 <h2·id="extracting-a-raw-pointer-to-the-whole-c-string"><a·class="doc-anchor"·href="#extracting-a-raw-pointer-to-the-whole-c-string">§</a>Extracting·a·raw·pointer·to·the·whole·C·string</h2>19 <h2·id="extracting-a-raw-pointer-to-the-whole-c-string"><a·class="doc-anchor"·href="#extracting-a-raw-pointer-to-the-whole-c-string">§</a>Extracting·a·raw·pointer·to·the·whole·C·string</h2>
20 <p><code>CString</code>·implements·an·<a·href="https://doc.rust-lang.org/1.84.0/core/ffi/c_str/struct.CStr.html#method.as_ptr"·title="method·core::ffi::c_str::CStr::as_ptr"><code>as_ptr</code></a>·method·through·the·<a·href="https://doc.rust-lang.org/1.84.0/core/ops/deref/trait.Deref.html"·title="trait·core::ops::deref::Deref"><code>Deref</code></a>20 <p><code>CString</code>·implements·an·<a·href="../../core/ffi/c_str/struct.CStr.html#method.as_ptr"·title="method·core::ffi::c_str::CStr::as_ptr"><code>as_ptr</code></a>·method·through·the·<a·href="../../core/ops/deref/trait.Deref.html"·title="trait·core::ops::deref::Deref"><code>Deref</code></a>
21 trait.·This·method·will·give·you·a·<code>*const·c_char</code>·which·you·can21 trait.·This·method·will·give·you·a·<code>*const·c_char</code>·which·you·can
22 feed·directly·to·extern·functions·that·expect·a·nul-terminated22 feed·directly·to·extern·functions·that·expect·a·nul-terminated
23 string,·like·C’s·<code>strdup()</code>.·Notice·that·<a·href="https://doc.rust-lang.org/1.84.0/core/ffi/c_str/struct.CStr.html#method.as_ptr"·title="method·core::ffi::c_str::CStr::as_ptr"><code>as_ptr</code></a>·returns·a23 string,·like·C’s·<code>strdup()</code>.·Notice·that·<a·href="../../core/ffi/c_str/struct.CStr.html#method.as_ptr"·title="method·core::ffi::c_str::CStr::as_ptr"><code>as_ptr</code></a>·returns·a
24 read-only·pointer;·if·the·C·code·writes·to·it,·that·causes24 read-only·pointer;·if·the·C·code·writes·to·it,·that·causes
25 undefined·behavior.</p>25 undefined·behavior.</p>
26 <h2·id="extracting-a-slice-of-the-whole-c-string"><a·class="doc-anchor"·href="#extracting-a-slice-of-the-whole-c-string">§</a>Extracting·a·slice·of·the·whole·C·string</h2>26 <h2·id="extracting-a-slice-of-the-whole-c-string"><a·class="doc-anchor"·href="#extracting-a-slice-of-the-whole-c-string">§</a>Extracting·a·slice·of·the·whole·C·string</h2>
27 <p>Alternatively,·you·can·obtain·a·<code>&amp;[<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.u8.html"·title="primitive·u8">u8</a>]</code>·slice·from·a27 <p>Alternatively,·you·can·obtain·a·<code>&amp;[<a·href="../../core/primitive.u8.html"·title="primitive·u8">u8</a>]</code>·slice·from·a
28 <code>CString</code>·with·the·<a·href="struct.CString.html#method.as_bytes"·title="method·alloc::ffi::CString::as_bytes"><code>CString::as_bytes</code></a>·method.·Slices·produced·in·this28 <code>CString</code>·with·the·<a·href="struct.CString.html#method.as_bytes"·title="method·alloc::ffi::CString::as_bytes"><code>CString::as_bytes</code></a>·method.·Slices·produced·in·this
29 way·do·<em>not</em>·contain·the·trailing·nul·terminator.·This·is·useful29 way·do·<em>not</em>·contain·the·trailing·nul·terminator.·This·is·useful
30 when·you·will·be·calling·an·extern·function·that·takes·a·<code>*const·u8</code>·argument·which·is·not·necessarily·nul-terminated,·plus·another30 when·you·will·be·calling·an·extern·function·that·takes·a·<code>*const·u8</code>·argument·which·is·not·necessarily·nul-terminated,·plus·another
31 argument·with·the·length·of·the·string··like·C’s·<code>strndup()</code>.31 argument·with·the·length·of·the·string··like·C’s·<code>strndup()</code>.
32 You·can·of·course·get·the·slice’s·length·with·its32 You·can·of·course·get·the·slice’s·length·with·its
33 <a·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html#method.len"·title="method·slice::len"><code>len</code></a>·method.</p>33 <a·href="../../core/primitive.slice.html#method.len"·title="method·slice::len"><code>len</code></a>·method.</p>
34 <p>If·you·need·a·<code>&amp;[<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.u8.html"·title="primitive·u8">u8</a>]</code>·slice·<em>with</em>·the·nul·terminator,·you34 <p>If·you·need·a·<code>&amp;[<a·href="../../core/primitive.u8.html"·title="primitive·u8">u8</a>]</code>·slice·<em>with</em>·the·nul·terminator,·you
35 can·use·<a·href="struct.CString.html#method.as_bytes_with_nul"·title="method·alloc::ffi::CString::as_bytes_with_nul"><code>CString::as_bytes_with_nul</code></a>·instead.</p>35 can·use·<a·href="struct.CString.html#method.as_bytes_with_nul"·title="method·alloc::ffi::CString::as_bytes_with_nul"><code>CString::as_bytes_with_nul</code></a>·instead.</p>
36 <p>Once·you·have·the·kind·of·slice·you·need·(with·or·without·a·nul36 <p>Once·you·have·the·kind·of·slice·you·need·(with·or·without·a·nul
37 terminator),·you·can·call·the·slice’s·own37 terminator),·you·can·call·the·slice’s·own
38 <a·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html#method.as_ptr"·title="method·slice::as_ptr"><code>as_ptr</code></a>·method·to·get·a·read-only·raw·pointer·to·pass·to38 <a·href="../../core/primitive.slice.html#method.as_ptr"·title="method·slice::as_ptr"><code>as_ptr</code></a>·method·to·get·a·read-only·raw·pointer·to·pass·to
39 extern·functions.·See·the·documentation·for·that·function·for·a39 extern·functions.·See·the·documentation·for·that·function·for·a
40 discussion·on·ensuring·the·lifetime·of·the·raw·pointer.</p>40 discussion·on·ensuring·the·lifetime·of·the·raw·pointer.</p>
41 <h2·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h2>41 <h2·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h2>
42 <div·class="example-wrap·ignore"><a·href="#"·class="tooltip"·title="This·example·is·not·tested">ⓘ</a><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::ffi::CString;42 <div·class="example-wrap·ignore"><a·href="#"·class="tooltip"·title="This·example·is·not·tested">ⓘ</a><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::ffi::CString;
43 <span·class="kw">use·</span>std::os::raw::c_char;43 <span·class="kw">use·</span>std::os::raw::c_char;
  
44 <span·class="kw">extern·</span><span·class="string">"C"·</span>{44 <span·class="kw">extern·</span><span·class="string">"C"·</span>{
Offset 57, 15 lines modifiedOffset 57, 15 lines modified
57 (a·sequence·of·non-nul·bytes·terminated·by·a·single·nul·byte);·the57 (a·sequence·of·non-nul·bytes·terminated·by·a·single·nul·byte);·the
58 primary·use·case·for·these·kinds·of·strings·is·interoperating·with·C-like58 primary·use·case·for·these·kinds·of·strings·is·interoperating·with·C-like
59 code.·Often·you·will·need·to·transfer·ownership·to/from·that·external59 code.·Often·you·will·need·to·transfer·ownership·to/from·that·external
60 code.·It·is·strongly·recommended·that·you·thoroughly·read·through·the60 code.·It·is·strongly·recommended·that·you·thoroughly·read·through·the
61 documentation·of·<code>CString</code>·before·use,·as·improper·ownership·management61 documentation·of·<code>CString</code>·before·use,·as·improper·ownership·management
62 of·<code>CString</code>·instances·can·lead·to·invalid·memory·accesses,·memory·leaks,62 of·<code>CString</code>·instances·can·lead·to·invalid·memory·accesses,·memory·leaks,
63 and·other·memory·errors.</p>63 and·other·memory·errors.</p>
64 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-CString"·class="impl"><a·class="src·rightside"·href="../../src/alloc/ffi/c_str.rs.html#231-693">Source</a><a·href="#impl-CString"·class="anchor">§</a><h3·class="code-header">impl·<a·class="struct"·href="struct.CString.html"·title="struct·alloc::ffi::CString">CString</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.new"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/alloc/ffi/c_str.rs.html#260-316">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.new"·class="fn">new</a>&lt;T:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;<a·class="struct"·href="../vec/struct.Vec.html"·title="struct·alloc::vec::Vec">Vec</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.84[·...·truncated·by·diffoscope;·len:·112,·SHA:·debfaa6c8e4efce142b663a69cdad0f6822b5bcfb4acecf39e869f1edcafc8fa·...·]/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="struct"·href="struct.CString.html"·title="struct·alloc::ffi::CString">CString</a>,·<a·class="struct"·href="struct.NulError.html"·title="struct·alloc::ffi::NulError">NulError</a>&gt;</h4></section></summary><div·class="docblock"><p>Creates·a·new·C-compatible·string·from·a·container·of·bytes.</p>64 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-CString"·class="impl"><a·class="src·rightside"·href="../../src/alloc/ffi/c_str.rs.html#231-693">Source</a><a·href="#impl-CString"·class="anchor">§</a><h3·class="code-header">impl·<a·class="struct"·href="struct.CString.html"·title="struct·alloc::ffi::CString">CString</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.new"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/alloc/ffi/c_str.rs.html#260-316">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.new"·class="fn">new</a>&lt;T:·<a·class="trait"·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;<a·class="struct"·href="../vec/struct.Vec.html"·title="struct·alloc::vec::Vec">Vec</a>&lt;<a·class="primitive"·href="../../core/primitive.u8.html">u8</a>&gt;&gt;&gt;(t:·T)·-&[·...·truncated·by·diffoscope;·len:·31,·SHA:·641d90eb4cbfea82d859ed77e4b8d80c97e0ace5fec5c58793ce6b03a7f18eec·...·]/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="struct"·href="struct.CString.html"·title="struct·alloc::ffi::CString">CString</a>,·<a·class="struct"·href="struct.NulError.html"·title="struct·alloc::ffi::NulError">NulError</a>&gt;</h4></section></summary><div·class="docblock"><p>Creates·a·new·C-compatible·string·from·a·container·of·bytes.</p>
65 <p>This·function·will·consume·the·provided·data·and·use·the65 <p>This·function·will·consume·the·provided·data·and·use·the
66 underlying·bytes·to·construct·a·new·string,·ensuring·that66 underlying·bytes·to·construct·a·new·string,·ensuring·that
67 there·is·a·trailing·0·byte.·This·trailing·0·byte·will·be67 there·is·a·trailing·0·byte.·This·trailing·0·byte·will·be
68 appended·by·this·function;·the·provided·data·should·<em>not</em>68 appended·by·this·function;·the·provided·data·should·<em>not</em>
69 contain·any·0·bytes·in·it.</p>69 contain·any·0·bytes·in·it.</p>
70 <h5·id="examples-1"><a·class="doc-anchor"·href="#examples-1">§</a>Examples</h5>70 <h5·id="examples-1"><a·class="doc-anchor"·href="#examples-1">§</a>Examples</h5>
71 <div·class="example-wrap·ignore"><a·href="#"·class="tooltip"·title="This·example·is·not·tested">ⓘ</a><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::ffi::CString;71 <div·class="example-wrap·ignore"><a·href="#"·class="tooltip"·title="This·example·is·not·tested">ⓘ</a><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::ffi::CString;
Offset 77, 43 lines modifiedOffset 77, 43 lines modified
77 <span·class="kw">unsafe·</span>{77 <span·class="kw">unsafe·</span>{
78 ····puts(to_print.as_ptr());78 ····puts(to_print.as_ptr());
79 }</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::ffi::CString;%0A++++use+std::os::raw::c_char;%0A++++%0A++++extern+%22C%22+%7B+fn+puts(s:+*const+c_char);+%7D%0A++++%0A++++let+to_print+=+CString::new(%22Hello!%22).expect(%22CString::new+failed%22);%0A++++unsafe+%7B%0A++++++++puts(to_print.as_ptr());%0A++++%7D%0A%7D&amp;edition=2021"></a></div>79 }</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::ffi::CString;%0A++++use+std::os::raw::c_char;%0A++++%0A++++extern+%22C%22+%7B+fn+puts(s:+*const+c_char);+%7D%0A++++%0A++++let+to_print+=+CString::new(%22Hello!%22).expect(%22CString::new+failed%22);%0A++++unsafe+%7B%0A++++++++puts(to_print.as_ptr());%0A++++%7D%0A%7D&amp;edition=2021"></a></div>
80 <h5·id="errors"><a·class="doc-anchor"·href="#errors">§</a>Errors</h5>80 <h5·id="errors"><a·class="doc-anchor"·href="#errors">§</a>Errors</h5>
81 <p>This·function·will·return·an·error·if·the·supplied·bytes·contain·an81 <p>This·function·will·return·an·error·if·the·supplied·bytes·contain·an
82 internal·0·byte.·The·<a·href="struct.NulError.html"·title="struct·alloc::ffi::NulError"><code>NulError</code></a>·returned·will·contain·the·bytes·as·well·as82 internal·0·byte.·The·<a·href="struct.NulError.html"·title="struct·alloc::ffi::NulError"><code>NulError</code></a>·returned·will·contain·the·bytes·as·well·as
83 the·position·of·the·nul·byte.</p>83 the·position·of·the·nul·byte.</p>
84 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.from_vec_unchecked"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/alloc/ffi/c_str.rs.html#339-342">Source</a></span><h4·class="code-header">pub·unsafe·fn·<a·href="#method.from_vec_unchecked"·class="fn">from_vec_unchecked</a>(v:·<a·class="struct"·href="../vec/struct.Vec.html"·title="struct·alloc::vec::Vec">Vec</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.u8.html">u8</a>&gt;)·-&gt;·Self</h4></section></summary><div·class="docblock"><p>Creates·a·C-compatible·string·by·consuming·a·byte·vector,84 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.from_vec_unchecked"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/alloc/ffi/c_str.rs.html#339-342">Source</a></span><h4·class="code-header">pub·unsafe·fn·<a·href="#method.from_vec_unchecked"·class="fn">from_vec_unchecked</a>(v:·<a·class="struct"·href="../vec/struct.Vec.html"·title="struct·alloc::vec::Vec">Vec</a>&lt;<a·class="primitive"·href="../../core/primitive.u8.html">u8</a>&gt;)·-&gt;·Self</h4></section></summary><div·class="docblock"><p>Creates·a·C-compatible·string·by·consuming·a·byte·vector,
85 without·checking·for·interior·0·bytes.</p>85 without·checking·for·interior·0·bytes.</p>
86 <p>Trailing·0·byte·will·be·appended·by·this·function.</p>86 <p>Trailing·0·byte·will·be·appended·by·this·function.</p>
87 <p>This·method·is·equivalent·to·<a·href="struct.CString.html#method.new"·title="associated·function·alloc::ffi::CString::new"><code>CString::new</code></a>·except·that·no·runtime87 <p>This·method·is·equivalent·to·<a·href="struct.CString.html#method.new"·title="associated·function·alloc::ffi::CString::new"><code>CString::new</code></a>·except·that·no·runtime
88 assertion·is·made·that·<code>v</code>·contains·no·0·bytes,·and·it·requires·an88 assertion·is·made·that·<code>v</code>·contains·no·0·bytes,·and·it·requires·an
89 actual·byte·vector,·not·anything·that·can·be·converted·to·one·with·Into.</p>89 actual·byte·vector,·not·anything·that·can·be·converted·to·one·with·Into.</p>
90 <h5·id="examples-2"><a·class="doc-anchor"·href="#examples-2">§</a>Examples</h5>90 <h5·id="examples-2"><a·class="doc-anchor"·href="#examples-2">§</a>Examples</h5>
91 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::ffi::CString;91 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::ffi::CString;
  
92 <span·class="kw">let·</span>raw·=·<span·class="string">b"foo"</span>.to_vec();92 <span·class="kw">let·</span>raw·=·<span·class="string">b"foo"</span>.to_vec();
93 <span·class="kw">unsafe·</span>{93 <span·class="kw">unsafe·</span>{
94 ····<span·class="kw">let·</span>c_string·=·CString::from_vec_unchecked(raw);94 ····<span·class="kw">let·</span>c_string·=·CString::from_vec_unchecked(raw);
95 }</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::ffi::CString;%0A++++%0A++++let+raw+=+b%22foo%22.to_vec();%0A++++unsafe+%7B%0A++++++++let+c_string+=+CString::from_vec_unchecked(raw);%0A++++%7D%0A%7D&amp;edition=2021"></a></div>95 }</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::ffi::CString;%0A++++%0A++++let+raw+=+b%22foo%22.to_vec();%0A++++unsafe+%7B%0A++++++++let+c_string+=+CString::from_vec_unchecked(raw);%0A++++%7D%0A%7D&amp;edition=2021"></a></div>
96 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.from_raw"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.4.0">1.4.0</span>···<a·class="src"·href="../../src/alloc/ffi/c_str.rs.html#396-411">Source</a></span><h4·class="code-header">pub·unsafe·fn·<a·href="#method.from_raw"·class="fn">from_raw</a>(ptr:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.pointer.html">*mut·</a><a·class="type"·href="https://doc.rust-lang.org/1.84.0/core/ffi/type.c_char.html"·title="type·core::ffi::c_char">c_char</a>)·-&gt;·<a·class="struct"·href="struct.CString.html"·title="struct·alloc::ffi::CString">CString</a></h4></section></summary><div·class="docblock"><p>Retakes·ownership·of·a·<code>CString</code>·that·was·transferred·to·C·via96 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.from_raw"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.4.0">1.4.0</span>···<a·class="src"·href="../../src/alloc/ffi/c_str.rs.html#396-411">Source</a></span><h4·class="code-header">pub·unsafe·fn·<a·href="#method.from_raw"·class="fn">from_raw</a>(ptr:·<a·class="primitive"·href="../../core/primitive.pointer.html">*mut·</a><a·class="type"·href="../../core/ffi/type.c_char.html"·title="type·core::ffi::c_char">c_char</a>)·-&gt;·<a·class="struct"·href="struct.CString.html"·title="struct·alloc::ffi::CString">CString</a></h4></section></summary><div·class="docblock"><p>Retakes·ownership·of·a·<code>CString</code>·that·was·transferred·to·C·via
97 <a·href="struct.CString.html#method.into_raw"·title="method·alloc::ffi::CString::into_raw"><code>CString::into_raw</code></a>.</p>97 <a·href="struct.CString.html#method.into_raw"·title="method·alloc::ffi::CString::into_raw"><code>CString::into_raw</code></a>.</p>
98 <p>Additionally,·the·length·of·the·string·will·be·recalculated·from·the·pointer.</p>98 <p>Additionally,·the·length·of·the·string·will·be·recalculated·from·the·pointer.</p>
99 <h5·id="safety-1"><a·class="doc-anchor"·href="#safety-1">§</a>Safety</h5>99 <h5·id="safety-1"><a·class="doc-anchor"·href="#safety-1">§</a>Safety</h5>
100 <p>This·should·only·ever·be·called·with·a·pointer·that·was·earlier100 <p>This·should·only·ever·be·called·with·a·pointer·that·was·earlier
101 obtained·by·calling·<a·href="struct.CString.html#method.into_raw"·title="method·alloc::ffi::CString::into_raw"><code>CString::into_raw</code></a>.·Other·usage·(e.g.,·trying·to·take101 obtained·by·calling·<a·href="struct.CString.html#method.into_raw"·title="method·alloc::ffi::CString::into_raw"><code>CString::into_raw</code></a>.·Other·usage·(e.g.,·trying·to·take
102 ownership·of·a·string·that·was·allocated·by·foreign·code)·is·likely·to·lead102 ownership·of·a·string·that·was·allocated·by·foreign·code)·is·likely·to·lead
103 to·undefined·behavior·or·allocator·corruption.</p>103 to·undefined·behavior·or·allocator·corruption.</p>
104 <p>It·should·be·noted·that·the·length·isn’t·just·“recomputed,”·but·that104 <p>It·should·be·noted·that·the·length·isn’t·just·“recomputed,”·but·that
105 the·recomputed·length·must·match·the·original·length·from·the105 the·recomputed·length·must·match·the·original·length·from·the
106 <a·href="struct.CString.html#method.into_raw"·title="method·alloc::ffi::CString::into_raw"><code>CString::into_raw</code></a>·call.·This·means·the·<a·href="struct.CString.html#method.into_raw"·title="method·alloc::ffi::CString::into_raw"><code>CString::into_raw</code></a>/<code>from_raw</code>106 <a·href="struct.CString.html#method.into_raw"·title="method·alloc::ffi::CString::into_raw"><code>CString::into_raw</code></a>·call.·This·means·the·<a·href="struct.CString.html#method.into_raw"·title="method·alloc::ffi::CString::into_raw"><code>CString::into_raw</code></a>/<code>from_raw</code>
107 methods·should·not·be·used·when·passing·the·string·to·C·functions·that·can107 methods·should·not·be·used·when·passing·the·string·to·C·functions·that·can
108 modify·the·string’s·length.</p>108 modify·the·string’s·length.</p>
109 <blockquote>109 <blockquote>
110 <p><strong>Note:</strong>·If·you·need·to·borrow·a·string·that·was·allocated·by110 <p><strong>Note:</strong>·If·you·need·to·borrow·a·string·that·was·allocated·by
111 foreign·code,·use·<a·href="https://doc.rust-lang.org/1.84.0/core/ffi/c_str/struct.CStr.html"·title="struct·core::ffi::c_str::CStr"><code>CStr</code></a>.·If·you·need·to·take·ownership·of111 foreign·code,·use·<a·href="../../core/ffi/c_str/struct.CStr.html"·title="struct·core::ffi::c_str::CStr"><code>CStr</code></a>.·If·you·need·to·take·ownership·of
112 a·string·that·was·allocated·by·foreign·code,·you·will·need·to112 a·string·that·was·allocated·by·foreign·code,·you·will·need·to
113 make·your·own·provisions·for·freeing·it·appropriately,·likely113 make·your·own·provisions·for·freeing·it·appropriately,·likely
114 with·the·foreign·code’s·API·to·do·that.</p>114 with·the·foreign·code’s·API·to·do·that.</p>
115 </blockquote>115 </blockquote>
116 <h5·id="examples-3"><a·class="doc-anchor"·href="#examples-3">§</a>Examples</h5>116 <h5·id="examples-3"><a·class="doc-anchor"·href="#examples-3">§</a>Examples</h5>
117 <p>Creates·a·<code>CString</code>,·pass·ownership·to·an·<code>extern</code>·function·(via·raw·pointer),·then·retake117 <p>Creates·a·<code>CString</code>,·pass·ownership·to·an·<code>extern</code>·function·(via·raw·pointer),·then·retake
118 ownership·with·<code>from_raw</code>:</p>118 ownership·with·<code>from_raw</code>:</p>
Offset 127, 15 lines modifiedOffset 127, 15 lines modified
  
127 <span·class="kw">let·</span>c_string·=·CString::new(<span·class="string">"Hello!"</span>).expect(<span·class="string">"CString::new·failed"</span>);127 <span·class="kw">let·</span>c_string·=·CString::new(<span·class="string">"Hello!"</span>).expect(<span·class="string">"CString::new·failed"</span>);
128 <span·class="kw">let·</span>raw·=·c_string.into_raw();128 <span·class="kw">let·</span>raw·=·c_string.into_raw();
129 <span·class="kw">unsafe·</span>{129 <span·class="kw">unsafe·</span>{
130 ····some_extern_function(raw);130 ····some_extern_function(raw);
131 ····<span·class="kw">let·</span>c_string·=·CString::from_raw(raw);131 ····<span·class="kw">let·</span>c_string·=·CString::from_raw(raw);
132 }</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::ffi::CString;%0A++++use+std::os::raw::c_char;%0A++++%0A++++extern+%22C%22+%7B%0A++++++++fn+some_extern_function(s:+*mut+c_char);%0A++++%7D%0A++++%0A++++let+c_string+=+CString::new(%22Hello!%22).expect(%22CString::new+failed%22);%0A++++let+raw+=+c_string.into_raw();%0A++++unsafe+%7B%0A++++++++some_extern_function(raw);%0A++++++++let+c_string+=+CString::from_raw(raw);%0A++++%7D%0A%7D&amp;edition=2021"></a></div>132 }</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::ffi::CString;%0A++++use+std::os::raw::c_char;%0A++++%0A++++extern+%22C%22+%7B%0A++++++++fn+some_extern_function(s:+*mut+c_char);%0A++++%7D%0A++++%0A++++let+c_string+=+CString::new(%22Hello!%22).expect(%22CString::new+failed%22);%0A++++let+raw+=+c_string.into_raw();%0A++++unsafe+%7B%0A++++++++some_extern_function(raw);%0A++++++++let+c_string+=+CString::from_raw(raw);%0A++++%7D%0A%7D&amp;edition=2021"></a></div>
133 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.into_raw"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.4.0">1.4.0</span>···<a·class="src"·href="../../src/alloc/ffi/c_str.rs.html#449-451">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.into_raw"·class="fn">into_raw</a>(self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.pointer.html">*mut·</a><a·class="type"·href="https://doc.rust-lang.org/1.84.0/core/ffi/type.c_char.html"·title="type·core::ffi::c_char">c_char</a></h4></section></summary><div·class="docblock"><p>Consumes·the·<code>CString</code>·and·transfers·ownership·of·the·string·to·a·C·caller.</p>133 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.into_raw"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.4.0">1.4.0</span>···<a·class="src"·href="../../src/alloc/ffi/c_str.rs.html#449-451">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.into_raw"·class="fn">into_raw</a>(self)·-&gt;·<a·class="primitive"·href="../../core/primitive.pointer.html">*mut·</a><a·class="type"·href="../../core/ffi/type.c_char.html"·title="type·core::ffi::c_char">c_char</a></h4></section></summary><div·class="docblock"><p>Consumes·the·<code>CString</code>·and·transfers·ownership·of·the·string·to·a·C·caller.</p>
134 <p>The·pointer·which·this·function·returns·must·be·returned·to·Rust·and·reconstituted·using134 <p>The·pointer·which·this·function·returns·must·be·returned·to·Rust·and·reconstituted·using
135 <a·href="struct.CString.html#method.from_raw"·title="associated·function·alloc::ffi::CString::from_raw"><code>CString::from_raw</code></a>·to·be·properly·deallocated.·Specifically,·one135 <a·href="struct.CString.html#method.from_raw"·title="associated·function·alloc::ffi::CString::from_raw"><code>CString::from_raw</code></a>·to·be·properly·deallocated.·Specifically,·one
136 should·<em>not</em>·use·the·standard·C·<code>free()</code>·function·to·deallocate136 should·<em>not</em>·use·the·standard·C·<code>free()</code>·function·to·deallocate
137 this·string.</p>137 this·string.</p>
138 <p>Failure·to·call·<a·href="struct.CString.html#method.from_raw"·title="associated·function·alloc::ffi::CString::from_raw"><code>CString::from_raw</code></a>·will·lead·to·a·memory·leak.</p>138 <p>Failure·to·call·<a·href="struct.CString.html#method.from_raw"·title="associated·function·alloc::ffi::CString::from_raw"><code>CString::from_raw</code></a>·will·lead·to·a·memory·leak.</p>
139 <p>The·C·side·must·<strong>not</strong>·modify·the·length·of·the·string·(by·writing·a139 <p>The·C·side·must·<strong>not</strong>·modify·the·length·of·the·string·(by·writing·a
140 nul·byte·somewhere·inside·the·string·or·removing·the·final·one)·before140 nul·byte·somewhere·inside·the·string·or·removing·the·final·one)·before
Offset 153, 92 lines modifiedOffset 153, 92 lines modified
153 ····<span·class="macro">assert_eq!</span>(<span·class="string">b'o'</span>,·<span·class="kw-2">*</span>ptr.add(<span·class="number">1</span>)·<span·class="kw">as·</span>u8);153 ····<span·class="macro">assert_eq!</span>(<span·class="string">b'o'</span>,·<span·class="kw-2">*</span>ptr.add(<span·class="number">1</span>)·<span·class="kw">as·</span>u8);
154 ····<span·class="macro">assert_eq!</span>(<span·class="string">b'o'</span>,·<span·class="kw-2">*</span>ptr.add(<span·class="number">2</span>)·<span·class="kw">as·</span>u8);154 ····<span·class="macro">assert_eq!</span>(<span·class="string">b'o'</span>,·<span·class="kw-2">*</span>ptr.add(<span·class="number">2</span>)·<span·class="kw">as·</span>u8);
155 ····<span·class="macro">assert_eq!</span>(<span·class="string">b'\0'</span>,·<span·class="kw-2">*</span>ptr.add(<span·class="number">3</span>)·<span·class="kw">as·</span>u8);155 ····<span·class="macro">assert_eq!</span>(<span·class="string">b'\0'</span>,·<span·class="kw-2">*</span>ptr.add(<span·class="number">3</span>)·<span·class="kw">as·</span>u8);
  
156 ····<span·class="comment">//·retake·pointer·to·free·memory156 ····<span·class="comment">//·retake·pointer·to·free·memory
Max diff block lines reached; 196973/229907 bytes (85.68%) of diff not shown.
70.3 KB
./usr/share/doc/rust-doc/html/alloc/ffi/struct.FromVecWithNulError.html
    
Offset 3, 49 lines modifiedOffset 3, 49 lines modified
3 positioned·at·the·end.</p>3 positioned·at·the·end.</p>
4 <p>This·error·is·created·by·the·<a·href="struct.CString.html#method.from_vec_with_nul"·title="associated·function·alloc::ffi::CString::from_vec_with_nul"><code>CString::from_vec_with_nul</code></a>·method.4 <p>This·error·is·created·by·the·<a·href="struct.CString.html#method.from_vec_with_nul"·title="associated·function·alloc::ffi::CString::from_vec_with_nul"><code>CString::from_vec_with_nul</code></a>·method.
5 See·its·documentation·for·more.</p>5 See·its·documentation·for·more.</p>
6 <h2·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h2>6 <h2·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h2>
7 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::ffi::{CString,·FromVecWithNulError};7 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::ffi::{CString,·FromVecWithNulError};
  
8 <span·class="kw">let·_</span>:·FromVecWithNulError·=·CString::from_vec_with_nul(<span·class="string">b"f\0oo"</span>.to_vec()).unwrap_err();</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::ffi::%7BCString,+FromVecWithNulError%7D;%0A++++%0A++++let+_:+FromVecWithNulError+=+CString::from_vec_with_nul(b%22f%5C0oo%22.to_vec()).unwrap_err();%0A%7D&amp;edition=2021"></a></div>8 <span·class="kw">let·_</span>:·FromVecWithNulError·=·CString::from_vec_with_nul(<span·class="string">b"f\0oo"</span>.to_vec()).unwrap_err();</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::ffi::%7BCString,+FromVecWithNulError%7D;%0A++++%0A++++let+_:+FromVecWithNulError+=+CString::from_vec_with_nul(b%22f%5C0oo%22.to_vec()).unwrap_err();%0A%7D&amp;edition=2021"></a></div>
9 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-FromVecWithNulError"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.58.0">1.58.0</span>···<a·class="src"·href="../../src/alloc/ffi/c_str.rs.html#166-214">Source</a></span><a·href="#impl-FromVecWithNulError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="struct"·href="struct.FromVecWithNulError.html"·title="struct·alloc::ffi::FromVecWithNulError">FromVecWithNulError</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.as_bytes"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.58.0">1.58.0</span>···<a·class="src"·href="../../src/alloc/ffi/c_str.rs.html#185-187">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.as_bytes"·class="fn">as_bytes</a>(&amp;self)·-&gt;·&amp;[<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.u8.html">u8</a>]</h4></section></summary><div·class="docblock"><p>Returns·a·slice·of·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.u8.html"·title="primitive·u8"><code>u8</code></a>s·bytes·that·were·attempted·to·convert·to·a·<a·href="struct.CString.html"·title="struct·alloc::ffi::CString"><code>CString</code></a>.</p>9 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-FromVecWithNulError"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.58.0">1.58.0</span>···<a·class="src"·href="../../src/alloc/ffi/c_str.rs.html#166-214">Source</a></span><a·href="#impl-FromVecWithNulError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="struct"·href="struct.FromVecWithNulError.html"·title="struct·alloc::ffi::FromVecWithNulError">FromVecWithNulError</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.as_bytes"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.58.0">1.58.0</span>···<a·class="src"·href="../../src/alloc/ffi/c_str.rs.html#185-187">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.as_bytes"·class="fn">as_bytes</a>(&amp;self)·-&gt;·&amp;[<a·class="primitive"·href="../../core/primitive.u8.html">u8</a>]</h4></section></summary><div·class="docblock"><p>Returns·a·slice·of·<a·href="../../core/primitive.u8.html"·title="primitive·u8"><code>u8</code></a>s·bytes·that·were·attempted·to·convert·to·a·<a·href="struct.CString.html"·title="struct·alloc::ffi::CString"><code>CString</code></a>.</p>
10 <h5·id="examples-1"><a·class="doc-anchor"·href="#examples-1">§</a>Examples</h5>10 <h5·id="examples-1"><a·class="doc-anchor"·href="#examples-1">§</a>Examples</h5>
11 <p>Basic·usage:</p>11 <p>Basic·usage:</p>
  
12 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::ffi::CString;12 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::ffi::CString;
  
13 <span·class="comment">//·Some·invalid·bytes·in·a·vector13 <span·class="comment">//·Some·invalid·bytes·in·a·vector
14 </span><span·class="kw">let·</span>bytes·=·<span·class="string">b"f\0oo"</span>.to_vec();14 </span><span·class="kw">let·</span>bytes·=·<span·class="string">b"f\0oo"</span>.to_vec();
  
15 <span·class="kw">let·</span>value·=·CString::from_vec_with_nul(bytes.clone());15 <span·class="kw">let·</span>value·=·CString::from_vec_with_nul(bytes.clone());
  
16 <span·class="macro">assert_eq!</span>(<span·class="kw-2">&amp;</span>bytes[..],·value.unwrap_err().as_bytes());</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::ffi::CString;%0A++++%0A++++//+Some+invalid+bytes+in+a+vector%0A++++let+bytes+=+b%22f%5C0oo%22.to_vec();%0A++++%0A++++let+value+=+CString::from_vec_with_nul(bytes.clone());%0A++++%0A++++assert_eq!(%26bytes%5B..%5D,+value.unwrap_err().as_bytes());%0A%7D&amp;edition=2021"></a></div>16 <span·class="macro">assert_eq!</span>(<span·class="kw-2">&amp;</span>bytes[..],·value.unwrap_err().as_bytes());</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::ffi::CString;%0A++++%0A++++//+Some+invalid+bytes+in+a+vector%0A++++let+bytes+=+b%22f%5C0oo%22.to_vec();%0A++++%0A++++let+value+=+CString::from_vec_with_nul(bytes.clone());%0A++++%0A++++assert_eq!(%26bytes%5B..%5D,+value.unwrap_err().as_bytes());%0A%7D&amp;edition=2021"></a></div>
17 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.into_bytes"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.58.0">1.58.0</span>···<a·class="src"·href="../../src/alloc/ffi/c_str.rs.html#211-213">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.into_bytes"·class="fn">into_bytes</a>(self)·-&gt;·<a·class="struct"·href="../vec/struct.Vec.html"·title="struct·alloc::vec::Vec">Vec</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.u8.html">u8</a>&gt;</h4></section></summary><div·class="docblock"><p>Returns·the·bytes·that·were·attempted·to·convert·to·a·<a·href="struct.CString.html"·title="struct·alloc::ffi::CString"><code>CString</code></a>.</p>17 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.into_bytes"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.58.0">1.58.0</span>···<a·class="src"·href="../../src/alloc/ffi/c_str.rs.html#211-213">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.into_bytes"·class="fn">into_bytes</a>(self)·-&gt;·<a·class="struct"·href="../vec/struct.Vec.html"·title="struct·alloc::vec::Vec">Vec</a>&lt;<a·class="primitive"·href="../../core/primitive.u8.html">u8</a>&gt;</h4></section></summary><div·class="docblock"><p>Returns·the·bytes·that·were·attempted·to·convert·to·a·<a·href="struct.CString.html"·title="struct·alloc::ffi::CString"><code>CString</code></a>.</p>
18 <p>This·method·is·carefully·constructed·to·avoid·allocation.·It·will18 <p>This·method·is·carefully·constructed·to·avoid·allocation.·It·will
19 consume·the·error,·moving·out·the·bytes,·so·that·a·copy·of·the·bytes19 consume·the·error,·moving·out·the·bytes,·so·that·a·copy·of·the·bytes
20 does·not·need·to·be·made.</p>20 does·not·need·to·be·made.</p>
21 <h5·id="examples-2"><a·class="doc-anchor"·href="#examples-2">§</a>Examples</h5>21 <h5·id="examples-2"><a·class="doc-anchor"·href="#examples-2">§</a>Examples</h5>
22 <p>Basic·usage:</p>22 <p>Basic·usage:</p>
  
23 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::ffi::CString;23 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::ffi::CString;
  
24 <span·class="comment">//·Some·invalid·bytes·in·a·vector24 <span·class="comment">//·Some·invalid·bytes·in·a·vector
25 </span><span·class="kw">let·</span>bytes·=·<span·class="string">b"f\0oo"</span>.to_vec();25 </span><span·class="kw">let·</span>bytes·=·<span·class="string">b"f\0oo"</span>.to_vec();
  
26 <span·class="kw">let·</span>value·=·CString::from_vec_with_nul(bytes.clone());26 <span·class="kw">let·</span>value·=·CString::from_vec_with_nul(bytes.clone());
  
27 <span·class="macro">assert_eq!</span>(bytes,·value.unwrap_err().into_bytes());</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::ffi::CString;%0A++++%0A++++//+Some+invalid+bytes+in+a+vector%0A++++let+bytes+=+b%22f%5C0oo%22.to_vec();%0A++++%0A++++let+value+=+CString::from_vec_with_nul(bytes.clone());%0A++++%0A++++assert_eq!(bytes,+value.unwrap_err().into_bytes());%0A%7D&amp;edition=2021"></a></div>27 <span·class="macro">assert_eq!</span>(bytes,·value.unwrap_err().into_bytes());</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::ffi::CString;%0A++++%0A++++//+Some+invalid+bytes+in+a+vector%0A++++let+bytes+=+b%22f%5C0oo%22.to_vec();%0A++++%0A++++let+value+=+CString::from_vec_with_nul(bytes.clone());%0A++++%0A++++assert_eq!(bytes,+value.unwrap_err().into_bytes());%0A%7D&amp;edition=2021"></a></div>
28 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-FromVecWithNulError"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.64.0">1.64.0</span>···<a·class="src"·href="../../src/alloc/ffi/c_str.rs.html#158">Source</a></span><a·href="#impl-Clone-for-FromVecWithNulError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struct"·href="struct.FromVecWithNulError.html"·title="struct·alloc::ffi::FromVecWithNulError">FromVecWithNulError</a></h3></section></sum[·...·truncated·by·diffoscope;·len:·11192,·SHA:·5b2e983087451e5c6fb5da2eb9881b1d54d6a47ad9eecfbe40e3ed8637a121d4·...·]/core/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>!=</code>.·The·default·implementation·is·almost·always·sufficient,28 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-FromVecWithNulError"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.64.0">1.64.0</span>···<a·class="src"·href="../../src/alloc/ffi/c_str.rs.html#158">Source</a></span><a·href="#impl-Clone-for-FromVecWithNulError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struct"·href="struct.FromVecWithNulError.html"·title="struct·alloc::ffi::FromVecWithNulError">FromVecWithNulError</a></h3></section></summary><div·class="impl-items[·...·truncated·by·diffoscope;·len:·10355,·SHA:·bd7a2f1d599049e3d9182e3da5e4422a7c787a83ccc2a62c06b4fc551b27a627·...·]/core/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>!=</code>.·The·default·implementation·is·almost·always·sufficient,
29 and·should·not·be·overridden·without·very·good·reason.</div></details></div></details><section·id="impl-Eq-for-FromVecWithNulError"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.64.0">1.64.0</span>···<a·class="src"·href="../../src/alloc/ffi/c_str.rs.html#158">Source</a></span><a·href="#impl-Eq-for-FromVecWithNulError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.Eq.html"·title="trait·core::cmp::Eq">Eq</a>·for·<a·class="struct"·href="struct.FromVecWithNulError.html"·title="struct·alloc::ffi::FromVecWithNulError">FromVecWithNulError</a></h3></section><section·id="impl-[·...·truncated·by·diffoscope;·len:·4078,·SHA:·34b8b17f1f8af783c89020f34c54459710dd7543d8fbbbd7eae2ad0710015888·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where29 and·should·not·be·overridden·without·very·good·reason.</div></details></div></details><section·id="impl-Eq-for-FromVecWithNulError"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.64.0">1.64.0</span>···<a·class="src"·href="../../src/alloc/ffi/c_str.rs.html#158">Source</a></span><a·href="#impl-Eq-for-FromVecWithNulError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/cmp/trait.Eq.html"·title="trait·core::cmp::Eq">Eq</a>·for·<a·class="struct"·href="struct.FromVecWithNulError.html"·title="struct·alloc::ffi::FromVecWithNulError">FromVecWithNulError</a></h3></section><section·id="impl-StructuralPartialEq-for-Fro[·...·truncated·by·diffoscope;·len:·3808,·SHA:·c25dbe5cd9940c3b651237d89e4885a3dab0a7db477c2eaa2a8ab085c6c04037·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where
30 ····T:·'static·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method[·...·truncated·by·diffoscope;·len:·834,·SHA:·47dfc2aa0101a4103e2a94c1f971c559790d87a62d58631fd2bfed98e6616a34·...·]/src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where30 ····T:·'static·+·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·[·...·truncated·by·diffoscope;·len:·672,·SHA:·ace7a059971745d739c5abd9821e5d1d485cc233fd42150ceb251bdea1ce6bf7·...·]/src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where
31 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·[·...·truncated·by·diffoscope;·len:·737,·SHA:·9e65370662e77fc5c56c98c66a5dfda3c1d1244574dc8806ab91a8967514da78·...·]/src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.BorrowMut.html"·title="trait·alloc::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where31 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·r[·...·truncated·by·diffoscope;·len:·629,·SHA:·8e6f5d2e4a2830729c5d495459113ca6f54993696d7dc71c1f46e5691f5108ed·...·]/src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.BorrowMut.html"·title="trait·alloc::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where
32 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="met[·...·truncated·by·diffoscope;·len:·954,·SHA:·5ca69698d4bb8de1849b64ae87544dc0ec2bdd1a4d8dc75ba8d58b2c6c6a9ae6·...·]/core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where32 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="s[·...·truncated·by·diffoscope;·len:·819,·SHA:·3ca215d87d373be29774fff31d75c216034e4aa910e49de0e3fc5b88c46bc387·...·]/core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where
33 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="[·...·truncated·by·diffoscope;·len:·1883,·SHA:·e07301fb9e28f950d7450480a6b68014ffcdcc3be12b1adda27936cb1244377e·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>33 ····T:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·class[·...·truncated·by·diffoscope;·len:·1613,·SHA:·fde0dd5e9bb3fa078effcc98999e7fcc8b1aa390c8b7a3b6a3d8fd02f0c83e78·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>
34 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where34 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where
35 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="m[·...·truncated·by·diffoscope;·len:·237,·SHA:·98603c35860102b3af9b5cf27aeabf39e3c03236551986a6ec030817f108d919·...·]/core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>35 ····U:·<a·class="trait"·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class=[·...·truncated·by·diffoscope;·len:·156,·SHA:·79561c49c77b14346871935198fc061d00c9e84705db975b0451f5fb4f6af9a0·...·]/core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>
36 <p>That·is,·this·conversion·is·whatever·the·implementation·of36 <p>That·is,·this·conversion·is·whatever·the·implementation·of
37 <code><a·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>37 <code><a·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>
38 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#82-94">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where38 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#82-94">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where
39 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·t[·...·truncated·by·diffoscope;·len:·1350,·SHA:·06ff485c70db27d96df4529c9aabc3407488a0d8b3f238ea19fe87222f3c0e93·...·]/core/primitive.reference.html">&amp;mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToString-for-T"·class="impl"><a·class="src·rightside"·href="../../src/alloc/string.rs.html#2677-2691">Source</a><a·href="#impl-ToString-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../string/trait.ToString.html"·title="trait·alloc::string::ToString">ToString</a>·for·T<div·class="where">where39 ····T:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src·ri[·...·truncated·by·diffoscope;·len:·1296,·SHA:·88285bd52e5f5ad6b3e1b6d101339ab4047bdbd5b9d568c1e216b159cf17296e·...·]/core/primitive.reference.html">&amp;mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToString-for-T"·class="impl"><a·class="src·rightside"·href="../../src/alloc/string.rs.html#2677-2691">Source</a><a·href="#impl-ToString-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../string/trait.ToString.html"·title="trait·alloc::string::ToString">ToString</a>·for·T<div·class="where">where
40 ····T:·<a·class="trait"·href="../fmt/trait.Display.html"·title="trait·alloc::fmt::Display">Display</a>·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.to_string"·class="meth[·...·truncated·by·diffoscope;·len:·956,·SHA:·5fb3fa997a6fe164f1c04c1d4cb696121571b376241266dc87e8079ebdfed810·...·]/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where40 ····T:·<a·class="trait"·href="../fmt/trait.Display.html"·title="trait·alloc::fmt::Display">Display</a>·+·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.to_string"·class="method·trait-impl"><a·class="sr[·...·truncated·by·diffoscope;·len:·875,·SHA:·e58967f6ca4eee938a4135856f0af0adfcd5abe0b4e62c194e5c506c603bfcf1·...·]/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where
41 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="asso[·...·truncated·by·diffoscope;·len:·1973,·SHA:·db4b8407e8e20581ad139aef25a6221a11da0f5f18d6aa35aa33eb843f4e1b9f·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where41 ····U:·<a·class="trait"·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·c[·...·truncated·by·diffoscope;·len:·1676,·SHA:·4c73b68f4fb433b5f24fbcd660156381e5dd9f46425d075b558b9b6ca0705f88·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where
42 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·clas[·...·truncated·by·diffoscope;·len:·1578,·SHA:·998d5af10fd889567cd999d1306bfd16c91134d2238a3c172f1e7fa8ed138c18·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>42 ····U:·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-imp[·...·truncated·by·diffoscope;·len:·1308,·SHA:·6741e462a0e1b36010204263b7580305663bb27f362987d14303068592f9f358·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>
64.2 KB
./usr/share/doc/rust-doc/html/alloc/ffi/struct.IntoStringError.html
    
Offset 3, 22 lines modifiedOffset 3, 22 lines modified
3 <a·href="struct.CString.html#method.into_string"·title="method·alloc::ffi::CString::into_string"><code>CString::into_string</code></a>·performs·UTF-8·validation·on·those·bytes·and·may3 <a·href="struct.CString.html#method.into_string"·title="method·alloc::ffi::CString::into_string"><code>CString::into_string</code></a>·performs·UTF-8·validation·on·those·bytes·and·may
4 return·this·error.</p>4 return·this·error.</p>
5 <p>This·<code>struct</code>·is·created·by·<a·href="struct.CString.html#method.into_string"·title="method·alloc::ffi::CString::into_string"><code>CString::into_string()</code></a>.·See5 <p>This·<code>struct</code>·is·created·by·<a·href="struct.CString.html#method.into_string"·title="method·alloc::ffi::CString::into_string"><code>CString::into_string()</code></a>.·See
6 its·documentation·for·more.</p>6 its·documentation·for·more.</p>
7 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-IntoStringError"·class="impl"><a·class="src·rightside"·href="../../src/alloc/ffi/c_str.rs.html#1048-1063">Source</a><a·href="#impl-IntoStringError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="struct"·href="struct.IntoStringError.html"·title="struct·alloc::ffi::IntoStringError">IntoStringError</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into_cstring"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.7.0">1.7.0</span>···<a·class="src"·href="../../src/alloc/ffi/c_str.rs.html#1053-1055">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.into_cstring"·class="fn">into_cstring</a>(self)·-&gt;·<a·class="struct"·href="struct.CString.html"·title="struct·alloc::ffi::CString">CString</a></h4></section></summary><div·class="docblock"><p>Consumes·this·error,·returning·original·<a·href="struct.CString.html"·title="struct·alloc::ffi::CString"><code>CString</code></a>·which·generated·the7 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-IntoStringError"·class="impl"><a·class="src·rightside"·href="../../src/alloc/ffi/c_str.rs.html#1048-1063">Source</a><a·href="#impl-IntoStringError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="struct"·href="struct.IntoStringError.html"·title="struct·alloc::ffi::IntoStringError">IntoStringError</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into_cstring"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.7.0">1.7.0</span>···<a·class="src"·href="../../src/alloc/ffi/c_str.rs.html#1053-1055">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.into_cstring"·class="fn">into_cstring</a>(self)·-&gt;·<a·class="struct"·href="struct.CString.html"·title="struct·alloc::ffi::CString">CString</a></h4></section></summary><div·class="docblock"><p>Consumes·this·error,·returning·original·<a·href="struct.CString.html"·title="struct·alloc::ffi::CString"><code>CString</code></a>·which·generated·the
8 error.</p>8 error.</p>
9 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.utf8_error"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.7.0">1.7.0</span>···<a·class="src"·href="../../src/alloc/ffi/c_str.rs.html#1060-1062">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.utf8_error"·class="fn">utf8_error</a>(&amp;self)·-&gt;·<a·class="struct"·href="../str/struct.Utf8Error.html"·title="struct·alloc::str::Utf8Error">Utf8Error</a></h4></section></summary><div·class="docblock"><p>Access·the·underlying·UTF-8·error·that·was·the·cause·of·this·error.</p>9 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.utf8_error"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.7.0">1.7.0</span>···<a·class="src"·href="../../src/alloc/ffi/c_str.rs.html#1060-1062">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.utf8_error"·class="fn">utf8_error</a>(&amp;self)·-&gt;·<a·class="struct"·href="../str/struct.Utf8Error.html"·title="struct·alloc::str::Utf8Error">Utf8Error</a></h4></section></summary><div·class="docblock"><p>Access·the·underlying·UTF-8·error·that·was·the·cause·of·this·error.</p>
10 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-IntoStringError"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.64.0">1.64.0</span>···<a·class="src"·href="../../src/alloc/ffi/c_str.rs.html#224">Source</a></span><a·href="#impl-Clone-for-IntoStringError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struct"·href="struct.IntoStringError.html"·title="struct·alloc::ffi::IntoStringError">IntoStringError</a></h3></section></summary><div·cl[·...·truncated·by·diffoscope;·len:·10852,·SHA:·3abde5ab8ebcfbe276386094530ed5a47168c7929734f84d11a6b2c5c403b964·...·]/core/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>!=</code>.·The·default·implementation·is·almost·always·sufficient,10 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-IntoStringError"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.64.0">1.64.0</span>···<a·class="src"·href="../../src/alloc/ffi/c_str.rs.html#224">Source</a></span><a·href="#impl-Clone-for-IntoStringError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struct"·href="struct.IntoStringError.html"·title="struct·alloc::ffi::IntoStringError">IntoStringError</a></h3></section></summary><div·class="impl-items"><details·c[·...·truncated·by·diffoscope;·len:·10069,·SHA:·e7e5eb8df63b9c61898f38c8ff4ba8879a8f19aa43b5fb6ae43251c8cbbae2f2·...·]/core/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>!=</code>.·The·default·implementation·is·almost·always·sufficient,
11 and·should·not·be·overridden·without·very·good·reason.</div></details></div></details><section·id="impl-Eq-for-IntoStringError"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.64.0">1.64.0</span>···<a·class="src"·href="../../src/alloc/ffi/c_str.rs.html#224">Source</a></span><a·href="#impl-Eq-for-IntoStringError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.Eq.html"·title="trait·core::cmp::Eq">Eq</a>·for·<a·class="struct"·href="struct.IntoStringError.html"·title="struct·alloc::ffi::IntoStringError">IntoStringError</a></h3></section><section·id="impl-StructuralPa[·...·truncated·by·diffoscope;·len:·3926,·SHA:·019899e99ad846135d3df4644929193e4dde1036d6735bb0e5e28452ec0f5f49·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where11 and·should·not·be·overridden·without·very·good·reason.</div></details></div></details><section·id="impl-Eq-for-IntoStringError"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.64.0">1.64.0</span>···<a·class="src"·href="../../src/alloc/ffi/c_str.rs.html#224">Source</a></span><a·href="#impl-Eq-for-IntoStringError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/cmp/trait.Eq.html"·title="trait·core::cmp::Eq">Eq</a>·for·<a·class="struct"·href="struct.IntoStringError.html"·title="struct·alloc::ffi::IntoStringError">IntoStringError</a></h3></section><section·id="impl-StructuralPartialEq-for-IntoStringError[·...·truncated·by·diffoscope;·len:·3656,·SHA:·d9984dcb8866c9b3d9ed224eee618fc3cfe53572a9902071f87f0deb75ac6fa4·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where
12 ····T:·'static·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method[·...·truncated·by·diffoscope;·len:·834,·SHA:·47dfc2aa0101a4103e2a94c1f971c559790d87a62d58631fd2bfed98e6616a34·...·]/src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where12 ····T:·'static·+·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·[·...·truncated·by·diffoscope;·len:·672,·SHA:·ace7a059971745d739c5abd9821e5d1d485cc233fd42150ceb251bdea1ce6bf7·...·]/src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where
13 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·[·...·truncated·by·diffoscope;·len:·737,·SHA:·9e65370662e77fc5c56c98c66a5dfda3c1d1244574dc8806ab91a8967514da78·...·]/src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.BorrowMut.html"·title="trait·alloc::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where13 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·r[·...·truncated·by·diffoscope;·len:·629,·SHA:·8e6f5d2e4a2830729c5d495459113ca6f54993696d7dc71c1f46e5691f5108ed·...·]/src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.BorrowMut.html"·title="trait·alloc::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where
14 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="met[·...·truncated·by·diffoscope;·len:·954,·SHA:·5ca69698d4bb8de1849b64ae87544dc0ec2bdd1a4d8dc75ba8d58b2c6c6a9ae6·...·]/core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where14 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="s[·...·truncated·by·diffoscope;·len:·819,·SHA:·3ca215d87d373be29774fff31d75c216034e4aa910e49de0e3fc5b88c46bc387·...·]/core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where
15 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="[·...·truncated·by·diffoscope;·len:·1883,·SHA:·e07301fb9e28f950d7450480a6b68014ffcdcc3be12b1adda27936cb1244377e·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>15 ····T:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·class[·...·truncated·by·diffoscope;·len:·1613,·SHA:·fde0dd5e9bb3fa078effcc98999e7fcc8b1aa390c8b7a3b6a3d8fd02f0c83e78·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>
16 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where16 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where
17 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="m[·...·truncated·by·diffoscope;·len:·237,·SHA:·98603c35860102b3af9b5cf27aeabf39e3c03236551986a6ec030817f108d919·...·]/core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>17 ····U:·<a·class="trait"·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class=[·...·truncated·by·diffoscope;·len:·156,·SHA:·79561c49c77b14346871935198fc061d00c9e84705db975b0451f5fb4f6af9a0·...·]/core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>
18 <p>That·is,·this·conversion·is·whatever·the·implementation·of18 <p>That·is,·this·conversion·is·whatever·the·implementation·of
19 <code><a·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>19 <code><a·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>
20 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#82-94">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where20 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#82-94">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where
21 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·t[·...·truncated·by·diffoscope;·len:·1350,·SHA:·06ff485c70db27d96df4529c9aabc3407488a0d8b3f238ea19fe87222f3c0e93·...·]/core/primitive.reference.html">&amp;mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToString-for-T"·class="impl"><a·class="src·rightside"·href="../../src/alloc/string.rs.html#2677-2691">Source</a><a·href="#impl-ToString-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../string/trait.ToString.html"·title="trait·alloc::string::ToString">ToString</a>·for·T<div·class="where">where21 ····T:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src·ri[·...·truncated·by·diffoscope;·len:·1296,·SHA:·88285bd52e5f5ad6b3e1b6d101339ab4047bdbd5b9d568c1e216b159cf17296e·...·]/core/primitive.reference.html">&amp;mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToString-for-T"·class="impl"><a·class="src·rightside"·href="../../src/alloc/string.rs.html#2677-2691">Source</a><a·href="#impl-ToString-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../string/trait.ToString.html"·title="trait·alloc::string::ToString">ToString</a>·for·T<div·class="where">where
22 ····T:·<a·class="trait"·href="../fmt/trait.Display.html"·title="trait·alloc::fmt::Display">Display</a>·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.to_string"·class="meth[·...·truncated·by·diffoscope;·len:·956,·SHA:·5fb3fa997a6fe164f1c04c1d4cb696121571b376241266dc87e8079ebdfed810·...·]/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where22 ····T:·<a·class="trait"·href="../fmt/trait.Display.html"·title="trait·alloc::fmt::Display">Display</a>·+·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.to_string"·class="method·trait-impl"><a·class="sr[·...·truncated·by·diffoscope;·len:·875,·SHA:·e58967f6ca4eee938a4135856f0af0adfcd5abe0b4e62c194e5c506c603bfcf1·...·]/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where
23 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="asso[·...·truncated·by·diffoscope;·len:·1973,·SHA:·db4b8407e8e20581ad139aef25a6221a11da0f5f18d6aa35aa33eb843f4e1b9f·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where23 ····U:·<a·class="trait"·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·c[·...·truncated·by·diffoscope;·len:·1676,·SHA:·4c73b68f4fb433b5f24fbcd660156381e5dd9f46425d075b558b9b6ca0705f88·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where
24 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·clas[·...·truncated·by·diffoscope;·len:·1578,·SHA:·998d5af10fd889567cd999d1306bfd16c91134d2238a3c172f1e7fa8ed138c18·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>24 ····U:·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-imp[·...·truncated·by·diffoscope;·len:·1308,·SHA:·6741e462a0e1b36010204263b7580305663bb27f362987d14303068592f9f358·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>
67.6 KB
./usr/share/doc/rust-doc/html/alloc/ffi/struct.NulError.html
    
Offset 3, 39 lines modifiedOffset 3, 39 lines modified
3 can’t,·as·that·byte·would·effectively·truncate·the·string.</p>3 can’t,·as·that·byte·would·effectively·truncate·the·string.</p>
4 <p>This·error·is·created·by·the·<a·href="struct.CString.html#method.new"·title="associated·function·alloc::ffi::CString::new"><code>new</code></a>·method·on4 <p>This·error·is·created·by·the·<a·href="struct.CString.html#method.new"·title="associated·function·alloc::ffi::CString::new"><code>new</code></a>·method·on
5 <a·href="struct.CString.html"·title="struct·alloc::ffi::CString"><code>CString</code></a>.·See·its·documentation·for·more.</p>5 <a·href="struct.CString.html"·title="struct·alloc::ffi::CString"><code>CString</code></a>.·See·its·documentation·for·more.</p>
6 <h2·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h2>6 <h2·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h2>
7 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::ffi::{CString,·NulError};7 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::ffi::{CString,·NulError};
  
8 <span·class="kw">let·_</span>:·NulError·=·CString::new(<span·class="string">b"f\0oo"</span>.to_vec()).unwrap_err();</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::ffi::%7BCString,+NulError%7D;%0A++++%0A++++let+_:+NulError+=+CString::new(b%22f%5C0oo%22.to_vec()).unwrap_err();%0A%7D&amp;edition=2021"></a></div>8 <span·class="kw">let·_</span>:·NulError·=·CString::new(<span·class="string">b"f\0oo"</span>.to_vec()).unwrap_err();</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::ffi::%7BCString,+NulError%7D;%0A++++%0A++++let+_:+NulError+=+CString::new(b%22f%5C0oo%22.to_vec()).unwrap_err();%0A%7D&amp;edition=2021"></a></div>
9 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-NulError"·class="impl"><a·class="src·rightside"·href="../../src/alloc/ffi/c_str.rs.html#988-1025">Source</a><a·href="#impl-NulError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="struct"·href="struct.NulError.html"·title="struct·alloc::ffi::NulError">NulError</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.nul_position"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/alloc/ffi/c_str.rs.html#1005-1007">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.nul_position"·class="fn">nul_position</a>(&amp;self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.usize.html">usize</a></h4></section></summary><div·class="docblock"><p>Returns·the·position·of·the·nul·byte·in·the·slice·that·caused9 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-NulError"·class="impl"><a·class="src·rightside"·href="../../src/alloc/ffi/c_str.rs.html#988-1025">Source</a><a·href="#impl-NulError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="struct"·href="struct.NulError.html"·title="struct·alloc::ffi::NulError">NulError</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.nul_position"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/alloc/ffi/c_str.rs.html#1005-1007">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.nul_position"·class="fn">nul_position</a>(&amp;self)·-&gt;·<a·class="primitive"·href="../../core/primitive.usize.html">usize</a></h4></section></summary><div·class="docblock"><p>Returns·the·position·of·the·nul·byte·in·the·slice·that·caused
10 <a·href="struct.CString.html#method.new"·title="associated·function·alloc::ffi::CString::new"><code>CString::new</code></a>·to·fail.</p>10 <a·href="struct.CString.html#method.new"·title="associated·function·alloc::ffi::CString::new"><code>CString::new</code></a>·to·fail.</p>
11 <h5·id="examples-1"><a·class="doc-anchor"·href="#examples-1">§</a>Examples</h5>11 <h5·id="examples-1"><a·class="doc-anchor"·href="#examples-1">§</a>Examples</h5>
12 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::ffi::CString;12 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::ffi::CString;
  
13 <span·class="kw">let·</span>nul_error·=·CString::new(<span·class="string">"foo\0bar"</span>).unwrap_err();13 <span·class="kw">let·</span>nul_error·=·CString::new(<span·class="string">"foo\0bar"</span>).unwrap_err();
14 <span·class="macro">assert_eq!</span>(nul_error.nul_position(),·<span·class="number">3</span>);14 <span·class="macro">assert_eq!</span>(nul_error.nul_position(),·<span·class="number">3</span>);
  
15 <span·class="kw">let·</span>nul_error·=·CString::new(<span·class="string">"foo·bar\0"</span>).unwrap_err();15 <span·class="kw">let·</span>nul_error·=·CString::new(<span·class="string">"foo·bar\0"</span>).unwrap_err();
16 <span·class="macro">assert_eq!</span>(nul_error.nul_position(),·<span·class="number">7</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::ffi::CString;%0A++++%0A++++let+nul_error+=+CString::new(%22foo%5C0bar%22).unwrap_err();%0A++++assert_eq!(nul_error.nul_position(),+3);%0A++++%0A++++let+nul_error+=+CString::new(%22foo+bar%5C0%22).unwrap_err();%0A++++assert_eq!(nul_error.nul_position(),+7);%0A%7D&amp;edition=2021"></a></div>16 <span·class="macro">assert_eq!</span>(nul_error.nul_position(),·<span·class="number">7</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::ffi::CString;%0A++++%0A++++let+nul_error+=+CString::new(%22foo%5C0bar%22).unwrap_err();%0A++++assert_eq!(nul_error.nul_position(),+3);%0A++++%0A++++let+nul_error+=+CString::new(%22foo+bar%5C0%22).unwrap_err();%0A++++assert_eq!(nul_error.nul_position(),+7);%0A%7D&amp;edition=2021"></a></div>
17 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.into_vec"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/alloc/ffi/c_str.rs.html#1022-1024">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.into_vec"·class="fn">into_vec</a>(self)·-&gt;·<a·class="struct"·href="../vec/struct.Vec.html"·title="struct·alloc::vec::Vec">Vec</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.u8.html">u8</a>&gt;</h4></section></summary><div·class="docblock"><p>Consumes·this·error,·returning·the·underlying·vector·of·bytes·which17 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.into_vec"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/alloc/ffi/c_str.rs.html#1022-1024">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.into_vec"·class="fn">into_vec</a>(self)·-&gt;·<a·class="struct"·href="../vec/struct.Vec.html"·title="struct·alloc::vec::Vec">Vec</a>&lt;<a·class="primitive"·href="../../core/primitive.u8.html">u8</a>&gt;</h4></section></summary><div·class="docblock"><p>Consumes·this·error,·returning·the·underlying·vector·of·bytes·which
18 generated·the·error·in·the·first·place.</p>18 generated·the·error·in·the·first·place.</p>
19 <h5·id="examples-2"><a·class="doc-anchor"·href="#examples-2">§</a>Examples</h5>19 <h5·id="examples-2"><a·class="doc-anchor"·href="#examples-2">§</a>Examples</h5>
20 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::ffi::CString;20 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::ffi::CString;
  
21 <span·class="kw">let·</span>nul_error·=·CString::new(<span·class="string">"foo\0bar"</span>).unwrap_err();21 <span·class="kw">let·</span>nul_error·=·CString::new(<span·class="string">"foo\0bar"</span>).unwrap_err();
22 <span·class="macro">assert_eq!</span>(nul_error.into_vec(),·<span·class="string">b"foo\0bar"</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::ffi::CString;%0A++++%0A++++let+nul_error+=+CString::new(%22foo%5C0bar%22).unwrap_err();%0A++++assert_eq!(nul_error.into_vec(),+b%22foo%5C0bar%22);%0A%7D&amp;edition=2021"></a></div>22 <span·class="macro">assert_eq!</span>(nul_error.into_vec(),·<span·class="string">b"foo\0bar"</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::ffi::CString;%0A++++%0A++++let+nul_error+=+CString::new(%22foo%5C0bar%22).unwrap_err();%0A++++assert_eq!(nul_error.into_vec(),+b%22foo%5C0bar%22);%0A%7D&amp;edition=2021"></a></div>
23 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-NulError"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.64.0">1.64.0</span>···<a·class="src"·href="../../src/alloc/ffi/c_str.rs.html#133">Source</a></span><a·href="#impl-Clone-for-NulError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struct"·href="struct.NulError.html"·title="struct·alloc::ffi::NulError">NulError</a></h3></section></summary><div·class="impl-items"><det[·...·truncated·by·diffoscope;·len:·10762,·SHA:·0506ca918fe36f8dcd40fc7f60f0a2a263261eaa9c59f3233361a10caa85bfd0·...·]/core/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>!=</code>.·The·default·implementation·is·almost·always·sufficient,23 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-NulError"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.64.0">1.64.0</span>···<a·class="src"·href="../../src/alloc/ffi/c_str.rs.html#133">Source</a></span><a·href="#impl-Clone-for-NulError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struct"·href="struct.NulError.html"·title="struct·alloc::ffi::NulError">NulError</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-t[·...·truncated·by·diffoscope;·len:·9952,·SHA:·f54c20739b31dbdadae2d832d8ff9901ccddbb70dd12943fbee663cdafd221a3·...·]/core/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>!=</code>.·The·default·implementation·is·almost·always·sufficient,
24 and·should·not·be·overridden·without·very·good·reason.</div></details></div></details><section·id="impl-Eq-for-NulError"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.64.0">1.64.0</span>···<a·class="src"·href="../../src/alloc/ffi/c_str.rs.html#133">Source</a></span><a·href="#impl-Eq-for-NulError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.Eq.html"·title="trait·core::cmp::Eq">Eq</a>·for·<a·class="struct"·href="struct.NulError.html"·title="struct·alloc::ffi::NulError">NulError</a></h3></section><section·id="impl-StructuralPartialEq-for-NulError"[·...·truncated·by·diffoscope;·len:·3660,·SHA:·3b21fa0224b4c3dfcca2a4b8b7629fc09f4f029622ea5e534e2d0e6e181f13fd·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where24 and·should·not·be·overridden·without·very·good·reason.</div></details></div></details><section·id="impl-Eq-for-NulError"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.64.0">1.64.0</span>···<a·class="src"·href="../../src/alloc/ffi/c_str.rs.html#133">Source</a></span><a·href="#impl-Eq-for-NulError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/cmp/trait.Eq.html"·title="trait·core::cmp::Eq">Eq</a>·for·<a·class="struct"·href="struct.NulError.html"·title="struct·alloc::ffi::NulError">NulError</a></h3></section><section·id="impl-StructuralPartialEq-for-NulError"·class="impl"><span·class="[·...·truncated·by·diffoscope;·len:·3390,·SHA:·616f5d29371415b12cddb5b8c238b2b703b1e9767f29f75e5c4a0caff2f7c636·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where
25 ····T:·'static·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method[·...·truncated·by·diffoscope;·len:·834,·SHA:·47dfc2aa0101a4103e2a94c1f971c559790d87a62d58631fd2bfed98e6616a34·...·]/src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where25 ····T:·'static·+·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·[·...·truncated·by·diffoscope;·len:·672,·SHA:·ace7a059971745d739c5abd9821e5d1d485cc233fd42150ceb251bdea1ce6bf7·...·]/src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where
26 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·[·...·truncated·by·diffoscope;·len:·737,·SHA:·9e65370662e77fc5c56c98c66a5dfda3c1d1244574dc8806ab91a8967514da78·...·]/src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.BorrowMut.html"·title="trait·alloc::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where26 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·r[·...·truncated·by·diffoscope;·len:·629,·SHA:·8e6f5d2e4a2830729c5d495459113ca6f54993696d7dc71c1f46e5691f5108ed·...·]/src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.BorrowMut.html"·title="trait·alloc::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where
27 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="met[·...·truncated·by·diffoscope;·len:·954,·SHA:·5ca69698d4bb8de1849b64ae87544dc0ec2bdd1a4d8dc75ba8d58b2c6c6a9ae6·...·]/core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where27 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="s[·...·truncated·by·diffoscope;·len:·819,·SHA:·3ca215d87d373be29774fff31d75c216034e4aa910e49de0e3fc5b88c46bc387·...·]/core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where
28 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="[·...·truncated·by·diffoscope;·len:·1883,·SHA:·e07301fb9e28f950d7450480a6b68014ffcdcc3be12b1adda27936cb1244377e·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>28 ····T:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·class[·...·truncated·by·diffoscope;·len:·1613,·SHA:·fde0dd5e9bb3fa078effcc98999e7fcc8b1aa390c8b7a3b6a3d8fd02f0c83e78·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>
29 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where29 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where
30 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="m[·...·truncated·by·diffoscope;·len:·237,·SHA:·98603c35860102b3af9b5cf27aeabf39e3c03236551986a6ec030817f108d919·...·]/core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>30 ····U:·<a·class="trait"·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class=[·...·truncated·by·diffoscope;·len:·156,·SHA:·79561c49c77b14346871935198fc061d00c9e84705db975b0451f5fb4f6af9a0·...·]/core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>
31 <p>That·is,·this·conversion·is·whatever·the·implementation·of31 <p>That·is,·this·conversion·is·whatever·the·implementation·of
32 <code><a·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>32 <code><a·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>
33 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#82-94">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where33 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#82-94">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where
34 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·t[·...·truncated·by·diffoscope;·len:·1350,·SHA:·06ff485c70db27d96df4529c9aabc3407488a0d8b3f238ea19fe87222f3c0e93·...·]/core/primitive.reference.html">&amp;mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToString-for-T"·class="impl"><a·class="src·rightside"·href="../../src/alloc/string.rs.html#2677-2691">Source</a><a·href="#impl-ToString-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../string/trait.ToString.html"·title="trait·alloc::string::ToString">ToString</a>·for·T<div·class="where">where34 ····T:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src·ri[·...·truncated·by·diffoscope;·len:·1296,·SHA:·88285bd52e5f5ad6b3e1b6d101339ab4047bdbd5b9d568c1e216b159cf17296e·...·]/core/primitive.reference.html">&amp;mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToString-for-T"·class="impl"><a·class="src·rightside"·href="../../src/alloc/string.rs.html#2677-2691">Source</a><a·href="#impl-ToString-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../string/trait.ToString.html"·title="trait·alloc::string::ToString">ToString</a>·for·T<div·class="where">where
35 ····T:·<a·class="trait"·href="../fmt/trait.Display.html"·title="trait·alloc::fmt::Display">Display</a>·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.to_string"·class="meth[·...·truncated·by·diffoscope;·len:·956,·SHA:·5fb3fa997a6fe164f1c04c1d4cb696121571b376241266dc87e8079ebdfed810·...·]/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where35 ····T:·<a·class="trait"·href="../fmt/trait.Display.html"·title="trait·alloc::fmt::Display">Display</a>·+·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.to_string"·class="method·trait-impl"><a·class="sr[·...·truncated·by·diffoscope;·len:·875,·SHA:·e58967f6ca4eee938a4135856f0af0adfcd5abe0b4e62c194e5c506c603bfcf1·...·]/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where
36 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="asso[·...·truncated·by·diffoscope;·len:·1973,·SHA:·db4b8407e8e20581ad139aef25a6221a11da0f5f18d6aa35aa33eb843f4e1b9f·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where36 ····U:·<a·class="trait"·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·c[·...·truncated·by·diffoscope;·len:·1676,·SHA:·4c73b68f4fb433b5f24fbcd660156381e5dd9f46425d075b558b9b6ca0705f88·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where
37 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·clas[·...·truncated·by·diffoscope;·len:·1578,·SHA:·998d5af10fd889567cd999d1306bfd16c91134d2238a3c172f1e7fa8ed138c18·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>37 ····U:·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-imp[·...·truncated·by·diffoscope;·len:·1308,·SHA:·6741e462a0e1b36010204263b7580305663bb27f362987d14303068592f9f358·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>
6.92 KB
./usr/share/doc/rust-doc/html/alloc/fmt/derive.Debug.html
    
Offset 1, 2 lines modifiedOffset 1, 2 lines modified
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="Derive·macro·generating·an·impl·of·the·trait·`Debug`."><title>Debug·in·alloc::fmt·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·derive"><!--[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><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»       2025-01-07)»    (built»      from»  a» source»   tarball)</div><div·class="sidebar-elems"><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>fmt</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">alloc</a>::<wbr><a·href="index.html">fmt</a></span><h1>Derive·Macro·<span·class="derive">Debug</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.38.0">1.38.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/fmt/mod.rs.html#650">Source</a>·</span></div><pre·class="rust·item-decl"><code>#[derive(Debug)]</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Derive·macro·generating·an·impl·of·the·trait·<code>Debug</code>.</p>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="Derive·macro·generating·an·impl·of·the·trait·`Debug`."><title>Debug·in·alloc::fmt·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·derive"><!--[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><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»       2025-01-07)»    (built»      from»  a» source»   tarball)</div><div·class="sidebar-elems"><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>fmt</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">alloc</a>::<wbr><a·href="index.html">fmt</a></span><h1>Derive·Macro·<span·class="derive">Debug</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.38.0">1.38.0</span>···<a·class="src"·href="../../src/core/fmt/mod.rs.html#650">Source</a>·</span></div><pre·class="rust·item-decl"><code>#[derive(Debug)]</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Derive·macro·generating·an·impl·of·the·trait·<code>Debug</code>.</p>
2 </div></details></section></div></main></body></html>2 </div></details></section></div></main></body></html>
60.9 KB
./usr/share/doc/rust-doc/html/alloc/fmt/enum.Alignment.html
    
Offset 1, 22 lines modifiedOffset 1, 22 lines modified
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="Possible·alignments·returned·by·`Formatter::align`"><title>Alignment·in·alloc::fmt·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·enum"><!--[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><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»    2025-01-07)» (built»   from»       a»      source»tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Alignment</a></h2><h3><a·href="#variants">Variants</a></h3><ul·class="block·variant"><li><a·href="#variant.Center"·title="Center">Center</a></li><li><a·href="#variant.Left"·title="Left">Left</a></li><li><a·href="#variant.Right"·title="Right">Right</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-Alignment"·title="Clone">Clone</a></li><li><a·href="#impl-Copy-for-Alignment"·title="Copy">Copy</a></li><li><a·href="#impl-Debug-for-Alignment"·title="Debug">Debug</a></li><li><a·href="#impl-Eq-for-Alignment"·title="Eq">Eq</a></li><li><a·href="#impl-PartialEq-for-Alignment"·title="PartialEq">PartialEq</a></li><li><a·href="#impl-StructuralPartialEq-for-Alignment"·title="StructuralPartialEq">StructuralPartialEq</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-Alignment"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Alignment"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Alignment"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-Alignment"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-Alignment"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Alignment"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>fmt</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">alloc</a>::<wbr><a·href="index.html">fmt</a></span><h1>Enum·<span·class="enum">Alignment</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/fmt/mod.rs.html#24">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·enum·Alignment·{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="Possible·alignments·returned·by·`Formatter::align`"><title>Alignment·in·alloc::fmt·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·enum"><!--[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><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»    2025-01-07)» (built»   from»       a»      source»tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Alignment</a></h2><h3><a·href="#variants">Variants</a></h3><ul·class="block·variant"><li><a·href="#variant.Center"·title="Center">Center</a></li><li><a·href="#variant.Left"·title="Left">Left</a></li><li><a·href="#variant.Right"·title="Right">Right</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-Alignment"·title="Clone">Clone</a></li><li><a·href="#impl-Copy-for-Alignment"·title="Copy">Copy</a></li><li><a·href="#impl-Debug-for-Alignment"·title="Debug">Debug</a></li><li><a·href="#impl-Eq-for-Alignment"·title="Eq">Eq</a></li><li><a·href="#impl-PartialEq-for-Alignment"·title="PartialEq">PartialEq</a></li><li><a·href="#impl-StructuralPartialEq-for-Alignment"·title="StructuralPartialEq">StructuralPartialEq</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-Alignment"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Alignment"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Alignment"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-Alignment"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-Alignment"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Alignment"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>fmt</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">alloc</a>::<wbr><a·href="index.html">fmt</a></span><h1>Enum·<span·class="enum">Alignment</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../src/core/fmt/mod.rs.html#24">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·enum·Alignment·{
2 ····Left,2 ····Left,
3 ····Right,3 ····Right,
4 ····Center,4 ····Center,
5 }</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Possible·alignments·returned·by·<code>Formatter::align</code></p>5 }</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Possible·alignments·returned·by·<code>Formatter::align</code></p>
6 </div></details><h2·id="variants"·class="variants·section-header">Variants<a·href="#variants"·class="anchor">§</a></h2><div·class="variants"><section·id="variant.Left"·class="variant"><a·href="#variant.Left"·class="anchor">§</a><span·class="since·rightside"·title="Stable·since·Rust·version·1.36.0">1.36.0</span><h3·class="code-header">Left</h3></section><div·class="docblock"><p>Indication·that·contents·should·be·left-aligned.</p>6 </div></details><h2·id="variants"·class="variants·section-header">Variants<a·href="#variants"·class="anchor">§</a></h2><div·class="variants"><section·id="variant.Left"·class="variant"><a·href="#variant.Left"·class="anchor">§</a><span·class="since·rightside"·title="Stable·since·Rust·version·1.36.0">1.36.0</span><h3·class="code-header">Left</h3></section><div·class="docblock"><p>Indication·that·contents·should·be·left-aligned.</p>
7 </div><section·id="variant.Right"·class="variant"><a·href="#variant.Right"·class="anchor">§</a><span·class="since·rightside"·title="Stable·since·Rust·version·1.36.0">1.36.0</span><h3·class="code-header">Right</h3></section><div·class="docblock"><p>Indication·that·contents·should·be·right-aligned.</p>7 </div><section·id="variant.Right"·class="variant"><a·href="#variant.Right"·class="anchor">§</a><span·class="since·rightside"·title="Stable·since·Rust·version·1.36.0">1.36.0</span><h3·class="code-header">Right</h3></section><div·class="docblock"><p>Indication·that·contents·should·be·right-aligned.</p>
8 </div><section·id="variant.Center"·class="variant"><a·href="#variant.Center"·class="anchor">§</a><span·class="since·rightside"·title="Stable·since·Rust·version·1.36.0">1.36.0</span><h3·class="code-header">Center</h3></section><div·class="docblock"><p>Indication·that·contents·should·be·center-aligned.</p>8 </div><section·id="variant.Center"·class="variant"><a·href="#variant.Center"·class="anchor">§</a><span·class="since·rightside"·title="Stable·since·Rust·version·1.36.0">1.36.0</span><h3·class="code-header">Center</h3></section><div·class="docblock"><p>Indication·that·contents·should·be·center-aligned.</p>
9 </div></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-Alignment"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.28.0">1.28.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/fmt/mod.rs.html#23">Source</a></span><a·href="#impl-Clone-for-Alignment"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="[·...·truncated·by·diffoscope;·len:·5313,·SHA:·fbddf12a380b6b3d78eb2084a55c9a64fc2ddca8f8a36694a0c12926cb9a5d95·...·]/core/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>!=</code>.·The·default·implementation·is·almost·always·sufficient,9 </div></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-Alignment"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.28.0">1.28.0</span>···<a·class="src"·href="../../src/core/fmt/mod.rs.html#23">Source</a></span><a·href="#impl-Clone-for-Alignment"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="enum[·...·truncated·by·diffoscope;·len:·4746,·SHA:·b35332af26683ba2ed716567ac30d7fc0d6eb234aa8e0a727f052e0163a3a201·...·]/core/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>!=</code>.·The·default·implementation·is·almost·always·sufficient,
10 and·should·not·be·overridden·without·very·good·reason.</div></details></div></details><section·id="impl-Copy-for-Alignment"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.28.0">1.28.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/fmt/mod.rs.html#23">Source</a></span><a·href="#impl-Copy-for-Alignment"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Copy.html"·title="t[·...·truncated·by·diffoscope;·len:·4428,·SHA:·adb2de74f70c156b2056369fc210366b3a826b9ccb792b3c360727e515274859·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where10 and·should·not·be·overridden·without·very·good·reason.</div></details></div></details><section·id="impl-Copy-for-Alignment"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.28.0">1.28.0</span>···<a·class="src"·href="../../src/core/fmt/mod.rs.html#23">Source</a></span><a·href="#impl-Copy-for-Alignment"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Copy.html"·title="trait·core::marker::Copy">Copy</a>·for·<a·class="enum"·[·...·truncated·by·diffoscope;·len:·4050,·SHA:·192f735337855becbdc263d5fc04a4978f2dfaa5e402fa40af7d57565567dd4a·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where
11 ····T:·'static·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method[·...·truncated·by·diffoscope;·len:·834,·SHA:·47dfc2aa0101a4103e2a94c1f971c559790d87a62d58631fd2bfed98e6616a34·...·]/src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where11 ····T:·'static·+·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·[·...·truncated·by·diffoscope;·len:·672,·SHA:·ace7a059971745d739c5abd9821e5d1d485cc233fd42150ceb251bdea1ce6bf7·...·]/src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where
12 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·[·...·truncated·by·diffoscope;·len:·737,·SHA:·9e65370662e77fc5c56c98c66a5dfda3c1d1244574dc8806ab91a8967514da78·...·]/src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.BorrowMut.html"·title="trait·alloc::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where12 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·r[·...·truncated·by·diffoscope;·len:·629,·SHA:·8e6f5d2e4a2830729c5d495459113ca6f54993696d7dc71c1f46e5691f5108ed·...·]/src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.BorrowMut.html"·title="trait·alloc::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where
13 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="met[·...·truncated·by·diffoscope;·len:·954,·SHA:·5ca69698d4bb8de1849b64ae87544dc0ec2bdd1a4d8dc75ba8d58b2c6c6a9ae6·...·]/core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where13 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="s[·...·truncated·by·diffoscope;·len:·819,·SHA:·3ca215d87d373be29774fff31d75c216034e4aa910e49de0e3fc5b88c46bc387·...·]/core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where
14 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="[·...·truncated·by·diffoscope;·len:·1883,·SHA:·e07301fb9e28f950d7450480a6b68014ffcdcc3be12b1adda27936cb1244377e·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>14 ····T:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·class[·...·truncated·by·diffoscope;·len:·1613,·SHA:·fde0dd5e9bb3fa078effcc98999e7fcc8b1aa390c8b7a3b6a3d8fd02f0c83e78·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>
15 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where15 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where
16 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="m[·...·truncated·by·diffoscope;·len:·237,·SHA:·98603c35860102b3af9b5cf27aeabf39e3c03236551986a6ec030817f108d919·...·]/core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>16 ····U:·<a·class="trait"·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class=[·...·truncated·by·diffoscope;·len:·156,·SHA:·79561c49c77b14346871935198fc061d00c9e84705db975b0451f5fb4f6af9a0·...·]/core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>
17 <p>That·is,·this·conversion·is·whatever·the·implementation·of17 <p>That·is,·this·conversion·is·whatever·the·implementation·of
18 <code><a·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>18 <code><a·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>
19 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#82-94">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where19 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#82-94">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where
20 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·t[·...·truncated·by·diffoscope;·len:·1979,·SHA:·f368483b3c0c332622730cfd8e12b999a38da27428f159611e979a5a04486d0c·...·]/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where20 ····T:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src·ri[·...·truncated·by·diffoscope;·len:·1871,·SHA:·5d02ea96bd0cae49516e469609d9e5f2add38a0bdc9952dbf03901b514350c50·...·]/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where
21 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="asso[·...·truncated·by·diffoscope;·len:·1973,·SHA:·db4b8407e8e20581ad139aef25a6221a11da0f5f18d6aa35aa33eb843f4e1b9f·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where21 ····U:·<a·class="trait"·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·c[·...·truncated·by·diffoscope;·len:·1676,·SHA:·4c73b68f4fb433b5f24fbcd660156381e5dd9f46425d075b558b9b6ca0705f88·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where
22 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·clas[·...·truncated·by·diffoscope;·len:·1578,·SHA:·998d5af10fd889567cd999d1306bfd16c91134d2238a3c172f1e7fa8ed138c18·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>22 ····U:·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-imp[·...·truncated·by·diffoscope;·len:·1308,·SHA:·6741e462a0e1b36010204263b7580305663bb27f362987d14303068592f9f358·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>
5.29 KB
./usr/share/doc/rust-doc/html/alloc/fmt/fn.format.html
    
Offset 1, 9 lines modifiedOffset 1, 9 lines modified
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="Takes·an·`Arguments`·struct·and·returns·the·resulting·formatted·string."><title>format·in·alloc::fmt·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·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"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312» 2025-01-07)»      (built»from»    a»   source»     tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">format</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#examples"·title="Examples">Examples</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>fmt</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">alloc</a>::<wbr><a·href="index.html">fmt</a></span><h1>Function·<span·class="fn">format</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../src/alloc/fmt.rs.html#642-653">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·fn·format(args:·<a·class="struct"·href="struct.Arguments.html"·title="struct·alloc::fmt::Arguments">Arguments</a>&lt;'_&gt;)·-&gt;·<a·class="struct"·href="../string/struct.String.html"·title="struct·alloc::string::String">String</a></code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Takes·an·<a·href="struct.Arguments.html"·title="struct·alloc::fmt::Arguments"><code>Arguments</code></a>·struct·and·returns·the·resulting·formatted·string.</p>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="Takes·an·`Arguments`·struct·and·returns·the·resulting·formatted·string."><title>format·in·alloc::fmt·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·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"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312» 2025-01-07)»      (built»from»    a»   source»     tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">format</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#examples"·title="Examples">Examples</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>fmt</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">alloc</a>::<wbr><a·href="index.html">fmt</a></span><h1>Function·<span·class="fn">format</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../src/alloc/fmt.rs.html#642-653">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·fn·format(args:·<a·class="struct"·href="struct.Arguments.html"·title="struct·alloc::fmt::Arguments">Arguments</a>&lt;'_&gt;)·-&gt;·<a·class="struct"·href="../string/struct.String.html"·title="struct·alloc::string::String">String</a></code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Takes·an·<a·href="struct.Arguments.html"·title="struct·alloc::fmt::Arguments"><code>Arguments</code></a>·struct·and·returns·the·resulting·formatted·string.</p>
2 <p>The·<a·href="struct.Arguments.html"·title="struct·alloc::fmt::Arguments"><code>Arguments</code></a>·instance·can·be·created·with·the·<a·href="https://doc.rust-lang.org/1.84.0/core/macro.format_args.html"·title="macro·core::format_args"><code>format_args!</code></a>·macro.</p>2 <p>The·<a·href="struct.Arguments.html"·title="struct·alloc::fmt::Arguments"><code>Arguments</code></a>·instance·can·be·created·with·the·<a·href="../../core/macro.format_args.html"·title="macro·core::format_args"><code>format_args!</code></a>·macro.</p>
3 <h2·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h2>3 <h2·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h2>
4 <p>Basic·usage:</p>4 <p>Basic·usage:</p>
  
5 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt;5 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt;
  
6 <span·class="kw">let·</span>s·=·fmt::format(<span·class="macro">format_args!</span>(<span·class="string">"Hello,·{}!"</span>,·<span·class="string">"world"</span>));6 <span·class="kw">let·</span>s·=·fmt::format(<span·class="macro">format_args!</span>(<span·class="string">"Hello,·{}!"</span>,·<span·class="string">"world"</span>));
7 <span·class="macro">assert_eq!</span>(s,·<span·class="string">"Hello,·world!"</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::fmt;%0A++++%0A++++let+s+=+fmt::format(format_args!(%22Hello,+%7B%7D!%22,+%22world%22));%0A++++assert_eq!(s,+%22Hello,+world!%22);%0A%7D&amp;edition=2021"></a></div>7 <span·class="macro">assert_eq!</span>(s,·<span·class="string">"Hello,·world!"</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::fmt;%0A++++%0A++++let+s+=+fmt::format(format_args!(%22Hello,+%7B%7D!%22,+%22world%22));%0A++++assert_eq!(s,+%22Hello,+world!%22);%0A%7D&amp;edition=2021"></a></div>
9.86 KB
./usr/share/doc/rust-doc/html/alloc/fmt/fn.from_fn.html
    
Offset 1, 9 lines modifiedOffset 1, 9 lines modified
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="Creates·a·type·whose·`fmt::Debug`·and·`fmt::Display`·impls·are·provided·with·the·function·`f`."><title>from_fn·in·alloc::fmt·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·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"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»     2025-01-07)»  (built»    from»a»       source» tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">from_fn</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#examples"·title="Examples">Examples</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>fmt</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">alloc</a>::<wbr><a·href="index.html">fmt</a></span><h1>Function·<span·class="fn">from_fn</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="https://doc.rust-lang.org/1.84.0/src/core/fmt/builders.rs.html#1231">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·fn·from_fn&lt;F&gt;(f:·F)·-&gt;·<a·class="struct"·href="struct.FromFn.html"·title="struct·alloc::fmt::FromFn">FromFn</a>&lt;F&gt;<div·class="where">where1 <!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·type·whose·`fmt::Debug`·and·`fmt::Display`·impls·are·provided·with·the·function·`f`."><title>from_fn·in·alloc::fmt·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·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"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»     2025-01-07)»  (built»    from»a»       source» tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">from_fn</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#examples"·title="Examples">Examples</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>fmt</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">alloc</a>::<wbr><a·href="index.html">fmt</a></span><h1>Function·<span·class="fn">from_fn</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/core/fmt/builders.rs.html#1231">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·fn·from_fn&lt;F&gt;(f:·F)·-&gt;·<a·class="struct"·href="struct.FromFn.html"·title="struct·alloc::fmt::FromFn">FromFn</a>&lt;F&gt;<div·class="where">where
2 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.Fn.html"·title="trait·core::ops::function::Fn">Fn</a>(&amp;mut·<a·class="struct"·href="struct.Formatter.html"·title="struct·alloc::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="enum"·href=[·...·truncated·by·diffoscope;·len:·171,·SHA:·833e48c378ecc92fda93d25243119523deb2b3200f2df4247c09204868da48db·...·]/core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.Error.html"·title="struct·alloc::fmt::Error">Error</a>&gt;,</div></code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>debug_closure_helpers</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/117729">#117729</a>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Creates·a·type·whose·<a·href="trait.Debug.html"·title="trait·alloc::fmt::Debug"><code>fmt::Debug</code></a>·and·<a·href="trait.Display.html"·title="trait·alloc::fmt::Display"><code>fmt::Display</code></a>·impls·are·provided·with·the·function2 ····F:·<a·class="trait"·href="../../core/ops/function/trait.Fn.html"·title="trait·core::ops::function::Fn">Fn</a>(&amp;mut·<a·class="struct"·href="struct.Formatter.html"·title="struct·alloc::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="enum"·href="../../core/result/enum.Res[·...·truncated·by·diffoscope;·len:·90,·SHA:·78f88c720475d1511ab514ed1cff517e404fd9af31cdb30de61c427009d644a3·...·]/core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.Error.html"·title="struct·alloc::fmt::Error">Error</a>&gt;,</div></code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>debug_closure_helpers</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/117729">#117729</a>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Creates·a·type·whose·<a·href="trait.Debug.html"·title="trait·alloc::fmt::Debug"><code>fmt::Debug</code></a>·and·<a·href="trait.Display.html"·title="trait·alloc::fmt::Display"><code>fmt::Display</code></a>·impls·are·provided·with·the·function
3 <code>f</code>.</p>3 <code>f</code>.</p>
4 <h2·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h2>4 <h2·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h2>
5 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(debug_closure_helpers)]5 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(debug_closure_helpers)]
6 </span><span·class="kw">use·</span>std::fmt;6 </span><span·class="kw">use·</span>std::fmt;
  
7 <span·class="kw">let·</span>value·=·<span·class="string">'a'</span>;7 <span·class="kw">let·</span>value·=·<span·class="string">'a'</span>;
8 <span·class="macro">assert_eq!</span>(<span·class="macro">format!</span>(<span·class="string">"{}"</span>,·value),·<span·class="string">"a"</span>);8 <span·class="macro">assert_eq!</span>(<span·class="macro">format!</span>(<span·class="string">"{}"</span>,·value),·<span·class="string">"a"</span>);
10.9 KB
./usr/share/doc/rust-doc/html/alloc/fmt/fn.write.html
    
Offset 1, 21 lines modifiedOffset 1, 21 lines modified
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="Takes·an·output·stream·and·an·`Arguments`·struct·that·can·be·precompiled·with·the·`format_args!`·macro."><title>write·in·alloc::fmt·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·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"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»2025-01-07)»     (built»       from»   a»  source»    tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">write</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#examples"·title="Examples">Examples</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>fmt</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">alloc</a>::<wbr><a·href="index.html">fmt</a></span><h1>Function·<span·class="fn">write</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/fmt/mod.rs.html#1171">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·fn·write(output:·&amp;mut·dyn·<a·class="trait"·href="trait.Write.html"·title="trait·alloc::fmt::Write">Write</a>,·args:·<a·class="[·...·truncated·by·diffoscope;·len:·297,·SHA:·292b7c8fc2fa5856f1c3613ce6397546896c5362d1b33a5a824f315985a8fe3b·...·]/core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.Error.html"·title="struct·alloc::fmt::Error">Error</a>&gt;</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Takes·an·output·stream·and·an·<code>Arguments</code>·struct·that·can·be·precompiled·with1 <!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="Takes·an·output·stream·and·an·`Arguments`·struct·that·can·be·precompiled·with·the·`format_args!`·macro."><title>write·in·alloc::fmt·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·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"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»2025-01-07)»     (built»       from»   a»  source»    tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">write</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#examples"·title="Examples">Examples</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>fmt</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">alloc</a>::<wbr><a·href="index.html">fmt</a></span><h1>Function·<span·class="fn">write</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../src/core/fmt/mod.rs.html#1171">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·fn·write(output:·&amp;mut·dyn·<a·class="trait"·href="trait.Write.html"·title="trait·alloc::fmt::Write">Write</a>,·args:·<a·class="struct"·href="struct.Argume[·...·truncated·by·diffoscope;·len:·216,·SHA:·898521425b4b2288bdc745a53f8e4ebd3c840a441f4241d7f14af2e32134ff40·...·]/core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.Error.html"·title="struct·alloc::fmt::Error">Error</a>&gt;</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Takes·an·output·stream·and·an·<code>Arguments</code>·struct·that·can·be·precompiled·with
2 the·<code>format_args!</code>·macro.</p>2 the·<code>format_args!</code>·macro.</p>
3 <p>The·arguments·will·be·formatted·according·to·the·specified·format·string3 <p>The·arguments·will·be·formatted·according·to·the·specified·format·string
4 into·the·output·stream·provided.</p>4 into·the·output·stream·provided.</p>
5 <h2·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h2>5 <h2·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h2>
6 <p>Basic·usage:</p>6 <p>Basic·usage:</p>
  
7 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt;7 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt;
  
8 <span·class="kw">let·</span><span·class="kw-2">mut·</span>output·=·String::new();8 <span·class="kw">let·</span><span·class="kw-2">mut·</span>output·=·String::new();
9 fmt::write(<span·class="kw-2">&amp;mut·</span>output,·<span·class="macro">format_args!</span>(<span·class="string">"Hello·{}!"</span>,·<span·class="string">"world"</span>))9 fmt::write(<span·class="kw-2">&amp;mut·</span>output,·<span·class="macro">format_args!</span>(<span·class="string">"Hello·{}!"</span>,·<span·class="string">"world"</span>))
10 ····.expect(<span·class="string">"Error·occurred·while·trying·to·write·in·String"</span>);10 ····.expect(<span·class="string">"Error·occurred·while·trying·to·write·in·String"</span>);
11 <span·class="macro">assert_eq!</span>(output,·<span·class="string">"Hello·world!"</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::fmt;%0A++++%0A++++let+mut+output+=+String::new();%0A++++fmt::write(%26mut+output,+format_args!(%22Hello+%7B%7D!%22,+%22world%22))%0A++++++++.expect(%22Error+occurred+while+trying+to+write+in+String%22);%0A++++assert_eq!(output,+%22Hello+world!%22);%0A%7D&amp;edition=2021"></a></div>11 <span·class="macro">assert_eq!</span>(output,·<span·class="string">"Hello·world!"</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::fmt;%0A++++%0A++++let+mut+output+=+String::new();%0A++++fmt::write(%26mut+output,+format_args!(%22Hello+%7B%7D!%22,+%22world%22))%0A++++++++.expect(%22Error+occurred+while+trying+to+write+in+String%22);%0A++++assert_eq!(output,+%22Hello+world!%22);%0A%7D&amp;edition=2021"></a></div>
12 <p>Please·note·that·using·<a·href="https://doc.rust-lang.org/1.84.0/core/macro.write.html"·title="macro·core::write"><code>write!</code></a>·might·be·preferable.·Example:</p>12 <p>Please·note·that·using·<a·href="../../core/macro.write.html"·title="macro·core::write"><code>write!</code></a>·might·be·preferable.·Example:</p>
  
13 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt::Write;13 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt::Write;
  
14 <span·class="kw">let·</span><span·class="kw-2">mut·</span>output·=·String::new();14 <span·class="kw">let·</span><span·class="kw-2">mut·</span>output·=·String::new();
15 <span·class="macro">write!</span>(<span·class="kw-2">&amp;mut·</span>output,·<span·class="string">"Hello·{}!"</span>,·<span·class="string">"world"</span>)15 <span·class="macro">write!</span>(<span·class="kw-2">&amp;mut·</span>output,·<span·class="string">"Hello·{}!"</span>,·<span·class="string">"world"</span>)
16 ····.expect(<span·class="string">"Error·occurred·while·trying·to·write·in·String"</span>);16 ····.expect(<span·class="string">"Error·occurred·while·trying·to·write·in·String"</span>);
17 <span·class="macro">assert_eq!</span>(output,·<span·class="string">"Hello·world!"</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::fmt::Write;%0A++++%0A++++let+mut+output+=+String::new();%0A++++write!(%26mut+output,+%22Hello+%7B%7D!%22,+%22world%22)%0A++++++++.expect(%22Error+occurred+while+trying+to+write+in+String%22);%0A++++assert_eq!(output,+%22Hello+world!%22);%0A%7D&amp;edition=2021"></a></div>17 <span·class="macro">assert_eq!</span>(output,·<span·class="string">"Hello·world!"</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::fmt::Write;%0A++++%0A++++let+mut+output+=+String::new();%0A++++write!(%26mut+output,+%22Hello+%7B%7D!%22,+%22world%22)%0A++++++++.expect(%22Error+occurred+while+trying+to+write+in+String%22);%0A++++assert_eq!(output,+%22Hello+world!%22);%0A%7D&amp;edition=2021"></a></div>
12.7 KB
./usr/share/doc/rust-doc/html/alloc/fmt/index.html
    
Offset 90, 17 lines modifiedOffset 90, 17 lines modified
90 <span·class="macro">println!</span>(<span·class="string">"Hello·{:width$}!"</span>,·<span·class="string">"x"</span>,·width·=·<span·class="number">5</span>);90 <span·class="macro">println!</span>(<span·class="string">"Hello·{:width$}!"</span>,·<span·class="string">"x"</span>,·width·=·<span·class="number">5</span>);
91 <span·class="kw">let·</span>width·=·<span·class="number">5</span>;91 <span·class="kw">let·</span>width·=·<span·class="number">5</span>;
92 <span·class="macro">println!</span>(<span·class="string">"Hello·{:width$}!"</span>,·<span·class="string">"x"</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A//+All+of+these+print+%22Hello+x++++!%22%0Afn+main()+%7B%0A++++println!(%22Hello+%7B:5%7D!%22,+%22x%22);%0A++++println!(%22Hello+%7B:1%24%7D!%22,+%22x%22,+5);%0A++++println!(%22Hello+%7B1:0%24%7D!%22,+5,+%22x%22);%0A++++println!(%22Hello+%7B:width%24%7D!%22,+%22x%22,+width+=+5);%0A++++let+width+=+5;%0A++++println!(%22Hello+%7B:width%24%7D!%22,+%22x%22);%0A%7D&amp;edition=2021"></a></div>92 <span·class="macro">println!</span>(<span·class="string">"Hello·{:width$}!"</span>,·<span·class="string">"x"</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A//+All+of+these+print+%22Hello+x++++!%22%0Afn+main()+%7B%0A++++println!(%22Hello+%7B:5%7D!%22,+%22x%22);%0A++++println!(%22Hello+%7B:1%24%7D!%22,+%22x%22,+5);%0A++++println!(%22Hello+%7B1:0%24%7D!%22,+5,+%22x%22);%0A++++println!(%22Hello+%7B:width%24%7D!%22,+%22x%22,+width+=+5);%0A++++let+width+=+5;%0A++++println!(%22Hello+%7B:width%24%7D!%22,+%22x%22);%0A%7D&amp;edition=2021"></a></div>
93 <p>This·is·a·parameter·for·the·“minimum·width”·that·the·format·should·take·up.93 <p>This·is·a·parameter·for·the·“minimum·width”·that·the·format·should·take·up.
94 If·the·value’s·string·does·not·fill·up·this·many·characters,·then·the94 If·the·value’s·string·does·not·fill·up·this·many·characters,·then·the
95 padding·specified·by·fill/alignment·will·be·used·to·take·up·the·required95 padding·specified·by·fill/alignment·will·be·used·to·take·up·the·required
96 space·(see·below).</p>96 space·(see·below).</p>
97 <p>The·value·for·the·width·can·also·be·provided·as·a·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.usize.html"·title="primitive·usize"><code>usize</code></a>·in·the·list·of97 <p>The·value·for·the·width·can·also·be·provided·as·a·<a·href="../../core/primitive.usize.html"·title="primitive·usize"><code>usize</code></a>·in·the·list·of
98 parameters·by·adding·a·postfix·<code>$</code>,·indicating·that·the·second·argument·is98 parameters·by·adding·a·postfix·<code>$</code>,·indicating·that·the·second·argument·is
99 a·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.usize.html"·title="primitive·usize"><code>usize</code></a>·specifying·the·width.</p>99 a·<a·href="../../core/primitive.usize.html"·title="primitive·usize"><code>usize</code></a>·specifying·the·width.</p>
100 <p>Referring·to·an·argument·with·the·dollar·syntax·does·not·affect·the·“next100 <p>Referring·to·an·argument·with·the·dollar·syntax·does·not·affect·the·“next
101 argument”·counter,·so·it’s·usually·a·good·idea·to·refer·to·arguments·by101 argument”·counter,·so·it’s·usually·a·good·idea·to·refer·to·arguments·by
102 position,·or·use·named·arguments.</p>102 position,·or·use·named·arguments.</p>
103 <h3·id="fillalignment"><a·class="doc-anchor"·href="#fillalignment">§</a>Fill/Alignment</h3>103 <h3·id="fillalignment"><a·class="doc-anchor"·href="#fillalignment">§</a>Fill/Alignment</h3>
104 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="macro">assert_eq!</span>(<span·class="macro">format!</span>(<span·class="string">"Hello·{:&lt;5}!"</span>,·<span·class="string">"x"</span>),··<span·class="string">"Hello·x····!"</span>);104 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="macro">assert_eq!</span>(<span·class="macro">format!</span>(<span·class="string">"Hello·{:&lt;5}!"</span>,·<span·class="string">"x"</span>),··<span·class="string">"Hello·x····!"</span>);
105 <span·class="macro">assert_eq!</span>(<span·class="macro">format!</span>(<span·class="string">"Hello·{:-&lt;5}!"</span>,·<span·class="string">"x"</span>),·<span·class="string">"Hello·x----!"</span>);105 <span·class="macro">assert_eq!</span>(<span·class="macro">format!</span>(<span·class="string">"Hello·{:-&lt;5}!"</span>,·<span·class="string">"x"</span>),·<span·class="string">"Hello·x----!"</span>);
106 <span·class="macro">assert_eq!</span>(<span·class="macro">format!</span>(<span·class="string">"Hello·{:^5}!"</span>,·<span·class="string">"x"</span>),··<span·class="string">"Hello···x··!"</span>);106 <span·class="macro">assert_eq!</span>(<span·class="macro">format!</span>(<span·class="string">"Hello·{:^5}!"</span>,·<span·class="string">"x"</span>),··<span·class="string">"Hello···x··!"</span>);
Offset 277, 24 lines modifiedOffset 277, 24 lines modified
277 precision·:=·count·|·&#39;*&#39;277 precision·:=·count·|·&#39;*&#39;
278 type·:=·&#39;&#39;·|·&#39;?&#39;·|·&#39;x?&#39;·|·&#39;X?&#39;·|·identifier278 type·:=·&#39;&#39;·|·&#39;?&#39;·|·&#39;x?&#39;·|·&#39;X?&#39;·|·identifier
279 count·:=·parameter·|·integer279 count·:=·parameter·|·integer
280 parameter·:=·argument·&#39;$&#39;</code></pre></div>280 parameter·:=·argument·&#39;$&#39;</code></pre></div>
281 <p>In·the·above·grammar,</p>281 <p>In·the·above·grammar,</p>
282 <ul>282 <ul>
283 <li><code>text</code>·must·not·contain·any·<code>'{'</code>·or·<code>'}'</code>·characters,</li>283 <li><code>text</code>·must·not·contain·any·<code>'{'</code>·or·<code>'}'</code>·characters,</li>
284 <li><code>ws</code>·is·any·character·for·which·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.char.html#method.is_whitespace"·title="method·char::is_whitespace"><code>char::is_whitespace</code></a>·returns·<code>true</code>,·has·no·semantic284 <li><code>ws</code>·is·any·character·for·which·<a·href="../../core/primitive.char.html#method.is_whitespace"·title="method·char::is_whitespace"><code>char::is_whitespace</code></a>·returns·<code>true</code>,·has·no·semantic
285 meaning·and·is·completely·optional,</li>285 meaning·and·is·completely·optional,</li>
286 <li><code>integer</code>·is·a·decimal·integer·that·may·contain·leading·zeroes·and·must·fit·into·an·<code>usize</code>·and</li>286 <li><code>integer</code>·is·a·decimal·integer·that·may·contain·leading·zeroes·and·must·fit·into·an·<code>usize</code>·and</li>
287 <li><code>identifier</code>·is·an·<code>IDENTIFIER_OR_KEYWORD</code>·(not·an·<code>IDENTIFIER</code>)·as·defined·by·the·<a·href="https://doc.rust-lang.org/reference/identifiers.html">Rust·language·reference</a>.</li>287 <li><code>identifier</code>·is·an·<code>IDENTIFIER_OR_KEYWORD</code>·(not·an·<code>IDENTIFIER</code>)·as·defined·by·the·<a·href="https://doc.rust-lang.org/reference/identifiers.html">Rust·language·reference</a>.</li>
288 </ul>288 </ul>
289 <h2·id="formatting-traits"><a·class="doc-anchor"·href="#formatting-traits">§</a>Formatting·traits</h2>289 <h2·id="formatting-traits"><a·class="doc-anchor"·href="#formatting-traits">§</a>Formatting·traits</h2>
290 <p>When·requesting·that·an·argument·be·formatted·with·a·particular·type,·you290 <p>When·requesting·that·an·argument·be·formatted·with·a·particular·type,·you
291 are·actually·requesting·that·an·argument·ascribes·to·a·particular·trait.291 are·actually·requesting·that·an·argument·ascribes·to·a·particular·trait.
292 This·allows·multiple·actual·types·to·be·formatted·via·<code>{:x}</code>·(like·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.i8.html"·title="primitive·i8"><code>i8</code></a>·as292 This·allows·multiple·actual·types·to·be·formatted·via·<code>{:x}</code>·(like·<a·href="../../core/primitive.i8.html"·title="primitive·i8"><code>i8</code></a>·as
293 well·as·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.isize.html"·title="primitive·isize"><code>isize</code></a>).·The·current·mapping·of·types·to·traits·is:</p>293 well·as·<a·href="../../core/primitive.isize.html"·title="primitive·isize"><code>isize</code></a>).·The·current·mapping·of·types·to·traits·is:</p>
294 <ul>294 <ul>
295 <li><em>nothing</em>··<a·href="trait.Display.html"·title="trait·alloc::fmt::Display"><code>Display</code></a></li>295 <li><em>nothing</em>··<a·href="trait.Display.html"·title="trait·alloc::fmt::Display"><code>Display</code></a></li>
296 <li><code>?</code>··<a·href="trait.Debug.html"·title="trait·alloc::fmt::Debug"><code>Debug</code></a></li>296 <li><code>?</code>··<a·href="trait.Debug.html"·title="trait·alloc::fmt::Debug"><code>Debug</code></a></li>
297 <li><code>x?</code>··<a·href="trait.Debug.html"·title="trait·alloc::fmt::Debug"><code>Debug</code></a>·with·lower-case·hexadecimal·integers</li>297 <li><code>x?</code>··<a·href="trait.Debug.html"·title="trait·alloc::fmt::Debug"><code>Debug</code></a>·with·lower-case·hexadecimal·integers</li>
298 <li><code>X?</code>··<a·href="trait.Debug.html"·title="trait·alloc::fmt::Debug"><code>Debug</code></a>·with·upper-case·hexadecimal·integers</li>298 <li><code>X?</code>··<a·href="trait.Debug.html"·title="trait·alloc::fmt::Debug"><code>Debug</code></a>·with·upper-case·hexadecimal·integers</li>
299 <li><code>o</code>··<a·href="trait.Octal.html"·title="trait·alloc::fmt::Octal"><code>Octal</code></a></li>299 <li><code>o</code>··<a·href="trait.Octal.html"·title="trait·alloc::fmt::Octal"><code>Octal</code></a></li>
300 <li><code>x</code>··<a·href="trait.LowerHex.html"·title="trait·alloc::fmt::LowerHex"><code>LowerHex</code></a></li>300 <li><code>x</code>··<a·href="trait.LowerHex.html"·title="trait·alloc::fmt::LowerHex"><code>LowerHex</code></a></li>
Offset 316, 17 lines modifiedOffset 316, 17 lines modified
316 <p>Your·type·will·be·passed·as·<code>self</code>·by-reference,·and·then·the·function316 <p>Your·type·will·be·passed·as·<code>self</code>·by-reference,·and·then·the·function
317 should·emit·output·into·the·Formatter·<code>f</code>·which·implements·<code>fmt::Write</code>.·It·is·up·to·each317 should·emit·output·into·the·Formatter·<code>f</code>·which·implements·<code>fmt::Write</code>.·It·is·up·to·each
318 format·trait·implementation·to·correctly·adhere·to·the·requested·formatting·parameters.318 format·trait·implementation·to·correctly·adhere·to·the·requested·formatting·parameters.
319 The·values·of·these·parameters·can·be·accessed·with·methods·of·the319 The·values·of·these·parameters·can·be·accessed·with·methods·of·the
320 <a·href="struct.Formatter.html"·title="struct·alloc::fmt::Formatter"><code>Formatter</code></a>·struct.·In·order·to·help·with·this,·the·<a·href="struct.Formatter.html"·title="struct·alloc::fmt::Formatter"><code>Formatter</code></a>·struct·also320 <a·href="struct.Formatter.html"·title="struct·alloc::fmt::Formatter"><code>Formatter</code></a>·struct.·In·order·to·help·with·this,·the·<a·href="struct.Formatter.html"·title="struct·alloc::fmt::Formatter"><code>Formatter</code></a>·struct·also
321 provides·some·helper·methods.</p>321 provides·some·helper·methods.</p>
322 <p>Additionally,·the·return·value·of·this·function·is·<a·href="type.Result.html"·title="fmt::Result"><code>fmt::Result</code></a>·which·is·a322 <p>Additionally,·the·return·value·of·this·function·is·<a·href="type.Result.html"·title="fmt::Result"><code>fmt::Result</code></a>·which·is·a
323 type·alias·of·<code><a·href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html"·title="std::result::Result">Result</a>&lt;(),·<a·href="struct.Error.html"·title="fmt::Error">std::fmt::Error</a>&gt;</code>.·Formatting·implementations323 type·alias·of·<code><a·href="../../core/result/enum.Result.html"·title="std::result::Result">Result</a>&lt;(),·<a·href="struct.Error.html"·title="fmt::Error">std::fmt::Error</a>&gt;</code>.·Formatting·implementations
324 should·ensure·that·they·propagate·errors·from·the·<a·href="struct.Formatter.html"·title="struct·alloc::fmt::Formatter"><code>Formatter</code></a>·(e.g.,·when324 should·ensure·that·they·propagate·errors·from·the·<a·href="struct.Formatter.html"·title="struct·alloc::fmt::Formatter"><code>Formatter</code></a>·(e.g.,·when
325 calling·<a·href="https://doc.rust-lang.org/1.84.0/core/macro.write.html"·title="macro·core::write"><code>write!</code></a>).·However,·they·should·never·return·errors·spuriously.·That325 calling·<a·href="../../core/macro.write.html"·title="macro·core::write"><code>write!</code></a>).·However,·they·should·never·return·errors·spuriously.·That
326 is,·a·formatting·implementation·must·and·may·only·return·an·error·if·the326 is,·a·formatting·implementation·must·and·may·only·return·an·error·if·the
327 passed-in·<a·href="struct.Formatter.html"·title="struct·alloc::fmt::Formatter"><code>Formatter</code></a>·returns·an·error.·This·is·because,·contrary·to·what327 passed-in·<a·href="struct.Formatter.html"·title="struct·alloc::fmt::Formatter"><code>Formatter</code></a>·returns·an·error.·This·is·because,·contrary·to·what
328 the·function·signature·might·suggest,·string·formatting·is·an·infallible328 the·function·signature·might·suggest,·string·formatting·is·an·infallible
329 operation.·This·function·only·returns·a·<a·href="type.Result.html"·title="type·alloc::fmt::Result"><code>Result</code></a>·because·writing·to·the329 operation.·This·function·only·returns·a·<a·href="type.Result.html"·title="type·alloc::fmt::Result"><code>Result</code></a>·because·writing·to·the
330 underlying·stream·might·fail·and·it·must·provide·a·way·to·propagate·the·fact330 underlying·stream·might·fail·and·it·must·provide·a·way·to·propagate·the·fact
331 that·an·error·has·occurred·back·up·the·stack.</p>331 that·an·error·has·occurred·back·up·the·stack.</p>
332 <p>An·example·of·implementing·the·formatting·traits·would·look332 <p>An·example·of·implementing·the·formatting·traits·would·look
Offset 398, 25 lines modifiedOffset 398, 25 lines modified
398 </span><span·class="macro">writeln!</span>·····<span·class="comment">//·same·as·write·but·appends·a·newline398 </span><span·class="macro">writeln!</span>·····<span·class="comment">//·same·as·write·but·appends·a·newline
399 </span><span·class="macro">print!</span>·······<span·class="comment">//·the·format·string·is·printed·to·the·standard·output399 </span><span·class="macro">print!</span>·······<span·class="comment">//·the·format·string·is·printed·to·the·standard·output
400 </span><span·class="macro">println!</span>·····<span·class="comment">//·same·as·print·but·appends·a·newline400 </span><span·class="macro">println!</span>·····<span·class="comment">//·same·as·print·but·appends·a·newline
401 </span><span·class="macro">eprint!</span>······<span·class="comment">//·the·format·string·is·printed·to·the·standard·error401 </span><span·class="macro">eprint!</span>······<span·class="comment">//·the·format·string·is·printed·to·the·standard·error
402 </span><span·class="macro">eprintln!</span>····<span·class="comment">//·same·as·eprint·but·appends·a·newline402 </span><span·class="macro">eprintln!</span>····<span·class="comment">//·same·as·eprint·but·appends·a·newline
403 </span><span·class="macro">format_args!</span>·<span·class="comment">//·described·below.</span></code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++format!++++++//+described+above%0A++++write!+++++++//+first+argument+is+either+a+%26mut+io::Write+or+a+%26mut+fmt::Write,+the+destination%0A++++writeln!+++++//+same+as+write+but+appends+a+newline%0A++++print!+++++++//+the+format+string+is+printed+to+the+standard+output%0A++++println!+++++//+same+as+print+but+appends+a+newline%0A++++eprint!++++++//+the+format+string+is+printed+to+the+standard+error%0A++++eprintln!++++//+same+as+eprint+but+appends+a+newline%0A++++format_args!+//+described+below.%0A%7D&amp;edition=2021"></a></div>403 </span><span·class="macro">format_args!</span>·<span·class="comment">//·described·below.</span></code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++format!++++++//+described+above%0A++++write!+++++++//+first+argument+is+either+a+%26mut+io::Write+or+a+%26mut+fmt::Write,+the+destination%0A++++writeln!+++++//+same+as+write+but+appends+a+newline%0A++++print!+++++++//+the+format+string+is+printed+to+the+standard+output%0A++++println!+++++//+same+as+print+but+appends+a+newline%0A++++eprint!++++++//+the+format+string+is+printed+to+the+standard+error%0A++++eprintln!++++//+same+as+eprint+but+appends+a+newline%0A++++format_args!+//+described+below.%0A%7D&amp;edition=2021"></a></div>
404 <h4·id="write"><a·class="doc-anchor"·href="#write">§</a><code>write!</code></h4>404 <h4·id="write"><a·class="doc-anchor"·href="#write">§</a><code>write!</code></h4>
405 <p><a·href="https://doc.rust-lang.org/1.84.0/core/macro.write.html"·title="macro·core::write"><code>write!</code></a>·and·<a·href="https://doc.rust-lang.org/1.84.0/core/macro.writeln.html"·title="macro·core::writeln"><code>writeln!</code></a>·are·two·macros·which·are·used·to·emit·the·format·string405 <p><a·href="../../core/macro.write.html"·title="macro·core::write"><code>write!</code></a>·and·<a·href="../../core/macro.writeln.html"·title="macro·core::writeln"><code>writeln!</code></a>·are·two·macros·which·are·used·to·emit·the·format·string
406 to·a·specified·stream.·This·is·used·to·prevent·intermediate·allocations·of406 to·a·specified·stream.·This·is·used·to·prevent·intermediate·allocations·of
407 format·strings·and·instead·directly·write·the·output.·Under·the·hood,·this407 format·strings·and·instead·directly·write·the·output.·Under·the·hood,·this
408 function·is·actually·invoking·the·<a·href="../../std/io/trait.Write.html#method.write_fmt"><code>write_fmt</code></a>·function·defined·on·the408 function·is·actually·invoking·the·<a·href="../../std/io/trait.Write.html#method.write_fmt"><code>write_fmt</code></a>·function·defined·on·the
409 <a·href="../../std/io/trait.Write.html"><code>std::io::Write</code></a>·and·the·<a·href="../../std/fmt/trait.Write.html"><code>std::fmt::Write</code></a>·trait.·Example·usage·is:</p>409 <a·href="../../std/io/trait.Write.html"><code>std::io::Write</code></a>·and·the·<a·href="../../std/fmt/trait.Write.html"><code>std::fmt::Write</code></a>·trait.·Example·usage·is:</p>
  
410 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::io::Write;410 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::io::Write;
411 <span·class="kw">let·</span><span·class="kw-2">mut·</span>w·=·Vec::new();411 <span·class="kw">let·</span><span·class="kw-2">mut·</span>w·=·Vec::new();
412 <span·class="macro">write!</span>(<span·class="kw-2">&amp;mut·</span>w,·<span·class="string">"Hello·{}!"</span>,·<span·class="string">"world"</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Ballow(unused_must_use)%5D%0Afn+main()+%7B%0A++++use+std::io::Write;%0A++++let+mut+w+=+Vec::new();%0A++++write!(%26mut+w,+%22Hello+%7B%7D!%22,+%22world%22);%0A%7D&amp;edition=2021"></a></div>412 <span·class="macro">write!</span>(<span·class="kw-2">&amp;mut·</span>w,·<span·class="string">"Hello·{}!"</span>,·<span·class="string">"world"</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Ballow(unused_must_use)%5D%0Afn+main()+%7B%0A++++use+std::io::Write;%0A++++let+mut+w+=+Vec::new();%0A++++write!(%26mut+w,+%22Hello+%7B%7D!%22,+%22world%22);%0A%7D&amp;edition=2021"></a></div>
413 <h4·id="print"><a·class="doc-anchor"·href="#print">§</a><code>print!</code></h4>413 <h4·id="print"><a·class="doc-anchor"·href="#print">§</a><code>print!</code></h4>
414 <p>This·and·<a·href="../../std/macro.println.html"·title="println!"><code>println!</code></a>·emit·their·output·to·stdout.·Similarly·to·the·<a·href="https://doc.rust-lang.org/1.84.0/core/macro.write.html"·title="macro·core::write"><code>write!</code></a>414 <p>This·and·<a·href="../../std/macro.println.html"·title="println!"><code>println!</code></a>·emit·their·output·to·stdout.·Similarly·to·the·<a·href="../../core/macro.write.html"·title="macro·core::write"><code>write!</code></a>
415 macro,·the·goal·of·these·macros·is·to·avoid·intermediate·allocations·when415 macro,·the·goal·of·these·macros·is·to·avoid·intermediate·allocations·when
416 printing·output.·Example·usage·is:</p>416 printing·output.·Example·usage·is:</p>
  
417 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="macro">print!</span>(<span·class="string">"Hello·{}!"</span>,·<span·class="string">"world"</span>);417 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="macro">print!</span>(<span·class="string">"Hello·{}!"</span>,·<span·class="string">"world"</span>);
418 <span·class="macro">println!</span>(<span·class="string">"I·have·a·newline·{}"</span>,·<span·class="string">"character·at·the·end"</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++print!(%22Hello+%7B%7D!%22,+%22world%22);%0A++++println!(%22I+have+a+newline+%7B%7D%22,+%22character+at+the+end%22);%0A%7D&amp;edition=2021"></a></div>418 <span·class="macro">println!</span>(<span·class="string">"I·have·a·newline·{}"</span>,·<span·class="string">"character·at·the·end"</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++print!(%22Hello+%7B%7D!%22,+%22world%22);%0A++++println!(%22I+have+a+newline+%7B%7D%22,+%22character+at+the+end%22);%0A%7D&amp;edition=2021"></a></div>
419 <h4·id="eprint"><a·class="doc-anchor"·href="#eprint">§</a><code>eprint!</code></h4>419 <h4·id="eprint"><a·class="doc-anchor"·href="#eprint">§</a><code>eprint!</code></h4>
420 <p>The·<a·href="../../std/macro.eprint.html"·title="eprint!"><code>eprint!</code></a>·and·<a·href="../../std/macro.eprintln.html"·title="eprintln!"><code>eprintln!</code></a>·macros·are·identical·to420 <p>The·<a·href="../../std/macro.eprint.html"·title="eprint!"><code>eprint!</code></a>·and·<a·href="../../std/macro.eprintln.html"·title="eprintln!"><code>eprintln!</code></a>·macros·are·identical·to
68.3 KB
./usr/share/doc/rust-doc/html/alloc/fmt/struct.Arguments.html
    
Offset 1, 24 lines modifiedOffset 1, 24 lines modified
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="This·structure·represents·a·safely·precompiled·version·of·a·format·string·and·its·arguments.·This·cannot·be·generated·at·runtime·because·it·cannot·safely·be·done,·so·no·constructors·are·given·and·the·fields·are·private·to·prevent·modification."><title>Arguments·in·alloc::fmt·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»   2025-01-07)»(built»  from»      a»     source»       tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Arguments</a></h2><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.as_str"·title="as_str">as_str</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Send-for-Arguments%3C'_%3E"·title="!Send">!Send</a></li><li><a·href="#impl-Sync-for-Arguments%3C'_%3E"·title="!Sync">!Sync</a></li><li><a·href="#impl-Clone-for-Arguments%3C'a%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Copy-for-Arguments%3C'a%3E"·title="Copy">Copy</a></li><li><a·href="#impl-Debug-for-Arguments%3C'_%3E"·title="Debug">Debug</a></li><li><a·href="#impl-Display-for-Arguments%3C'_%3E"·title="Display">Display</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-Arguments%3C'a%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Arguments%3C'a%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Unpin-for-Arguments%3C'a%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Arguments%3C'a%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-ToString-for-T"·title="ToString">ToString</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>fmt</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">alloc</a>::<wbr><a·href="index.html">fmt</a></span><h1>Struct·<span·class="struct">Arguments</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/fmt/mod.rs.html#319">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·Arguments&lt;'a&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>This·structure·represents·a·safely·precompiled·version·of·a·format·string1 <!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="This·structure·represents·a·safely·precompiled·version·of·a·format·string·and·its·arguments.·This·cannot·be·generated·at·runtime·because·it·cannot·safely·be·done,·so·no·constructors·are·given·and·the·fields·are·private·to·prevent·modification."><title>Arguments·in·alloc::fmt·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»   2025-01-07)»(built»  from»      a»     source»       tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Arguments</a></h2><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.as_str"·title="as_str">as_str</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Send-for-Arguments%3C'_%3E"·title="!Send">!Send</a></li><li><a·href="#impl-Sync-for-Arguments%3C'_%3E"·title="!Sync">!Sync</a></li><li><a·href="#impl-Clone-for-Arguments%3C'a%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Copy-for-Arguments%3C'a%3E"·title="Copy">Copy</a></li><li><a·href="#impl-Debug-for-Arguments%3C'_%3E"·title="Debug">Debug</a></li><li><a·href="#impl-Display-for-Arguments%3C'_%3E"·title="Display">Display</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-Arguments%3C'a%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Arguments%3C'a%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Unpin-for-Arguments%3C'a%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Arguments%3C'a%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-ToString-for-T"·title="ToString">ToString</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>fmt</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">alloc</a>::<wbr><a·href="index.html">fmt</a></span><h1>Struct·<span·class="struct">Arguments</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../src/core/fmt/mod.rs.html#319">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·Arguments&lt;'a&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>This·structure·represents·a·safely·precompiled·version·of·a·format·string
2 and·its·arguments.·This·cannot·be·generated·at·runtime·because·it·cannot2 and·its·arguments.·This·cannot·be·generated·at·runtime·because·it·cannot
3 safely·be·done,·so·no·constructors·are·given·and·the·fields·are·private3 safely·be·done,·so·no·constructors·are·given·and·the·fields·are·private
4 to·prevent·modification.</p>4 to·prevent·modification.</p>
5 <p>The·<a·href="https://doc.rust-lang.org/1.84.0/core/macro.format_args.html"·title="macro·core::format_args"><code>format_args!</code></a>·macro·will·safely·create·an·instance·of·this·structure.5 <p>The·<a·href="../../core/macro.format_args.html"·title="macro·core::format_args"><code>format_args!</code></a>·macro·will·safely·create·an·instance·of·this·structure.
6 The·macro·validates·the·format·string·at·compile-time·so·usage·of·the6 The·macro·validates·the·format·string·at·compile-time·so·usage·of·the
7 <a·href="fn.write.html"·title="fn·alloc::fmt::write"><code>write()</code></a>·and·<a·href="../../std/fmt/fn.format.html"><code>format()</code></a>·functions·can·be·safely·performed.</p>7 <a·href="fn.write.html"·title="fn·alloc::fmt::write"><code>write()</code></a>·and·<a·href="../../std/fmt/fn.format.html"><code>format()</code></a>·functions·can·be·safely·performed.</p>
8 <p>You·can·use·the·<code>Arguments&lt;'a&gt;</code>·that·<a·href="https://doc.rust-lang.org/1.84.0/core/macro.format_args.html"·title="macro·core::format_args"><code>format_args!</code></a>·returns·in·<code>Debug</code>8 <p>You·can·use·the·<code>Arguments&lt;'a&gt;</code>·that·<a·href="../../core/macro.format_args.html"·title="macro·core::format_args"><code>format_args!</code></a>·returns·in·<code>Debug</code>
9 and·<code>Display</code>·contexts·as·seen·below.·The·example·also·shows·that·<code>Debug</code>9 and·<code>Display</code>·contexts·as·seen·below.·The·example·also·shows·that·<code>Debug</code>
10 and·<code>Display</code>·format·to·the·same·thing:·the·interpolated·format·string10 and·<code>Display</code>·format·to·the·same·thing:·the·interpolated·format·string
11 in·<code>format_args!</code>.</p>11 in·<code>format_args!</code>.</p>
  
12 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span>debug·=·<span·class="macro">format!</span>(<span·class="string">"{:?}"</span>,·<span·class="macro">format_args!</span>(<span·class="string">"{}·foo·{:?}"</span>,·<span·class="number">1</span>,·<span·class="number">2</span>));12 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span>debug·=·<span·class="macro">format!</span>(<span·class="string">"{:?}"</span>,·<span·class="macro">format_args!</span>(<span·class="string">"{}·foo·{:?}"</span>,·<span·class="number">1</span>,·<span·class="number">2</span>));
13 <span·class="kw">let·</span>display·=·<span·class="macro">format!</span>(<span·class="string">"{}"</span>,·<span·class="macro">format_args!</span>(<span·class="string">"{}·foo·{:?}"</span>,·<span·class="number">1</span>,·<span·class="number">2</span>));13 <span·class="kw">let·</span>display·=·<span·class="macro">format!</span>(<span·class="string">"{}"</span>,·<span·class="macro">format_args!</span>(<span·class="string">"{}·foo·{:?}"</span>,·<span·class="number">1</span>,·<span·class="number">2</span>));
14 <span·class="macro">assert_eq!</span>(<span·class="string">"1·foo·2"</span>,·display);14 <span·class="macro">assert_eq!</span>(<span·class="string">"1·foo·2"</span>,·display);
15 <span·class="macro">assert_eq!</span>(display,·debug);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++let+debug+=+format!(%22%7B:?%7D%22,+format_args!(%22%7B%7D+foo+%7B:?%7D%22,+1,+2));%0A++++let+display+=+format!(%22%7B%7D%22,+format_args!(%22%7B%7D+foo+%7B:?%7D%22,+1,+2));%0A++++assert_eq!(%221+foo+2%22,+display);%0A++++assert_eq!(display,+debug);%0A%7D&amp;edition=2021"></a></div>15 <span·class="macro">assert_eq!</span>(display,·debug);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++let+debug+=+format!(%22%7B:?%7D%22,+format_args!(%22%7B%7D+foo+%7B:?%7D%22,+1,+2));%0A++++let+display+=+format!(%22%7B%7D%22,+format_args!(%22%7B%7D+foo+%7B:?%7D%22,+1,+2));%0A++++assert_eq!(%221+foo+2%22,+display);%0A++++assert_eq!(display,+debug);%0A%7D&amp;edition=2021"></a></div>
16 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Arguments%3C'a%3E"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/fmt/mod.rs.html#397">Source</a><a·href="#impl-Arguments%3C'a%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a&gt;·<a·class="struct"·href="struct.Arguments.html"·title="struct·alloc::fmt::Arguments">Argume[·...·truncated·by·diffoscope;·len:·705,·SHA:·3ffc78180c8a2366e94f9ccf4e929d14c313a8d4c156144853066b123dee7686·...·]/core/primitive.str.html">str</a>&gt;</h4></section></summary><div·class="docblock"><p>Gets·the·formatted·string,·if·it·has·no·arguments·to·be·formatted·at·runtime.</p>16 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Arguments%3C'a%3E"·class="impl"><a·class="src·rightside"·href="../../src/core/fmt/mod.rs.html#397">Source</a><a·href="#impl-Arguments%3C'a%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a&gt;·<a·class="struct"·href="struct.Arguments.html"·title="struct·alloc::fmt::Arguments">Arguments</a>&lt;'a&gt;</h3></sec[·...·truncated·by·diffoscope;·len:·597,·SHA:·db42fd67dcfcb5b5847139fc23a55aedc6091e9f591540f72cec195a1954410c·...·]/core/primitive.str.html">str</a>&gt;</h4></section></summary><div·class="docblock"><p>Gets·the·formatted·string,·if·it·has·no·arguments·to·be·formatted·at·runtime.</p>
17 <p>This·can·be·used·to·avoid·allocations·in·some·cases.</p>17 <p>This·can·be·used·to·avoid·allocations·in·some·cases.</p>
18 <h5·id="guarantees"><a·class="doc-anchor"·href="#guarantees">§</a>Guarantees</h5>18 <h5·id="guarantees"><a·class="doc-anchor"·href="#guarantees">§</a>Guarantees</h5>
19 <p>For·<code>format_args!("just·a·literal")</code>,·this·function·is·guaranteed·to19 <p>For·<code>format_args!("just·a·literal")</code>,·this·function·is·guaranteed·to
20 return·<code>Some("just·a·literal")</code>.</p>20 return·<code>Some("just·a·literal")</code>.</p>
21 <p>For·most·cases·with·placeholders,·this·function·will·return·<code>None</code>.</p>21 <p>For·most·cases·with·placeholders,·this·function·will·return·<code>None</code>.</p>
22 <p>However,·the·compiler·may·perform·optimizations·that·can·cause·this22 <p>However,·the·compiler·may·perform·optimizations·that·can·cause·this
23 function·to·return·<code>Some(_)</code>·even·if·the·format·string·contains23 function·to·return·<code>Some(_)</code>·even·if·the·format·string·contains
Offset 40, 21 lines modifiedOffset 40, 21 lines modified
40 ········write_str(<span·class="kw-2">&amp;</span>args.to_string());40 ········write_str(<span·class="kw-2">&amp;</span>args.to_string());
41 ····}41 ····}
42 }</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::fmt::Arguments;%0A++++%0A++++fn+write_str(_:+%26str)+%7B+/*+...+*/+%7D%0A++++%0A++++fn+write_fmt(args:+%26Arguments%3C'_%3E)+%7B%0A++++++++if+let+Some(s)+=+args.as_str()+%7B%0A++++++++++++write_str(s)%0A++++++++%7D+else+%7B%0A++++++++++++write_str(%26args.to_string());%0A++++++++%7D%0A++++%7D%0A%7D&amp;edition=2021"></a></div>42 }</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::fmt::Arguments;%0A++++%0A++++fn+write_str(_:+%26str)+%7B+/*+...+*/+%7D%0A++++%0A++++fn+write_fmt(args:+%26Arguments%3C'_%3E)+%7B%0A++++++++if+let+Some(s)+=+args.as_str()+%7B%0A++++++++++++write_str(s)%0A++++++++%7D+else+%7B%0A++++++++++++write_str(%26args.to_string());%0A++++++++%7D%0A++++%7D%0A%7D&amp;edition=2021"></a></div>
  
43 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="macro">assert_eq!</span>(<span·class="macro">format_args!</span>(<span·class="string">"hello"</span>).as_str(),·<span·class="prelude-val">Some</span>(<span·class="string">"hello"</span>));43 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="macro">assert_eq!</span>(<span·class="macro">format_args!</span>(<span·class="string">"hello"</span>).as_str(),·<span·class="prelude-val">Some</span>(<span·class="string">"hello"</span>));
44 <span·class="macro">assert_eq!</span>(<span·class="macro">format_args!</span>(<span·class="string">""</span>).as_str(),·<span·class="prelude-val">Some</span>(<span·class="string">""</span>));44 <span·class="macro">assert_eq!</span>(<span·class="macro">format_args!</span>(<span·class="string">""</span>).as_str(),·<span·class="prelude-val">Some</span>(<span·class="string">""</span>));
45 <span·class="macro">assert_eq!</span>(<span·class="macro">format_args!</span>(<span·class="string">"{:?}"</span>,·std::env::current_dir()).as_str(),·<span·class="prelude-val">None</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++assert_eq!(format_args!(%22hello%22).as_str(),+Some(%22hello%22));%0A++++assert_eq!(format_args!(%22%22).as_str(),+Some(%22%22));%0A++++assert_eq!(format_args!(%22%7B:?%7D%22,+std::env::current_dir()).as_str(),+None);%0A%7D&amp;edition=2021"></a></div>45 <span·class="macro">assert_eq!</span>(<span·class="macro">format_args!</span>(<span·class="string">"{:?}"</span>,·std::env::current_dir()).as_str(),·<span·class="prelude-val">None</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++assert_eq!(format_args!(%22hello%22).as_str(),+Some(%22hello%22));%0A++++assert_eq!(format_args!(%22%22).as_str(),+Some(%22%22));%0A++++assert_eq!(format_args!(%22%7B:?%7D%22,+std::env::current_dir()).as_str(),+None);%0A%7D&amp;edition=2021"></a></div>
46 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-Arguments%3C'a%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/fmt/mod.rs.html#318">Source</a></span><a·href="#impl-Clone-for-Arguments%3C'a%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.[·...·truncated·by·diffoscope;·len:·9270,·SHA:·2ed21385cfe513a1b8872428fc814c5cf87b9e209a1ae7e1538fc0a9a411c3aa·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where46 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-Arguments%3C'a%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/fmt/mod.rs.html#318">Source</a></span><a·href="#impl-Clone-for-Arguments%3C'a%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a&gt;·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>[·...·truncated·by·diffoscope;·len:·8514,·SHA:·d97f5c7d12f1852f13ef4009e1f2e89f0b015de5fa76525a2780785c55444398·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where
47 ····T:·'static·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method[·...·truncated·by·diffoscope;·len:·834,·SHA:·47dfc2aa0101a4103e2a94c1f971c559790d87a62d58631fd2bfed98e6616a34·...·]/src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where47 ····T:·'static·+·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·[·...·truncated·by·diffoscope;·len:·672,·SHA:·ace7a059971745d739c5abd9821e5d1d485cc233fd42150ceb251bdea1ce6bf7·...·]/src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where
48 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·[·...·truncated·by·diffoscope;·len:·737,·SHA:·9e65370662e77fc5c56c98c66a5dfda3c1d1244574dc8806ab91a8967514da78·...·]/src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.BorrowMut.html"·title="trait·alloc::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where48 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·r[·...·truncated·by·diffoscope;·len:·629,·SHA:·8e6f5d2e4a2830729c5d495459113ca6f54993696d7dc71c1f46e5691f5108ed·...·]/src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.BorrowMut.html"·title="trait·alloc::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where
49 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="met[·...·truncated·by·diffoscope;·len:·954,·SHA:·5ca69698d4bb8de1849b64ae87544dc0ec2bdd1a4d8dc75ba8d58b2c6c6a9ae6·...·]/core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where49 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="s[·...·truncated·by·diffoscope;·len:·819,·SHA:·3ca215d87d373be29774fff31d75c216034e4aa910e49de0e3fc5b88c46bc387·...·]/core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where
50 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="[·...·truncated·by·diffoscope;·len:·1883,·SHA:·e07301fb9e28f950d7450480a6b68014ffcdcc3be12b1adda27936cb1244377e·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>50 ····T:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·class[·...·truncated·by·diffoscope;·len:·1613,·SHA:·fde0dd5e9bb3fa078effcc98999e7fcc8b1aa390c8b7a3b6a3d8fd02f0c83e78·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>
51 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where51 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where
52 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="m[·...·truncated·by·diffoscope;·len:·237,·SHA:·98603c35860102b3af9b5cf27aeabf39e3c03236551986a6ec030817f108d919·...·]/core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>52 ····U:·<a·class="trait"·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class=[·...·truncated·by·diffoscope;·len:·156,·SHA:·79561c49c77b14346871935198fc061d00c9e84705db975b0451f5fb4f6af9a0·...·]/core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>
53 <p>That·is,·this·conversion·is·whatever·the·implementation·of53 <p>That·is,·this·conversion·is·whatever·the·implementation·of
54 <code><a·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>54 <code><a·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>
55 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#82-94">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where55 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#82-94">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where
56 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·t[·...·truncated·by·diffoscope;·len:·1350,·SHA:·06ff485c70db27d96df4529c9aabc3407488a0d8b3f238ea19fe87222f3c0e93·...·]/core/primitive.reference.html">&amp;mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToString-for-T"·class="impl"><a·class="src·rightside"·href="../../src/alloc/string.rs.html#2677-2691">Source</a><a·href="#impl-ToString-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../string/trait.ToString.html"·title="trait·alloc::string::ToString">ToString</a>·for·T<div·class="where">where56 ····T:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src·ri[·...·truncated·by·diffoscope;·len:·1296,·SHA:·88285bd52e5f5ad6b3e1b6d101339ab4047bdbd5b9d568c1e216b159cf17296e·...·]/core/primitive.reference.html">&amp;mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToString-for-T"·class="impl"><a·class="src·rightside"·href="../../src/alloc/string.rs.html#2677-2691">Source</a><a·href="#impl-ToString-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../string/trait.ToString.html"·title="trait·alloc::string::ToString">ToString</a>·for·T<div·class="where">where
57 ····T:·<a·class="trait"·href="trait.Display.html"·title="trait·alloc::fmt::Display">Display</a>·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.to_string"·class="meth[·...·truncated·by·diffoscope;·len:·956,·SHA:·5fb3fa997a6fe164f1c04c1d4cb696121571b376241266dc87e8079ebdfed810·...·]/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where57 ····T:·<a·class="trait"·href="trait.Display.html"·title="trait·alloc::fmt::Display">Display</a>·+·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.to_string"·class="method·trait-impl"><a·class="sr[·...·truncated·by·diffoscope;·len:·875,·SHA:·e58967f6ca4eee938a4135856f0af0adfcd5abe0b4e62c194e5c506c603bfcf1·...·]/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where
58 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="asso[·...·truncated·by·diffoscope;·len:·1973,·SHA:·db4b8407e8e20581ad139aef25a6221a11da0f5f18d6aa35aa33eb843f4e1b9f·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where58 ····U:·<a·class="trait"·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·c[·...·truncated·by·diffoscope;·len:·1676,·SHA:·4c73b68f4fb433b5f24fbcd660156381e5dd9f46425d075b558b9b6ca0705f88·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where
59 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·clas[·...·truncated·by·diffoscope;·len:·1578,·SHA:·998d5af10fd889567cd999d1306bfd16c91134d2238a3c172f1e7fa8ed138c18·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>59 ····U:·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-imp[·...·truncated·by·diffoscope;·len:·1308,·SHA:·6741e462a0e1b36010204263b7580305663bb27f362987d14303068592f9f358·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>
56.4 KB
./usr/share/doc/rust-doc/html/alloc/fmt/struct.DebugList.html
    
Offset 1, 8 lines modifiedOffset 1, 8 lines modified
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="A·struct·to·help·with·`fmt::Debug`·implementations."><title>DebugList·in·alloc::fmt·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»   2025-01-07)»(built»  from»      a»     source»       tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Debug<wbr>List</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#examples"·title="Examples">Examples</a></li></ul><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.entries"·title="entries">entries</a></li><li><a·href="#method.entry"·title="entry">entry</a></li><li><a·href="#method.entry_with"·title="entry_with">entry_with</a></li><li><a·href="#method.finish"·title="finish">finish</a></li><li><a·href="#method.finish_non_exhaustive"·title="finish_non_exhaustive">finish_non_exhaustive</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-RefUnwindSafe-for-DebugList%3C'a,+'b%3E"·title="!RefUnwindSafe">!RefUnwindSafe</a></li><li><a·href="#impl-Send-for-DebugList%3C'a,+'b%3E"·title="!Send">!Send</a></li><li><a·href="#impl-Sync-for-DebugList%3C'a,+'b%3E"·title="!Sync">!Sync</a></li><li><a·href="#impl-UnwindSafe-for-DebugList%3C'a,+'b%3E"·title="!UnwindSafe">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-DebugList%3C'a,+'b%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-Unpin-for-DebugList%3C'a,+'b%3E"·title="Unpin">Unpin</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>fmt</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">alloc</a>::<wbr><a·href="index.html">fmt</a></span><h1>Struct·<span·class="struct">DebugList</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/fmt/builders.rs.html#706">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·DebugList&lt;'a,·'b&gt;<div·class="where">where1 <!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·struct·to·help·with·`fmt::Debug`·implementations."><title>DebugList·in·alloc::fmt·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»   2025-01-07)»(built»  from»      a»     source»       tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Debug<wbr>List</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#examples"·title="Examples">Examples</a></li></ul><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.entries"·title="entries">entries</a></li><li><a·href="#method.entry"·title="entry">entry</a></li><li><a·href="#method.entry_with"·title="entry_with">entry_with</a></li><li><a·href="#method.finish"·title="finish">finish</a></li><li><a·href="#method.finish_non_exhaustive"·title="finish_non_exhaustive">finish_non_exhaustive</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-RefUnwindSafe-for-DebugList%3C'a,+'b%3E"·title="!RefUnwindSafe">!RefUnwindSafe</a></li><li><a·href="#impl-Send-for-DebugList%3C'a,+'b%3E"·title="!Send">!Send</a></li><li><a·href="#impl-Sync-for-DebugList%3C'a,+'b%3E"·title="!Sync">!Sync</a></li><li><a·href="#impl-UnwindSafe-for-DebugList%3C'a,+'b%3E"·title="!UnwindSafe">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-DebugList%3C'a,+'b%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-Unpin-for-DebugList%3C'a,+'b%3E"·title="Unpin">Unpin</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>fmt</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">alloc</a>::<wbr><a·href="index.html">fmt</a></span><h1>Struct·<span·class="struct">DebugList</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../src/core/fmt/builders.rs.html#706">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·DebugList&lt;'a,·'b&gt;<div·class="where">where
2 ····'b:·'a,</div>{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>A·struct·to·help·with·<a·href="trait.Debug.html"·title="trait·alloc::fmt::Debug"><code>fmt::Debug</code></a>·implementations.</p>2 ····'b:·'a,</div>{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>A·struct·to·help·with·<a·href="trait.Debug.html"·title="trait·alloc::fmt::Debug"><code>fmt::Debug</code></a>·implementations.</p>
3 <p>This·is·useful·when·you·wish·to·output·a·formatted·list·of·items·as·a·part3 <p>This·is·useful·when·you·wish·to·output·a·formatted·list·of·items·as·a·part
4 of·your·<a·href="trait.Debug.html#tymethod.fmt"·title="method·alloc::fmt::Debug::fmt"><code>Debug::fmt</code></a>·implementation.</p>4 of·your·<a·href="trait.Debug.html#tymethod.fmt"·title="method·alloc::fmt::Debug::fmt"><code>Debug::fmt</code></a>·implementation.</p>
5 <p>This·can·be·constructed·by·the·<a·href="struct.Formatter.html#method.debug_list"·title="method·alloc::fmt::Formatter::debug_list"><code>Formatter::debug_list</code></a>·method.</p>5 <p>This·can·be·constructed·by·the·<a·href="struct.Formatter.html#method.debug_list"·title="method·alloc::fmt::Formatter::debug_list"><code>Formatter::debug_list</code></a>·method.</p>
6 <h2·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h2>6 <h2·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h2>
7 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt;7 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt;
  
Offset 14, 16 lines modifiedOffset 14, 16 lines modified
14 ····}14 ····}
15 }15 }
  
16 <span·class="macro">assert_eq!</span>(16 <span·class="macro">assert_eq!</span>(
17 ····<span·class="macro">format!</span>(<span·class="string">"{:?}"</span>,·Foo(<span·class="macro">vec!</span>[<span·class="number">10</span>,·<span·class="number">11</span>])),17 ····<span·class="macro">format!</span>(<span·class="string">"{:?}"</span>,·Foo(<span·class="macro">vec!</span>[<span·class="number">10</span>,·<span·class="number">11</span>])),
18 ····<span·class="string">"[10,·11]"</span>,18 ····<span·class="string">"[10,·11]"</span>,
19 );</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::fmt;%0A++++%0A++++struct+Foo(Vec%3Ci32%3E);%0A++++%0A++++impl+fmt::Debug+for+Foo+%7B%0A++++++++fn+fmt(%26self,+fmt:+%26mut+fmt::Formatter%3C'_%3E)+-%3E+fmt::Result+%7B%0A++++++++++++fmt.debug_list().entries(self.0.iter()).finish()%0A++++++++%7D%0A++++%7D%0A++++%0A++++assert_eq!(%0A++++++++format!(%22%7B:?%7D%22,+Foo(vec!%5B10,+11%5D)),%0A++++++++%22%5B10,+11%5D%22,%0A++++);%0A%7D&amp;edition=2021"></a></div>19 );</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::fmt;%0A++++%0A++++struct+Foo(Vec%3Ci32%3E);%0A++++%0A++++impl+fmt::Debug+for+Foo+%7B%0A++++++++fn+fmt(%26self,+fmt:+%26mut+fmt::Formatter%3C'_%3E)+-%3E+fmt::Result+%7B%0A++++++++++++fmt.debug_list().entries(self.0.iter()).finish()%0A++++++++%7D%0A++++%7D%0A++++%0A++++assert_eq!(%0A++++++++format!(%22%7B:?%7D%22,+Foo(vec!%5B10,+11%5D)),%0A++++++++%22%5B10,+11%5D%22,%0A++++);%0A%7D&amp;edition=2021"></a></div>
20 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-DebugList%3C'a,+'b%3E"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/fmt/builders.rs.html#715">Source</a><a·href="#impl-DebugList%3C'a,+'b%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·'b&gt;·<a·class="struct"·href="struct.DebugList.html"·title="struct·alloc::fmt::DebugList">DebugList</a>&lt;'a,·'b&gt;<div·class="where">where20 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-DebugList%3C'a,+'b%3E"·class="impl"><a·class="src·rightside"·href="../../src/core/fmt/builders.rs.html#715">Source</a><a·href="#impl-DebugList%3C'a,+'b%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·'b&gt;·<a·class="struct"·href="struct.DebugList.html"·title="struct·alloc::fmt::DebugList">DebugList</a>&lt;'a,·'b&gt;<div·class="where">where
21 ····'b:·'a,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.entry"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.2.0">1.2.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/fmt/builders.rs.html#740">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.entry"·class="fn">entry</a>(&amp;mut·self,·entry:·&amp;dyn·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>)·-&gt;·&amp;mut·<a·class="struct"·href="struct.DebugList.html"·title="struct·alloc::fmt::DebugList">DebugList</a>&lt;'a,·'b&gt;</h4></section></summary><div·class="docblock"><p>Adds·a·new·entry·to·the·list·output.</p>21 ····'b:·'a,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.entry"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.2.0">1.2.0</span>···<a·class="src"·href="../../src/core/fmt/builders.rs.html#740">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.entry"·class="fn">entry</a>(&amp;mut·self,·entry:·&amp;dyn·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>)·-&gt;·&amp;mut·<a·class="struct"·href="struct.DebugList.html"·title="struct·alloc::fmt::DebugList">DebugList</a>&lt;'a,·'b&gt;</h4></section></summary><div·class="docblock"><p>Adds·a·new·entry·to·the·list·output.</p>
22 <h5·id="examples-1"><a·class="doc-anchor"·href="#examples-1">§</a>Examples</h5>22 <h5·id="examples-1"><a·class="doc-anchor"·href="#examples-1">§</a>Examples</h5>
23 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt;23 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt;
  
24 <span·class="kw">struct·</span>Foo(Vec&lt;i32&gt;,·Vec&lt;u32&gt;);24 <span·class="kw">struct·</span>Foo(Vec&lt;i32&gt;,·Vec&lt;u32&gt;);
  
25 <span·class="kw">impl·</span>fmt::Debug·<span·class="kw">for·</span>Foo·{25 <span·class="kw">impl·</span>fmt::Debug·<span·class="kw">for·</span>Foo·{
26 ····<span·class="kw">fn·</span>fmt(<span·class="kw-2">&amp;</span><span·class="self">self</span>,·fmt:·<span·class="kw-2">&amp;mut·</span>fmt::Formatter&lt;<span·class="lifetime">'_</span>&gt;)·-&gt;·fmt::Result·{26 ····<span·class="kw">fn·</span>fmt(<span·class="kw-2">&amp;</span><span·class="self">self</span>,·fmt:·<span·class="kw-2">&amp;mut·</span>fmt::Formatter&lt;<span·class="lifetime">'_</span>&gt;)·-&gt;·fmt::Result·{
Offset 34, 21 lines modifiedOffset 34, 21 lines modified
34 ····}34 ····}
35 }35 }
  
36 <span·class="macro">assert_eq!</span>(36 <span·class="macro">assert_eq!</span>(
37 ····<span·class="macro">format!</span>(<span·class="string">"{:?}"</span>,·Foo(<span·class="macro">vec!</span>[<span·class="number">10</span>,·<span·class="number">11</span>],·<span·class="macro">vec!</span>[<span·class="number">12</span>,·<span·class="number">13</span>])),37 ····<span·class="macro">format!</span>(<span·class="string">"{:?}"</span>,·Foo(<span·class="macro">vec!</span>[<span·class="number">10</span>,·<span·class="number">11</span>],·<span·class="macro">vec!</span>[<span·class="number">12</span>,·<span·class="number">13</span>])),
38 ····<span·class="string">"[[10,·11],·[12,·13]]"</span>,38 ····<span·class="string">"[[10,·11],·[12,·13]]"</span>,
39 );</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::fmt;%0A++++%0A++++struct+Foo(Vec%3Ci32%3E,+Vec%3Cu32%3E);%0A++++%0A++++impl+fmt::Debug+for+Foo+%7B%0A++++++++fn+fmt(%26self,+fmt:+%26mut+fmt::Formatter%3C'_%3E)+-%3E+fmt::Result+%7B%0A++++++++++++fmt.debug_list()%0A+++++++++++++++.entry(%26self.0)+//+We+add+the+first+%22entry%22.%0A+++++++++++++++.entry(%26self.1)+//+We+add+the+second+%22entry%22.%0A+++++++++++++++.finish()%0A++++++++%7D%0A++++%7D%0A++++%0A++++assert_eq!(%0A++++++++format!(%22%7B:?%7D%22,+Foo(vec!%5B10,+11%5D,+vec!%5B12,+13%5D)),%0A++++++++%22%5B%5B10,+11%5D,+%5B12,+13%5D%5D%22,%0A++++);%0A%7D&amp;edition=2021"></a></div>39 );</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::fmt;%0A++++%0A++++struct+Foo(Vec%3Ci32%3E,+Vec%3Cu32%3E);%0A++++%0A++++impl+fmt::Debug+for+Foo+%7B%0A++++++++fn+fmt(%26self,+fmt:+%26mut+fmt::Formatter%3C'_%3E)+-%3E+fmt::Result+%7B%0A++++++++++++fmt.debug_list()%0A+++++++++++++++.entry(%26self.0)+//+We+add+the+first+%22entry%22.%0A+++++++++++++++.entry(%26self.1)+//+We+add+the+second+%22entry%22.%0A+++++++++++++++.finish()%0A++++++++%7D%0A++++%7D%0A++++%0A++++assert_eq!(%0A++++++++format!(%22%7B:?%7D%22,+Foo(vec!%5B10,+11%5D,+vec!%5B12,+13%5D)),%0A++++++++%22%5B%5B10,+11%5D,+%5B12,+13%5D%5D%22,%0A++++);%0A%7D&amp;edition=2021"></a></div>
40 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.entry_with"·class="method"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/fmt/builders.rs.html#750-752">Source</a><h4·class="code-header">pub·fn·<a·href="#method.entry_with"·class="fn">entry_with</a>&lt;F&gt;(&amp;mut·self,·entry_fmt:·F)·-&gt;·&amp;mut·<a·class="struct"·href="struct.DebugList.html"·title="struct·alloc::fmt::DebugList">DebugList</a>&lt;'a,·'b&gt;<div·class="where">where40 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.entry_with"·class="method"><a·class="src·rightside"·href="../../src/core/fmt/builders.rs.html#750-752">Source</a><h4·class="code-header">pub·fn·<a·href="#method.entry_with"·class="fn">entry_with</a>&lt;F&gt;(&amp;mut·self,·entry_fmt:·F)·-&gt;·&amp;mut·<a·class="struct"·href="struct.DebugList.html"·title="struct·alloc::fmt::DebugList">DebugList</a>&lt;'a,·'b&gt;<div·class="where">where
41 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnOnce.html"·title="trait·core::ops::function::FnOnce">FnOnce</a>(&amp;mut·<a·class="struct"·href="struct.Formatter.html"·title="struct·alloc::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class=[·...·truncated·by·diffoscope;·len:·183,·SHA:·3edff50d3d9f7ac468f7f3cca5b73054bade6bfbb41e05a5a31dc1c9ef2041e8·...·]/core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.Error.html"·title="struct·alloc::fmt::Error">Error</a>&gt;,</div></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>debug_closure_helpers</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/117729">#117729</a>)</span></div></span></summary><div·class="docblock"><p>Adds·a·new·entry·to·the·list·output.</p>41 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnOnce.html"·title="trait·core::ops::function::FnOnce">FnOnce</a>(&amp;mut·<a·class="struct"·href="struct.Formatter.html"·title="struct·alloc::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="enum"·href="../../core/res[·...·truncated·by·diffoscope;·len:·102,·SHA:·57858821eade5fde37c26c2cd183685d201c1c85edfe3c189932fc5dbced53e0·...·]/core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.Error.html"·title="struct·alloc::fmt::Error">Error</a>&gt;,</div></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>debug_closure_helpers</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/117729">#117729</a>)</span></div></span></summary><div·class="docblock"><p>Adds·a·new·entry·to·the·list·output.</p>
42 <p>This·method·is·equivalent·to·<a·href="struct.DebugList.html#method.entry"·title="method·alloc::fmt::DebugList::entry"><code>DebugList::entry</code></a>,·but·formats·the42 <p>This·method·is·equivalent·to·<a·href="struct.DebugList.html#method.entry"·title="method·alloc::fmt::DebugList::entry"><code>DebugList::entry</code></a>,·but·formats·the
43 entry·using·a·provided·closure·rather·than·by·calling·<a·href="trait.Debug.html#tymethod.fmt"·title="method·alloc::fmt::Debug::fmt"><code>Debug::fmt</code></a>.</p>43 entry·using·a·provided·closure·rather·than·by·calling·<a·href="trait.Debug.html#tymethod.fmt"·title="method·alloc::fmt::Debug::fmt"><code>Debug::fmt</code></a>.</p>
44 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.entries"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.2.0">1.2.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/fmt/builders.rs.html#782-785">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.entries"·class="fn">entries</a>&lt;D,·I&gt;(&amp;mut·self,·entries:·I)·-&gt;·&amp;mut·<a·class="struct"·href="struct.DebugList.html"·title="struct·alloc::fmt::DebugList">DebugList</a>&lt;'a,·'b&gt;<div·class="where">where44 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.entries"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.2.0">1.2.0</span>···<a·class="src"·href="../../src/core/fmt/builders.rs.html#782-785">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.entries"·class="fn">entries</a>&lt;D,·I&gt;(&amp;mut·self,·entries:·I)·-&gt;·&amp;mut·<a·class="struct"·href="struct.DebugList.html"·title="struct·alloc::fmt::DebugList">DebugList</a>&lt;'a,·'b&gt;<div·class="where">where
45 ····D:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,45 ····D:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,
46 ····I:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·D&gt;,</div></h4></section></summary><div·class="docblock"><p>Adds·the·contents·of·an·iterator·of·entries·to·the·list·output.</p>46 ····I:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·D&gt;,</div></h4></section></summary><div·class="docblock"><p>Adds·the·contents·of·an·iterator·of·entries·to·the·list·output.</p>
47 <h5·id="examples-2"><a·class="doc-anchor"·href="#examples-2">§</a>Examples</h5>47 <h5·id="examples-2"><a·class="doc-anchor"·href="#examples-2">§</a>Examples</h5>
48 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt;48 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt;
  
49 <span·class="kw">struct·</span>Foo(Vec&lt;i32&gt;,·Vec&lt;u32&gt;);49 <span·class="kw">struct·</span>Foo(Vec&lt;i32&gt;,·Vec&lt;u32&gt;);
  
50 <span·class="kw">impl·</span>fmt::Debug·<span·class="kw">for·</span>Foo·{50 <span·class="kw">impl·</span>fmt::Debug·<span·class="kw">for·</span>Foo·{
51 ····<span·class="kw">fn·</span>fmt(<span·class="kw-2">&amp;</span><span·class="self">self</span>,·fmt:·<span·class="kw-2">&amp;mut·</span>fmt::Formatter&lt;<span·class="lifetime">'_</span>&gt;)·-&gt;·fmt::Result·{51 ····<span·class="kw">fn·</span>fmt(<span·class="kw-2">&amp;</span><span·class="self">self</span>,·fmt:·<span·class="kw-2">&amp;mut·</span>fmt::Formatter&lt;<span·class="lifetime">'_</span>&gt;)·-&gt;·fmt::Result·{
Offset 59, 15 lines modifiedOffset 59, 15 lines modified
59 ····}59 ····}
60 }60 }
  
61 <span·class="macro">assert_eq!</span>(61 <span·class="macro">assert_eq!</span>(
62 ····<span·class="macro">format!</span>(<span·class="string">"{:?}"</span>,·Foo(<span·class="macro">vec!</span>[<span·class="number">10</span>,·<span·class="number">11</span>],·<span·class="macro">vec!</span>[<span·class="number">12</span>,·<span·class="number">13</span>])),62 ····<span·class="macro">format!</span>(<span·class="string">"{:?}"</span>,·Foo(<span·class="macro">vec!</span>[<span·class="number">10</span>,·<span·class="number">11</span>],·<span·class="macro">vec!</span>[<span·class="number">12</span>,·<span·class="number">13</span>])),
63 ····<span·class="string">"[10,·11,·12,·13]"</span>,63 ····<span·class="string">"[10,·11,·12,·13]"</span>,
64 );</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::fmt;%0A++++%0A++++struct+Foo(Vec%3Ci32%3E,+Vec%3Cu32%3E);%0A++++%0A++++impl+fmt::Debug+for+Foo+%7B%0A++++++++fn+fmt(%26self,+fmt:+%26mut+fmt::Formatter%3C'_%3E)+-%3E+fmt::Result+%7B%0A++++++++++++fmt.debug_list()%0A+++++++++++++++.entries(self.0.iter())%0A+++++++++++++++.entries(self.1.iter())%0A+++++++++++++++.finish()%0A++++++++%7D%0A++++%7D%0A++++%0A++++assert_eq!(%0A++++++++format!(%22%7B:?%7D%22,+Foo(vec!%5B10,+11%5D,+vec!%5B12,+13%5D)),%0A++++++++%22%5B10,+11,+12,+13%5D%22,%0A++++);%0A%7D&amp;edition=2021"></a></div>64 );</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::fmt;%0A++++%0A++++struct+Foo(Vec%3Ci32%3E,+Vec%3Cu32%3E);%0A++++%0A++++impl+fmt::Debug+for+Foo+%7B%0A++++++++fn+fmt(%26self,+fmt:+%26mut+fmt::Formatter%3C'_%3E)+-%3E+fmt::Result+%7B%0A++++++++++++fmt.debug_list()%0A+++++++++++++++.entries(self.0.iter())%0A+++++++++++++++.entries(self.1.iter())%0A+++++++++++++++.finish()%0A++++++++%7D%0A++++%7D%0A++++%0A++++assert_eq!(%0A++++++++format!(%22%7B:?%7D%22,+Foo(vec!%5B10,+11%5D,+vec!%5B12,+13%5D)),%0A++++++++%22%5B10,+11,+12,+13%5D%22,%0A++++);%0A%7D&amp;edition=2021"></a></div>
65 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.finish_non_exhaustive"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.83.0">1.83.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/fmt/builders.rs.html#822">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.finish_non_exhaustive"·class="fn">finish_non_exhaustive</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="https://doc.rust-lan[·...·truncated·by·diffoscope;·len:·150,·SHA:·12f2b2a3fa7b10b871d7a2af1ea8aab6e7e57e4a5bd7c9874e88c868492543f4·...·]/core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.Error.html"·title="struct·alloc::fmt::Error">Error</a>&gt;</h4></section></summary><div·class="docblock"><p>Marks·the·list·as·non-exhaustive,·indicating·to·the·reader·that·there·are·some·other65 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.finish_non_exhaustive"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.83.0">1.83.0</span>···<a·class="src"·href="../../src/core/fmt/builders.rs.html#822">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.finish_non_exhaustive"·class="fn">finish_non_exhaustive</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum[·...·truncated·by·diffoscope;·len:·69,·SHA:·fcd413a8cd84aaa17376b2c5ac35b31164697608ea9d2dde4d1d414c9fdd5f43·...·]/core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.Error.html"·title="struct·alloc::fmt::Error">Error</a>&gt;</h4></section></summary><div·class="docblock"><p>Marks·the·list·as·non-exhaustive,·indicating·to·the·reader·that·there·are·some·other
66 elements·that·are·not·shown·in·the·debug·representation.</p>66 elements·that·are·not·shown·in·the·debug·representation.</p>
67 <h5·id="examples-3"><a·class="doc-anchor"·href="#examples-3">§</a>Examples</h5>67 <h5·id="examples-3"><a·class="doc-anchor"·href="#examples-3">§</a>Examples</h5>
68 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt;68 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt;
  
69 <span·class="kw">struct·</span>Foo(Vec&lt;i32&gt;);69 <span·class="kw">struct·</span>Foo(Vec&lt;i32&gt;);
  
70 <span·class="kw">impl·</span>fmt::Debug·<span·class="kw">for·</span>Foo·{70 <span·class="kw">impl·</span>fmt::Debug·<span·class="kw">for·</span>Foo·{
Offset 83, 15 lines modifiedOffset 83, 15 lines modified
83 ····}83 ····}
84 }84 }
  
85 <span·class="macro">assert_eq!</span>(85 <span·class="macro">assert_eq!</span>(
86 ····<span·class="macro">format!</span>(<span·class="string">"{:?}"</span>,·Foo(<span·class="macro">vec!</span>[<span·class="number">1</span>,·<span·class="number">2</span>,·<span·class="number">3</span>,·<span·class="number">4</span>])),86 ····<span·class="macro">format!</span>(<span·class="string">"{:?}"</span>,·Foo(<span·class="macro">vec!</span>[<span·class="number">1</span>,·<span·class="number">2</span>,·<span·class="number">3</span>,·<span·class="number">4</span>])),
87 ····<span·class="string">"[1,·2,·..]"</span>,87 ····<span·class="string">"[1,·2,·..]"</span>,
88 );</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::fmt;%0A++++%0A++++struct+Foo(Vec%3Ci32%3E);%0A++++%0A++++impl+fmt::Debug+for+Foo+%7B%0A++++++++fn+fmt(%26self,+fmt:+%26mut+fmt::Formatter%3C'_%3E)+-%3E+fmt::Result+%7B%0A++++++++++++//+Print+at+most+two+elements,+abbreviate+the+rest%0A++++++++++++let+mut+f+=+fmt.debug_list();%0A++++++++++++let+mut+f+=+f.entries(self.0.iter().take(2));%0A++++++++++++if+self.0.len()+%3E+2+%7B%0A++++++++++++++++f.finish_non_exhaustive()%0A++++++++++++%7D+else+%7B%0A++++++++++++++++f.finish()%0A++++++++++++%7D%0A++++++++%7D%0A++++%7D%0A++++%0A++++assert_eq!(%0A++++++++format!(%22%7B:?%7D%22,+Foo(vec!%5B1,+2,+3,+4%5D)),%0A++++++++%22%5B1,+2,+..%5D%22,%0A++++);%0A%7D&amp;edition=2021"></a></div>88 );</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::fmt;%0A++++%0A++++struct+Foo(Vec%3Ci32%3E);%0A++++%0A++++impl+fmt::Debug+for+Foo+%7B%0A++++++++fn+fmt(%26self,+fmt:+%26mut+fmt::Formatter%3C'_%3E)+-%3E+fmt::Result+%7B%0A++++++++++++//+Print+at+most+two+elements,+abbreviate+the+rest%0A++++++++++++let+mut+f+=+fmt.debug_list();%0A++++++++++++let+mut+f+=+f.entries(self.0.iter().take(2));%0A++++++++++++if+self.0.len()+%3E+2+%7B%0A++++++++++++++++f.finish_non_exhaustive()%0A++++++++++++%7D+else+%7B%0A++++++++++++++++f.finish()%0A++++++++++++%7D%0A++++++++%7D%0A++++%7D%0A++++%0A++++assert_eq!(%0A++++++++format!(%22%7B:?%7D%22,+Foo(vec!%5B1,+2,+3,+4%5D)),%0A++++++++%22%5B1,+2,+..%5D%22,%0A++++);%0A%7D&amp;edition=2021"></a></div>
89 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.finish"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.2.0">1.2.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/fmt/builders.rs.html#863">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.finish"·class="fn">finish</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/result/enum.[·...·truncated·by·diffoscope;·len:·120,·SHA:·1558f3ee2df735346e624f23955bfd8c19fbce406a859243ff26e00deadcd0e7·...·]/core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.Error.html"·title="struct·alloc::fmt::Error">Error</a>&gt;</h4></section></summary><div·class="docblock"><p>Finishes·output·and·returns·any·error·encountered.</p>89 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.finish"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.2.0">1.2.0</span>···<a·class="src"·href="../../src/core/fmt/builders.rs.html#863">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.finish"·class="fn">finish</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result<[·...·truncated·by·diffoscope;·len:·39,·SHA:·42fe1249c751de3a39f8fc2407ab8069ef7288bb4dc92c07f499df6780ad2a3c·...·]/core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.Error.html"·title="struct·alloc::fmt::Error">Error</a>&gt;</h4></section></summary><div·class="docblock"><p>Finishes·output·and·returns·any·error·encountered.</p>
90 <h5·id="examples-4"><a·class="doc-anchor"·href="#examples-4">§</a>Examples</h5>90 <h5·id="examples-4"><a·class="doc-anchor"·href="#examples-4">§</a>Examples</h5>
91 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt;91 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt;
  
92 <span·class="kw">struct·</span>Foo(Vec&lt;i32&gt;);92 <span·class="kw">struct·</span>Foo(Vec&lt;i32&gt;);
  
93 <span·class="kw">impl·</span>fmt::Debug·<span·class="kw">for·</span>Foo·{93 <span·class="kw">impl·</span>fmt::Debug·<span·class="kw">for·</span>Foo·{
94 ····<span·class="kw">fn·</span>fmt(<span·class="kw-2">&amp;</span><span·class="self">self</span>,·fmt:·<span·class="kw-2">&amp;mut·</span>fmt::Formatter&lt;<span·class="lifetime">'_</span>&gt;)·-&gt;·fmt::Result·{94 ····<span·class="kw">fn·</span>fmt(<span·class="kw-2">&amp;</span><span·class="self">self</span>,·fmt:·<span·class="kw-2">&amp;mut·</span>fmt::Formatter&lt;<span·class="lifetime">'_</span>&gt;)·-&gt;·fmt::Result·{
Offset 101, 18 lines modifiedOffset 101, 18 lines modified
101 ····</span>}101 ····</span>}
102 }102 }
  
103 <span·class="macro">assert_eq!</span>(103 <span·class="macro">assert_eq!</span>(
104 ····<span·class="macro">format!</span>(<span·class="string">"{:?}"</span>,·Foo(<span·class="macro">vec!</span>[<span·class="number">10</span>,·<span·class="number">11</span>])),104 ····<span·class="macro">format!</span>(<span·class="string">"{:?}"</span>,·Foo(<span·class="macro">vec!</span>[<span·class="number">10</span>,·<span·class="number">11</span>])),
105 ····<span·class="string">"[10,·11]"</span>,105 ····<span·class="string">"[10,·11]"</span>,
106 );</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::fmt;%0A++++%0A++++struct+Foo(Vec%3Ci32%3E);%0A++++%0A++++impl+fmt::Debug+for+Foo+%7B%0A++++++++fn+fmt(%26self,+fmt:+%26mut+fmt::Formatter%3C'_%3E)+-%3E+fmt::Result+%7B%0A++++++++++++fmt.debug_list()%0A+++++++++++++++.entries(self.0.iter())%0A+++++++++++++++.finish()+//+Ends+the+list+formatting.%0A++++++++%7D%0A++++%7D%0A++++%0A++++assert_eq!(%0A++++++++format!(%22%7B:?%7D%22,+Foo(vec!%5B10,+11%5D)),%0A++++++++%22%5B10,+11%5D%22,%0A++++);%0A%7D&amp;edition=2021"></a></div>106 );</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::fmt;%0A++++%0A++++struct+Foo(Vec%3Ci32%3E);%0A++++%0A++++impl+fmt::Debug+for+Foo+%7B%0A++++++++fn+fmt(%26self,+fmt:+%26mut+fmt::Formatter%3C'_%3E)+-%3E+fmt::Result+%7B%0A++++++++++++fmt.debug_list()%0A+++++++++++++++.entries(self.0.iter())%0A+++++++++++++++.finish()+//+Ends+the+list+formatting.%0A++++++++%7D%0A++++%7D%0A++++%0A++++assert_eq!(%0A++++++++format!(%22%7B:?%7D%22,+Foo(vec!%5B10,+11%5D)),%0A++++++++%22%5B10,+11%5D%22,%0A++++);%0A%7D&amp;edition=2021"></a></div>
107 </div></details></div></details></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-DebugList%3C'a,+'b%3E"·class="impl"><a·href="#impl-Freeze-for-DebugList%3C'a,+'b%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·'b&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="struct"·href="struct.DebugList.html"·title="struct·alloc::fmt::DebugList">DebugList</a>&lt;'a,·'b&gt;</h3></section><section·id="imp[·...·truncated·by·diffoscope;·len:·2782,·SHA:·451a5f22a2df2125c4329c921317733f825ecb3630e73f9e8fdc0a7f481766a5·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where107 </div></details></div></details></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-DebugList%3C'a,+'b%3E"·class="impl"><a·href="#impl-Freeze-for-DebugList%3C'a,+'b%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·'b&gt;·<a·class="trait"·href="../../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="struct"·href="struct.DebugList.html"·title="struct·alloc::fmt::DebugList">DebugList</a>&lt;'a,·'b&gt;</h3></section><section·id="impl-RefUnwindSafe-for-DebugLi[·...·truncated·by·diffoscope;·len:·2566,·SHA:·5d0a9083378d7474716ffb13ababdb6ebf91644c044147fd3ccf806a03841694·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where
108 ····T:·'static·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method[·...·truncated·by·diffoscope;·len:·834,·SHA:·47dfc2aa0101a4103e2a94c1f971c559790d87a62d58631fd2bfed98e6616a34·...·]/src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where108 ····T:·'static·+·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·[·...·truncated·by·diffoscope;·len:·672,·SHA:·ace7a059971745d739c5abd9821e5d1d485cc233fd42150ceb251bdea1ce6bf7·...·]/src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where
109 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·[·...·truncated·by·diffoscope;·len:·737,·SHA:·9e65370662e77fc5c56c98c66a5dfda3c1d1244574dc8806ab91a8967514da78·...·]/src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.BorrowMut.html"·title="trait·alloc::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where109 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·r[·...·truncated·by·diffoscope;·len:·629,·SHA:·8e6f5d2e4a2830729c5d495459113ca6f54993696d7dc71c1f46e5691f5108ed·...·]/src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.BorrowMut.html"·title="trait·alloc::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where
110 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="met[·...·truncated·by·diffoscope;·len:·1416,·SHA:·6a91c7d774262ffceb6c994b163406722441142120e090bf0659f9a11b6dd348·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>110 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="s[·...·truncated·by·diffoscope;·len:·1227,·SHA:·50e7ebda2b6919040565b80662e590c224b03e887e0c5eeee46fe8a8f7ae0e8c·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>
111 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where111 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where
112 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="m[·...·truncated·by·diffoscope;·len:·237,·SHA:·98603c35860102b3af9b5cf27aeabf39e3c03236551986a6ec030817f108d919·...·]/core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>112 ····U:·<a·class="trait"·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class=[·...·truncated·by·diffoscope;·len:·156,·SHA:·79561c49c77b14346871935198fc061d00c9e84705db975b0451f5fb4f6af9a0·...·]/core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>
113 <p>That·is,·this·conversion·is·whatever·the·implementation·of113 <p>That·is,·this·conversion·is·whatever·the·implementation·of
114 <code><a·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>114 <code><a·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>
115 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#805-807">Source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where115 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#805-807">Source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where
116 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="asso[·...·truncated·by·diffoscope;·len:·1973,·SHA:·db4b8407e8e20581ad139aef25a6221a11da0f5f18d6aa35aa33eb843f4e1b9f·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where116 ····U:·<a·class="trait"·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·c[·...·truncated·by·diffoscope;·len:·1676,·SHA:·4c73b68f4fb433b5f24fbcd660156381e5dd9f46425d075b558b9b6ca0705f88·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where
117 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·clas[·...·truncated·by·diffoscope;·len:·1578,·SHA:·998d5af10fd889567cd999d1306bfd16c91134d2238a3c172f1e7fa8ed138c18·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>117 ····U:·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-imp[·...·truncated·by·diffoscope;·len:·1308,·SHA:·6741e462a0e1b36010204263b7580305663bb27f362987d14303068592f9f358·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>
66.6 KB
./usr/share/doc/rust-doc/html/alloc/fmt/struct.DebugMap.html
    
Offset 1, 8 lines modifiedOffset 1, 8 lines modified
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="A·struct·to·help·with·`fmt::Debug`·implementations."><title>DebugMap·in·alloc::fmt·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»    2025-01-07)» (built»   from»       a»      source»tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Debug<wbr>Map</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#examples"·title="Examples">Examples</a></li></ul><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.entries"·title="entries">entries</a></li><li><a·href="#method.entry"·title="entry">entry</a></li><li><a·href="#method.finish"·title="finish">finish</a></li><li><a·href="#method.finish_non_exhaustive"·title="finish_non_exhaustive">finish_non_exhaustive</a></li><li><a·href="#method.key"·title="key">key</a></li><li><a·href="#method.key_with"·title="key_with">key_with</a></li><li><a·href="#method.value"·title="value">value</a></li><li><a·href="#method.value_with"·title="value_with">value_with</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-RefUnwindSafe-for-DebugMap%3C'a,+'b%3E"·title="!RefUnwindSafe">!RefUnwindSafe</a></li><li><a·href="#impl-Send-for-DebugMap%3C'a,+'b%3E"·title="!Send">!Send</a></li><li><a·href="#impl-Sync-for-DebugMap%3C'a,+'b%3E"·title="!Sync">!Sync</a></li><li><a·href="#impl-UnwindSafe-for-DebugMap%3C'a,+'b%3E"·title="!UnwindSafe">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-DebugMap%3C'a,+'b%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-Unpin-for-DebugMap%3C'a,+'b%3E"·title="Unpin">Unpin</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>fmt</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">alloc</a>::<wbr><a·href="index.html">fmt</a></span><h1>Struct·<span·class="struct">DebugMap</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/fmt/builders.rs.html#897">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·DebugMap&lt;'a,·'b&gt;<div·class="where">where1 <!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·struct·to·help·with·`fmt::Debug`·implementations."><title>DebugMap·in·alloc::fmt·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»    2025-01-07)» (built»   from»       a»      source»tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Debug<wbr>Map</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#examples"·title="Examples">Examples</a></li></ul><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.entries"·title="entries">entries</a></li><li><a·href="#method.entry"·title="entry">entry</a></li><li><a·href="#method.finish"·title="finish">finish</a></li><li><a·href="#method.finish_non_exhaustive"·title="finish_non_exhaustive">finish_non_exhaustive</a></li><li><a·href="#method.key"·title="key">key</a></li><li><a·href="#method.key_with"·title="key_with">key_with</a></li><li><a·href="#method.value"·title="value">value</a></li><li><a·href="#method.value_with"·title="value_with">value_with</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-RefUnwindSafe-for-DebugMap%3C'a,+'b%3E"·title="!RefUnwindSafe">!RefUnwindSafe</a></li><li><a·href="#impl-Send-for-DebugMap%3C'a,+'b%3E"·title="!Send">!Send</a></li><li><a·href="#impl-Sync-for-DebugMap%3C'a,+'b%3E"·title="!Sync">!Sync</a></li><li><a·href="#impl-UnwindSafe-for-DebugMap%3C'a,+'b%3E"·title="!UnwindSafe">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-DebugMap%3C'a,+'b%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-Unpin-for-DebugMap%3C'a,+'b%3E"·title="Unpin">Unpin</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>fmt</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">alloc</a>::<wbr><a·href="index.html">fmt</a></span><h1>Struct·<span·class="struct">DebugMap</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../src/core/fmt/builders.rs.html#897">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·DebugMap&lt;'a,·'b&gt;<div·class="where">where
2 ····'b:·'a,</div>{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>A·struct·to·help·with·<a·href="trait.Debug.html"·title="trait·alloc::fmt::Debug"><code>fmt::Debug</code></a>·implementations.</p>2 ····'b:·'a,</div>{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>A·struct·to·help·with·<a·href="trait.Debug.html"·title="trait·alloc::fmt::Debug"><code>fmt::Debug</code></a>·implementations.</p>
3 <p>This·is·useful·when·you·wish·to·output·a·formatted·map·as·a·part·of·your3 <p>This·is·useful·when·you·wish·to·output·a·formatted·map·as·a·part·of·your
4 <a·href="trait.Debug.html#tymethod.fmt"·title="method·alloc::fmt::Debug::fmt"><code>Debug::fmt</code></a>·implementation.</p>4 <a·href="trait.Debug.html#tymethod.fmt"·title="method·alloc::fmt::Debug::fmt"><code>Debug::fmt</code></a>·implementation.</p>
5 <p>This·can·be·constructed·by·the·<a·href="struct.Formatter.html#method.debug_map"·title="method·alloc::fmt::Formatter::debug_map"><code>Formatter::debug_map</code></a>·method.</p>5 <p>This·can·be·constructed·by·the·<a·href="struct.Formatter.html#method.debug_map"·title="method·alloc::fmt::Formatter::debug_map"><code>Formatter::debug_map</code></a>·method.</p>
6 <h2·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h2>6 <h2·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h2>
7 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt;7 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt;
  
Offset 14, 16 lines modifiedOffset 14, 16 lines modified
14 ····}14 ····}
15 }15 }
  
16 <span·class="macro">assert_eq!</span>(16 <span·class="macro">assert_eq!</span>(
17 ····<span·class="macro">format!</span>(<span·class="string">"{:?}"</span>,·Foo(<span·class="macro">vec!</span>[(<span·class="string">"A"</span>.to_string(),·<span·class="number">10</span>),·(<span·class="string">"B"</span>.to_string(),·<span·class="number">11</span>)])),17 ····<span·class="macro">format!</span>(<span·class="string">"{:?}"</span>,·Foo(<span·class="macro">vec!</span>[(<span·class="string">"A"</span>.to_string(),·<span·class="number">10</span>),·(<span·class="string">"B"</span>.to_string(),·<span·class="number">11</span>)])),
18 ····<span·class="string">r#"{"A":·10,·"B":·11}"#</span>,18 ····<span·class="string">r#"{"A":·10,·"B":·11}"#</span>,
19 );</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::fmt;%0A++++%0A++++struct+Foo(Vec%3C(String,+i32)%3E);%0A++++%0A++++impl+fmt::Debug+for+Foo+%7B%0A++++++++fn+fmt(%26self,+fmt:+%26mut+fmt::Formatter%3C'_%3E)+-%3E+fmt::Result+%7B%0A++++++++++++fmt.debug_map().entries(self.0.iter().map(%7C%26(ref+k,+ref+v)%7C+(k,+v))).finish()%0A++++++++%7D%0A++++%7D%0A++++%0A++++assert_eq!(%0A++++++++format!(%22%7B:?%7D%22,+Foo(vec!%5B(%22A%22.to_string(),+10),+(%22B%22.to_string(),+11)%5D)),%0A++++++++r%23%22%7B%22A%22:+10,+%22B%22:+11%7D%22%23,%0A++++);%0A%7D&amp;edition=2021"></a></div>19 );</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::fmt;%0A++++%0A++++struct+Foo(Vec%3C(String,+i32)%3E);%0A++++%0A++++impl+fmt::Debug+for+Foo+%7B%0A++++++++fn+fmt(%26self,+fmt:+%26mut+fmt::Formatter%3C'_%3E)+-%3E+fmt::Result+%7B%0A++++++++++++fmt.debug_map().entries(self.0.iter().map(%7C%26(ref+k,+ref+v)%7C+(k,+v))).finish()%0A++++++++%7D%0A++++%7D%0A++++%0A++++assert_eq!(%0A++++++++format!(%22%7B:?%7D%22,+Foo(vec!%5B(%22A%22.to_string(),+10),+(%22B%22.to_string(),+11)%5D)),%0A++++++++r%23%22%7B%22A%22:+10,+%22B%22:+11%7D%22%23,%0A++++);%0A%7D&amp;edition=2021"></a></div>
20 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-DebugMap%3C'a,+'b%3E"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/fmt/builders.rs.html#911">Source</a><a·href="#impl-DebugMap%3C'a,+'b%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·'b&gt;·<a·class="struct"·href="struct.DebugMap.html"·title="struct·alloc::fmt::DebugMap">DebugMap</a>&lt;'a,·'b&gt;<div·class="where">where20 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-DebugMap%3C'a,+'b%3E"·class="impl"><a·class="src·rightside"·href="../../src/core/fmt/builders.rs.html#911">Source</a><a·href="#impl-DebugMap%3C'a,+'b%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·'b&gt;·<a·class="struct"·href="struct.DebugMap.html"·title="struct·alloc::fmt::DebugMap">DebugMap</a>&lt;'a,·'b&gt;<div·class="where">where
21 ····'b:·'a,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.entry"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.2.0">1.2.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/fmt/builders.rs.html#935">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.entry"·class="fn">entry</a>(21 ····'b:·'a,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.entry"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.2.0">1.2.0</span>···<a·class="src"·href="../../src/core/fmt/builders.rs.html#935">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.entry"·class="fn">entry</a>(
22 ····&amp;mut·self,22 ····&amp;mut·self,
23 ····key:·&amp;dyn·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,23 ····key:·&amp;dyn·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,
24 ····value:·&amp;dyn·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,24 ····value:·&amp;dyn·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,
25 )·-&gt;·&amp;mut·<a·class="struct"·href="struct.DebugMap.html"·title="struct·alloc::fmt::DebugMap">DebugMap</a>&lt;'a,·'b&gt;</h4></section></summary><div·class="docblock"><p>Adds·a·new·entry·to·the·map·output.</p>25 )·-&gt;·&amp;mut·<a·class="struct"·href="struct.DebugMap.html"·title="struct·alloc::fmt::DebugMap">DebugMap</a>&lt;'a,·'b&gt;</h4></section></summary><div·class="docblock"><p>Adds·a·new·entry·to·the·map·output.</p>
26 <h5·id="examples-1"><a·class="doc-anchor"·href="#examples-1">§</a>Examples</h5>26 <h5·id="examples-1"><a·class="doc-anchor"·href="#examples-1">§</a>Examples</h5>
27 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt;27 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt;
  
Offset 37, 15 lines modifiedOffset 37, 15 lines modified
37 ····}37 ····}
38 }38 }
  
39 <span·class="macro">assert_eq!</span>(39 <span·class="macro">assert_eq!</span>(
40 ····<span·class="macro">format!</span>(<span·class="string">"{:?}"</span>,·Foo(<span·class="macro">vec!</span>[(<span·class="string">"A"</span>.to_string(),·<span·class="number">10</span>),·(<span·class="string">"B"</span>.to_string(),·<span·class="number">11</span>)])),40 ····<span·class="macro">format!</span>(<span·class="string">"{:?}"</span>,·Foo(<span·class="macro">vec!</span>[(<span·class="string">"A"</span>.to_string(),·<span·class="number">10</span>),·(<span·class="string">"B"</span>.to_string(),·<span·class="number">11</span>)])),
41 ····<span·class="string">r#"{"whole":·[("A",·10),·("B",·11)]}"#</span>,41 ····<span·class="string">r#"{"whole":·[("A",·10),·("B",·11)]}"#</span>,
42 );</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::fmt;%0A++++%0A++++struct+Foo(Vec%3C(String,+i32)%3E);%0A++++%0A++++impl+fmt::Debug+for+Foo+%7B%0A++++++++fn+fmt(%26self,+fmt:+%26mut+fmt::Formatter%3C'_%3E)+-%3E+fmt::Result+%7B%0A++++++++++++fmt.debug_map()%0A+++++++++++++++.entry(%26%22whole%22,+%26self.0)+//+We+add+the+%22whole%22+entry.%0A+++++++++++++++.finish()%0A++++++++%7D%0A++++%7D%0A++++%0A++++assert_eq!(%0A++++++++format!(%22%7B:?%7D%22,+Foo(vec!%5B(%22A%22.to_string(),+10),+(%22B%22.to_string(),+11)%5D)),%0A++++++++r%23%22%7B%22whole%22:+%5B(%22A%22,+10),+(%22B%22,+11)%5D%7D%22%23,%0A++++);%0A%7D&amp;edition=2021"></a></div>42 );</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::fmt;%0A++++%0A++++struct+Foo(Vec%3C(String,+i32)%3E);%0A++++%0A++++impl+fmt::Debug+for+Foo+%7B%0A++++++++fn+fmt(%26self,+fmt:+%26mut+fmt::Formatter%3C'_%3E)+-%3E+fmt::Result+%7B%0A++++++++++++fmt.debug_map()%0A+++++++++++++++.entry(%26%22whole%22,+%26self.0)+//+We+add+the+%22whole%22+entry.%0A+++++++++++++++.finish()%0A++++++++%7D%0A++++%7D%0A++++%0A++++assert_eq!(%0A++++++++format!(%22%7B:?%7D%22,+Foo(vec!%5B(%22A%22.to_string(),+10),+(%22B%22.to_string(),+11)%5D)),%0A++++++++r%23%22%7B%22whole%22:+%5B(%22A%22,+10),+(%22B%22,+11)%5D%7D%22%23,%0A++++);%0A%7D&amp;edition=2021"></a></div>
43 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.key"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.42.0">1.42.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/fmt/builders.rs.html#971">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.key"·class="fn">key</a>(&amp;mut·self,·key:·&amp;dyn·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>)·-&gt;·&amp;mut·<a·class="struct"·href="struct.DebugMap.html"·title="struct·alloc::fmt::DebugMap">DebugMap</a>&lt;'a,·'b&gt;</h4></section></summary><div·class="docblock"><p>Adds·the·key·part·of·a·new·entry·to·the·map·output.</p>43 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.key"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.42.0">1.42.0</span>···<a·class="src"·href="../../src/core/fmt/builders.rs.html#971">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.key"·class="fn">key</a>(&amp;mut·self,·key:·&amp;dyn·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>)·-&gt;·&amp;mut·<a·class="struct"·href="struct.DebugMap.html"·title="struct·alloc::fmt::DebugMap">DebugMap</a>&lt;'a,·'b&gt;</h4></section></summary><div·class="docblock"><p>Adds·the·key·part·of·a·new·entry·to·the·map·output.</p>
44 <p>This·method,·together·with·<code>value</code>,·is·an·alternative·to·<code>entry</code>·that44 <p>This·method,·together·with·<code>value</code>,·is·an·alternative·to·<code>entry</code>·that
45 can·be·used·when·the·complete·entry·isn’t·known·upfront.·Prefer·the·<code>entry</code>45 can·be·used·when·the·complete·entry·isn’t·known·upfront.·Prefer·the·<code>entry</code>
46 method·when·it’s·possible·to·use.</p>46 method·when·it’s·possible·to·use.</p>
47 <h5·id="panics"><a·class="doc-anchor"·href="#panics">§</a>Panics</h5>47 <h5·id="panics"><a·class="doc-anchor"·href="#panics">§</a>Panics</h5>
48 <p><code>key</code>·must·be·called·before·<code>value</code>·and·each·call·to·<code>key</code>·must·be·followed48 <p><code>key</code>·must·be·called·before·<code>value</code>·and·each·call·to·<code>key</code>·must·be·followed
49 by·a·corresponding·call·to·<code>value</code>.·Otherwise·this·method·will·panic.</p>49 by·a·corresponding·call·to·<code>value</code>.·Otherwise·this·method·will·panic.</p>
50 <h5·id="examples-2"><a·class="doc-anchor"·href="#examples-2">§</a>Examples</h5>50 <h5·id="examples-2"><a·class="doc-anchor"·href="#examples-2">§</a>Examples</h5>
Offset 61, 19 lines modifiedOffset 61, 19 lines modified
61 ····}61 ····}
62 }62 }
  
63 <span·class="macro">assert_eq!</span>(63 <span·class="macro">assert_eq!</span>(
64 ····<span·class="macro">format!</span>(<span·class="string">"{:?}"</span>,·Foo(<span·class="macro">vec!</span>[(<span·class="string">"A"</span>.to_string(),·<span·class="number">10</span>),·(<span·class="string">"B"</span>.to_string(),·<span·class="number">11</span>)])),64 ····<span·class="macro">format!</span>(<span·class="string">"{:?}"</span>,·Foo(<span·class="macro">vec!</span>[(<span·class="string">"A"</span>.to_string(),·<span·class="number">10</span>),·(<span·class="string">"B"</span>.to_string(),·<span·class="number">11</span>)])),
65 ····<span·class="string">r#"{"whole":·[("A",·10),·("B",·11)]}"#</span>,65 ····<span·class="string">r#"{"whole":·[("A",·10),·("B",·11)]}"#</span>,
66 );</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::fmt;%0A++++%0A++++struct+Foo(Vec%3C(String,+i32)%3E);%0A++++%0A++++impl+fmt::Debug+for+Foo+%7B%0A++++++++fn+fmt(%26self,+fmt:+%26mut+fmt::Formatter%3C'_%3E)+-%3E+fmt::Result+%7B%0A++++++++++++fmt.debug_map()%0A+++++++++++++++.key(%26%22whole%22).value(%26self.0)+//+We+add+the+%22whole%22+entry.%0A+++++++++++++++.finish()%0A++++++++%7D%0A++++%7D%0A++++%0A++++assert_eq!(%0A++++++++format!(%22%7B:?%7D%22,+Foo(vec!%5B(%22A%22.to_string(),+10),+(%22B%22.to_string(),+11)%5D)),%0A++++++++r%23%22%7B%22whole%22:+%5B(%22A%22,+10),+(%22B%22,+11)%5D%7D%22%23,%0A++++);%0A%7D&amp;edition=2021"></a></div>66 );</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::fmt;%0A++++%0A++++struct+Foo(Vec%3C(String,+i32)%3E);%0A++++%0A++++impl+fmt::Debug+for+Foo+%7B%0A++++++++fn+fmt(%26self,+fmt:+%26mut+fmt::Formatter%3C'_%3E)+-%3E+fmt::Result+%7B%0A++++++++++++fmt.debug_map()%0A+++++++++++++++.key(%26%22whole%22).value(%26self.0)+//+We+add+the+%22whole%22+entry.%0A+++++++++++++++.finish()%0A++++++++%7D%0A++++%7D%0A++++%0A++++assert_eq!(%0A++++++++format!(%22%7B:?%7D%22,+Foo(vec!%5B(%22A%22.to_string(),+10),+(%22B%22.to_string(),+11)%5D)),%0A++++++++r%23%22%7B%22whole%22:+%5B(%22A%22,+10),+(%22B%22,+11)%5D%7D%22%23,%0A++++);%0A%7D&amp;edition=2021"></a></div>
67 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.key_with"·class="method"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/fmt/builders.rs.html#980-982">Source</a><h4·class="code-header">pub·fn·<a·href="#method.key_with"·class="fn">key_with</a>&lt;F&gt;(&amp;mut·self,·key_fmt:·F)·-&gt;·&amp;mut·<a·class="struct"·href="struct.DebugMap.html"·title="struct·alloc::fmt::DebugMap">DebugMap</a>&lt;'a,·'b&gt;<div·class="where">where67 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.key_with"·class="method"><a·class="src·rightside"·href="../../src/core/fmt/builders.rs.html#980-982">Source</a><h4·class="code-header">pub·fn·<a·href="#method.key_with"·class="fn">key_with</a>&lt;F&gt;(&amp;mut·self,·key_fmt:·F)·-&gt;·&amp;mut·<a·class="struct"·href="struct.DebugMap.html"·title="struct·alloc::fmt::DebugMap">DebugMap</a>&lt;'a,·'b&gt;<div·class="where">where
68 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnOnce.html"·title="trait·core::ops::function::FnOnce">FnOnce</a>(&amp;mut·<a·class="struct"·href="struct.Formatter.html"·title="struct·alloc::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class=[·...·truncated·by·diffoscope;·len:·183,·SHA:·3edff50d3d9f7ac468f7f3cca5b73054bade6bfbb41e05a5a31dc1c9ef2041e8·...·]/core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.Error.html"·title="struct·alloc::fmt::Error">Error</a>&gt;,</div></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>debug_closure_helpers</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/117729">#117729</a>)</span></div></span></summary><div·class="docblock"><p>Adds·the·key·part·of·a·new·entry·to·the·map·output.</p>68 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnOnce.html"·title="trait·core::ops::function::FnOnce">FnOnce</a>(&amp;mut·<a·class="struct"·href="struct.Formatter.html"·title="struct·alloc::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="enum"·href="../../core/res[·...·truncated·by·diffoscope;·len:·102,·SHA:·57858821eade5fde37c26c2cd183685d201c1c85edfe3c189932fc5dbced53e0·...·]/core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.Error.html"·title="struct·alloc::fmt::Error">Error</a>&gt;,</div></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>debug_closure_helpers</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/117729">#117729</a>)</span></div></span></summary><div·class="docblock"><p>Adds·the·key·part·of·a·new·entry·to·the·map·output.</p>
69 <p>This·method·is·equivalent·to·<a·href="struct.DebugMap.html#method.key"·title="method·alloc::fmt::DebugMap::key"><code>DebugMap::key</code></a>,·but·formats·the69 <p>This·method·is·equivalent·to·<a·href="struct.DebugMap.html#method.key"·title="method·alloc::fmt::DebugMap::key"><code>DebugMap::key</code></a>,·but·formats·the
70 key·using·a·provided·closure·rather·than·by·calling·<a·href="trait.Debug.html#tymethod.fmt"·title="method·alloc::fmt::Debug::fmt"><code>Debug::fmt</code></a>.</p>70 key·using·a·provided·closure·rather·than·by·calling·<a·href="trait.Debug.html#tymethod.fmt"·title="method·alloc::fmt::Debug::fmt"><code>Debug::fmt</code></a>.</p>
71 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.value"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.42.0">1.42.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/fmt/builders.rs.html#1047">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.value"·class="fn">value</a>(&amp;mut·self,·value:·&amp;dyn·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>)·-&gt;·&amp;mut·<a·class="struct"·href="struct.DebugMap.html"·title="struct·alloc::fmt::DebugMap">DebugMap</a>&lt;'a,·'b&gt;</h4></section></summary><div·class="docblock"><p>Adds·the·value·part·of·a·new·entry·to·the·map·output.</p>71 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.value"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.42.0">1.42.0</span>···<a·class="src"·href="../../src/core/fmt/builders.rs.html#1047">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.value"·class="fn">value</a>(&amp;mut·self,·value:·&amp;dyn·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>)·-&gt;·&amp;mut·<a·class="struct"·href="struct.DebugMap.html"·title="struct·alloc::fmt::DebugMap">DebugMap</a>&lt;'a,·'b&gt;</h4></section></summary><div·class="docblock"><p>Adds·the·value·part·of·a·new·entry·to·the·map·output.</p>
72 <p>This·method,·together·with·<code>key</code>,·is·an·alternative·to·<code>entry</code>·that72 <p>This·method,·together·with·<code>key</code>,·is·an·alternative·to·<code>entry</code>·that
73 can·be·used·when·the·complete·entry·isn’t·known·upfront.·Prefer·the·<code>entry</code>73 can·be·used·when·the·complete·entry·isn’t·known·upfront.·Prefer·the·<code>entry</code>
74 method·when·it’s·possible·to·use.</p>74 method·when·it’s·possible·to·use.</p>
75 <h5·id="panics-1"><a·class="doc-anchor"·href="#panics-1">§</a>Panics</h5>75 <h5·id="panics-1"><a·class="doc-anchor"·href="#panics-1">§</a>Panics</h5>
76 <p><code>key</code>·must·be·called·before·<code>value</code>·and·each·call·to·<code>key</code>·must·be·followed76 <p><code>key</code>·must·be·called·before·<code>value</code>·and·each·call·to·<code>key</code>·must·be·followed
77 by·a·corresponding·call·to·<code>value</code>.·Otherwise·this·method·will·panic.</p>77 by·a·corresponding·call·to·<code>value</code>.·Otherwise·this·method·will·panic.</p>
78 <h5·id="examples-3"><a·class="doc-anchor"·href="#examples-3">§</a>Examples</h5>78 <h5·id="examples-3"><a·class="doc-anchor"·href="#examples-3">§</a>Examples</h5>
Offset 89, 22 lines modifiedOffset 89, 22 lines modified
89 ····}89 ····}
90 }90 }
  
91 <span·class="macro">assert_eq!</span>(91 <span·class="macro">assert_eq!</span>(
92 ····<span·class="macro">format!</span>(<span·class="string">"{:?}"</span>,·Foo(<span·class="macro">vec!</span>[(<span·class="string">"A"</span>.to_string(),·<span·class="number">10</span>),·(<span·class="string">"B"</span>.to_string(),·<span·class="number">11</span>)])),92 ····<span·class="macro">format!</span>(<span·class="string">"{:?}"</span>,·Foo(<span·class="macro">vec!</span>[(<span·class="string">"A"</span>.to_string(),·<span·class="number">10</span>),·(<span·class="string">"B"</span>.to_string(),·<span·class="number">11</span>)])),
93 ····<span·class="string">r#"{"whole":·[("A",·10),·("B",·11)]}"#</span>,93 ····<span·class="string">r#"{"whole":·[("A",·10),·("B",·11)]}"#</span>,
94 );</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::fmt;%0A++++%0A++++struct+Foo(Vec%3C(String,+i32)%3E);%0A++++%0A++++impl+fmt::Debug+for+Foo+%7B%0A++++++++fn+fmt(%26self,+fmt:+%26mut+fmt::Formatter%3C'_%3E)+-%3E+fmt::Result+%7B%0A++++++++++++fmt.debug_map()%0A+++++++++++++++.key(%26%22whole%22).value(%26self.0)+//+We+add+the+%22whole%22+entry.%0A+++++++++++++++.finish()%0A++++++++%7D%0A++++%7D%0A++++%0A++++assert_eq!(%0A++++++++format!(%22%7B:?%7D%22,+Foo(vec!%5B(%22A%22.to_string(),+10),+(%22B%22.to_string(),+11)%5D)),%0A++++++++r%23%22%7B%22whole%22:+%5B(%22A%22,+10),+(%22B%22,+11)%5D%7D%22%23,%0A++++);%0A%7D&amp;edition=2021"></a></div>94 );</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::fmt;%0A++++%0A++++struct+Foo(Vec%3C(String,+i32)%3E);%0A++++%0A++++impl+fmt::Debug+for+Foo+%7B%0A++++++++fn+fmt(%26self,+fmt:+%26mut+fmt::Formatter%3C'_%3E)+-%3E+fmt::Result+%7B%0A++++++++++++fmt.debug_map()%0A+++++++++++++++.key(%26%22whole%22).value(%26self.0)+//+We+add+the+%22whole%22+entry.%0A+++++++++++++++.finish()%0A++++++++%7D%0A++++%7D%0A++++%0A++++assert_eq!(%0A++++++++format!(%22%7B:?%7D%22,+Foo(vec!%5B(%22A%22.to_string(),+10),+(%22B%22.to_string(),+11)%5D)),%0A++++++++r%23%22%7B%22whole%22:+%5B(%22A%22,+10),+(%22B%22,+11)%5D%7D%22%23,%0A++++);%0A%7D&amp;edition=2021"></a></div>
95 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.value_with"·class="method"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/fmt/builders.rs.html#1056-1058">Source</a><h4·class="code-header">pub·fn·<a·href="#method.value_with"·class="fn">value_with</a>&lt;F&gt;(&amp;mut·self,·value_fmt:·F)·-&gt;·&amp;mut·<a·class="struct"·href="struct.DebugMap.html"·title="struct·alloc::fmt::DebugMap">DebugMap</a>&lt;'a,·'b&gt;<div·class="where">where95 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.value_with"·class="method"><a·class="src·rightside"·href="../../src/core/fmt/builders.rs.html#1056-1058">Source</a><h4·class="code-header">pub·fn·<a·href="#method.value_with"·class="fn">value_with</a>&lt;F&gt;(&amp;mut·self,·value_fmt:·F)·-&gt;·&amp;mut·<a·class="struct"·href="struct.DebugMap.html"·title="struct·alloc::fmt::DebugMap">DebugMap</a>&lt;'a,·'b&gt;<div·class="where">where
96 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnOnce.html"·title="trait·core::ops::function::FnOnce">FnOnce</a>(&amp;mut·<a·class="struct"·href="struct.Formatter.html"·title="struct·alloc::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class=[·...·truncated·by·diffoscope;·len:·183,·SHA:·3edff50d3d9f7ac468f7f3cca5b73054bade6bfbb41e05a5a31dc1c9ef2041e8·...·]/core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.Error.html"·title="struct·alloc::fmt::Error">Error</a>&gt;,</div></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>debug_closure_helpers</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/117729">#117729</a>)</span></div></span></summary><div·class="docblock"><p>Adds·the·value·part·of·a·new·entry·to·the·map·output.</p>96 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnOnce.html"·title="trait·core::ops::function::FnOnce">FnOnce</a>(&amp;mut·<a·class="struct"·href="struct.Formatter.html"·title="struct·alloc::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="enum"·href="../../core/res[·...·truncated·by·diffoscope;·len:·102,·SHA:·57858821eade5fde37c26c2cd183685d201c1c85edfe3c189932fc5dbced53e0·...·]/core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.Error.html"·title="struct·alloc::fmt::Error">Error</a>&gt;,</div></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>debug_closure_helpers</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/117729">#117729</a>)</span></div></span></summary><div·class="docblock"><p>Adds·the·value·part·of·a·new·entry·to·the·map·output.</p>
97 <p>This·method·is·equivalent·to·<a·href="struct.DebugMap.html#method.value"·title="method·alloc::fmt::DebugMap::value"><code>DebugMap::value</code></a>,·but·formats·the97 <p>This·method·is·equivalent·to·<a·href="struct.DebugMap.html#method.value"·title="method·alloc::fmt::DebugMap::value"><code>DebugMap::value</code></a>,·but·formats·the
98 value·using·a·provided·closure·rather·than·by·calling·<a·href="trait.Debug.html#tymethod.fmt"·title="method·alloc::fmt::Debug::fmt"><code>Debug::fmt</code></a>.</p>98 value·using·a·provided·closure·rather·than·by·calling·<a·href="trait.Debug.html#tymethod.fmt"·title="method·alloc::fmt::Debug::fmt"><code>Debug::fmt</code></a>.</p>
99 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.entries"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.2.0">1.2.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/fmt/builders.rs.html#1105-1109">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.entries"·class="fn">entries</a>&lt;K,·V,·I&gt;(&amp;mut·self,·entries:·I)·-&gt;·&amp;mut·<a·class="struct"·href="struct.DebugMap.html"·title="struct·alloc::fmt::DebugMap">DebugMap</a>&lt;'a,·'b&gt;<div·class="where">where99 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.entries"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.2.0">1.2.0</span>···<a·class="src"·href="../../src/core/fmt/builders.rs.html#1105-1109">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.entries"·class="fn">entries</a>&lt;K,·V,·I&gt;(&amp;mut·self,·entries:·I)·-&gt;·&amp;mut·<a·class="struct"·href="struct.DebugMap.html"·title="struct·alloc::fmt::DebugMap">DebugMap</a>&lt;'a,·'b&gt;<div·class="where">where
100 ····K:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,100 ····K:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,
101 ····V:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,101 ····V:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,
102 ····I:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.tuple.html">(K,·V)</a>&gt;,</div></h4></section></summary><div·class="docblock"><p>Adds·the·contents·of·an·iterator·of·entries·to·the·map·output.</p>102 ····I:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·<a·class="primitive"·href="../../core/primitive.tuple.html">(K,·V)</a>&gt;,</div></h4></section></summary><div·class="docblock"><p>Adds·the·contents·of·an·iterator·of·entries·to·the·map·output.</p>
103 <h5·id="examples-4"><a·class="doc-anchor"·href="#examples-4">§</a>Examples</h5>103 <h5·id="examples-4"><a·class="doc-anchor"·href="#examples-4">§</a>Examples</h5>
104 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt;104 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt;
  
105 <span·class="kw">struct·</span>Foo(Vec&lt;(String,·i32)&gt;);105 <span·class="kw">struct·</span>Foo(Vec&lt;(String,·i32)&gt;);
  
106 <span·class="kw">impl·</span>fmt::Debug·<span·class="kw">for·</span>Foo·{106 <span·class="kw">impl·</span>fmt::Debug·<span·class="kw">for·</span>Foo·{
107 ····<span·class="kw">fn·</span>fmt(<span·class="kw-2">&amp;</span><span·class="self">self</span>,·fmt:·<span·class="kw-2">&amp;mut·</span>fmt::Formatter&lt;<span·class="lifetime">'_</span>&gt;)·-&gt;·fmt::Result·{107 ····<span·class="kw">fn·</span>fmt(<span·class="kw-2">&amp;</span><span·class="self">self</span>,·fmt:·<span·class="kw-2">&amp;mut·</span>fmt::Formatter&lt;<span·class="lifetime">'_</span>&gt;)·-&gt;·fmt::Result·{
Offset 116, 15 lines modifiedOffset 116, 15 lines modified
116 ····}116 ····}
117 }117 }
  
118 <span·class="macro">assert_eq!</span>(118 <span·class="macro">assert_eq!</span>(
119 ····<span·class="macro">format!</span>(<span·class="string">"{:?}"</span>,·Foo(<span·class="macro">vec!</span>[(<span·class="string">"A"</span>.to_string(),·<span·class="number">10</span>),·(<span·class="string">"B"</span>.to_string(),·<span·class="number">11</span>)])),119 ····<span·class="macro">format!</span>(<span·class="string">"{:?}"</span>,·Foo(<span·class="macro">vec!</span>[(<span·class="string">"A"</span>.to_string(),·<span·class="number">10</span>),·(<span·class="string">"B"</span>.to_string(),·<span·class="number">11</span>)])),
120 ····<span·class="string">r#"{"A":·10,·"B":·11}"#</span>,120 ····<span·class="string">r#"{"A":·10,·"B":·11}"#</span>,
121 );</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::fmt;%0A++++%0A++++struct+Foo(Vec%3C(String,+i32)%3E);%0A++++%0A++++impl+fmt::Debug+for+Foo+%7B%0A++++++++fn+fmt(%26self,+fmt:+%26mut+fmt::Formatter%3C'_%3E)+-%3E+fmt::Result+%7B%0A++++++++++++fmt.debug_map()%0A+++++++++++++++//+We+map+our+vec+so+each+entries'+first+field+will+become%0A+++++++++++++++//+the+%22key%22.%0A+++++++++++++++.entries(self.0.iter().map(%7C%26(ref+k,+ref+v)%7C+(k,+v)))%0A+++++++++++++++.finish()%0A++++++++%7D%0A++++%7D%0A++++%0A++++assert_eq!(%0A++++++++format!(%22%7B:?%7D%22,+Foo(vec!%5B(%22A%22.to_string(),+10),+(%22B%22.to_string(),+11)%5D)),%0A++++++++r%23%22%7B%22A%22:+10,+%22B%22:+11%7D%22%23,%0A++++);%0A%7D&amp;edition=2021"></a></div>121 );</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::fmt;%0A++++%0A++++struct+Foo(Vec%3C(String,+i32)%3E);%0A++++%0A++++impl+fmt::Debug+for+Foo+%7B%0A++++++++fn+fmt(%26self,+fmt:+%26mut+fmt::Formatter%3C'_%3E)+-%3E+fmt::Result+%7B%0A++++++++++++fmt.debug_map()%0A+++++++++++++++//+We+map+our+vec+so+each+entries'+first+field+will+become%0A+++++++++++++++//+the+%22key%22.%0A+++++++++++++++.entries(self.0.iter().map(%7C%26(ref+k,+ref+v)%7C+(k,+v)))%0A+++++++++++++++.finish()%0A++++++++%7D%0A++++%7D%0A++++%0A++++assert_eq!(%0A++++++++format!(%22%7B:?%7D%22,+Foo(vec!%5B(%22A%22.to_string(),+10),+(%22B%22.to_string(),+11)%5D)),%0A++++++++r%23%22%7B%22A%22:+10,+%22B%22:+11%7D%22%23,%0A++++);%0A%7D&amp;edition=2021"></a></div>
122 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.finish_non_exhaustive"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.83.0">1.83.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/fmt/builders.rs.html#1150">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.finish_non_exhaustive"·class="fn">finish_non_exhaustive</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="https://doc.rust-la[·...·truncated·by·diffoscope;·len:·151,·SHA:·b22f37516c095dc3d0baabc7813bf85eed6b622f2cdcbd627b725b1efb609f50·...·]/core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.Error.html"·title="struct·alloc::fmt::Error">Error</a>&gt;</h4></section></summary><div·class="docblock"><p>Marks·the·map·as·non-exhaustive,·indicating·to·the·reader·that·there·are·some·other122 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.finish_non_exhaustive"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.83.0">1.83.0</span>···<a·class="src"·href="../../src/core/fmt/builders.rs.html#1150">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.finish_non_exhaustive"·class="fn">finish_non_exhaustive</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enu[·...·truncated·by·diffoscope;·len:·70,·SHA:·f08bc6f16abcae124690f892f9801ec7f5e4f06bd3fe59b6c025c62b08da498d·...·]/core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.Error.html"·title="struct·alloc::fmt::Error">Error</a>&gt;</h4></section></summary><div·class="docblock"><p>Marks·the·map·as·non-exhaustive,·indicating·to·the·reader·that·there·are·some·other
123 entries·that·are·not·shown·in·the·debug·representation.</p>123 entries·that·are·not·shown·in·the·debug·representation.</p>
124 <h5·id="examples-5"><a·class="doc-anchor"·href="#examples-5">§</a>Examples</h5>124 <h5·id="examples-5"><a·class="doc-anchor"·href="#examples-5">§</a>Examples</h5>
125 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt;125 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt;
  
126 <span·class="kw">struct·</span>Foo(Vec&lt;(String,·i32)&gt;);126 <span·class="kw">struct·</span>Foo(Vec&lt;(String,·i32)&gt;);
  
127 <span·class="kw">impl·</span>fmt::Debug·<span·class="kw">for·</span>Foo·{127 <span·class="kw">impl·</span>fmt::Debug·<span·class="kw">for·</span>Foo·{
Offset 144, 15 lines modifiedOffset 144, 15 lines modified
144 ····<span·class="macro">format!</span>(<span·class="string">"{:?}"</span>,·Foo(<span·class="macro">vec!</span>[144 ····<span·class="macro">format!</span>(<span·class="string">"{:?}"</span>,·Foo(<span·class="macro">vec!</span>[
145 ········(<span·class="string">"A"</span>.to_string(),·<span·class="number">10</span>),145 ········(<span·class="string">"A"</span>.to_string(),·<span·class="number">10</span>),
146 ········(<span·class="string">"B"</span>.to_string(),·<span·class="number">11</span>),146 ········(<span·class="string">"B"</span>.to_string(),·<span·class="number">11</span>),
147 ········(<span·class="string">"C"</span>.to_string(),·<span·class="number">12</span>),147 ········(<span·class="string">"C"</span>.to_string(),·<span·class="number">12</span>),
148 ····])),148 ····])),
149 ····<span·class="string">r#"{"A":·10,·"B":·11,·..}"#</span>,149 ····<span·class="string">r#"{"A":·10,·"B":·11,·..}"#</span>,
150 );</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::fmt;%0A++++%0A++++struct+Foo(Vec%3C(String,+i32)%3E);%0A++++%0A++++impl+fmt::Debug+for+Foo+%7B%0A++++++++fn+fmt(%26self,+fmt:+%26mut+fmt::Formatter%3C'_%3E)+-%3E+fmt::Result+%7B%0A++++++++++++//+Print+at+most+two+elements,+abbreviate+the+rest%0A++++++++++++let+mut+f+=+fmt.debug_map();%0A++++++++++++let+mut+f+=+f.entries(self.0.iter().take(2).map(%7C%26(ref+k,+ref+v)%7C+(k,+v)));%0A++++++++++++if+self.0.len()+%3E+2+%7B%0A++++++++++++++++f.finish_non_exhaustive()%0A++++++++++++%7D+else+%7B%0A++++++++++++++++f.finish()%0A++++++++++++%7D%0A++++++++%7D%0A++++%7D%0A++++%0A++++assert_eq!(%0A++++++++format!(%22%7B:?%7D%22,+Foo(vec!%5B%0A++++++++++++(%22A%22.to_string(),+10),%0A++++++++++++(%22B%22.to_string(),+11),%0A++++++++++++(%22C%22.to_string(),+12),%0A++++++++%5D)),%0A++++++++r%23%22%7B%22A%22:+10,+%22B%22:+11,+..%7D%22%23,%0A++++);%0A%7D&amp;edition=2021"></a></div>150 );</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::fmt;%0A++++%0A++++struct+Foo(Vec%3C(String,+i32)%3E);%0A++++%0A++++impl+fmt::Debug+for+Foo+%7B%0A++++++++fn+fmt(%26self,+fmt:+%26mut+fmt::Formatter%3C'_%3E)+-%3E+fmt::Result+%7B%0A++++++++++++//+Print+at+most+two+elements,+abbreviate+the+rest%0A++++++++++++let+mut+f+=+fmt.debug_map();%0A++++++++++++let+mut+f+=+f.entries(self.0.iter().take(2).map(%7C%26(ref+k,+ref+v)%7C+(k,+v)));%0A++++++++++++if+self.0.len()+%3E+2+%7B%0A++++++++++++++++f.finish_non_exhaustive()%0A++++++++++++%7D+else+%7B%0A++++++++++++++++f.finish()%0A++++++++++++%7D%0A++++++++%7D%0A++++%7D%0A++++%0A++++assert_eq!(%0A++++++++format!(%22%7B:?%7D%22,+Foo(vec!%5B%0A++++++++++++(%22A%22.to_string(),+10),%0A++++++++++++(%22B%22.to_string(),+11),%0A++++++++++++(%22C%22.to_string(),+12),%0A++++++++%5D)),%0A++++++++r%23%22%7B%22A%22:+10,+%22B%22:+11,+..%7D%22%23,%0A++++);%0A%7D&amp;edition=2021"></a></div>
151 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.finish"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.2.0">1.2.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/fmt/builders.rs.html#1199">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.finish"·class="fn">finish</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/result/enum[·...·truncated·by·diffoscope;·len:·121,·SHA:·103456a7a5ee4744efb2b80e9d4482792a073cd63dc8fe9e258f2f15a5797c9c·...·]/core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.Error.html"·title="struct·alloc::fmt::Error">Error</a>&gt;</h4></section></summary><div·class="docblock"><p>Finishes·output·and·returns·any·error·encountered.</p>151 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.finish"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.2.0">1.2.0</span>···<a·class="src"·href="../../src/core/fmt/builders.rs.html#1199">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.finish"·class="fn">finish</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result[·...·truncated·by·diffoscope;·len:·40,·SHA:·70b01002cd64593c3684de61428255bc37af360c5953a7cd1624d7c347848c1a·...·]/core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.Error.html"·title="struct·alloc::fmt::Error">Error</a>&gt;</h4></section></summary><div·class="docblock"><p>Finishes·output·and·returns·any·error·encountered.</p>
152 <h5·id="panics-2"><a·class="doc-anchor"·href="#panics-2">§</a>Panics</h5>152 <h5·id="panics-2"><a·class="doc-anchor"·href="#panics-2">§</a>Panics</h5>
153 <p><code>key</code>·must·be·called·before·<code>value</code>·and·each·call·to·<code>key</code>·must·be·followed153 <p><code>key</code>·must·be·called·before·<code>value</code>·and·each·call·to·<code>key</code>·must·be·followed
154 by·a·corresponding·call·to·<code>value</code>.·Otherwise·this·method·will·panic.</p>154 by·a·corresponding·call·to·<code>value</code>.·Otherwise·this·method·will·panic.</p>
155 <h5·id="examples-6"><a·class="doc-anchor"·href="#examples-6">§</a>Examples</h5>155 <h5·id="examples-6"><a·class="doc-anchor"·href="#examples-6">§</a>Examples</h5>
156 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt;156 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt;
  
157 <span·class="kw">struct·</span>Foo(Vec&lt;(String,·i32)&gt;);157 <span·class="kw">struct·</span>Foo(Vec&lt;(String,·i32)&gt;);
Offset 165, 18 lines modifiedOffset 165, 18 lines modified
165 ····</span>}165 ····</span>}
166 }166 }
  
167 <span·class="macro">assert_eq!</span>(167 <span·class="macro">assert_eq!</span>(
168 ····<span·class="macro">format!</span>(<span·class="string">"{:?}"</span>,·Foo(<span·class="macro">vec!</span>[(<span·class="string">"A"</span>.to_string(),·<span·class="number">10</span>),·(<span·class="string">"B"</span>.to_string(),·<span·class="number">11</span>)])),168 ····<span·class="macro">format!</span>(<span·class="string">"{:?}"</span>,·Foo(<span·class="macro">vec!</span>[(<span·class="string">"A"</span>.to_string(),·<span·class="number">10</span>),·(<span·class="string">"B"</span>.to_string(),·<span·class="number">11</span>)])),
169 ····<span·class="string">r#"{"A":·10,·"B":·11}"#</span>,169 ····<span·class="string">r#"{"A":·10,·"B":·11}"#</span>,
170 );</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::fmt;%0A++++%0A++++struct+Foo(Vec%3C(String,+i32)%3E);%0A++++%0A++++impl+fmt::Debug+for+Foo+%7B%0A++++++++fn+fmt(%26self,+fmt:+%26mut+fmt::Formatter%3C'_%3E)+-%3E+fmt::Result+%7B%0A++++++++++++fmt.debug_map()%0A+++++++++++++++.entries(self.0.iter().map(%7C%26(ref+k,+ref+v)%7C+(k,+v)))%0A+++++++++++++++.finish()+//+Ends+the+map+formatting.%0A++++++++%7D%0A++++%7D%0A++++%0A++++assert_eq!(%0A++++++++format!(%22%7B:?%7D%22,+Foo(vec!%5B(%22A%22.to_string(),+10),+(%22B%22.to_string(),+11)%5D)),%0A++++++++r%23%22%7B%22A%22:+10,+%22B%22:+11%7D%22%23,%0A++++);%0A%7D&amp;edition=2021"></a></div>170 );</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::fmt;%0A++++%0A++++struct+Foo(Vec%3C(String,+i32)%3E);%0A++++%0A++++impl+fmt::Debug+for+Foo+%7B%0A++++++++fn+fmt(%26self,+fmt:+%26mut+fmt::Formatter%3C'_%3E)+-%3E+fmt::Result+%7B%0A++++++++++++fmt.debug_map()%0A+++++++++++++++.entries(self.0.iter().map(%7C%26(ref+k,+ref+v)%7C+(k,+v)))%0A+++++++++++++++.finish()+//+Ends+the+map+formatting.%0A++++++++%7D%0A++++%7D%0A++++%0A++++assert_eq!(%0A++++++++format!(%22%7B:?%7D%22,+Foo(vec!%5B(%22A%22.to_string(),+10),+(%22B%22.to_string(),+11)%5D)),%0A++++++++r%23%22%7B%22A%22:+10,+%22B%22:+11%7D%22%23,%0A++++);%0A%7D&amp;edition=2021"></a></div>
171 </div></details></div></details></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-DebugMap%3C'a,+'b%3E"·class="impl"><a·href="#impl-Freeze-for-DebugMap%3C'a,+'b%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·'b&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="struct"·href="struct.DebugMap.html"·title="struct·alloc::fmt::DebugMap">DebugMap</a>&lt;'a,·'b&gt;</h3></section><section·id="impl-R[·...·truncated·by·diffoscope;·len:·2754,·SHA:·8d4a24bdf1a029fde7a658bc1e882444a2b298d853ec908de9f242d210d1c552·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where171 </div></details></div></details></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-DebugMap%3C'a,+'b%3E"·class="impl"><a·href="#impl-Freeze-for-DebugMap%3C'a,+'b%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·'b&gt;·<a·class="trait"·href="../../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="struct"·href="struct.DebugMap.html"·title="struct·alloc::fmt::DebugMap">DebugMap</a>&lt;'a,·'b&gt;</h3></section><section·id="impl-RefUnwindSafe-for-DebugMap%3[·...·truncated·by·diffoscope;·len:·2538,·SHA:·1484069d4d5beecd65b6bfc3e56d07309bbb18b55a0d5aa1332e99c5897877de·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where
172 ····T:·'static·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method[·...·truncated·by·diffoscope;·len:·834,·SHA:·47dfc2aa0101a4103e2a94c1f971c559790d87a62d58631fd2bfed98e6616a34·...·]/src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where172 ····T:·'static·+·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·[·...·truncated·by·diffoscope;·len:·672,·SHA:·ace7a059971745d739c5abd9821e5d1d485cc233fd42150ceb251bdea1ce6bf7·...·]/src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where
173 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·[·...·truncated·by·diffoscope;·len:·737,·SHA:·9e65370662e77fc5c56c98c66a5dfda3c1d1244574dc8806ab91a8967514da78·...·]/src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.BorrowMut.html"·title="trait·alloc::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where173 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·r[·...·truncated·by·diffoscope;·len:·629,·SHA:·8e6f5d2e4a2830729c5d495459113ca6f54993696d7dc71c1f46e5691f5108ed·...·]/src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.BorrowMut.html"·title="trait·alloc::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where
Max diff block lines reached; 9740/68032 bytes (14.32%) of diff not shown.
56.3 KB
./usr/share/doc/rust-doc/html/alloc/fmt/struct.DebugSet.html
    
Offset 1, 8 lines modifiedOffset 1, 8 lines modified
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="A·struct·to·help·with·`fmt::Debug`·implementations."><title>DebugSet·in·alloc::fmt·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»    2025-01-07)» (built»   from»       a»      source»tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Debug<wbr>Set</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#examples"·title="Examples">Examples</a></li></ul><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.entries"·title="entries">entries</a></li><li><a·href="#method.entry"·title="entry">entry</a></li><li><a·href="#method.entry_with"·title="entry_with">entry_with</a></li><li><a·href="#method.finish"·title="finish">finish</a></li><li><a·href="#method.finish_non_exhaustive"·title="finish_non_exhaustive">finish_non_exhaustive</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-RefUnwindSafe-for-DebugSet%3C'a,+'b%3E"·title="!RefUnwindSafe">!RefUnwindSafe</a></li><li><a·href="#impl-Send-for-DebugSet%3C'a,+'b%3E"·title="!Send">!Send</a></li><li><a·href="#impl-Sync-for-DebugSet%3C'a,+'b%3E"·title="!Sync">!Sync</a></li><li><a·href="#impl-UnwindSafe-for-DebugSet%3C'a,+'b%3E"·title="!UnwindSafe">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-DebugSet%3C'a,+'b%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-Unpin-for-DebugSet%3C'a,+'b%3E"·title="Unpin">Unpin</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>fmt</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">alloc</a>::<wbr><a·href="index.html">fmt</a></span><h1>Struct·<span·class="struct">DebugSet</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/fmt/builders.rs.html#514">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·DebugSet&lt;'a,·'b&gt;<div·class="where">where1 <!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·struct·to·help·with·`fmt::Debug`·implementations."><title>DebugSet·in·alloc::fmt·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»    2025-01-07)» (built»   from»       a»      source»tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Debug<wbr>Set</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#examples"·title="Examples">Examples</a></li></ul><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.entries"·title="entries">entries</a></li><li><a·href="#method.entry"·title="entry">entry</a></li><li><a·href="#method.entry_with"·title="entry_with">entry_with</a></li><li><a·href="#method.finish"·title="finish">finish</a></li><li><a·href="#method.finish_non_exhaustive"·title="finish_non_exhaustive">finish_non_exhaustive</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-RefUnwindSafe-for-DebugSet%3C'a,+'b%3E"·title="!RefUnwindSafe">!RefUnwindSafe</a></li><li><a·href="#impl-Send-for-DebugSet%3C'a,+'b%3E"·title="!Send">!Send</a></li><li><a·href="#impl-Sync-for-DebugSet%3C'a,+'b%3E"·title="!Sync">!Sync</a></li><li><a·href="#impl-UnwindSafe-for-DebugSet%3C'a,+'b%3E"·title="!UnwindSafe">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-DebugSet%3C'a,+'b%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-Unpin-for-DebugSet%3C'a,+'b%3E"·title="Unpin">Unpin</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>fmt</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">alloc</a>::<wbr><a·href="index.html">fmt</a></span><h1>Struct·<span·class="struct">DebugSet</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../src/core/fmt/builders.rs.html#514">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·DebugSet&lt;'a,·'b&gt;<div·class="where">where
2 ····'b:·'a,</div>{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>A·struct·to·help·with·<a·href="trait.Debug.html"·title="trait·alloc::fmt::Debug"><code>fmt::Debug</code></a>·implementations.</p>2 ····'b:·'a,</div>{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>A·struct·to·help·with·<a·href="trait.Debug.html"·title="trait·alloc::fmt::Debug"><code>fmt::Debug</code></a>·implementations.</p>
3 <p>This·is·useful·when·you·wish·to·output·a·formatted·set·of·items·as·a·part3 <p>This·is·useful·when·you·wish·to·output·a·formatted·set·of·items·as·a·part
4 of·your·<a·href="trait.Debug.html#tymethod.fmt"·title="method·alloc::fmt::Debug::fmt"><code>Debug::fmt</code></a>·implementation.</p>4 of·your·<a·href="trait.Debug.html#tymethod.fmt"·title="method·alloc::fmt::Debug::fmt"><code>Debug::fmt</code></a>·implementation.</p>
5 <p>This·can·be·constructed·by·the·<a·href="struct.Formatter.html#method.debug_set"·title="method·alloc::fmt::Formatter::debug_set"><code>Formatter::debug_set</code></a>·method.</p>5 <p>This·can·be·constructed·by·the·<a·href="struct.Formatter.html#method.debug_set"·title="method·alloc::fmt::Formatter::debug_set"><code>Formatter::debug_set</code></a>·method.</p>
6 <h2·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h2>6 <h2·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h2>
7 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt;7 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt;
  
Offset 14, 16 lines modifiedOffset 14, 16 lines modified
14 ····}14 ····}
15 }15 }
  
16 <span·class="macro">assert_eq!</span>(16 <span·class="macro">assert_eq!</span>(
17 ····<span·class="macro">format!</span>(<span·class="string">"{:?}"</span>,·Foo(<span·class="macro">vec!</span>[<span·class="number">10</span>,·<span·class="number">11</span>])),17 ····<span·class="macro">format!</span>(<span·class="string">"{:?}"</span>,·Foo(<span·class="macro">vec!</span>[<span·class="number">10</span>,·<span·class="number">11</span>])),
18 ····<span·class="string">"{10,·11}"</span>,18 ····<span·class="string">"{10,·11}"</span>,
19 );</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::fmt;%0A++++%0A++++struct+Foo(Vec%3Ci32%3E);%0A++++%0A++++impl+fmt::Debug+for+Foo+%7B%0A++++++++fn+fmt(%26self,+fmt:+%26mut+fmt::Formatter%3C'_%3E)+-%3E+fmt::Result+%7B%0A++++++++++++fmt.debug_set().entries(self.0.iter()).finish()%0A++++++++%7D%0A++++%7D%0A++++%0A++++assert_eq!(%0A++++++++format!(%22%7B:?%7D%22,+Foo(vec!%5B10,+11%5D)),%0A++++++++%22%7B10,+11%7D%22,%0A++++);%0A%7D&amp;edition=2021"></a></div>19 );</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::fmt;%0A++++%0A++++struct+Foo(Vec%3Ci32%3E);%0A++++%0A++++impl+fmt::Debug+for+Foo+%7B%0A++++++++fn+fmt(%26self,+fmt:+%26mut+fmt::Formatter%3C'_%3E)+-%3E+fmt::Result+%7B%0A++++++++++++fmt.debug_set().entries(self.0.iter()).finish()%0A++++++++%7D%0A++++%7D%0A++++%0A++++assert_eq!(%0A++++++++format!(%22%7B:?%7D%22,+Foo(vec!%5B10,+11%5D)),%0A++++++++%22%7B10,+11%7D%22,%0A++++);%0A%7D&amp;edition=2021"></a></div>
20 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-DebugSet%3C'a,+'b%3E"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/fmt/builders.rs.html#523">Source</a><a·href="#impl-DebugSet%3C'a,+'b%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·'b&gt;·<a·class="struct"·href="struct.DebugSet.html"·title="struct·alloc::fmt::DebugSet">DebugSet</a>&lt;'a,·'b&gt;<div·class="where">where20 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-DebugSet%3C'a,+'b%3E"·class="impl"><a·class="src·rightside"·href="../../src/core/fmt/builders.rs.html#523">Source</a><a·href="#impl-DebugSet%3C'a,+'b%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·'b&gt;·<a·class="struct"·href="struct.DebugSet.html"·title="struct·alloc::fmt::DebugSet">DebugSet</a>&lt;'a,·'b&gt;<div·class="where">where
21 ····'b:·'a,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.entry"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.2.0">1.2.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/fmt/builders.rs.html#548">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.entry"·class="fn">entry</a>(&amp;mut·self,·entry:·&amp;dyn·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>)·-&gt;·&amp;mut·<a·class="struct"·href="struct.DebugSet.html"·title="struct·alloc::fmt::DebugSet">DebugSet</a>&lt;'a,·'b&gt;</h4></section></summary><div·class="docblock"><p>Adds·a·new·entry·to·the·set·output.</p>21 ····'b:·'a,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.entry"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.2.0">1.2.0</span>···<a·class="src"·href="../../src/core/fmt/builders.rs.html#548">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.entry"·class="fn">entry</a>(&amp;mut·self,·entry:·&amp;dyn·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>)·-&gt;·&amp;mut·<a·class="struct"·href="struct.DebugSet.html"·title="struct·alloc::fmt::DebugSet">DebugSet</a>&lt;'a,·'b&gt;</h4></section></summary><div·class="docblock"><p>Adds·a·new·entry·to·the·set·output.</p>
22 <h5·id="examples-1"><a·class="doc-anchor"·href="#examples-1">§</a>Examples</h5>22 <h5·id="examples-1"><a·class="doc-anchor"·href="#examples-1">§</a>Examples</h5>
23 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt;23 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt;
  
24 <span·class="kw">struct·</span>Foo(Vec&lt;i32&gt;,·Vec&lt;u32&gt;);24 <span·class="kw">struct·</span>Foo(Vec&lt;i32&gt;,·Vec&lt;u32&gt;);
  
25 <span·class="kw">impl·</span>fmt::Debug·<span·class="kw">for·</span>Foo·{25 <span·class="kw">impl·</span>fmt::Debug·<span·class="kw">for·</span>Foo·{
26 ····<span·class="kw">fn·</span>fmt(<span·class="kw-2">&amp;</span><span·class="self">self</span>,·fmt:·<span·class="kw-2">&amp;mut·</span>fmt::Formatter&lt;<span·class="lifetime">'_</span>&gt;)·-&gt;·fmt::Result·{26 ····<span·class="kw">fn·</span>fmt(<span·class="kw-2">&amp;</span><span·class="self">self</span>,·fmt:·<span·class="kw-2">&amp;mut·</span>fmt::Formatter&lt;<span·class="lifetime">'_</span>&gt;)·-&gt;·fmt::Result·{
Offset 34, 21 lines modifiedOffset 34, 21 lines modified
34 ····}34 ····}
35 }35 }
  
36 <span·class="macro">assert_eq!</span>(36 <span·class="macro">assert_eq!</span>(
37 ····<span·class="macro">format!</span>(<span·class="string">"{:?}"</span>,·Foo(<span·class="macro">vec!</span>[<span·class="number">10</span>,·<span·class="number">11</span>],·<span·class="macro">vec!</span>[<span·class="number">12</span>,·<span·class="number">13</span>])),37 ····<span·class="macro">format!</span>(<span·class="string">"{:?}"</span>,·Foo(<span·class="macro">vec!</span>[<span·class="number">10</span>,·<span·class="number">11</span>],·<span·class="macro">vec!</span>[<span·class="number">12</span>,·<span·class="number">13</span>])),
38 ····<span·class="string">"{[10,·11],·[12,·13]}"</span>,38 ····<span·class="string">"{[10,·11],·[12,·13]}"</span>,
39 );</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::fmt;%0A++++%0A++++struct+Foo(Vec%3Ci32%3E,+Vec%3Cu32%3E);%0A++++%0A++++impl+fmt::Debug+for+Foo+%7B%0A++++++++fn+fmt(%26self,+fmt:+%26mut+fmt::Formatter%3C'_%3E)+-%3E+fmt::Result+%7B%0A++++++++++++fmt.debug_set()%0A+++++++++++++++.entry(%26self.0)+//+Adds+the+first+%22entry%22.%0A+++++++++++++++.entry(%26self.1)+//+Adds+the+second+%22entry%22.%0A+++++++++++++++.finish()%0A++++++++%7D%0A++++%7D%0A++++%0A++++assert_eq!(%0A++++++++format!(%22%7B:?%7D%22,+Foo(vec!%5B10,+11%5D,+vec!%5B12,+13%5D)),%0A++++++++%22%7B%5B10,+11%5D,+%5B12,+13%5D%7D%22,%0A++++);%0A%7D&amp;edition=2021"></a></div>39 );</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::fmt;%0A++++%0A++++struct+Foo(Vec%3Ci32%3E,+Vec%3Cu32%3E);%0A++++%0A++++impl+fmt::Debug+for+Foo+%7B%0A++++++++fn+fmt(%26self,+fmt:+%26mut+fmt::Formatter%3C'_%3E)+-%3E+fmt::Result+%7B%0A++++++++++++fmt.debug_set()%0A+++++++++++++++.entry(%26self.0)+//+Adds+the+first+%22entry%22.%0A+++++++++++++++.entry(%26self.1)+//+Adds+the+second+%22entry%22.%0A+++++++++++++++.finish()%0A++++++++%7D%0A++++%7D%0A++++%0A++++assert_eq!(%0A++++++++format!(%22%7B:?%7D%22,+Foo(vec!%5B10,+11%5D,+vec!%5B12,+13%5D)),%0A++++++++%22%7B%5B10,+11%5D,+%5B12,+13%5D%7D%22,%0A++++);%0A%7D&amp;edition=2021"></a></div>
40 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.entry_with"·class="method"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/fmt/builders.rs.html#558-560">Source</a><h4·class="code-header">pub·fn·<a·href="#method.entry_with"·class="fn">entry_with</a>&lt;F&gt;(&amp;mut·self,·entry_fmt:·F)·-&gt;·&amp;mut·<a·class="struct"·href="struct.DebugSet.html"·title="struct·alloc::fmt::DebugSet">DebugSet</a>&lt;'a,·'b&gt;<div·class="where">where40 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.entry_with"·class="method"><a·class="src·rightside"·href="../../src/core/fmt/builders.rs.html#558-560">Source</a><h4·class="code-header">pub·fn·<a·href="#method.entry_with"·class="fn">entry_with</a>&lt;F&gt;(&amp;mut·self,·entry_fmt:·F)·-&gt;·&amp;mut·<a·class="struct"·href="struct.DebugSet.html"·title="struct·alloc::fmt::DebugSet">DebugSet</a>&lt;'a,·'b&gt;<div·class="where">where
41 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnOnce.html"·title="trait·core::ops::function::FnOnce">FnOnce</a>(&amp;mut·<a·class="struct"·href="struct.Formatter.html"·title="struct·alloc::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class=[·...·truncated·by·diffoscope;·len:·183,·SHA:·3edff50d3d9f7ac468f7f3cca5b73054bade6bfbb41e05a5a31dc1c9ef2041e8·...·]/core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.Error.html"·title="struct·alloc::fmt::Error">Error</a>&gt;,</div></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>debug_closure_helpers</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/117729">#117729</a>)</span></div></span></summary><div·class="docblock"><p>Adds·a·new·entry·to·the·set·output.</p>41 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnOnce.html"·title="trait·core::ops::function::FnOnce">FnOnce</a>(&amp;mut·<a·class="struct"·href="struct.Formatter.html"·title="struct·alloc::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="enum"·href="../../core/res[·...·truncated·by·diffoscope;·len:·102,·SHA:·57858821eade5fde37c26c2cd183685d201c1c85edfe3c189932fc5dbced53e0·...·]/core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.Error.html"·title="struct·alloc::fmt::Error">Error</a>&gt;,</div></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>debug_closure_helpers</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/117729">#117729</a>)</span></div></span></summary><div·class="docblock"><p>Adds·a·new·entry·to·the·set·output.</p>
42 <p>This·method·is·equivalent·to·<a·href="struct.DebugSet.html#method.entry"·title="method·alloc::fmt::DebugSet::entry"><code>DebugSet::entry</code></a>,·but·formats·the42 <p>This·method·is·equivalent·to·<a·href="struct.DebugSet.html#method.entry"·title="method·alloc::fmt::DebugSet::entry"><code>DebugSet::entry</code></a>,·but·formats·the
43 entry·using·a·provided·closure·rather·than·by·calling·<a·href="trait.Debug.html#tymethod.fmt"·title="method·alloc::fmt::Debug::fmt"><code>Debug::fmt</code></a>.</p>43 entry·using·a·provided·closure·rather·than·by·calling·<a·href="trait.Debug.html#tymethod.fmt"·title="method·alloc::fmt::Debug::fmt"><code>Debug::fmt</code></a>.</p>
44 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.entries"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.2.0">1.2.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/fmt/builders.rs.html#590-593">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.entries"·class="fn">entries</a>&lt;D,·I&gt;(&amp;mut·self,·entries:·I)·-&gt;·&amp;mut·<a·class="struct"·href="struct.DebugSet.html"·title="struct·alloc::fmt::DebugSet">DebugSet</a>&lt;'a,·'b&gt;<div·class="where">where44 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.entries"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.2.0">1.2.0</span>···<a·class="src"·href="../../src/core/fmt/builders.rs.html#590-593">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.entries"·class="fn">entries</a>&lt;D,·I&gt;(&amp;mut·self,·entries:·I)·-&gt;·&amp;mut·<a·class="struct"·href="struct.DebugSet.html"·title="struct·alloc::fmt::DebugSet">DebugSet</a>&lt;'a,·'b&gt;<div·class="where">where
45 ····D:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,45 ····D:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,
46 ····I:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·D&gt;,</div></h4></section></summary><div·class="docblock"><p>Adds·the·contents·of·an·iterator·of·entries·to·the·set·output.</p>46 ····I:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·D&gt;,</div></h4></section></summary><div·class="docblock"><p>Adds·the·contents·of·an·iterator·of·entries·to·the·set·output.</p>
47 <h5·id="examples-2"><a·class="doc-anchor"·href="#examples-2">§</a>Examples</h5>47 <h5·id="examples-2"><a·class="doc-anchor"·href="#examples-2">§</a>Examples</h5>
48 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt;48 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt;
  
49 <span·class="kw">struct·</span>Foo(Vec&lt;i32&gt;,·Vec&lt;u32&gt;);49 <span·class="kw">struct·</span>Foo(Vec&lt;i32&gt;,·Vec&lt;u32&gt;);
  
50 <span·class="kw">impl·</span>fmt::Debug·<span·class="kw">for·</span>Foo·{50 <span·class="kw">impl·</span>fmt::Debug·<span·class="kw">for·</span>Foo·{
51 ····<span·class="kw">fn·</span>fmt(<span·class="kw-2">&amp;</span><span·class="self">self</span>,·fmt:·<span·class="kw-2">&amp;mut·</span>fmt::Formatter&lt;<span·class="lifetime">'_</span>&gt;)·-&gt;·fmt::Result·{51 ····<span·class="kw">fn·</span>fmt(<span·class="kw-2">&amp;</span><span·class="self">self</span>,·fmt:·<span·class="kw-2">&amp;mut·</span>fmt::Formatter&lt;<span·class="lifetime">'_</span>&gt;)·-&gt;·fmt::Result·{
Offset 59, 15 lines modifiedOffset 59, 15 lines modified
59 ····}59 ····}
60 }60 }
  
61 <span·class="macro">assert_eq!</span>(61 <span·class="macro">assert_eq!</span>(
62 ····<span·class="macro">format!</span>(<span·class="string">"{:?}"</span>,·Foo(<span·class="macro">vec!</span>[<span·class="number">10</span>,·<span·class="number">11</span>],·<span·class="macro">vec!</span>[<span·class="number">12</span>,·<span·class="number">13</span>])),62 ····<span·class="macro">format!</span>(<span·class="string">"{:?}"</span>,·Foo(<span·class="macro">vec!</span>[<span·class="number">10</span>,·<span·class="number">11</span>],·<span·class="macro">vec!</span>[<span·class="number">12</span>,·<span·class="number">13</span>])),
63 ····<span·class="string">"{10,·11,·12,·13}"</span>,63 ····<span·class="string">"{10,·11,·12,·13}"</span>,
64 );</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::fmt;%0A++++%0A++++struct+Foo(Vec%3Ci32%3E,+Vec%3Cu32%3E);%0A++++%0A++++impl+fmt::Debug+for+Foo+%7B%0A++++++++fn+fmt(%26self,+fmt:+%26mut+fmt::Formatter%3C'_%3E)+-%3E+fmt::Result+%7B%0A++++++++++++fmt.debug_set()%0A+++++++++++++++.entries(self.0.iter())+//+Adds+the+first+%22entry%22.%0A+++++++++++++++.entries(self.1.iter())+//+Adds+the+second+%22entry%22.%0A+++++++++++++++.finish()%0A++++++++%7D%0A++++%7D%0A++++%0A++++assert_eq!(%0A++++++++format!(%22%7B:?%7D%22,+Foo(vec!%5B10,+11%5D,+vec!%5B12,+13%5D)),%0A++++++++%22%7B10,+11,+12,+13%7D%22,%0A++++);%0A%7D&amp;edition=2021"></a></div>64 );</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::fmt;%0A++++%0A++++struct+Foo(Vec%3Ci32%3E,+Vec%3Cu32%3E);%0A++++%0A++++impl+fmt::Debug+for+Foo+%7B%0A++++++++fn+fmt(%26self,+fmt:+%26mut+fmt::Formatter%3C'_%3E)+-%3E+fmt::Result+%7B%0A++++++++++++fmt.debug_set()%0A+++++++++++++++.entries(self.0.iter())+//+Adds+the+first+%22entry%22.%0A+++++++++++++++.entries(self.1.iter())+//+Adds+the+second+%22entry%22.%0A+++++++++++++++.finish()%0A++++++++%7D%0A++++%7D%0A++++%0A++++assert_eq!(%0A++++++++format!(%22%7B:?%7D%22,+Foo(vec!%5B10,+11%5D,+vec!%5B12,+13%5D)),%0A++++++++%22%7B10,+11,+12,+13%7D%22,%0A++++);%0A%7D&amp;edition=2021"></a></div>
65 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.finish_non_exhaustive"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.83.0">1.83.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/fmt/builders.rs.html#630">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.finish_non_exhaustive"·class="fn">finish_non_exhaustive</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="https://doc.rust-lan[·...·truncated·by·diffoscope;·len:·150,·SHA:·12f2b2a3fa7b10b871d7a2af1ea8aab6e7e57e4a5bd7c9874e88c868492543f4·...·]/core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.Error.html"·title="struct·alloc::fmt::Error">Error</a>&gt;</h4></section></summary><div·class="docblock"><p>Marks·the·set·as·non-exhaustive,·indicating·to·the·reader·that·there·are·some·other65 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.finish_non_exhaustive"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.83.0">1.83.0</span>···<a·class="src"·href="../../src/core/fmt/builders.rs.html#630">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.finish_non_exhaustive"·class="fn">finish_non_exhaustive</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum[·...·truncated·by·diffoscope;·len:·69,·SHA:·fcd413a8cd84aaa17376b2c5ac35b31164697608ea9d2dde4d1d414c9fdd5f43·...·]/core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.Error.html"·title="struct·alloc::fmt::Error">Error</a>&gt;</h4></section></summary><div·class="docblock"><p>Marks·the·set·as·non-exhaustive,·indicating·to·the·reader·that·there·are·some·other
66 elements·that·are·not·shown·in·the·debug·representation.</p>66 elements·that·are·not·shown·in·the·debug·representation.</p>
67 <h5·id="examples-3"><a·class="doc-anchor"·href="#examples-3">§</a>Examples</h5>67 <h5·id="examples-3"><a·class="doc-anchor"·href="#examples-3">§</a>Examples</h5>
68 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt;68 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt;
  
69 <span·class="kw">struct·</span>Foo(Vec&lt;i32&gt;);69 <span·class="kw">struct·</span>Foo(Vec&lt;i32&gt;);
  
70 <span·class="kw">impl·</span>fmt::Debug·<span·class="kw">for·</span>Foo·{70 <span·class="kw">impl·</span>fmt::Debug·<span·class="kw">for·</span>Foo·{
Offset 83, 15 lines modifiedOffset 83, 15 lines modified
83 ····}83 ····}
84 }84 }
  
85 <span·class="macro">assert_eq!</span>(85 <span·class="macro">assert_eq!</span>(
86 ····<span·class="macro">format!</span>(<span·class="string">"{:?}"</span>,·Foo(<span·class="macro">vec!</span>[<span·class="number">1</span>,·<span·class="number">2</span>,·<span·class="number">3</span>,·<span·class="number">4</span>])),86 ····<span·class="macro">format!</span>(<span·class="string">"{:?}"</span>,·Foo(<span·class="macro">vec!</span>[<span·class="number">1</span>,·<span·class="number">2</span>,·<span·class="number">3</span>,·<span·class="number">4</span>])),
87 ····<span·class="string">"{1,·2,·..}"</span>,87 ····<span·class="string">"{1,·2,·..}"</span>,
88 );</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::fmt;%0A++++%0A++++struct+Foo(Vec%3Ci32%3E);%0A++++%0A++++impl+fmt::Debug+for+Foo+%7B%0A++++++++fn+fmt(%26self,+fmt:+%26mut+fmt::Formatter%3C'_%3E)+-%3E+fmt::Result+%7B%0A++++++++++++//+Print+at+most+two+elements,+abbreviate+the+rest%0A++++++++++++let+mut+f+=+fmt.debug_set();%0A++++++++++++let+mut+f+=+f.entries(self.0.iter().take(2));%0A++++++++++++if+self.0.len()+%3E+2+%7B%0A++++++++++++++++f.finish_non_exhaustive()%0A++++++++++++%7D+else+%7B%0A++++++++++++++++f.finish()%0A++++++++++++%7D%0A++++++++%7D%0A++++%7D%0A++++%0A++++assert_eq!(%0A++++++++format!(%22%7B:?%7D%22,+Foo(vec!%5B1,+2,+3,+4%5D)),%0A++++++++%22%7B1,+2,+..%7D%22,%0A++++);%0A%7D&amp;edition=2021"></a></div>88 );</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::fmt;%0A++++%0A++++struct+Foo(Vec%3Ci32%3E);%0A++++%0A++++impl+fmt::Debug+for+Foo+%7B%0A++++++++fn+fmt(%26self,+fmt:+%26mut+fmt::Formatter%3C'_%3E)+-%3E+fmt::Result+%7B%0A++++++++++++//+Print+at+most+two+elements,+abbreviate+the+rest%0A++++++++++++let+mut+f+=+fmt.debug_set();%0A++++++++++++let+mut+f+=+f.entries(self.0.iter().take(2));%0A++++++++++++if+self.0.len()+%3E+2+%7B%0A++++++++++++++++f.finish_non_exhaustive()%0A++++++++++++%7D+else+%7B%0A++++++++++++++++f.finish()%0A++++++++++++%7D%0A++++++++%7D%0A++++%7D%0A++++%0A++++assert_eq!(%0A++++++++format!(%22%7B:?%7D%22,+Foo(vec!%5B1,+2,+3,+4%5D)),%0A++++++++%22%7B1,+2,+..%7D%22,%0A++++);%0A%7D&amp;edition=2021"></a></div>
89 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.finish"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.2.0">1.2.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/fmt/builders.rs.html#672">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.finish"·class="fn">finish</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/result/enum.[·...·truncated·by·diffoscope;·len:·120,·SHA:·1558f3ee2df735346e624f23955bfd8c19fbce406a859243ff26e00deadcd0e7·...·]/core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.Error.html"·title="struct·alloc::fmt::Error">Error</a>&gt;</h4></section></summary><div·class="docblock"><p>Finishes·output·and·returns·any·error·encountered.</p>89 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.finish"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.2.0">1.2.0</span>···<a·class="src"·href="../../src/core/fmt/builders.rs.html#672">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.finish"·class="fn">finish</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result<[·...·truncated·by·diffoscope;·len:·39,·SHA:·42fe1249c751de3a39f8fc2407ab8069ef7288bb4dc92c07f499df6780ad2a3c·...·]/core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.Error.html"·title="struct·alloc::fmt::Error">Error</a>&gt;</h4></section></summary><div·class="docblock"><p>Finishes·output·and·returns·any·error·encountered.</p>
90 <h5·id="examples-4"><a·class="doc-anchor"·href="#examples-4">§</a>Examples</h5>90 <h5·id="examples-4"><a·class="doc-anchor"·href="#examples-4">§</a>Examples</h5>
91 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt;91 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt;
  
92 <span·class="kw">struct·</span>Foo(Vec&lt;i32&gt;);92 <span·class="kw">struct·</span>Foo(Vec&lt;i32&gt;);
  
93 <span·class="kw">impl·</span>fmt::Debug·<span·class="kw">for·</span>Foo·{93 <span·class="kw">impl·</span>fmt::Debug·<span·class="kw">for·</span>Foo·{
94 ····<span·class="kw">fn·</span>fmt(<span·class="kw-2">&amp;</span><span·class="self">self</span>,·fmt:·<span·class="kw-2">&amp;mut·</span>fmt::Formatter&lt;<span·class="lifetime">'_</span>&gt;)·-&gt;·fmt::Result·{94 ····<span·class="kw">fn·</span>fmt(<span·class="kw-2">&amp;</span><span·class="self">self</span>,·fmt:·<span·class="kw-2">&amp;mut·</span>fmt::Formatter&lt;<span·class="lifetime">'_</span>&gt;)·-&gt;·fmt::Result·{
Offset 101, 18 lines modifiedOffset 101, 18 lines modified
101 ····</span>}101 ····</span>}
102 }102 }
  
103 <span·class="macro">assert_eq!</span>(103 <span·class="macro">assert_eq!</span>(
104 ····<span·class="macro">format!</span>(<span·class="string">"{:?}"</span>,·Foo(<span·class="macro">vec!</span>[<span·class="number">10</span>,·<span·class="number">11</span>])),104 ····<span·class="macro">format!</span>(<span·class="string">"{:?}"</span>,·Foo(<span·class="macro">vec!</span>[<span·class="number">10</span>,·<span·class="number">11</span>])),
105 ····<span·class="string">"{10,·11}"</span>,105 ····<span·class="string">"{10,·11}"</span>,
106 );</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::fmt;%0A++++%0A++++struct+Foo(Vec%3Ci32%3E);%0A++++%0A++++impl+fmt::Debug+for+Foo+%7B%0A++++++++fn+fmt(%26self,+fmt:+%26mut+fmt::Formatter%3C'_%3E)+-%3E+fmt::Result+%7B%0A++++++++++++fmt.debug_set()%0A+++++++++++++++.entries(self.0.iter())%0A+++++++++++++++.finish()+//+Ends+the+set+formatting.%0A++++++++%7D%0A++++%7D%0A++++%0A++++assert_eq!(%0A++++++++format!(%22%7B:?%7D%22,+Foo(vec!%5B10,+11%5D)),%0A++++++++%22%7B10,+11%7D%22,%0A++++);%0A%7D&amp;edition=2021"></a></div>106 );</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::fmt;%0A++++%0A++++struct+Foo(Vec%3Ci32%3E);%0A++++%0A++++impl+fmt::Debug+for+Foo+%7B%0A++++++++fn+fmt(%26self,+fmt:+%26mut+fmt::Formatter%3C'_%3E)+-%3E+fmt::Result+%7B%0A++++++++++++fmt.debug_set()%0A+++++++++++++++.entries(self.0.iter())%0A+++++++++++++++.finish()+//+Ends+the+set+formatting.%0A++++++++%7D%0A++++%7D%0A++++%0A++++assert_eq!(%0A++++++++format!(%22%7B:?%7D%22,+Foo(vec!%5B10,+11%5D)),%0A++++++++%22%7B10,+11%7D%22,%0A++++);%0A%7D&amp;edition=2021"></a></div>
107 </div></details></div></details></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-DebugSet%3C'a,+'b%3E"·class="impl"><a·href="#impl-Freeze-for-DebugSet%3C'a,+'b%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·'b&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="struct"·href="struct.DebugSet.html"·title="struct·alloc::fmt::DebugSet">DebugSet</a>&lt;'a,·'b&gt;</h3></section><section·id="impl-R[·...·truncated·by·diffoscope;·len:·2754,·SHA:·9ee6cc46db4d8745c0b2c40d023332eb3ab13529b3d48a145f02f4c54171f9f6·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where107 </div></details></div></details></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-DebugSet%3C'a,+'b%3E"·class="impl"><a·href="#impl-Freeze-for-DebugSet%3C'a,+'b%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·'b&gt;·<a·class="trait"·href="../../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="struct"·href="struct.DebugSet.html"·title="struct·alloc::fmt::DebugSet">DebugSet</a>&lt;'a,·'b&gt;</h3></section><section·id="impl-RefUnwindSafe-for-DebugSet%3[·...·truncated·by·diffoscope;·len:·2538,·SHA:·2dc361e977c0c8a3deeb22e3181fa313b8e8b49c3058eed7657382ab07bc153b·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where
108 ····T:·'static·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method[·...·truncated·by·diffoscope;·len:·834,·SHA:·47dfc2aa0101a4103e2a94c1f971c559790d87a62d58631fd2bfed98e6616a34·...·]/src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where108 ····T:·'static·+·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·[·...·truncated·by·diffoscope;·len:·672,·SHA:·ace7a059971745d739c5abd9821e5d1d485cc233fd42150ceb251bdea1ce6bf7·...·]/src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where
109 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·[·...·truncated·by·diffoscope;·len:·737,·SHA:·9e65370662e77fc5c56c98c66a5dfda3c1d1244574dc8806ab91a8967514da78·...·]/src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.BorrowMut.html"·title="trait·alloc::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where109 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·r[·...·truncated·by·diffoscope;·len:·629,·SHA:·8e6f5d2e4a2830729c5d495459113ca6f54993696d7dc71c1f46e5691f5108ed·...·]/src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.BorrowMut.html"·title="trait·alloc::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where
110 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="met[·...·truncated·by·diffoscope;·len:·1416,·SHA:·6a91c7d774262ffceb6c994b163406722441142120e090bf0659f9a11b6dd348·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>110 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="s[·...·truncated·by·diffoscope;·len:·1227,·SHA:·50e7ebda2b6919040565b80662e590c224b03e887e0c5eeee46fe8a8f7ae0e8c·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>
111 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where111 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where
112 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="m[·...·truncated·by·diffoscope;·len:·237,·SHA:·98603c35860102b3af9b5cf27aeabf39e3c03236551986a6ec030817f108d919·...·]/core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>112 ····U:·<a·class="trait"·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class=[·...·truncated·by·diffoscope;·len:·156,·SHA:·79561c49c77b14346871935198fc061d00c9e84705db975b0451f5fb4f6af9a0·...·]/core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>
113 <p>That·is,·this·conversion·is·whatever·the·implementation·of113 <p>That·is,·this·conversion·is·whatever·the·implementation·of
114 <code><a·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>114 <code><a·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>
115 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#805-807">Source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where115 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#805-807">Source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where
116 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="asso[·...·truncated·by·diffoscope;·len:·1973,·SHA:·db4b8407e8e20581ad139aef25a6221a11da0f5f18d6aa35aa33eb843f4e1b9f·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where116 ····U:·<a·class="trait"·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·c[·...·truncated·by·diffoscope;·len:·1676,·SHA:·4c73b68f4fb433b5f24fbcd660156381e5dd9f46425d075b558b9b6ca0705f88·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where
117 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·clas[·...·truncated·by·diffoscope;·len:·1578,·SHA:·998d5af10fd889567cd999d1306bfd16c91134d2238a3c172f1e7fa8ed138c18·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>117 ····U:·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-imp[·...·truncated·by·diffoscope;·len:·1308,·SHA:·6741e462a0e1b36010204263b7580305663bb27f362987d14303068592f9f358·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>
53.0 KB
./usr/share/doc/rust-doc/html/alloc/fmt/struct.DebugStruct.html
    
Offset 1, 8 lines modifiedOffset 1, 8 lines modified
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="A·struct·to·help·with·`fmt::Debug`·implementations."><title>DebugStruct·in·alloc::fmt·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312» 2025-01-07)»      (built»from»    a»   source»     tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Debug<wbr>Struct</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#examples"·title="Examples">Examples</a></li></ul><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.field"·title="field">field</a></li><li><a·href="#method.field_with"·title="field_with">field_with</a></li><li><a·href="#method.finish"·title="finish">finish</a></li><li><a·href="#method.finish_non_exhaustive"·title="finish_non_exhaustive">finish_non_exhaustive</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-RefUnwindSafe-for-DebugStruct%3C'a,+'b%3E"·title="!RefUnwindSafe">!RefUnwindSafe</a></li><li><a·href="#impl-Send-for-DebugStruct%3C'a,+'b%3E"·title="!Send">!Send</a></li><li><a·href="#impl-Sync-for-DebugStruct%3C'a,+'b%3E"·title="!Sync">!Sync</a></li><li><a·href="#impl-UnwindSafe-for-DebugStruct%3C'a,+'b%3E"·title="!UnwindSafe">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-DebugStruct%3C'a,+'b%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-Unpin-for-DebugStruct%3C'a,+'b%3E"·title="Unpin">Unpin</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>fmt</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">alloc</a>::<wbr><a·href="index.html">fmt</a></span><h1>Struct·<span·class="struct">DebugStruct</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/fmt/builders.rs.html#88">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·DebugStruct&lt;'a,·'b&gt;<div·class="where">where1 <!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·struct·to·help·with·`fmt::Debug`·implementations."><title>DebugStruct·in·alloc::fmt·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312» 2025-01-07)»      (built»from»    a»   source»     tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Debug<wbr>Struct</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#examples"·title="Examples">Examples</a></li></ul><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.field"·title="field">field</a></li><li><a·href="#method.field_with"·title="field_with">field_with</a></li><li><a·href="#method.finish"·title="finish">finish</a></li><li><a·href="#method.finish_non_exhaustive"·title="finish_non_exhaustive">finish_non_exhaustive</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-RefUnwindSafe-for-DebugStruct%3C'a,+'b%3E"·title="!RefUnwindSafe">!RefUnwindSafe</a></li><li><a·href="#impl-Send-for-DebugStruct%3C'a,+'b%3E"·title="!Send">!Send</a></li><li><a·href="#impl-Sync-for-DebugStruct%3C'a,+'b%3E"·title="!Sync">!Sync</a></li><li><a·href="#impl-UnwindSafe-for-DebugStruct%3C'a,+'b%3E"·title="!UnwindSafe">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-DebugStruct%3C'a,+'b%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-Unpin-for-DebugStruct%3C'a,+'b%3E"·title="Unpin">Unpin</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>fmt</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">alloc</a>::<wbr><a·href="index.html">fmt</a></span><h1>Struct·<span·class="struct">DebugStruct</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../src/core/fmt/builders.rs.html#88">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·DebugStruct&lt;'a,·'b&gt;<div·class="where">where
2 ····'b:·'a,</div>{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>A·struct·to·help·with·<a·href="trait.Debug.html"·title="trait·alloc::fmt::Debug"><code>fmt::Debug</code></a>·implementations.</p>2 ····'b:·'a,</div>{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>A·struct·to·help·with·<a·href="trait.Debug.html"·title="trait·alloc::fmt::Debug"><code>fmt::Debug</code></a>·implementations.</p>
3 <p>This·is·useful·when·you·wish·to·output·a·formatted·struct·as·a·part·of·your3 <p>This·is·useful·when·you·wish·to·output·a·formatted·struct·as·a·part·of·your
4 <a·href="trait.Debug.html#tymethod.fmt"·title="method·alloc::fmt::Debug::fmt"><code>Debug::fmt</code></a>·implementation.</p>4 <a·href="trait.Debug.html#tymethod.fmt"·title="method·alloc::fmt::Debug::fmt"><code>Debug::fmt</code></a>·implementation.</p>
5 <p>This·can·be·constructed·by·the·<a·href="struct.Formatter.html#method.debug_struct"·title="method·alloc::fmt::Formatter::debug_struct"><code>Formatter::debug_struct</code></a>·method.</p>5 <p>This·can·be·constructed·by·the·<a·href="struct.Formatter.html#method.debug_struct"·title="method·alloc::fmt::Formatter::debug_struct"><code>Formatter::debug_struct</code></a>·method.</p>
6 <h2·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h2>6 <h2·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h2>
7 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt;7 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt;
  
Offset 20, 18 lines modifiedOffset 20, 18 lines modified
20 ····}20 ····}
21 }21 }
  
22 <span·class="macro">assert_eq!</span>(22 <span·class="macro">assert_eq!</span>(
23 ····<span·class="macro">format!</span>(<span·class="string">"{:?}"</span>,·Foo·{·bar:·<span·class="number">10</span>,·baz:·<span·class="string">"Hello·World"</span>.to_string()·}),23 ····<span·class="macro">format!</span>(<span·class="string">"{:?}"</span>,·Foo·{·bar:·<span·class="number">10</span>,·baz:·<span·class="string">"Hello·World"</span>.to_string()·}),
24 ····<span·class="string">r#"Foo·{·bar:·10,·baz:·"Hello·World"·}"#</span>,24 ····<span·class="string">r#"Foo·{·bar:·10,·baz:·"Hello·World"·}"#</span>,
25 );</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::fmt;%0A++++%0A++++struct+Foo+%7B%0A++++++++bar:+i32,%0A++++++++baz:+String,%0A++++%7D%0A++++%0A++++impl+fmt::Debug+for+Foo+%7B%0A++++++++fn+fmt(%26self,+fmt:+%26mut+fmt::Formatter%3C'_%3E)+-%3E+fmt::Result+%7B%0A++++++++++++fmt.debug_struct(%22Foo%22)%0A+++++++++++++++.field(%22bar%22,+%26self.bar)%0A+++++++++++++++.field(%22baz%22,+%26self.baz)%0A+++++++++++++++.finish()%0A++++++++%7D%0A++++%7D%0A++++%0A++++assert_eq!(%0A++++++++format!(%22%7B:?%7D%22,+Foo+%7B+bar:+10,+baz:+%22Hello+World%22.to_string()+%7D),%0A++++++++r%23%22Foo+%7B+bar:+10,+baz:+%22Hello+World%22+%7D%22%23,%0A++++);%0A%7D&amp;edition=2021"></a></div>25 );</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::fmt;%0A++++%0A++++struct+Foo+%7B%0A++++++++bar:+i32,%0A++++++++baz:+String,%0A++++%7D%0A++++%0A++++impl+fmt::Debug+for+Foo+%7B%0A++++++++fn+fmt(%26self,+fmt:+%26mut+fmt::Formatter%3C'_%3E)+-%3E+fmt::Result+%7B%0A++++++++++++fmt.debug_struct(%22Foo%22)%0A+++++++++++++++.field(%22bar%22,+%26self.bar)%0A+++++++++++++++.field(%22baz%22,+%26self.baz)%0A+++++++++++++++.finish()%0A++++++++%7D%0A++++%7D%0A++++%0A++++assert_eq!(%0A++++++++format!(%22%7B:?%7D%22,+Foo+%7B+bar:+10,+baz:+%22Hello+World%22.to_string()+%7D),%0A++++++++r%23%22Foo+%7B+bar:+10,+baz:+%22Hello+World%22+%7D%22%23,%0A++++);%0A%7D&amp;edition=2021"></a></div>
26 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-DebugStruct%3C'a,+'b%3E"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/fmt/builders.rs.html#102">Source</a><a·href="#impl-DebugStruct%3C'a,+'b%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·'b&gt;·<a·class="struct"·href="struct.DebugStruct.html"·title="struct·alloc::fmt::DebugStruct">DebugStruct</a>&lt;'a,·'b&gt;<div·class="where">where26 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-DebugStruct%3C'a,+'b%3E"·class="impl"><a·class="src·rightside"·href="../../src/core/fmt/builders.rs.html#102">Source</a><a·href="#impl-DebugStruct%3C'a,+'b%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·'b&gt;·<a·class="struct"·href="struct.DebugStruct.html"·title="struct·alloc::fmt::DebugStruct">DebugStruct</a>&lt;'a,·'b&gt;<div·class="where">where
27 ····'b:·'a,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.field"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.2.0">1.2.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/fmt/builders.rs.html#132">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.field"·class="fn">field</a>(27 ····'b:·'a,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.field"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.2.0">1.2.0</span>···<a·class="src"·href="../../src/core/fmt/builders.rs.html#132">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.field"·class="fn">field</a>(
28 ····&amp;mut·self,28 ····&amp;mut·self,
29 ····name:·&amp;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.str.html">str</a>,29 ····name:·&amp;<a·class="primitive"·href="../../core/primitive.str.html">str</a>,
30 ····value:·&amp;dyn·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,30 ····value:·&amp;dyn·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,
31 )·-&gt;·&amp;mut·<a·class="struct"·href="struct.DebugStruct.html"·title="struct·alloc::fmt::DebugStruct">DebugStruct</a>&lt;'a,·'b&gt;</h4></section></summary><div·class="docblock"><p>Adds·a·new·field·to·the·generated·struct·output.</p>31 )·-&gt;·&amp;mut·<a·class="struct"·href="struct.DebugStruct.html"·title="struct·alloc::fmt::DebugStruct">DebugStruct</a>&lt;'a,·'b&gt;</h4></section></summary><div·class="docblock"><p>Adds·a·new·field·to·the·generated·struct·output.</p>
32 <h5·id="examples-1"><a·class="doc-anchor"·href="#examples-1">§</a>Examples</h5>32 <h5·id="examples-1"><a·class="doc-anchor"·href="#examples-1">§</a>Examples</h5>
33 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt;33 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt;
  
34 <span·class="kw">struct·</span>Bar·{34 <span·class="kw">struct·</span>Bar·{
35 ····bar:·i32,35 ····bar:·i32,
Offset 49, 23 lines modifiedOffset 49, 23 lines modified
49 ····</span>}49 ····</span>}
50 }50 }
  
51 <span·class="macro">assert_eq!</span>(51 <span·class="macro">assert_eq!</span>(
52 ····<span·class="macro">format!</span>(<span·class="string">"{:?}"</span>,·Bar·{·bar:·<span·class="number">10</span>,·another:·<span·class="string">"Hello·World"</span>.to_string()·}),52 ····<span·class="macro">format!</span>(<span·class="string">"{:?}"</span>,·Bar·{·bar:·<span·class="number">10</span>,·another:·<span·class="string">"Hello·World"</span>.to_string()·}),
53 ····<span·class="string">r#"Bar·{·bar:·10,·another:·"Hello·World",·nonexistent_field:·1·}"#</span>,53 ····<span·class="string">r#"Bar·{·bar:·10,·another:·"Hello·World",·nonexistent_field:·1·}"#</span>,
54 );</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::fmt;%0A++++%0A++++struct+Bar+%7B%0A++++++++bar:+i32,%0A++++++++another:+String,%0A++++%7D%0A++++%0A++++impl+fmt::Debug+for+Bar+%7B%0A++++++++fn+fmt(%26self,+fmt:+%26mut+fmt::Formatter%3C'_%3E)+-%3E+fmt::Result+%7B%0A++++++++++++fmt.debug_struct(%22Bar%22)%0A+++++++++++++++.field(%22bar%22,+%26self.bar)+//+We+add+%60bar%60+field.%0A+++++++++++++++.field(%22another%22,+%26self.another)+//+We+add+%60another%60+field.%0A+++++++++++++++//+We+even+add+a+field+which+doesn't+exist+(because+why+not?).%0A+++++++++++++++.field(%22nonexistent_field%22,+%261)%0A+++++++++++++++.finish()+//+We're+good+to+go!%0A++++++++%7D%0A++++%7D%0A++++%0A++++assert_eq!(%0A++++++++format!(%22%7B:?%7D%22,+Bar+%7B+bar:+10,+another:+%22Hello+World%22.to_string()+%7D),%0A++++++++r%23%22Bar+%7B+bar:+10,+another:+%22Hello+World%22,+nonexistent_field:+1+%7D%22%23,%0A++++);%0A%7D&amp;edition=2021"></a></div>54 );</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::fmt;%0A++++%0A++++struct+Bar+%7B%0A++++++++bar:+i32,%0A++++++++another:+String,%0A++++%7D%0A++++%0A++++impl+fmt::Debug+for+Bar+%7B%0A++++++++fn+fmt(%26self,+fmt:+%26mut+fmt::Formatter%3C'_%3E)+-%3E+fmt::Result+%7B%0A++++++++++++fmt.debug_struct(%22Bar%22)%0A+++++++++++++++.field(%22bar%22,+%26self.bar)+//+We+add+%60bar%60+field.%0A+++++++++++++++.field(%22another%22,+%26self.another)+//+We+add+%60another%60+field.%0A+++++++++++++++//+We+even+add+a+field+which+doesn't+exist+(because+why+not?).%0A+++++++++++++++.field(%22nonexistent_field%22,+%261)%0A+++++++++++++++.finish()+//+We're+good+to+go!%0A++++++++%7D%0A++++%7D%0A++++%0A++++assert_eq!(%0A++++++++format!(%22%7B:?%7D%22,+Bar+%7B+bar:+10,+another:+%22Hello+World%22.to_string()+%7D),%0A++++++++r%23%22Bar+%7B+bar:+10,+another:+%22Hello+World%22,+nonexistent_field:+1+%7D%22%23,%0A++++);%0A%7D&amp;edition=2021"></a></div>
55 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.field_with"·class="method"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/fmt/builders.rs.html#141-143">Source</a><h4·class="code-header">pub·fn·<a·href="#method.field_with"·class="fn">field_with</a>&lt;F&gt;(55 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.field_with"·class="method"><a·class="src·rightside"·href="../../src/core/fmt/builders.rs.html#141-143">Source</a><h4·class="code-header">pub·fn·<a·href="#method.field_with"·class="fn">field_with</a>&lt;F&gt;(
56 ····&amp;mut·self,56 ····&amp;mut·self,
57 ····name:·&amp;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.str.html">str</a>,57 ····name:·&amp;<a·class="primitive"·href="../../core/primitive.str.html">str</a>,
58 ····value_fmt:·F,58 ····value_fmt:·F,
59 )·-&gt;·&amp;mut·<a·class="struct"·href="struct.DebugStruct.html"·title="struct·alloc::fmt::DebugStruct">DebugStruct</a>&lt;'a,·'b&gt;<div·class="where">where59 )·-&gt;·&amp;mut·<a·class="struct"·href="struct.DebugStruct.html"·title="struct·alloc::fmt::DebugStruct">DebugStruct</a>&lt;'a,·'b&gt;<div·class="where">where
60 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnOnce.html"·title="trait·core::ops::function::FnOnce">FnOnce</a>(&amp;mut·<a·class="struct"·href="struct.Formatter.html"·title="struct·alloc::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class=[·...·truncated·by·diffoscope;·len:·183,·SHA:·3edff50d3d9f7ac468f7f3cca5b73054bade6bfbb41e05a5a31dc1c9ef2041e8·...·]/core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.Error.html"·title="struct·alloc::fmt::Error">Error</a>&gt;,</div></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>debug_closure_helpers</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/117729">#117729</a>)</span></div></span></summary><div·class="docblock"><p>Adds·a·new·field·to·the·generated·struct·output.</p>60 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnOnce.html"·title="trait·core::ops::function::FnOnce">FnOnce</a>(&amp;mut·<a·class="struct"·href="struct.Formatter.html"·title="struct·alloc::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="enum"·href="../../core/res[·...·truncated·by·diffoscope;·len:·102,·SHA:·57858821eade5fde37c26c2cd183685d201c1c85edfe3c189932fc5dbced53e0·...·]/core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.Error.html"·title="struct·alloc::fmt::Error">Error</a>&gt;,</div></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>debug_closure_helpers</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/117729">#117729</a>)</span></div></span></summary><div·class="docblock"><p>Adds·a·new·field·to·the·generated·struct·output.</p>
61 <p>This·method·is·equivalent·to·<a·href="struct.DebugStruct.html#method.field"·title="method·alloc::fmt::DebugStruct::field"><code>DebugStruct::field</code></a>,·but·formats·the61 <p>This·method·is·equivalent·to·<a·href="struct.DebugStruct.html#method.field"·title="method·alloc::fmt::DebugStruct::field"><code>DebugStruct::field</code></a>,·but·formats·the
62 value·using·a·provided·closure·rather·than·by·calling·<a·href="trait.Debug.html#tymethod.fmt"·title="method·alloc::fmt::Debug::fmt"><code>Debug::fmt</code></a>.</p>62 value·using·a·provided·closure·rather·than·by·calling·<a·href="trait.Debug.html#tymethod.fmt"·title="method·alloc::fmt::Debug::fmt"><code>Debug::fmt</code></a>.</p>
63 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.finish_non_exhaustive"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.53.0">1.53.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/fmt/builders.rs.html#197">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.finish_non_exhaustive"·class="fn">finish_non_exhaustive</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="https://doc.rust-lan[·...·truncated·by·diffoscope;·len:·150,·SHA:·12f2b2a3fa7b10b871d7a2af1ea8aab6e7e57e4a5bd7c9874e88c868492543f4·...·]/core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.Error.html"·title="struct·alloc::fmt::Error">Error</a>&gt;</h4></section></summary><div·class="docblock"><p>Marks·the·struct·as·non-exhaustive,·indicating·to·the·reader·that·there·are·some·other63 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.finish_non_exhaustive"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.53.0">1.53.0</span>···<a·class="src"·href="../../src/core/fmt/builders.rs.html#197">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.finish_non_exhaustive"·class="fn">finish_non_exhaustive</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum[·...·truncated·by·diffoscope;·len:·69,·SHA:·fcd413a8cd84aaa17376b2c5ac35b31164697608ea9d2dde4d1d414c9fdd5f43·...·]/core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.Error.html"·title="struct·alloc::fmt::Error">Error</a>&gt;</h4></section></summary><div·class="docblock"><p>Marks·the·struct·as·non-exhaustive,·indicating·to·the·reader·that·there·are·some·other
64 fields·that·are·not·shown·in·the·debug·representation.</p>64 fields·that·are·not·shown·in·the·debug·representation.</p>
65 <h5·id="examples-2"><a·class="doc-anchor"·href="#examples-2">§</a>Examples</h5>65 <h5·id="examples-2"><a·class="doc-anchor"·href="#examples-2">§</a>Examples</h5>
66 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt;66 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt;
  
67 <span·class="kw">struct·</span>Bar·{67 <span·class="kw">struct·</span>Bar·{
68 ····bar:·i32,68 ····bar:·i32,
69 ····hidden:·f32,69 ····hidden:·f32,
Offset 79, 15 lines modifiedOffset 79, 15 lines modified
79 ····</span>}79 ····</span>}
80 }80 }
  
81 <span·class="macro">assert_eq!</span>(81 <span·class="macro">assert_eq!</span>(
82 ····<span·class="macro">format!</span>(<span·class="string">"{:?}"</span>,·Bar·{·bar:·<span·class="number">10</span>,·hidden:·<span·class="number">1.0·</span>}),82 ····<span·class="macro">format!</span>(<span·class="string">"{:?}"</span>,·Bar·{·bar:·<span·class="number">10</span>,·hidden:·<span·class="number">1.0·</span>}),
83 ····<span·class="string">"Bar·{·bar:·10,·..·}"</span>,83 ····<span·class="string">"Bar·{·bar:·10,·..·}"</span>,
84 );</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::fmt;%0A++++%0A++++struct+Bar+%7B%0A++++++++bar:+i32,%0A++++++++hidden:+f32,%0A++++%7D%0A++++%0A++++impl+fmt::Debug+for+Bar+%7B%0A++++++++fn+fmt(%26self,+fmt:+%26mut+fmt::Formatter%3C'_%3E)+-%3E+fmt::Result+%7B%0A++++++++++++fmt.debug_struct(%22Bar%22)%0A+++++++++++++++.field(%22bar%22,+%26self.bar)%0A+++++++++++++++.finish_non_exhaustive()+//+Show+that+some+other+field(s)+exist.%0A++++++++%7D%0A++++%7D%0A++++%0A++++assert_eq!(%0A++++++++format!(%22%7B:?%7D%22,+Bar+%7B+bar:+10,+hidden:+1.0+%7D),%0A++++++++%22Bar+%7B+bar:+10,+..+%7D%22,%0A++++);%0A%7D&amp;edition=2021"></a></div>84 );</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::fmt;%0A++++%0A++++struct+Bar+%7B%0A++++++++bar:+i32,%0A++++++++hidden:+f32,%0A++++%7D%0A++++%0A++++impl+fmt::Debug+for+Bar+%7B%0A++++++++fn+fmt(%26self,+fmt:+%26mut+fmt::Formatter%3C'_%3E)+-%3E+fmt::Result+%7B%0A++++++++++++fmt.debug_struct(%22Bar%22)%0A+++++++++++++++.field(%22bar%22,+%26self.bar)%0A+++++++++++++++.finish_non_exhaustive()+//+Show+that+some+other+field(s)+exist.%0A++++++++%7D%0A++++%7D%0A++++%0A++++assert_eq!(%0A++++++++format!(%22%7B:?%7D%22,+Bar+%7B+bar:+10,+hidden:+1.0+%7D),%0A++++++++%22Bar+%7B+bar:+10,+..+%7D%22,%0A++++);%0A%7D&amp;edition=2021"></a></div>
85 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.finish"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.2.0">1.2.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/fmt/builders.rs.html#244">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.finish"·class="fn">finish</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/result/enum.[·...·truncated·by·diffoscope;·len:·120,·SHA:·1558f3ee2df735346e624f23955bfd8c19fbce406a859243ff26e00deadcd0e7·...·]/core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.Error.html"·title="struct·alloc::fmt::Error">Error</a>&gt;</h4></section></summary><div·class="docblock"><p>Finishes·output·and·returns·any·error·encountered.</p>85 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.finish"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.2.0">1.2.0</span>···<a·class="src"·href="../../src/core/fmt/builders.rs.html#244">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.finish"·class="fn">finish</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result<[·...·truncated·by·diffoscope;·len:·39,·SHA:·42fe1249c751de3a39f8fc2407ab8069ef7288bb4dc92c07f499df6780ad2a3c·...·]/core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.Error.html"·title="struct·alloc::fmt::Error">Error</a>&gt;</h4></section></summary><div·class="docblock"><p>Finishes·output·and·returns·any·error·encountered.</p>
86 <h5·id="examples-3"><a·class="doc-anchor"·href="#examples-3">§</a>Examples</h5>86 <h5·id="examples-3"><a·class="doc-anchor"·href="#examples-3">§</a>Examples</h5>
87 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt;87 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt;
  
88 <span·class="kw">struct·</span>Bar·{88 <span·class="kw">struct·</span>Bar·{
89 ····bar:·i32,89 ····bar:·i32,
90 ····baz:·String,90 ····baz:·String,
91 }91 }
Offset 102, 18 lines modifiedOffset 102, 18 lines modified
102 ····</span>}102 ····</span>}
103 }103 }
  
104 <span·class="macro">assert_eq!</span>(104 <span·class="macro">assert_eq!</span>(
105 ····<span·class="macro">format!</span>(<span·class="string">"{:?}"</span>,·Bar·{·bar:·<span·class="number">10</span>,·baz:·<span·class="string">"Hello·World"</span>.to_string()·}),105 ····<span·class="macro">format!</span>(<span·class="string">"{:?}"</span>,·Bar·{·bar:·<span·class="number">10</span>,·baz:·<span·class="string">"Hello·World"</span>.to_string()·}),
106 ····<span·class="string">r#"Bar·{·bar:·10,·baz:·"Hello·World"·}"#</span>,106 ····<span·class="string">r#"Bar·{·bar:·10,·baz:·"Hello·World"·}"#</span>,
107 );</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::fmt;%0A++++%0A++++struct+Bar+%7B%0A++++++++bar:+i32,%0A++++++++baz:+String,%0A++++%7D%0A++++%0A++++impl+fmt::Debug+for+Bar+%7B%0A++++++++fn+fmt(%26self,+fmt:+%26mut+fmt::Formatter%3C'_%3E)+-%3E+fmt::Result+%7B%0A++++++++++++fmt.debug_struct(%22Bar%22)%0A+++++++++++++++.field(%22bar%22,+%26self.bar)%0A+++++++++++++++.field(%22baz%22,+%26self.baz)%0A+++++++++++++++.finish()+//+You+need+to+call+it+to+%22finish%22+the%0A+++++++++++++++++++++++++//+struct+formatting.%0A++++++++%7D%0A++++%7D%0A++++%0A++++assert_eq!(%0A++++++++format!(%22%7B:?%7D%22,+Bar+%7B+bar:+10,+baz:+%22Hello+World%22.to_string()+%7D),%0A++++++++r%23%22Bar+%7B+bar:+10,+baz:+%22Hello+World%22+%7D%22%23,%0A++++);%0A%7D&amp;edition=2021"></a></div>107 );</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::fmt;%0A++++%0A++++struct+Bar+%7B%0A++++++++bar:+i32,%0A++++++++baz:+String,%0A++++%7D%0A++++%0A++++impl+fmt::Debug+for+Bar+%7B%0A++++++++fn+fmt(%26self,+fmt:+%26mut+fmt::Formatter%3C'_%3E)+-%3E+fmt::Result+%7B%0A++++++++++++fmt.debug_struct(%22Bar%22)%0A+++++++++++++++.field(%22bar%22,+%26self.bar)%0A+++++++++++++++.field(%22baz%22,+%26self.baz)%0A+++++++++++++++.finish()+//+You+need+to+call+it+to+%22finish%22+the%0A+++++++++++++++++++++++++//+struct+formatting.%0A++++++++%7D%0A++++%7D%0A++++%0A++++assert_eq!(%0A++++++++format!(%22%7B:?%7D%22,+Bar+%7B+bar:+10,+baz:+%22Hello+World%22.to_string()+%7D),%0A++++++++r%23%22Bar+%7B+bar:+10,+baz:+%22Hello+World%22+%7D%22%23,%0A++++);%0A%7D&amp;edition=2021"></a></div>
108 </div></details></div></details></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-DebugStruct%3C'a,+'b%3E"·class="impl"><a·href="#impl-Freeze-for-DebugStruct%3C'a,+'b%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·'b&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="struct"·href="struct.DebugStruct.html"·title="struct·alloc::fmt::DebugStruct">DebugStruct</a>&lt;'a,·'b&gt;</h3></section><section·i[·...·truncated·by·diffoscope;·len:·2838,·SHA:·be882984d5989a483be03a6fdc82a17bafa1dd9995620123cc6160169997925c·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where108 </div></details></div></details></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-DebugStruct%3C'a,+'b%3E"·class="impl"><a·href="#impl-Freeze-for-DebugStruct%3C'a,+'b%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·'b&gt;·<a·class="trait"·href="../../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="struct"·href="struct.DebugStruct.html"·title="struct·alloc::fmt::DebugStruct">DebugStruct</a>&lt;'a,·'b&gt;</h3></section><section·id="impl-RefUnwindSafe-for-D[·...·truncated·by·diffoscope;·len:·2622,·SHA:·6ce1471fca3827dd8613baa7a76ff5a5a0f754e08c6e6487187e9f54f4679f12·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where
109 ····T:·'static·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method[·...·truncated·by·diffoscope;·len:·834,·SHA:·47dfc2aa0101a4103e2a94c1f971c559790d87a62d58631fd2bfed98e6616a34·...·]/src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where109 ····T:·'static·+·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·[·...·truncated·by·diffoscope;·len:·672,·SHA:·ace7a059971745d739c5abd9821e5d1d485cc233fd42150ceb251bdea1ce6bf7·...·]/src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where
110 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·[·...·truncated·by·diffoscope;·len:·737,·SHA:·9e65370662e77fc5c56c98c66a5dfda3c1d1244574dc8806ab91a8967514da78·...·]/src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.BorrowMut.html"·title="trait·alloc::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where110 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·r[·...·truncated·by·diffoscope;·len:·629,·SHA:·8e6f5d2e4a2830729c5d495459113ca6f54993696d7dc71c1f46e5691f5108ed·...·]/src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.BorrowMut.html"·title="trait·alloc::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where
111 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="met[·...·truncated·by·diffoscope;·len:·1416,·SHA:·6a91c7d774262ffceb6c994b163406722441142120e090bf0659f9a11b6dd348·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>111 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="s[·...·truncated·by·diffoscope;·len:·1227,·SHA:·50e7ebda2b6919040565b80662e590c224b03e887e0c5eeee46fe8a8f7ae0e8c·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>
112 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where112 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where
113 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="m[·...·truncated·by·diffoscope;·len:·237,·SHA:·98603c35860102b3af9b5cf27aeabf39e3c03236551986a6ec030817f108d919·...·]/core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>113 ····U:·<a·class="trait"·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class=[·...·truncated·by·diffoscope;·len:·156,·SHA:·79561c49c77b14346871935198fc061d00c9e84705db975b0451f5fb4f6af9a0·...·]/core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>
114 <p>That·is,·this·conversion·is·whatever·the·implementation·of114 <p>That·is,·this·conversion·is·whatever·the·implementation·of
115 <code><a·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>115 <code><a·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>
116 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#805-807">Source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where116 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#805-807">Source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where
117 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="asso[·...·truncated·by·diffoscope;·len:·1973,·SHA:·db4b8407e8e20581ad139aef25a6221a11da0f5f18d6aa35aa33eb843f4e1b9f·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where117 ····U:·<a·class="trait"·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·c[·...·truncated·by·diffoscope;·len:·1676,·SHA:·4c73b68f4fb433b5f24fbcd660156381e5dd9f46425d075b558b9b6ca0705f88·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where
118 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·clas[·...·truncated·by·diffoscope;·len:·1578,·SHA:·998d5af10fd889567cd999d1306bfd16c91134d2238a3c172f1e7fa8ed138c18·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>118 ····U:·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-imp[·...·truncated·by·diffoscope;·len:·1308,·SHA:·6741e462a0e1b36010204263b7580305663bb27f362987d14303068592f9f358·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>
52.9 KB
./usr/share/doc/rust-doc/html/alloc/fmt/struct.DebugTuple.html
    
Offset 1, 8 lines modifiedOffset 1, 8 lines modified
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="A·struct·to·help·with·`fmt::Debug`·implementations."><title>DebugTuple·in·alloc::fmt·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»  2025-01-07)»       (built» from»     a»    source»      tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Debug<wbr>Tuple</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#examples"·title="Examples">Examples</a></li></ul><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.field"·title="field">field</a></li><li><a·href="#method.field_with"·title="field_with">field_with</a></li><li><a·href="#method.finish"·title="finish">finish</a></li><li><a·href="#method.finish_non_exhaustive"·title="finish_non_exhaustive">finish_non_exhaustive</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-RefUnwindSafe-for-DebugTuple%3C'a,+'b%3E"·title="!RefUnwindSafe">!RefUnwindSafe</a></li><li><a·href="#impl-Send-for-DebugTuple%3C'a,+'b%3E"·title="!Send">!Send</a></li><li><a·href="#impl-Sync-for-DebugTuple%3C'a,+'b%3E"·title="!Sync">!Sync</a></li><li><a·href="#impl-UnwindSafe-for-DebugTuple%3C'a,+'b%3E"·title="!UnwindSafe">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-DebugTuple%3C'a,+'b%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-Unpin-for-DebugTuple%3C'a,+'b%3E"·title="Unpin">Unpin</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>fmt</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">alloc</a>::<wbr><a·href="index.html">fmt</a></span><h1>Struct·<span·class="struct">DebugTuple</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/fmt/builders.rs.html#289">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·DebugTuple&lt;'a,·'b&gt;<div·class="where">where1 <!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·struct·to·help·with·`fmt::Debug`·implementations."><title>DebugTuple·in·alloc::fmt·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»  2025-01-07)»       (built» from»     a»    source»      tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Debug<wbr>Tuple</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#examples"·title="Examples">Examples</a></li></ul><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.field"·title="field">field</a></li><li><a·href="#method.field_with"·title="field_with">field_with</a></li><li><a·href="#method.finish"·title="finish">finish</a></li><li><a·href="#method.finish_non_exhaustive"·title="finish_non_exhaustive">finish_non_exhaustive</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-RefUnwindSafe-for-DebugTuple%3C'a,+'b%3E"·title="!RefUnwindSafe">!RefUnwindSafe</a></li><li><a·href="#impl-Send-for-DebugTuple%3C'a,+'b%3E"·title="!Send">!Send</a></li><li><a·href="#impl-Sync-for-DebugTuple%3C'a,+'b%3E"·title="!Sync">!Sync</a></li><li><a·href="#impl-UnwindSafe-for-DebugTuple%3C'a,+'b%3E"·title="!UnwindSafe">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-DebugTuple%3C'a,+'b%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-Unpin-for-DebugTuple%3C'a,+'b%3E"·title="Unpin">Unpin</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>fmt</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">alloc</a>::<wbr><a·href="index.html">fmt</a></span><h1>Struct·<span·class="struct">DebugTuple</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../src/core/fmt/builders.rs.html#289">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·DebugTuple&lt;'a,·'b&gt;<div·class="where">where
2 ····'b:·'a,</div>{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>A·struct·to·help·with·<a·href="trait.Debug.html"·title="trait·alloc::fmt::Debug"><code>fmt::Debug</code></a>·implementations.</p>2 ····'b:·'a,</div>{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>A·struct·to·help·with·<a·href="trait.Debug.html"·title="trait·alloc::fmt::Debug"><code>fmt::Debug</code></a>·implementations.</p>
3 <p>This·is·useful·when·you·wish·to·output·a·formatted·tuple·as·a·part·of·your3 <p>This·is·useful·when·you·wish·to·output·a·formatted·tuple·as·a·part·of·your
4 <a·href="trait.Debug.html#tymethod.fmt"·title="method·alloc::fmt::Debug::fmt"><code>Debug::fmt</code></a>·implementation.</p>4 <a·href="trait.Debug.html#tymethod.fmt"·title="method·alloc::fmt::Debug::fmt"><code>Debug::fmt</code></a>·implementation.</p>
5 <p>This·can·be·constructed·by·the·<a·href="struct.Formatter.html#method.debug_tuple"·title="method·alloc::fmt::Formatter::debug_tuple"><code>Formatter::debug_tuple</code></a>·method.</p>5 <p>This·can·be·constructed·by·the·<a·href="struct.Formatter.html#method.debug_tuple"·title="method·alloc::fmt::Formatter::debug_tuple"><code>Formatter::debug_tuple</code></a>·method.</p>
6 <h2·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h2>6 <h2·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h2>
7 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt;7 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt;
  
Offset 17, 16 lines modifiedOffset 17, 16 lines modified
17 ····}17 ····}
18 }18 }
  
19 <span·class="macro">assert_eq!</span>(19 <span·class="macro">assert_eq!</span>(
20 ····<span·class="macro">format!</span>(<span·class="string">"{:?}"</span>,·Foo(<span·class="number">10</span>,·<span·class="string">"Hello·World"</span>.to_string())),20 ····<span·class="macro">format!</span>(<span·class="string">"{:?}"</span>,·Foo(<span·class="number">10</span>,·<span·class="string">"Hello·World"</span>.to_string())),
21 ····<span·class="string">r#"Foo(10,·"Hello·World")"#</span>,21 ····<span·class="string">r#"Foo(10,·"Hello·World")"#</span>,
22 );</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::fmt;%0A++++%0A++++struct+Foo(i32,+String);%0A++++%0A++++impl+fmt::Debug+for+Foo+%7B%0A++++++++fn+fmt(%26self,+fmt:+%26mut+fmt::Formatter%3C'_%3E)+-%3E+fmt::Result+%7B%0A++++++++++++fmt.debug_tuple(%22Foo%22)%0A+++++++++++++++.field(%26self.0)%0A+++++++++++++++.field(%26self.1)%0A+++++++++++++++.finish()%0A++++++++%7D%0A++++%7D%0A++++%0A++++assert_eq!(%0A++++++++format!(%22%7B:?%7D%22,+Foo(10,+%22Hello+World%22.to_string())),%0A++++++++r%23%22Foo(10,+%22Hello+World%22)%22%23,%0A++++);%0A%7D&amp;edition=2021"></a></div>22 );</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::fmt;%0A++++%0A++++struct+Foo(i32,+String);%0A++++%0A++++impl+fmt::Debug+for+Foo+%7B%0A++++++++fn+fmt(%26self,+fmt:+%26mut+fmt::Formatter%3C'_%3E)+-%3E+fmt::Result+%7B%0A++++++++++++fmt.debug_tuple(%22Foo%22)%0A+++++++++++++++.field(%26self.0)%0A+++++++++++++++.field(%26self.1)%0A+++++++++++++++.finish()%0A++++++++%7D%0A++++%7D%0A++++%0A++++assert_eq!(%0A++++++++format!(%22%7B:?%7D%22,+Foo(10,+%22Hello+World%22.to_string())),%0A++++++++r%23%22Foo(10,+%22Hello+World%22)%22%23,%0A++++);%0A%7D&amp;edition=2021"></a></div>
23 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-DebugTuple%3C'a,+'b%3E"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/fmt/builders.rs.html#304">Source</a><a·href="#impl-DebugTuple%3C'a,+'b%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·'b&gt;·<a·class="struct"·href="struct.DebugTuple.html"·title="struct·alloc::fmt::DebugTuple">DebugTuple</a>&lt;'a,·'b&gt;<div·class="where">where23 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-DebugTuple%3C'a,+'b%3E"·class="impl"><a·class="src·rightside"·href="../../src/core/fmt/builders.rs.html#304">Source</a><a·href="#impl-DebugTuple%3C'a,+'b%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·'b&gt;·<a·class="struct"·href="struct.DebugTuple.html"·title="struct·alloc::fmt::DebugTuple">DebugTuple</a>&lt;'a,·'b&gt;<div·class="where">where
24 ····'b:·'a,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.field"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.2.0">1.2.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/fmt/builders.rs.html#329">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.field"·class="fn">field</a>(&amp;mut·self,·value:·&amp;dyn·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>)·-&gt;·&amp;mut·<a·class="struct"·href="struct.DebugTuple.html"·title="struct·alloc::fmt::DebugTuple">DebugTuple</a>&lt;'a,·'b&gt;</h4></section></summary><div·class="docblock"><p>Adds·a·new·field·to·the·generated·tuple·struct·output.</p>24 ····'b:·'a,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.field"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.2.0">1.2.0</span>···<a·class="src"·href="../../src/core/fmt/builders.rs.html#329">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.field"·class="fn">field</a>(&amp;mut·self,·value:·&amp;dyn·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>)·-&gt;·&amp;mut·<a·class="struct"·href="struct.DebugTuple.html"·title="struct·alloc::fmt::DebugTuple">DebugTuple</a>&lt;'a,·'b&gt;</h4></section></summary><div·class="docblock"><p>Adds·a·new·field·to·the·generated·tuple·struct·output.</p>
25 <h5·id="examples-1"><a·class="doc-anchor"·href="#examples-1">§</a>Examples</h5>25 <h5·id="examples-1"><a·class="doc-anchor"·href="#examples-1">§</a>Examples</h5>
26 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt;26 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt;
  
27 <span·class="kw">struct·</span>Foo(i32,·String);27 <span·class="kw">struct·</span>Foo(i32,·String);
  
28 <span·class="kw">impl·</span>fmt::Debug·<span·class="kw">for·</span>Foo·{28 <span·class="kw">impl·</span>fmt::Debug·<span·class="kw">for·</span>Foo·{
29 ····<span·class="kw">fn·</span>fmt(<span·class="kw-2">&amp;</span><span·class="self">self</span>,·fmt:·<span·class="kw-2">&amp;mut·</span>fmt::Formatter&lt;<span·class="lifetime">'_</span>&gt;)·-&gt;·fmt::Result·{29 ····<span·class="kw">fn·</span>fmt(<span·class="kw-2">&amp;</span><span·class="self">self</span>,·fmt:·<span·class="kw-2">&amp;mut·</span>fmt::Formatter&lt;<span·class="lifetime">'_</span>&gt;)·-&gt;·fmt::Result·{
Offset 37, 19 lines modifiedOffset 37, 19 lines modified
37 ····</span>}37 ····</span>}
38 }38 }
  
39 <span·class="macro">assert_eq!</span>(39 <span·class="macro">assert_eq!</span>(
40 ····<span·class="macro">format!</span>(<span·class="string">"{:?}"</span>,·Foo(<span·class="number">10</span>,·<span·class="string">"Hello·World"</span>.to_string())),40 ····<span·class="macro">format!</span>(<span·class="string">"{:?}"</span>,·Foo(<span·class="number">10</span>,·<span·class="string">"Hello·World"</span>.to_string())),
41 ····<span·class="string">r#"Foo(10,·"Hello·World")"#</span>,41 ····<span·class="string">r#"Foo(10,·"Hello·World")"#</span>,
42 );</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::fmt;%0A++++%0A++++struct+Foo(i32,+String);%0A++++%0A++++impl+fmt::Debug+for+Foo+%7B%0A++++++++fn+fmt(%26self,+fmt:+%26mut+fmt::Formatter%3C'_%3E)+-%3E+fmt::Result+%7B%0A++++++++++++fmt.debug_tuple(%22Foo%22)%0A+++++++++++++++.field(%26self.0)+//+We+add+the+first+field.%0A+++++++++++++++.field(%26self.1)+//+We+add+the+second+field.%0A+++++++++++++++.finish()+//+We're+good+to+go!%0A++++++++%7D%0A++++%7D%0A++++%0A++++assert_eq!(%0A++++++++format!(%22%7B:?%7D%22,+Foo(10,+%22Hello+World%22.to_string())),%0A++++++++r%23%22Foo(10,+%22Hello+World%22)%22%23,%0A++++);%0A%7D&amp;edition=2021"></a></div>42 );</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::fmt;%0A++++%0A++++struct+Foo(i32,+String);%0A++++%0A++++impl+fmt::Debug+for+Foo+%7B%0A++++++++fn+fmt(%26self,+fmt:+%26mut+fmt::Formatter%3C'_%3E)+-%3E+fmt::Result+%7B%0A++++++++++++fmt.debug_tuple(%22Foo%22)%0A+++++++++++++++.field(%26self.0)+//+We+add+the+first+field.%0A+++++++++++++++.field(%26self.1)+//+We+add+the+second+field.%0A+++++++++++++++.finish()+//+We're+good+to+go!%0A++++++++%7D%0A++++%7D%0A++++%0A++++assert_eq!(%0A++++++++format!(%22%7B:?%7D%22,+Foo(10,+%22Hello+World%22.to_string())),%0A++++++++r%23%22Foo(10,+%22Hello+World%22)%22%23,%0A++++);%0A%7D&amp;edition=2021"></a></div>
43 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.field_with"·class="method"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/fmt/builders.rs.html#338-340">Source</a><h4·class="code-header">pub·fn·<a·href="#method.field_with"·class="fn">field_with</a>&lt;F&gt;(&amp;mut·self,·value_fmt:·F)·-&gt;·&amp;mut·<a·class="struct"·href="struct.DebugTuple.html"·title="struct·alloc::fmt::DebugTuple">DebugTuple</a>&lt;'a,·'b&gt;<div·class="where">where43 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.field_with"·class="method"><a·class="src·rightside"·href="../../src/core/fmt/builders.rs.html#338-340">Source</a><h4·class="code-header">pub·fn·<a·href="#method.field_with"·class="fn">field_with</a>&lt;F&gt;(&amp;mut·self,·value_fmt:·F)·-&gt;·&amp;mut·<a·class="struct"·href="struct.DebugTuple.html"·title="struct·alloc::fmt::DebugTuple">DebugTuple</a>&lt;'a,·'b&gt;<div·class="where">where
44 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnOnce.html"·title="trait·core::ops::function::FnOnce">FnOnce</a>(&amp;mut·<a·class="struct"·href="struct.Formatter.html"·title="struct·alloc::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class=[·...·truncated·by·diffoscope;·len:·183,·SHA:·3edff50d3d9f7ac468f7f3cca5b73054bade6bfbb41e05a5a31dc1c9ef2041e8·...·]/core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.Error.html"·title="struct·alloc::fmt::Error">Error</a>&gt;,</div></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>debug_closure_helpers</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/117729">#117729</a>)</span></div></span></summary><div·class="docblock"><p>Adds·a·new·field·to·the·generated·tuple·struct·output.</p>44 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnOnce.html"·title="trait·core::ops::function::FnOnce">FnOnce</a>(&amp;mut·<a·class="struct"·href="struct.Formatter.html"·title="struct·alloc::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="enum"·href="../../core/res[·...·truncated·by·diffoscope;·len:·102,·SHA:·57858821eade5fde37c26c2cd183685d201c1c85edfe3c189932fc5dbced53e0·...·]/core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.Error.html"·title="struct·alloc::fmt::Error">Error</a>&gt;,</div></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>debug_closure_helpers</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/117729">#117729</a>)</span></div></span></summary><div·class="docblock"><p>Adds·a·new·field·to·the·generated·tuple·struct·output.</p>
45 <p>This·method·is·equivalent·to·<a·href="struct.DebugTuple.html#method.field"·title="method·alloc::fmt::DebugTuple::field"><code>DebugTuple::field</code></a>,·but·formats·the45 <p>This·method·is·equivalent·to·<a·href="struct.DebugTuple.html#method.field"·title="method·alloc::fmt::DebugTuple::field"><code>DebugTuple::field</code></a>,·but·formats·the
46 value·using·a·provided·closure·rather·than·by·calling·<a·href="trait.Debug.html#tymethod.fmt"·title="method·alloc::fmt::Debug::fmt"><code>Debug::fmt</code></a>.</p>46 value·using·a·provided·closure·rather·than·by·calling·<a·href="trait.Debug.html#tymethod.fmt"·title="method·alloc::fmt::Debug::fmt"><code>Debug::fmt</code></a>.</p>
47 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.finish_non_exhaustive"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.83.0">1.83.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/fmt/builders.rs.html#387">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.finish_non_exhaustive"·class="fn">finish_non_exhaustive</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="https://doc.rust-lan[·...·truncated·by·diffoscope;·len:·150,·SHA:·12f2b2a3fa7b10b871d7a2af1ea8aab6e7e57e4a5bd7c9874e88c868492543f4·...·]/core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.Error.html"·title="struct·alloc::fmt::Error">Error</a>&gt;</h4></section></summary><div·class="docblock"><p>Marks·the·tuple·struct·as·non-exhaustive,·indicating·to·the·reader·that·there·are·some47 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.finish_non_exhaustive"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.83.0">1.83.0</span>···<a·class="src"·href="../../src/core/fmt/builders.rs.html#387">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.finish_non_exhaustive"·class="fn">finish_non_exhaustive</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum[·...·truncated·by·diffoscope;·len:·69,·SHA:·fcd413a8cd84aaa17376b2c5ac35b31164697608ea9d2dde4d1d414c9fdd5f43·...·]/core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.Error.html"·title="struct·alloc::fmt::Error">Error</a>&gt;</h4></section></summary><div·class="docblock"><p>Marks·the·tuple·struct·as·non-exhaustive,·indicating·to·the·reader·that·there·are·some
48 other·fields·that·are·not·shown·in·the·debug·representation.</p>48 other·fields·that·are·not·shown·in·the·debug·representation.</p>
49 <h5·id="examples-2"><a·class="doc-anchor"·href="#examples-2">§</a>Examples</h5>49 <h5·id="examples-2"><a·class="doc-anchor"·href="#examples-2">§</a>Examples</h5>
50 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt;50 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt;
  
51 <span·class="kw">struct·</span>Foo(i32,·String);51 <span·class="kw">struct·</span>Foo(i32,·String);
  
52 <span·class="kw">impl·</span>fmt::Debug·<span·class="kw">for·</span>Foo·{52 <span·class="kw">impl·</span>fmt::Debug·<span·class="kw">for·</span>Foo·{
Offset 60, 15 lines modifiedOffset 60, 15 lines modified
60 ····</span>}60 ····</span>}
61 }61 }
  
62 <span·class="macro">assert_eq!</span>(62 <span·class="macro">assert_eq!</span>(
63 ····<span·class="macro">format!</span>(<span·class="string">"{:?}"</span>,·Foo(<span·class="number">10</span>,·<span·class="string">"secret!"</span>.to_owned())),63 ····<span·class="macro">format!</span>(<span·class="string">"{:?}"</span>,·Foo(<span·class="number">10</span>,·<span·class="string">"secret!"</span>.to_owned())),
64 ····<span·class="string">"Foo(10,·..)"</span>,64 ····<span·class="string">"Foo(10,·..)"</span>,
65 );</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::fmt;%0A++++%0A++++struct+Foo(i32,+String);%0A++++%0A++++impl+fmt::Debug+for+Foo+%7B%0A++++++++fn+fmt(%26self,+fmt:+%26mut+fmt::Formatter%3C'_%3E)+-%3E+fmt::Result+%7B%0A++++++++++++fmt.debug_tuple(%22Foo%22)%0A+++++++++++++++.field(%26self.0)%0A+++++++++++++++.finish_non_exhaustive()+//+Show+that+some+other+field(s)+exist.%0A++++++++%7D%0A++++%7D%0A++++%0A++++assert_eq!(%0A++++++++format!(%22%7B:?%7D%22,+Foo(10,+%22secret!%22.to_owned())),%0A++++++++%22Foo(10,+..)%22,%0A++++);%0A%7D&amp;edition=2021"></a></div>65 );</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::fmt;%0A++++%0A++++struct+Foo(i32,+String);%0A++++%0A++++impl+fmt::Debug+for+Foo+%7B%0A++++++++fn+fmt(%26self,+fmt:+%26mut+fmt::Formatter%3C'_%3E)+-%3E+fmt::Result+%7B%0A++++++++++++fmt.debug_tuple(%22Foo%22)%0A+++++++++++++++.field(%26self.0)%0A+++++++++++++++.finish_non_exhaustive()+//+Show+that+some+other+field(s)+exist.%0A++++++++%7D%0A++++%7D%0A++++%0A++++assert_eq!(%0A++++++++format!(%22%7B:?%7D%22,+Foo(10,+%22secret!%22.to_owned())),%0A++++++++%22Foo(10,+..)%22,%0A++++);%0A%7D&amp;edition=2021"></a></div>
66 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.finish"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.2.0">1.2.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/fmt/builders.rs.html#431">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.finish"·class="fn">finish</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/result/enum.[·...·truncated·by·diffoscope;·len:·120,·SHA:·1558f3ee2df735346e624f23955bfd8c19fbce406a859243ff26e00deadcd0e7·...·]/core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.Error.html"·title="struct·alloc::fmt::Error">Error</a>&gt;</h4></section></summary><div·class="docblock"><p>Finishes·output·and·returns·any·error·encountered.</p>66 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.finish"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.2.0">1.2.0</span>···<a·class="src"·href="../../src/core/fmt/builders.rs.html#431">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.finish"·class="fn">finish</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result<[·...·truncated·by·diffoscope;·len:·39,·SHA:·42fe1249c751de3a39f8fc2407ab8069ef7288bb4dc92c07f499df6780ad2a3c·...·]/core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.Error.html"·title="struct·alloc::fmt::Error">Error</a>&gt;</h4></section></summary><div·class="docblock"><p>Finishes·output·and·returns·any·error·encountered.</p>
67 <h5·id="examples-3"><a·class="doc-anchor"·href="#examples-3">§</a>Examples</h5>67 <h5·id="examples-3"><a·class="doc-anchor"·href="#examples-3">§</a>Examples</h5>
68 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt;68 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt;
  
69 <span·class="kw">struct·</span>Foo(i32,·String);69 <span·class="kw">struct·</span>Foo(i32,·String);
  
70 <span·class="kw">impl·</span>fmt::Debug·<span·class="kw">for·</span>Foo·{70 <span·class="kw">impl·</span>fmt::Debug·<span·class="kw">for·</span>Foo·{
71 ····<span·class="kw">fn·</span>fmt(<span·class="kw-2">&amp;</span><span·class="self">self</span>,·fmt:·<span·class="kw-2">&amp;mut·</span>fmt::Formatter&lt;<span·class="lifetime">'_</span>&gt;)·-&gt;·fmt::Result·{71 ····<span·class="kw">fn·</span>fmt(<span·class="kw-2">&amp;</span><span·class="self">self</span>,·fmt:·<span·class="kw-2">&amp;mut·</span>fmt::Formatter&lt;<span·class="lifetime">'_</span>&gt;)·-&gt;·fmt::Result·{
Offset 80, 18 lines modifiedOffset 80, 18 lines modified
80 ····</span>}80 ····</span>}
81 }81 }
  
82 <span·class="macro">assert_eq!</span>(82 <span·class="macro">assert_eq!</span>(
83 ····<span·class="macro">format!</span>(<span·class="string">"{:?}"</span>,·Foo(<span·class="number">10</span>,·<span·class="string">"Hello·World"</span>.to_string())),83 ····<span·class="macro">format!</span>(<span·class="string">"{:?}"</span>,·Foo(<span·class="number">10</span>,·<span·class="string">"Hello·World"</span>.to_string())),
84 ····<span·class="string">r#"Foo(10,·"Hello·World")"#</span>,84 ····<span·class="string">r#"Foo(10,·"Hello·World")"#</span>,
85 );</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::fmt;%0A++++%0A++++struct+Foo(i32,+String);%0A++++%0A++++impl+fmt::Debug+for+Foo+%7B%0A++++++++fn+fmt(%26self,+fmt:+%26mut+fmt::Formatter%3C'_%3E)+-%3E+fmt::Result+%7B%0A++++++++++++fmt.debug_tuple(%22Foo%22)%0A+++++++++++++++.field(%26self.0)%0A+++++++++++++++.field(%26self.1)%0A+++++++++++++++.finish()+//+You+need+to+call+it+to+%22finish%22+the%0A+++++++++++++++++++++++++//+tuple+formatting.%0A++++++++%7D%0A++++%7D%0A++++%0A++++assert_eq!(%0A++++++++format!(%22%7B:?%7D%22,+Foo(10,+%22Hello+World%22.to_string())),%0A++++++++r%23%22Foo(10,+%22Hello+World%22)%22%23,%0A++++);%0A%7D&amp;edition=2021"></a></div>85 );</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::fmt;%0A++++%0A++++struct+Foo(i32,+String);%0A++++%0A++++impl+fmt::Debug+for+Foo+%7B%0A++++++++fn+fmt(%26self,+fmt:+%26mut+fmt::Formatter%3C'_%3E)+-%3E+fmt::Result+%7B%0A++++++++++++fmt.debug_tuple(%22Foo%22)%0A+++++++++++++++.field(%26self.0)%0A+++++++++++++++.field(%26self.1)%0A+++++++++++++++.finish()+//+You+need+to+call+it+to+%22finish%22+the%0A+++++++++++++++++++++++++//+tuple+formatting.%0A++++++++%7D%0A++++%7D%0A++++%0A++++assert_eq!(%0A++++++++format!(%22%7B:?%7D%22,+Foo(10,+%22Hello+World%22.to_string())),%0A++++++++r%23%22Foo(10,+%22Hello+World%22)%22%23,%0A++++);%0A%7D&amp;edition=2021"></a></div>
86 </div></details></div></details></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-DebugTuple%3C'a,+'b%3E"·class="impl"><a·href="#impl-Freeze-for-DebugTuple%3C'a,+'b%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·'b&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="struct"·href="struct.DebugTuple.html"·title="struct·alloc::fmt::DebugTuple">DebugTuple</a>&lt;'a,·'b&gt;</h3></section><section·id="[·...·truncated·by·diffoscope;·len:·2810,·SHA:·4ce86a3178d4f27112a63a065e7582e3d161e9c61f6a9ddc96806799d030fe0c·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where86 </div></details></div></details></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-DebugTuple%3C'a,+'b%3E"·class="impl"><a·href="#impl-Freeze-for-DebugTuple%3C'a,+'b%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·'b&gt;·<a·class="trait"·href="../../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="struct"·href="struct.DebugTuple.html"·title="struct·alloc::fmt::DebugTuple">DebugTuple</a>&lt;'a,·'b&gt;</h3></section><section·id="impl-RefUnwindSafe-for-Debu[·...·truncated·by·diffoscope;·len:·2594,·SHA:·0e7219178884e4e7ac670294f135103a06ec7d8905bf07cf6b7be60f21009ef6·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where
87 ····T:·'static·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method[·...·truncated·by·diffoscope;·len:·834,·SHA:·47dfc2aa0101a4103e2a94c1f971c559790d87a62d58631fd2bfed98e6616a34·...·]/src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where87 ····T:·'static·+·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·[·...·truncated·by·diffoscope;·len:·672,·SHA:·ace7a059971745d739c5abd9821e5d1d485cc233fd42150ceb251bdea1ce6bf7·...·]/src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where
88 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·[·...·truncated·by·diffoscope;·len:·737,·SHA:·9e65370662e77fc5c56c98c66a5dfda3c1d1244574dc8806ab91a8967514da78·...·]/src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.BorrowMut.html"·title="trait·alloc::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where88 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·r[·...·truncated·by·diffoscope;·len:·629,·SHA:·8e6f5d2e4a2830729c5d495459113ca6f54993696d7dc71c1f46e5691f5108ed·...·]/src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.BorrowMut.html"·title="trait·alloc::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where
89 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="met[·...·truncated·by·diffoscope;·len:·1416,·SHA:·6a91c7d774262ffceb6c994b163406722441142120e090bf0659f9a11b6dd348·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>89 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="s[·...·truncated·by·diffoscope;·len:·1227,·SHA:·50e7ebda2b6919040565b80662e590c224b03e887e0c5eeee46fe8a8f7ae0e8c·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>
90 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where90 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where
91 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="m[·...·truncated·by·diffoscope;·len:·237,·SHA:·98603c35860102b3af9b5cf27aeabf39e3c03236551986a6ec030817f108d919·...·]/core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>91 ····U:·<a·class="trait"·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class=[·...·truncated·by·diffoscope;·len:·156,·SHA:·79561c49c77b14346871935198fc061d00c9e84705db975b0451f5fb4f6af9a0·...·]/core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>
92 <p>That·is,·this·conversion·is·whatever·the·implementation·of92 <p>That·is,·this·conversion·is·whatever·the·implementation·of
93 <code><a·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>93 <code><a·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>
94 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#805-807">Source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where94 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#805-807">Source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where
95 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="asso[·...·truncated·by·diffoscope;·len:·1973,·SHA:·db4b8407e8e20581ad139aef25a6221a11da0f5f18d6aa35aa33eb843f4e1b9f·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where95 ····U:·<a·class="trait"·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·c[·...·truncated·by·diffoscope;·len:·1676,·SHA:·4c73b68f4fb433b5f24fbcd660156381e5dd9f46425d075b558b9b6ca0705f88·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where
96 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·clas[·...·truncated·by·diffoscope;·len:·1578,·SHA:·998d5af10fd889567cd999d1306bfd16c91134d2238a3c172f1e7fa8ed138c18·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>96 ····U:·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-imp[·...·truncated·by·diffoscope;·len:·1308,·SHA:·6741e462a0e1b36010204263b7580305663bb27f362987d14303068592f9f358·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>
102 KB
./usr/share/doc/rust-doc/html/alloc/fmt/struct.Error.html
    
Offset 1, 8 lines modifiedOffset 1, 8 lines modified
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="The·error·type·which·is·returned·from·formatting·a·message·into·a·stream."><title>Error·in·alloc::fmt·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»       2025-01-07)»    (built»      from»  a» source»   tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Error</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#examples"·title="Examples">Examples</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-Error"·title="Clone">Clone</a></li><li><a·href="#impl-Copy-for-Error"·title="Copy">Copy</a></li><li><a·href="#impl-Debug-for-Error"·title="Debug">Debug</a></li><li><a·href="#impl-Default-for-Error"·title="Default">Default</a></li><li><a·href="#impl-Display-for-Error"·title="Display">Display</a></li><li><a·href="#impl-Eq-for-Error"·title="Eq">Eq</a></li><li><a·href="#impl-Error-for-Error"·title="Error">Error</a></li><li><a·href="#impl-Hash-for-Error"·title="Hash">Hash</a></li><li><a·href="#impl-Ord-for-Error"·title="Ord">Ord</a></li><li><a·href="#impl-PartialEq-for-Error"·title="PartialEq">PartialEq</a></li><li><a·href="#impl-PartialOrd-for-Error"·title="PartialOrd">PartialOrd</a></li><li><a·href="#impl-StructuralPartialEq-for-Error"·title="StructuralPartialEq">StructuralPartialEq</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-Error"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Error"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Error"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-Error"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-Error"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Error"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-ToString-for-T"·title="ToString">ToString</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>fmt</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">alloc</a>::<wbr><a·href="index.html">fmt</a></span><h1>Struct·<span·class="struct">Error</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/fmt/mod.rs.html#103">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·Error;</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>The·error·type·which·is·returned·from·formatting·a·message·into·a·stream.</p>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="The·error·type·which·is·returned·from·formatting·a·message·into·a·stream."><title>Error·in·alloc::fmt·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»       2025-01-07)»    (built»      from»  a» source»   tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Error</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#examples"·title="Examples">Examples</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-Error"·title="Clone">Clone</a></li><li><a·href="#impl-Copy-for-Error"·title="Copy">Copy</a></li><li><a·href="#impl-Debug-for-Error"·title="Debug">Debug</a></li><li><a·href="#impl-Default-for-Error"·title="Default">Default</a></li><li><a·href="#impl-Display-for-Error"·title="Display">Display</a></li><li><a·href="#impl-Eq-for-Error"·title="Eq">Eq</a></li><li><a·href="#impl-Error-for-Error"·title="Error">Error</a></li><li><a·href="#impl-Hash-for-Error"·title="Hash">Hash</a></li><li><a·href="#impl-Ord-for-Error"·title="Ord">Ord</a></li><li><a·href="#impl-PartialEq-for-Error"·title="PartialEq">PartialEq</a></li><li><a·href="#impl-PartialOrd-for-Error"·title="PartialOrd">PartialOrd</a></li><li><a·href="#impl-StructuralPartialEq-for-Error"·title="StructuralPartialEq">StructuralPartialEq</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-Error"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Error"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Error"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-Error"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-Error"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Error"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-ToString-for-T"·title="ToString">ToString</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>fmt</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">alloc</a>::<wbr><a·href="index.html">fmt</a></span><h1>Struct·<span·class="struct">Error</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../src/core/fmt/mod.rs.html#103">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·Error;</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>The·error·type·which·is·returned·from·formatting·a·message·into·a·stream.</p>
2 <p>This·type·does·not·support·transmission·of·an·error·other·than·that·an·error2 <p>This·type·does·not·support·transmission·of·an·error·other·than·that·an·error
3 occurred.·This·is·because,·despite·the·existence·of·this·error,3 occurred.·This·is·because,·despite·the·existence·of·this·error,
4 string·formatting·is·considered·an·infallible·operation.4 string·formatting·is·considered·an·infallible·operation.
5 <code>fmt()</code>·implementors·should·not·return·this·<code>Error</code>·unless·they·received·it·from·their5 <code>fmt()</code>·implementors·should·not·return·this·<code>Error</code>·unless·they·received·it·from·their
6 <a·href="struct.Formatter.html"·title="struct·alloc::fmt::Formatter"><code>Formatter</code></a>.·The·only·time·your·code·should·create·a·new·instance·of·this6 <a·href="struct.Formatter.html"·title="struct·alloc::fmt::Formatter"><code>Formatter</code></a>.·The·only·time·your·code·should·create·a·new·instance·of·this
7 error·is·when·implementing·<code>fmt::Write</code>,·in·order·to·cancel·the·formatting·operation·when7 error·is·when·implementing·<code>fmt::Write</code>,·in·order·to·cancel·the·formatting·operation·when
8 writing·to·the·underlying·stream·fails.</p>8 writing·to·the·underlying·stream·fails.</p>
Offset 16, 31 lines modifiedOffset 16, 31 lines modified
16 <h2·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h2>16 <h2·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h2>
17 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt::{<span·class="self">self</span>,·write};17 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt::{<span·class="self">self</span>,·write};
  
18 <span·class="kw">let·</span><span·class="kw-2">mut·</span>output·=·String::new();18 <span·class="kw">let·</span><span·class="kw-2">mut·</span>output·=·String::new();
19 <span·class="kw">if·let·</span><span·class="prelude-val">Err</span>(fmt::Error)·=·write(<span·class="kw-2">&amp;mut·</span>output,·<span·class="macro">format_args!</span>(<span·class="string">"Hello·{}!"</span>,·<span·class="string">"world"</span>))·{19 <span·class="kw">if·let·</span><span·class="prelude-val">Err</span>(fmt::Error)·=·write(<span·class="kw-2">&amp;mut·</span>output,·<span·class="macro">format_args!</span>(<span·class="string">"Hello·{}!"</span>,·<span·class="string">"world"</span>))·{
20 ····<span·class="macro">panic!</span>(<span·class="string">"An·error·occurred"</span>);20 ····<span·class="macro">panic!</span>(<span·class="string">"An·error·occurred"</span>);
21 }</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::fmt::%7Bself,+write%7D;%0A++++%0A++++let+mut+output+=+String::new();%0A++++if+let+Err(fmt::Error)+=+write(%26mut+output,+format_args!(%22Hello+%7B%7D!%22,+%22world%22))+%7B%0A++++++++panic!(%22An+error+occurred%22);%0A++++%7D%0A%7D&amp;edition=2021"></a></div>21 }</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::fmt::%7Bself,+write%7D;%0A++++%0A++++let+mut+output+=+String::new();%0A++++if+let+Err(fmt::Error)+=+write(%26mut+output,+format_args!(%22Hello+%7B%7D!%22,+%22world%22))+%7B%0A++++++++panic!(%22An+error+occurred%22);%0A++++%7D%0A%7D&amp;edition=2021"></a></div>
22 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-Error"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/fmt/mod.rs.html#102">Source</a></span><a·href="#impl-Clone-for-Error"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="tra[·...·truncated·by·diffoscope;·len:·11869,·SHA:·b7c375fbcf74c8631f41e62a0d0436840b245f47b45f809d46e740a4a30b8ca5·...·]/core/primitive.reference.html">&amp;mut·__H</a>)<div·class="where">where22 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-Error"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/fmt/mod.rs.html#102">Source</a></span><a·href="#impl-Clone-for-Error"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struct"[·...·truncated·by·diffoscope;·len:·10654,·SHA:·4aaae39ff3ef2c926d4b2471f2d9527859e762438c01f82364e0415f253ab0ed·...·]/core/primitive.reference.html">&amp;mut·__H</a>)<div·class="where">where
23 ····__H:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/hash/trait.Hasher.html"·title="trait·core::hash::Hasher">Hasher</a>,</div></h4></section></summary><div·class='docblock'>Feeds·this·value·into·the·given·<a·href="https://doc.rust-lang.org/1.84.0/core/hash/trait.Hasher.[·...·truncated·by·diffoscope;·len:·774,·SHA:·b6d9984dd64e8f52d2ae21ddfb20322c75c41eb5a979a4f3f2b5e079fe1302ef·...·]/core/primitive.reference.html">&amp;mut·H</a>)<div·class="where">where23 ····__H:·<a·class="trait"·href="../../core/hash/trait.Hasher.html"·title="trait·core::hash::Hasher">Hasher</a>,</div></h4></section></summary><div·class='docblock'>Feeds·this·value·into·the·given·<a·href="../../core/hash/trait.Hasher.html"·title="trait·core::hash::Hasher"><code>Hasher</c[·...·truncated·by·diffoscope;·len:·612,·SHA:·54bd82bda566e83ac797a2f496a8b68ac948ec1c2b3e77f6fce23997ffbc54d9·...·]/core/primitive.reference.html">&amp;mut·H</a>)<div·class="where">where
24 ····H:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/hash/trait.Hasher.html"·title="trait·core::hash::Hasher">Hasher</a>,24 ····H:·<a·class="trait"·href="../../core/hash/trait.Hasher.html"·title="trait·core::hash::Hasher">Hasher</a>,
25 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Feeds·a·slice·of·this·type·into·the·given·<a·href="https://doc.rust-lang.org/1.84.0/core/hash/tr[·...·truncated·by·diffoscope;·len:·2240,·SHA:·79041f190171744b989057d77a913c5add868fbffc22ac103dd8be169d56eaa1·...·]/core/cmp/trait.Ord.html#method.max"·class="fn">max</a>(self,·other:·Self)·-&gt;·Self<div·class="where">where25 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Feeds·a·slice·of·this·type·into·the·given·<a·href="../../core/hash/trait.Hasher.html"·title="trait·core::hash::Hasher"><cod[·...·truncated·by·diffoscope;·len:·1916,·SHA:·b429ebf4c0c87fbbb089cef532d9c81e28fdd978841871f1fcac59b2d79fb468·...·]/core/cmp/trait.Ord.html#method.max"·class="fn">max</a>(self,·other:·Self)·-&gt;·Self<div·class="where">where
26 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Compares·and·returns·the·maximum·of·two·values.·<a·href="https://doc.rust-lang.org/1.84.0/core/c[·...·truncated·by·diffoscope;·len:·476,·SHA:·6e2c2e1036adbe675e0c1d4dd72198c295a5ba65761fb8a78472e3f256eab241·...·]/core/cmp/trait.Ord.html#method.min"·class="fn">min</a>(self,·other:·Self)·-&gt;·Self<div·class="where">where26 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Compares·and·returns·the·maximum·of·two·values.·<a·href="../../core/cmp/trait.Ord.html#method.max">Read·more</a></div></det[·...·truncated·by·diffoscope;·len:·368,·SHA:·ebb8ce63dad0550fb801013d87704feee48952425a32fcc6241ced48efaa227f·...·]/core/cmp/trait.Ord.html#method.min"·class="fn">min</a>(self,·other:·Self)·-&gt;·Self<div·class="where">where
27 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Compares·and·returns·the·minimum·of·two·values.·<a·href="https://doc.rust-lang.org/1.84.0/core/c[·...·truncated·by·diffoscope;·len:·480,·SHA:·945aad4bcacc0eabda902efbc8d2f6f02360f5bd72233f6edafe1702c670bb62·...·]/core/cmp/trait.Ord.html#method.clamp"·class="fn">clamp</a>(self,·min:·Self,·max:·Self)·-&gt;·Self<div·class="where">where27 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Compares·and·returns·the·minimum·of·two·values.·<a·href="../../core/cmp/trait.Ord.html#method.min">Read·more</a></div></det[·...·truncated·by·diffoscope;·len:·372,·SHA:·171ba1d9eebfbab44467f0a503bbdee9171eccdbafe7d4a1e4b06089498e54a3·...·]/core/cmp/trait.Ord.html#method.clamp"·class="fn">clamp</a>(self,·min:·Self,·max:·Self)·-&gt;·Self<div·class="where">where
28 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Restrict·a·value·to·a·certain·interval.·<a·href="https://doc.rust-lang.org/1.84.0/core/cmp/trait[·...·truncated·by·diffoscope;·len:·2145,·SHA:·4d9d0ee476d5b8a46eab12e02cbb523b1ae66f2d6cac7706c7d1d16f13f1cb23·...·]/core/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>!=</code>.·The·default·implementation·is·almost·always·sufficient,28 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Restrict·a·value·to·a·certain·interval.·<a·href="../../core/cmp/trait.Ord.html#method.clamp">Read·more</a></div></details><[·...·truncated·by·diffoscope;·len:·1848,·SHA:·64361c7d813fd7b575404f1d4f05b156df03b5a7fd6249b10013b2e54a216194·...·]/core/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>!=</code>.·The·default·implementation·is·almost·always·sufficient,
29 and·should·not·be·overridden·without·very·good·reason.</div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-PartialOrd-for-Error"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/fmt/mod.rs.html#102">Source</a></span><a·href="#impl-PartialOrd-for-Error"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.PartialOrd.html"·ti[·...·truncated·by·diffoscope;·len:·2876,·SHA:·928affb7ac4cdb1a75f2b2feeb17cfff629d8ecbc78a8bd73b30e4b2d36fee16·...·]/core/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·less·than·or·equal·to·(for·<code>self</code>·and·<code>other</code>)·and·is·used·by·the29 and·should·not·be·overridden·without·very·good·reason.</div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-PartialOrd-for-Error"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/fmt/mod.rs.html#102">Source</a></span><a·href="#impl-PartialOrd-for-Error"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/cmp/trait.PartialOrd.html"·title="trait·core::cmp::PartialOrd">PartialOrd</a>·for·<[·...·truncated·by·diffoscope;·len:·2444,·SHA:·ad68928352ae0da6517a4ea018eb81faffb1b5b7c005f1181fd19b48ddcb43e1·...·]/core/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·less·than·or·equal·to·(for·<code>self</code>·and·<code>other</code>)·and·is·used·by·the
30 <code>&lt;=</code>·operator.·<a·href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.PartialOrd.html#method.le">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.gt"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title=[·...·truncated·by·diffoscope;·len:·505,·SHA:·a3def20dd195db49b0c23cef54447d0d4952b60e0cadc7d9b1d8349a6a319c5d·...·]/core/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·greater·than·(for·<code>self</code>·and·<code>other</code>)·and·is·used·by·the·<code>&gt;</code>30 <code>&lt;=</code>·operator.·<a·href="../../core/cmp/trait.PartialOrd.html#method.le">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.gt"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·[·...·truncated·by·diffoscope;·len:·370,·SHA:·866054d8654a1fc366e4ce1dd11d0b940063d3d389df1b42d20da0ae9fdc0b6c·...·]/core/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·greater·than·(for·<code>self</code>·and·<code>other</code>)·and·is·used·by·the·<code>&gt;</code>
31 operator.·<a·href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.PartialOrd.html#method.gt">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.ge"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title=[·...·truncated·by·diffoscope;·len:·505,·SHA:·6ed944b356ae8e47addf686b72e68bb7fcc1bda052393bd05df6a82adcd708d7·...·]/core/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·greater·than·or·equal·to·(for·<code>self</code>·and·<code>other</code>)·and·is·used·by31 operator.·<a·href="../../core/cmp/trait.PartialOrd.html#method.gt">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.ge"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·[·...·truncated·by·diffoscope;·len:·370,·SHA:·f54b2d435efab9ddc8e093e9d3285f26f7e47f52e491f1cf829a8f00136030ed·...·]/core/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·greater·than·or·equal·to·(for·<code>self</code>·and·<code>other</code>)·and·is·used·by
32 the·<code>&gt;=</code>·operator.·<a·href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.PartialOrd.html#method.ge">Read·more</a></div></details></div></details><section·id="impl-Copy-for-Error"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0[·...·truncated·by·diffoscope;·len:·4592,·SHA:·c6123d36bb790c0cc81bdc4198a98616b8954aea4abae3a1422ee374002deb25·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where32 the·<code>&gt;=</code>·operator.·<a·href="../../core/cmp/trait.PartialOrd.html#method.ge">Read·more</a></div></details></div></details><section·id="impl-Copy-for-Error"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·hr[·...·truncated·by·diffoscope;·len:·4187,·SHA:·fa8c5aadb7f189c5bfe26ddb9dd891d072855b3d66387a865e86ec31bca283eb·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where
33 ····T:·'static·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method[·...·truncated·by·diffoscope;·len:·834,·SHA:·47dfc2aa0101a4103e2a94c1f971c559790d87a62d58631fd2bfed98e6616a34·...·]/src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where33 ····T:·'static·+·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·[·...·truncated·by·diffoscope;·len:·672,·SHA:·ace7a059971745d739c5abd9821e5d1d485cc233fd42150ceb251bdea1ce6bf7·...·]/src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where
34 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·[·...·truncated·by·diffoscope;·len:·737,·SHA:·9e65370662e77fc5c56c98c66a5dfda3c1d1244574dc8806ab91a8967514da78·...·]/src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.BorrowMut.html"·title="trait·alloc::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where34 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·r[·...·truncated·by·diffoscope;·len:·629,·SHA:·8e6f5d2e4a2830729c5d495459113ca6f54993696d7dc71c1f46e5691f5108ed·...·]/src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.BorrowMut.html"·title="trait·alloc::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where
35 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="met[·...·truncated·by·diffoscope;·len:·954,·SHA:·5ca69698d4bb8de1849b64ae87544dc0ec2bdd1a4d8dc75ba8d58b2c6c6a9ae6·...·]/core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where35 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="s[·...·truncated·by·diffoscope;·len:·819,·SHA:·3ca215d87d373be29774fff31d75c216034e4aa910e49de0e3fc5b88c46bc387·...·]/core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where
36 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="[·...·truncated·by·diffoscope;·len:·1883,·SHA:·e07301fb9e28f950d7450480a6b68014ffcdcc3be12b1adda27936cb1244377e·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>36 ····T:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·class[·...·truncated·by·diffoscope;·len:·1613,·SHA:·fde0dd5e9bb3fa078effcc98999e7fcc8b1aa390c8b7a3b6a3d8fd02f0c83e78·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>
37 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where37 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where
38 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="m[·...·truncated·by·diffoscope;·len:·237,·SHA:·98603c35860102b3af9b5cf27aeabf39e3c03236551986a6ec030817f108d919·...·]/core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>38 ····U:·<a·class="trait"·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class=[·...·truncated·by·diffoscope;·len:·156,·SHA:·79561c49c77b14346871935198fc061d00c9e84705db975b0451f5fb4f6af9a0·...·]/core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>
39 <p>That·is,·this·conversion·is·whatever·the·implementation·of39 <p>That·is,·this·conversion·is·whatever·the·implementation·of
40 <code><a·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>40 <code><a·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>
41 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#82-94">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where41 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#82-94">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where
42 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·t[·...·truncated·by·diffoscope;·len:·1350,·SHA:·06ff485c70db27d96df4529c9aabc3407488a0d8b3f238ea19fe87222f3c0e93·...·]/core/primitive.reference.html">&amp;mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToString-for-T"·class="impl"><a·class="src·rightside"·href="../../src/alloc/string.rs.html#2677-2691">Source</a><a·href="#impl-ToString-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../string/trait.ToString.html"·title="trait·alloc::string::ToString">ToString</a>·for·T<div·class="where">where42 ····T:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src·ri[·...·truncated·by·diffoscope;·len:·1296,·SHA:·88285bd52e5f5ad6b3e1b6d101339ab4047bdbd5b9d568c1e216b159cf17296e·...·]/core/primitive.reference.html">&amp;mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToString-for-T"·class="impl"><a·class="src·rightside"·href="../../src/alloc/string.rs.html#2677-2691">Source</a><a·href="#impl-ToString-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../string/trait.ToString.html"·title="trait·alloc::string::ToString">ToString</a>·for·T<div·class="where">where
43 ····T:·<a·class="trait"·href="trait.Display.html"·title="trait·alloc::fmt::Display">Display</a>·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.to_string"·class="meth[·...·truncated·by·diffoscope;·len:·956,·SHA:·5fb3fa997a6fe164f1c04c1d4cb696121571b376241266dc87e8079ebdfed810·...·]/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where43 ····T:·<a·class="trait"·href="trait.Display.html"·title="trait·alloc::fmt::Display">Display</a>·+·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.to_string"·class="method·trait-impl"><a·class="sr[·...·truncated·by·diffoscope;·len:·875,·SHA:·e58967f6ca4eee938a4135856f0af0adfcd5abe0b4e62c194e5c506c603bfcf1·...·]/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where
44 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="asso[·...·truncated·by·diffoscope;·len:·1973,·SHA:·db4b8407e8e20581ad139aef25a6221a11da0f5f18d6aa35aa33eb843f4e1b9f·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where44 ····U:·<a·class="trait"·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·c[·...·truncated·by·diffoscope;·len:·1676,·SHA:·4c73b68f4fb433b5f24fbcd660156381e5dd9f46425d075b558b9b6ca0705f88·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where
45 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·clas[·...·truncated·by·diffoscope;·len:·1578,·SHA:·998d5af10fd889567cd999d1306bfd16c91134d2238a3c172f1e7fa8ed138c18·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>45 ····U:·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-imp[·...·truncated·by·diffoscope;·len:·1308,·SHA:·6741e462a0e1b36010204263b7580305663bb27f362987d14303068592f9f358·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>
108 KB
./usr/share/doc/rust-doc/html/alloc/fmt/struct.Formatter.html
    
Offset 1, 20 lines modifiedOffset 1, 20 lines modified
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="Configuration·for·formatting."><title>Formatter·in·alloc::fmt·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»     2025-01-07)»  (built»    from»a»       source» tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Formatter</a></h2><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.align"·title="align">align</a></li><li><a·href="#method.alternate"·title="alternate">alternate</a></li><li><a·href="#method.debug_list"·title="debug_list">debug_list</a></li><li><a·href="#method.debug_map"·title="debug_map">debug_map</a></li><li><a·href="#method.debug_set"·title="debug_set">debug_set</a></li><li><a·href="#method.debug_struct"·title="debug_struct">debug_struct</a></li><li><a·href="#method.debug_tuple"·title="debug_tuple">debug_tuple</a></li><li><a·href="#method.fill"·title="fill">fill</a></li><li><a·href="#method.flags"·title="flags">flags</a></li><li><a·href="#method.pad"·title="pad">pad</a></li><li><a·href="#method.pad_integral"·title="pad_integral">pad_integral</a></li><li><a·href="#method.precision"·title="precision">precision</a></li><li><a·href="#method.sign_aware_zero_pad"·title="sign_aware_zero_pad">sign_aware_zero_pad</a></li><li><a·href="#method.sign_minus"·title="sign_minus">sign_minus</a></li><li><a·href="#method.sign_plus"·title="sign_plus">sign_plus</a></li><li><a·href="#method.width"·title="width">width</a></li><li><a·href="#method.write_fmt"·title="write_fmt">write_fmt</a></li><li><a·href="#method.write_str"·title="write_str">write_str</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Write-for-Formatter%3C'_%3E"·title="Write">Write</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-RefUnwindSafe-for-Formatter%3C'a%3E"·title="!RefUnwindSafe">!RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Formatter%3C'a%3E"·title="!Send">!Send</a></li><li><a·href="#impl-Sync-for-Formatter%3C'a%3E"·title="!Sync">!Sync</a></li><li><a·href="#impl-UnwindSafe-for-Formatter%3C'a%3E"·title="!UnwindSafe">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-Formatter%3C'a%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-Unpin-for-Formatter%3C'a%3E"·title="Unpin">Unpin</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>fmt</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">alloc</a>::<wbr><a·href="index.html">fmt</a></span><h1>Struct·<span·class="struct">Formatter</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/fmt/mod.rs.html#262">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·Formatter&lt;'a&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Configuration·for·formatting.</p>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="Configuration·for·formatting."><title>Formatter·in·alloc::fmt·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»     2025-01-07)»  (built»    from»a»       source» tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Formatter</a></h2><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.align"·title="align">align</a></li><li><a·href="#method.alternate"·title="alternate">alternate</a></li><li><a·href="#method.debug_list"·title="debug_list">debug_list</a></li><li><a·href="#method.debug_map"·title="debug_map">debug_map</a></li><li><a·href="#method.debug_set"·title="debug_set">debug_set</a></li><li><a·href="#method.debug_struct"·title="debug_struct">debug_struct</a></li><li><a·href="#method.debug_tuple"·title="debug_tuple">debug_tuple</a></li><li><a·href="#method.fill"·title="fill">fill</a></li><li><a·href="#method.flags"·title="flags">flags</a></li><li><a·href="#method.pad"·title="pad">pad</a></li><li><a·href="#method.pad_integral"·title="pad_integral">pad_integral</a></li><li><a·href="#method.precision"·title="precision">precision</a></li><li><a·href="#method.sign_aware_zero_pad"·title="sign_aware_zero_pad">sign_aware_zero_pad</a></li><li><a·href="#method.sign_minus"·title="sign_minus">sign_minus</a></li><li><a·href="#method.sign_plus"·title="sign_plus">sign_plus</a></li><li><a·href="#method.width"·title="width">width</a></li><li><a·href="#method.write_fmt"·title="write_fmt">write_fmt</a></li><li><a·href="#method.write_str"·title="write_str">write_str</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Write-for-Formatter%3C'_%3E"·title="Write">Write</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-RefUnwindSafe-for-Formatter%3C'a%3E"·title="!RefUnwindSafe">!RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Formatter%3C'a%3E"·title="!Send">!Send</a></li><li><a·href="#impl-Sync-for-Formatter%3C'a%3E"·title="!Sync">!Sync</a></li><li><a·href="#impl-UnwindSafe-for-Formatter%3C'a%3E"·title="!UnwindSafe">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-Formatter%3C'a%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-Unpin-for-Formatter%3C'a%3E"·title="Unpin">Unpin</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>fmt</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">alloc</a>::<wbr><a·href="index.html">fmt</a></span><h1>Struct·<span·class="struct">Formatter</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../src/core/fmt/mod.rs.html#262">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·Formatter&lt;'a&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Configuration·for·formatting.</p>
2 <p>A·<code>Formatter</code>·represents·various·options·related·to·formatting.·Users·do·not2 <p>A·<code>Formatter</code>·represents·various·options·related·to·formatting.·Users·do·not
3 construct·<code>Formatter</code>s·directly;·a·mutable·reference·to·one·is·passed·to3 construct·<code>Formatter</code>s·directly;·a·mutable·reference·to·one·is·passed·to
4 the·<code>fmt</code>·method·of·all·formatting·traits,·like·<a·href="trait.Debug.html"·title="trait·alloc::fmt::Debug"><code>Debug</code></a>·and·<a·href="trait.Display.html"·title="trait·alloc::fmt::Display"><code>Display</code></a>.</p>4 the·<code>fmt</code>·method·of·all·formatting·traits,·like·<a·href="trait.Debug.html"·title="trait·alloc::fmt::Debug"><code>Debug</code></a>·and·<a·href="trait.Display.html"·title="trait·alloc::fmt::Display"><code>Display</code></a>.</p>
5 <p>To·interact·with·a·<code>Formatter</code>,·you’ll·call·various·methods·to·change·the5 <p>To·interact·with·a·<code>Formatter</code>,·you’ll·call·various·methods·to·change·the
6 various·options·related·to·formatting.·For·examples,·please·see·the6 various·options·related·to·formatting.·For·examples,·please·see·the
7 documentation·of·the·methods·defined·on·<code>Formatter</code>·below.</p>7 documentation·of·the·methods·defined·on·<code>Formatter</code>·below.</p>
8 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Formatter%3C'a%3E"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/fmt/mod.rs.html#1276">Source</a><a·href="#impl-Formatter%3C'a%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a&gt;·<a·class="struct"·href="struct.Formatter.html"·title="struct·alloc::fmt::Formatter">Forma[·...·truncated·by·diffoscope;·len:·320,·SHA:·b8263d9244301838dd6cd5c8f16d068b3716478dc4639177febea67fa08bba5b·...·]/src/core/fmt/mod.rs.html#1343">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.pad_integral"·class="fn">pad_integral</a>(8 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Formatter%3C'a%3E"·class="impl"><a·class="src·rightside"·href="../../src/core/fmt/mod.rs.html#1276">Source</a><a·href="#impl-Formatter%3C'a%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a&gt;·<a·class="struct"·href="struct.Formatter.html"·title="struct·alloc::fmt::Formatter">Formatter</a>&lt;'a&gt;</h3></se[·...·truncated·by·diffoscope;·len:·266,·SHA:·c5eb9f032710b10fbed8a257c6cbac4fc4be63d5192263893647856cab7d32f8·...·]/src/core/fmt/mod.rs.html#1343">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.pad_integral"·class="fn">pad_integral</a>(
9 ····&amp;mut·self,9 ····&amp;mut·self,
10 ····is_nonnegative:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html">bool</a>,10 ····is_nonnegative:·<a·class="primitive"·href="../../core/primitive.bool.html">bool</a>,
11 ····prefix:·&amp;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.str.html">str</a>,11 ····prefix:·&amp;<a·class="primitive"·href="../../core/primitive.str.html">str</a>,
12 ····buf:·&amp;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.str.html">str</a>,12 ····buf:·&amp;<a·class="primitive"·href="../../core/primitive.str.html">str</a>,
13 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.Error.html"·title="struct·alloc::fmt::Error">Error</a>&gt;</h4></section></summary><div·class="docblock"><p>Performs·the·correct·padding·for·an·integer·which·has·already·been13 )·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="primitive"·href="../../core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.Error.html"·title="struct·alloc::fmt::Error">Error</a>&gt;</h4></section></summary><div·class="docblock"><p>Performs·the·correct·padding·for·an·integer·which·has·already·been
14 emitted·into·a·str.·The·str·should·<em>not</em>·contain·the·sign·for·the14 emitted·into·a·str.·The·str·should·<em>not</em>·contain·the·sign·for·the
15 integer,·that·will·be·added·by·this·method.</p>15 integer,·that·will·be·added·by·this·method.</p>
16 <h5·id="arguments"><a·class="doc-anchor"·href="#arguments">§</a>Arguments</h5>16 <h5·id="arguments"><a·class="doc-anchor"·href="#arguments">§</a>Arguments</h5>
17 <ul>17 <ul>
18 <li>is_nonnegative·-·whether·the·original·integer·was·either·positive·or·zero.</li>18 <li>is_nonnegative·-·whether·the·original·integer·was·either·positive·or·zero.</li>
19 <li>prefix·-·if·the·‘#’·character·(Alternate)·is·provided,·this19 <li>prefix·-·if·the·‘#’·character·(Alternate)·is·provided,·this
20 is·the·prefix·to·put·in·front·of·the·number.</li>20 is·the·prefix·to·put·in·front·of·the·number.</li>
Offset 45, 15 lines modifiedOffset 45, 15 lines modified
45 }45 }
  
46 <span·class="macro">assert_eq!</span>(<span·class="macro">format!</span>(<span·class="string">"{}"</span>,·Foo::new(<span·class="number">2</span>)),·<span·class="string">"2"</span>);46 <span·class="macro">assert_eq!</span>(<span·class="macro">format!</span>(<span·class="string">"{}"</span>,·Foo::new(<span·class="number">2</span>)),·<span·class="string">"2"</span>);
47 <span·class="macro">assert_eq!</span>(<span·class="macro">format!</span>(<span·class="string">"{}"</span>,·Foo::new(-<span·class="number">1</span>)),·<span·class="string">"-1"</span>);47 <span·class="macro">assert_eq!</span>(<span·class="macro">format!</span>(<span·class="string">"{}"</span>,·Foo::new(-<span·class="number">1</span>)),·<span·class="string">"-1"</span>);
48 <span·class="macro">assert_eq!</span>(<span·class="macro">format!</span>(<span·class="string">"{}"</span>,·Foo::new(<span·class="number">0</span>)),·<span·class="string">"0"</span>);48 <span·class="macro">assert_eq!</span>(<span·class="macro">format!</span>(<span·class="string">"{}"</span>,·Foo::new(<span·class="number">0</span>)),·<span·class="string">"0"</span>);
49 <span·class="macro">assert_eq!</span>(<span·class="macro">format!</span>(<span·class="string">"{:#}"</span>,·Foo::new(-<span·class="number">1</span>)),·<span·class="string">"-Foo·1"</span>);49 <span·class="macro">assert_eq!</span>(<span·class="macro">format!</span>(<span·class="string">"{:#}"</span>,·Foo::new(-<span·class="number">1</span>)),·<span·class="string">"-Foo·1"</span>);
50 <span·class="macro">assert_eq!</span>(<span·class="macro">format!</span>(<span·class="string">"{:0&gt;#8}"</span>,·Foo::new(-<span·class="number">1</span>)),·<span·class="string">"00-Foo·1"</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::fmt;%0A++++%0A++++struct+Foo+%7B+nb:+i32+%7D%0A++++%0A++++impl+Foo+%7B%0A++++++++fn+new(nb:+i32)+-%3E+Foo+%7B%0A++++++++++++Foo+%7B%0A++++++++++++++++nb,%0A++++++++++++%7D%0A++++++++%7D%0A++++%7D%0A++++%0A++++impl+fmt::Display+for+Foo+%7B%0A++++++++fn+fmt(%26self,+formatter:+%26mut+fmt::Formatter%3C'_%3E)+-%3E+fmt::Result+%7B%0A++++++++++++//+We+need+to+remove+%22-%22+from+the+number+output.%0A++++++++++++let+tmp+=+self.nb.abs().to_string();%0A++++%0A++++++++++++formatter.pad_integral(self.nb+%3E=+0,+%22Foo+%22,+%26tmp)%0A++++++++%7D%0A++++%7D%0A++++%0A++++assert_eq!(format!(%22%7B%7D%22,+Foo::new(2)),+%222%22);%0A++++assert_eq!(format!(%22%7B%7D%22,+Foo::new(-1)),+%22-1%22);%0A++++assert_eq!(format!(%22%7B%7D%22,+Foo::new(0)),+%220%22);%0A++++assert_eq!(format!(%22%7B:%23%7D%22,+Foo::new(-1)),+%22-Foo+1%22);%0A++++assert_eq!(format!(%22%7B:0%3E%238%7D%22,+Foo::new(-1)),+%2200-Foo+1%22);%0A%7D&amp;edition=2021"></a></div>50 <span·class="macro">assert_eq!</span>(<span·class="macro">format!</span>(<span·class="string">"{:0&gt;#8}"</span>,·Foo::new(-<span·class="number">1</span>)),·<span·class="string">"00-Foo·1"</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::fmt;%0A++++%0A++++struct+Foo+%7B+nb:+i32+%7D%0A++++%0A++++impl+Foo+%7B%0A++++++++fn+new(nb:+i32)+-%3E+Foo+%7B%0A++++++++++++Foo+%7B%0A++++++++++++++++nb,%0A++++++++++++%7D%0A++++++++%7D%0A++++%7D%0A++++%0A++++impl+fmt::Display+for+Foo+%7B%0A++++++++fn+fmt(%26self,+formatter:+%26mut+fmt::Formatter%3C'_%3E)+-%3E+fmt::Result+%7B%0A++++++++++++//+We+need+to+remove+%22-%22+from+the+number+output.%0A++++++++++++let+tmp+=+self.nb.abs().to_string();%0A++++%0A++++++++++++formatter.pad_integral(self.nb+%3E=+0,+%22Foo+%22,+%26tmp)%0A++++++++%7D%0A++++%7D%0A++++%0A++++assert_eq!(format!(%22%7B%7D%22,+Foo::new(2)),+%222%22);%0A++++assert_eq!(format!(%22%7B%7D%22,+Foo::new(-1)),+%22-1%22);%0A++++assert_eq!(format!(%22%7B%7D%22,+Foo::new(0)),+%220%22);%0A++++assert_eq!(format!(%22%7B:%23%7D%22,+Foo::new(-1)),+%22-Foo+1%22);%0A++++assert_eq!(format!(%22%7B:0%3E%238%7D%22,+Foo::new(-1)),+%2200-Foo+1%22);%0A%7D&amp;edition=2021"></a></div>
51 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.pad"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/fmt/mod.rs.html#1438">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.pad"·class="fn">pad</a>(&amp;mut·self,·s:·&amp;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.str.h[·...·truncated·by·diffoscope;·len:·212,·SHA:·82ee89136163f7530fc35ef1764c0e3c7ecd9c96ffcaaec96344966b7968554c·...·]/core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.Error.html"·title="struct·alloc::fmt::Error">Error</a>&gt;</h4></section></summary><div·class="docblock"><p>Takes·a·string·slice·and·emits·it·to·the·internal·buffer·after·applying51 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.pad"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/fmt/mod.rs.html#1438">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.pad"·class="fn">pad</a>(&amp;mut·self,·s:·&amp;<a·class="primitive"·href="../../core/primitive.str.html">str</a>)·-&gt;·<a·class="enum"·href="../../core/r[·...·truncated·by·diffoscope;·len:·104,·SHA:·3e59defb8e008da8091b25f253946214177d1d6ce40af6c924f2fab771326631·...·]/core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.Error.html"·title="struct·alloc::fmt::Error">Error</a>&gt;</h4></section></summary><div·class="docblock"><p>Takes·a·string·slice·and·emits·it·to·the·internal·buffer·after·applying
52 the·relevant·formatting·flags·specified.</p>52 the·relevant·formatting·flags·specified.</p>
53 <p>The·flags·recognized·for·generic·strings·are:</p>53 <p>The·flags·recognized·for·generic·strings·are:</p>
54 <ul>54 <ul>
55 <li>width·-·the·minimum·width·of·what·to·emit</li>55 <li>width·-·the·minimum·width·of·what·to·emit</li>
56 <li>fill/align·-·what·to·emit·and·where·to·emit·it·if·the·string56 <li>fill/align·-·what·to·emit·and·where·to·emit·it·if·the·string
57 provided·needs·to·be·padded</li>57 provided·needs·to·be·padded</li>
58 <li>precision·-·the·maximum·length·to·emit,·the·string·is·truncated·if·it58 <li>precision·-·the·maximum·length·to·emit,·the·string·is·truncated·if·it
Offset 69, 15 lines modifiedOffset 69, 15 lines modified
69 ····<span·class="kw">fn·</span>fmt(<span·class="kw-2">&amp;</span><span·class="self">self</span>,·formatter:·<span·class="kw-2">&amp;mut·</span>fmt::Formatter&lt;<span·class="lifetime">'_</span>&gt;)·-&gt;·fmt::Result·{69 ····<span·class="kw">fn·</span>fmt(<span·class="kw-2">&amp;</span><span·class="self">self</span>,·formatter:·<span·class="kw-2">&amp;mut·</span>fmt::Formatter&lt;<span·class="lifetime">'_</span>&gt;)·-&gt;·fmt::Result·{
70 ········formatter.pad(<span·class="string">"Foo"</span>)70 ········formatter.pad(<span·class="string">"Foo"</span>)
71 ····}71 ····}
72 }72 }
  
73 <span·class="macro">assert_eq!</span>(<span·class="macro">format!</span>(<span·class="string">"{Foo:&lt;4}"</span>),·<span·class="string">"Foo·"</span>);73 <span·class="macro">assert_eq!</span>(<span·class="macro">format!</span>(<span·class="string">"{Foo:&lt;4}"</span>),·<span·class="string">"Foo·"</span>);
74 <span·class="macro">assert_eq!</span>(<span·class="macro">format!</span>(<span·class="string">"{Foo:0&gt;4}"</span>),·<span·class="string">"0Foo"</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::fmt;%0A++++%0A++++struct+Foo;%0A++++%0A++++impl+fmt::Display+for+Foo+%7B%0A++++++++fn+fmt(%26self,+formatter:+%26mut+fmt::Formatter%3C'_%3E)+-%3E+fmt::Result+%7B%0A++++++++++++formatter.pad(%22Foo%22)%0A++++++++%7D%0A++++%7D%0A++++%0A++++assert_eq!(format!(%22%7BFoo:%3C4%7D%22),+%22Foo+%22);%0A++++assert_eq!(format!(%22%7BFoo:0%3E4%7D%22),+%220Foo%22);%0A%7D&amp;edition=2021"></a></div>74 <span·class="macro">assert_eq!</span>(<span·class="macro">format!</span>(<span·class="string">"{Foo:0&gt;4}"</span>),·<span·class="string">"0Foo"</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::fmt;%0A++++%0A++++struct+Foo;%0A++++%0A++++impl+fmt::Display+for+Foo+%7B%0A++++++++fn+fmt(%26self,+formatter:+%26mut+fmt::Formatter%3C'_%3E)+-%3E+fmt::Result+%7B%0A++++++++++++formatter.pad(%22Foo%22)%0A++++++++%7D%0A++++%7D%0A++++%0A++++assert_eq!(format!(%22%7BFoo:%3C4%7D%22),+%22Foo+%22);%0A++++assert_eq!(format!(%22%7BFoo:0%3E4%7D%22),+%220Foo%22);%0A%7D&amp;edition=2021"></a></div>
75 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.write_str"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/fmt/mod.rs.html#1636">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.write_str"·class="fn">write_str</a>(&amp;mut·self,·data:·&amp;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/[·...·truncated·by·diffoscope;·len:·227,·SHA:·85b9672262a64f2e3768cead037c56b83168291cb44f4793d3097958723f8be7·...·]/core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.Error.html"·title="struct·alloc::fmt::Error">Error</a>&gt;</h4></section></summary><div·class="docblock"><p>Writes·some·data·to·the·underlying·buffer·contained·within·this75 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.write_str"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/fmt/mod.rs.html#1636">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.write_str"·class="fn">write_str</a>(&amp;mut·self,·data:·&amp;<a·class="primitive"·href="../../core/primitive.str.html">str</a>)·-&gt;·<a·class="enum"·hre[·...·truncated·by·diffoscope;·len:·119,·SHA:·a08805b1283fe53c1fe92c5019d325f053e67393f33a03a54bb91f35c171a2fa·...·]/core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.Error.html"·title="struct·alloc::fmt::Error">Error</a>&gt;</h4></section></summary><div·class="docblock"><p>Writes·some·data·to·the·underlying·buffer·contained·within·this
76 formatter.</p>76 formatter.</p>
77 <h5·id="examples-2"><a·class="doc-anchor"·href="#examples-2">§</a>Examples</h5>77 <h5·id="examples-2"><a·class="doc-anchor"·href="#examples-2">§</a>Examples</h5>
78 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt;78 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt;
  
79 <span·class="kw">struct·</span>Foo;79 <span·class="kw">struct·</span>Foo;
  
80 <span·class="kw">impl·</span>fmt::Display·<span·class="kw">for·</span>Foo·{80 <span·class="kw">impl·</span>fmt::Display·<span·class="kw">for·</span>Foo·{
Offset 86, 33 lines modifiedOffset 86, 33 lines modified
86 ········<span·class="comment">//·This·is·equivalent·to:86 ········<span·class="comment">//·This·is·equivalent·to:
87 ········//·write!(formatter,·"Foo")87 ········//·write!(formatter,·"Foo")
88 ····</span>}88 ····</span>}
89 }89 }
  
90 <span·class="macro">assert_eq!</span>(<span·class="macro">format!</span>(<span·class="string">"{Foo}"</span>),·<span·class="string">"Foo"</span>);90 <span·class="macro">assert_eq!</span>(<span·class="macro">format!</span>(<span·class="string">"{Foo}"</span>),·<span·class="string">"Foo"</span>);
91 <span·class="macro">assert_eq!</span>(<span·class="macro">format!</span>(<span·class="string">"{Foo:0&gt;8}"</span>),·<span·class="string">"Foo"</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::fmt;%0A++++%0A++++struct+Foo;%0A++++%0A++++impl+fmt::Display+for+Foo+%7B%0A++++++++fn+fmt(%26self,+formatter:+%26mut+fmt::Formatter%3C'_%3E)+-%3E+fmt::Result+%7B%0A++++++++++++formatter.write_str(%22Foo%22)%0A++++++++++++//+This+is+equivalent+to:%0A++++++++++++//+write!(formatter,+%22Foo%22)%0A++++++++%7D%0A++++%7D%0A++++%0A++++assert_eq!(format!(%22%7BFoo%7D%22),+%22Foo%22);%0A++++assert_eq!(format!(%22%7BFoo:0%3E8%7D%22),+%22Foo%22);%0A%7D&amp;edition=2021"></a></div>91 <span·class="macro">assert_eq!</span>(<span·class="macro">format!</span>(<span·class="string">"{Foo:0&gt;8}"</span>),·<span·class="string">"Foo"</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::fmt;%0A++++%0A++++struct+Foo;%0A++++%0A++++impl+fmt::Display+for+Foo+%7B%0A++++++++fn+fmt(%26self,+formatter:+%26mut+fmt::Formatter%3C'_%3E)+-%3E+fmt::Result+%7B%0A++++++++++++formatter.write_str(%22Foo%22)%0A++++++++++++//+This+is+equivalent+to:%0A++++++++++++//+write!(formatter,+%22Foo%22)%0A++++++++%7D%0A++++%7D%0A++++%0A++++assert_eq!(format!(%22%7BFoo%7D%22),+%22Foo%22);%0A++++assert_eq!(format!(%22%7BFoo:0%3E8%7D%22),+%22Foo%22);%0A%7D&amp;edition=2021"></a></div>
92 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.write_fmt"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/fmt/mod.rs.html#1665">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.write_fmt"·class="fn">write_fmt</a>(&amp;mut·self,·fmt:·<a·class="struct"·href="struct.Arguments.html"·title="struct·alloc::fmt[·...·truncated·by·diffoscope;·len:·473,·SHA:·7f5c92a85378957f51c65b85686d6c11fcd4efb15b974ad6ceea7e3b30757867·...·]/core/macro.write.html"·title="macro·core::write"><code>write!</code></a>·macro·with·implementors·of·this·trait.</p>92 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.write_fmt"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/fmt/mod.rs.html#1665">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.write_fmt"·class="fn">write_fmt</a>(&amp;mut·self,·fmt:·<a·class="struct"·href="struct.Arguments.html"·title="struct·alloc::fmt::Arguments">Arguments</a>&[·...·truncated·by·diffoscope;·len:·365,·SHA:·faf084de56957b5d69016c1d94576e5bcaf48a9ef304111313485f06e6ad515f·...·]/core/macro.write.html"·title="macro·core::write"><code>write!</code></a>·macro·with·implementors·of·this·trait.</p>
93 <p>This·method·should·generally·not·be·invoked·manually,·but·rather·through93 <p>This·method·should·generally·not·be·invoked·manually,·but·rather·through
94 the·<a·href="https://doc.rust-lang.org/1.84.0/core/macro.write.html"·title="macro·core::write"><code>write!</code></a>·macro·itself.</p>94 the·<a·href="../../core/macro.write.html"·title="macro·core::write"><code>write!</code></a>·macro·itself.</p>
95 <p>Writes·some·formatted·information·into·this·instance.</p>95 <p>Writes·some·formatted·information·into·this·instance.</p>
96 <h5·id="examples-3"><a·class="doc-anchor"·href="#examples-3">§</a>Examples</h5>96 <h5·id="examples-3"><a·class="doc-anchor"·href="#examples-3">§</a>Examples</h5>
97 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt;97 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt;
  
98 <span·class="kw">struct·</span>Foo(i32);98 <span·class="kw">struct·</span>Foo(i32);
  
99 <span·class="kw">impl·</span>fmt::Display·<span·class="kw">for·</span>Foo·{99 <span·class="kw">impl·</span>fmt::Display·<span·class="kw">for·</span>Foo·{
100 ····<span·class="kw">fn·</span>fmt(<span·class="kw-2">&amp;</span><span·class="self">self</span>,·formatter:·<span·class="kw-2">&amp;mut·</span>fmt::Formatter&lt;<span·class="lifetime">'_</span>&gt;)·-&gt;·fmt::Result·{100 ····<span·class="kw">fn·</span>fmt(<span·class="kw-2">&amp;</span><span·class="self">self</span>,·formatter:·<span·class="kw-2">&amp;mut·</span>fmt::Formatter&lt;<span·class="lifetime">'_</span>&gt;)·-&gt;·fmt::Result·{
101 ········formatter.write_fmt(<span·class="macro">format_args!</span>(<span·class="string">"Foo·{}"</span>,·<span·class="self">self</span>.<span·class="number">0</span>))101 ········formatter.write_fmt(<span·class="macro">format_args!</span>(<span·class="string">"Foo·{}"</span>,·<span·class="self">self</span>.<span·class="number">0</span>))
102 ····}102 ····}
103 }103 }
  
104 <span·class="macro">assert_eq!</span>(<span·class="macro">format!</span>(<span·class="string">"{}"</span>,·Foo(-<span·class="number">1</span>)),·<span·class="string">"Foo·-1"</span>);104 <span·class="macro">assert_eq!</span>(<span·class="macro">format!</span>(<span·class="string">"{}"</span>,·Foo(-<span·class="number">1</span>)),·<span·class="string">"Foo·-1"</span>);
105 <span·class="macro">assert_eq!</span>(<span·class="macro">format!</span>(<span·class="string">"{:0&gt;8}"</span>,·Foo(<span·class="number">2</span>)),·<span·class="string">"Foo·2"</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::fmt;%0A++++%0A++++struct+Foo(i32);%0A++++%0A++++impl+fmt::Display+for+Foo+%7B%0A++++++++fn+fmt(%26self,+formatter:+%26mut+fmt::Formatter%3C'_%3E)+-%3E+fmt::Result+%7B%0A++++++++++++formatter.write_fmt(format_args!(%22Foo+%7B%7D%22,+self.0))%0A++++++++%7D%0A++++%7D%0A++++%0A++++assert_eq!(format!(%22%7B%7D%22,+Foo(-1)),+%22Foo+-1%22);%0A++++assert_eq!(format!(%22%7B:0%3E8%7D%22,+Foo(2)),+%22Foo+2%22);%0A%7D&amp;edition=2021"></a></div>105 <span·class="macro">assert_eq!</span>(<span·class="macro">format!</span>(<span·class="string">"{:0&gt;8}"</span>,·Foo(<span·class="number">2</span>)),·<span·class="string">"Foo·2"</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::fmt;%0A++++%0A++++struct+Foo(i32);%0A++++%0A++++impl+fmt::Display+for+Foo+%7B%0A++++++++fn+fmt(%26self,+formatter:+%26mut+fmt::Formatter%3C'_%3E)+-%3E+fmt::Result+%7B%0A++++++++++++formatter.write_fmt(format_args!(%22Foo+%7B%7D%22,+self.0))%0A++++++++%7D%0A++++%7D%0A++++%0A++++assert_eq!(format!(%22%7B%7D%22,+Foo(-1)),+%22Foo+-1%22);%0A++++assert_eq!(format!(%22%7B:0%3E8%7D%22,+Foo(2)),+%22Foo+2%22);%0A%7D&amp;edition=2021"></a></div>
106 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.flags"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/fmt/mod.rs.html#1681">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.flags"·class="fn">flags</a>(&amp;self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.u32.html">u32</a></h4></section><span·class="item-info"><div·class="stab·deprecated"><span·class="emoji">👎</span><span>Deprecated·since·1.24.0:·use·the·<code>sign_plus</code>,·<code>sign_minus</code>,·<code>alternate</code>,·or·<code>sign_aware_zero_pad</code>·methods·instead</span></div></span></summary><div·class="docblock"><p>Returns·flags·for·formatting.</p>106 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.flags"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/fmt/mod.rs.html#1681">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.flags"·class="fn">flags</a>(&amp;self)·-&gt;·<a·class="primitive"·href="../../core/primitive.u32.html">u32</a></h4></section><span·class="item-info"><div·class="stab·deprecated"><span·class="emoji">👎</span><span>Deprecated·since·1.24.0:·use·the·<code>sign_plus</code>,·<code>sign_minus</code>,·<code>alternate</code>,·or·<code>sign_aware_zero_pad</code>·methods·instead</span></div></span></summary><div·class="docblock"><p>Returns·flags·for·formatting.</p>
107 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fill"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.5.0">1.5.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/fmt/mod.rs.html#1714">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.fill"·class="fn">fill</a>(&amp;self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.char.html">char</a></h4></section></summary><div·class="docblock"><p>Returns·the·character·used·as·‘fill’·whenever·there·is·alignment.</p>107 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fill"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.5.0">1.5.0</span>···<a·class="src"·href="../../src/core/fmt/mod.rs.html#1714">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.fill"·class="fn">fill</a>(&amp;self)·-&gt;·<a·class="primitive"·href="../../core/primitive.char.html">char</a></h4></section></summary><div·class="docblock"><p>Returns·the·character·used·as·‘fill’·whenever·there·is·alignment.</p>
108 <h5·id="examples-4"><a·class="doc-anchor"·href="#examples-4">§</a>Examples</h5>108 <h5·id="examples-4"><a·class="doc-anchor"·href="#examples-4">§</a>Examples</h5>
109 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt;109 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt;
  
110 <span·class="kw">struct·</span>Foo;110 <span·class="kw">struct·</span>Foo;
  
111 <span·class="kw">impl·</span>fmt::Display·<span·class="kw">for·</span>Foo·{111 <span·class="kw">impl·</span>fmt::Display·<span·class="kw">for·</span>Foo·{
112 ····<span·class="kw">fn·</span>fmt(<span·class="kw-2">&amp;</span><span·class="self">self</span>,·formatter:·<span·class="kw-2">&amp;mut·</span>fmt::Formatter&lt;<span·class="lifetime">'_</span>&gt;)·-&gt;·fmt::Result·{112 ····<span·class="kw">fn·</span>fmt(<span·class="kw-2">&amp;</span><span·class="self">self</span>,·formatter:·<span·class="kw-2">&amp;mut·</span>fmt::Formatter&lt;<span·class="lifetime">'_</span>&gt;)·-&gt;·fmt::Result·{
Offset 127, 15 lines modifiedOffset 127, 15 lines modified
127 ········}127 ········}
128 ····}128 ····}
129 }129 }
  
130 <span·class="comment">//·We·set·alignment·to·the·right·with·"&gt;".130 <span·class="comment">//·We·set·alignment·to·the·right·with·"&gt;".
131 </span><span·class="macro">assert_eq!</span>(<span·class="macro">format!</span>(<span·class="string">"{Foo:G&gt;3}"</span>),·<span·class="string">"GGG"</span>);131 </span><span·class="macro">assert_eq!</span>(<span·class="macro">format!</span>(<span·class="string">"{Foo:G&gt;3}"</span>),·<span·class="string">"GGG"</span>);
132 <span·class="macro">assert_eq!</span>(<span·class="macro">format!</span>(<span·class="string">"{Foo:t&gt;6}"</span>),·<span·class="string">"tttttt"</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::fmt;%0A++++%0A++++struct+Foo;%0A++++%0A++++impl+fmt::Display+for+Foo+%7B%0A++++++++fn+fmt(%26self,+formatter:+%26mut+fmt::Formatter%3C'_%3E)+-%3E+fmt::Result+%7B%0A++++++++++++let+c+=+formatter.fill();%0A++++++++++++if+let+Some(width)+=+formatter.width()+%7B%0A++++++++++++++++for+_+in+0..width+%7B%0A++++++++++++++++++++write!(formatter,+%22%7Bc%7D%22)?;%0A++++++++++++++++%7D%0A++++++++++++++++Ok(())%0A++++++++++++%7D+else+%7B%0A++++++++++++++++write!(formatter,+%22%7Bc%7D%22)%0A++++++++++++%7D%0A++++++++%7D%0A++++%7D%0A++++%0A++++//+We+set+alignment+to+the+right+with+%22%3E%22.%0A++++assert_eq!(format!(%22%7BFoo:G%3E3%7D%22),+%22GGG%22);%0A++++assert_eq!(format!(%22%7BFoo:t%3E6%7D%22),+%22tttttt%22);%0A%7D&amp;edition=2021"></a></div>132 <span·class="macro">assert_eq!</span>(<span·class="macro">format!</span>(<span·class="string">"{Foo:t&gt;6}"</span>),·<span·class="string">"tttttt"</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::fmt;%0A++++%0A++++struct+Foo;%0A++++%0A++++impl+fmt::Display+for+Foo+%7B%0A++++++++fn+fmt(%26self,+formatter:+%26mut+fmt::Formatter%3C'_%3E)+-%3E+fmt::Result+%7B%0A++++++++++++let+c+=+formatter.fill();%0A++++++++++++if+let+Some(width)+=+formatter.width()+%7B%0A++++++++++++++++for+_+in+0..width+%7B%0A++++++++++++++++++++write!(formatter,+%22%7Bc%7D%22)?;%0A++++++++++++++++%7D%0A++++++++++++++++Ok(())%0A++++++++++++%7D+else+%7B%0A++++++++++++++++write!(formatter,+%22%7Bc%7D%22)%0A++++++++++++%7D%0A++++++++%7D%0A++++%7D%0A++++%0A++++//+We+set+alignment+to+the+right+with+%22%3E%22.%0A++++assert_eq!(format!(%22%7BFoo:G%3E3%7D%22),+%22GGG%22);%0A++++assert_eq!(format!(%22%7BFoo:t%3E6%7D%22),+%22tttttt%22);%0A%7D&amp;edition=2021"></a></div>
133 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.align"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.28.0">1.28.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/fmt/mod.rs.html#1749">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.align"·class="fn">align</a>(&amp;self)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="enum"·href="enum.Alignment.html"·title="enum·alloc::fmt::Alignment">Alignment</a>&gt;</h4></section></summary><div·class="docblock"><p>Returns·a·flag·indicating·what·form·of·alignment·was·requested.</p>133 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.align"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.28.0">1.28.0</span>···<a·class="src"·href="../../src/core/fmt/mod.rs.html#1749">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.align"·class="fn">align</a>(&amp;self)·-&gt;·<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="enum"·href="enum.Alignment.html"·title="enum·alloc::fmt::Alignment">Alignment</a>&gt;</h4></section></summary><div·class="docblock"><p>Returns·a·flag·indicating·what·form·of·alignment·was·requested.</p>
134 <h5·id="examples-5"><a·class="doc-anchor"·href="#examples-5">§</a>Examples</h5>134 <h5·id="examples-5"><a·class="doc-anchor"·href="#examples-5">§</a>Examples</h5>
135 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt::{<span·class="self">self</span>,·Alignment};135 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt::{<span·class="self">self</span>,·Alignment};
  
136 <span·class="kw">struct·</span>Foo;136 <span·class="kw">struct·</span>Foo;
  
137 <span·class="kw">impl·</span>fmt::Display·<span·class="kw">for·</span>Foo·{137 <span·class="kw">impl·</span>fmt::Display·<span·class="kw">for·</span>Foo·{
138 ····<span·class="kw">fn·</span>fmt(<span·class="kw-2">&amp;</span><span·class="self">self</span>,·formatter:·<span·class="kw-2">&amp;mut·</span>fmt::Formatter&lt;<span·class="lifetime">'_</span>&gt;)·-&gt;·fmt::Result·{138 ····<span·class="kw">fn·</span>fmt(<span·class="kw-2">&amp;</span><span·class="self">self</span>,·formatter:·<span·class="kw-2">&amp;mut·</span>fmt::Formatter&lt;<span·class="lifetime">'_</span>&gt;)·-&gt;·fmt::Result·{
Offset 152, 15 lines modifiedOffset 152, 15 lines modified
152 ····}152 ····}
153 }153 }
  
154 <span·class="macro">assert_eq!</span>(<span·class="macro">format!</span>(<span·class="string">"{Foo:&lt;}"</span>),·<span·class="string">"left"</span>);154 <span·class="macro">assert_eq!</span>(<span·class="macro">format!</span>(<span·class="string">"{Foo:&lt;}"</span>),·<span·class="string">"left"</span>);
155 <span·class="macro">assert_eq!</span>(<span·class="macro">format!</span>(<span·class="string">"{Foo:&gt;}"</span>),·<span·class="string">"right"</span>);155 <span·class="macro">assert_eq!</span>(<span·class="macro">format!</span>(<span·class="string">"{Foo:&gt;}"</span>),·<span·class="string">"right"</span>);
156 <span·class="macro">assert_eq!</span>(<span·class="macro">format!</span>(<span·class="string">"{Foo:^}"</span>),·<span·class="string">"center"</span>);156 <span·class="macro">assert_eq!</span>(<span·class="macro">format!</span>(<span·class="string">"{Foo:^}"</span>),·<span·class="string">"center"</span>);
157 <span·class="macro">assert_eq!</span>(<span·class="macro">format!</span>(<span·class="string">"{Foo}"</span>),·<span·class="string">"into·the·void"</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::fmt::%7Bself,+Alignment%7D;%0A++++%0A++++struct+Foo;%0A++++%0A++++impl+fmt::Display+for+Foo+%7B%0A++++++++fn+fmt(%26self,+formatter:+%26mut+fmt::Formatter%3C'_%3E)+-%3E+fmt::Result+%7B%0A++++++++++++let+s+=+if+let+Some(s)+=+formatter.align()+%7B%0A++++++++++++++++match+s+%7B%0A++++++++++++++++++++Alignment::Left++++=%3E+%22left%22,%0A++++++++++++++++++++Alignment::Right+++=%3E+%22right%22,%0A++++++++++++++++++++Alignment::Center++=%3E+%22center%22,%0A++++++++++++++++%7D%0A++++++++++++%7D+else+%7B%0A++++++++++++++++%22into+the+void%22%0A++++++++++++%7D;%0A++++++++++++write!(formatter,+%22%7Bs%7D%22)%0A++++++++%7D%0A++++%7D%0A++++%0A++++assert_eq!(format!(%22%7BFoo:%3C%7D%22),+%22left%22);%0A++++assert_eq!(format!(%22%7BFoo:%3E%7D%22),+%22right%22);%0A++++assert_eq!(format!(%22%7BFoo:%5E%7D%22),+%22center%22);%0A++++assert_eq!(format!(%22%7BFoo%7D%22),+%22into+the+void%22);%0A%7D&amp;edition=2021"></a></div>157 <span·class="macro">assert_eq!</span>(<span·class="macro">format!</span>(<span·class="string">"{Foo}"</span>),·<span·class="string">"into·the·void"</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::fmt::%7Bself,+Alignment%7D;%0A++++%0A++++struct+Foo;%0A++++%0A++++impl+fmt::Display+for+Foo+%7B%0A++++++++fn+fmt(%26self,+formatter:+%26mut+fmt::Formatter%3C'_%3E)+-%3E+fmt::Result+%7B%0A++++++++++++let+s+=+if+let+Some(s)+=+formatter.align()+%7B%0A++++++++++++++++match+s+%7B%0A++++++++++++++++++++Alignment::Left++++=%3E+%22left%22,%0A++++++++++++++++++++Alignment::Right+++=%3E+%22right%22,%0A++++++++++++++++++++Alignment::Center++=%3E+%22center%22,%0A++++++++++++++++%7D%0A++++++++++++%7D+else+%7B%0A++++++++++++++++%22into+the+void%22%0A++++++++++++%7D;%0A++++++++++++write!(formatter,+%22%7Bs%7D%22)%0A++++++++%7D%0A++++%7D%0A++++%0A++++assert_eq!(format!(%22%7BFoo:%3C%7D%22),+%22left%22);%0A++++assert_eq!(format!(%22%7BFoo:%3E%7D%22),+%22right%22);%0A++++assert_eq!(format!(%22%7BFoo:%5E%7D%22),+%22center%22);%0A++++assert_eq!(format!(%22%7BFoo%7D%22),+%22into+the+void%22);%0A%7D&amp;edition=2021"></a></div>
158 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.width"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.5.0">1.5.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/fmt/mod.rs.html#1784">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.width"·class="fn">width</a>(&amp;self)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.htm[·...·truncated·by·diffoscope;·len:·110,·SHA:·1bd19253912000dcfdf3b59035acd579e35f38978d9c6809ffd00cad2fc99571·...·]/core/primitive.usize.html">usize</a>&gt;</h4></section></summary><div·class="docblock"><p>Returns·the·optionally·specified·integer·width·that·the·output·should·be.</p>158 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.width"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.5.0">1.5.0</span>···<a·class="src"·href="../../src/core/fmt/mod.rs.html#1784">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.width"·class="fn">width</a>(&amp;self)·-&gt;·<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·[·...·truncated·by·diffoscope;·len:·29,·SHA:·8849d22176d3e491f87c522202c8bba1ac3ce522a0e3ccaab3332185f3cda5af·...·]/core/primitive.usize.html">usize</a>&gt;</h4></section></summary><div·class="docblock"><p>Returns·the·optionally·specified·integer·width·that·the·output·should·be.</p>
159 <h5·id="examples-6"><a·class="doc-anchor"·href="#examples-6">§</a>Examples</h5>159 <h5·id="examples-6"><a·class="doc-anchor"·href="#examples-6">§</a>Examples</h5>
160 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt;160 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt;
  
161 <span·class="kw">struct·</span>Foo(i32);161 <span·class="kw">struct·</span>Foo(i32);
  
162 <span·class="kw">impl·</span>fmt::Display·<span·class="kw">for·</span>Foo·{162 <span·class="kw">impl·</span>fmt::Display·<span·class="kw">for·</span>Foo·{
163 ····<span·class="kw">fn·</span>fmt(<span·class="kw-2">&amp;</span><span·class="self">self</span>,·formatter:·<span·class="kw-2">&amp;mut·</span>fmt::Formatter&lt;<span·class="lifetime">'_</span>&gt;)·-&gt;·fmt::Result·{163 ····<span·class="kw">fn·</span>fmt(<span·class="kw-2">&amp;</span><span·class="self">self</span>,·formatter:·<span·class="kw-2">&amp;mut·</span>fmt::Formatter&lt;<span·class="lifetime">'_</span>&gt;)·-&gt;·fmt::Result·{
Offset 172, 15 lines modifiedOffset 172, 15 lines modified
172 ············</span><span·class="macro">write!</span>(formatter,·<span·class="string">"Foo({})"</span>,·<span·class="self">self</span>.<span·class="number">0</span>)172 ············</span><span·class="macro">write!</span>(formatter,·<span·class="string">"Foo({})"</span>,·<span·class="self">self</span>.<span·class="number">0</span>)
173 ········}173 ········}
174 ····}174 ····}
175 }175 }
  
176 <span·class="macro">assert_eq!</span>(<span·class="macro">format!</span>(<span·class="string">"{:10}"</span>,·Foo(<span·class="number">23</span>)),·<span·class="string">"Foo(23)···"</span>);176 <span·class="macro">assert_eq!</span>(<span·class="macro">format!</span>(<span·class="string">"{:10}"</span>,·Foo(<span·class="number">23</span>)),·<span·class="string">"Foo(23)···"</span>);
177 <span·class="macro">assert_eq!</span>(<span·class="macro">format!</span>(<span·class="string">"{}"</span>,·Foo(<span·class="number">23</span>)),·<span·class="string">"Foo(23)"</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::fmt;%0A++++%0A++++struct+Foo(i32);%0A++++%0A++++impl+fmt::Display+for+Foo+%7B%0A++++++++fn+fmt(%26self,+formatter:+%26mut+fmt::Formatter%3C'_%3E)+-%3E+fmt::Result+%7B%0A++++++++++++if+let+Some(width)+=+formatter.width()+%7B%0A++++++++++++++++//+If+we+received+a+width,+we+use+it%0A++++++++++++++++write!(formatter,+%22%7B:width%24%7D%22,+format!(%22Foo(%7B%7D)%22,+self.0),+width+=+width)%0A++++++++++++%7D+else+%7B%0A++++++++++++++++//+Otherwise+we+do+nothing+special%0A++++++++++++++++write!(formatter,+%22Foo(%7B%7D)%22,+self.0)%0A++++++++++++%7D%0A++++++++%7D%0A++++%7D%0A++++%0A++++assert_eq!(format!(%22%7B:10%7D%22,+Foo(23)),+%22Foo(23)+++%22);%0A++++assert_eq!(format!(%22%7B%7D%22,+Foo(23)),+%22Foo(23)%22);%0A%7D&amp;edition=2021"></a></div>177 <span·class="macro">assert_eq!</span>(<span·class="macro">format!</span>(<span·class="string">"{}"</span>,·Foo(<span·class="number">23</span>)),·<span·class="string">"Foo(23)"</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::fmt;%0A++++%0A++++struct+Foo(i32);%0A++++%0A++++impl+fmt::Display+for+Foo+%7B%0A++++++++fn+fmt(%26self,+formatter:+%26mut+fmt::Formatter%3C'_%3E)+-%3E+fmt::Result+%7B%0A++++++++++++if+let+Some(width)+=+formatter.width()+%7B%0A++++++++++++++++//+If+we+received+a+width,+we+use+it%0A++++++++++++++++write!(formatter,+%22%7B:width%24%7D%22,+format!(%22Foo(%7B%7D)%22,+self.0),+width+=+width)%0A++++++++++++%7D+else+%7B%0A++++++++++++++++//+Otherwise+we+do+nothing+special%0A++++++++++++++++write!(formatter,+%22Foo(%7B%7D)%22,+self.0)%0A++++++++++++%7D%0A++++++++%7D%0A++++%7D%0A++++%0A++++assert_eq!(format!(%22%7B:10%7D%22,+Foo(23)),+%22Foo(23)+++%22);%0A++++assert_eq!(format!(%22%7B%7D%22,+Foo(23)),+%22Foo(23)%22);%0A%7D&amp;edition=2021"></a></div>
178 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.precision"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.5.0">1.5.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/fmt/mod.rs.html#1815">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.precision"·class="fn">precision</a>(&amp;self)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/option/enum.Op[·...·truncated·by·diffoscope;·len:·118,·SHA:·843a5cdc17bd12bfc964bd7ad7d87676c37cc91c8f6ba916de5d2b24d2d2caeb·...·]/core/primitive.usize.html">usize</a>&gt;</h4></section></summary><div·class="docblock"><p>Returns·the·optionally·specified·precision·for·numeric·types.178 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.precision"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.5.0">1.5.0</span>···<a·class="src"·href="../../src/core/fmt/mod.rs.html#1815">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.precision"·class="fn">precision</a>(&amp;self)·-&gt;·<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a[·...·truncated·by·diffoscope;·len:·37,·SHA:·8ef9a7bc0f3d827417cb048464ef983c2fd584c9157a4b35743021b314b672cd·...·]/core/primitive.usize.html">usize</a>&gt;</h4></section></summary><div·class="docblock"><p>Returns·the·optionally·specified·precision·for·numeric·types.
Max diff block lines reached; 67261/110643 bytes (60.79%) of diff not shown.
51.4 KB
./usr/share/doc/rust-doc/html/alloc/fmt/struct.FromFn.html
    
Offset 1, 24 lines modifiedOffset 1, 24 lines modified
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="Implements·`fmt::Debug`·and·`fmt::Display`·using·a·function."><title>FromFn·in·alloc::fmt·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»     2025-01-07)»  (built»    from»a»       source» tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">FromFn</a></h2><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Debug-for-FromFn%3CF%3E"·title="Debug">Debug</a></li><li><a·href="#impl-Display-for-FromFn%3CF%3E"·title="Display">Display</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-FromFn%3CF%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-FromFn%3CF%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-FromFn%3CF%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-FromFn%3CF%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-FromFn%3CF%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-FromFn%3CF%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-ToString-for-T"·title="ToString">ToString</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>fmt</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">alloc</a>::<wbr><a·href="index.html">fmt</a></span><h1>Struct·<span·class="struct">FromFn</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="https://doc.rust-lang.org/1.84.0/src/core/fmt/builders.rs.html#1239">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·FromFn&lt;F&gt;(<span·class="comment">/*·private·fields·*/</span>)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="Implements·`fmt::Debug`·and·`fmt::Display`·using·a·function."><title>FromFn·in·alloc::fmt·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»     2025-01-07)»  (built»    from»a»       source» tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">FromFn</a></h2><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Debug-for-FromFn%3CF%3E"·title="Debug">Debug</a></li><li><a·href="#impl-Display-for-FromFn%3CF%3E"·title="Display">Display</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-FromFn%3CF%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-FromFn%3CF%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-FromFn%3CF%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-FromFn%3CF%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-FromFn%3CF%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-FromFn%3CF%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-ToString-for-T"·title="ToString">ToString</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>fmt</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">alloc</a>::<wbr><a·href="index.html">fmt</a></span><h1>Struct·<span·class="struct">FromFn</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/core/fmt/builders.rs.html#1239">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·FromFn&lt;F&gt;(<span·class="comment">/*·private·fields·*/</span>)
2 <span·class="where">where2 <span·class="where">where
3 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.Fn.html"·title="trait·core::ops::function::Fn">Fn</a>(&amp;mut·<a·class="struct"·href="struct.Formatter.html"·title="struct·alloc::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="enum"·href=[·...·truncated·by·diffoscope;·len:·171,·SHA:·833e48c378ecc92fda93d25243119523deb2b3200f2df4247c09204868da48db·...·]/core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.Error.html"·title="struct·alloc::fmt::Error">Error</a>&gt;</span>;</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>debug_closure_helpers</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/117729">#117729</a>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Implements·<a·href="trait.Debug.html"·title="trait·alloc::fmt::Debug"><code>fmt::Debug</code></a>·and·<a·href="trait.Display.html"·title="trait·alloc::fmt::Display"><code>fmt::Display</code></a>·using·a·function.</p>3 ····F:·<a·class="trait"·href="../../core/ops/function/trait.Fn.html"·title="trait·core::ops::function::Fn">Fn</a>(&amp;mut·<a·class="struct"·href="struct.Formatter.html"·title="struct·alloc::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="enum"·href="../../core/result/enum.Res[·...·truncated·by·diffoscope;·len:·90,·SHA:·78f88c720475d1511ab514ed1cff517e404fd9af31cdb30de61c427009d644a3·...·]/core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.Error.html"·title="struct·alloc::fmt::Error">Error</a>&gt;</span>;</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>debug_closure_helpers</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/117729">#117729</a>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Implements·<a·href="trait.Debug.html"·title="trait·alloc::fmt::Debug"><code>fmt::Debug</code></a>·and·<a·href="trait.Display.html"·title="trait·alloc::fmt::Display"><code>fmt::Display</code></a>·using·a·function.</p>
4 <p>Created·with·<a·href="fn.from_fn.html"·title="fn·alloc::fmt::from_fn"><code>from_fn</code></a>.</p>4 <p>Created·with·<a·href="fn.from_fn.html"·title="fn·alloc::fmt::from_fn"><code>from_fn</code></a>.</p>
5 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-FromFn%3CF%3E"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/fmt/builders.rs.html#1244-1246">Source</a><a·href="#impl-Debug-for-FromFn%3CF%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;F&gt;·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.FromFn.html"·title="struct·alloc::fmt::FromFn">FromFn</a>&lt;F&gt;<div·class="where">where5 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-FromFn%3CF%3E"·class="impl"><a·class="src·rightside"·href="../../src/core/fmt/builders.rs.html#1244-1246">Source</a><a·href="#impl-Debug-for-FromFn%3CF%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;F&gt;·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.FromFn.html"·title="struct·alloc::fmt::FromFn">FromFn</a>&lt;F&gt;<div·class="where">where
6 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.Fn.html"·title="trait·core::ops::function::Fn">Fn</a>(&amp;mut·<a·class="struct"·href="struct.Formatter.html"·title="struct·alloc::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="enum"·href=[·...·truncated·by·diffoscope;·len:·1502,·SHA:·e3054a9ed0411fed8c0199e596d5e1578e2bd59263c5404d6c554c6944bc6686·...·]/src/core/fmt/builders.rs.html#1254-1256">Source</a><a·href="#impl-Display-for-FromFn%3CF%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;F&gt;·<a·class="trait"·href="trait.Display.html"·title="trait·alloc::fmt::Display">Display</a>·for·<a·class="struct"·href="struct.FromFn.html"·title="struct·alloc::fmt::FromFn">FromFn</a>&lt;F&gt;<div·class="where">where6 ····F:·<a·class="trait"·href="../../core/ops/function/trait.Fn.html"·title="trait·core::ops::function::Fn">Fn</a>(&amp;mut·<a·class="struct"·href="struct.Formatter.html"·title="struct·alloc::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="enum"·href="../../core/result/enum.Res[·...·truncated·by·diffoscope;·len:·1313,·SHA:·1ffbc0edf7b84788b8a0f11bdc243721413418ff522657fc529a14a876a0abd6·...·]/src/core/fmt/builders.rs.html#1254-1256">Source</a><a·href="#impl-Display-for-FromFn%3CF%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;F&gt;·<a·class="trait"·href="trait.Display.html"·title="trait·alloc::fmt::Display">Display</a>·for·<a·class="struct"·href="struct.FromFn.html"·title="struct·alloc::fmt::FromFn">FromFn</a>&lt;F&gt;<div·class="where">where
7 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.Fn.html"·title="trait·core::ops::function::Fn">Fn</a>(&amp;mut·<a·class="struct"·href="struct.Formatter.html"·title="struct·alloc::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="enum"·href=[·...·truncated·by·diffoscope;·len:·1735,·SHA:·91e8237f58f122cba7f9bacfd6b9360e444c7bb10c258385ba6b362711154a55·...·]/core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="struct"·href="struct.FromFn.html"·title="struct·alloc::fmt::FromFn">FromFn</a>&lt;F&gt;<div·class="where">where7 ····F:·<a·class="trait"·href="../../core/ops/function/trait.Fn.html"·title="trait·core::ops::function::Fn">Fn</a>(&amp;mut·<a·class="struct"·href="struct.Formatter.html"·title="struct·alloc::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="enum"·href="../../core/result/enum.Res[·...·truncated·by·diffoscope;·len:·1546,·SHA:·ac6d665acf8b0cb0b5c52f804baee5a38928b92e111baba1453494b3fb7ea119·...·]/core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="struct"·href="struct.FromFn.html"·title="struct·alloc::fmt::FromFn">FromFn</a>&lt;F&gt;<div·class="where">where
8 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>,</div></h3></section><section·id="impl-RefUnwindSafe-for-FromFn%3CF%3E"·class="impl"><a·href="#impl-RefUnwindSafe-for-FromFn%3CF%3E"·class="anchor[·...·truncated·by·diffoscope;·len:·100,·SHA:·3cdcd49900be5fe20aa994fb5fe80d9233963d6ace4fb88dacb41c5e2938e147·...·]/core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="struct"·href="struct.FromFn.html"·title="struct·alloc::fmt::FromFn">FromFn</a>&lt;F&gt;<div·class="where">where8 ····F:·<a·class="trait"·href="../../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>,</div></h3></section><section·id="impl-RefUnwindSafe-for-FromFn%3CF%3E"·class="impl"><a·href="#impl-RefUnwindSafe-for-FromFn%3CF%3E"·class="anchor">§</a><h3·class="code-head[·...·truncated·by·diffoscope;·len:·46,·SHA:·cc59f1e83d6bd2cc0c6d1241a552deb9e8775bec30de4082e0ec77704af946a8·...·]/core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="struct"·href="struct.FromFn.html"·title="struct·alloc::fmt::FromFn">FromFn</a>&lt;F&gt;<div·class="where">where
9 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,</div></h3></section><section·id="impl-Send-for-FromFn%3CF%3E"·class="impl"><a·href="#impl-Send-for-Fr[·...·truncated·by·diffoscope;·len:·126,·SHA:·51321a962ea86d82a1c4eb0b27120000c385f9b21fc7c076db46e5b9392486df·...·]/core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="struct"·href="struct.FromFn.html"·title="struct·alloc::fmt::FromFn">FromFn</a>&lt;F&gt;<div·class="where">where9 ····F:·<a·class="trait"·href="../../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,</div></h3></section><section·id="impl-Send-for-FromFn%3CF%3E"·class="impl"><a·href="#impl-Send-for-FromFn%3CF%3E"·class="anchor"[·...·truncated·by·diffoscope;·len:·72,·SHA:·4185ea2d34f70c5579c9817830377f8f4b8497f6fabd3ccc70b3c50712551640·...·]/core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="struct"·href="struct.FromFn.html"·title="struct·alloc::fmt::FromFn">FromFn</a>&lt;F&gt;<div·class="where">where
10 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>,</div></h3></section><section·id="impl-Sync-for-FromFn%3CF%3E"·class="impl"><a·href="#impl-Sync-for-FromFn%3CF%3E"·class="anchor">§</a><h3·class="code-h[·...·truncated·by·diffoscope;·len:·76,·SHA:·0e5c9147cb9d55e1d4644eeb7849dc0da6d0078cfbb7b6fbe4c5a805ab3859f3·...·]/core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="struct"·href="struct.FromFn.html"·title="struct·alloc::fmt::FromFn">FromFn</a>&lt;F&gt;<div·class="where">where10 ····F:·<a·class="trait"·href="../../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>,</div></h3></section><section·id="impl-Sync-for-FromFn%3CF%3E"·class="impl"><a·href="#impl-Sync-for-FromFn%3CF%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;F&gt;·<a·cla[·...·truncated·by·diffoscope;·len:·22,·SHA:·00f75248429972e40a06b95b82d2ef26020a8ef33f272aca2047de2bf5b7f33b·...·]/core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="struct"·href="struct.FromFn.html"·title="struct·alloc::fmt::FromFn">FromFn</a>&lt;F&gt;<div·class="where">where
11 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>,</div></h3></section><section·id="impl-Unpin-for-FromFn%3CF%3E"·class="impl"><a·href="#impl-Unpin-for-FromFn%3CF%3E"·class="anchor">§</a><h3·class="code[·...·truncated·by·diffoscope;·len:·78,·SHA:·36ab08ca826937ffa1748a4cd81664faa159173d1e69acf3c6578eabb0fe67e6·...·]/core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="struct"·href="struct.FromFn.html"·title="struct·alloc::fmt::FromFn">FromFn</a>&lt;F&gt;<div·class="where">where11 ····F:·<a·class="trait"·href="../../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>,</div></h3></section><section·id="impl-Unpin-for-FromFn%3CF%3E"·class="impl"><a·href="#impl-Unpin-for-FromFn%3CF%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;F&gt;·<a·c[·...·truncated·by·diffoscope;·len:·24,·SHA:·263a81bf04edf0a33ec61af51e20c2a20446c224a111ce9f72bcc6b49c10da4c·...·]/core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="struct"·href="struct.FromFn.html"·title="struct·alloc::fmt::FromFn">FromFn</a>&lt;F&gt;<div·class="where">where
12 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>,</div></h3></section><section·id="impl-UnwindSafe-for-FromFn%3CF%3E"·class="impl"><a·href="#impl-UnwindSafe-for-FromFn%3CF%3E"·class="anchor">§</a><h[·...·truncated·by·diffoscope;·len:·91,·SHA:·743c22e1d8f21ff2d3893e4ccc3980c89ffe312d139dcce29fd78be071648490·...·]/core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="struct"·href="struct.FromFn.html"·title="struct·alloc::fmt::FromFn">FromFn</a>&lt;F&gt;<div·class="where">where12 ····F:·<a·class="trait"·href="../../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>,</div></h3></section><section·id="impl-UnwindSafe-for-FromFn%3CF%3E"·class="impl"><a·href="#impl-UnwindSafe-for-FromFn%3CF%3E"·class="anchor">§</a><h3·class="code-header">impl&[·...·truncated·by·diffoscope;·len:·37,·SHA:·647b57d0b5f92038127c7eff71f950bb765b29bad9fa885d765cf99b424d3867·...·]/core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="struct"·href="struct.FromFn.html"·title="struct·alloc::fmt::FromFn">FromFn</a>&lt;F&gt;<div·class="where">where
13 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>,</div></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementations<a·hr[·...·truncated·by·diffoscope;·len:·428,·SHA:·b863754b289546c56713212e62f020711611ea9950149ff62e4c50dc876b9e8b·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where13 ····F:·<a·class="trait"·href="../../core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>,</div></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementations<a·href="#blanket-implementation[·...·truncated·by·diffoscope;·len:·347,·SHA:·36ef2345a3789ce5ec8eb6f799837fcba6e55b0d9ccc506d415eb8e7108d557e·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where
14 ····T:·'static·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method[·...·truncated·by·diffoscope;·len:·834,·SHA:·47dfc2aa0101a4103e2a94c1f971c559790d87a62d58631fd2bfed98e6616a34·...·]/src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where14 ····T:·'static·+·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·[·...·truncated·by·diffoscope;·len:·672,·SHA:·ace7a059971745d739c5abd9821e5d1d485cc233fd42150ceb251bdea1ce6bf7·...·]/src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where
15 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·[·...·truncated·by·diffoscope;·len:·737,·SHA:·9e65370662e77fc5c56c98c66a5dfda3c1d1244574dc8806ab91a8967514da78·...·]/src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.BorrowMut.html"·title="trait·alloc::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where15 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·r[·...·truncated·by·diffoscope;·len:·629,·SHA:·8e6f5d2e4a2830729c5d495459113ca6f54993696d7dc71c1f46e5691f5108ed·...·]/src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.BorrowMut.html"·title="trait·alloc::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where
16 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="met[·...·truncated·by·diffoscope;·len:·1416,·SHA:·6a91c7d774262ffceb6c994b163406722441142120e090bf0659f9a11b6dd348·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>16 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="s[·...·truncated·by·diffoscope;·len:·1227,·SHA:·50e7ebda2b6919040565b80662e590c224b03e887e0c5eeee46fe8a8f7ae0e8c·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>
17 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where17 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where
18 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="m[·...·truncated·by·diffoscope;·len:·237,·SHA:·98603c35860102b3af9b5cf27aeabf39e3c03236551986a6ec030817f108d919·...·]/core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>18 ····U:·<a·class="trait"·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class=[·...·truncated·by·diffoscope;·len:·156,·SHA:·79561c49c77b14346871935198fc061d00c9e84705db975b0451f5fb4f6af9a0·...·]/core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>
19 <p>That·is,·this·conversion·is·whatever·the·implementation·of19 <p>That·is,·this·conversion·is·whatever·the·implementation·of
20 <code><a·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>20 <code><a·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>
21 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToString-for-T"·class="impl"><a·class="src·rightside"·href="../../src/alloc/string.rs.html#2677-2691">Source</a><a·href="#impl-ToString-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../string/trait.ToString.html"·title="trait·alloc::string::ToString">ToString</a>·for·T<div·class="where">where21 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToString-for-T"·class="impl"><a·class="src·rightside"·href="../../src/alloc/string.rs.html#2677-2691">Source</a><a·href="#impl-ToString-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../string/trait.ToString.html"·title="trait·alloc::string::ToString">ToString</a>·for·T<div·class="where">where
22 ····T:·<a·class="trait"·href="trait.Display.html"·title="trait·alloc::fmt::Display">Display</a>·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.to_string"·class="meth[·...·truncated·by·diffoscope;·len:·956,·SHA:·5fb3fa997a6fe164f1c04c1d4cb696121571b376241266dc87e8079ebdfed810·...·]/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where22 ····T:·<a·class="trait"·href="trait.Display.html"·title="trait·alloc::fmt::Display">Display</a>·+·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.to_string"·class="method·trait-impl"><a·class="sr[·...·truncated·by·diffoscope;·len:·875,·SHA:·e58967f6ca4eee938a4135856f0af0adfcd5abe0b4e62c194e5c506c603bfcf1·...·]/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where
23 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="asso[·...·truncated·by·diffoscope;·len:·1973,·SHA:·db4b8407e8e20581ad139aef25a6221a11da0f5f18d6aa35aa33eb843f4e1b9f·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where23 ····U:·<a·class="trait"·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·c[·...·truncated·by·diffoscope;·len:·1676,·SHA:·4c73b68f4fb433b5f24fbcd660156381e5dd9f46425d075b558b9b6ca0705f88·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where
24 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·clas[·...·truncated·by·diffoscope;·len:·1578,·SHA:·998d5af10fd889567cd999d1306bfd16c91134d2238a3c172f1e7fa8ed138c18·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>24 ····U:·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-imp[·...·truncated·by·diffoscope;·len:·1308,·SHA:·6741e462a0e1b36010204263b7580305663bb27f362987d14303068592f9f358·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>
35.0 KB
./usr/share/doc/rust-doc/html/alloc/fmt/trait.Binary.html
    
Offset 1, 18 lines modifiedOffset 1, 18 lines modified
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="`b`·formatting."><title>Binary·in·alloc::fmt·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»      2025-01-07)»   (built»     from» a»source»  tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Binary</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#examples"·title="Examples">Examples</a></li></ul><h3><a·href="#required-methods">Required·Methods</a></h3><ul·class="block"><li><a·href="#tymethod.fmt"·title="fmt">fmt</a></li></ul><h3><a·href="#implementors">Implementors</a></h3></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>fmt</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">alloc</a>::<wbr><a·href="index.html">fmt</a></span><h1>Trait·<span·class="trait">Binary</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/fmt/mod.rs.html#862">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·trait·Binary·{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="`b`·formatting."><title>Binary·in·alloc::fmt·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»      2025-01-07)»   (built»     from» a»source»  tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Binary</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#examples"·title="Examples">Examples</a></li></ul><h3><a·href="#required-methods">Required·Methods</a></h3><ul·class="block"><li><a·href="#tymethod.fmt"·title="fmt">fmt</a></li></ul><h3><a·href="#implementors">Implementors</a></h3></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>fmt</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">alloc</a>::<wbr><a·href="index.html">fmt</a></span><h1>Trait·<span·class="trait">Binary</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../src/core/fmt/mod.rs.html#862">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·trait·Binary·{
2 ····//·Required·method2 ····//·Required·method
3 ····fn·<a·href="#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="struct.Formatter.html"·title="struct·alloc::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.Error.html"·title="struct·alloc::fmt::Error">Error</a>&gt;;3 ····fn·<a·href="#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="struct.Formatter.html"·title="struct·alloc::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="primitive"·href="../../core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.Error.html"·title="struct·alloc::fmt::Error">Error</a>&gt;;
4 }</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p><code>b</code>·formatting.</p>4 }</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p><code>b</code>·formatting.</p>
5 <p>The·<code>Binary</code>·trait·should·format·its·output·as·a·number·in·binary.</p>5 <p>The·<code>Binary</code>·trait·should·format·its·output·as·a·number·in·binary.</p>
6 <p>For·primitive·signed·integers·(<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.i8.html"·title="primitive·i8"><code>i8</code></a>·to·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.i128.html"·title="primitive·i128"><code>i128</code></a>,·and·<a·href="https://doc.rust-lang.org/1.[·...·truncated·by·diffoscope;·len:·4,·SHA:·64f5147f817f7ff8a79430bedb6d21160849837fa00e145d3ea47e51d0508d3b·...·]/core/primitive.isize.html"·title="primitive·isize"><code>isize</code></a>),6 <p>For·primitive·signed·integers·(<a·href="../../core/primitive.i8.html"·title="primitive·i8"><code>i8</code></a>·to·<a·href="../../core/primitive.i128.html"·title="primitive·i128"><code>i128</code></a>,·and·<a·href="../../core/primitive.isize.html"·title="primitive·isize"><code>isize</code></a>),
7 negative·values·are·formatted·as·the·two’s·complement·representation.</p>7 negative·values·are·formatted·as·the·two’s·complement·representation.</p>
8 <p>The·alternate·flag,·<code>#</code>,·adds·a·<code>0b</code>·in·front·of·the·output.</p>8 <p>The·alternate·flag,·<code>#</code>,·adds·a·<code>0b</code>·in·front·of·the·output.</p>
9 <p>For·more·information·on·formatters,·see·<a·href="../../std/fmt/index.html">the·module-level·documentation</a>.</p>9 <p>For·more·information·on·formatters,·see·<a·href="../../std/fmt/index.html">the·module-level·documentation</a>.</p>
10 <h2·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h2>10 <h2·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h2>
11 <p>Basic·usage·with·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.i32.html"·title="primitive·i32"><code>i32</code></a>:</p>11 <p>Basic·usage·with·<a·href="../../core/primitive.i32.html"·title="primitive·i32"><code>i32</code></a>:</p>
  
12 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span>x·=·<span·class="number">42</span>;·<span·class="comment">//·42·is·'101010'·in·binary12 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span>x·=·<span·class="number">42</span>;·<span·class="comment">//·42·is·'101010'·in·binary
  
13 </span><span·class="macro">assert_eq!</span>(<span·class="macro">format!</span>(<span·class="string">"{x:b}"</span>),·<span·class="string">"101010"</span>);13 </span><span·class="macro">assert_eq!</span>(<span·class="macro">format!</span>(<span·class="string">"{x:b}"</span>),·<span·class="string">"101010"</span>);
14 <span·class="macro">assert_eq!</span>(<span·class="macro">format!</span>(<span·class="string">"{x:#b}"</span>),·<span·class="string">"0b101010"</span>);14 <span·class="macro">assert_eq!</span>(<span·class="macro">format!</span>(<span·class="string">"{x:#b}"</span>),·<span·class="string">"0b101010"</span>);
  
15 <span·class="macro">assert_eq!</span>(<span·class="macro">format!</span>(<span·class="string">"{:b}"</span>,·-<span·class="number">16</span>),·<span·class="string">"11111111111111111111111111110000"</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++let+x+=+42;+//+42+is+'101010'+in+binary%0A++++%0A++++assert_eq!(format!(%22%7Bx:b%7D%22),+%22101010%22);%0A++++assert_eq!(format!(%22%7Bx:%23b%7D%22),+%220b101010%22);%0A++++%0A++++assert_eq!(format!(%22%7B:b%7D%22,+-16),+%2211111111111111111111111111110000%22);%0A%7D&amp;edition=2021"></a></div>15 <span·class="macro">assert_eq!</span>(<span·class="macro">format!</span>(<span·class="string">"{:b}"</span>,·-<span·class="number">16</span>),·<span·class="string">"11111111111111111111111111110000"</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++let+x+=+42;+//+42+is+'101010'+in+binary%0A++++%0A++++assert_eq!(format!(%22%7Bx:b%7D%22),+%22101010%22);%0A++++assert_eq!(format!(%22%7Bx:%23b%7D%22),+%220b101010%22);%0A++++%0A++++assert_eq!(format!(%22%7B:b%7D%22,+-16),+%2211111111111111111111111111110000%22);%0A%7D&amp;edition=2021"></a></div>
Offset 36, 19 lines modifiedOffset 36, 19 lines modified
  
36 <span·class="macro">assert_eq!</span>(36 <span·class="macro">assert_eq!</span>(
37 ····<span·class="comment">//·Note·that·the·`0b`·prefix·added·by·`#`·is·included·in·the·total·width,·so·we37 ····<span·class="comment">//·Note·that·the·`0b`·prefix·added·by·`#`·is·included·in·the·total·width,·so·we
38 ····//·need·to·add·two·to·correctly·display·all·32·bits.38 ····//·need·to·add·two·to·correctly·display·all·32·bits.
39 ····</span><span·class="macro">format!</span>(<span·class="string">"l·as·binary·is:·{l:#034b}"</span>),39 ····</span><span·class="macro">format!</span>(<span·class="string">"l·as·binary·is:·{l:#034b}"</span>),
40 ····<span·class="string">"l·as·binary·is:·0b00000000000000000000000001101011"40 ····<span·class="string">"l·as·binary·is:·0b00000000000000000000000001101011"
41 </span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::fmt;%0A++++%0A++++struct+Length(i32);%0A++++%0A++++impl+fmt::Binary+for+Length+%7B%0A++++++++fn+fmt(%26self,+f:+%26mut+fmt::Formatter%3C'_%3E)+-%3E+fmt::Result+%7B%0A++++++++++++let+val+=+self.0;%0A++++%0A++++++++++++fmt::Binary::fmt(%26val,+f)+//+delegate+to+i32's+implementation%0A++++++++%7D%0A++++%7D%0A++++%0A++++let+l+=+Length(107);%0A++++%0A++++assert_eq!(format!(%22l+as+binary+is:+%7Bl:b%7D%22),+%22l+as+binary+is:+1101011%22);%0A++++%0A++++assert_eq!(%0A++++++++//+Note+that+the+%600b%60+prefix+added+by+%60%23%60+is+included+in+the+total+width,+so+we%0A++++++++//+need+to+add+two+to+correctly+display+all+32+bits.%0A++++++++format!(%22l+as+binary+is:+%7Bl:%23034b%7D%22),%0A++++++++%22l+as+binary+is:+0b00000000000000000000000001101011%22%0A++++);%0A%7D&amp;edition=2021"></a></div>41 </span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::fmt;%0A++++%0A++++struct+Length(i32);%0A++++%0A++++impl+fmt::Binary+for+Length+%7B%0A++++++++fn+fmt(%26self,+f:+%26mut+fmt::Formatter%3C'_%3E)+-%3E+fmt::Result+%7B%0A++++++++++++let+val+=+self.0;%0A++++%0A++++++++++++fmt::Binary::fmt(%26val,+f)+//+delegate+to+i32's+implementation%0A++++++++%7D%0A++++%7D%0A++++%0A++++let+l+=+Length(107);%0A++++%0A++++assert_eq!(format!(%22l+as+binary+is:+%7Bl:b%7D%22),+%22l+as+binary+is:+1101011%22);%0A++++%0A++++assert_eq!(%0A++++++++//+Note+that+the+%600b%60+prefix+added+by+%60%23%60+is+included+in+the+total+width,+so+we%0A++++++++//+need+to+add+two+to+correctly+display+all+32+bits.%0A++++++++format!(%22l+as+binary+is:+%7Bl:%23034b%7D%22),%0A++++++++%22l+as+binary+is:+0b00000000000000000000000001101011%22%0A++++);%0A%7D&amp;edition=2021"></a></div>
42 </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.fmt"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/fmt/mod.rs.html#865">Source</a></span><h4·class="code-header">fn·<a·href="#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="struct.Formatter.html"·title="struct·alloc::fmt::Formatter"[·...·truncated·by·diffoscope;·len:·224,·SHA:·48a84022878e023eb613a3f4487ef6386c5a6c2f059c6e677d47b590cda1d526·...·]/core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.Error.html"·title="struct·alloc::fmt::Error">Error</a>&gt;</h4></section></summary><div·class="docblock"><p>Formats·the·value·using·the·given·formatter.</p>42 </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.fmt"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/fmt/mod.rs.html#865">Source</a></span><h4·class="code-header">fn·<a·href="#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="struct.Formatter.html"·title="struct·alloc::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-[·...·truncated·by·diffoscope;·len:·143,·SHA:·e947633b98b2c7a3dd8c60aad8594e006491688c0783cf75edcb27124e93f10e·...·]/core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.Error.html"·title="struct·alloc::fmt::Error">Error</a>&gt;</h4></section></summary><div·class="docblock"><p>Formats·the·value·using·the·given·formatter.</p>
43 <h5·id="errors"><a·class="doc-anchor"·href="#errors">§</a>Errors</h5>43 <h5·id="errors"><a·class="doc-anchor"·href="#errors">§</a>Errors</h5>
44 <p>This·function·should·return·<a·href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html#variant.Err"·title="variant·core::result::Result::Err"><code>Err</code></a>·if,·and·only·if,·the·provided·<a·href="struct.Formatter.html"·title="struct·alloc::fmt::Formatter"><code>Formatter</co[·...·truncated·by·diffoscope;·len:·57,·SHA:·83a1bf55ff257cd023d246ece47b621fb9956d5c6485b30ed8a0a787981f1416·...·]/core/result/enum.Result.html#variant.Err"·title="variant·core::result::Result::Err"><code>Err</code></a>.44 <p>This·function·should·return·<a·href="../../core/result/enum.Result.html#variant.Err"·title="variant·core::result::Result::Err"><code>Err</code></a>·if,·and·only·if,·the·provided·<a·href="struct.Formatter.html"·title="struct·alloc::fmt::Formatter"><code>Formatter</code></a>·returns·<a·href="..[·...·truncated·by·diffoscope;·len:·3,·SHA:·3a6aebc03771052df0b39b1b45998cbc989aa9d1c3dcbd6c39551085aca533bb·...·]/core/result/enum.Result.html#variant.Err"·title="variant·core::result::Result::Err"><code>Err</code></a>.
45 String·formatting·is·considered·an·infallible·operation;·this·function·only45 String·formatting·is·considered·an·infallible·operation;·this·function·only
46 returns·a·<a·href="type.Result.html"·title="type·alloc::fmt::Result"><code>Result</code></a>·because·writing·to·the·underlying·stream·might·fail·and·it·must46 returns·a·<a·href="type.Result.html"·title="type·alloc::fmt::Result"><code>Result</code></a>·because·writing·to·the·underlying·stream·might·fail·and·it·must
47 provide·a·way·to·propagate·the·fact·that·an·error·has·occurred·back·up·the·stack.</p>47 provide·a·way·to·propagate·the·fact·that·an·error·has·occurred·back·up·the·stack.</p>
48 </div></details></div><h2·id="implementors"·class="section-header">Implementors<a·href="#implementors"·class="anchor">§</a></h2><div·id="implementors-list"><section·id="impl-Binary-for-i8"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/fmt/num.rs.html#168">Source</a></span><a·href="#impl-Binary-for-i8"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="trait.Binary.html"·title="trait·alloc::fmt::Binary">Binary</a>·for·<a·clas[·...·truncated·by·diffoscope;·len:·6370,·SHA:·d3c4d783b7d4f92fb53b9a6a822b767374919ca18b0ff5df2cf8aed4b561fe3c·...·]/core/primitive.reference.html">&amp;T</a><div·class="where">where48 </div></details></div><h2·id="implementors"·class="section-header">Implementors<a·href="#implementors"·class="anchor">§</a></h2><div·id="implementors-list"><section·id="impl-Binary-for-i8"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/fmt/num.rs.html#168">Source</a></span><a·href="#impl-Binary-for-i8"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="trait.Binary.html"·title="trait·alloc::fmt::Binary">Binary</a>·for·<a·class="primitive"·href="../../c[·...·truncated·by·diffoscope;·len:·5668,·SHA:·60e02955af45b7d3ed087aaf27bdf28db5ee811251e3aed7133e18c8d3809759·...·]/core/primitive.reference.html">&amp;T</a><div·class="where">where
49 ····T:·<a·class="trait"·href="trait.Binary.html"·title="trait·alloc::fmt::Binary">Binary</a>·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section><section·id="impl-Binary-for-%26mut+T"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version[·...·truncated·by·diffoscope;·len:·368,·SHA:·a871be8c9ca04437daf7ca0467e576946840774d02c1c4f8c3640afc94d863a5·...·]/core/primitive.reference.html">&amp;mut·T</a><div·class="where">where49 ····T:·<a·class="trait"·href="trait.Binary.html"·title="trait·alloc::fmt::Binary">Binary</a>·+·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section><section·id="impl-Binary-for-%26mut+T"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·c[·...·truncated·by·diffoscope;·len:·287,·SHA:·b8bc491446c5e36ed388b85f454073ab288ae7c8f0c32f03fe3179ae645c91a6·...·]/core/primitive.reference.html">&amp;mut·T</a><div·class="where">where
50 ····T:·<a·class="trait"·href="trait.Binary.html"·title="trait·alloc::fmt::Binary">Binary</a>·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section><section·id="impl-Binary-for-NonZero%3CT%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·v[·...·truncated·by·diffoscope;·len:·386,·SHA:·576a1b61d78f4d6213b087b3f5232ba4c2b58a61ac62c4451720d1c8d97b45f5·...·]/core/num/nonzero/struct.NonZero.html"·title="struct·core::num::nonzero::NonZero">NonZero</a>&lt;T&gt;<div·class="where">where50 ····T:·<a·class="trait"·href="trait.Binary.html"·title="trait·alloc::fmt::Binary">Binary</a>·+·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section><section·id="impl-Binary-for-NonZero%3CT%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.28.0">1.28.0</span[·...·truncated·by·diffoscope;·len:·305,·SHA:·a77648b6c92f91c8d8d732cf3f71c661582316b72bf66384bfc3ca98fce0dc94·...·]/core/num/nonzero/struct.NonZero.html"·title="struct·core::num::nonzero::NonZero">NonZero</a>&lt;T&gt;<div·class="where">where
51 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/num/nonzero/trait.ZeroablePrimitive.html"·title="trait·core::num::nonzero::ZeroablePrimitive">ZeroablePrimitive</a>·+·<a·class="trait"·href="trait.Binary.html"·title="trait·alloc::fmt::Binary">Binary</a>,</div></h3></s[·...·truncated·by·diffoscope;·len:·525,·SHA:·efc443a3cf4aa6cea76fa8e096fd0d6125195cdfdb18d730f19dfa06490b0b83·...·]/core/num/saturating/struct.Saturating.html"·title="struct·core::num::saturating::Saturating">Saturating</a>&lt;T&gt;<div·class="where">where51 ····T:·<a·class="trait"·href="../../core/num/nonzero/trait.ZeroablePrimitive.html"·title="trait·core::num::nonzero::ZeroablePrimitive">ZeroablePrimitive</a>·+·<a·class="trait"·href="trait.Binary.html"·title="trait·alloc::fmt::Binary">Binary</a>,</div></h3></section><section·id="impl-Bi[·...·truncated·by·diffoscope;·len:·444,·SHA:·4bbb6946bac1c7e997edaee0fdcaa408bea088801d3c8138aa12a401c8ec0071·...·]/core/num/saturating/struct.Saturating.html"·title="struct·core::num::saturating::Saturating">Saturating</a>&lt;T&gt;<div·class="where">where
52 ····T:·<a·class="trait"·href="trait.Binary.html"·title="trait·alloc::fmt::Binary">Binary</a>,</div></h3></section><section·id="impl-Binary-for-Wrapping%3CT%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.11.0">1.11.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/num/wrapping.rs.html#60">Source</a></span><a·href="#impl-Binary-for-Wrapping%3CT%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="trait.Binary.html"·title="trait·alloc::fmt::Bina[·...·truncated·by·diffoscope;·len:·75,·SHA:·d0d1526f840274358e72db9075f9c22505187af2ab51699e1ee4121030a5830f·...·]/core/num/wrapping/struct.Wrapping.html"·title="struct·core::num::wrapping::Wrapping">Wrapping</a>&lt;T&gt;<div·class="where">where52 ····T:·<a·class="trait"·href="trait.Binary.html"·title="trait·alloc::fmt::Binary">Binary</a>,</div></h3></section><section·id="impl-Binary-for-Wrapping%3CT%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.11.0">1.11.0</span>···<a·class="src"·href="../../src/core/num/wrapping.rs.html#60">Source</a></span><a·href="#impl-Binary-for-Wrapping%3CT%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="trait.Binary.html"·title="trait·alloc::fmt::Binary">Binary</a>·for·<a·class[·...·truncated·by·diffoscope;·len:·21,·SHA:·8f1a310af209d0f9b2c3aa8ac6596e8251b9580183fbf6bef54cfdfb105d5965·...·]/core/num/wrapping/struct.Wrapping.html"·title="struct·core::num::wrapping::Wrapping">Wrapping</a>&lt;T&gt;<div·class="where">where
53 ····T:·<a·class="trait"·href="trait.Binary.html"·title="trait·alloc::fmt::Binary">Binary</a>,</div></h3></section></div><script·src="../../trait.impl/core/fmt/trait.Binary.js"·data-ignore-extern-crates="core"·async></script></section></div></main></body></html>53 ····T:·<a·class="trait"·href="trait.Binary.html"·title="trait·alloc::fmt::Binary">Binary</a>,</div></h3></section></div><script·src="../../trait.impl/core/fmt/trait.Binary.js"·data-ignore-extern-crates="core"·async></script></section></div></main></body></html>
530 KB
./usr/share/doc/rust-doc/html/alloc/fmt/trait.Debug.html
Max HTML report size reached
123 KB
./usr/share/doc/rust-doc/html/alloc/fmt/trait.Display.html
    
Offset 1, 10 lines modifiedOffset 1, 10 lines modified
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="Format·trait·for·an·empty·format,·`{}`."><title>Display·in·alloc::fmt·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»  2025-01-07)»       (built» from»     a»    source»      tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Display</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#internationalization"·title="Internationalization">Internationalization</a></li><li><a·href="#examples"·title="Examples">Examples</a></li></ul><h3><a·href="#required-methods">Required·Methods</a></h3><ul·class="block"><li><a·href="#tymethod.fmt"·title="fmt">fmt</a></li></ul><h3><a·href="#implementors">Implementors</a></h3></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>fmt</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">alloc</a>::<wbr><a·href="index.html">fmt</a></span><h1>Trait·<span·class="trait">Display</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/fmt/mod.rs.html#727">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·trait·Display·{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="Format·trait·for·an·empty·format,·`{}`."><title>Display·in·alloc::fmt·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»  2025-01-07)»       (built» from»     a»    source»      tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Display</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#internationalization"·title="Internationalization">Internationalization</a></li><li><a·href="#examples"·title="Examples">Examples</a></li></ul><h3><a·href="#required-methods">Required·Methods</a></h3><ul·class="block"><li><a·href="#tymethod.fmt"·title="fmt">fmt</a></li></ul><h3><a·href="#implementors">Implementors</a></h3></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>fmt</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">alloc</a>::<wbr><a·href="index.html">fmt</a></span><h1>Trait·<span·class="trait">Display</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../src/core/fmt/mod.rs.html#727">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·trait·Display·{
2 ····//·Required·method2 ····//·Required·method
3 ····fn·<a·href="#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="struct.Formatter.html"·title="struct·alloc::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.Error.html"·title="struct·alloc::fmt::Error">Error</a>&gt;;3 ····fn·<a·href="#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="struct.Formatter.html"·title="struct·alloc::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="primitive"·href="../../core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.Error.html"·title="struct·alloc::fmt::Error">Error</a>&gt;;
4 }</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Format·trait·for·an·empty·format,·<code>{}</code>.</p>4 }</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Format·trait·for·an·empty·format,·<code>{}</code>.</p>
5 <p>Implementing·this·trait·for·a·type·will·automatically·implement·the5 <p>Implementing·this·trait·for·a·type·will·automatically·implement·the
6 <a·href="../../std/string/trait.ToString.html"><code>ToString</code></a>·trait·for·the·type,·allowing·the·usage6 <a·href="../../std/string/trait.ToString.html"><code>ToString</code></a>·trait·for·the·type,·allowing·the·usage
7 of·the·<a·href="../../std/string/trait.ToString.html#tymethod.to_string"><code>.to_string()</code></a>·method.·Prefer·implementing7 of·the·<a·href="../../std/string/trait.ToString.html#tymethod.to_string"><code>.to_string()</code></a>·method.·Prefer·implementing
8 the·<code>Display</code>·trait·for·a·type,·rather·than·<a·href="../../std/string/trait.ToString.html"><code>ToString</code></a>.</p>8 the·<code>Display</code>·trait·for·a·type,·rather·than·<a·href="../../std/string/trait.ToString.html"><code>ToString</code></a>.</p>
9 <p><code>Display</code>·is·similar·to·<a·href="trait.Debug.html"·title="trait·alloc::fmt::Debug"><code>Debug</code></a>,·but·<code>Display</code>·is·for·user-facing9 <p><code>Display</code>·is·similar·to·<a·href="trait.Debug.html"·title="trait·alloc::fmt::Debug"><code>Debug</code></a>,·but·<code>Display</code>·is·for·user-facing
10 output,·and·so·cannot·be·derived.</p>10 output,·and·so·cannot·be·derived.</p>
Offset 14, 15 lines modifiedOffset 14, 15 lines modified
14 to·only·implement·<code>Display</code>·when·there·is·a·single·most·“obvious”·way·that14 to·only·implement·<code>Display</code>·when·there·is·a·single·most·“obvious”·way·that
15 values·can·be·formatted·as·text.·This·could·mean·formatting·according·to·the15 values·can·be·formatted·as·text.·This·could·mean·formatting·according·to·the
16 “invariant”·culture·and·“undefined”·locale,·or·it·could·mean·that·the·type16 “invariant”·culture·and·“undefined”·locale,·or·it·could·mean·that·the·type
17 display·is·designed·for·a·specific·culture/locale,·such·as·developer·logs.</p>17 display·is·designed·for·a·specific·culture/locale,·such·as·developer·logs.</p>
18 <p>If·not·all·values·have·a·justifiably·canonical·textual·format·or·if·you·want18 <p>If·not·all·values·have·a·justifiably·canonical·textual·format·or·if·you·want
19 to·support·alternative·formats·not·covered·by·the·standard·set·of·possible19 to·support·alternative·formats·not·covered·by·the·standard·set·of·possible
20 <a·href="../../std/fmt/index.html#formatting-traits">formatting·traits</a>,·the·most·flexible·approach·is·display·adapters:·methods20 <a·href="../../std/fmt/index.html#formatting-traits">formatting·traits</a>,·the·most·flexible·approach·is·display·adapters:·methods
21 like·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.str.html#method.escape_default"·title="method·str::escape_default"><code>str::escape_default</code></a>·or·<a·href="../../std/path/struct.Path.html#method.display"><code>Path::display</code></a>·which·create·a·wrapper21 like·<a·href="../../core/primitive.str.html#method.escape_default"·title="method·str::escape_default"><code>str::escape_default</code></a>·or·<a·href="../../std/path/struct.Path.html#method.display"><code>Path::display</code></a>·which·create·a·wrapper
22 implementing·<code>Display</code>·to·output·the·specific·display·format.</p>22 implementing·<code>Display</code>·to·output·the·specific·display·format.</p>
23 <h2·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h2>23 <h2·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h2>
24 <p>Implementing·<code>Display</code>·on·a·type:</p>24 <p>Implementing·<code>Display</code>·on·a·type:</p>
  
25 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt;25 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt;
  
26 <span·class="kw">struct·</span>Point·{26 <span·class="kw">struct·</span>Point·{
Offset 35, 17 lines modifiedOffset 35, 17 lines modified
35 ········<span·class="macro">write!</span>(f,·<span·class="string">"({},·{})"</span>,·<span·class="self">self</span>.x,·<span·class="self">self</span>.y)35 ········<span·class="macro">write!</span>(f,·<span·class="string">"({},·{})"</span>,·<span·class="self">self</span>.x,·<span·class="self">self</span>.y)
36 ····}36 ····}
37 }37 }
  
38 <span·class="kw">let·</span>origin·=·Point·{·x:·<span·class="number">0</span>,·y:·<span·class="number">0·</span>};38 <span·class="kw">let·</span>origin·=·Point·{·x:·<span·class="number">0</span>,·y:·<span·class="number">0·</span>};
  
39 <span·class="macro">assert_eq!</span>(<span·class="macro">format!</span>(<span·class="string">"The·origin·is:·{origin}"</span>),·<span·class="string">"The·origin·is:·(0,·0)"</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::fmt;%0A++++%0A++++struct+Point+%7B%0A++++++++x:+i32,%0A++++++++y:+i32,%0A++++%7D%0A++++%0A++++impl+fmt::Display+for+Point+%7B%0A++++++++fn+fmt(%26self,+f:+%26mut+fmt::Formatter%3C'_%3E)+-%3E+fmt::Result+%7B%0A++++++++++++write!(f,+%22(%7B%7D,+%7B%7D)%22,+self.x,+self.y)%0A++++++++%7D%0A++++%7D%0A++++%0A++++let+origin+=+Point+%7B+x:+0,+y:+0+%7D;%0A++++%0A++++assert_eq!(format!(%22The+origin+is:+%7Borigin%7D%22),+%22The+origin+is:+(0,+0)%22);%0A%7D&amp;edition=2021"></a></div>39 <span·class="macro">assert_eq!</span>(<span·class="macro">format!</span>(<span·class="string">"The·origin·is:·{origin}"</span>),·<span·class="string">"The·origin·is:·(0,·0)"</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::fmt;%0A++++%0A++++struct+Point+%7B%0A++++++++x:+i32,%0A++++++++y:+i32,%0A++++%7D%0A++++%0A++++impl+fmt::Display+for+Point+%7B%0A++++++++fn+fmt(%26self,+f:+%26mut+fmt::Formatter%3C'_%3E)+-%3E+fmt::Result+%7B%0A++++++++++++write!(f,+%22(%7B%7D,+%7B%7D)%22,+self.x,+self.y)%0A++++++++%7D%0A++++%7D%0A++++%0A++++let+origin+=+Point+%7B+x:+0,+y:+0+%7D;%0A++++%0A++++assert_eq!(format!(%22The+origin+is:+%7Borigin%7D%22),+%22The+origin+is:+(0,+0)%22);%0A%7D&amp;edition=2021"></a></div>
40 </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.fmt"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/fmt/mod.rs.html#752">Source</a></span><h4·class="code-header">fn·<a·href="#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="struct.Formatter.html"·title="struct·alloc::fmt::Formatter"[·...·truncated·by·diffoscope;·len:·224,·SHA:·48a84022878e023eb613a3f4487ef6386c5a6c2f059c6e677d47b590cda1d526·...·]/core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.Error.html"·title="struct·alloc::fmt::Error">Error</a>&gt;</h4></section></summary><div·class="docblock"><p>Formats·the·value·using·the·given·formatter.</p>40 </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.fmt"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/fmt/mod.rs.html#752">Source</a></span><h4·class="code-header">fn·<a·href="#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="struct.Formatter.html"·title="struct·alloc::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-[·...·truncated·by·diffoscope;·len:·143,·SHA:·e947633b98b2c7a3dd8c60aad8594e006491688c0783cf75edcb27124e93f10e·...·]/core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.Error.html"·title="struct·alloc::fmt::Error">Error</a>&gt;</h4></section></summary><div·class="docblock"><p>Formats·the·value·using·the·given·formatter.</p>
41 <h5·id="errors"><a·class="doc-anchor"·href="#errors">§</a>Errors</h5>41 <h5·id="errors"><a·class="doc-anchor"·href="#errors">§</a>Errors</h5>
42 <p>This·function·should·return·<a·href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html#variant.Err"·title="variant·core::result::Result::Err"><code>Err</code></a>·if,·and·only·if,·the·provided·<a·href="struct.Formatter.html"·title="struct·alloc::fmt::Formatter"><code>Formatter</co[·...·truncated·by·diffoscope;·len:·57,·SHA:·83a1bf55ff257cd023d246ece47b621fb9956d5c6485b30ed8a0a787981f1416·...·]/core/result/enum.Result.html#variant.Err"·title="variant·core::result::Result::Err"><code>Err</code></a>.42 <p>This·function·should·return·<a·href="../../core/result/enum.Result.html#variant.Err"·title="variant·core::result::Result::Err"><code>Err</code></a>·if,·and·only·if,·the·provided·<a·href="struct.Formatter.html"·title="struct·alloc::fmt::Formatter"><code>Formatter</code></a>·returns·<a·href="..[·...·truncated·by·diffoscope;·len:·3,·SHA:·3a6aebc03771052df0b39b1b45998cbc989aa9d1c3dcbd6c39551085aca533bb·...·]/core/result/enum.Result.html#variant.Err"·title="variant·core::result::Result::Err"><code>Err</code></a>.
43 String·formatting·is·considered·an·infallible·operation;·this·function·only43 String·formatting·is·considered·an·infallible·operation;·this·function·only
44 returns·a·<a·href="type.Result.html"·title="type·alloc::fmt::Result"><code>Result</code></a>·because·writing·to·the·underlying·stream·might·fail·and·it·must44 returns·a·<a·href="type.Result.html"·title="type·alloc::fmt::Result"><code>Result</code></a>·because·writing·to·the·underlying·stream·might·fail·and·it·must
45 provide·a·way·to·propagate·the·fact·that·an·error·has·occurred·back·up·the·stack.</p>45 provide·a·way·to·propagate·the·fact·that·an·error·has·occurred·back·up·the·stack.</p>
46 <h5·id="examples-1"><a·class="doc-anchor"·href="#examples-1">§</a>Examples</h5>46 <h5·id="examples-1"><a·class="doc-anchor"·href="#examples-1">§</a>Examples</h5>
47 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt;47 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt;
  
48 <span·class="kw">struct·</span>Position·{48 <span·class="kw">struct·</span>Position·{
Offset 59, 20 lines modifiedOffset 59, 20 lines modified
59 ····}59 ····}
60 }60 }
  
61 <span·class="macro">assert_eq!</span>(61 <span·class="macro">assert_eq!</span>(
62 ····<span·class="string">"(1.987,·2.983)"</span>,62 ····<span·class="string">"(1.987,·2.983)"</span>,
63 ····<span·class="macro">format!</span>(<span·class="string">"{}"</span>,·Position·{·longitude:·<span·class="number">1.987</span>,·latitude:·<span·class="number">2.983</span>,·}),63 ····<span·class="macro">format!</span>(<span·class="string">"{}"</span>,·Position·{·longitude:·<span·class="number">1.987</span>,·latitude:·<span·class="number">2.983</span>,·}),
64 );</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::fmt;%0A++++%0A++++struct+Position+%7B%0A++++++++longitude:+f32,%0A++++++++latitude:+f32,%0A++++%7D%0A++++%0A++++impl+fmt::Display+for+Position+%7B%0A++++++++fn+fmt(%26self,+f:+%26mut+fmt::Formatter%3C'_%3E)+-%3E+fmt::Result+%7B%0A++++++++++++write!(f,+%22(%7B%7D,+%7B%7D)%22,+self.longitude,+self.latitude)%0A++++++++%7D%0A++++%7D%0A++++%0A++++assert_eq!(%0A++++++++%22(1.987,+2.983)%22,%0A++++++++format!(%22%7B%7D%22,+Position+%7B+longitude:+1.987,+latitude:+2.983,+%7D),%0A++++);%0A%7D&amp;edition=2021"></a></div>64 );</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::fmt;%0A++++%0A++++struct+Position+%7B%0A++++++++longitude:+f32,%0A++++++++latitude:+f32,%0A++++%7D%0A++++%0A++++impl+fmt::Display+for+Position+%7B%0A++++++++fn+fmt(%26self,+f:+%26mut+fmt::Formatter%3C'_%3E)+-%3E+fmt::Result+%7B%0A++++++++++++write!(f,+%22(%7B%7D,+%7B%7D)%22,+self.longitude,+self.latitude)%0A++++++++%7D%0A++++%7D%0A++++%0A++++assert_eq!(%0A++++++++%22(1.987,+2.983)%22,%0A++++++++format!(%22%7B%7D%22,+Position+%7B+longitude:+1.987,+latitude:+2.983,+%7D),%0A++++);%0A%7D&amp;edition=2021"></a></div>
65 </div></details></div><h2·id="implementors"·class="section-header">Implementors<a·href="#implementors"·class="anchor">§</a></h2><div·id="implementors-list"><section·id="impl-Display-for-Char"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/ascii/ascii_char.rs.html#581">Source</a><a·href="#impl-Display-for-Char"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="trait.Display.html"·title="trait·alloc::fmt::Display">Display</a>·for[·...·truncated·by·diffoscope;·len:·28627,·SHA:·b8b6394ecbae779d7a9b1ddad5492d40e4c481b46d76a02a06af42066bfaa142·...·]/core/net/ip_addr/struct.Ipv6Addr.html"·title="struct·core::net::ip_addr::Ipv6Addr">Ipv6Addr</a></h3></section><div·class="docblock"><p>Writes·an·Ipv6Addr,·conforming·to·the·canonical·style·described·by65 </div></details></div><h2·id="implementors"·class="section-header">Implementors<a·href="#implementors"·class="anchor">§</a></h2><div·id="implementors-list"><section·id="impl-Display-for-Char"·class="impl"><a·class="src·rightside"·href="../../src/core/ascii/ascii_char.rs.html#581">Source</a><a·href="#impl-Display-for-Char"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="trait.Display.html"·title="trait·alloc::fmt::Display">Display</a>·for·<a·class="enum"·href="../.[·...·truncated·by·diffoscope;·len:·19904,·SHA:·a6ac653c66219ed3daa21584ec0f9931737e07ac5f7d26efa616146937d171e9·...·]/core/net/ip_addr/struct.Ipv6Addr.html"·title="struct·core::net::ip_addr::Ipv6Addr">Ipv6Addr</a></h3></section><div·class="docblock"><p>Writes·an·Ipv6Addr,·conforming·to·the·canonical·style·described·by
66 <a·href="https://tools.ietf.org/html/rfc5952">RFC·5952</a>.</p>66 <a·href="https://tools.ietf.org/html/rfc5952">RFC·5952</a>.</p>
67 </div><section·id="impl-Display-for-AddrParseError"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.4.0">1.4.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/net/parser.rs.html#499">Source</a></span><a·href="#impl-Display-for-AddrParseError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="trait.Display.html"·title="trait·alloc::fmt::Display">Disp[·...·truncated·by·diffoscope;·len:·10293,·SHA:·c47fa40fac98dab33a9ac46266ddeea0f333b89adad07dc693e4c9ff158bdf92·...·]/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>&gt;·<a·class="trait"·href="trait.Display.html"·title="trait·alloc::fmt::Display">Display</a>·for·<a·class="struct"·href="../collections/btree_map/struct.OccupiedError.html"·title="struct·alloc::collections::btree_map::OccupiedError">OccupiedError</a>&lt;'a,·K,·V,·A&gt;</h3></section><section·id="impl-Display-for-Cow%3C'_,+B%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/alloc/borrow.rs.html#397-407">Source</a></span><a·href="#impl-Display-for-Cow%3C'_,+B%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;B&gt;·<a·class="trait"·href="trait.Display.html"·title="trait·alloc::fmt::Display">Display</a>·for·<a·class="enum"·href="../borrow/enum.Cow.html"·title="enum·alloc::borrow::Cow">Cow</a>&lt;'_,·B&gt;<div·class="where">where67 </div><section·id="impl-Display-for-AddrParseError"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.4.0">1.4.0</span>···<a·class="src"·href="../../src/core/net/parser.rs.html#499">Source</a></span><a·href="#impl-Display-for-AddrParseError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="trait.Display.html"·title="trait·alloc::fmt::Display">Display</a>·for·<a·class="struc[·...·truncated·by·diffoscope;·len:·16046,·SHA:·18950c6e96737e79c7da89bfa8e16425ea45c0009fe40193ea4cfd6ec2c26b3e·...·]/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>&gt;·<a·class="trait"·href="trait.Display.html"·title="trait·alloc::fmt::Display">Display</a>·for·<a·class="struct"·href="../collections/btree_map/struct.OccupiedError.html"·title="struct·alloc::collections::btree_map::OccupiedError">OccupiedError</a>&lt;'a,·K,·V,·A&gt;</h3></section><section·id="impl-Display-for-Cow%3C'_,+B%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/alloc/borrow.rs.html#397-407">Source</a></span><a·href="#impl-Display-for-Cow%3C'_,+B%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;B&gt;·<a·class="trait"·href="trait.Display.html"·title="trait·alloc::fmt::Display">Display</a>·for·<a·class="enum"·href="../borrow/enum.Cow.html"·title="enum·alloc::borrow::Cow">Cow</a>&lt;'_,·B&gt;<div·class="where">where
68 ····B:·<a·class="trait"·href="trait.Display.html"·title="trait·alloc::fmt::Display">Display</a>·+·<a·class="trait"·href="../borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>&lt;Owned:·<a·class="trait"·href="trait.Display.html"·title="trait·alloc::fmt::Display">Display</a>&gt;·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section><section·id="impl-Display-for-FromFn%3CF%3E"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/fmt/builders.rs.html#1254-1256">Source</a><a·href="#impl-Display-for-FromFn%3CF%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;F&gt;·<a·class="trait"·href="trait.Display.html"·title="trait·alloc::fmt::Display">Display</a>·for·<a·class="struct"·href="struct.FromFn.html"·title="struct·alloc::fmt::FromFn">FromFn</a>&lt;F&gt;<div·class="where">where68 ····B:·<a·class="trait"·href="trait.Display.html"·title="trait·alloc::fmt::Display">Display</a>·+·<a·class="trait"·href="../borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>&lt;Owned:·<a·class="trait"·href="trait.Display.html"·title="trait·alloc::fmt::Display">Display</a>&gt;·+·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section><section·id="impl-Display-for-FromFn%3CF%3E"·class="impl"><a·class="src·rightside"·href="../../src/core/fmt/builders.rs.html#1254-1256">Source</a><a·href="#impl-Display-for-FromFn%3CF%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;F&gt;·<a·class="trait"·href="trait.Display.html"·title="trait·alloc::fmt::Display">Display</a>·for·<a·class="struct"·href="struct.FromFn.html"·title="struct·alloc::fmt::FromFn">FromFn</a>&lt;F&gt;<div·class="where">where
69 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.Fn.html"·title="trait·core::ops::function::Fn">Fn</a>(&amp;mut·<a·class="struct"·href="struct.Formatter.html"·title="struct·alloc::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="enum"·href=[·...·truncated·by·diffoscope;·len:·823,·SHA:·e4715078ce631f974b48609381b384e1e97c7fc1487a26054cc8ef6c1c67d020·...·]/core/pin/struct.Pin.html"·title="struct·core::pin::Pin">Pin</a>&lt;Ptr&gt;<div·class="where">where69 ····F:·<a·class="trait"·href="../../core/ops/function/trait.Fn.html"·title="trait·core::ops::function::Fn">Fn</a>(&amp;mut·<a·class="struct"·href="struct.Formatter.html"·title="struct·alloc::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="enum"·href="../../core/result/enum.Res[·...·truncated·by·diffoscope;·len:·688,·SHA:·bd443bf733a155f01b3fc84595204d96494d567e2eeb8012120e738f7b3b5910·...·]/core/pin/struct.Pin.html"·title="struct·core::pin::Pin">Pin</a>&lt;Ptr&gt;<div·class="where">where
70 ····Ptr:·<a·class="trait"·href="trait.Display.html"·title="trait·alloc::fmt::Display">Display</a>,</div></h3></section><section·id="impl-Display-for-%26T"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/fmt/mod.rs.html#2403">Source</a></span><a·href="#impl-Display-for-%26T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="trait.Display.html"·title="trait·alloc::fmt::Display">Display[·...·truncated·by·diffoscope;·len:·68,·SHA:·8424b34a084feeb93d34ff2237ea4d71e7352fc393b9c64dd3d9a2fd90145759·...·]/core/primitive.reference.html">&amp;T</a><div·class="where">where70 ····Ptr:·<a·class="trait"·href="trait.Display.html"·title="trait·alloc::fmt::Display">Display</a>,</div></h3></section><section·id="impl-Display-for-%26T"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/fmt/mod.rs.html#2403">Source</a></span><a·href="#impl-Display-for-%26T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="trait.Display.html"·title="trait·alloc::fmt::Display">Display</a>·for·<a·class="primitiv[·...·truncated·by·diffoscope;·len:·14,·SHA:·4105980ca4887a52797067761af25a11e3de6069cd8d7c8ce82cd885bb798fe8·...·]/core/primitive.reference.html">&amp;T</a><div·class="where">where
71 ····T:·<a·class="trait"·href="trait.Display.html"·title="trait·alloc::fmt::Display">Display</a>·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section><section·id="impl-Display-for-%26mut+T"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·versio[·...·truncated·by·diffoscope;·len:·373,·SHA:·6e9d7386967b3dd63ead669b7b61d775234cb97679130ea1ad76e39ab17bf042·...·]/core/primitive.reference.html">&amp;mut·T</a><div·class="where">where71 ····T:·<a·class="trait"·href="trait.Display.html"·title="trait·alloc::fmt::Display">Display</a>·+·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section><section·id="impl-Display-for-%26mut+T"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·[·...·truncated·by·diffoscope;·len:·292,·SHA:·a9d4a14a26e2e0d8347bf6b73b895da85b34070d0a693a77cf2be5a0bee4f04e·...·]/core/primitive.reference.html">&amp;mut·T</a><div·class="where">where
72 ····T:·<a·class="trait"·href="trait.Display.html"·title="trait·alloc::fmt::Display">Display</a>·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section><section·id="impl-Display-for-Ref%3C'_,+T%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·[·...·truncated·by·diffoscope;·len:·381,·SHA:·5df5a42369156088d1a8e5e226fd08e8ace376b3f84c949f859edead87d4639e·...·]/core/cell/struct.Ref.html"·title="struct·core::cell::Ref">Ref</a>&lt;'_,·T&gt;<div·class="where">where72 ····T:·<a·class="trait"·href="trait.Display.html"·title="trait·alloc::fmt::Display">Display</a>·+·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section><section·id="impl-Display-for-Ref%3C'_,+T%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.20.0">1.20.0</spa[·...·truncated·by·diffoscope;·len:·300,·SHA:·071773af406aae8a02a4820a74e6d4081ce54b96f9a425b66dacebe870e11293·...·]/core/cell/struct.Ref.html"·title="struct·core::cell::Ref">Ref</a>&lt;'_,·T&gt;<div·class="where">where
73 ····T:·<a·class="trait"·href="trait.Display.html"·title="trait·alloc::fmt::Display">Display</a>·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section><section·id="impl-Display-for-RefMut%3C'_,+T%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Ru[·...·truncated·by·diffoscope;·len:·387,·SHA:·7af0c3cfaec6f75cab5a3de4bc796fe0066670bd2c5aa810587fc35198a62403·...·]/core/cell/struct.RefMut.html"·title="struct·core::cell::RefMut">RefMut</a>&lt;'_,·T&gt;<div·class="where">where73 ····T:·<a·class="trait"·href="trait.Display.html"·title="trait·alloc::fmt::Display">Display</a>·+·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section><section·id="impl-Display-for-RefMut%3C'_,+T%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.20.0">1.20.0</[·...·truncated·by·diffoscope;·len:·306,·SHA:·33f1ec6a6a514c1d3827de8634f0831406327e540eeedea0832b2ed2dd0703cb·...·]/core/cell/struct.RefMut.html"·title="struct·core::cell::RefMut">RefMut</a>&lt;'_,·T&gt;<div·class="where">where
74 ····T:·<a·class="trait"·href="trait.Display.html"·title="trait·alloc::fmt::Display">Display</a>·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section><section·id="impl-Display-for-NonZero%3CT%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·[·...·truncated·by·diffoscope;·len:·391,·SHA:·740d729039a5bf74a596b9912eacb097ace7d37f5041db3566dd7417b914d2b4·...·]/core/num/nonzero/struct.NonZero.html"·title="struct·core::num::nonzero::NonZero">NonZero</a>&lt;T&gt;<div·class="where">where74 ····T:·<a·class="trait"·href="trait.Display.html"·title="trait·alloc::fmt::Display">Display</a>·+·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section><section·id="impl-Display-for-NonZero%3CT%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.28.0">1.28.0</spa[·...·truncated·by·diffoscope;·len:·310,·SHA:·397190e996ae702cafd44ed446b42bd6420b5e1e65345e48ad43ed1646070eef·...·]/core/num/nonzero/struct.NonZero.html"·title="struct·core::num::nonzero::NonZero">NonZero</a>&lt;T&gt;<div·class="where">where
75 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/num/nonzero/trait.ZeroablePrimitive.html"·title="trait·core::num::nonzero::ZeroablePrimitive">ZeroablePrimitive</a>·+·<a·class="trait"·href="trait.Display.html"·title="trait·alloc::fmt::Display">Display</a>,</div></h3>[·...·truncated·by·diffoscope;·len:·533,·SHA:·68c459d223e246366a9e1d5d78f6eea84a90d3524d86125e31c1b2750414ed8e·...·]/core/num/saturating/struct.Saturating.html"·title="struct·core::num::saturating::Saturating">Saturating</a>&lt;T&gt;<div·class="where">where75 ····T:·<a·class="trait"·href="../../core/num/nonzero/trait.ZeroablePrimitive.html"·title="trait·core::num::nonzero::ZeroablePrimitive">ZeroablePrimitive</a>·+·<a·class="trait"·href="trait.Display.html"·title="trait·alloc::fmt::Display">Display</a>,</div></h3></section><section·id="impl[·...·truncated·by·diffoscope;·len:·452,·SHA:·9007bd627029afaa70147b5ac6ea3d11ad125cf17b683731ac96f6d5cfe3e758·...·]/core/num/saturating/struct.Saturating.html"·title="struct·core::num::saturating::Saturating">Saturating</a>&lt;T&gt;<div·class="where">where
76 ····T:·<a·class="trait"·href="trait.Display.html"·title="trait·alloc::fmt::Display">Display</a>,</div></h3></section><section·id="impl-Display-for-Wrapping%3CT%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.10.0">1.10.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/num/wrapping.rs.html#53">Source</a></span><a·href="#impl-Display-for-Wrapping%3CT%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="trait.Display.html"·title="trait·alloc::fmt::Di[·...·truncated·by·diffoscope;·len:·79,·SHA:·9f5deb2ffdb6e9b8d8e5acfb121299cd8f94b968d5e43af98b1986cfaca73439·...·]/core/num/wrapping/struct.Wrapping.html"·title="struct·core::num::wrapping::Wrapping">Wrapping</a>&lt;T&gt;<div·class="where">where76 ····T:·<a·class="trait"·href="trait.Display.html"·title="trait·alloc::fmt::Display">Display</a>,</div></h3></section><section·id="impl-Display-for-Wrapping%3CT%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.10.0">1.10.0</span>···<a·class="src"·href="../../src/core/num/wrapping.rs.html#53">Source</a></span><a·href="#impl-Display-for-Wrapping%3CT%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="trait.Display.html"·title="trait·alloc::fmt::Display">Display</a>·for·<a·c[·...·truncated·by·diffoscope;·len:·25,·SHA:·915246b5e79d4ebd991c4c2c48ff27c1349907882fd6e9fd65c91e406008405b·...·]/core/num/wrapping/struct.Wrapping.html"·title="struct·core::num::wrapping::Wrapping">Wrapping</a>&lt;T&gt;<div·class="where">where
77 ····T:·<a·class="trait"·href="trait.Display.html"·title="trait·alloc::fmt::Display">Display</a>,</div></h3></section><section·id="impl-Display-for-Box%3CT,+A%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/alloc/boxed.rs.html#1922-1926">Source</a></span><a·href="#impl-Display-for-Box%3CT,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T:·<a·class="trait"·href="trait.Display.html"·title="trait·alloc::fmt::Display">Display</a>·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,·A:·<a·class="trait"·href="../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>&gt;·<a·class="trait"·href="trait.Displa[·...·truncated·by·diffoscope;·len:·3139,·SHA:·9578ceacce7f79d8a4f8411b7b09cb9e80e165032aaa562b95d020023338b7a9·...·]/core/slice/struct.GetManyMutError.html"·title="struct·core::slice::GetManyMutError">GetManyMutError</a>&lt;N&gt;</h3></section></div><script·src="../../trait.impl/core/fmt/trait.Display.js"·data-ignore-extern-crates="core"·async></script></section></div></main></body></html>77 ····T:·<a·class="trait"·href="trait.Display.html"·title="trait·alloc::fmt::Display">Display</a>,</div></h3></section><section·id="impl-Display-for-Box%3CT,+A%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/alloc/boxed.rs.html#1922-1926">Source</a></span><a·href="#impl-Display-for-Box%3CT,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T:·<a·class="trait"·href="trait.Display.html"·title="trait·alloc::fmt::Display">Display</a>·+·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,·A:·<a·class="trait"·href="../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>&gt;·<a·class="trait"·href="trait.Display.html"·title="trait·alloc:[·...·truncated·by·diffoscope;·len:·2950,·SHA:·1efca1bef70dc2b93fafe2435791c109827333988cb2693851633ba75be93e20·...·]/core/slice/struct.GetManyMutError.html"·title="struct·core::slice::GetManyMutError">GetManyMutError</a>&lt;N&gt;</h3></section></div><script·src="../../trait.impl/core/fmt/trait.Display.js"·data-ignore-extern-crates="core"·async></script></section></div></main></body></html>
6.65 KB
html2text {}
Max HTML report size reached
32.6 KB
./usr/share/doc/rust-doc/html/alloc/fmt/trait.LowerExp.html
    
Offset 1, 10 lines modifiedOffset 1, 10 lines modified
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="`e`·formatting."><title>LowerExp·in·alloc::fmt·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»    2025-01-07)» (built»   from»       a»      source»tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Lower<wbr>Exp</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#examples"·title="Examples">Examples</a></li></ul><h3><a·href="#required-methods">Required·Methods</a></h3><ul·class="block"><li><a·href="#tymethod.fmt"·title="fmt">fmt</a></li></ul><h3><a·href="#implementors">Implementors</a></h3></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>fmt</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">alloc</a>::<wbr><a·href="index.html">fmt</a></span><h1>Trait·<span·class="trait">LowerExp</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/fmt/mod.rs.html#1082">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·trait·LowerExp·{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="`e`·formatting."><title>LowerExp·in·alloc::fmt·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»    2025-01-07)» (built»   from»       a»      source»tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Lower<wbr>Exp</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#examples"·title="Examples">Examples</a></li></ul><h3><a·href="#required-methods">Required·Methods</a></h3><ul·class="block"><li><a·href="#tymethod.fmt"·title="fmt">fmt</a></li></ul><h3><a·href="#implementors">Implementors</a></h3></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>fmt</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">alloc</a>::<wbr><a·href="index.html">fmt</a></span><h1>Trait·<span·class="trait">LowerExp</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../src/core/fmt/mod.rs.html#1082">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·trait·LowerExp·{
2 ····//·Required·method2 ····//·Required·method
3 ····fn·<a·href="#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="struct.Formatter.html"·title="struct·alloc::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.Error.html"·title="struct·alloc::fmt::Error">Error</a>&gt;;3 ····fn·<a·href="#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="struct.Formatter.html"·title="struct·alloc::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="primitive"·href="../../core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.Error.html"·title="struct·alloc::fmt::Error">Error</a>&gt;;
4 }</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p><code>e</code>·formatting.</p>4 }</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p><code>e</code>·formatting.</p>
5 <p>The·<code>LowerExp</code>·trait·should·format·its·output·in·scientific·notation·with·a·lower-case·<code>e</code>.</p>5 <p>The·<code>LowerExp</code>·trait·should·format·its·output·in·scientific·notation·with·a·lower-case·<code>e</code>.</p>
6 <p>For·more·information·on·formatters,·see·<a·href="../../std/fmt/index.html">the·module-level·documentation</a>.</p>6 <p>For·more·information·on·formatters,·see·<a·href="../../std/fmt/index.html">the·module-level·documentation</a>.</p>
7 <h2·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h2>7 <h2·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h2>
8 <p>Basic·usage·with·<code>f64</code>:</p>8 <p>Basic·usage·with·<code>f64</code>:</p>
  
9 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span>x·=·<span·class="number">42.0</span>;·<span·class="comment">//·42.0·is·'4.2e1'·in·scientific·notation9 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span>x·=·<span·class="number">42.0</span>;·<span·class="comment">//·42.0·is·'4.2e1'·in·scientific·notation
Offset 30, 17 lines modifiedOffset 30, 17 lines modified
30 ····<span·class="string">"l·in·scientific·notation·is:·1e2"30 ····<span·class="string">"l·in·scientific·notation·is:·1e2"
31 </span>);31 </span>);
  
32 <span·class="macro">assert_eq!</span>(32 <span·class="macro">assert_eq!</span>(
33 ····<span·class="macro">format!</span>(<span·class="string">"l·in·scientific·notation·is:·{l:05e}"</span>),33 ····<span·class="macro">format!</span>(<span·class="string">"l·in·scientific·notation·is:·{l:05e}"</span>),
34 ····<span·class="string">"l·in·scientific·notation·is:·001e2"34 ····<span·class="string">"l·in·scientific·notation·is:·001e2"
35 </span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::fmt;%0A++++%0A++++struct+Length(i32);%0A++++%0A++++impl+fmt::LowerExp+for+Length+%7B%0A++++++++fn+fmt(%26self,+f:+%26mut+fmt::Formatter%3C'_%3E)+-%3E+fmt::Result+%7B%0A++++++++++++let+val+=+f64::from(self.0);%0A++++++++++++fmt::LowerExp::fmt(%26val,+f)+//+delegate+to+f64's+implementation%0A++++++++%7D%0A++++%7D%0A++++%0A++++let+l+=+Length(100);%0A++++%0A++++assert_eq!(%0A++++++++format!(%22l+in+scientific+notation+is:+%7Bl:e%7D%22),%0A++++++++%22l+in+scientific+notation+is:+1e2%22%0A++++);%0A++++%0A++++assert_eq!(%0A++++++++format!(%22l+in+scientific+notation+is:+%7Bl:05e%7D%22),%0A++++++++%22l+in+scientific+notation+is:+001e2%22%0A++++);%0A%7D&amp;edition=2021"></a></div>35 </span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::fmt;%0A++++%0A++++struct+Length(i32);%0A++++%0A++++impl+fmt::LowerExp+for+Length+%7B%0A++++++++fn+fmt(%26self,+f:+%26mut+fmt::Formatter%3C'_%3E)+-%3E+fmt::Result+%7B%0A++++++++++++let+val+=+f64::from(self.0);%0A++++++++++++fmt::LowerExp::fmt(%26val,+f)+//+delegate+to+f64's+implementation%0A++++++++%7D%0A++++%7D%0A++++%0A++++let+l+=+Length(100);%0A++++%0A++++assert_eq!(%0A++++++++format!(%22l+in+scientific+notation+is:+%7Bl:e%7D%22),%0A++++++++%22l+in+scientific+notation+is:+1e2%22%0A++++);%0A++++%0A++++assert_eq!(%0A++++++++format!(%22l+in+scientific+notation+is:+%7Bl:05e%7D%22),%0A++++++++%22l+in+scientific+notation+is:+001e2%22%0A++++);%0A%7D&amp;edition=2021"></a></div>
36 </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.fmt"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/fmt/mod.rs.html#1085">Source</a></span><h4·class="code-header">fn·<a·href="#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="struct.Formatter.html"·title="struct·alloc::fmt::Formatter[·...·truncated·by·diffoscope;·len:·225,·SHA:·d032443a2d115b1c0e999d10a129830d9ddf6681ef45af6504aa36a7b7245dc2·...·]/core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.Error.html"·title="struct·alloc::fmt::Error">Error</a>&gt;</h4></section></summary><div·class="docblock"><p>Formats·the·value·using·the·given·formatter.</p>36 </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.fmt"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/fmt/mod.rs.html#1085">Source</a></span><h4·class="code-header">fn·<a·href="#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="struct.Formatter.html"·title="struct·alloc::fmt::Formatter">Formatter</a>&lt;'_&gt;)·[·...·truncated·by·diffoscope;·len:·144,·SHA:·1c0a5aecc6d2658668832307964321f8bdd3297274461f3e8a39b4d3b2223172·...·]/core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.Error.html"·title="struct·alloc::fmt::Error">Error</a>&gt;</h4></section></summary><div·class="docblock"><p>Formats·the·value·using·the·given·formatter.</p>
37 <h5·id="errors"><a·class="doc-anchor"·href="#errors">§</a>Errors</h5>37 <h5·id="errors"><a·class="doc-anchor"·href="#errors">§</a>Errors</h5>
38 <p>This·function·should·return·<a·href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html#variant.Err"·title="variant·core::result::Result::Err"><code>Err</code></a>·if,·and·only·if,·the·provided·<a·href="struct.Formatter.html"·title="struct·alloc::fmt::Formatter"><code>Formatter</co[·...·truncated·by·diffoscope;·len:·57,·SHA:·83a1bf55ff257cd023d246ece47b621fb9956d5c6485b30ed8a0a787981f1416·...·]/core/result/enum.Result.html#variant.Err"·title="variant·core::result::Result::Err"><code>Err</code></a>.38 <p>This·function·should·return·<a·href="../../core/result/enum.Result.html#variant.Err"·title="variant·core::result::Result::Err"><code>Err</code></a>·if,·and·only·if,·the·provided·<a·href="struct.Formatter.html"·title="struct·alloc::fmt::Formatter"><code>Formatter</code></a>·returns·<a·href="..[·...·truncated·by·diffoscope;·len:·3,·SHA:·3a6aebc03771052df0b39b1b45998cbc989aa9d1c3dcbd6c39551085aca533bb·...·]/core/result/enum.Result.html#variant.Err"·title="variant·core::result::Result::Err"><code>Err</code></a>.
39 String·formatting·is·considered·an·infallible·operation;·this·function·only39 String·formatting·is·considered·an·infallible·operation;·this·function·only
40 returns·a·<a·href="type.Result.html"·title="type·alloc::fmt::Result"><code>Result</code></a>·because·writing·to·the·underlying·stream·might·fail·and·it·must40 returns·a·<a·href="type.Result.html"·title="type·alloc::fmt::Result"><code>Result</code></a>·because·writing·to·the·underlying·stream·might·fail·and·it·must
41 provide·a·way·to·propagate·the·fact·that·an·error·has·occurred·back·up·the·stack.</p>41 provide·a·way·to·propagate·the·fact·that·an·error·has·occurred·back·up·the·stack.</p>
42 </div></details></div><h2·id="implementors"·class="section-header">Implementors<a·href="#implementors"·class="anchor">§</a></h2><div·id="implementors-list"><section·id="impl-LowerExp-for-f32"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/fmt/float.rs.html#232">Source</a></span><a·href="#impl-LowerExp-for-f32"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="trait.LowerExp.html"·title="trait·alloc::fmt::LowerExp">LowerExp</a>·[·...·truncated·by·diffoscope;·len:·7593,·SHA:·d843cfe37362d81f0f4586f9e86d481a2fb0a90f0dd02c27be436eda6c65b07d·...·]/core/primitive.reference.html">&amp;T</a><div·class="where">where42 </div></details></div><h2·id="implementors"·class="section-header">Implementors<a·href="#implementors"·class="anchor">§</a></h2><div·id="implementors-list"><section·id="impl-LowerExp-for-f32"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/fmt/float.rs.html#232">Source</a></span><a·href="#impl-LowerExp-for-f32"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="trait.LowerExp.html"·title="trait·alloc::fmt::LowerExp">LowerExp</a>·for·<a·class="primitive"·hr[·...·truncated·by·diffoscope;·len:·6783,·SHA:·be1a313f2c98fd4e21c6593f183af637af0409eea71654b967a51ffca60a0c7d·...·]/core/primitive.reference.html">&amp;T</a><div·class="where">where
43 ····T:·<a·class="trait"·href="trait.LowerExp.html"·title="trait·alloc::fmt::LowerExp">LowerExp</a>·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section><section·id="impl-LowerExp-for-%26mut+T"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·versi[·...·truncated·by·diffoscope;·len:·378,·SHA:·dfbfd2d728f35284355a32f6ca29555ebb5544d075e3c43b291062ed216ff512·...·]/core/primitive.reference.html">&amp;mut·T</a><div·class="where">where43 ····T:·<a·class="trait"·href="trait.LowerExp.html"·title="trait·alloc::fmt::LowerExp">LowerExp</a>·+·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section><section·id="impl-LowerExp-for-%26mut+T"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a[·...·truncated·by·diffoscope;·len:·297,·SHA:·18407c1e4c34a0dd13374923755ace73504e21951382b591cf972492f057f63f·...·]/core/primitive.reference.html">&amp;mut·T</a><div·class="where">where
44 ····T:·<a·class="trait"·href="trait.LowerExp.html"·title="trait·alloc::fmt::LowerExp">LowerExp</a>·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section><section·id="impl-LowerExp-for-NonZero%3CT%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust[·...·truncated·by·diffoscope;·len:·396,·SHA:·bbae15f7ac8a034d2f6a5cdb67e4c0e69f2ada2cc72ba00dbfd03f9e4ba97521·...·]/core/num/nonzero/struct.NonZero.html"·title="struct·core::num::nonzero::NonZero">NonZero</a>&lt;T&gt;<div·class="where">where44 ····T:·<a·class="trait"·href="trait.LowerExp.html"·title="trait·alloc::fmt::LowerExp">LowerExp</a>·+·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section><section·id="impl-LowerExp-for-NonZero%3CT%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.84.0">1.84.0</sp[·...·truncated·by·diffoscope;·len:·315,·SHA:·5b2d265cc34483377b4d960d299f13778e5a49f302b8668120a259e24d19cb74·...·]/core/num/nonzero/struct.NonZero.html"·title="struct·core::num::nonzero::NonZero">NonZero</a>&lt;T&gt;<div·class="where">where
45 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/num/nonzero/trait.ZeroablePrimitive.html"·title="trait·core::num::nonzero::ZeroablePrimitive">ZeroablePrimitive</a>·+·<a·class="trait"·href="trait.LowerExp.html"·title="trait·alloc::fmt::LowerExp">LowerExp</a>,</div></h3></section></div><script·src="../../trait.impl/core/fmt/trait.LowerExp.js"·data-ignore-extern-crates="core"·async></script></section></div></main></body></html>45 ····T:·<a·class="trait"·href="../../core/num/nonzero/trait.ZeroablePrimitive.html"·title="trait·core::num::nonzero::ZeroablePrimitive">ZeroablePrimitive</a>·+·<a·class="trait"·href="trait.LowerExp.html"·title="trait·alloc::fmt::LowerExp">LowerExp</a>,</div></h3></section></div><script·src="../../trait.impl/core/fmt/trait.LowerExp.js"·data-ignore-extern-crates="core"·async></script></section></div></main></body></html>
33.3 KB
./usr/share/doc/rust-doc/html/alloc/fmt/trait.LowerHex.html
    
Offset 1, 10 lines modifiedOffset 1, 10 lines modified
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="`x`·formatting."><title>LowerHex·in·alloc::fmt·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»    2025-01-07)» (built»   from»       a»      source»tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Lower<wbr>Hex</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#examples"·title="Examples">Examples</a></li></ul><h3><a·href="#required-methods">Required·Methods</a></h3><ul·class="block"><li><a·href="#tymethod.fmt"·title="fmt">fmt</a></li></ul><h3><a·href="#implementors">Implementors</a></h3></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>fmt</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">alloc</a>::<wbr><a·href="index.html">fmt</a></span><h1>Trait·<span·class="trait">LowerHex</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/fmt/mod.rs.html#917">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·trait·LowerHex·{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="`x`·formatting."><title>LowerHex·in·alloc::fmt·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»    2025-01-07)» (built»   from»       a»      source»tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Lower<wbr>Hex</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#examples"·title="Examples">Examples</a></li></ul><h3><a·href="#required-methods">Required·Methods</a></h3><ul·class="block"><li><a·href="#tymethod.fmt"·title="fmt">fmt</a></li></ul><h3><a·href="#implementors">Implementors</a></h3></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>fmt</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">alloc</a>::<wbr><a·href="index.html">fmt</a></span><h1>Trait·<span·class="trait">LowerHex</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../src/core/fmt/mod.rs.html#917">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·trait·LowerHex·{
2 ····//·Required·method2 ····//·Required·method
3 ····fn·<a·href="#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="struct.Formatter.html"·title="struct·alloc::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.Error.html"·title="struct·alloc::fmt::Error">Error</a>&gt;;3 ····fn·<a·href="#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="struct.Formatter.html"·title="struct·alloc::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="primitive"·href="../../core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.Error.html"·title="struct·alloc::fmt::Error">Error</a>&gt;;
4 }</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p><code>x</code>·formatting.</p>4 }</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p><code>x</code>·formatting.</p>
5 <p>The·<code>LowerHex</code>·trait·should·format·its·output·as·a·number·in·hexadecimal,·with·<code>a</code>·through·<code>f</code>5 <p>The·<code>LowerHex</code>·trait·should·format·its·output·as·a·number·in·hexadecimal,·with·<code>a</code>·through·<code>f</code>
6 in·lower·case.</p>6 in·lower·case.</p>
7 <p>For·primitive·signed·integers·(<code>i8</code>·to·<code>i128</code>,·and·<code>isize</code>),7 <p>For·primitive·signed·integers·(<code>i8</code>·to·<code>i128</code>,·and·<code>isize</code>),
8 negative·values·are·formatted·as·the·two’s·complement·representation.</p>8 negative·values·are·formatted·as·the·two’s·complement·representation.</p>
9 <p>The·alternate·flag,·<code>#</code>,·adds·a·<code>0x</code>·in·front·of·the·output.</p>9 <p>The·alternate·flag,·<code>#</code>,·adds·a·<code>0x</code>·in·front·of·the·output.</p>
10 <p>For·more·information·on·formatters,·see·<a·href="../../std/fmt/index.html">the·module-level·documentation</a>.</p>10 <p>For·more·information·on·formatters,·see·<a·href="../../std/fmt/index.html">the·module-level·documentation</a>.</p>
Offset 32, 19 lines modifiedOffset 32, 19 lines modified
32 }32 }
  
33 <span·class="kw">let·</span>l·=·Length(<span·class="number">9</span>);33 <span·class="kw">let·</span>l·=·Length(<span·class="number">9</span>);
  
34 <span·class="macro">assert_eq!</span>(<span·class="macro">format!</span>(<span·class="string">"l·as·hex·is:·{l:x}"</span>),·<span·class="string">"l·as·hex·is:·9"</span>);34 <span·class="macro">assert_eq!</span>(<span·class="macro">format!</span>(<span·class="string">"l·as·hex·is:·{l:x}"</span>),·<span·class="string">"l·as·hex·is:·9"</span>);
  
35 <span·class="macro">assert_eq!</span>(<span·class="macro">format!</span>(<span·class="string">"l·as·hex·is:·{l:#010x}"</span>),·<span·class="string">"l·as·hex·is:·0x00000009"</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::fmt;%0A++++%0A++++struct+Length(i32);%0A++++%0A++++impl+fmt::LowerHex+for+Length+%7B%0A++++++++fn+fmt(%26self,+f:+%26mut+fmt::Formatter%3C'_%3E)+-%3E+fmt::Result+%7B%0A++++++++++++let+val+=+self.0;%0A++++%0A++++++++++++fmt::LowerHex::fmt(%26val,+f)+//+delegate+to+i32's+implementation%0A++++++++%7D%0A++++%7D%0A++++%0A++++let+l+=+Length(9);%0A++++%0A++++assert_eq!(format!(%22l+as+hex+is:+%7Bl:x%7D%22),+%22l+as+hex+is:+9%22);%0A++++%0A++++assert_eq!(format!(%22l+as+hex+is:+%7Bl:%23010x%7D%22),+%22l+as+hex+is:+0x00000009%22);%0A%7D&amp;edition=2021"></a></div>35 <span·class="macro">assert_eq!</span>(<span·class="macro">format!</span>(<span·class="string">"l·as·hex·is:·{l:#010x}"</span>),·<span·class="string">"l·as·hex·is:·0x00000009"</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::fmt;%0A++++%0A++++struct+Length(i32);%0A++++%0A++++impl+fmt::LowerHex+for+Length+%7B%0A++++++++fn+fmt(%26self,+f:+%26mut+fmt::Formatter%3C'_%3E)+-%3E+fmt::Result+%7B%0A++++++++++++let+val+=+self.0;%0A++++%0A++++++++++++fmt::LowerHex::fmt(%26val,+f)+//+delegate+to+i32's+implementation%0A++++++++%7D%0A++++%7D%0A++++%0A++++let+l+=+Length(9);%0A++++%0A++++assert_eq!(format!(%22l+as+hex+is:+%7Bl:x%7D%22),+%22l+as+hex+is:+9%22);%0A++++%0A++++assert_eq!(format!(%22l+as+hex+is:+%7Bl:%23010x%7D%22),+%22l+as+hex+is:+0x00000009%22);%0A%7D&amp;edition=2021"></a></div>
36 </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.fmt"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/fmt/mod.rs.html#920">Source</a></span><h4·class="code-header">fn·<a·href="#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="struct.Formatter.html"·title="struct·alloc::fmt::Formatter"[·...·truncated·by·diffoscope;·len:·224,·SHA:·48a84022878e023eb613a3f4487ef6386c5a6c2f059c6e677d47b590cda1d526·...·]/core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.Error.html"·title="struct·alloc::fmt::Error">Error</a>&gt;</h4></section></summary><div·class="docblock"><p>Formats·the·value·using·the·given·formatter.</p>36 </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.fmt"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/fmt/mod.rs.html#920">Source</a></span><h4·class="code-header">fn·<a·href="#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="struct.Formatter.html"·title="struct·alloc::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-[·...·truncated·by·diffoscope;·len:·143,·SHA:·e947633b98b2c7a3dd8c60aad8594e006491688c0783cf75edcb27124e93f10e·...·]/core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.Error.html"·title="struct·alloc::fmt::Error">Error</a>&gt;</h4></section></summary><div·class="docblock"><p>Formats·the·value·using·the·given·formatter.</p>
37 <h5·id="errors"><a·class="doc-anchor"·href="#errors">§</a>Errors</h5>37 <h5·id="errors"><a·class="doc-anchor"·href="#errors">§</a>Errors</h5>
38 <p>This·function·should·return·<a·href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html#variant.Err"·title="variant·core::result::Result::Err"><code>Err</code></a>·if,·and·only·if,·the·provided·<a·href="struct.Formatter.html"·title="struct·alloc::fmt::Formatter"><code>Formatter</co[·...·truncated·by·diffoscope;·len:·57,·SHA:·83a1bf55ff257cd023d246ece47b621fb9956d5c6485b30ed8a0a787981f1416·...·]/core/result/enum.Result.html#variant.Err"·title="variant·core::result::Result::Err"><code>Err</code></a>.38 <p>This·function·should·return·<a·href="../../core/result/enum.Result.html#variant.Err"·title="variant·core::result::Result::Err"><code>Err</code></a>·if,·and·only·if,·the·provided·<a·href="struct.Formatter.html"·title="struct·alloc::fmt::Formatter"><code>Formatter</code></a>·returns·<a·href="..[·...·truncated·by·diffoscope;·len:·3,·SHA:·3a6aebc03771052df0b39b1b45998cbc989aa9d1c3dcbd6c39551085aca533bb·...·]/core/result/enum.Result.html#variant.Err"·title="variant·core::result::Result::Err"><code>Err</code></a>.
39 String·formatting·is·considered·an·infallible·operation;·this·function·only39 String·formatting·is·considered·an·infallible·operation;·this·function·only
40 returns·a·<a·href="type.Result.html"·title="type·alloc::fmt::Result"><code>Result</code></a>·because·writing·to·the·underlying·stream·might·fail·and·it·must40 returns·a·<a·href="type.Result.html"·title="type·alloc::fmt::Result"><code>Result</code></a>·because·writing·to·the·underlying·stream·might·fail·and·it·must
41 provide·a·way·to·propagate·the·fact·that·an·error·has·occurred·back·up·the·stack.</p>41 provide·a·way·to·propagate·the·fact·that·an·error·has·occurred·back·up·the·stack.</p>
42 </div></details></div><h2·id="implementors"·class="section-header">Implementors<a·href="#implementors"·class="anchor">§</a></h2><div·id="implementors-list"><section·id="impl-LowerHex-for-i8"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/fmt/num.rs.html#168">Source</a></span><a·href="#impl-LowerHex-for-i8"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="trait.LowerHex.html"·title="trait·alloc::fmt::LowerHex">LowerHex</a>·for[·...·truncated·by·diffoscope;·len:·6498,·SHA:·6122283b22657c60b1b3ca94b0c0dcdd7c0161c04aafdabd38365ce9817805c6·...·]/core/primitive.reference.html">&amp;T</a><div·class="where">where42 </div></details></div><h2·id="implementors"·class="section-header">Implementors<a·href="#implementors"·class="anchor">§</a></h2><div·id="implementors-list"><section·id="impl-LowerHex-for-i8"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/fmt/num.rs.html#168">Source</a></span><a·href="#impl-LowerHex-for-i8"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="trait.LowerHex.html"·title="trait·alloc::fmt::LowerHex">LowerHex</a>·for·<a·class="primitive"·href=[·...·truncated·by·diffoscope;·len:·5796,·SHA:·d2299a1c3f09d318d8dacadf391404764f5e922b0933943732e1cbcd73eec534·...·]/core/primitive.reference.html">&amp;T</a><div·class="where">where
43 ····T:·<a·class="trait"·href="trait.LowerHex.html"·title="trait·alloc::fmt::LowerHex">LowerHex</a>·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section><section·id="impl-LowerHex-for-%26mut+T"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·versi[·...·truncated·by·diffoscope;·len:·378,·SHA:·7f6dc3c9b23c3a695d3923c0bde5120ee5bc3e488c9c3c7ae589050dbe6eacb6·...·]/core/primitive.reference.html">&amp;mut·T</a><div·class="where">where43 ····T:·<a·class="trait"·href="trait.LowerHex.html"·title="trait·alloc::fmt::LowerHex">LowerHex</a>·+·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section><section·id="impl-LowerHex-for-%26mut+T"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a[·...·truncated·by·diffoscope;·len:·297,·SHA:·6c931e0d859181efad43b955616dc6d6b4f4bb0f4cc481715d7046a504ff96bc·...·]/core/primitive.reference.html">&amp;mut·T</a><div·class="where">where
44 ····T:·<a·class="trait"·href="trait.LowerHex.html"·title="trait·alloc::fmt::LowerHex">LowerHex</a>·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section><section·id="impl-LowerHex-for-NonZero%3CT%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust[·...·truncated·by·diffoscope;·len:·396,·SHA:·a80a08d4e27ba03a658246975f8913d9892d82d1a5d811d85714f7b8a6ed1705·...·]/core/num/nonzero/struct.NonZero.html"·title="struct·core::num::nonzero::NonZero">NonZero</a>&lt;T&gt;<div·class="where">where44 ····T:·<a·class="trait"·href="trait.LowerHex.html"·title="trait·alloc::fmt::LowerHex">LowerHex</a>·+·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section><section·id="impl-LowerHex-for-NonZero%3CT%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.28.0">1.28.0</sp[·...·truncated·by·diffoscope;·len:·315,·SHA:·703cdb3fcb12eb24686a2ded412771b755ea94f06dbc879180d8283890f6a215·...·]/core/num/nonzero/struct.NonZero.html"·title="struct·core::num::nonzero::NonZero">NonZero</a>&lt;T&gt;<div·class="where">where
45 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/num/nonzero/trait.ZeroablePrimitive.html"·title="trait·core::num::nonzero::ZeroablePrimitive">ZeroablePrimitive</a>·+·<a·class="trait"·href="trait.LowerHex.html"·title="trait·alloc::fmt::LowerHex">LowerHex</a>,</div></[·...·truncated·by·diffoscope;·len:·541,·SHA:·84690ef64aa42d2a57627a05c5ef38ea0cc96158062809ff004de41d65df35d1·...·]/core/num/saturating/struct.Saturating.html"·title="struct·core::num::saturating::Saturating">Saturating</a>&lt;T&gt;<div·class="where">where45 ····T:·<a·class="trait"·href="../../core/num/nonzero/trait.ZeroablePrimitive.html"·title="trait·core::num::nonzero::ZeroablePrimitive">ZeroablePrimitive</a>·+·<a·class="trait"·href="trait.LowerHex.html"·title="trait·alloc::fmt::LowerHex">LowerHex</a>,</div></h3></section><section·id="i[·...·truncated·by·diffoscope;·len:·460,·SHA:·fe96b6c430bc26c0e7bc0ccb953edb4b7aa81abddae57cbf2bb3dcaae0b6f0be·...·]/core/num/saturating/struct.Saturating.html"·title="struct·core::num::saturating::Saturating">Saturating</a>&lt;T&gt;<div·class="where">where
46 ····T:·<a·class="trait"·href="trait.LowerHex.html"·title="trait·alloc::fmt::LowerHex">LowerHex</a>,</div></h3></section><section·id="impl-LowerHex-for-Wrapping%3CT%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.11.0">1.11.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/num/wrapping.rs.html#74">Source</a></span><a·href="#impl-LowerHex-for-Wrapping%3CT%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="trait.LowerHex.html"·title="trait·alloc::fmt::[·...·truncated·by·diffoscope;·len:·83,·SHA:·1bebb5a8db88497d2018f96b2debe32f68c3ed09f7103ab03958ab0390da6260·...·]/core/num/wrapping/struct.Wrapping.html"·title="struct·core::num::wrapping::Wrapping">Wrapping</a>&lt;T&gt;<div·class="where">where46 ····T:·<a·class="trait"·href="trait.LowerHex.html"·title="trait·alloc::fmt::LowerHex">LowerHex</a>,</div></h3></section><section·id="impl-LowerHex-for-Wrapping%3CT%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.11.0">1.11.0</span>···<a·class="src"·href="../../src/core/num/wrapping.rs.html#74">Source</a></span><a·href="#impl-LowerHex-for-Wrapping%3CT%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="trait.LowerHex.html"·title="trait·alloc::fmt::LowerHex">LowerHex</a>·for·[·...·truncated·by·diffoscope;·len:·29,·SHA:·f42299b496ed6ce79be9ceef4d2ea4b698f0d9044b56576d83ab06deebff7c74·...·]/core/num/wrapping/struct.Wrapping.html"·title="struct·core::num::wrapping::Wrapping">Wrapping</a>&lt;T&gt;<div·class="where">where
47 ····T:·<a·class="trait"·href="trait.LowerHex.html"·title="trait·alloc::fmt::LowerHex">LowerHex</a>,</div></h3></section></div><script·src="../../trait.impl/core/fmt/trait.LowerHex.js"·data-ignore-extern-crates="core"·async></script></section></div></main></body></html>47 ····T:·<a·class="trait"·href="trait.LowerHex.html"·title="trait·alloc::fmt::LowerHex">LowerHex</a>,</div></h3></section></div><script·src="../../trait.impl/core/fmt/trait.LowerHex.js"·data-ignore-extern-crates="core"·async></script></section></div></main></body></html>
32.7 KB
./usr/share/doc/rust-doc/html/alloc/fmt/trait.Octal.html
    
Offset 1, 10 lines modifiedOffset 1, 10 lines modified
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="`o`·formatting."><title>Octal·in·alloc::fmt·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»       2025-01-07)»    (built»      from»  a» source»   tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Octal</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#examples"·title="Examples">Examples</a></li></ul><h3><a·href="#required-methods">Required·Methods</a></h3><ul·class="block"><li><a·href="#tymethod.fmt"·title="fmt">fmt</a></li></ul><h3><a·href="#implementors">Implementors</a></h3></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>fmt</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">alloc</a>::<wbr><a·href="index.html">fmt</a></span><h1>Trait·<span·class="trait">Octal</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/fmt/mod.rs.html#803">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·trait·Octal·{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="`o`·formatting."><title>Octal·in·alloc::fmt·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»       2025-01-07)»    (built»      from»  a» source»   tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Octal</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#examples"·title="Examples">Examples</a></li></ul><h3><a·href="#required-methods">Required·Methods</a></h3><ul·class="block"><li><a·href="#tymethod.fmt"·title="fmt">fmt</a></li></ul><h3><a·href="#implementors">Implementors</a></h3></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>fmt</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">alloc</a>::<wbr><a·href="index.html">fmt</a></span><h1>Trait·<span·class="trait">Octal</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../src/core/fmt/mod.rs.html#803">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·trait·Octal·{
2 ····//·Required·method2 ····//·Required·method
3 ····fn·<a·href="#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="struct.Formatter.html"·title="struct·alloc::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.Error.html"·title="struct·alloc::fmt::Error">Error</a>&gt;;3 ····fn·<a·href="#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="struct.Formatter.html"·title="struct·alloc::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="primitive"·href="../../core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.Error.html"·title="struct·alloc::fmt::Error">Error</a>&gt;;
4 }</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p><code>o</code>·formatting.</p>4 }</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p><code>o</code>·formatting.</p>
5 <p>The·<code>Octal</code>·trait·should·format·its·output·as·a·number·in·base-8.</p>5 <p>The·<code>Octal</code>·trait·should·format·its·output·as·a·number·in·base-8.</p>
6 <p>For·primitive·signed·integers·(<code>i8</code>·to·<code>i128</code>,·and·<code>isize</code>),6 <p>For·primitive·signed·integers·(<code>i8</code>·to·<code>i128</code>,·and·<code>isize</code>),
7 negative·values·are·formatted·as·the·two’s·complement·representation.</p>7 negative·values·are·formatted·as·the·two’s·complement·representation.</p>
8 <p>The·alternate·flag,·<code>#</code>,·adds·a·<code>0o</code>·in·front·of·the·output.</p>8 <p>The·alternate·flag,·<code>#</code>,·adds·a·<code>0o</code>·in·front·of·the·output.</p>
9 <p>For·more·information·on·formatters,·see·<a·href="../../std/fmt/index.html">the·module-level·documentation</a>.</p>9 <p>For·more·information·on·formatters,·see·<a·href="../../std/fmt/index.html">the·module-level·documentation</a>.</p>
10 <h2·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h2>10 <h2·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h2>
Offset 31, 19 lines modifiedOffset 31, 19 lines modified
31 }31 }
  
32 <span·class="kw">let·</span>l·=·Length(<span·class="number">9</span>);32 <span·class="kw">let·</span>l·=·Length(<span·class="number">9</span>);
  
33 <span·class="macro">assert_eq!</span>(<span·class="macro">format!</span>(<span·class="string">"l·as·octal·is:·{l:o}"</span>),·<span·class="string">"l·as·octal·is:·11"</span>);33 <span·class="macro">assert_eq!</span>(<span·class="macro">format!</span>(<span·class="string">"l·as·octal·is:·{l:o}"</span>),·<span·class="string">"l·as·octal·is:·11"</span>);
  
34 <span·class="macro">assert_eq!</span>(<span·class="macro">format!</span>(<span·class="string">"l·as·octal·is:·{l:#06o}"</span>),·<span·class="string">"l·as·octal·is:·0o0011"</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::fmt;%0A++++%0A++++struct+Length(i32);%0A++++%0A++++impl+fmt::Octal+for+Length+%7B%0A++++++++fn+fmt(%26self,+f:+%26mut+fmt::Formatter%3C'_%3E)+-%3E+fmt::Result+%7B%0A++++++++++++let+val+=+self.0;%0A++++%0A++++++++++++fmt::Octal::fmt(%26val,+f)+//+delegate+to+i32's+implementation%0A++++++++%7D%0A++++%7D%0A++++%0A++++let+l+=+Length(9);%0A++++%0A++++assert_eq!(format!(%22l+as+octal+is:+%7Bl:o%7D%22),+%22l+as+octal+is:+11%22);%0A++++%0A++++assert_eq!(format!(%22l+as+octal+is:+%7Bl:%2306o%7D%22),+%22l+as+octal+is:+0o0011%22);%0A%7D&amp;edition=2021"></a></div>34 <span·class="macro">assert_eq!</span>(<span·class="macro">format!</span>(<span·class="string">"l·as·octal·is:·{l:#06o}"</span>),·<span·class="string">"l·as·octal·is:·0o0011"</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::fmt;%0A++++%0A++++struct+Length(i32);%0A++++%0A++++impl+fmt::Octal+for+Length+%7B%0A++++++++fn+fmt(%26self,+f:+%26mut+fmt::Formatter%3C'_%3E)+-%3E+fmt::Result+%7B%0A++++++++++++let+val+=+self.0;%0A++++%0A++++++++++++fmt::Octal::fmt(%26val,+f)+//+delegate+to+i32's+implementation%0A++++++++%7D%0A++++%7D%0A++++%0A++++let+l+=+Length(9);%0A++++%0A++++assert_eq!(format!(%22l+as+octal+is:+%7Bl:o%7D%22),+%22l+as+octal+is:+11%22);%0A++++%0A++++assert_eq!(format!(%22l+as+octal+is:+%7Bl:%2306o%7D%22),+%22l+as+octal+is:+0o0011%22);%0A%7D&amp;edition=2021"></a></div>
35 </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.fmt"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/fmt/mod.rs.html#806">Source</a></span><h4·class="code-header">fn·<a·href="#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="struct.Formatter.html"·title="struct·alloc::fmt::Formatter"[·...·truncated·by·diffoscope;·len:·224,·SHA:·48a84022878e023eb613a3f4487ef6386c5a6c2f059c6e677d47b590cda1d526·...·]/core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.Error.html"·title="struct·alloc::fmt::Error">Error</a>&gt;</h4></section></summary><div·class="docblock"><p>Formats·the·value·using·the·given·formatter.</p>35 </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.fmt"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/fmt/mod.rs.html#806">Source</a></span><h4·class="code-header">fn·<a·href="#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="struct.Formatter.html"·title="struct·alloc::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-[·...·truncated·by·diffoscope;·len:·143,·SHA:·e947633b98b2c7a3dd8c60aad8594e006491688c0783cf75edcb27124e93f10e·...·]/core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.Error.html"·title="struct·alloc::fmt::Error">Error</a>&gt;</h4></section></summary><div·class="docblock"><p>Formats·the·value·using·the·given·formatter.</p>
36 <h5·id="errors"><a·class="doc-anchor"·href="#errors">§</a>Errors</h5>36 <h5·id="errors"><a·class="doc-anchor"·href="#errors">§</a>Errors</h5>
37 <p>This·function·should·return·<a·href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html#variant.Err"·title="variant·core::result::Result::Err"><code>Err</code></a>·if,·and·only·if,·the·provided·<a·href="struct.Formatter.html"·title="struct·alloc::fmt::Formatter"><code>Formatter</co[·...·truncated·by·diffoscope;·len:·57,·SHA:·83a1bf55ff257cd023d246ece47b621fb9956d5c6485b30ed8a0a787981f1416·...·]/core/result/enum.Result.html#variant.Err"·title="variant·core::result::Result::Err"><code>Err</code></a>.37 <p>This·function·should·return·<a·href="../../core/result/enum.Result.html#variant.Err"·title="variant·core::result::Result::Err"><code>Err</code></a>·if,·and·only·if,·the·provided·<a·href="struct.Formatter.html"·title="struct·alloc::fmt::Formatter"><code>Formatter</code></a>·returns·<a·href="..[·...·truncated·by·diffoscope;·len:·3,·SHA:·3a6aebc03771052df0b39b1b45998cbc989aa9d1c3dcbd6c39551085aca533bb·...·]/core/result/enum.Result.html#variant.Err"·title="variant·core::result::Result::Err"><code>Err</code></a>.
38 String·formatting·is·considered·an·infallible·operation;·this·function·only38 String·formatting·is·considered·an·infallible·operation;·this·function·only
39 returns·a·<a·href="type.Result.html"·title="type·alloc::fmt::Result"><code>Result</code></a>·because·writing·to·the·underlying·stream·might·fail·and·it·must39 returns·a·<a·href="type.Result.html"·title="type·alloc::fmt::Result"><code>Result</code></a>·because·writing·to·the·underlying·stream·might·fail·and·it·must
40 provide·a·way·to·propagate·the·fact·that·an·error·has·occurred·back·up·the·stack.</p>40 provide·a·way·to·propagate·the·fact·that·an·error·has·occurred·back·up·the·stack.</p>
41 </div></details></div><h2·id="implementors"·class="section-header">Implementors<a·href="#implementors"·class="anchor">§</a></h2><div·id="implementors-list"><section·id="impl-Octal-for-i8"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/fmt/num.rs.html#168">Source</a></span><a·href="#impl-Octal-for-i8"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="trait.Octal.html"·title="trait·alloc::fmt::Octal">Octal</a>·for·<a·class="p[·...·truncated·by·diffoscope;·len:·6306,·SHA:·64cd79da6ace4180dcaa2422eb8e98946c353936cccf12fd5a323788ebd3d7f5·...·]/core/primitive.reference.html">&amp;T</a><div·class="where">where41 </div></details></div><h2·id="implementors"·class="section-header">Implementors<a·href="#implementors"·class="anchor">§</a></h2><div·id="implementors-list"><section·id="impl-Octal-for-i8"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/fmt/num.rs.html#168">Source</a></span><a·href="#impl-Octal-for-i8"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="trait.Octal.html"·title="trait·alloc::fmt::Octal">Octal</a>·for·<a·class="primitive"·href="../../core/[·...·truncated·by·diffoscope;·len:·5604,·SHA:·491ab9a88697c06847327ae5d7df7635a9c7308f1682e2567f7747fac29c513c·...·]/core/primitive.reference.html">&amp;T</a><div·class="where">where
42 ····T:·<a·class="trait"·href="trait.Octal.html"·title="trait·alloc::fmt::Octal">Octal</a>·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section><section·id="impl-Octal-for-%26mut+T"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·[·...·truncated·by·diffoscope;·len:·363,·SHA:·7b325157ff997963c27079158ac9bbcaf01e48be68a973aea847fb4eac44ff96·...·]/core/primitive.reference.html">&amp;mut·T</a><div·class="where">where42 ····T:·<a·class="trait"·href="trait.Octal.html"·title="trait·alloc::fmt::Octal">Octal</a>·+·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section><section·id="impl-Octal-for-%26mut+T"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·cl[·...·truncated·by·diffoscope;·len:·282,·SHA:·694830ca60d5f0812bfe0185f455eb984a029c8840963610a77cb4192e3ba89a·...·]/core/primitive.reference.html">&amp;mut·T</a><div·class="where">where
43 ····T:·<a·class="trait"·href="trait.Octal.html"·title="trait·alloc::fmt::Octal">Octal</a>·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section><section·id="impl-Octal-for-NonZero%3CT%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·ve[·...·truncated·by·diffoscope;·len:·381,·SHA:·2c07ae391aacbe065ee42a18e1888b264030211be016aa9d8d2769f086acc980·...·]/core/num/nonzero/struct.NonZero.html"·title="struct·core::num::nonzero::NonZero">NonZero</a>&lt;T&gt;<div·class="where">where43 ····T:·<a·class="trait"·href="trait.Octal.html"·title="trait·alloc::fmt::Octal">Octal</a>·+·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section><section·id="impl-Octal-for-NonZero%3CT%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.28.0">1.28.0</span>[·...·truncated·by·diffoscope;·len:·300,·SHA:·108e840df77a9fdd3657210a26fe968a11c9a7cd75d0fa56529d7b8b6fa63449·...·]/core/num/nonzero/struct.NonZero.html"·title="struct·core::num::nonzero::NonZero">NonZero</a>&lt;T&gt;<div·class="where">where
44 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/num/nonzero/trait.ZeroablePrimitive.html"·title="trait·core::num::nonzero::ZeroablePrimitive">ZeroablePrimitive</a>·+·<a·class="trait"·href="trait.Octal.html"·title="trait·alloc::fmt::Octal">Octal</a>,</div></h3></sect[·...·truncated·by·diffoscope;·len:·517,·SHA:·d473f221251ccb386dd6f634233d5859ea326cc678a3c565f7f994dd811d704f·...·]/core/num/saturating/struct.Saturating.html"·title="struct·core::num::saturating::Saturating">Saturating</a>&lt;T&gt;<div·class="where">where44 ····T:·<a·class="trait"·href="../../core/num/nonzero/trait.ZeroablePrimitive.html"·title="trait·core::num::nonzero::ZeroablePrimitive">ZeroablePrimitive</a>·+·<a·class="trait"·href="trait.Octal.html"·title="trait·alloc::fmt::Octal">Octal</a>,</div></h3></section><section·id="impl-Octal[·...·truncated·by·diffoscope;·len:·436,·SHA:·6ef62705add344105b826119ccdf0384a8baef5bd8dd9dda62e0423fc3b84000·...·]/core/num/saturating/struct.Saturating.html"·title="struct·core::num::saturating::Saturating">Saturating</a>&lt;T&gt;<div·class="where">where
45 ····T:·<a·class="trait"·href="trait.Octal.html"·title="trait·alloc::fmt::Octal">Octal</a>,</div></h3></section><section·id="impl-Octal-for-Wrapping%3CT%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.11.0">1.11.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/num/wrapping.rs.html#67">Source</a></span><a·href="#impl-Octal-for-Wrapping%3CT%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="trait.Octal.html"·title="trait·alloc::fmt::Octal"[·...·truncated·by·diffoscope;·len:·71,·SHA:·3831ad30535f616bf3ebaec7bb6c549000f477a469707b691a84261dca6bf836·...·]/core/num/wrapping/struct.Wrapping.html"·title="struct·core::num::wrapping::Wrapping">Wrapping</a>&lt;T&gt;<div·class="where">where45 ····T:·<a·class="trait"·href="trait.Octal.html"·title="trait·alloc::fmt::Octal">Octal</a>,</div></h3></section><section·id="impl-Octal-for-Wrapping%3CT%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.11.0">1.11.0</span>···<a·class="src"·href="../../src/core/num/wrapping.rs.html#67">Source</a></span><a·href="#impl-Octal-for-Wrapping%3CT%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="trait.Octal.html"·title="trait·alloc::fmt::Octal">Octal</a>·for·<a·class="st[·...·truncated·by·diffoscope;·len:·17,·SHA:·4bac53673843244b8939b723c963a619dc77753ffccdc3328de5a39f13212aac·...·]/core/num/wrapping/struct.Wrapping.html"·title="struct·core::num::wrapping::Wrapping">Wrapping</a>&lt;T&gt;<div·class="where">where
46 ····T:·<a·class="trait"·href="trait.Octal.html"·title="trait·alloc::fmt::Octal">Octal</a>,</div></h3></section></div><script·src="../../trait.impl/core/fmt/trait.Octal.js"·data-ignore-extern-crates="core"·async></script></section></div></main></body></html>46 ····T:·<a·class="trait"·href="trait.Octal.html"·title="trait·alloc::fmt::Octal">Octal</a>,</div></h3></section></div><script·src="../../trait.impl/core/fmt/trait.Octal.js"·data-ignore-extern-crates="core"·async></script></section></div></main></body></html>
29.1 KB
./usr/share/doc/rust-doc/html/alloc/fmt/trait.Pointer.html
    
Offset 1, 10 lines modifiedOffset 1, 10 lines modified
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="`p`·formatting."><title>Pointer·in·alloc::fmt·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»     2025-01-07)»  (built»    from»a»       source» tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Pointer</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#examples"·title="Examples">Examples</a></li></ul><h3><a·href="#required-methods">Required·Methods</a></h3><ul·class="block"><li><a·href="#tymethod.fmt"·title="fmt">fmt</a></li></ul><h3><a·href="#implementors">Implementors</a></h3></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>fmt</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">alloc</a>::<wbr><a·href="index.html">fmt</a></span><h1>Trait·<span·class="trait">Pointer</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/fmt/mod.rs.html#1031">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·trait·Pointer·{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="`p`·formatting."><title>Pointer·in·alloc::fmt·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»     2025-01-07)»  (built»    from»a»       source» tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Pointer</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#examples"·title="Examples">Examples</a></li></ul><h3><a·href="#required-methods">Required·Methods</a></h3><ul·class="block"><li><a·href="#tymethod.fmt"·title="fmt">fmt</a></li></ul><h3><a·href="#implementors">Implementors</a></h3></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>fmt</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">alloc</a>::<wbr><a·href="index.html">fmt</a></span><h1>Trait·<span·class="trait">Pointer</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../src/core/fmt/mod.rs.html#1031">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·trait·Pointer·{
2 ····//·Required·method2 ····//·Required·method
3 ····fn·<a·href="#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="struct.Formatter.html"·title="struct·alloc::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.Error.html"·title="struct·alloc::fmt::Error">Error</a>&gt;;3 ····fn·<a·href="#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="struct.Formatter.html"·title="struct·alloc::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="primitive"·href="../../core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.Error.html"·title="struct·alloc::fmt::Error">Error</a>&gt;;
4 }</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p><code>p</code>·formatting.</p>4 }</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p><code>p</code>·formatting.</p>
5 <p>The·<code>Pointer</code>·trait·should·format·its·output·as·a·memory·location.·This·is·commonly·presented5 <p>The·<code>Pointer</code>·trait·should·format·its·output·as·a·memory·location.·This·is·commonly·presented
6 as·hexadecimal.·For·more·information·on·formatters,·see·<a·href="../../std/fmt/index.html">the·module-level·documentation</a>.</p>6 as·hexadecimal.·For·more·information·on·formatters,·see·<a·href="../../std/fmt/index.html">the·module-level·documentation</a>.</p>
7 <p>Printing·of·pointers·is·not·a·reliable·way·to·discover·how·Rust·programs·are·implemented.7 <p>Printing·of·pointers·is·not·a·reliable·way·to·discover·how·Rust·programs·are·implemented.
8 The·act·of·reading·an·address·changes·the·program·itself,·and·may·change·how·the·data·is·represented8 The·act·of·reading·an·address·changes·the·program·itself,·and·may·change·how·the·data·is·represented
9 in·memory,·and·may·affect·which·optimizations·are·applied·to·the·code.</p>9 in·memory,·and·may·affect·which·optimizations·are·applied·to·the·code.</p>
10 <p>The·printed·pointer·values·are·not·guaranteed·to·be·stable·nor·unique·identifiers·of·objects.10 <p>The·printed·pointer·values·are·not·guaranteed·to·be·stable·nor·unique·identifiers·of·objects.
Offset 35, 21 lines modifiedOffset 35, 21 lines modified
35 <span·class="kw">let·</span>l·=·Length(<span·class="number">42</span>);35 <span·class="kw">let·</span>l·=·Length(<span·class="number">42</span>);
  
36 <span·class="macro">println!</span>(<span·class="string">"l·is·in·memory·here:·{l:p}"</span>);36 <span·class="macro">println!</span>(<span·class="string">"l·is·in·memory·here:·{l:p}"</span>);
  
37 <span·class="kw">let·</span>l_ptr·=·<span·class="macro">format!</span>(<span·class="string">"{l:018p}"</span>);37 <span·class="kw">let·</span>l_ptr·=·<span·class="macro">format!</span>(<span·class="string">"{l:018p}"</span>);
38 <span·class="macro">assert_eq!</span>(l_ptr.len(),·<span·class="number">18</span>);38 <span·class="macro">assert_eq!</span>(l_ptr.len(),·<span·class="number">18</span>);
39 <span·class="macro">assert_eq!</span>(<span·class="kw-2">&amp;</span>l_ptr[..<span·class="number">2</span>],·<span·class="string">"0x"</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::fmt;%0A++++%0A++++struct+Length(i32);%0A++++%0A++++impl+fmt::Pointer+for+Length+%7B%0A++++++++fn+fmt(%26self,+f:+%26mut+fmt::Formatter%3C'_%3E)+-%3E+fmt::Result+%7B%0A++++++++++++//+use+%60as%60+to+convert+to+a+%60*const+T%60,+which+implements+Pointer,+which+we+can+use%0A++++%0A++++++++++++let+ptr+=+self+as+*const+Self;%0A++++++++++++fmt::Pointer::fmt(%26ptr,+f)%0A++++++++%7D%0A++++%7D%0A++++%0A++++let+l+=+Length(42);%0A++++%0A++++println!(%22l+is+in+memory+here:+%7Bl:p%7D%22);%0A++++%0A++++let+l_ptr+=+format!(%22%7Bl:018p%7D%22);%0A++++assert_eq!(l_ptr.len(),+18);%0A++++assert_eq!(%26l_ptr%5B..2%5D,+%220x%22);%0A%7D&amp;edition=2021"></a></div>39 <span·class="macro">assert_eq!</span>(<span·class="kw-2">&amp;</span>l_ptr[..<span·class="number">2</span>],·<span·class="string">"0x"</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::fmt;%0A++++%0A++++struct+Length(i32);%0A++++%0A++++impl+fmt::Pointer+for+Length+%7B%0A++++++++fn+fmt(%26self,+f:+%26mut+fmt::Formatter%3C'_%3E)+-%3E+fmt::Result+%7B%0A++++++++++++//+use+%60as%60+to+convert+to+a+%60*const+T%60,+which+implements+Pointer,+which+we+can+use%0A++++%0A++++++++++++let+ptr+=+self+as+*const+Self;%0A++++++++++++fmt::Pointer::fmt(%26ptr,+f)%0A++++++++%7D%0A++++%7D%0A++++%0A++++let+l+=+Length(42);%0A++++%0A++++println!(%22l+is+in+memory+here:+%7Bl:p%7D%22);%0A++++%0A++++let+l_ptr+=+format!(%22%7Bl:018p%7D%22);%0A++++assert_eq!(l_ptr.len(),+18);%0A++++assert_eq!(%26l_ptr%5B..2%5D,+%220x%22);%0A%7D&amp;edition=2021"></a></div>
40 </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.fmt"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/fmt/mod.rs.html#1034">Source</a></span><h4·class="code-header">fn·<a·href="#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="struct.Formatter.html"·title="struct·alloc::fmt::Formatter[·...·truncated·by·diffoscope;·len:·225,·SHA:·d032443a2d115b1c0e999d10a129830d9ddf6681ef45af6504aa36a7b7245dc2·...·]/core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.Error.html"·title="struct·alloc::fmt::Error">Error</a>&gt;</h4></section></summary><div·class="docblock"><p>Formats·the·value·using·the·given·formatter.</p>40 </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.fmt"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/fmt/mod.rs.html#1034">Source</a></span><h4·class="code-header">fn·<a·href="#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="struct.Formatter.html"·title="struct·alloc::fmt::Formatter">Formatter</a>&lt;'_&gt;)·[·...·truncated·by·diffoscope;·len:·144,·SHA:·1c0a5aecc6d2658668832307964321f8bdd3297274461f3e8a39b4d3b2223172·...·]/core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.Error.html"·title="struct·alloc::fmt::Error">Error</a>&gt;</h4></section></summary><div·class="docblock"><p>Formats·the·value·using·the·given·formatter.</p>
41 <h5·id="errors"><a·class="doc-anchor"·href="#errors">§</a>Errors</h5>41 <h5·id="errors"><a·class="doc-anchor"·href="#errors">§</a>Errors</h5>
42 <p>This·function·should·return·<a·href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html#variant.Err"·title="variant·core::result::Result::Err"><code>Err</code></a>·if,·and·only·if,·the·provided·<a·href="struct.Formatter.html"·title="struct·alloc::fmt::Formatter"><code>Formatter</co[·...·truncated·by·diffoscope;·len:·57,·SHA:·83a1bf55ff257cd023d246ece47b621fb9956d5c6485b30ed8a0a787981f1416·...·]/core/result/enum.Result.html#variant.Err"·title="variant·core::result::Result::Err"><code>Err</code></a>.42 <p>This·function·should·return·<a·href="../../core/result/enum.Result.html#variant.Err"·title="variant·core::result::Result::Err"><code>Err</code></a>·if,·and·only·if,·the·provided·<a·href="struct.Formatter.html"·title="struct·alloc::fmt::Formatter"><code>Formatter</code></a>·returns·<a·href="..[·...·truncated·by·diffoscope;·len:·3,·SHA:·3a6aebc03771052df0b39b1b45998cbc989aa9d1c3dcbd6c39551085aca533bb·...·]/core/result/enum.Result.html#variant.Err"·title="variant·core::result::Result::Err"><code>Err</code></a>.
43 String·formatting·is·considered·an·infallible·operation;·this·function·only43 String·formatting·is·considered·an·infallible·operation;·this·function·only
44 returns·a·<a·href="type.Result.html"·title="type·alloc::fmt::Result"><code>Result</code></a>·because·writing·to·the·underlying·stream·might·fail·and·it·must44 returns·a·<a·href="type.Result.html"·title="type·alloc::fmt::Result"><code>Result</code></a>·because·writing·to·the·underlying·stream·might·fail·and·it·must
45 provide·a·way·to·propagate·the·fact·that·an·error·has·occurred·back·up·the·stack.</p>45 provide·a·way·to·propagate·the·fact·that·an·error·has·occurred·back·up·the·stack.</p>
46 </div></details></div><h2·id="implementors"·class="section-header">Implementors<a·href="#implementors"·class="anchor">§</a></h2><div·id="implementors-list"><section·id="impl-Pointer-for-F"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.4.0">1.4.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/ptr/mod.rs.html#2219">Source</a></span><a·href="#impl-Pointer-for-F"·class="anchor">§</a><h3·class="code-header">impl&lt;F&gt;·<a·class="trait"·href="trait.Pointer.html"·title="trait·alloc::fmt::Pointer">Pointer</a>·for·F<div·class="where">where46 </div></details></div><h2·id="implementors"·class="section-header">Implementors<a·href="#implementors"·class="anchor">§</a></h2><div·id="implementors-list"><section·id="impl-Pointer-for-F"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.4.0">1.4.0</span>···<a·class="src"·href="../../src/core/ptr/mod.rs.html#2219">Source</a></span><a·href="#impl-Pointer-for-F"·class="anchor">§</a><h3·class="code-header">impl&lt;F&gt;·<a·class="trait"·href="trait.Pointer.html"·title="trait·alloc::fmt::Pointer">Pointer</a>·for·F<div·class="where">where
47 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.FnPtr.html"·title="trait·core::marker::FnPtr">FnPtr</a>,</div></h3></section><section·id="impl-Pointer-for-Pin%3CPtr%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·ve[·...·truncated·by·diffoscope;·len:·378,·SHA:·54bf6fdffd28c42f5b3dd694cc1964b6e6890d4c8d81c8595febe77b51cfa527·...·]/core/pin/struct.Pin.html"·title="struct·core::pin::Pin">Pin</a>&lt;Ptr&gt;<div·class="where">where47 ····F:·<a·class="trait"·href="../../core/marker/trait.FnPtr.html"·title="trait·core::marker::FnPtr">FnPtr</a>,</div></h3></section><section·id="impl-Pointer-for-Pin%3CPtr%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.33.0">1.33.0</span>[·...·truncated·by·diffoscope;·len:·297,·SHA:·960c8fa2faaa314b3c0d7a6378a626ff887e85f73da39b4810a006a1ed9c57da·...·]/core/pin/struct.Pin.html"·title="struct·core::pin::Pin">Pin</a>&lt;Ptr&gt;<div·class="where">where
48 ····Ptr:·<a·class="trait"·href="trait.Pointer.html"·title="trait·alloc::fmt::Pointer">Pointer</a>,</div></h3></section><section·id="impl-Pointer-for-*const+T"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/fmt/mod.rs.html#2518">Source</a></span><a·href="#impl-Pointer-for-*const+T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="trait.Pointer.html"·title="trait·alloc::fmt::Pointer">Poi[·...·truncated·by·diffoscope;·len:·72,·SHA:·501b21504d9b796d717550f9c2aea9526a48eaa61d260c7b88932a68e9ec3bc8·...·]/core/primitive.pointer.html">*const·T</a><div·class="where">where48 ····Ptr:·<a·class="trait"·href="trait.Pointer.html"·title="trait·alloc::fmt::Pointer">Pointer</a>,</div></h3></section><section·id="impl-Pointer-for-*const+T"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/fmt/mod.rs.html#2518">Source</a></span><a·href="#impl-Pointer-for-*const+T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="trait.Pointer.html"·title="trait·alloc::fmt::Pointer">Pointer</a>·for·<a·class="prim[·...·truncated·by·diffoscope;·len:·18,·SHA:·3774ff17ac3c5abdd94d5a5dea6c95091be4f6446f81dd9c67d1a666199a7493·...·]/core/primitive.pointer.html">*const·T</a><div·class="where">where
49 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section><section·id="impl-Pointer-for-*mut+T"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·[·...·truncated·by·diffoscope;·len:·369,·SHA:·9945fb8d772724a158d82b030ac4c7069ff8c4611a4b0a70def1f51a00a8c251·...·]/core/primitive.pointer.html">*mut·T</a><div·class="where">where49 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section><section·id="impl-Pointer-for-*mut+T"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·cl[·...·truncated·by·diffoscope;·len:·288,·SHA:·b1f82a936ac274e2a27c50a4d02d45e03a1274871f377fd231104b22772058df·...·]/core/primitive.pointer.html">*mut·T</a><div·class="where">where
50 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section><section·id="impl-Pointer-for-%26T"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.[·...·truncated·by·diffoscope;·len:·365,·SHA:·55980a98b7c34196273f6d1f93848235a42c5adf5ab9f840985fe50ab029d5d4·...·]/core/primitive.reference.html">&amp;T</a><div·class="where">where50 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section><section·id="impl-Pointer-for-%26T"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·clas[·...·truncated·by·diffoscope;·len:·284,·SHA:·d29824f236de672bd97b0f057edfa948e19a0d563b10fe60660e00eead3b2e14·...·]/core/primitive.reference.html">&amp;T</a><div·class="where">where
51 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section><section·id="impl-Pointer-for-%26mut+T"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·versio[·...·truncated·by·diffoscope;·len:·373,·SHA:·11ef9f55af999d96ded206dadbddcbda1f04dff2a0a74c2ddce339832649b5a6·...·]/core/primitive.reference.html">&amp;mut·T</a><div·class="where">where51 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section><section·id="impl-Pointer-for-%26mut+T"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·[·...·truncated·by·diffoscope;·len:·292,·SHA:·cbd3e1536c86bfcedd776e42684bd70bb453388af17ac687fdf64ec9837320b1·...·]/core/primitive.reference.html">&amp;mut·T</a><div·class="where">where
52 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section><section·id="impl-Pointer-for-NonNull%3CT%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·[·...·truncated·by·diffoscope;·len:·389,·SHA:·f9eb4726af4dc6b8c43f4f7a9b2d8093f1c21b7d9385f60a8ebb532f841bcc22·...·]/core/ptr/non_null/struct.NonNull.html"·title="struct·core::ptr::non_null::NonNull">NonNull</a>&lt;T&gt;<div·class="where">where52 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section><section·id="impl-Pointer-for-NonNull%3CT%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.25.0">1.25.0</spa[·...·truncated·by·diffoscope;·len:·308,·SHA:·7bcb75149ed0b5cfe7716942e7e111a12a7357013a083db9c88b55564f484702·...·]/core/ptr/non_null/struct.NonNull.html"·title="struct·core::ptr::non_null::NonNull">NonNull</a>&lt;T&gt;<div·class="where">where
53 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section><section·id="impl-Pointer-for-AtomicPtr%3CT%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rus[·...·truncated·by·diffoscope;·len:·2465,·SHA:·1171eada58b3ba1ee1c89fd3d67988457f954171a17b45e4680e736611cdf813·...·]/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,·A:·<a·class="trait"·href="../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>&gt;·<a·class="trait"·href="trait.Pointer.html"·title="trait·alloc::fmt::Pointer">Pointer</a>·for·<a·class="struct"·href="../sync/struct.Arc.html"·title="struct·alloc::sync::Arc">Arc</a>&lt;T,·A&gt;</h3></section></div><script·src="../../trait.impl/core/fmt/trait.Pointer.js"·data-ignore-extern-crates="core"·async></script></section></div></main></body></html>53 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section><section·id="impl-Pointer-for-AtomicPtr%3CT%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.24.0">1.24.0</s[·...·truncated·by·diffoscope;·len:·2303,·SHA:·fbf7353bcaeefe08e4f839a8d59fefa7de3bbffcabf3987b42a6b8541d69a246·...·]/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,·A:·<a·class="trait"·href="../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>&gt;·<a·class="trait"·href="trait.Pointer.html"·title="trait·alloc::fmt::Pointer">Pointer</a>·for·<a·class="struct"·href="../sync/struct.Arc.html"·title="struct·alloc::sync::Arc">Arc</a>&lt;T,·A&gt;</h3></section></div><script·src="../../trait.impl/core/fmt/trait.Pointer.js"·data-ignore-extern-crates="core"·async></script></section></div></main></body></html>
32.6 KB
./usr/share/doc/rust-doc/html/alloc/fmt/trait.UpperExp.html
    
Offset 1, 10 lines modifiedOffset 1, 10 lines modified
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="`E`·formatting."><title>UpperExp·in·alloc::fmt·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»    2025-01-07)» (built»   from»       a»      source»tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Upper<wbr>Exp</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#examples"·title="Examples">Examples</a></li></ul><h3><a·href="#required-methods">Required·Methods</a></h3><ul·class="block"><li><a·href="#tymethod.fmt"·title="fmt">fmt</a></li></ul><h3><a·href="#implementors">Implementors</a></h3></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>fmt</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">alloc</a>::<wbr><a·href="index.html">fmt</a></span><h1>Trait·<span·class="trait">UpperExp</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/fmt/mod.rs.html#1133">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·trait·UpperExp·{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="`E`·formatting."><title>UpperExp·in·alloc::fmt·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»    2025-01-07)» (built»   from»       a»      source»tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Upper<wbr>Exp</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#examples"·title="Examples">Examples</a></li></ul><h3><a·href="#required-methods">Required·Methods</a></h3><ul·class="block"><li><a·href="#tymethod.fmt"·title="fmt">fmt</a></li></ul><h3><a·href="#implementors">Implementors</a></h3></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>fmt</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">alloc</a>::<wbr><a·href="index.html">fmt</a></span><h1>Trait·<span·class="trait">UpperExp</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../src/core/fmt/mod.rs.html#1133">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·trait·UpperExp·{
2 ····//·Required·method2 ····//·Required·method
3 ····fn·<a·href="#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="struct.Formatter.html"·title="struct·alloc::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.Error.html"·title="struct·alloc::fmt::Error">Error</a>&gt;;3 ····fn·<a·href="#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="struct.Formatter.html"·title="struct·alloc::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="primitive"·href="../../core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.Error.html"·title="struct·alloc::fmt::Error">Error</a>&gt;;
4 }</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p><code>E</code>·formatting.</p>4 }</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p><code>E</code>·formatting.</p>
5 <p>The·<code>UpperExp</code>·trait·should·format·its·output·in·scientific·notation·with·an·upper-case·<code>E</code>.</p>5 <p>The·<code>UpperExp</code>·trait·should·format·its·output·in·scientific·notation·with·an·upper-case·<code>E</code>.</p>
6 <p>For·more·information·on·formatters,·see·<a·href="../../std/fmt/index.html">the·module-level·documentation</a>.</p>6 <p>For·more·information·on·formatters,·see·<a·href="../../std/fmt/index.html">the·module-level·documentation</a>.</p>
7 <h2·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h2>7 <h2·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h2>
8 <p>Basic·usage·with·<code>f64</code>:</p>8 <p>Basic·usage·with·<code>f64</code>:</p>
  
9 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span>x·=·<span·class="number">42.0</span>;·<span·class="comment">//·42.0·is·'4.2E1'·in·scientific·notation9 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span>x·=·<span·class="number">42.0</span>;·<span·class="comment">//·42.0·is·'4.2E1'·in·scientific·notation
Offset 30, 17 lines modifiedOffset 30, 17 lines modified
30 ····<span·class="string">"l·in·scientific·notation·is:·1E2"30 ····<span·class="string">"l·in·scientific·notation·is:·1E2"
31 </span>);31 </span>);
  
32 <span·class="macro">assert_eq!</span>(32 <span·class="macro">assert_eq!</span>(
33 ····<span·class="macro">format!</span>(<span·class="string">"l·in·scientific·notation·is:·{l:05E}"</span>),33 ····<span·class="macro">format!</span>(<span·class="string">"l·in·scientific·notation·is:·{l:05E}"</span>),
34 ····<span·class="string">"l·in·scientific·notation·is:·001E2"34 ····<span·class="string">"l·in·scientific·notation·is:·001E2"
35 </span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::fmt;%0A++++%0A++++struct+Length(i32);%0A++++%0A++++impl+fmt::UpperExp+for+Length+%7B%0A++++++++fn+fmt(%26self,+f:+%26mut+fmt::Formatter%3C'_%3E)+-%3E+fmt::Result+%7B%0A++++++++++++let+val+=+f64::from(self.0);%0A++++++++++++fmt::UpperExp::fmt(%26val,+f)+//+delegate+to+f64's+implementation%0A++++++++%7D%0A++++%7D%0A++++%0A++++let+l+=+Length(100);%0A++++%0A++++assert_eq!(%0A++++++++format!(%22l+in+scientific+notation+is:+%7Bl:E%7D%22),%0A++++++++%22l+in+scientific+notation+is:+1E2%22%0A++++);%0A++++%0A++++assert_eq!(%0A++++++++format!(%22l+in+scientific+notation+is:+%7Bl:05E%7D%22),%0A++++++++%22l+in+scientific+notation+is:+001E2%22%0A++++);%0A%7D&amp;edition=2021"></a></div>35 </span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::fmt;%0A++++%0A++++struct+Length(i32);%0A++++%0A++++impl+fmt::UpperExp+for+Length+%7B%0A++++++++fn+fmt(%26self,+f:+%26mut+fmt::Formatter%3C'_%3E)+-%3E+fmt::Result+%7B%0A++++++++++++let+val+=+f64::from(self.0);%0A++++++++++++fmt::UpperExp::fmt(%26val,+f)+//+delegate+to+f64's+implementation%0A++++++++%7D%0A++++%7D%0A++++%0A++++let+l+=+Length(100);%0A++++%0A++++assert_eq!(%0A++++++++format!(%22l+in+scientific+notation+is:+%7Bl:E%7D%22),%0A++++++++%22l+in+scientific+notation+is:+1E2%22%0A++++);%0A++++%0A++++assert_eq!(%0A++++++++format!(%22l+in+scientific+notation+is:+%7Bl:05E%7D%22),%0A++++++++%22l+in+scientific+notation+is:+001E2%22%0A++++);%0A%7D&amp;edition=2021"></a></div>
36 </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.fmt"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/fmt/mod.rs.html#1136">Source</a></span><h4·class="code-header">fn·<a·href="#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="struct.Formatter.html"·title="struct·alloc::fmt::Formatter[·...·truncated·by·diffoscope;·len:·225,·SHA:·d032443a2d115b1c0e999d10a129830d9ddf6681ef45af6504aa36a7b7245dc2·...·]/core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.Error.html"·title="struct·alloc::fmt::Error">Error</a>&gt;</h4></section></summary><div·class="docblock"><p>Formats·the·value·using·the·given·formatter.</p>36 </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.fmt"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/fmt/mod.rs.html#1136">Source</a></span><h4·class="code-header">fn·<a·href="#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="struct.Formatter.html"·title="struct·alloc::fmt::Formatter">Formatter</a>&lt;'_&gt;)·[·...·truncated·by·diffoscope;·len:·144,·SHA:·1c0a5aecc6d2658668832307964321f8bdd3297274461f3e8a39b4d3b2223172·...·]/core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.Error.html"·title="struct·alloc::fmt::Error">Error</a>&gt;</h4></section></summary><div·class="docblock"><p>Formats·the·value·using·the·given·formatter.</p>
37 <h5·id="errors"><a·class="doc-anchor"·href="#errors">§</a>Errors</h5>37 <h5·id="errors"><a·class="doc-anchor"·href="#errors">§</a>Errors</h5>
38 <p>This·function·should·return·<a·href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html#variant.Err"·title="variant·core::result::Result::Err"><code>Err</code></a>·if,·and·only·if,·the·provided·<a·href="struct.Formatter.html"·title="struct·alloc::fmt::Formatter"><code>Formatter</co[·...·truncated·by·diffoscope;·len:·57,·SHA:·83a1bf55ff257cd023d246ece47b621fb9956d5c6485b30ed8a0a787981f1416·...·]/core/result/enum.Result.html#variant.Err"·title="variant·core::result::Result::Err"><code>Err</code></a>.38 <p>This·function·should·return·<a·href="../../core/result/enum.Result.html#variant.Err"·title="variant·core::result::Result::Err"><code>Err</code></a>·if,·and·only·if,·the·provided·<a·href="struct.Formatter.html"·title="struct·alloc::fmt::Formatter"><code>Formatter</code></a>·returns·<a·href="..[·...·truncated·by·diffoscope;·len:·3,·SHA:·3a6aebc03771052df0b39b1b45998cbc989aa9d1c3dcbd6c39551085aca533bb·...·]/core/result/enum.Result.html#variant.Err"·title="variant·core::result::Result::Err"><code>Err</code></a>.
39 String·formatting·is·considered·an·infallible·operation;·this·function·only39 String·formatting·is·considered·an·infallible·operation;·this·function·only
40 returns·a·<a·href="type.Result.html"·title="type·alloc::fmt::Result"><code>Result</code></a>·because·writing·to·the·underlying·stream·might·fail·and·it·must40 returns·a·<a·href="type.Result.html"·title="type·alloc::fmt::Result"><code>Result</code></a>·because·writing·to·the·underlying·stream·might·fail·and·it·must
41 provide·a·way·to·propagate·the·fact·that·an·error·has·occurred·back·up·the·stack.</p>41 provide·a·way·to·propagate·the·fact·that·an·error·has·occurred·back·up·the·stack.</p>
42 </div></details></div><h2·id="implementors"·class="section-header">Implementors<a·href="#implementors"·class="anchor">§</a></h2><div·id="implementors-list"><section·id="impl-UpperExp-for-f32"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/fmt/float.rs.html#232">Source</a></span><a·href="#impl-UpperExp-for-f32"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="trait.UpperExp.html"·title="trait·alloc::fmt::UpperExp">UpperExp</a>·[·...·truncated·by·diffoscope;·len:·7593,·SHA:·b404e630162c33c3c651d3ffcc1a785ea528b7525e98f04d18b412fa5e92c970·...·]/core/primitive.reference.html">&amp;T</a><div·class="where">where42 </div></details></div><h2·id="implementors"·class="section-header">Implementors<a·href="#implementors"·class="anchor">§</a></h2><div·id="implementors-list"><section·id="impl-UpperExp-for-f32"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/fmt/float.rs.html#232">Source</a></span><a·href="#impl-UpperExp-for-f32"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="trait.UpperExp.html"·title="trait·alloc::fmt::UpperExp">UpperExp</a>·for·<a·class="primitive"·hr[·...·truncated·by·diffoscope;·len:·6783,·SHA:·ab6803047cb6d5e54ce5979861a98b14bb7402cb1b06fc98a64c787a9e0a95f0·...·]/core/primitive.reference.html">&amp;T</a><div·class="where">where
43 ····T:·<a·class="trait"·href="trait.UpperExp.html"·title="trait·alloc::fmt::UpperExp">UpperExp</a>·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section><section·id="impl-UpperExp-for-%26mut+T"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·versi[·...·truncated·by·diffoscope;·len:·378,·SHA:·9448471ceab028b33a4039a8ec566ac8427c2c791a79434c22a2399ed97fd131·...·]/core/primitive.reference.html">&amp;mut·T</a><div·class="where">where43 ····T:·<a·class="trait"·href="trait.UpperExp.html"·title="trait·alloc::fmt::UpperExp">UpperExp</a>·+·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section><section·id="impl-UpperExp-for-%26mut+T"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a[·...·truncated·by·diffoscope;·len:·297,·SHA:·a4066d57dfbef154b9186e342fd4e268d5d506e05b7e58d6258530d9467845be·...·]/core/primitive.reference.html">&amp;mut·T</a><div·class="where">where
44 ····T:·<a·class="trait"·href="trait.UpperExp.html"·title="trait·alloc::fmt::UpperExp">UpperExp</a>·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section><section·id="impl-UpperExp-for-NonZero%3CT%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust[·...·truncated·by·diffoscope;·len:·396,·SHA:·88bf7b55fd98b869c91ebf143c902d594025f3616d3e10c7dc242cd3cdb959ad·...·]/core/num/nonzero/struct.NonZero.html"·title="struct·core::num::nonzero::NonZero">NonZero</a>&lt;T&gt;<div·class="where">where44 ····T:·<a·class="trait"·href="trait.UpperExp.html"·title="trait·alloc::fmt::UpperExp">UpperExp</a>·+·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section><section·id="impl-UpperExp-for-NonZero%3CT%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.84.0">1.84.0</sp[·...·truncated·by·diffoscope;·len:·315,·SHA:·36d0fb4d3c9879fa0940db1fa4a3cc8802c9a6ffb5e8b33e016da8d44a3c96ef·...·]/core/num/nonzero/struct.NonZero.html"·title="struct·core::num::nonzero::NonZero">NonZero</a>&lt;T&gt;<div·class="where">where
45 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/num/nonzero/trait.ZeroablePrimitive.html"·title="trait·core::num::nonzero::ZeroablePrimitive">ZeroablePrimitive</a>·+·<a·class="trait"·href="trait.UpperExp.html"·title="trait·alloc::fmt::UpperExp">UpperExp</a>,</div></h3></section></div><script·src="../../trait.impl/core/fmt/trait.UpperExp.js"·data-ignore-extern-crates="core"·async></script></section></div></main></body></html>45 ····T:·<a·class="trait"·href="../../core/num/nonzero/trait.ZeroablePrimitive.html"·title="trait·core::num::nonzero::ZeroablePrimitive">ZeroablePrimitive</a>·+·<a·class="trait"·href="trait.UpperExp.html"·title="trait·alloc::fmt::UpperExp">UpperExp</a>,</div></h3></section></div><script·src="../../trait.impl/core/fmt/trait.UpperExp.js"·data-ignore-extern-crates="core"·async></script></section></div></main></body></html>
33.3 KB
./usr/share/doc/rust-doc/html/alloc/fmt/trait.UpperHex.html
    
Offset 1, 10 lines modifiedOffset 1, 10 lines modified
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="`X`·formatting."><title>UpperHex·in·alloc::fmt·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»    2025-01-07)» (built»   from»       a»      source»tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Upper<wbr>Hex</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#examples"·title="Examples">Examples</a></li></ul><h3><a·href="#required-methods">Required·Methods</a></h3><ul·class="block"><li><a·href="#tymethod.fmt"·title="fmt">fmt</a></li></ul><h3><a·href="#implementors">Implementors</a></h3></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>fmt</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">alloc</a>::<wbr><a·href="index.html">fmt</a></span><h1>Trait·<span·class="trait">UpperHex</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/fmt/mod.rs.html#972">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·trait·UpperHex·{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="`X`·formatting."><title>UpperHex·in·alloc::fmt·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»    2025-01-07)» (built»   from»       a»      source»tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Upper<wbr>Hex</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#examples"·title="Examples">Examples</a></li></ul><h3><a·href="#required-methods">Required·Methods</a></h3><ul·class="block"><li><a·href="#tymethod.fmt"·title="fmt">fmt</a></li></ul><h3><a·href="#implementors">Implementors</a></h3></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>fmt</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">alloc</a>::<wbr><a·href="index.html">fmt</a></span><h1>Trait·<span·class="trait">UpperHex</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../src/core/fmt/mod.rs.html#972">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·trait·UpperHex·{
2 ····//·Required·method2 ····//·Required·method
3 ····fn·<a·href="#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="struct.Formatter.html"·title="struct·alloc::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.Error.html"·title="struct·alloc::fmt::Error">Error</a>&gt;;3 ····fn·<a·href="#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="struct.Formatter.html"·title="struct·alloc::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="primitive"·href="../../core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.Error.html"·title="struct·alloc::fmt::Error">Error</a>&gt;;
4 }</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p><code>X</code>·formatting.</p>4 }</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p><code>X</code>·formatting.</p>
5 <p>The·<code>UpperHex</code>·trait·should·format·its·output·as·a·number·in·hexadecimal,·with·<code>A</code>·through·<code>F</code>5 <p>The·<code>UpperHex</code>·trait·should·format·its·output·as·a·number·in·hexadecimal,·with·<code>A</code>·through·<code>F</code>
6 in·upper·case.</p>6 in·upper·case.</p>
7 <p>For·primitive·signed·integers·(<code>i8</code>·to·<code>i128</code>,·and·<code>isize</code>),7 <p>For·primitive·signed·integers·(<code>i8</code>·to·<code>i128</code>,·and·<code>isize</code>),
8 negative·values·are·formatted·as·the·two’s·complement·representation.</p>8 negative·values·are·formatted·as·the·two’s·complement·representation.</p>
9 <p>The·alternate·flag,·<code>#</code>,·adds·a·<code>0x</code>·in·front·of·the·output.</p>9 <p>The·alternate·flag,·<code>#</code>,·adds·a·<code>0x</code>·in·front·of·the·output.</p>
10 <p>For·more·information·on·formatters,·see·<a·href="../../std/fmt/index.html">the·module-level·documentation</a>.</p>10 <p>For·more·information·on·formatters,·see·<a·href="../../std/fmt/index.html">the·module-level·documentation</a>.</p>
Offset 32, 19 lines modifiedOffset 32, 19 lines modified
32 }32 }
  
33 <span·class="kw">let·</span>l·=·Length(i32::MAX);33 <span·class="kw">let·</span>l·=·Length(i32::MAX);
  
34 <span·class="macro">assert_eq!</span>(<span·class="macro">format!</span>(<span·class="string">"l·as·hex·is:·{l:X}"</span>),·<span·class="string">"l·as·hex·is:·7FFFFFFF"</span>);34 <span·class="macro">assert_eq!</span>(<span·class="macro">format!</span>(<span·class="string">"l·as·hex·is:·{l:X}"</span>),·<span·class="string">"l·as·hex·is:·7FFFFFFF"</span>);
  
35 <span·class="macro">assert_eq!</span>(<span·class="macro">format!</span>(<span·class="string">"l·as·hex·is:·{l:#010X}"</span>),·<span·class="string">"l·as·hex·is:·0x7FFFFFFF"</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::fmt;%0A++++%0A++++struct+Length(i32);%0A++++%0A++++impl+fmt::UpperHex+for+Length+%7B%0A++++++++fn+fmt(%26self,+f:+%26mut+fmt::Formatter%3C'_%3E)+-%3E+fmt::Result+%7B%0A++++++++++++let+val+=+self.0;%0A++++%0A++++++++++++fmt::UpperHex::fmt(%26val,+f)+//+delegate+to+i32's+implementation%0A++++++++%7D%0A++++%7D%0A++++%0A++++let+l+=+Length(i32::MAX);%0A++++%0A++++assert_eq!(format!(%22l+as+hex+is:+%7Bl:X%7D%22),+%22l+as+hex+is:+7FFFFFFF%22);%0A++++%0A++++assert_eq!(format!(%22l+as+hex+is:+%7Bl:%23010X%7D%22),+%22l+as+hex+is:+0x7FFFFFFF%22);%0A%7D&amp;edition=2021"></a></div>35 <span·class="macro">assert_eq!</span>(<span·class="macro">format!</span>(<span·class="string">"l·as·hex·is:·{l:#010X}"</span>),·<span·class="string">"l·as·hex·is:·0x7FFFFFFF"</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::fmt;%0A++++%0A++++struct+Length(i32);%0A++++%0A++++impl+fmt::UpperHex+for+Length+%7B%0A++++++++fn+fmt(%26self,+f:+%26mut+fmt::Formatter%3C'_%3E)+-%3E+fmt::Result+%7B%0A++++++++++++let+val+=+self.0;%0A++++%0A++++++++++++fmt::UpperHex::fmt(%26val,+f)+//+delegate+to+i32's+implementation%0A++++++++%7D%0A++++%7D%0A++++%0A++++let+l+=+Length(i32::MAX);%0A++++%0A++++assert_eq!(format!(%22l+as+hex+is:+%7Bl:X%7D%22),+%22l+as+hex+is:+7FFFFFFF%22);%0A++++%0A++++assert_eq!(format!(%22l+as+hex+is:+%7Bl:%23010X%7D%22),+%22l+as+hex+is:+0x7FFFFFFF%22);%0A%7D&amp;edition=2021"></a></div>
36 </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.fmt"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/fmt/mod.rs.html#975">Source</a></span><h4·class="code-header">fn·<a·href="#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="struct.Formatter.html"·title="struct·alloc::fmt::Formatter"[·...·truncated·by·diffoscope;·len:·224,·SHA:·48a84022878e023eb613a3f4487ef6386c5a6c2f059c6e677d47b590cda1d526·...·]/core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.Error.html"·title="struct·alloc::fmt::Error">Error</a>&gt;</h4></section></summary><div·class="docblock"><p>Formats·the·value·using·the·given·formatter.</p>36 </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.fmt"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/fmt/mod.rs.html#975">Source</a></span><h4·class="code-header">fn·<a·href="#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="struct.Formatter.html"·title="struct·alloc::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-[·...·truncated·by·diffoscope;·len:·143,·SHA:·e947633b98b2c7a3dd8c60aad8594e006491688c0783cf75edcb27124e93f10e·...·]/core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.Error.html"·title="struct·alloc::fmt::Error">Error</a>&gt;</h4></section></summary><div·class="docblock"><p>Formats·the·value·using·the·given·formatter.</p>
37 <h5·id="errors"><a·class="doc-anchor"·href="#errors">§</a>Errors</h5>37 <h5·id="errors"><a·class="doc-anchor"·href="#errors">§</a>Errors</h5>
38 <p>This·function·should·return·<a·href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html#variant.Err"·title="variant·core::result::Result::Err"><code>Err</code></a>·if,·and·only·if,·the·provided·<a·href="struct.Formatter.html"·title="struct·alloc::fmt::Formatter"><code>Formatter</co[·...·truncated·by·diffoscope;·len:·57,·SHA:·83a1bf55ff257cd023d246ece47b621fb9956d5c6485b30ed8a0a787981f1416·...·]/core/result/enum.Result.html#variant.Err"·title="variant·core::result::Result::Err"><code>Err</code></a>.38 <p>This·function·should·return·<a·href="../../core/result/enum.Result.html#variant.Err"·title="variant·core::result::Result::Err"><code>Err</code></a>·if,·and·only·if,·the·provided·<a·href="struct.Formatter.html"·title="struct·alloc::fmt::Formatter"><code>Formatter</code></a>·returns·<a·href="..[·...·truncated·by·diffoscope;·len:·3,·SHA:·3a6aebc03771052df0b39b1b45998cbc989aa9d1c3dcbd6c39551085aca533bb·...·]/core/result/enum.Result.html#variant.Err"·title="variant·core::result::Result::Err"><code>Err</code></a>.
39 String·formatting·is·considered·an·infallible·operation;·this·function·only39 String·formatting·is·considered·an·infallible·operation;·this·function·only
40 returns·a·<a·href="type.Result.html"·title="type·alloc::fmt::Result"><code>Result</code></a>·because·writing·to·the·underlying·stream·might·fail·and·it·must40 returns·a·<a·href="type.Result.html"·title="type·alloc::fmt::Result"><code>Result</code></a>·because·writing·to·the·underlying·stream·might·fail·and·it·must
41 provide·a·way·to·propagate·the·fact·that·an·error·has·occurred·back·up·the·stack.</p>41 provide·a·way·to·propagate·the·fact·that·an·error·has·occurred·back·up·the·stack.</p>
42 </div></details></div><h2·id="implementors"·class="section-header">Implementors<a·href="#implementors"·class="anchor">§</a></h2><div·id="implementors-list"><section·id="impl-UpperHex-for-i8"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/fmt/num.rs.html#168">Source</a></span><a·href="#impl-UpperHex-for-i8"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="trait.UpperHex.html"·title="trait·alloc::fmt::UpperHex">UpperHex</a>·for[·...·truncated·by·diffoscope;·len:·6498,·SHA:·7ae6e3e0d3dd07fe021a5f4168b0c2c55dcbbfb599fe35aff25383f116d13fe3·...·]/core/primitive.reference.html">&amp;T</a><div·class="where">where42 </div></details></div><h2·id="implementors"·class="section-header">Implementors<a·href="#implementors"·class="anchor">§</a></h2><div·id="implementors-list"><section·id="impl-UpperHex-for-i8"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/fmt/num.rs.html#168">Source</a></span><a·href="#impl-UpperHex-for-i8"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="trait.UpperHex.html"·title="trait·alloc::fmt::UpperHex">UpperHex</a>·for·<a·class="primitive"·href=[·...·truncated·by·diffoscope;·len:·5796,·SHA:·aca9f7f4fe3e7ca56a2f2d5a0a96997074985357503b166b56c71be59663d842·...·]/core/primitive.reference.html">&amp;T</a><div·class="where">where
43 ····T:·<a·class="trait"·href="trait.UpperHex.html"·title="trait·alloc::fmt::UpperHex">UpperHex</a>·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section><section·id="impl-UpperHex-for-%26mut+T"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·versi[·...·truncated·by·diffoscope;·len:·378,·SHA:·e1c1747c80c8a209a11adbdf2d19f2afa3150f603a9ea72f5294e23f80174958·...·]/core/primitive.reference.html">&amp;mut·T</a><div·class="where">where43 ····T:·<a·class="trait"·href="trait.UpperHex.html"·title="trait·alloc::fmt::UpperHex">UpperHex</a>·+·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section><section·id="impl-UpperHex-for-%26mut+T"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a[·...·truncated·by·diffoscope;·len:·297,·SHA:·16dac16d1acb9d04f6f0e73088f2cdd0d8fa452052a907989ef3b54e0be12c7c·...·]/core/primitive.reference.html">&amp;mut·T</a><div·class="where">where
44 ····T:·<a·class="trait"·href="trait.UpperHex.html"·title="trait·alloc::fmt::UpperHex">UpperHex</a>·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section><section·id="impl-UpperHex-for-NonZero%3CT%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust[·...·truncated·by·diffoscope;·len:·396,·SHA:·3da900b12c781abff97bff44c3870693ac9cefa7b7ac3f61105d0a5c22666314·...·]/core/num/nonzero/struct.NonZero.html"·title="struct·core::num::nonzero::NonZero">NonZero</a>&lt;T&gt;<div·class="where">where44 ····T:·<a·class="trait"·href="trait.UpperHex.html"·title="trait·alloc::fmt::UpperHex">UpperHex</a>·+·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section><section·id="impl-UpperHex-for-NonZero%3CT%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.28.0">1.28.0</sp[·...·truncated·by·diffoscope;·len:·315,·SHA:·12abda5940eb88a769beadf72e7123ed53c878eb1daee5fe8cbca2ce7157ce45·...·]/core/num/nonzero/struct.NonZero.html"·title="struct·core::num::nonzero::NonZero">NonZero</a>&lt;T&gt;<div·class="where">where
45 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/num/nonzero/trait.ZeroablePrimitive.html"·title="trait·core::num::nonzero::ZeroablePrimitive">ZeroablePrimitive</a>·+·<a·class="trait"·href="trait.UpperHex.html"·title="trait·alloc::fmt::UpperHex">UpperHex</a>,</div></[·...·truncated·by·diffoscope;·len:·541,·SHA:·0603f4e5375266d1f48e4f7106b7ea74c8623eba9b90991db554eea4ccddc080·...·]/core/num/saturating/struct.Saturating.html"·title="struct·core::num::saturating::Saturating">Saturating</a>&lt;T&gt;<div·class="where">where45 ····T:·<a·class="trait"·href="../../core/num/nonzero/trait.ZeroablePrimitive.html"·title="trait·core::num::nonzero::ZeroablePrimitive">ZeroablePrimitive</a>·+·<a·class="trait"·href="trait.UpperHex.html"·title="trait·alloc::fmt::UpperHex">UpperHex</a>,</div></h3></section><section·id="i[·...·truncated·by·diffoscope;·len:·460,·SHA:·a892dd7f30fdd552eecbb06753a174749c0759b499e0d5c9379a2d2a039de45b·...·]/core/num/saturating/struct.Saturating.html"·title="struct·core::num::saturating::Saturating">Saturating</a>&lt;T&gt;<div·class="where">where
46 ····T:·<a·class="trait"·href="trait.UpperHex.html"·title="trait·alloc::fmt::UpperHex">UpperHex</a>,</div></h3></section><section·id="impl-UpperHex-for-Wrapping%3CT%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.11.0">1.11.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/num/wrapping.rs.html#81">Source</a></span><a·href="#impl-UpperHex-for-Wrapping%3CT%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="trait.UpperHex.html"·title="trait·alloc::fmt::[·...·truncated·by·diffoscope;·len:·83,·SHA:·a1ba5d0fc6c7958de7f4bb38d44c363860500ca4f2b5294bcd331501f703998e·...·]/core/num/wrapping/struct.Wrapping.html"·title="struct·core::num::wrapping::Wrapping">Wrapping</a>&lt;T&gt;<div·class="where">where46 ····T:·<a·class="trait"·href="trait.UpperHex.html"·title="trait·alloc::fmt::UpperHex">UpperHex</a>,</div></h3></section><section·id="impl-UpperHex-for-Wrapping%3CT%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.11.0">1.11.0</span>···<a·class="src"·href="../../src/core/num/wrapping.rs.html#81">Source</a></span><a·href="#impl-UpperHex-for-Wrapping%3CT%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="trait.UpperHex.html"·title="trait·alloc::fmt::UpperHex">UpperHex</a>·for·[·...·truncated·by·diffoscope;·len:·29,·SHA:·f42299b496ed6ce79be9ceef4d2ea4b698f0d9044b56576d83ab06deebff7c74·...·]/core/num/wrapping/struct.Wrapping.html"·title="struct·core::num::wrapping::Wrapping">Wrapping</a>&lt;T&gt;<div·class="where">where
47 ····T:·<a·class="trait"·href="trait.UpperHex.html"·title="trait·alloc::fmt::UpperHex">UpperHex</a>,</div></h3></section></div><script·src="../../trait.impl/core/fmt/trait.UpperHex.js"·data-ignore-extern-crates="core"·async></script></section></div></main></body></html>47 ····T:·<a·class="trait"·href="trait.UpperHex.html"·title="trait·alloc::fmt::UpperHex">UpperHex</a>,</div></h3></section></div><script·src="../../trait.impl/core/fmt/trait.UpperHex.js"·data-ignore-extern-crates="core"·async></script></section></div></main></body></html>
26.5 KB
./usr/share/doc/rust-doc/html/alloc/fmt/trait.Write.html
    
Offset 1, 19 lines modifiedOffset 1, 19 lines modified
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="A·trait·for·writing·or·formatting·into·Unicode-accepting·buffers·or·streams."><title>Write·in·alloc::fmt·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»   2025-01-07)»(built»  from»      a»     source»       tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Write</a></h2><h3><a·href="#required-methods">Required·Methods</a></h3><ul·class="block"><li><a·href="#tymethod.write_str"·title="write_str">write_str</a></li></ul><h3><a·href="#provided-methods">Provided·Methods</a></h3><ul·class="block"><li><a·href="#method.write_char"·title="write_char">write_char</a></li><li><a·href="#method.write_fmt"·title="write_fmt">write_fmt</a></li></ul><h3><a·href="#implementors">Implementors</a></h3></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>fmt</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">alloc</a>::<wbr><a·href="index.html">fmt</a></span><h1>Trait·<span·class="trait">Write</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/fmt/mod.rs.html#114">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·trait·Write·{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="A·trait·for·writing·or·formatting·into·Unicode-accepting·buffers·or·streams."><title>Write·in·alloc::fmt·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»   2025-01-07)»(built»  from»      a»     source»       tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Write</a></h2><h3><a·href="#required-methods">Required·Methods</a></h3><ul·class="block"><li><a·href="#tymethod.write_str"·title="write_str">write_str</a></li></ul><h3><a·href="#provided-methods">Provided·Methods</a></h3><ul·class="block"><li><a·href="#method.write_char"·title="write_char">write_char</a></li><li><a·href="#method.write_fmt"·title="write_fmt">write_fmt</a></li></ul><h3><a·href="#implementors">Implementors</a></h3></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>fmt</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">alloc</a>::<wbr><a·href="index.html">fmt</a></span><h1>Trait·<span·class="trait">Write</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../src/core/fmt/mod.rs.html#114">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·trait·Write·{
2 ····//·Required·method2 ····//·Required·method
3 ····fn·<a·href="#tymethod.write_str"·class="fn">write_str</a>(&amp;mut·self,·s:·&amp;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.str.html">str</a>)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.o[·...·truncated·by·diffoscope;·len:·9,·SHA:·4c9ec6484c759d1bca266b39ac5a39d74150885e936a4b9311f8788ec25e05b3·...·]/core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.Error.html"·title="struct·alloc::fmt::Error">Error</a>&gt;;3 ····fn·<a·href="#tymethod.write_str"·class="fn">write_str</a>(&amp;mut·self,·s:·&amp;<a·class="primitive"·href="../../core/primitive.str.html">str</a>)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="primitive"·href="../../core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.Error.html"·title="struct·alloc::fmt::Error">Error</a>&gt;;
  
4 ····//·Provided·methods4 ····//·Provided·methods
5 ····fn·<a·href="#method.write_char"·class="fn">write_char</a>(&amp;mut·self,·c:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.char.html">char</a>)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="primitive"·href="https://doc.rust-lang[·...·truncated·by·diffoscope;·len:·11,·SHA:·7397ec90b441899a22cb130b5069e9041d91972aee5f9fe027157758d07ebcc4·...·]/core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.Error.html"·title="struct·alloc::fmt::Error">Error</a>&gt;·{·...·}5 ····fn·<a·href="#method.write_char"·class="fn">write_char</a>(&amp;mut·self,·c:·<a·class="primitive"·href="../../core/primitive.char.html">char</a>)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="primitive"·href="../../core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.Error.html"·title="struct·alloc::fmt::Error">Error</a>&gt;·{·...·}
6 <span·class="item-spacer"></span>····fn·<a·href="#method.write_fmt"·class="fn">write_fmt</a>(&amp;mut·self,·args:·<a·class="struct"·href="struct.Arguments.html"·title="struct·alloc::fmt::Arguments">Arguments</a>&lt;'_&gt;)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.Error.html"·title="struct·alloc::fmt::Error">Error</a>&gt;·{·...·}6 <span·class="item-spacer"></span>····fn·<a·href="#method.write_fmt"·class="fn">write_fmt</a>(&amp;mut·self,·args:·<a·class="struct"·href="struct.Arguments.html"·title="struct·alloc::fmt::Arguments">Arguments</a>&lt;'_&gt;)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="primitive"·href="../../core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.Error.html"·title="struct·alloc::fmt::Error">Error</a>&gt;·{·...·}
7 }</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>A·trait·for·writing·or·formatting·into·Unicode-accepting·buffers·or·streams.</p>7 }</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>A·trait·for·writing·or·formatting·into·Unicode-accepting·buffers·or·streams.</p>
8 <p>This·trait·only·accepts·UTF-8–encoded·data·and·is·not·<a·href="../../std/io/trait.Write.html#tymethod.flush">flushable</a>.·If·you·only8 <p>This·trait·only·accepts·UTF-8–encoded·data·and·is·not·<a·href="../../std/io/trait.Write.html#tymethod.flush">flushable</a>.·If·you·only
9 want·to·accept·Unicode·and·you·don’t·need·flushing,·you·should·implement·this·trait;9 want·to·accept·Unicode·and·you·don’t·need·flushing,·you·should·implement·this·trait;
10 otherwise·you·should·implement·<a·href="../../std/io/trait.Write.html"><code>std::io::Write</code></a>.</p>10 otherwise·you·should·implement·<a·href="../../std/io/trait.Write.html"><code>std::io::Write</code></a>.</p>
11 </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.write_str"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/fmt/mod.rs.html#146">Source</a></span><h4·class="code-header">fn·<a·href="#tymethod.write_str"·class="fn">write_str</a>(&amp;mut·self,·s:·&amp;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primit[·...·truncated·by·diffoscope;·len:·221,·SHA:·c520aeb5a657ab8791d1c7b8e7f7ef4ba525ac60af83a2e8bb59726476c0995d·...·]/core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.Error.html"·title="struct·alloc::fmt::Error">Error</a>&gt;</h4></section></summary><div·class="docblock"><p>Writes·a·string·slice·into·this·writer,·returning·whether·the·write11 </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.write_str"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/fmt/mod.rs.html#146">Source</a></span><h4·class="code-header">fn·<a·href="#tymethod.write_str"·class="fn">write_str</a>(&amp;mut·self,·s:·&amp;<a·class="primitive"·href="../../core/primitive.str.html">str</a>)·-&gt;·<a·class="enum"·href="../[·...·truncated·by·diffoscope;·len:·113,·SHA:·f3d8c9279f276cb11faf97dfac110f40893c29ef6eac1266fb7622721e9d5d61·...·]/core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.Error.html"·title="struct·alloc::fmt::Error">Error</a>&gt;</h4></section></summary><div·class="docblock"><p>Writes·a·string·slice·into·this·writer,·returning·whether·the·write
12 succeeded.</p>12 succeeded.</p>
13 <p>This·method·can·only·succeed·if·the·entire·string·slice·was·successfully13 <p>This·method·can·only·succeed·if·the·entire·string·slice·was·successfully
14 written,·and·this·method·will·not·return·until·all·data·has·been14 written,·and·this·method·will·not·return·until·all·data·has·been
15 written·or·an·error·occurs.</p>15 written·or·an·error·occurs.</p>
16 <h5·id="errors"><a·class="doc-anchor"·href="#errors">§</a>Errors</h5>16 <h5·id="errors"><a·class="doc-anchor"·href="#errors">§</a>Errors</h5>
17 <p>This·function·will·return·an·instance·of·<a·href="struct.Error.html"·title="struct·alloc::fmt::Error"><code>std::fmt::Error</code></a>·on·error.</p>17 <p>This·function·will·return·an·instance·of·<a·href="struct.Error.html"·title="struct·alloc::fmt::Error"><code>std::fmt::Error</code></a>·on·error.</p>
18 <p>The·purpose·of·that·error·is·to·abort·the·formatting·operation·when·the·underlying18 <p>The·purpose·of·that·error·is·to·abort·the·formatting·operation·when·the·underlying
Offset 27, 16 lines modifiedOffset 27, 16 lines modified
27 <span·class="kw">fn·</span>writer&lt;W:·Write&gt;(f:·<span·class="kw-2">&amp;mut·</span>W,·s:·<span·class="kw-2">&amp;</span>str)·-&gt;·<span·class="prelude-ty">Result</span>&lt;(),·Error&gt;·{27 <span·class="kw">fn·</span>writer&lt;W:·Write&gt;(f:·<span·class="kw-2">&amp;mut·</span>W,·s:·<span·class="kw-2">&amp;</span>str)·-&gt;·<span·class="prelude-ty">Result</span>&lt;(),·Error&gt;·{
28 ····f.write_str(s)28 ····f.write_str(s)
29 }29 }
  
30 <span·class="kw">let·</span><span·class="kw-2">mut·</span>buf·=·String::new();30 <span·class="kw">let·</span><span·class="kw-2">mut·</span>buf·=·String::new();
31 writer(<span·class="kw-2">&amp;mut·</span>buf,·<span·class="string">"hola"</span>).unwrap();31 writer(<span·class="kw-2">&amp;mut·</span>buf,·<span·class="string">"hola"</span>).unwrap();
32 <span·class="macro">assert_eq!</span>(<span·class="kw-2">&amp;</span>buf,·<span·class="string">"hola"</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::fmt::%7BError,+Write%7D;%0A++++%0A++++fn+writer%3CW:+Write%3E(f:+%26mut+W,+s:+%26str)+-%3E+Result%3C(),+Error%3E+%7B%0A++++++++f.write_str(s)%0A++++%7D%0A++++%0A++++let+mut+buf+=+String::new();%0A++++writer(%26mut+buf,+%22hola%22).unwrap();%0A++++assert_eq!(%26buf,+%22hola%22);%0A%7D&amp;edition=2021"></a></div>32 <span·class="macro">assert_eq!</span>(<span·class="kw-2">&amp;</span>buf,·<span·class="string">"hola"</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::fmt::%7BError,+Write%7D;%0A++++%0A++++fn+writer%3CW:+Write%3E(f:+%26mut+W,+s:+%26str)+-%3E+Result%3C(),+Error%3E+%7B%0A++++++++f.write_str(s)%0A++++%7D%0A++++%0A++++let+mut+buf+=+String::new();%0A++++writer(%26mut+buf,+%22hola%22).unwrap();%0A++++assert_eq!(%26buf,+%22hola%22);%0A%7D&amp;edition=2021"></a></div>
33 </div></details></div><h2·id="provided-methods"·class="section-header">Provided·Methods<a·href="#provided-methods"·class="anchor">§</a></h2><div·class="methods"><details·class="toggle·method-toggle"·open><summary><section·id="method.write_char"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.1.0">1.1.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/fmt/mod.rs.html#174">Source</a></span><h4·class="code-header">fn·<a·href="#method.write_char"·class="fn">write_char</a>(&amp;mut·self,·c:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.c[·...·truncated·by·diffoscope;·len:·442,·SHA:·e56a80fb957d28a9e6be47891efe335153ca817c2dd678cbbc56c96a78b0ee86·...·]/core/primitive.char.html"·title="primitive·char"><code>char</code></a>·into·this·writer,·returning·whether·the·write·succeeded.</p>33 </div></details></div><h2·id="provided-methods"·class="section-header">Provided·Methods<a·href="#provided-methods"·class="anchor">§</a></h2><div·class="methods"><details·class="toggle·method-toggle"·open><summary><section·id="method.write_char"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.1.0">1.1.0</span>···<a·class="src"·href="../../src/core/fmt/mod.rs.html#174">Source</a></span><h4·class="code-header">fn·<a·href="#method.write_char"·class="fn">write_char</a>(&amp;mut·self,·c:·<a·class="primitive"·href="../../core/primitive.char.html">char</a>)·-&gt;·<a·class="enum"·href="../../[·...·truncated·by·diffoscope;·len:·307,·SHA:·c502c93d2158228d4e39014e1225d76a18fdb2073de916ade32b231761cfc23a·...·]/core/primitive.char.html"·title="primitive·char"><code>char</code></a>·into·this·writer,·returning·whether·the·write·succeeded.</p>
34 <p>A·single·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.char.html"·title="primitive·char"><code>char</code></a>·may·be·encoded·as·more·than·one·byte.34 <p>A·single·<a·href="../../core/primitive.char.html"·title="primitive·char"><code>char</code></a>·may·be·encoded·as·more·than·one·byte.
35 This·method·can·only·succeed·if·the·entire·byte·sequence·was·successfully35 This·method·can·only·succeed·if·the·entire·byte·sequence·was·successfully
36 written,·and·this·method·will·not·return·until·all·data·has·been36 written,·and·this·method·will·not·return·until·all·data·has·been
37 written·or·an·error·occurs.</p>37 written·or·an·error·occurs.</p>
38 <h5·id="errors-1"><a·class="doc-anchor"·href="#errors-1">§</a>Errors</h5>38 <h5·id="errors-1"><a·class="doc-anchor"·href="#errors-1">§</a>Errors</h5>
39 <p>This·function·will·return·an·instance·of·<a·href="struct.Error.html"·title="struct·alloc::fmt::Error"><code>Error</code></a>·on·error.</p>39 <p>This·function·will·return·an·instance·of·<a·href="struct.Error.html"·title="struct·alloc::fmt::Error"><code>Error</code></a>·on·error.</p>
40 <h5·id="examples-1"><a·class="doc-anchor"·href="#examples-1">§</a>Examples</h5>40 <h5·id="examples-1"><a·class="doc-anchor"·href="#examples-1">§</a>Examples</h5>
41 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt::{Error,·Write};41 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt::{Error,·Write};
Offset 45, 25 lines modifiedOffset 45, 25 lines modified
45 ····f.write_char(c)45 ····f.write_char(c)
46 }46 }
  
47 <span·class="kw">let·</span><span·class="kw-2">mut·</span>buf·=·String::new();47 <span·class="kw">let·</span><span·class="kw-2">mut·</span>buf·=·String::new();
48 writer(<span·class="kw-2">&amp;mut·</span>buf,·<span·class="string">'a'</span>).unwrap();48 writer(<span·class="kw-2">&amp;mut·</span>buf,·<span·class="string">'a'</span>).unwrap();
49 writer(<span·class="kw-2">&amp;mut·</span>buf,·<span·class="string">'b'</span>).unwrap();49 writer(<span·class="kw-2">&amp;mut·</span>buf,·<span·class="string">'b'</span>).unwrap();
50 <span·class="macro">assert_eq!</span>(<span·class="kw-2">&amp;</span>buf,·<span·class="string">"ab"</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::fmt::%7BError,+Write%7D;%0A++++%0A++++fn+writer%3CW:+Write%3E(f:+%26mut+W,+c:+char)+-%3E+Result%3C(),+Error%3E+%7B%0A++++++++f.write_char(c)%0A++++%7D%0A++++%0A++++let+mut+buf+=+String::new();%0A++++writer(%26mut+buf,+'a').unwrap();%0A++++writer(%26mut+buf,+'b').unwrap();%0A++++assert_eq!(%26buf,+%22ab%22);%0A%7D&amp;edition=2021"></a></div>50 <span·class="macro">assert_eq!</span>(<span·class="kw-2">&amp;</span>buf,·<span·class="string">"ab"</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::fmt::%7BError,+Write%7D;%0A++++%0A++++fn+writer%3CW:+Write%3E(f:+%26mut+W,+c:+char)+-%3E+Result%3C(),+Error%3E+%7B%0A++++++++f.write_char(c)%0A++++%7D%0A++++%0A++++let+mut+buf+=+String::new();%0A++++writer(%26mut+buf,+'a').unwrap();%0A++++writer(%26mut+buf,+'b').unwrap();%0A++++assert_eq!(%26buf,+%22ab%22);%0A%7D&amp;edition=2021"></a></div>
51 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.write_fmt"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/fmt/mod.rs.html#202">Source</a></span><h4·class="code-header">fn·<a·href="#method.write_fmt"·class="fn">write_fmt</a>(&amp;mut·self,·args:·<a·class="struct"·href="struct.Arguments.html"·title="struct·alloc::fmt::Ar[·...·truncated·by·diffoscope;·len:·469,·SHA:·b20e8881a77ef3a98d67db43469ee5c35194b0567f14a0ce1fcfd1dde231d722·...·]/core/macro.write.html"·title="macro·core::write"><code>write!</code></a>·macro·with·implementors·of·this·trait.</p>51 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.write_fmt"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/fmt/mod.rs.html#202">Source</a></span><h4·class="code-header">fn·<a·href="#method.write_fmt"·class="fn">write_fmt</a>(&amp;mut·self,·args:·<a·class="struct"·href="struct.Arguments.html"·title="struct·alloc::fmt::Arguments">Arguments</a>&lt;'[·...·truncated·by·diffoscope;·len:·361,·SHA:·1eceed9ae7a4ed9d33d95c125e7fe42efdab6eeeb649f0fc39a52b20bfc9dc55·...·]/core/macro.write.html"·title="macro·core::write"><code>write!</code></a>·macro·with·implementors·of·this·trait.</p>
52 <p>This·method·should·generally·not·be·invoked·manually,·but·rather·through52 <p>This·method·should·generally·not·be·invoked·manually,·but·rather·through
53 the·<a·href="https://doc.rust-lang.org/1.84.0/core/macro.write.html"·title="macro·core::write"><code>write!</code></a>·macro·itself.</p>53 the·<a·href="../../core/macro.write.html"·title="macro·core::write"><code>write!</code></a>·macro·itself.</p>
54 <h5·id="errors-2"><a·class="doc-anchor"·href="#errors-2">§</a>Errors</h5>54 <h5·id="errors-2"><a·class="doc-anchor"·href="#errors-2">§</a>Errors</h5>
55 <p>This·function·will·return·an·instance·of·<a·href="struct.Error.html"·title="struct·alloc::fmt::Error"><code>Error</code></a>·on·error.·Please·see55 <p>This·function·will·return·an·instance·of·<a·href="struct.Error.html"·title="struct·alloc::fmt::Error"><code>Error</code></a>·on·error.·Please·see
56 <a·href="trait.Write.html#tymethod.write_str"·title="method·alloc::fmt::Write::write_str">write_str</a>·for·details.</p>56 <a·href="trait.Write.html#tymethod.write_str"·title="method·alloc::fmt::Write::write_str">write_str</a>·for·details.</p>
57 <h5·id="examples-2"><a·class="doc-anchor"·href="#examples-2">§</a>Examples</h5>57 <h5·id="examples-2"><a·class="doc-anchor"·href="#examples-2">§</a>Examples</h5>
58 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt::{Error,·Write};58 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt::{Error,·Write};
  
59 <span·class="kw">fn·</span>writer&lt;W:·Write&gt;(f:·<span·class="kw-2">&amp;mut·</span>W,·s:·<span·class="kw-2">&amp;</span>str)·-&gt;·<span·class="prelude-ty">Result</span>&lt;(),·Error&gt;·{59 <span·class="kw">fn·</span>writer&lt;W:·Write&gt;(f:·<span·class="kw-2">&amp;mut·</span>W,·s:·<span·class="kw-2">&amp;</span>str)·-&gt;·<span·class="prelude-ty">Result</span>&lt;(),·Error&gt;·{
60 ····f.write_fmt(<span·class="macro">format_args!</span>(<span·class="string">"{s}"</span>))60 ····f.write_fmt(<span·class="macro">format_args!</span>(<span·class="string">"{s}"</span>))
61 }61 }
  
62 <span·class="kw">let·</span><span·class="kw-2">mut·</span>buf·=·String::new();62 <span·class="kw">let·</span><span·class="kw-2">mut·</span>buf·=·String::new();
63 writer(<span·class="kw-2">&amp;mut·</span>buf,·<span·class="string">"world"</span>).unwrap();63 writer(<span·class="kw-2">&amp;mut·</span>buf,·<span·class="string">"world"</span>).unwrap();
64 <span·class="macro">assert_eq!</span>(<span·class="kw-2">&amp;</span>buf,·<span·class="string">"world"</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::fmt::%7BError,+Write%7D;%0A++++%0A++++fn+writer%3CW:+Write%3E(f:+%26mut+W,+s:+%26str)+-%3E+Result%3C(),+Error%3E+%7B%0A++++++++f.write_fmt(format_args!(%22%7Bs%7D%22))%0A++++%7D%0A++++%0A++++let+mut+buf+=+String::new();%0A++++writer(%26mut+buf,+%22world%22).unwrap();%0A++++assert_eq!(%26buf,+%22world%22);%0A%7D&amp;edition=2021"></a></div>64 <span·class="macro">assert_eq!</span>(<span·class="kw-2">&amp;</span>buf,·<span·class="string">"world"</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::fmt::%7BError,+Write%7D;%0A++++%0A++++fn+writer%3CW:+Write%3E(f:+%26mut+W,+s:+%26str)+-%3E+Result%3C(),+Error%3E+%7B%0A++++++++f.write_fmt(format_args!(%22%7Bs%7D%22))%0A++++%7D%0A++++%0A++++let+mut+buf+=+String::new();%0A++++writer(%26mut+buf,+%22world%22).unwrap();%0A++++assert_eq!(%26buf,+%22world%22);%0A%7D&amp;edition=2021"></a></div>
65 </div></details></div><h2·id="implementors"·class="section-header">Implementors<a·href="#implementors"·class="anchor">§</a></h2><div·id="implementors-list"><section·id="impl-Write-for-String"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/alloc/string.rs.html#3083-3095">Source</a></span><a·href="#impl-Write-for-String"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="trait.Write.html"·title="trait·alloc::fmt::Write">Write</a>·for·<a·class="struct"·href="../string/struct.String.html"·title="struct·alloc::string::String">String</a></h3></section><section·id="impl-Write-for-Formatter%3C'_%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.2.0">1.2.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/fmt/mod.rs.html#2360">Source</a></span><a·href="#impl-Write-for-Formatter%3C'_%3E"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="trait.Write.html"·title="trait·alloc::fmt::Write">Write</a>[·...·truncated·by·diffoscope;·len:·617,·SHA:·72c29dff7fb25f8919e6364c0839f2fd94aec9efbdda9cbe395ac5fe661ae61f·...·]/core/primitive.reference.html">&amp;mut·W</a><div·class="where">where65 </div></details></div><h2·id="implementors"·class="section-header">Implementors<a·href="#implementors"·class="anchor">§</a></h2><div·id="implementors-list"><section·id="impl-Write-for-String"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/alloc/string.rs.html#3083-3095">Source</a></span><a·href="#impl-Write-for-String"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="trait.Write.html"·title="trait·alloc::fmt::Write">Write</a>·for·<a·class="struct"·href="../string/struct.String.html"·title="struct·alloc::string::String">String</a></h3></section><section·id="impl-Write-for-Formatter%3C'_%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.2.0">1.2.0</span>···<a·class="src"·href="../../src/core/fmt/mod.rs.html#2360">Source</a></span><a·href="#impl-Write-for-Formatter%3C'_%3E"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="trait.Write.html"·title="trait·alloc::fmt::Write">Write</a>·for·<a·class="struct"·href[·...·truncated·by·diffoscope;·len:·536,·SHA:·8da765eafaa765986554c54f918ec46270e49174230e8cce2d6483e3204a69db·...·]/core/primitive.reference.html">&amp;mut·W</a><div·class="where">where
66 ····W:·<a·class="trait"·href="trait.Write.html"·title="trait·alloc::fmt::Write">Write</a>·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></div><script·src="../../trait.impl/core/fmt/trait.Write.js"·data-ignore-extern-crates="core"·async></script></section></div></main></body></html>66 ····W:·<a·class="trait"·href="trait.Write.html"·title="trait·alloc::fmt::Write">Write</a>·+·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></div><script·src="../../trait.impl/core/fmt/trait.Write.js"·data-ignore-extern-crates="core"·async></script></section></div></main></body></html>
11.4 KB
./usr/share/doc/rust-doc/html/alloc/fmt/type.Result.html
    
Offset 1, 8 lines modifiedOffset 1, 8 lines modified
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="The·type·returned·by·formatter·methods."><title>Result·in·alloc::fmt·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·type"><!--[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><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»   2025-01-07)»(built»  from»      a»     source»       tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Result</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#examples"·title="Examples">Examples</a></li></ul><h3><a·href="#aliased-type">Aliased·type</a></h3><h3><a·href="#variants">Variants</a></h3><ul·class="block·variant"><li><a·href="#variant.Err"·title="Err">Err</a></li><li><a·href="#variant.Ok"·title="Ok">Ok</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>fmt</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">alloc</a>::<wbr><a·href="index.html">fmt</a></span><h1>Type·Alias·<span·class="type">Result</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/fmt/mod.rs.html#66">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·type·Result·=·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html"·title="enum·core::result::Result"[·...·truncated·by·diffoscope;·len:·74,·SHA:·71e46ae4b4c44634095701022e8f7cf085e4902cdab3fe98839d035fe213b157·...·]/core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.Error.html"·title="struct·alloc::fmt::Error">Error</a>&gt;;</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>The·type·returned·by·formatter·methods.</p>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="The·type·returned·by·formatter·methods."><title>Result·in·alloc::fmt·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·type"><!--[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><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»   2025-01-07)»(built»  from»      a»     source»       tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Result</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#examples"·title="Examples">Examples</a></li></ul><h3><a·href="#aliased-type">Aliased·type</a></h3><h3><a·href="#variants">Variants</a></h3><ul·class="block·variant"><li><a·href="#variant.Err"·title="Err">Err</a></li><li><a·href="#variant.Ok"·title="Ok">Ok</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>fmt</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">alloc</a>::<wbr><a·href="index.html">fmt</a></span><h1>Type·Alias·<span·class="type">Result</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../src/core/fmt/mod.rs.html#66">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·type·Result·=·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="primitive"·href="../../core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.Error.html"·title="struct·alloc::fmt::Error">Error</a>&gt;;</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>The·type·returned·by·formatter·methods.</p>
2 <h2·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h2>2 <h2·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h2>
3 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt;3 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt;
  
4 <span·class="attr">#[derive(Debug)]4 <span·class="attr">#[derive(Debug)]
5 </span><span·class="kw">struct·</span>Triangle·{5 </span><span·class="kw">struct·</span>Triangle·{
6 ····a:·f32,6 ····a:·f32,
7 ····b:·f32,7 ····b:·f32,
Offset 15, 12 lines modifiedOffset 15, 12 lines modified
15 ····}15 ····}
16 }16 }
  
17 <span·class="kw">let·</span>pythagorean_triple·=·Triangle·{·a:·<span·class="number">3.0</span>,·b:·<span·class="number">4.0</span>,·c:·<span·class="number">5.0·</span>};17 <span·class="kw">let·</span>pythagorean_triple·=·Triangle·{·a:·<span·class="number">3.0</span>,·b:·<span·class="number">4.0</span>,·c:·<span·class="number">5.0·</span>};
  
18 <span·class="macro">assert_eq!</span>(<span·class="macro">format!</span>(<span·class="string">"{pythagorean_triple}"</span>),·<span·class="string">"(3,·4,·5)"</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::fmt;%0A++++%0A++++%23%5Bderive(Debug)%5D%0A++++struct+Triangle+%7B%0A++++++++a:+f32,%0A++++++++b:+f32,%0A++++++++c:+f32%0A++++%7D%0A++++%0A++++impl+fmt::Display+for+Triangle+%7B%0A++++++++fn+fmt(%26self,+f:+%26mut+fmt::Formatter%3C'_%3E)+-%3E+fmt::Result+%7B%0A++++++++++++write!(f,+%22(%7B%7D,+%7B%7D,+%7B%7D)%22,+self.a,+self.b,+self.c)%0A++++++++%7D%0A++++%7D%0A++++%0A++++let+pythagorean_triple+=+Triangle+%7B+a:+3.0,+b:+4.0,+c:+5.0+%7D;%0A++++%0A++++assert_eq!(format!(%22%7Bpythagorean_triple%7D%22),+%22(3,+4,+5)%22);%0A%7D&amp;edition=2021"></a></div>18 <span·class="macro">assert_eq!</span>(<span·class="macro">format!</span>(<span·class="string">"{pythagorean_triple}"</span>),·<span·class="string">"(3,·4,·5)"</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::fmt;%0A++++%0A++++%23%5Bderive(Debug)%5D%0A++++struct+Triangle+%7B%0A++++++++a:+f32,%0A++++++++b:+f32,%0A++++++++c:+f32%0A++++%7D%0A++++%0A++++impl+fmt::Display+for+Triangle+%7B%0A++++++++fn+fmt(%26self,+f:+%26mut+fmt::Formatter%3C'_%3E)+-%3E+fmt::Result+%7B%0A++++++++++++write!(f,+%22(%7B%7D,+%7B%7D,+%7B%7D)%22,+self.a,+self.b,+self.c)%0A++++++++%7D%0A++++%7D%0A++++%0A++++let+pythagorean_triple+=+Triangle+%7B+a:+3.0,+b:+4.0,+c:+5.0+%7D;%0A++++%0A++++assert_eq!(format!(%22%7Bpythagorean_triple%7D%22),+%22(3,+4,+5)%22);%0A%7D&amp;edition=2021"></a></div>
19 </div></details><h2·id="aliased-type"·class="section-header">Aliased·Type<a·href="#aliased-type"·class="anchor">§</a></h2><pre·class="rust·item-decl"><code>enum·Result·{19 </div></details><h2·id="aliased-type"·class="section-header">Aliased·Type<a·href="#aliased-type"·class="anchor">§</a></h2><pre·class="rust·item-decl"><code>enum·Result·{
20 ····Ok(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.unit.html">()</a>),20 ····Ok(<a·class="primitive"·href="../../core/primitive.unit.html">()</a>),
21 ····Err(<a·class="struct"·href="struct.Error.html"·title="struct·alloc::fmt::Error">Error</a>),21 ····Err(<a·class="struct"·href="struct.Error.html"·title="struct·alloc::fmt::Error">Error</a>),
22 }</code></pre><h2·id="variants"·class="variants·section-header">Variants<a·href="#variants"·class="anchor">§</a></h2><div·class="variants"><section·id="variant.Ok"·class="variant"><a·href="#variant.Ok"·class="anchor">§</a><span·class="since·rightside"·title="Stable·since·Rust·version·1.36.0">1.36.0</span><h3·class="code-header">Ok(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.unit.html">()</a>)</h3></section><div·class="docblock"><p>Contains·the·success·value</p>22 }</code></pre><h2·id="variants"·class="variants·section-header">Variants<a·href="#variants"·class="anchor">§</a></h2><div·class="variants"><section·id="variant.Ok"·class="variant"><a·href="#variant.Ok"·class="anchor">§</a><span·class="since·rightside"·title="Stable·since·Rust·version·1.36.0">1.36.0</span><h3·class="code-header">Ok(<a·class="primitive"·href="../../core/primitive.unit.html">()</a>)</h3></section><div·class="docblock"><p>Contains·the·success·value</p>
23 </div><section·id="variant.Err"·class="variant"><a·href="#variant.Err"·class="anchor">§</a><span·class="since·rightside"·title="Stable·since·Rust·version·1.36.0">1.36.0</span><h3·class="code-header">Err(<a·class="struct"·href="struct.Error.html"·title="struct·alloc::fmt::Error">Error</a>)</h3></section><div·class="docblock"><p>Contains·the·error·value</p>23 </div><section·id="variant.Err"·class="variant"><a·href="#variant.Err"·class="anchor">§</a><span·class="since·rightside"·title="Stable·since·Rust·version·1.36.0">1.36.0</span><h3·class="code-header">Err(<a·class="struct"·href="struct.Error.html"·title="struct·alloc::fmt::Error">Error</a>)</h3></section><div·class="docblock"><p>Contains·the·error·value</p>
24 </div></div><script·src="../../type.impl/core/result/enum.Result.js"·data-self-path="alloc::fmt::Result"·async></script></section></div></main></body></html>24 </div></div><script·src="../../type.impl/core/result/enum.Result.js"·data-self-path="alloc::fmt::Result"·async></script></section></div></main></body></html>
2.33 KB
./usr/share/doc/rust-doc/html/alloc/index.html
    
Offset 13, 16 lines modifiedOffset 13, 16 lines modified
13 is·the·same·as·that·of·a·pointer.·Tree-like·data·structures·are·often·built13 is·the·same·as·that·of·a·pointer.·Tree-like·data·structures·are·often·built
14 with·boxes·because·each·node·often·has·only·one·owner,·the·parent.</p>14 with·boxes·because·each·node·often·has·only·one·owner,·the·parent.</p>
15 <h3·id="reference-counted-pointers"><a·class="doc-anchor"·href="#reference-counted-pointers">§</a>Reference·counted·pointers</h3>15 <h3·id="reference-counted-pointers"><a·class="doc-anchor"·href="#reference-counted-pointers">§</a>Reference·counted·pointers</h3>
16 <p>The·<a·href="rc/index.html"·title="mod·alloc::rc"><code>Rc</code></a>·type·is·a·non-threadsafe·reference-counted·pointer·type·intended16 <p>The·<a·href="rc/index.html"·title="mod·alloc::rc"><code>Rc</code></a>·type·is·a·non-threadsafe·reference-counted·pointer·type·intended
17 for·sharing·memory·within·a·thread.·An·<a·href="rc/index.html"·title="mod·alloc::rc"><code>Rc</code></a>·pointer·wraps·a·type,·<code>T</code>,·and17 for·sharing·memory·within·a·thread.·An·<a·href="rc/index.html"·title="mod·alloc::rc"><code>Rc</code></a>·pointer·wraps·a·type,·<code>T</code>,·and
18 only·allows·access·to·<code>&amp;T</code>,·a·shared·reference.</p>18 only·allows·access·to·<code>&amp;T</code>,·a·shared·reference.</p>
19 <p>This·type·is·useful·when·inherited·mutability·(such·as·using·<a·href="boxed/index.html"·title="mod·alloc::boxed"><code>Box</code></a>)·is·too19 <p>This·type·is·useful·when·inherited·mutability·(such·as·using·<a·href="boxed/index.html"·title="mod·alloc::boxed"><code>Box</code></a>)·is·too
20 constraining·for·an·application,·and·is·often·paired·with·the·<a·href="https://doc.rust-lang.org/1.84.0/core/cell/index.html"·title="mod·core::cell"><code>Cell</code></a>·or20 constraining·for·an·application,·and·is·often·paired·with·the·<a·href="../core/cell/index.html"·title="mod·core::cell"><code>Cell</code></a>·or
21 <a·href="https://doc.rust-lang.org/1.84.0/core/cell/index.html"·title="mod·core::cell"><code>RefCell</code></a>·types·in·order·to·allow·mutation.</p>21 <a·href="../core/cell/index.html"·title="mod·core::cell"><code>RefCell</code></a>·types·in·order·to·allow·mutation.</p>
22 <h3·id="atomically-reference-counted-pointers"><a·class="doc-anchor"·href="#atomically-reference-counted-pointers">§</a>Atomically·reference·counted·pointers</h3>22 <h3·id="atomically-reference-counted-pointers"><a·class="doc-anchor"·href="#atomically-reference-counted-pointers">§</a>Atomically·reference·counted·pointers</h3>
23 <p>The·<a·href="sync/index.html"·title="mod·alloc::sync"><code>Arc</code></a>·type·is·the·threadsafe·equivalent·of·the·<a·href="rc/index.html"·title="mod·alloc::rc"><code>Rc</code></a>·type.·It23 <p>The·<a·href="sync/index.html"·title="mod·alloc::sync"><code>Arc</code></a>·type·is·the·threadsafe·equivalent·of·the·<a·href="rc/index.html"·title="mod·alloc::rc"><code>Rc</code></a>·type.·It
24 provides·all·the·same·functionality·of·<a·href="rc/index.html"·title="mod·alloc::rc"><code>Rc</code></a>,·except·it·requires·that·the24 provides·all·the·same·functionality·of·<a·href="rc/index.html"·title="mod·alloc::rc"><code>Rc</code></a>,·except·it·requires·that·the
25 contained·type·<code>T</code>·is·shareable.·Additionally,·<a·href="sync/index.html"·title="mod·alloc::sync"><code>Arc&lt;T&gt;</code></a>·is·itself25 contained·type·<code>T</code>·is·shareable.·Additionally,·<a·href="sync/index.html"·title="mod·alloc::sync"><code>Arc&lt;T&gt;</code></a>·is·itself
26 sendable·while·<a·href="rc/index.html"·title="mod·alloc::rc"><code>Rc&lt;T&gt;</code></a>·is·not.</p>26 sendable·while·<a·href="rc/index.html"·title="mod·alloc::rc"><code>Rc&lt;T&gt;</code></a>·is·not.</p>
27 <p>This·type·allows·for·shared·access·to·the·contained·data,·and·is·often27 <p>This·type·allows·for·shared·access·to·the·contained·data,·and·is·often
28 paired·with·synchronization·primitives·such·as·mutexes·to·allow·mutation·of28 paired·with·synchronization·primitives·such·as·mutexes·to·allow·mutation·of
2.78 KB
./usr/share/doc/rust-doc/html/alloc/macro.format.html
    
Offset 5, 19 lines modifiedOffset 5, 19 lines modified
5 literal.·The·power·of·the·formatting·string·is·in·the·<code>{}</code>s·contained.5 literal.·The·power·of·the·formatting·string·is·in·the·<code>{}</code>s·contained.
6 Additional·parameters·passed·to·<code>format!</code>·replace·the·<code>{}</code>s·within·the6 Additional·parameters·passed·to·<code>format!</code>·replace·the·<code>{}</code>s·within·the
7 formatting·string·in·the·order·given·unless·named·or·positional·parameters7 formatting·string·in·the·order·given·unless·named·or·positional·parameters
8 are·used.</p>8 are·used.</p>
9 <p>See·<a·href="../std/fmt/index.html">the·formatting·syntax·documentation·in·<code>std::fmt</code></a>9 <p>See·<a·href="../std/fmt/index.html">the·formatting·syntax·documentation·in·<code>std::fmt</code></a>
10 for·details.</p>10 for·details.</p>
11 <p>A·common·use·for·<code>format!</code>·is·concatenation·and·interpolation·of·strings.11 <p>A·common·use·for·<code>format!</code>·is·concatenation·and·interpolation·of·strings.
12 The·same·convention·is·used·with·<a·href="../std/macro.print.html"><code>print!</code></a>·and·<a·href="https://doc.rust-lang.org/1.84.0/core/macro.write.html"·title="macro·core::write"><code>write!</code></a>·macros,12 The·same·convention·is·used·with·<a·href="../std/macro.print.html"><code>print!</code></a>·and·<a·href="../core/macro.write.html"·title="macro·core::write"><code>write!</code></a>·macros,
13 depending·on·the·intended·destination·of·the·string;·all·these·macros·internally·use·<a·href="https://doc.rust-lang.org/1.84.0/core/macro.format_args.html"·title="macro·core::format_args"><code>format_args!</code></a>.</p>13 depending·on·the·intended·destination·of·the·string;·all·these·macros·internally·use·<a·href="../core/macro.format_args.html"·title="macro·core::format_args"><code>format_args!</code></a>.</p>
14 <p>To·convert·a·single·value·to·a·string,·use·the·<a·href="string/trait.ToString.html"·title="trait·alloc::string::ToString"><code>to_string</code></a>·method.·This14 <p>To·convert·a·single·value·to·a·string,·use·the·<a·href="string/trait.ToString.html"·title="trait·alloc::string::ToString"><code>to_string</code></a>·method.·This
15 will·use·the·<a·href="fmt/trait.Display.html"·title="trait·alloc::fmt::Display"><code>Display</code></a>·formatting·trait.</p>15 will·use·the·<a·href="fmt/trait.Display.html"·title="trait·alloc::fmt::Display"><code>Display</code></a>·formatting·trait.</p>
16 <p>To·concatenate·literals·into·a·<code>&amp;'static·str</code>,·use·the·<a·href="https://doc.rust-lang.org/1.84.0/core/macro.concat.html"·title="macro·core::concat"><code>concat!</code></a>·macro.</p>16 <p>To·concatenate·literals·into·a·<code>&amp;'static·str</code>,·use·the·<a·href="../core/macro.concat.html"·title="macro·core::concat"><code>concat!</code></a>·macro.</p>
17 <h2·id="panics"><a·class="doc-anchor"·href="#panics">§</a>Panics</h2>17 <h2·id="panics"><a·class="doc-anchor"·href="#panics">§</a>Panics</h2>
18 <p><code>format!</code>·panics·if·a·formatting·trait·implementation·returns·an·error.18 <p><code>format!</code>·panics·if·a·formatting·trait·implementation·returns·an·error.
19 This·indicates·an·incorrect·implementation19 This·indicates·an·incorrect·implementation
20 since·<code>fmt::Write·for·String</code>·never·returns·an·error·itself.</p>20 since·<code>fmt::Write·for·String</code>·never·returns·an·error·itself.</p>
21 <h2·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h2>21 <h2·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h2>
22 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="macro">format!</span>(<span·class="string">"test"</span>);·····························<span·class="comment">//·=&gt;·"test"22 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="macro">format!</span>(<span·class="string">"test"</span>);·····························<span·class="comment">//·=&gt;·"test"
23 </span><span·class="macro">format!</span>(<span·class="string">"hello·{}"</span>,·<span·class="string">"world!"</span>);···············<span·class="comment">//·=&gt;·"hello·world!"23 </span><span·class="macro">format!</span>(<span·class="string">"hello·{}"</span>,·<span·class="string">"world!"</span>);···············<span·class="comment">//·=&gt;·"hello·world!"
1.7 KB
./usr/share/doc/rust-doc/html/alloc/macro.vec.html
    
Offset 16, 15 lines modifiedOffset 16, 15 lines modified
16 <ul>16 <ul>
17 <li>Create·a·<a·href="vec/struct.Vec.html"·title="struct·alloc::vec::Vec"><code>Vec</code></a>·from·a·given·element·and·size:</li>17 <li>Create·a·<a·href="vec/struct.Vec.html"·title="struct·alloc::vec::Vec"><code>Vec</code></a>·from·a·given·element·and·size:</li>
18 </ul>18 </ul>
  
19 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span>v·=·<span·class="macro">vec!</span>[<span·class="number">1</span>;·<span·class="number">3</span>];19 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span>v·=·<span·class="macro">vec!</span>[<span·class="number">1</span>;·<span·class="number">3</span>];
20 <span·class="macro">assert_eq!</span>(v,·[<span·class="number">1</span>,·<span·class="number">1</span>,·<span·class="number">1</span>]);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++let+v+=+vec!%5B1;+3%5D;%0A++++assert_eq!(v,+%5B1,+1,+1%5D);%0A%7D&amp;edition=2021"></a></div>20 <span·class="macro">assert_eq!</span>(v,·[<span·class="number">1</span>,·<span·class="number">1</span>,·<span·class="number">1</span>]);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++let+v+=+vec!%5B1;+3%5D;%0A++++assert_eq!(v,+%5B1,+1,+1%5D);%0A%7D&amp;edition=2021"></a></div>
21 <p>Note·that·unlike·array·expressions·this·syntax·supports·all·elements21 <p>Note·that·unlike·array·expressions·this·syntax·supports·all·elements
22 which·implement·<a·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone"><code>Clone</code></a>·and·the·number·of·elements·doesn’t·have·to·be22 which·implement·<a·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone"><code>Clone</code></a>·and·the·number·of·elements·doesn’t·have·to·be
23 a·constant.</p>23 a·constant.</p>
24 <p>This·will·use·<code>clone</code>·to·duplicate·an·expression,·so·one·should·be·careful24 <p>This·will·use·<code>clone</code>·to·duplicate·an·expression,·so·one·should·be·careful
25 using·this·with·types·having·a·nonstandard·<code>Clone</code>·implementation.·For25 using·this·with·types·having·a·nonstandard·<code>Clone</code>·implementation.·For
26 example,·<code>vec![Rc::new(1);·5]</code>·will·create·a·vector·of·five·references26 example,·<code>vec![Rc::new(1);·5]</code>·will·create·a·vector·of·five·references
27 to·the·same·boxed·integer·value,·not·five·references·pointing·to·independently27 to·the·same·boxed·integer·value,·not·five·references·pointing·to·independently
28 boxed·integers.</p>28 boxed·integers.</p>
29 <p>Also,·note·that·<code>vec![expr;·0]</code>·is·allowed,·and·produces·an·empty·vector.29 <p>Also,·note·that·<code>vec![expr;·0]</code>·is·allowed,·and·produces·an·empty·vector.
11.6 KB
./usr/share/doc/rust-doc/html/alloc/rc/index.html
    
Offset 1, 36 lines modifiedOffset 1, 36 lines modified
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="Single-threaded·reference-counting·pointers.·‘Rc’·stands·for·‘Reference·Counted’."><title>alloc::rc·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="../sidebar-items1.84.0.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"><!--[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><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»  2025-01-07)»       (built» from»     a»    source»      tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Module·rc</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#cloning-references"·title="Cloning·references">Cloning·references</a></li><li><a·href="#examples"·title="Examples">Examples</a></li></ul><h3><a·href="#structs">Module·Items</a></h3><ul·class="block"><li><a·href="#structs"·title="Structs">Structs</a></li></ul></section><div·id="rustdoc-modnav"><h2·class="in-crate"><a·href="../index.html">In·crate·alloc</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">alloc</a></span><h1>Module·<span>rc</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../src/alloc/rc.rs.html#1-3887">Source</a>·</span></div><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Single-threaded·reference-counting·pointers.·‘Rc’·stands·for·‘Reference1 <!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="Single-threaded·reference-counting·pointers.·‘Rc’·stands·for·‘Reference·Counted’."><title>alloc::rc·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="../sidebar-items1.84.0.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"><!--[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><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»  2025-01-07)»       (built» from»     a»    source»      tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Module·rc</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#cloning-references"·title="Cloning·references">Cloning·references</a></li><li><a·href="#examples"·title="Examples">Examples</a></li></ul><h3><a·href="#structs">Module·Items</a></h3><ul·class="block"><li><a·href="#structs"·title="Structs">Structs</a></li></ul></section><div·id="rustdoc-modnav"><h2·class="in-crate"><a·href="../index.html">In·crate·alloc</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">alloc</a></span><h1>Module·<span>rc</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../src/alloc/rc.rs.html#1-3887">Source</a>·</span></div><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Single-threaded·reference-counting·pointers.·‘Rc’·stands·for·‘Reference
2 Counted’.</p>2 Counted’.</p>
3 <p>The·type·<a·href="struct.Rc.html"·title="struct·alloc::rc::Rc"><code>Rc&lt;T&gt;</code></a>·provides·shared·ownership·of·a·value·of·type·<code>T</code>,3 <p>The·type·<a·href="struct.Rc.html"·title="struct·alloc::rc::Rc"><code>Rc&lt;T&gt;</code></a>·provides·shared·ownership·of·a·value·of·type·<code>T</code>,
4 allocated·in·the·heap.·Invoking·<a·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html#tymethod.clone"·title="method·core::clone::Clone::clone"><code>clone</code></a>·on·<a·href="struct.Rc.html"·title="struct·alloc::rc::Rc"><code>Rc</code></a>·produces·a·new4 allocated·in·the·heap.·Invoking·<a·href="../../core/clone/trait.Clone.html#tymethod.clone"·title="method·core::clone::Clone::clone"><code>clone</code></a>·on·<a·href="struct.Rc.html"·title="struct·alloc::rc::Rc"><code>Rc</code></a>·produces·a·new
5 pointer·to·the·same·allocation·in·the·heap.·When·the·last·<a·href="struct.Rc.html"·title="struct·alloc::rc::Rc"><code>Rc</code></a>·pointer·to·a5 pointer·to·the·same·allocation·in·the·heap.·When·the·last·<a·href="struct.Rc.html"·title="struct·alloc::rc::Rc"><code>Rc</code></a>·pointer·to·a
6 given·allocation·is·destroyed,·the·value·stored·in·that·allocation·(often6 given·allocation·is·destroyed,·the·value·stored·in·that·allocation·(often
7 referred·to·as·“inner·value”)·is·also·dropped.</p>7 referred·to·as·“inner·value”)·is·also·dropped.</p>
8 <p>Shared·references·in·Rust·disallow·mutation·by·default,·and·<a·href="struct.Rc.html"·title="struct·alloc::rc::Rc"><code>Rc</code></a>8 <p>Shared·references·in·Rust·disallow·mutation·by·default,·and·<a·href="struct.Rc.html"·title="struct·alloc::rc::Rc"><code>Rc</code></a>
9 is·no·exception:·you·cannot·generally·obtain·a·mutable·reference·to9 is·no·exception:·you·cannot·generally·obtain·a·mutable·reference·to
10 something·inside·an·<a·href="struct.Rc.html"·title="struct·alloc::rc::Rc"><code>Rc</code></a>.·If·you·need·mutability,·put·a·<a·href="https://doc.rust-lang.org/1.84.0/core/cell/struct.Cell.html"·title="struct·core::cell::Cell"><code>Cell</code></a>10 something·inside·an·<a·href="struct.Rc.html"·title="struct·alloc::rc::Rc"><code>Rc</code></a>.·If·you·need·mutability,·put·a·<a·href="../../core/cell/struct.Cell.html"·title="struct·core::cell::Cell"><code>Cell</code></a>
11 or·<a·href="https://doc.rust-lang.org/1.84.0/core/cell/struct.RefCell.html"·title="struct·core::cell::RefCell"><code>RefCell</code></a>·inside·the·<a·href="struct.Rc.html"·title="struct·alloc::rc::Rc"><code>Rc</code></a>;·see·<a·href="https://doc.rust-lang.org/1.84.0/core/cell/index.html#introducing-mutability-inside-of-something-immutable"·title="mod·core::cell">an·example·of·mutability11 or·<a·href="../../core/cell/struct.RefCell.html"·title="struct·core::cell::RefCell"><code>RefCell</code></a>·inside·the·<a·href="struct.Rc.html"·title="struct·alloc::rc::Rc"><code>Rc</code></a>;·see·<a·href="../../core/cell/index.html#introducing-mutability-inside-of-something-immutable"·title="mod·core::cell">an·example·of·mutability
12 inside·an·<code>Rc</code></a>.</p>12 inside·an·<code>Rc</code></a>.</p>
13 <p><a·href="struct.Rc.html"·title="struct·alloc::rc::Rc"><code>Rc</code></a>·uses·non-atomic·reference·counting.·This·means·that·overhead·is·very13 <p><a·href="struct.Rc.html"·title="struct·alloc::rc::Rc"><code>Rc</code></a>·uses·non-atomic·reference·counting.·This·means·that·overhead·is·very
14 low,·but·an·<a·href="struct.Rc.html"·title="struct·alloc::rc::Rc"><code>Rc</code></a>·cannot·be·sent·between·threads,·and·consequently·<a·href="struct.Rc.html"·title="struct·alloc::rc::Rc"><code>Rc</code></a>14 low,·but·an·<a·href="struct.Rc.html"·title="struct·alloc::rc::Rc"><code>Rc</code></a>·cannot·be·sent·between·threads,·and·consequently·<a·href="struct.Rc.html"·title="struct·alloc::rc::Rc"><code>Rc</code></a>
15 does·not·implement·<a·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Send.html"·title="trait·core::marker::Send"><code>Send</code></a>.·As·a·result,·the·Rust·compiler15 does·not·implement·<a·href="../../core/marker/trait.Send.html"·title="trait·core::marker::Send"><code>Send</code></a>.·As·a·result,·the·Rust·compiler
16 will·check·<em>at·compile·time</em>·that·you·are·not·sending·<a·href="struct.Rc.html"·title="struct·alloc::rc::Rc"><code>Rc</code></a>s·between16 will·check·<em>at·compile·time</em>·that·you·are·not·sending·<a·href="struct.Rc.html"·title="struct·alloc::rc::Rc"><code>Rc</code></a>s·between
17 threads.·If·you·need·multi-threaded,·atomic·reference·counting,·use17 threads.·If·you·need·multi-threaded,·atomic·reference·counting,·use
18 <a·href="../sync/struct.Arc.html"·title="struct·alloc::sync::Arc"><code>sync::Arc</code></a>.</p>18 <a·href="../sync/struct.Arc.html"·title="struct·alloc::sync::Arc"><code>sync::Arc</code></a>.</p>
19 <p>The·<a·href="struct.Rc.html#method.downgrade"·title="associated·function·alloc::rc::Rc::downgrade"><code>downgrade</code></a>·method·can·be·used·to·create·a·non-owning19 <p>The·<a·href="struct.Rc.html#method.downgrade"·title="associated·function·alloc::rc::Rc::downgrade"><code>downgrade</code></a>·method·can·be·used·to·create·a·non-owning
20 <a·href="struct.Weak.html"·title="struct·alloc::rc::Weak"><code>Weak</code></a>·pointer.·A·<a·href="struct.Weak.html"·title="struct·alloc::rc::Weak"><code>Weak</code></a>·pointer·can·be·<a·href="struct.Weak.html#method.upgrade"·title="method·alloc::rc::Weak::upgrade"><code>upgrade</code></a>d20 <a·href="struct.Weak.html"·title="struct·alloc::rc::Weak"><code>Weak</code></a>·pointer.·A·<a·href="struct.Weak.html"·title="struct·alloc::rc::Weak"><code>Weak</code></a>·pointer·can·be·<a·href="struct.Weak.html#method.upgrade"·title="method·alloc::rc::Weak::upgrade"><code>upgrade</code></a>d
21 to·an·<a·href="struct.Rc.html"·title="struct·alloc::rc::Rc"><code>Rc</code></a>,·but·this·will·return·<a·href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html#variant.None"·title="variant·core::option::Option::None"><code>None</code></a>·if·the·value·stored·in·the·allocation·has21 to·an·<a·href="struct.Rc.html"·title="struct·alloc::rc::Rc"><code>Rc</code></a>,·but·this·will·return·<a·href="../../core/option/enum.Option.html#variant.None"·title="variant·core::option::Option::None"><code>None</code></a>·if·the·value·stored·in·the·allocation·has
22 already·been·dropped.·In·other·words,·<code>Weak</code>·pointers·do·not·keep·the·value22 already·been·dropped.·In·other·words,·<code>Weak</code>·pointers·do·not·keep·the·value
23 inside·the·allocation·alive;·however,·they·<em>do</em>·keep·the·allocation23 inside·the·allocation·alive;·however,·they·<em>do</em>·keep·the·allocation
24 (the·backing·store·for·the·inner·value)·alive.</p>24 (the·backing·store·for·the·inner·value)·alive.</p>
25 <p>A·cycle·between·<a·href="struct.Rc.html"·title="struct·alloc::rc::Rc"><code>Rc</code></a>·pointers·will·never·be·deallocated.·For·this·reason,25 <p>A·cycle·between·<a·href="struct.Rc.html"·title="struct·alloc::rc::Rc"><code>Rc</code></a>·pointers·will·never·be·deallocated.·For·this·reason,
26 <a·href="struct.Weak.html"·title="struct·alloc::rc::Weak"><code>Weak</code></a>·is·used·to·break·cycles.·For·example,·a·tree·could·have·strong26 <a·href="struct.Weak.html"·title="struct·alloc::rc::Weak"><code>Weak</code></a>·is·used·to·break·cycles.·For·example,·a·tree·could·have·strong
27 <a·href="struct.Rc.html"·title="struct·alloc::rc::Rc"><code>Rc</code></a>·pointers·from·parent·nodes·to·children,·and·<a·href="struct.Weak.html"·title="struct·alloc::rc::Weak"><code>Weak</code></a>·pointers·from27 <a·href="struct.Rc.html"·title="struct·alloc::rc::Rc"><code>Rc</code></a>·pointers·from·parent·nodes·to·children,·and·<a·href="struct.Weak.html"·title="struct·alloc::rc::Weak"><code>Weak</code></a>·pointers·from
28 children·back·to·their·parents.</p>28 children·back·to·their·parents.</p>
29 <p><code>Rc&lt;T&gt;</code>·automatically·dereferences·to·<code>T</code>·(via·the·<a·href="https://doc.rust-lang.org/1.84.0/core/ops/deref/trait.Deref.html"·title="trait·core::ops::deref::Deref"><code>Deref</code></a>·trait),29 <p><code>Rc&lt;T&gt;</code>·automatically·dereferences·to·<code>T</code>·(via·the·<a·href="../../core/ops/deref/trait.Deref.html"·title="trait·core::ops::deref::Deref"><code>Deref</code></a>·trait),
30 so·you·can·call·<code>T</code>’s·methods·on·a·value·of·type·<a·href="struct.Rc.html"·title="struct·alloc::rc::Rc"><code>Rc&lt;T&gt;</code></a>.·To·avoid·name30 so·you·can·call·<code>T</code>’s·methods·on·a·value·of·type·<a·href="struct.Rc.html"·title="struct·alloc::rc::Rc"><code>Rc&lt;T&gt;</code></a>.·To·avoid·name
31 clashes·with·<code>T</code>’s·methods,·the·methods·of·<a·href="struct.Rc.html"·title="struct·alloc::rc::Rc"><code>Rc&lt;T&gt;</code></a>·itself·are·associated31 clashes·with·<code>T</code>’s·methods,·the·methods·of·<a·href="struct.Rc.html"·title="struct·alloc::rc::Rc"><code>Rc&lt;T&gt;</code></a>·itself·are·associated
32 functions,·called·using·<a·href="https://doc.rust-lang.org/book/ch19-03-advanced-traits.html#fully-qualified-syntax-for-disambiguation-calling-methods-with-the-same-name">fully·qualified·syntax</a>:</p>32 functions,·called·using·<a·href="https://doc.rust-lang.org/book/ch19-03-advanced-traits.html#fully-qualified-syntax-for-disambiguation-calling-methods-with-the-same-name">fully·qualified·syntax</a>:</p>
  
33 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::rc::Rc;33 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::rc::Rc;
  
34 <span·class="kw">let·</span>my_rc·=·Rc::new(());34 <span·class="kw">let·</span>my_rc·=·Rc::new(());
Offset 125, 17 lines modifiedOffset 125, 17 lines modified
125 a·memory·leak.·In·order·to·get·around·this,·we·can·use·<a·href="struct.Weak.html"·title="struct·alloc::rc::Weak"><code>Weak</code></a>125 a·memory·leak.·In·order·to·get·around·this,·we·can·use·<a·href="struct.Weak.html"·title="struct·alloc::rc::Weak"><code>Weak</code></a>
126 pointers.</p>126 pointers.</p>
127 <p>Rust·actually·makes·it·somewhat·difficult·to·produce·this·loop·in·the·first127 <p>Rust·actually·makes·it·somewhat·difficult·to·produce·this·loop·in·the·first
128 place.·In·order·to·end·up·with·two·values·that·point·at·each·other,·one·of128 place.·In·order·to·end·up·with·two·values·that·point·at·each·other,·one·of
129 them·needs·to·be·mutable.·This·is·difficult·because·<a·href="struct.Rc.html"·title="struct·alloc::rc::Rc"><code>Rc</code></a>·enforces129 them·needs·to·be·mutable.·This·is·difficult·because·<a·href="struct.Rc.html"·title="struct·alloc::rc::Rc"><code>Rc</code></a>·enforces
130 memory·safety·by·only·giving·out·shared·references·to·the·value·it·wraps,130 memory·safety·by·only·giving·out·shared·references·to·the·value·it·wraps,
131 and·these·don’t·allow·direct·mutation.·We·need·to·wrap·the·part·of·the131 and·these·don’t·allow·direct·mutation.·We·need·to·wrap·the·part·of·the
132 value·we·wish·to·mutate·in·a·<a·href="https://doc.rust-lang.org/1.84.0/core/cell/struct.RefCell.html"·title="struct·core::cell::RefCell"><code>RefCell</code></a>,·which·provides·<em>interior132 value·we·wish·to·mutate·in·a·<a·href="../../core/cell/struct.RefCell.html"·title="struct·core::cell::RefCell"><code>RefCell</code></a>,·which·provides·<em>interior
133 mutability</em>:·a·method·to·achieve·mutability·through·a·shared·reference.133 mutability</em>:·a·method·to·achieve·mutability·through·a·shared·reference.
134 <a·href="https://doc.rust-lang.org/1.84.0/core/cell/struct.RefCell.html"·title="struct·core::cell::RefCell"><code>RefCell</code></a>·enforces·Rust’s·borrowing·rules·at·runtime.</p>134 <a·href="../../core/cell/struct.RefCell.html"·title="struct·core::cell::RefCell"><code>RefCell</code></a>·enforces·Rust’s·borrowing·rules·at·runtime.</p>
  
135 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::rc::Rc;135 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::rc::Rc;
136 <span·class="kw">use·</span>std::rc::Weak;136 <span·class="kw">use·</span>std::rc::Weak;
137 <span·class="kw">use·</span>std::cell::RefCell;137 <span·class="kw">use·</span>std::cell::RefCell;
  
138 <span·class="kw">struct·</span>Owner·{138 <span·class="kw">struct·</span>Owner·{
139 ····name:·String,139 ····name:·String,
376 KB
./usr/share/doc/rust-doc/html/alloc/rc/struct.Rc.html
    
Offset 1, 20 lines modifiedOffset 1, 20 lines modified
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="A·single-threaded·reference-counting·pointer.·‘Rc’·stands·for·‘Reference·Counted’."><title>Rc·in·alloc::rc·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»      2025-01-07)»   (built»     from» a»source»  tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Rc</a></h2><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.allocator"·title="allocator">allocator</a></li><li><a·href="#method.as_ptr"·title="as_ptr">as_ptr</a></li><li><a·href="#method.assume_init"·title="assume_init">assume_init</a></li><li><a·href="#method.assume_init-1"·title="assume_init">assume_init</a></li><li><a·href="#method.decrement_strong_count"·title="decrement_strong_count">decrement_strong_count</a></li><li><a·href="#method.decrement_strong_count_in"·title="decrement_strong_count_in">decrement_strong_count_in</a></li><li><a·href="#method.downcast"·title="downcast">downcast</a></li><li><a·href="#method.downcast_unchecked"·title="downcast_unchecked">downcast_unchecked</a></li><li><a·href="#method.downgrade"·title="downgrade">downgrade</a></li><li><a·href="#method.from_raw"·title="from_raw">from_raw</a></li><li><a·href="#method.from_raw_in"·title="from_raw_in">from_raw_in</a></li><li><a·href="#method.get_mut"·title="get_mut">get_mut</a></li><li><a·href="#method.get_mut_unchecked"·title="get_mut_unchecked">get_mut_unchecked</a></li><li><a·href="#method.increment_strong_count"·title="increment_strong_count">increment_strong_count</a></li><li><a·href="#method.increment_strong_count_in"·title="increment_strong_count_in">increment_strong_count_in</a></li><li><a·href="#method.into_inner"·title="into_inner">into_inner</a></li><li><a·href="#method.into_raw"·title="into_raw">into_raw</a></li><li><a·href="#method.into_raw_with_allocator"·title="into_raw_with_allocator">into_raw_with_allocator</a></li><li><a·href="#method.make_mut"·title="make_mut">make_mut</a></li><li><a·href="#method.new"·title="new">new</a></li><li><a·href="#method.new_cyclic"·title="new_cyclic">new_cyclic</a></li><li><a·href="#method.new_cyclic_in"·title="new_cyclic_in">new_cyclic_in</a></li><li><a·href="#method.new_in"·title="new_in">new_in</a></li><li><a·href="#method.new_uninit"·title="new_uninit">new_uninit</a></li><li><a·href="#method.new_uninit_in"·title="new_uninit_in">new_uninit_in</a></li><li><a·href="#method.new_uninit_slice"·title="new_uninit_slice">new_uninit_slice</a></li><li><a·href="#method.new_uninit_slice_in"·title="new_uninit_slice_in">new_uninit_slice_in</a></li><li><a·href="#method.new_zeroed"·title="new_zeroed">new_zeroed</a></li><li><a·href="#method.new_zeroed_in"·title="new_zeroed_in">new_zeroed_in</a></li><li><a·href="#method.new_zeroed_slice"·title="new_zeroed_slice">new_zeroed_slice</a></li><li><a·href="#method.new_zeroed_slice_in"·title="new_zeroed_slice_in">new_zeroed_slice_in</a></li><li><a·href="#method.pin"·title="pin">pin</a></li><li><a·href="#method.pin_in"·title="pin_in">pin_in</a></li><li><a·href="#method.ptr_eq"·title="ptr_eq">ptr_eq</a></li><li><a·href="#method.strong_count"·title="strong_count">strong_count</a></li><li><a·href="#method.try_new"·title="try_new">try_new</a></li><li><a·href="#method.try_new_in"·title="try_new_in">try_new_in</a></li><li><a·href="#method.try_new_uninit"·title="try_new_uninit">try_new_uninit</a></li><li><a·href="#method.try_new_uninit_in"·title="try_new_uninit_in">try_new_uninit_in</a></li><li><a·href="#method.try_new_zeroed"·title="try_new_zeroed">try_new_zeroed</a></li><li><a·href="#method.try_new_zeroed_in"·title="try_new_zeroed_in">try_new_zeroed_in</a></li><li><a·href="#method.try_unwrap"·title="try_unwrap">try_unwrap</a></li><li><a·href="#method.unwrap_or_clone"·title="unwrap_or_clone">unwrap_or_clone</a></li><li><a·href="#method.weak_count"·title="weak_count">weak_count</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Send-for-Rc%3CT,+A%3E"·title="!Send">!Send</a></li><li><a·href="#impl-Sync-for-Rc%3CT,+A%3E"·title="!Sync">!Sync</a></li><li><a·href="#impl-AsRef%3CT%3E-for-Rc%3CT,+A%3E"·title="AsRef&#60;T&#62;">AsRef&#60;T&#62;</a></li><li><a·href="#impl-Borrow%3CT%3E-for-Rc%3CT,+A%3E"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-Clone-for-Rc%3CT,+A%3E"·title="Clone">Clone</a></li><li><a·href="#impl-CoerceUnsized%3CRc%3CU,+A%3E%3E-for-Rc%3CT,+A%3E"·title="CoerceUnsized&#60;Rc&#60;U,·A&#62;&#62;">CoerceUnsized&#60;Rc&#60;U,·A&#62;&#62;</a></li><li><a·href="#impl-Debug-for-Rc%3CT,+A%3E"·title="Debug">Debug</a></li><li><a·href="#impl-Default-for-Rc%3C%5BT%5D%3E"·title="Default">Default</a></li><li><a·href="#impl-Default-for-Rc%3CCStr%3E"·title="Default">Default</a></li><li><a·href="#impl-Default-for-Rc%3CT%3E"·title="Default">Default</a></li><li><a·href="#impl-Default-for-Rc%3Cstr%3E"·title="Default">Default</a></li><li><a·href="#impl-Deref-for-Rc%3CT,+A%3E"·title="Deref">Deref</a></li><li><a·href="#impl-DerefPure-for-Rc%3CT,+A%3E"·title="DerefPure">DerefPure</a></li><li><a·href="#impl-DispatchFromDyn%3CRc%3CU%3E%3E-for-Rc%3CT%3E"·title="DispatchFromDyn&#60;Rc&#60;U&#62;&#62;">DispatchFromDyn&#60;Rc&#60;U&#62;&#62;</a></li><li><a·href="#impl-Display-for-Rc%3CT,+A%3E"·title="Display">Display</a></li><li><a·href="#impl-Drop-for-Rc%3CT,+A%3E"·title="Drop">Drop</a></li><li><a·href="#impl-Eq-for-Rc%3CT,+A%3E"·title="Eq">Eq</a></li><li><a·href="#impl-From%3C%26CStr%3E-for-Rc%3CCStr%3E"·title="From&#60;&#38;CStr&#62;">From&#60;&#38;CStr&#62;</a></li><li><a·href="#impl-From%3C%26%5BT%5D%3E-for-Rc%3C%5BT%5D%3E"·title="From&#60;&#38;[T]&#62;">From&#60;&#38;[T]&#62;</a></li><li><a·href="#impl-From%3C%26mut+CStr%3E-for-Rc%3CCStr%3E"·title="From&#60;&#38;mut·CStr&#62;">From&#60;&#38;mut·CStr&#62;</a></li><li><a·href="#impl-From%3C%26mut+%5BT%5D%3E-for-Rc%3C%5BT%5D%3E"·title="From&#60;&#38;mut·[T]&#62;">From&#60;&#38;mut·[T]&#62;</a></li><li><a·href="#impl-From%3C%26mut+str%3E-for-Rc%3Cstr%3E"·title="From&#60;&#38;mut·str&#62;">From&#60;&#38;mut·str&#62;</a></li><li><a·href="#impl-From%3C%26str%3E-for-Rc%3Cstr%3E"·title="From&#60;&#38;str&#62;">From&#60;&#38;str&#62;</a></li><li><a·href="#impl-From%3CBox%3CT,+A%3E%3E-for-Rc%3CT,+A%3E"·title="From&#60;Box&#60;T,·A&#62;&#62;">From&#60;Box&#60;T,·A&#62;&#62;</a></li><li><a·href="#impl-From%3CCString%3E-for-Rc%3CCStr%3E"·title="From&#60;CString&#62;">From&#60;CString&#62;</a></li><li><a·href="#impl-From%3CCow%3C'a,+B%3E%3E-for-Rc%3CB%3E"·title="From&#60;Cow&#60;&#39;a,·B&#62;&#62;">From&#60;Cow&#60;&#39;a,·B&#62;&#62;</a></li><li><a·href="#impl-From%3CRc%3CW%3E%3E-for-LocalWaker"·title="From&#60;Rc&#60;W&#62;&#62;">From&#60;Rc&#60;W&#62;&#62;</a></li><li><a·href="#impl-From%3CRc%3CW%3E%3E-for-RawWaker"·title="From&#60;Rc&#60;W&#62;&#62;">From&#60;Rc&#60;W&#62;&#62;</a></li><li><a·href="#impl-From%3CRc%3Cstr%3E%3E-for-Rc%3C%5Bu8%5D%3E"·title="From&#60;Rc&#60;str&#62;&#62;">From&#60;Rc&#60;str&#62;&#62;</a></li><li><a·href="#impl-From%3CString%3E-for-Rc%3Cstr%3E"·title="From&#60;String&#62;">From&#60;String&#62;</a></li><li><a·href="#impl-From%3CT%3E-for-Rc%3CT%3E"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-From%3CVec%3CT,+A%3E%3E-for-Rc%3C%5BT%5D,+A%3E"·title="From&#60;Vec&#60;T,·A&#62;&#62;">From&#60;Vec&#60;T,·A&#62;&#62;</a></li><li><a·href="#impl-From%3C%5BT;+N%5D%3E-for-Rc%3C%5BT%5D%3E"·title="From&#60;[T;·N]&#62;">From&#60;[T;·N]&#62;</a></li><li><a·href="#impl-FromIterator%3CT%3E-for-Rc%3C%5BT%5D%3E"·title="FromIterator&#60;T&#62;">FromIterator&#60;T&#62;</a></li><li><a·href="#impl-Hash-for-Rc%3CT,+A%3E"·title="Hash">Hash</a></li><li><a·href="#impl-Ord-for-Rc%3CT,+A%3E"·title="Ord">Ord</a></li><li><a·href="#impl-PartialEq-for-Rc%3CT,+A%3E"·title="PartialEq">PartialEq</a></li><li><a·href="#impl-PartialOrd-for-Rc%3CT,+A%3E"·title="PartialOrd">PartialOrd</a></li><li><a·href="#impl-PinCoerceUnsized-for-Rc%3CT,+A%3E"·title="PinCoerceUnsized">PinCoerceUnsized</a></li><li><a·href="#impl-Pointer-for-Rc%3CT,+A%3E"·title="Pointer">Pointer</a></li><li><a·href="#impl-RefUnwindSafe-for-Rc%3CT,+A%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-TryFrom%3CRc%3C%5BT%5D,+A%3E%3E-for-Rc%3C%5BT;+N%5D,+A%3E"·title="TryFrom&#60;Rc&#60;[T],·A&#62;&#62;">TryFrom&#60;Rc&#60;[T],·A&#62;&#62;</a></li><li><a·href="#impl-Unpin-for-Rc%3CT,+A%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Rc%3CT,+A%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-Rc%3CT,+A%3E"·title="Freeze">Freeze</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3C!%3E-for-T"·title="From&#60;!&#62;">From&#60;!&#62;</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-Receiver-for-P"·title="Receiver">Receiver</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-ToString-for-T"·title="ToString">ToString</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>rc</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">alloc</a>::<wbr><a·href="index.html">rc</a></span><h1>Struct·<span·class="struct">Rc</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../src/alloc/rc.rs.html#314-321">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·Rc&lt;T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,·A:·<a·class="trait"·href="../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·=·<a·class="struct"·href="../alloc/struct.Global.html"·title="struct·alloc::alloc::Global">Global</a>&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>A·single-threaded·reference-counting·pointer.·‘Rc’·stands·for·‘Reference1 <!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·single-threaded·reference-counting·pointer.·‘Rc’·stands·for·‘Reference·Counted’."><title>Rc·in·alloc::rc·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»      2025-01-07)»   (built»     from» a»source»  tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Rc</a></h2><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.allocator"·title="allocator">allocator</a></li><li><a·href="#method.as_ptr"·title="as_ptr">as_ptr</a></li><li><a·href="#method.assume_init"·title="assume_init">assume_init</a></li><li><a·href="#method.assume_init-1"·title="assume_init">assume_init</a></li><li><a·href="#method.decrement_strong_count"·title="decrement_strong_count">decrement_strong_count</a></li><li><a·href="#method.decrement_strong_count_in"·title="decrement_strong_count_in">decrement_strong_count_in</a></li><li><a·href="#method.downcast"·title="downcast">downcast</a></li><li><a·href="#method.downcast_unchecked"·title="downcast_unchecked">downcast_unchecked</a></li><li><a·href="#method.downgrade"·title="downgrade">downgrade</a></li><li><a·href="#method.from_raw"·title="from_raw">from_raw</a></li><li><a·href="#method.from_raw_in"·title="from_raw_in">from_raw_in</a></li><li><a·href="#method.get_mut"·title="get_mut">get_mut</a></li><li><a·href="#method.get_mut_unchecked"·title="get_mut_unchecked">get_mut_unchecked</a></li><li><a·href="#method.increment_strong_count"·title="increment_strong_count">increment_strong_count</a></li><li><a·href="#method.increment_strong_count_in"·title="increment_strong_count_in">increment_strong_count_in</a></li><li><a·href="#method.into_inner"·title="into_inner">into_inner</a></li><li><a·href="#method.into_raw"·title="into_raw">into_raw</a></li><li><a·href="#method.into_raw_with_allocator"·title="into_raw_with_allocator">into_raw_with_allocator</a></li><li><a·href="#method.make_mut"·title="make_mut">make_mut</a></li><li><a·href="#method.new"·title="new">new</a></li><li><a·href="#method.new_cyclic"·title="new_cyclic">new_cyclic</a></li><li><a·href="#method.new_cyclic_in"·title="new_cyclic_in">new_cyclic_in</a></li><li><a·href="#method.new_in"·title="new_in">new_in</a></li><li><a·href="#method.new_uninit"·title="new_uninit">new_uninit</a></li><li><a·href="#method.new_uninit_in"·title="new_uninit_in">new_uninit_in</a></li><li><a·href="#method.new_uninit_slice"·title="new_uninit_slice">new_uninit_slice</a></li><li><a·href="#method.new_uninit_slice_in"·title="new_uninit_slice_in">new_uninit_slice_in</a></li><li><a·href="#method.new_zeroed"·title="new_zeroed">new_zeroed</a></li><li><a·href="#method.new_zeroed_in"·title="new_zeroed_in">new_zeroed_in</a></li><li><a·href="#method.new_zeroed_slice"·title="new_zeroed_slice">new_zeroed_slice</a></li><li><a·href="#method.new_zeroed_slice_in"·title="new_zeroed_slice_in">new_zeroed_slice_in</a></li><li><a·href="#method.pin"·title="pin">pin</a></li><li><a·href="#method.pin_in"·title="pin_in">pin_in</a></li><li><a·href="#method.ptr_eq"·title="ptr_eq">ptr_eq</a></li><li><a·href="#method.strong_count"·title="strong_count">strong_count</a></li><li><a·href="#method.try_new"·title="try_new">try_new</a></li><li><a·href="#method.try_new_in"·title="try_new_in">try_new_in</a></li><li><a·href="#method.try_new_uninit"·title="try_new_uninit">try_new_uninit</a></li><li><a·href="#method.try_new_uninit_in"·title="try_new_uninit_in">try_new_uninit_in</a></li><li><a·href="#method.try_new_zeroed"·title="try_new_zeroed">try_new_zeroed</a></li><li><a·href="#method.try_new_zeroed_in"·title="try_new_zeroed_in">try_new_zeroed_in</a></li><li><a·href="#method.try_unwrap"·title="try_unwrap">try_unwrap</a></li><li><a·href="#method.unwrap_or_clone"·title="unwrap_or_clone">unwrap_or_clone</a></li><li><a·href="#method.weak_count"·title="weak_count">weak_count</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Send-for-Rc%3CT,+A%3E"·title="!Send">!Send</a></li><li><a·href="#impl-Sync-for-Rc%3CT,+A%3E"·title="!Sync">!Sync</a></li><li><a·href="#impl-AsRef%3CT%3E-for-Rc%3CT,+A%3E"·title="AsRef&#60;T&#62;">AsRef&#60;T&#62;</a></li><li><a·href="#impl-Borrow%3CT%3E-for-Rc%3CT,+A%3E"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-Clone-for-Rc%3CT,+A%3E"·title="Clone">Clone</a></li><li><a·href="#impl-CoerceUnsized%3CRc%3CU,+A%3E%3E-for-Rc%3CT,+A%3E"·title="CoerceUnsized&#60;Rc&#60;U,·A&#62;&#62;">CoerceUnsized&#60;Rc&#60;U,·A&#62;&#62;</a></li><li><a·href="#impl-Debug-for-Rc%3CT,+A%3E"·title="Debug">Debug</a></li><li><a·href="#impl-Default-for-Rc%3C%5BT%5D%3E"·title="Default">Default</a></li><li><a·href="#impl-Default-for-Rc%3CCStr%3E"·title="Default">Default</a></li><li><a·href="#impl-Default-for-Rc%3CT%3E"·title="Default">Default</a></li><li><a·href="#impl-Default-for-Rc%3Cstr%3E"·title="Default">Default</a></li><li><a·href="#impl-Deref-for-Rc%3CT,+A%3E"·title="Deref">Deref</a></li><li><a·href="#impl-DerefPure-for-Rc%3CT,+A%3E"·title="DerefPure">DerefPure</a></li><li><a·href="#impl-DispatchFromDyn%3CRc%3CU%3E%3E-for-Rc%3CT%3E"·title="DispatchFromDyn&#60;Rc&#60;U&#62;&#62;">DispatchFromDyn&#60;Rc&#60;U&#62;&#62;</a></li><li><a·href="#impl-Display-for-Rc%3CT,+A%3E"·title="Display">Display</a></li><li><a·href="#impl-Drop-for-Rc%3CT,+A%3E"·title="Drop">Drop</a></li><li><a·href="#impl-Eq-for-Rc%3CT,+A%3E"·title="Eq">Eq</a></li><li><a·href="#impl-From%3C%26CStr%3E-for-Rc%3CCStr%3E"·title="From&#60;&#38;CStr&#62;">From&#60;&#38;CStr&#62;</a></li><li><a·href="#impl-From%3C%26%5BT%5D%3E-for-Rc%3C%5BT%5D%3E"·title="From&#60;&#38;[T]&#62;">From&#60;&#38;[T]&#62;</a></li><li><a·href="#impl-From%3C%26mut+CStr%3E-for-Rc%3CCStr%3E"·title="From&#60;&#38;mut·CStr&#62;">From&#60;&#38;mut·CStr&#62;</a></li><li><a·href="#impl-From%3C%26mut+%5BT%5D%3E-for-Rc%3C%5BT%5D%3E"·title="From&#60;&#38;mut·[T]&#62;">From&#60;&#38;mut·[T]&#62;</a></li><li><a·href="#impl-From%3C%26mut+str%3E-for-Rc%3Cstr%3E"·title="From&#60;&#38;mut·str&#62;">From&#60;&#38;mut·str&#62;</a></li><li><a·href="#impl-From%3C%26str%3E-for-Rc%3Cstr%3E"·title="From&#60;&#38;str&#62;">From&#60;&#38;str&#62;</a></li><li><a·href="#impl-From%3CBox%3CT,+A%3E%3E-for-Rc%3CT,+A%3E"·title="From&#60;Box&#60;T,·A&#62;&#62;">From&#60;Box&#60;T,·A&#62;&#62;</a></li><li><a·href="#impl-From%3CCString%3E-for-Rc%3CCStr%3E"·title="From&#60;CString&#62;">From&#60;CString&#62;</a></li><li><a·href="#impl-From%3CCow%3C'a,+B%3E%3E-for-Rc%3CB%3E"·title="From&#60;Cow&#60;&#39;a,·B&#62;&#62;">From&#60;Cow&#60;&#39;a,·B&#62;&#62;</a></li><li><a·href="#impl-From%3CRc%3CW%3E%3E-for-LocalWaker"·title="From&#60;Rc&#60;W&#62;&#62;">From&#60;Rc&#60;W&#62;&#62;</a></li><li><a·href="#impl-From%3CRc%3CW%3E%3E-for-RawWaker"·title="From&#60;Rc&#60;W&#62;&#62;">From&#60;Rc&#60;W&#62;&#62;</a></li><li><a·href="#impl-From%3CRc%3Cstr%3E%3E-for-Rc%3C%5Bu8%5D%3E"·title="From&#60;Rc&#60;str&#62;&#62;">From&#60;Rc&#60;str&#62;&#62;</a></li><li><a·href="#impl-From%3CString%3E-for-Rc%3Cstr%3E"·title="From&#60;String&#62;">From&#60;String&#62;</a></li><li><a·href="#impl-From%3CT%3E-for-Rc%3CT%3E"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-From%3CVec%3CT,+A%3E%3E-for-Rc%3C%5BT%5D,+A%3E"·title="From&#60;Vec&#60;T,·A&#62;&#62;">From&#60;Vec&#60;T,·A&#62;&#62;</a></li><li><a·href="#impl-From%3C%5BT;+N%5D%3E-for-Rc%3C%5BT%5D%3E"·title="From&#60;[T;·N]&#62;">From&#60;[T;·N]&#62;</a></li><li><a·href="#impl-FromIterator%3CT%3E-for-Rc%3C%5BT%5D%3E"·title="FromIterator&#60;T&#62;">FromIterator&#60;T&#62;</a></li><li><a·href="#impl-Hash-for-Rc%3CT,+A%3E"·title="Hash">Hash</a></li><li><a·href="#impl-Ord-for-Rc%3CT,+A%3E"·title="Ord">Ord</a></li><li><a·href="#impl-PartialEq-for-Rc%3CT,+A%3E"·title="PartialEq">PartialEq</a></li><li><a·href="#impl-PartialOrd-for-Rc%3CT,+A%3E"·title="PartialOrd">PartialOrd</a></li><li><a·href="#impl-PinCoerceUnsized-for-Rc%3CT,+A%3E"·title="PinCoerceUnsized">PinCoerceUnsized</a></li><li><a·href="#impl-Pointer-for-Rc%3CT,+A%3E"·title="Pointer">Pointer</a></li><li><a·href="#impl-RefUnwindSafe-for-Rc%3CT,+A%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-TryFrom%3CRc%3C%5BT%5D,+A%3E%3E-for-Rc%3C%5BT;+N%5D,+A%3E"·title="TryFrom&#60;Rc&#60;[T],·A&#62;&#62;">TryFrom&#60;Rc&#60;[T],·A&#62;&#62;</a></li><li><a·href="#impl-Unpin-for-Rc%3CT,+A%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Rc%3CT,+A%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-Rc%3CT,+A%3E"·title="Freeze">Freeze</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3C!%3E-for-T"·title="From&#60;!&#62;">From&#60;!&#62;</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-Receiver-for-P"·title="Receiver">Receiver</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-ToString-for-T"·title="ToString">ToString</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>rc</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">alloc</a>::<wbr><a·href="index.html">rc</a></span><h1>Struct·<span·class="struct">Rc</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../src/alloc/rc.rs.html#314-321">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·Rc&lt;T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,·A:·<a·class="trait"·href="../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·=·<a·class="struct"·href="../alloc/struct.Global.html"·title="struct·alloc::alloc::Global">Global</a>&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>A·single-threaded·reference-counting·pointer.·‘Rc’·stands·for·‘Reference
2 Counted’.</p>2 Counted’.</p>
3 <p>See·the·<a·href="./index.html">module-level·documentation</a>·for·more·details.</p>3 <p>See·the·<a·href="./index.html">module-level·documentation</a>·for·more·details.</p>
4 <p>The·inherent·methods·of·<code>Rc</code>·are·all·associated·functions,·which·means4 <p>The·inherent·methods·of·<code>Rc</code>·are·all·associated·functions,·which·means
5 that·you·have·to·call·them·as·e.g.,·<a·href="struct.Rc.html#method.get_mut"·title="associated·function·alloc::rc::Rc::get_mut"><code>Rc::get_mut(&amp;mut·value)</code></a>·instead·of5 that·you·have·to·call·them·as·e.g.,·<a·href="struct.Rc.html#method.get_mut"·title="associated·function·alloc::rc::Rc::get_mut"><code>Rc::get_mut(&amp;mut·value)</code></a>·instead·of
6 <code>value.get_mut()</code>.·This·avoids·conflicts·with·methods·of·the·inner·type·<code>T</code>.</p>6 <code>value.get_mut()</code>.·This·avoids·conflicts·with·methods·of·the·inner·type·<code>T</code>.</p>
7 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Rc%3CT%3E"·class="impl"><a·class="src·rightside"·href="../../src/alloc/rc.rs.html#397-647">Source</a><a·href="#impl-Rc%3CT%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="struct"·href="struct.Rc.html"·title="struct·alloc::rc::Rc">Rc</a>&lt;T&gt;</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.new"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/alloc/rc.rs.html#409-420">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.new"·class="fn">new</a>(value:·T)·-&gt;·<a·class="struct"·href="struct.Rc.html"·title="struct·alloc::rc::Rc">Rc</a>&lt;T&gt;</h4></section></summary><div·class="docblock"><p>Constructs·a·new·<code>Rc&lt;T&gt;</code>.</p>7 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Rc%3CT%3E"·class="impl"><a·class="src·rightside"·href="../../src/alloc/rc.rs.html#397-647">Source</a><a·href="#impl-Rc%3CT%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="struct"·href="struct.Rc.html"·title="struct·alloc::rc::Rc">Rc</a>&lt;T&gt;</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.new"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/alloc/rc.rs.html#409-420">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.new"·class="fn">new</a>(value:·T)·-&gt;·<a·class="struct"·href="struct.Rc.html"·title="struct·alloc::rc::Rc">Rc</a>&lt;T&gt;</h4></section></summary><div·class="docblock"><p>Constructs·a·new·<code>Rc&lt;T&gt;</code>.</p>
8 <h5·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h5>8 <h5·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h5>
9 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::rc::Rc;9 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::rc::Rc;
  
10 <span·class="kw">let·</span>five·=·Rc::new(<span·class="number">5</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::rc::Rc;%0A++++%0A++++let+five+=+Rc::new(5);%0A%7D&amp;edition=2021"></a></div>10 <span·class="kw">let·</span>five·=·Rc::new(<span·class="number">5</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::rc::Rc;%0A++++%0A++++let+five+=+Rc::new(5);%0A%7D&amp;edition=2021"></a></div>
11 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.new_cyclic"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.60.0">1.60.0</span>···<a·class="src"·href="../../src/alloc/rc.rs.html#475-480">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.new_cyclic"·class="fn">new_cyclic</a>&lt;F&gt;(data_fn:·F)·-&gt;·<a·class="struct"·href="struct.Rc.html"·title="struct·alloc::rc::Rc">Rc</a>&lt;T&gt;<div·class="where">where11 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.new_cyclic"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.60.0">1.60.0</span>···<a·class="src"·href="../../src/alloc/rc.rs.html#475-480">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.new_cyclic"·class="fn">new_cyclic</a>&lt;F&gt;(data_fn:·F)·-&gt;·<a·class="struct"·href="struct.Rc.html"·title="struct·alloc::rc::Rc">Rc</a>&lt;T&gt;<div·class="where">where
12 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnOnce.html"·title="trait·core::ops::function::FnOnce">FnOnce</a>(&amp;<a·class="struct"·href="struct.Weak.html"·title="struct·alloc::rc::Weak">Weak</a>&lt;T&gt;)·-&gt;·T,</div></h4></section></summary><div·class="docblock"><p>Constructs·a·new·<code>Rc&lt;T&gt;</code>·while·giving·you·a·<code>Weak&lt;T&gt;</code>·to·the·allocation,12 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnOnce.html"·title="trait·core::ops::function::FnOnce">FnOnce</a>(&amp;<a·class="struct"·href="struct.Weak.html"·title="struct·alloc::rc::Weak">Weak</a>&lt;T&gt;)·-&gt;·T,</div></h4></section></summary><div·class="docblock"><p>Constructs·a·new·<code>Rc&lt;T&gt;</code>·while·giving·you·a·<code>Weak&lt;T&gt;</code>·to·the·allocation,
13 to·allow·you·to·construct·a·<code>T</code>·which·holds·a·weak·pointer·to·itself.</p>13 to·allow·you·to·construct·a·<code>T</code>·which·holds·a·weak·pointer·to·itself.</p>
14 <p>Generally,·a·structure·circularly·referencing·itself,·either·directly·or14 <p>Generally,·a·structure·circularly·referencing·itself,·either·directly·or
15 indirectly,·should·not·hold·a·strong·reference·to·itself·to·prevent·a·memory·leak.15 indirectly,·should·not·hold·a·strong·reference·to·itself·to·prevent·a·memory·leak.
16 Using·this·function,·you·get·access·to·the·weak·pointer·during·the16 Using·this·function,·you·get·access·to·the·weak·pointer·during·the
17 initialization·of·<code>T</code>,·before·the·<code>Rc&lt;T&gt;</code>·is·created,·such·that·you·can17 initialization·of·<code>T</code>,·before·the·<code>Rc&lt;T&gt;</code>·is·created,·such·that·you·can
18 clone·and·store·it·inside·the·<code>T</code>.</p>18 clone·and·store·it·inside·the·<code>T</code>.</p>
19 <p><code>new_cyclic</code>·first·allocates·the·managed·allocation·for·the·<code>Rc&lt;T&gt;</code>,19 <p><code>new_cyclic</code>·first·allocates·the·managed·allocation·for·the·<code>Rc&lt;T&gt;</code>,
Offset 46, 85 lines modifiedOffset 46, 85 lines modified
46 ····}46 ····}
  
47 ····<span·class="doccomment">///·Returns·a·reference·counted·pointer·to·Self.47 ····<span·class="doccomment">///·Returns·a·reference·counted·pointer·to·Self.
48 ····</span><span·class="kw">fn·</span>me(<span·class="kw-2">&amp;</span><span·class="self">self</span>)·-&gt;·Rc&lt;<span·class="self">Self</span>&gt;·{48 ····</span><span·class="kw">fn·</span>me(<span·class="kw-2">&amp;</span><span·class="self">self</span>)·-&gt;·Rc&lt;<span·class="self">Self</span>&gt;·{
49 ········<span·class="self">self</span>.me.upgrade().unwrap()49 ········<span·class="self">self</span>.me.upgrade().unwrap()
50 ····}50 ····}
51 }</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Ballow(dead_code)%5D%0A%23%5Ballow(unused_extern_crates)%5D%0Aextern+crate+r%23alloc;%0Afn+main()+%7B%0A++++use+std::rc::%7BRc,+Weak%7D;%0A++++%0A++++struct+Gadget+%7B%0A++++++++me:+Weak%3CGadget%3E,%0A++++%7D%0A++++%0A++++impl+Gadget+%7B%0A++++++++///+Constructs+a+reference+counted+Gadget.%0A++++++++fn+new()+-%3E+Rc%3CSelf%3E+%7B%0A++++++++++++//+%60me%60+is+a+%60Weak%3CGadget%3E%60+pointing+at+the+new+allocation+of+the%0A++++++++++++//+%60Rc%60+we're+constructing.%0A++++++++++++Rc::new_cyclic(%7Cme%7C+%7B%0A++++++++++++++++//+Create+the+actual+struct+here.%0A++++++++++++++++Gadget+%7B+me:+me.clone()+%7D%0A++++++++++++%7D)%0A++++++++%7D%0A++++%0A++++++++///+Returns+a+reference+counted+pointer+to+Self.%0A++++++++fn+me(%26self)+-%3E+Rc%3CSelf%3E+%7B%0A++++++++++++self.me.upgrade().unwrap()%0A++++++++%7D%0A++++%7D%0A%7D&amp;edition=2021"></a></div>51 }</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Ballow(dead_code)%5D%0A%23%5Ballow(unused_extern_crates)%5D%0Aextern+crate+r%23alloc;%0Afn+main()+%7B%0A++++use+std::rc::%7BRc,+Weak%7D;%0A++++%0A++++struct+Gadget+%7B%0A++++++++me:+Weak%3CGadget%3E,%0A++++%7D%0A++++%0A++++impl+Gadget+%7B%0A++++++++///+Constructs+a+reference+counted+Gadget.%0A++++++++fn+new()+-%3E+Rc%3CSelf%3E+%7B%0A++++++++++++//+%60me%60+is+a+%60Weak%3CGadget%3E%60+pointing+at+the+new+allocation+of+the%0A++++++++++++//+%60Rc%60+we're+constructing.%0A++++++++++++Rc::new_cyclic(%7Cme%7C+%7B%0A++++++++++++++++//+Create+the+actual+struct+here.%0A++++++++++++++++Gadget+%7B+me:+me.clone()+%7D%0A++++++++++++%7D)%0A++++++++%7D%0A++++%0A++++++++///+Returns+a+reference+counted+pointer+to+Self.%0A++++++++fn+me(%26self)+-%3E+Rc%3CSelf%3E+%7B%0A++++++++++++self.me.upgrade().unwrap()%0A++++++++%7D%0A++++%7D%0A%7D&amp;edition=2021"></a></div>
52 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.new_uninit"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.82.0">1.82.0</span>···<a·class="src"·href="../../src/alloc/rc.rs.html#503-511">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.new_uninit"·class="fn">new_uninit</a>()·-&gt;·<a·class="struct"·href="struct.Rc.html"·title="struct·alloc::rc::Rc">Rc</a>&lt;<a·class="union"·href="https://doc.rust-lang.org/1.84.0/core/mem/maybe_uninit/union.MaybeUninit.html"·title="union·core::mem::maybe_uninit::MaybeUninit">MaybeUninit</a>&lt;T&gt;&gt;</h4></section></summary><div·class="docblock"><p>Constructs·a·new·<code>Rc</code>·with·uninitialized·contents.</p>52 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.new_uninit"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.82.0">1.82.0</span>···<a·class="src"·href="../../src/alloc/rc.rs.html#503-511">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.new_uninit"·class="fn">new_uninit</a>()·-&gt;·<a·class="struct"·href="struct.Rc.html"·title="struct·alloc::rc::Rc">Rc</a>&lt;<a·class="union"·href="../../core/mem/maybe_uninit/union.MaybeUninit.html"·title="union·core::mem::maybe_uninit::MaybeUninit">MaybeUninit</a>&lt;T&gt;&gt;</h4></section></summary><div·class="docblock"><p>Constructs·a·new·<code>Rc</code>·with·uninitialized·contents.</p>
53 <h5·id="examples-2"><a·class="doc-anchor"·href="#examples-2">§</a>Examples</h5>53 <h5·id="examples-2"><a·class="doc-anchor"·href="#examples-2">§</a>Examples</h5>
54 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(get_mut_unchecked)]54 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(get_mut_unchecked)]
  
55 </span><span·class="kw">use·</span>std::rc::Rc;55 </span><span·class="kw">use·</span>std::rc::Rc;
  
56 <span·class="kw">let·</span><span·class="kw-2">mut·</span>five·=·Rc::&lt;u32&gt;::new_uninit();56 <span·class="kw">let·</span><span·class="kw-2">mut·</span>five·=·Rc::&lt;u32&gt;::new_uninit();
  
57 <span·class="comment">//·Deferred·initialization:57 <span·class="comment">//·Deferred·initialization:
58 </span>Rc::get_mut(<span·class="kw-2">&amp;mut·</span>five).unwrap().write(<span·class="number">5</span>);58 </span>Rc::get_mut(<span·class="kw-2">&amp;mut·</span>five).unwrap().write(<span·class="number">5</span>);
  
59 <span·class="kw">let·</span>five·=·<span·class="kw">unsafe·</span>{·five.assume_init()·};59 <span·class="kw">let·</span>five·=·<span·class="kw">unsafe·</span>{·five.assume_init()·};
  
60 <span·class="macro">assert_eq!</span>(<span·class="kw-2">*</span>five,·<span·class="number">5</span>)</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Bfeature(get_mut_unchecked)%5D%0A%0Afn+main()+%7B%0A++++use+std::rc::Rc;%0A++++%0A++++let+mut+five+=+Rc::%3Cu32%3E::new_uninit();%0A++++%0A++++//+Deferred+initialization:%0A++++Rc::get_mut(%26mut+five).unwrap().write(5);%0A++++%0A++++let+five+=+unsafe+%7B+five.assume_init()+%7D;%0A++++%0A++++assert_eq!(*five,+5)%0A%7D&amp;version=nightly&amp;edition=2021"></a></div>60 <span·class="macro">assert_eq!</span>(<span·class="kw-2">*</span>five,·<span·class="number">5</span>)</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Bfeature(get_mut_unchecked)%5D%0A%0Afn+main()+%7B%0A++++use+std::rc::Rc;%0A++++%0A++++let+mut+five+=+Rc::%3Cu32%3E::new_uninit();%0A++++%0A++++//+Deferred+initialization:%0A++++Rc::get_mut(%26mut+five).unwrap().write(5);%0A++++%0A++++let+five+=+unsafe+%7B+five.assume_init()+%7D;%0A++++%0A++++assert_eq!(*five,+5)%0A%7D&amp;version=nightly&amp;edition=2021"></a></div>
61 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.new_zeroed"·class="method"><a·class="src·rightside"·href="../../src/alloc/rc.rs.html#536-544">Source</a><h4·class="code-header">pub·fn·<a·href="#method.new_zeroed"·class="fn">new_zeroed</a>()·-&gt;·<a·class="struct"·href="struct.Rc.html"·title="struct·alloc::rc::Rc">Rc</a>&lt;<a·class="union"·href="https://doc.rust-lang.org/1.84.0/core/mem/maybe_uninit/union.MaybeUninit.html"·title="union·core::mem::maybe_uninit::MaybeUninit">MaybeUninit</a>&lt;T&gt;&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>new_zeroed_alloc</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/129396">#129396</a>)</span></div></span></summary><div·class="docblock"><p>Constructs·a·new·<code>Rc</code>·with·uninitialized·contents,·with·the·memory61 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.new_zeroed"·class="method"><a·class="src·rightside"·href="../../src/alloc/rc.rs.html#536-544">Source</a><h4·class="code-header">pub·fn·<a·href="#method.new_zeroed"·class="fn">new_zeroed</a>()·-&gt;·<a·class="struct"·href="struct.Rc.html"·title="struct·alloc::rc::Rc">Rc</a>&lt;<a·class="union"·href="../../core/mem/maybe_uninit/union.MaybeUninit.html"·title="union·core::mem::maybe_uninit::MaybeUninit">MaybeUninit</a>&lt;T&gt;&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>new_zeroed_alloc</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/129396">#129396</a>)</span></div></span></summary><div·class="docblock"><p>Constructs·a·new·<code>Rc</code>·with·uninitialized·contents,·with·the·memory
62 being·filled·with·<code>0</code>·bytes.</p>62 being·filled·with·<code>0</code>·bytes.</p>
63 <p>See·<a·href="https://doc.rust-lang.org/1.84.0/core/mem/maybe_uninit/union.MaybeUninit.html#method.zeroed"·title="associated·function·core::mem::maybe_uninit::MaybeUninit::zeroed"><code>MaybeUninit::zeroed</code></a>·for·examples·of·correct·and63 <p>See·<a·href="../../core/mem/maybe_uninit/union.MaybeUninit.html#method.zeroed"·title="associated·function·core::mem::maybe_uninit::MaybeUninit::zeroed"><code>MaybeUninit::zeroed</code></a>·for·examples·of·correct·and
64 incorrect·usage·of·this·method.</p>64 incorrect·usage·of·this·method.</p>
65 <h5·id="examples-3"><a·class="doc-anchor"·href="#examples-3">§</a>Examples</h5>65 <h5·id="examples-3"><a·class="doc-anchor"·href="#examples-3">§</a>Examples</h5>
66 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(new_zeroed_alloc)]66 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(new_zeroed_alloc)]
  
67 </span><span·class="kw">use·</span>std::rc::Rc;67 </span><span·class="kw">use·</span>std::rc::Rc;
  
68 <span·class="kw">let·</span>zero·=·Rc::&lt;u32&gt;::new_zeroed();68 <span·class="kw">let·</span>zero·=·Rc::&lt;u32&gt;::new_zeroed();
69 <span·class="kw">let·</span>zero·=·<span·class="kw">unsafe·</span>{·zero.assume_init()·};69 <span·class="kw">let·</span>zero·=·<span·class="kw">unsafe·</span>{·zero.assume_init()·};
  
70 <span·class="macro">assert_eq!</span>(<span·class="kw-2">*</span>zero,·<span·class="number">0</span>)</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Bfeature(new_zeroed_alloc)%5D%0A%0A%23%5Ballow(unused_extern_crates)%5D%0Aextern+crate+r%23alloc;%0Afn+main()+%7B%0A++++use+std::rc::Rc;%0A++++%0A++++let+zero+=+Rc::%3Cu32%3E::new_zeroed();%0A++++let+zero+=+unsafe+%7B+zero.assume_init()+%7D;%0A++++%0A++++assert_eq!(*zero,+0)%0A%7D&amp;version=nightly&amp;edition=2021"></a></div>70 <span·class="macro">assert_eq!</span>(<span·class="kw-2">*</span>zero,·<span·class="number">0</span>)</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Bfeature(new_zeroed_alloc)%5D%0A%0A%23%5Ballow(unused_extern_crates)%5D%0Aextern+crate+r%23alloc;%0Afn+main()+%7B%0A++++use+std::rc::Rc;%0A++++%0A++++let+zero+=+Rc::%3Cu32%3E::new_zeroed();%0A++++let+zero+=+unsafe+%7B+zero.assume_init()+%7D;%0A++++%0A++++assert_eq!(*zero,+0)%0A%7D&amp;version=nightly&amp;edition=2021"></a></div>
71 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_new"·class="method"><a·class="src·rightside"·href="../../src/alloc/rc.rs.html#558-573">Source</a><h4·class="code-header">pub·fn·<a·href="#method.try_new"·class="fn">try_new</a>(value:·T)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="struct"·href="struct.Rc.html"·title="struct·alloc::rc::Rc">Rc</a>&lt;T&gt;,·<a·class="struct"·href="../alloc/struct.AllocError.html"·title="struct·alloc::alloc::AllocError">AllocError</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>allocator_api</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/32838">#32838</a>)</span></div></span></summary><div·class="docblock"><p>Constructs·a·new·<code>Rc&lt;T&gt;</code>,·returning·an·error·if·the·allocation·fails</p>71 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_new"·class="method"><a·class="src·rightside"·href="../../src/alloc/rc.rs.html#558-573">Source</a><h4·class="code-header">pub·fn·<a·href="#method.try_new"·class="fn">try_new</a>(value:·T)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="struct"·href="struct.Rc.html"·title="struct·alloc::rc::Rc">Rc</a>&lt;T&gt;,·<a·class="struct"·href="../alloc/struct.AllocError.html"·title="struct·alloc::alloc::AllocError">AllocError</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>allocator_api</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/32838">#32838</a>)</span></div></span></summary><div·class="docblock"><p>Constructs·a·new·<code>Rc&lt;T&gt;</code>,·returning·an·error·if·the·allocation·fails</p>
72 <h5·id="examples-4"><a·class="doc-anchor"·href="#examples-4">§</a>Examples</h5>72 <h5·id="examples-4"><a·class="doc-anchor"·href="#examples-4">§</a>Examples</h5>
73 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(allocator_api)]73 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(allocator_api)]
74 </span><span·class="kw">use·</span>std::rc::Rc;74 </span><span·class="kw">use·</span>std::rc::Rc;
  
75 <span·class="kw">let·</span>five·=·Rc::try_new(<span·class="number">5</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Bfeature(allocator_api)%5D%0A%23%5Ballow(unused_extern_crates)%5D%0Aextern+crate+r%23alloc;%0Afn+main()+%7B+fn+_inner()+-%3E+Result%3C(),+impl+core::fmt::Debug%3E+%7B%0A++++use+std::rc::Rc;%0A++++%0A++++let+five+=+Rc::try_new(5);%0A++++Ok::%3C(),+std::alloc::AllocError%3E(())%0A%7D+_inner().unwrap()+%7D&amp;version=nightly&amp;edition=2021"></a></div>75 <span·class="kw">let·</span>five·=·Rc::try_new(<span·class="number">5</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Bfeature(allocator_api)%5D%0A%23%5Ballow(unused_extern_crates)%5D%0Aextern+crate+r%23alloc;%0Afn+main()+%7B+fn+_inner()+-%3E+Result%3C(),+impl+core::fmt::Debug%3E+%7B%0A++++use+std::rc::Rc;%0A++++%0A++++let+five+=+Rc::try_new(5);%0A++++Ok::%3C(),+std::alloc::AllocError%3E(())%0A%7D+_inner().unwrap()+%7D&amp;version=nightly&amp;edition=2021"></a></div>
76 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_new_uninit"·class="method"><a·class="src·rightside"·href="../../src/alloc/rc.rs.html#597-605">Source</a><h4·class="code-header">pub·fn·<a·href="#method.try_new_uninit"·class="fn">try_new_uninit</a>()·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="struct"·href="struct.Rc.html"·title="struct·alloc::rc::Rc">Rc</a>&lt;<a·class="union"·href="https://doc.rust-lang.org/1.84.0/core/mem/maybe_uninit/union.MaybeUninit.html"·title="union·core::mem::maybe_uninit::MaybeUninit">MaybeUninit</a>&lt;T&gt;&gt;,·<a·class="struct"·href="../alloc/struct.AllocError.html"·title="struct·alloc::alloc::AllocError">AllocError</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>allocator_api</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/32838">#32838</a>)</span></div></span></summary><div·class="docblock"><p>Constructs·a·new·<code>Rc</code>·with·uninitialized·contents,·returning·an·error·if·the·allocation·fails</p>76 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_new_uninit"·class="method"><a·class="src·rightside"·href="../../src/alloc/rc.rs.html#597-605">Source</a><h4·class="code-header">pub·fn·<a·href="#method.try_new_uninit"·class="fn">try_new_uninit</a>()·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="struct"·href="struct.Rc.html"·title="struct·alloc::rc::Rc">Rc</a>&lt;<a·class="union"·href="../../core/mem/maybe_uninit/union.MaybeUninit.html"·title="union·core::mem::maybe_uninit::MaybeUninit">MaybeUninit</a>&lt;T&gt;&gt;,·<a·class="struct"·href="../alloc/struct.AllocError.html"·title="struct·alloc::alloc::AllocError">AllocError</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>allocator_api</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/32838">#32838</a>)</span></div></span></summary><div·class="docblock"><p>Constructs·a·new·<code>Rc</code>·with·uninitialized·contents,·returning·an·error·if·the·allocation·fails</p>
77 <h5·id="examples-5"><a·class="doc-anchor"·href="#examples-5">§</a>Examples</h5>77 <h5·id="examples-5"><a·class="doc-anchor"·href="#examples-5">§</a>Examples</h5>
78 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(allocator_api)]78 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(allocator_api)]
79 #![feature(get_mut_unchecked)]79 #![feature(get_mut_unchecked)]
  
80 </span><span·class="kw">use·</span>std::rc::Rc;80 </span><span·class="kw">use·</span>std::rc::Rc;
  
81 <span·class="kw">let·</span><span·class="kw-2">mut·</span>five·=·Rc::&lt;u32&gt;::try_new_uninit()<span·class="question-mark">?</span>;81 <span·class="kw">let·</span><span·class="kw-2">mut·</span>five·=·Rc::&lt;u32&gt;::try_new_uninit()<span·class="question-mark">?</span>;
  
82 <span·class="comment">//·Deferred·initialization:82 <span·class="comment">//·Deferred·initialization:
83 </span>Rc::get_mut(<span·class="kw-2">&amp;mut·</span>five).unwrap().write(<span·class="number">5</span>);83 </span>Rc::get_mut(<span·class="kw-2">&amp;mut·</span>five).unwrap().write(<span·class="number">5</span>);
  
84 <span·class="kw">let·</span>five·=·<span·class="kw">unsafe·</span>{·five.assume_init()·};84 <span·class="kw">let·</span>five·=·<span·class="kw">unsafe·</span>{·five.assume_init()·};
  
85 <span·class="macro">assert_eq!</span>(<span·class="kw-2">*</span>five,·<span·class="number">5</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Bfeature(allocator_api)%5D%0A%23!%5Bfeature(get_mut_unchecked)%5D%0A%0A%23%5Ballow(unused_extern_crates)%5D%0Aextern+crate+r%23alloc;%0Afn+main()+%7B+fn+_inner()+-%3E+Result%3C(),+impl+core::fmt::Debug%3E+%7B%0A++++use+std::rc::Rc;%0A++++%0A++++let+mut+five+=+Rc::%3Cu32%3E::try_new_uninit()?;%0A++++%0A++++//+Deferred+initialization:%0A++++Rc::get_mut(%26mut+five).unwrap().write(5);%0A++++%0A++++let+five+=+unsafe+%7B+five.assume_init()+%7D;%0A++++%0A++++assert_eq!(*five,+5);%0A++++Ok::%3C(),+std::alloc::AllocError%3E(())%0A%7D+_inner().unwrap()+%7D&amp;version=nightly&amp;edition=2021"></a></div>85 <span·class="macro">assert_eq!</span>(<span·class="kw-2">*</span>five,·<span·class="number">5</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Bfeature(allocator_api)%5D%0A%23!%5Bfeature(get_mut_unchecked)%5D%0A%0A%23%5Ballow(unused_extern_crates)%5D%0Aextern+crate+r%23alloc;%0Afn+main()+%7B+fn+_inner()+-%3E+Result%3C(),+impl+core::fmt::Debug%3E+%7B%0A++++use+std::rc::Rc;%0A++++%0A++++let+mut+five+=+Rc::%3Cu32%3E::try_new_uninit()?;%0A++++%0A++++//+Deferred+initialization:%0A++++Rc::get_mut(%26mut+five).unwrap().write(5);%0A++++%0A++++let+five+=+unsafe+%7B+five.assume_init()+%7D;%0A++++%0A++++assert_eq!(*five,+5);%0A++++Ok::%3C(),+std::alloc::AllocError%3E(())%0A%7D+_inner().unwrap()+%7D&amp;version=nightly&amp;edition=2021"></a></div>
86 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_new_zeroed"·class="method"><a·class="src·rightside"·href="../../src/alloc/rc.rs.html#630-638">Source</a><h4·class="code-header">pub·fn·<a·href="#method.try_new_zeroed"·class="fn">try_new_zeroed</a>()·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="struct"·href="struct.Rc.html"·title="struct·alloc::rc::Rc">Rc</a>&lt;<a·class="union"·href="https://doc.rust-lang.org/1.84.0/core/mem/maybe_uninit/union.MaybeUninit.html"·title="union·core::mem::maybe_uninit::MaybeUninit">MaybeUninit</a>&lt;T&gt;&gt;,·<a·class="struct"·href="../alloc/struct.AllocError.html"·title="struct·alloc::alloc::AllocError">AllocError</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>allocator_api</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/32838">#32838</a>)</span></div></span></summary><div·class="docblock"><p>Constructs·a·new·<code>Rc</code>·with·uninitialized·contents,·with·the·memory86 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_new_zeroed"·class="method"><a·class="src·rightside"·href="../../src/alloc/rc.rs.html#630-638">Source</a><h4·class="code-header">pub·fn·<a·href="#method.try_new_zeroed"·class="fn">try_new_zeroed</a>()·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="struct"·href="struct.Rc.html"·title="struct·alloc::rc::Rc">Rc</a>&lt;<a·class="union"·href="../../core/mem/maybe_uninit/union.MaybeUninit.html"·title="union·core::mem::maybe_uninit::MaybeUninit">MaybeUninit</a>&lt;T&gt;&gt;,·<a·class="struct"·href="../alloc/struct.AllocError.html"·title="struct·alloc::alloc::AllocError">AllocError</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>allocator_api</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/32838">#32838</a>)</span></div></span></summary><div·class="docblock"><p>Constructs·a·new·<code>Rc</code>·with·uninitialized·contents,·with·the·memory
87 being·filled·with·<code>0</code>·bytes,·returning·an·error·if·the·allocation·fails</p>87 being·filled·with·<code>0</code>·bytes,·returning·an·error·if·the·allocation·fails</p>
88 <p>See·<a·href="https://doc.rust-lang.org/1.84.0/core/mem/maybe_uninit/union.MaybeUninit.html#method.zeroed"·title="associated·function·core::mem::maybe_uninit::MaybeUninit::zeroed"><code>MaybeUninit::zeroed</code></a>·for·examples·of·correct·and88 <p>See·<a·href="../../core/mem/maybe_uninit/union.MaybeUninit.html#method.zeroed"·title="associated·function·core::mem::maybe_uninit::MaybeUninit::zeroed"><code>MaybeUninit::zeroed</code></a>·for·examples·of·correct·and
89 incorrect·usage·of·this·method.</p>89 incorrect·usage·of·this·method.</p>
90 <h5·id="examples-6"><a·class="doc-anchor"·href="#examples-6">§</a>Examples</h5>90 <h5·id="examples-6"><a·class="doc-anchor"·href="#examples-6">§</a>Examples</h5>
91 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(allocator_api)]91 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(allocator_api)]
  
92 </span><span·class="kw">use·</span>std::rc::Rc;92 </span><span·class="kw">use·</span>std::rc::Rc;
  
93 <span·class="kw">let·</span>zero·=·Rc::&lt;u32&gt;::try_new_zeroed()<span·class="question-mark">?</span>;93 <span·class="kw">let·</span>zero·=·Rc::&lt;u32&gt;::try_new_zeroed()<span·class="question-mark">?</span>;
94 <span·class="kw">let·</span>zero·=·<span·class="kw">unsafe·</span>{·zero.assume_init()·};94 <span·class="kw">let·</span>zero·=·<span·class="kw">unsafe·</span>{·zero.assume_init()·};
  
95 <span·class="macro">assert_eq!</span>(<span·class="kw-2">*</span>zero,·<span·class="number">0</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Bfeature(allocator_api)%5D%0A%0A%23%5Ballow(unused_extern_crates)%5D%0Aextern+crate+r%23alloc;%0Afn+main()+%7B+fn+_inner()+-%3E+Result%3C(),+impl+core::fmt::Debug%3E+%7B%0A++++use+std::rc::Rc;%0A++++%0A++++let+zero+=+Rc::%3Cu32%3E::try_new_zeroed()?;%0A++++let+zero+=+unsafe+%7B+zero.assume_init()+%7D;%0A++++%0A++++assert_eq!(*zero,+0);%0A++++Ok::%3C(),+std::alloc::AllocError%3E(())%0A%7D+_inner().unwrap()+%7D&amp;version=nightly&amp;edition=2021"></a></div>95 <span·class="macro">assert_eq!</span>(<span·class="kw-2">*</span>zero,·<span·class="number">0</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Bfeature(allocator_api)%5D%0A%0A%23%5Ballow(unused_extern_crates)%5D%0Aextern+crate+r%23alloc;%0Afn+main()+%7B+fn+_inner()+-%3E+Result%3C(),+impl+core::fmt::Debug%3E+%7B%0A++++use+std::rc::Rc;%0A++++%0A++++let+zero+=+Rc::%3Cu32%3E::try_new_zeroed()?;%0A++++let+zero+=+unsafe+%7B+zero.assume_init()+%7D;%0A++++%0A++++assert_eq!(*zero,+0);%0A++++Ok::%3C(),+std::alloc::AllocError%3E(())%0A%7D+_inner().unwrap()+%7D&amp;version=nightly&amp;edition=2021"></a></div>
96 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.pin"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.33.0">1.33.0</span>···<a·class="src"·href="../../src/alloc/rc.rs.html#644-646">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.pin"·class="fn">pin</a>(value:·T)·-&gt;·<a·class="struct"·href="https://doc.rust-lang.org/1.84.0/core/pin/struct.Pin.html"·title="struct·core::pin::Pin">Pin</a>&lt;<a·class="struct"·href="struct.Rc.html"·title="struct·alloc::rc::Rc">Rc</a>&lt;T&gt;&gt;</h4></section></summary><div·class="docblock"><p>Constructs·a·new·<code>Pin&lt;Rc&lt;T&gt;&gt;</code>.·If·<code>T</code>·does·not·implement·<code>Unpin</code>,·then96 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.pin"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.33.0">1.33.0</span>···<a·class="src"·href="../../src/alloc/rc.rs.html#644-646">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.pin"·class="fn">pin</a>(value:·T)·-&gt;·<a·class="struct"·href="../../core/pin/struct.Pin.html"·title="struct·core::pin::Pin">Pin</a>&lt;<a·class="struct"·href="struct.Rc.html"·title="struct·alloc::rc::Rc">Rc</a>&lt;T&gt;&gt;</h4></section></summary><div·class="docblock"><p>Constructs·a·new·<code>Pin&lt;Rc&lt;T&gt;&gt;</code>.·If·<code>T</code>·does·not·implement·<code>Unpin</code>,·then
97 <code>value</code>·will·be·pinned·in·memory·and·unable·to·be·moved.</p>97 <code>value</code>·will·be·pinned·in·memory·and·unable·to·be·moved.</p>
98 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Rc%3CT,+A%3E"·class="impl"><a·class="src·rightside"·href="../../src/alloc/rc.rs.html#649-1021">Source</a><a·href="#impl-Rc%3CT,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·A:·<a·class="trait"·href="../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>&gt;·<a·class="struct"·href="struct.Rc.html"·title="struct·alloc::rc::Rc">Rc</a>&lt;T,·A&gt;</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.new_in"·class="method"><a·class="src·rightside"·href="../../src/alloc/rc.rs.html#664-671">Source</a><h4·class="code-header">pub·fn·<a·href="#method.new_in"·class="fn">new_in</a>(value:·T,·alloc:·A)·-&gt;·<a·class="struct"·href="struct.Rc.html"·title="struct·alloc::rc::Rc">Rc</a>&lt;T,·A&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>allocator_api</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/32838">#32838</a>)</span></div></span></summary><div·class="docblock"><p>Constructs·a·new·<code>Rc</code>·in·the·provided·allocator.</p>98 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Rc%3CT,+A%3E"·class="impl"><a·class="src·rightside"·href="../../src/alloc/rc.rs.html#649-1021">Source</a><a·href="#impl-Rc%3CT,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·A:·<a·class="trait"·href="../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>&gt;·<a·class="struct"·href="struct.Rc.html"·title="struct·alloc::rc::Rc">Rc</a>&lt;T,·A&gt;</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.new_in"·class="method"><a·class="src·rightside"·href="../../src/alloc/rc.rs.html#664-671">Source</a><h4·class="code-header">pub·fn·<a·href="#method.new_in"·class="fn">new_in</a>(value:·T,·alloc:·A)·-&gt;·<a·class="struct"·href="struct.Rc.html"·title="struct·alloc::rc::Rc">Rc</a>&lt;T,·A&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>allocator_api</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/32838">#32838</a>)</span></div></span></summary><div·class="docblock"><p>Constructs·a·new·<code>Rc</code>·in·the·provided·allocator.</p>
99 <h5·id="examples-7"><a·class="doc-anchor"·href="#examples-7">§</a>Examples</h5>99 <h5·id="examples-7"><a·class="doc-anchor"·href="#examples-7">§</a>Examples</h5>
100 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(allocator_api)]100 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(allocator_api)]
101 </span><span·class="kw">use·</span>std::rc::Rc;101 </span><span·class="kw">use·</span>std::rc::Rc;
102 <span·class="kw">use·</span>std::alloc::System;102 <span·class="kw">use·</span>std::alloc::System;
  
103 <span·class="kw">let·</span>five·=·Rc::new_in(<span·class="number">5</span>,·System);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Bfeature(allocator_api)%5D%0A%23%5Ballow(unused_extern_crates)%5D%0Aextern+crate+r%23alloc;%0Afn+main()+%7B%0A++++use+std::rc::Rc;%0A++++use+std::alloc::System;%0A++++%0A++++let+five+=+Rc::new_in(5,+System);%0A%7D&amp;version=nightly&amp;edition=2021"></a></div>103 <span·class="kw">let·</span>five·=·Rc::new_in(<span·class="number">5</span>,·System);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Bfeature(allocator_api)%5D%0A%23%5Ballow(unused_extern_crates)%5D%0Aextern+crate+r%23alloc;%0Afn+main()+%7B%0A++++use+std::rc::Rc;%0A++++use+std::alloc::System;%0A++++%0A++++let+five+=+Rc::new_in(5,+System);%0A%7D&amp;version=nightly&amp;edition=2021"></a></div>
104 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.new_uninit_in"·class="method"><a·class="src·rightside"·href="../../src/alloc/rc.rs.html#699-710">Source</a><h4·class="code-header">pub·fn·<a·href="#method.new_uninit_in"·class="fn">new_uninit_in</a>(alloc:·A)·-&gt;·<a·class="struct"·href="struct.Rc.html"·title="struct·alloc::rc::Rc">Rc</a>&lt;<a·class="union"·href="https://doc.rust-lang.org/1.84.0/core/mem/maybe_uninit/union.MaybeUninit.html"·title="union·core::mem::maybe_uninit::MaybeUninit">MaybeUninit</a>&lt;T&gt;,·A&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>allocator_api</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/32838">#32838</a>)</span></div></span></summary><div·class="docblock"><p>Constructs·a·new·<code>Rc</code>·with·uninitialized·contents·in·the·provided·allocator.</p>104 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.new_uninit_in"·class="method"><a·class="src·rightside"·href="../../src/alloc/rc.rs.html#699-710">Source</a><h4·class="code-header">pub·fn·<a·href="#method.new_uninit_in"·class="fn">new_uninit_in</a>(alloc:·A)·-&gt;·<a·class="struct"·href="struct.Rc.html"·title="struct·alloc::rc::Rc">Rc</a>&lt;<a·class="union"·href="../../core/mem/maybe_uninit/union.MaybeUninit.html"·title="union·core::mem::maybe_uninit::MaybeUninit">MaybeUninit</a>&lt;T&gt;,·A&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>allocator_api</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/32838">#32838</a>)</span></div></span></summary><div·class="docblock"><p>Constructs·a·new·<code>Rc</code>·with·uninitialized·contents·in·the·provided·allocator.</p>
105 <h5·id="examples-8"><a·class="doc-anchor"·href="#examples-8">§</a>Examples</h5>105 <h5·id="examples-8"><a·class="doc-anchor"·href="#examples-8">§</a>Examples</h5>
106 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(get_mut_unchecked)]106 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(get_mut_unchecked)]
107 #![feature(allocator_api)]107 #![feature(allocator_api)]
  
108 </span><span·class="kw">use·</span>std::rc::Rc;108 </span><span·class="kw">use·</span>std::rc::Rc;
109 <span·class="kw">use·</span>std::alloc::System;109 <span·class="kw">use·</span>std::alloc::System;
  
Offset 134, 30 lines modifiedOffset 134, 30 lines modified
134 ····<span·class="comment">//·Deferred·initialization:134 ····<span·class="comment">//·Deferred·initialization:
135 ····</span>Rc::get_mut_unchecked(<span·class="kw-2">&amp;mut·</span>five).as_mut_ptr().write(<span·class="number">5</span>);135 ····</span>Rc::get_mut_unchecked(<span·class="kw-2">&amp;mut·</span>five).as_mut_ptr().write(<span·class="number">5</span>);
  
136 ····five.assume_init()136 ····five.assume_init()
137 };137 };
  
138 <span·class="macro">assert_eq!</span>(<span·class="kw-2">*</span>five,·<span·class="number">5</span>)</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Bfeature(get_mut_unchecked)%5D%0A%23!%5Bfeature(allocator_api)%5D%0A%0A%23%5Ballow(unused_extern_crates)%5D%0Aextern+crate+r%23alloc;%0Afn+main()+%7B%0A++++use+std::rc::Rc;%0A++++use+std::alloc::System;%0A++++%0A++++let+mut+five+=+Rc::%3Cu32,+_%3E::new_uninit_in(System);%0A++++%0A++++let+five+=+unsafe+%7B%0A++++++++//+Deferred+initialization:%0A++++++++Rc::get_mut_unchecked(%26mut+five).as_mut_ptr().write(5);%0A++++%0A++++++++five.assume_init()%0A++++%7D;%0A++++%0A++++assert_eq!(*five,+5)%0A%7D&amp;version=nightly&amp;edition=2021"></a></div>138 <span·class="macro">assert_eq!</span>(<span·class="kw-2">*</span>five,·<span·class="number">5</span>)</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Bfeature(get_mut_unchecked)%5D%0A%23!%5Bfeature(allocator_api)%5D%0A%0A%23%5Ballow(unused_extern_crates)%5D%0Aextern+crate+r%23alloc;%0Afn+main()+%7B%0A++++use+std::rc::Rc;%0A++++use+std::alloc::System;%0A++++%0A++++let+mut+five+=+Rc::%3Cu32,+_%3E::new_uninit_in(System);%0A++++%0A++++let+five+=+unsafe+%7B%0A++++++++//+Deferred+initialization:%0A++++++++Rc::get_mut_unchecked(%26mut+five).as_mut_ptr().write(5);%0A++++%0A++++++++five.assume_init()%0A++++%7D;%0A++++%0A++++assert_eq!(*five,+5)%0A%7D&amp;version=nightly&amp;edition=2021"></a></div>
139 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.new_zeroed_in"·class="method"><a·class="src·rightside"·href="../../src/alloc/rc.rs.html#737-748">Source</a><h4·class="code-header">pub·fn·<a·href="#method.new_zeroed_in"·class="fn">new_zeroed_in</a>(alloc:·A)·-&gt;·<a·class="struct"·href="struct.Rc.html"·title="struct·alloc::rc::Rc">Rc</a>&lt;<a·class="union"·href="https://doc.rust-lang.org/1.84.0/core/mem/maybe_uninit/union.MaybeUninit.html"·title="union·core::mem::maybe_uninit::MaybeUninit">MaybeUninit</a>&lt;T&gt;,·A&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>allocator_api</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/32838">#32838</a>)</span></div></span></summary><div·class="docblock"><p>Constructs·a·new·<code>Rc</code>·with·uninitialized·contents,·with·the·memory139 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.new_zeroed_in"·class="method"><a·class="src·rightside"·href="../../src/alloc/rc.rs.html#737-748">Source</a><h4·class="code-header">pub·fn·<a·href="#method.new_zeroed_in"·class="fn">new_zeroed_in</a>(alloc:·A)·-&gt;·<a·class="struct"·href="struct.Rc.html"·title="struct·alloc::rc::Rc">Rc</a>&lt;<a·class="union"·href="../../core/mem/maybe_uninit/union.MaybeUninit.html"·title="union·core::mem::maybe_uninit::MaybeUninit">MaybeUninit</a>&lt;T&gt;,·A&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>allocator_api</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/32838">#32838</a>)</span></div></span></summary><div·class="docblock"><p>Constructs·a·new·<code>Rc</code>·with·uninitialized·contents,·with·the·memory
140 being·filled·with·<code>0</code>·bytes,·in·the·provided·allocator.</p>140 being·filled·with·<code>0</code>·bytes,·in·the·provided·allocator.</p>
141 <p>See·<a·href="https://doc.rust-lang.org/1.84.0/core/mem/maybe_uninit/union.MaybeUninit.html#method.zeroed"·title="associated·function·core::mem::maybe_uninit::MaybeUninit::zeroed"><code>MaybeUninit::zeroed</code></a>·for·examples·of·correct·and141 <p>See·<a·href="../../core/mem/maybe_uninit/union.MaybeUninit.html#method.zeroed"·title="associated·function·core::mem::maybe_uninit::MaybeUninit::zeroed"><code>MaybeUninit::zeroed</code></a>·for·examples·of·correct·and
142 incorrect·usage·of·this·method.</p>142 incorrect·usage·of·this·method.</p>
143 <h5·id="examples-9"><a·class="doc-anchor"·href="#examples-9">§</a>Examples</h5>143 <h5·id="examples-9"><a·class="doc-anchor"·href="#examples-9">§</a>Examples</h5>
144 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(allocator_api)]144 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(allocator_api)]
  
145 </span><span·class="kw">use·</span>std::rc::Rc;145 </span><span·class="kw">use·</span>std::rc::Rc;
146 <span·class="kw">use·</span>std::alloc::System;146 <span·class="kw">use·</span>std::alloc::System;
  
147 <span·class="kw">let·</span>zero·=·Rc::&lt;u32,·<span·class="kw">_</span>&gt;::new_zeroed_in(System);147 <span·class="kw">let·</span>zero·=·Rc::&lt;u32,·<span·class="kw">_</span>&gt;::new_zeroed_in(System);
148 <span·class="kw">let·</span>zero·=·<span·class="kw">unsafe·</span>{·zero.assume_init()·};148 <span·class="kw">let·</span>zero·=·<span·class="kw">unsafe·</span>{·zero.assume_init()·};
  
Max diff block lines reached; 325197/384522 bytes (84.57%) of diff not shown.
74.3 KB
./usr/share/doc/rust-doc/html/alloc/rc/struct.UniqueRc.html
    
Offset 1, 8 lines modifiedOffset 1, 8 lines modified
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="A·uniquely·owned·`Rc`."><title>UniqueRc·in·alloc::rc·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»       2025-01-07)»    (built»      from»  a» source»   tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Unique<wbr>Rc</a></h2><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.downgrade"·title="downgrade">downgrade</a></li><li><a·href="#method.into_rc"·title="into_rc">into_rc</a></li><li><a·href="#method.new"·title="new">new</a></li><li><a·href="#method.new_in"·title="new_in">new_in</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-CoerceUnsized%3CUniqueRc%3CU,+A%3E%3E-for-UniqueRc%3CT,+A%3E"·title="CoerceUnsized&#60;UniqueRc&#60;U,·A&#62;&#62;">CoerceUnsized&#60;UniqueRc&#60;U,·A&#62;&#62;</a></li><li><a·href="#impl-Debug-for-UniqueRc%3CT,+A%3E"·title="Debug">Debug</a></li><li><a·href="#impl-Deref-for-UniqueRc%3CT,+A%3E"·title="Deref">Deref</a></li><li><a·href="#impl-DerefMut-for-UniqueRc%3CT,+A%3E"·title="DerefMut">DerefMut</a></li><li><a·href="#impl-Drop-for-UniqueRc%3CT,+A%3E"·title="Drop">Drop</a></li><li><a·href="#impl-PinCoerceUnsized-for-UniqueRc%3CT%3E"·title="PinCoerceUnsized">PinCoerceUnsized</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-RefUnwindSafe-for-UniqueRc%3CT,+A%3E"·title="!RefUnwindSafe">!RefUnwindSafe</a></li><li><a·href="#impl-Send-for-UniqueRc%3CT,+A%3E"·title="!Send">!Send</a></li><li><a·href="#impl-Sync-for-UniqueRc%3CT,+A%3E"·title="!Sync">!Sync</a></li><li><a·href="#impl-UnwindSafe-for-UniqueRc%3CT,+A%3E"·title="!UnwindSafe">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-UniqueRc%3CT,+A%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-Unpin-for-UniqueRc%3CT,+A%3E"·title="Unpin">Unpin</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-Receiver-for-P"·title="Receiver">Receiver</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>rc</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">alloc</a>::<wbr><a·href="index.html">rc</a></span><h1>Struct·<span·class="struct">UniqueRc</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/alloc/rc.rs.html#3688-3695">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·UniqueRc&lt;T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,·A:·<a·class="trait"·href="../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·=·<a·class="struct"·href="../alloc/struct.Global.html"·title="struct·alloc::alloc::Global">Global</a>&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>unique_rc_arc</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/112566">#112566</a>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>A·uniquely·owned·<a·href="struct.Rc.html"·title="struct·alloc::rc::Rc"><code>Rc</code></a>.</p>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="A·uniquely·owned·`Rc`."><title>UniqueRc·in·alloc::rc·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»       2025-01-07)»    (built»      from»  a» source»   tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Unique<wbr>Rc</a></h2><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.downgrade"·title="downgrade">downgrade</a></li><li><a·href="#method.into_rc"·title="into_rc">into_rc</a></li><li><a·href="#method.new"·title="new">new</a></li><li><a·href="#method.new_in"·title="new_in">new_in</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-CoerceUnsized%3CUniqueRc%3CU,+A%3E%3E-for-UniqueRc%3CT,+A%3E"·title="CoerceUnsized&#60;UniqueRc&#60;U,·A&#62;&#62;">CoerceUnsized&#60;UniqueRc&#60;U,·A&#62;&#62;</a></li><li><a·href="#impl-Debug-for-UniqueRc%3CT,+A%3E"·title="Debug">Debug</a></li><li><a·href="#impl-Deref-for-UniqueRc%3CT,+A%3E"·title="Deref">Deref</a></li><li><a·href="#impl-DerefMut-for-UniqueRc%3CT,+A%3E"·title="DerefMut">DerefMut</a></li><li><a·href="#impl-Drop-for-UniqueRc%3CT,+A%3E"·title="Drop">Drop</a></li><li><a·href="#impl-PinCoerceUnsized-for-UniqueRc%3CT%3E"·title="PinCoerceUnsized">PinCoerceUnsized</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-RefUnwindSafe-for-UniqueRc%3CT,+A%3E"·title="!RefUnwindSafe">!RefUnwindSafe</a></li><li><a·href="#impl-Send-for-UniqueRc%3CT,+A%3E"·title="!Send">!Send</a></li><li><a·href="#impl-Sync-for-UniqueRc%3CT,+A%3E"·title="!Sync">!Sync</a></li><li><a·href="#impl-UnwindSafe-for-UniqueRc%3CT,+A%3E"·title="!UnwindSafe">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-UniqueRc%3CT,+A%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-Unpin-for-UniqueRc%3CT,+A%3E"·title="Unpin">Unpin</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-Receiver-for-P"·title="Receiver">Receiver</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>rc</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">alloc</a>::<wbr><a·href="index.html">rc</a></span><h1>Struct·<span·class="struct">UniqueRc</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/alloc/rc.rs.html#3688-3695">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·UniqueRc&lt;T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,·A:·<a·class="trait"·href="../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·=·<a·class="struct"·href="../alloc/struct.Global.html"·title="struct·alloc::alloc::Global">Global</a>&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>unique_rc_arc</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/112566">#112566</a>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>A·uniquely·owned·<a·href="struct.Rc.html"·title="struct·alloc::rc::Rc"><code>Rc</code></a>.</p>
2 <p>This·represents·an·<code>Rc</code>·that·is·known·to·be·uniquely·owned··that·is,·have·exactly·one·strong2 <p>This·represents·an·<code>Rc</code>·that·is·known·to·be·uniquely·owned··that·is,·have·exactly·one·strong
3 reference.·Multiple·weak·pointers·can·be·created,·but·attempts·to·upgrade·those·to·strong3 reference.·Multiple·weak·pointers·can·be·created,·but·attempts·to·upgrade·those·to·strong
4 references·will·fail·unless·the·<code>UniqueRc</code>·they·point·to·has·been·converted·into·a·regular·<code>Rc</code>.</p>4 references·will·fail·unless·the·<code>UniqueRc</code>·they·point·to·has·been·converted·into·a·regular·<code>Rc</code>.</p>
5 <p>Because·they·are·uniquely·owned,·the·contents·of·a·<code>UniqueRc</code>·can·be·freely·mutated.·A·common5 <p>Because·they·are·uniquely·owned,·the·contents·of·a·<code>UniqueRc</code>·can·be·freely·mutated.·A·common
6 use·case·is·to·have·an·object·be·mutable·during·its·initialization·phase·but·then·have·it·become6 use·case·is·to·have·an·object·be·mutable·during·its·initialization·phase·but·then·have·it·become
7 immutable·and·converted·to·a·normal·<code>Rc</code>.</p>7 immutable·and·converted·to·a·normal·<code>Rc</code>.</p>
8 <p>This·can·be·used·as·a·flexible·way·to·create·cyclic·data·structures,·as·in·the·example·below.</p>8 <p>This·can·be·used·as·a·flexible·way·to·create·cyclic·data·structures,·as·in·the·example·below.</p>
Offset 21, 45 lines modifiedOffset 21, 45 lines modified
21 ····});21 ····});
22 ····rc.me·=·UniqueRc::downgrade(<span·class="kw-2">&amp;</span>rc);22 ····rc.me·=·UniqueRc::downgrade(<span·class="kw-2">&amp;</span>rc);
23 ····<span·class="prelude-val">Some</span>(UniqueRc::into_rc(rc))23 ····<span·class="prelude-val">Some</span>(UniqueRc::into_rc(rc))
24 }24 }
  
25 create_gadget().unwrap();</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Bfeature(unique_rc_arc)%5D%0Afn+main()+%7B%0A++++use+std::rc::%7BRc,+Weak,+UniqueRc%7D;%0A++++%0A++++struct+Gadget+%7B%0A++++++++%23%5Ballow(dead_code)%5D%0A++++++++me:+Weak%3CGadget%3E,%0A++++%7D%0A++++%0A++++fn+create_gadget()+-%3E+Option%3CRc%3CGadget%3E%3E+%7B%0A++++++++let+mut+rc+=+UniqueRc::new(Gadget+%7B%0A++++++++++++me:+Weak::new(),%0A++++++++%7D);%0A++++++++rc.me+=+UniqueRc::downgrade(%26rc);%0A++++++++Some(UniqueRc::into_rc(rc))%0A++++%7D%0A++++%0A++++create_gadget().unwrap();%0A%7D&amp;version=nightly&amp;edition=2021"></a></div>25 create_gadget().unwrap();</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Bfeature(unique_rc_arc)%5D%0Afn+main()+%7B%0A++++use+std::rc::%7BRc,+Weak,+UniqueRc%7D;%0A++++%0A++++struct+Gadget+%7B%0A++++++++%23%5Ballow(dead_code)%5D%0A++++++++me:+Weak%3CGadget%3E,%0A++++%7D%0A++++%0A++++fn+create_gadget()+-%3E+Option%3CRc%3CGadget%3E%3E+%7B%0A++++++++let+mut+rc+=+UniqueRc::new(Gadget+%7B%0A++++++++++++me:+Weak::new(),%0A++++++++%7D);%0A++++++++rc.me+=+UniqueRc::downgrade(%26rc);%0A++++++++Some(UniqueRc::into_rc(rc))%0A++++%7D%0A++++%0A++++create_gadget().unwrap();%0A%7D&amp;version=nightly&amp;edition=2021"></a></div>
26 <p>An·advantage·of·using·<code>UniqueRc</code>·over·<a·href="struct.Rc.html#method.new_cyclic"·title="associated·function·alloc::rc::Rc::new_cyclic"><code>Rc::new_cyclic</code></a>·to·build·cyclic·data·structures·is·that26 <p>An·advantage·of·using·<code>UniqueRc</code>·over·<a·href="struct.Rc.html#method.new_cyclic"·title="associated·function·alloc::rc::Rc::new_cyclic"><code>Rc::new_cyclic</code></a>·to·build·cyclic·data·structures·is·that
27 <a·href="struct.Rc.html#method.new_cyclic"·title="associated·function·alloc::rc::Rc::new_cyclic"><code>Rc::new_cyclic</code></a>’s·<code>data_fn</code>·parameter·cannot·be·async·or·return·a·<a·href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html"·title="enum·core::result::Result"><code>Result</code></a>.·As·shown·in·the27 <a·href="struct.Rc.html#method.new_cyclic"·title="associated·function·alloc::rc::Rc::new_cyclic"><code>Rc::new_cyclic</code></a>’s·<code>data_fn</code>·parameter·cannot·be·async·or·return·a·<a·href="../../core/result/enum.Result.html"·title="enum·core::result::Result"><code>Result</code></a>.·As·shown·in·the
28 previous·example,·<code>UniqueRc</code>·allows·for·more·flexibility·in·the·construction·of·cyclic·data,28 previous·example,·<code>UniqueRc</code>·allows·for·more·flexibility·in·the·construction·of·cyclic·data,
29 including·fallible·or·async·constructors.</p>29 including·fallible·or·async·constructors.</p>
30 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-UniqueRc%3CT%3E"·class="impl"><a·class="src·rightside"·href="../../src/alloc/rc.rs.html#3704-3716">Source</a><a·href="#impl-UniqueRc%3CT%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="struct"·href="struct.UniqueRc.html"·title="struct·alloc::rc::UniqueRc">UniqueRc</a>&lt;T&gt;</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.new"·class="method"><a·class="src·rightside"·href="../../src/alloc/rc.rs.html#3713-3715">Source</a><h4·class="code-header">pub·fn·<a·href="#method.new"·class="fn">new</a>(value:·T)·-&gt;·Self</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>unique_rc_arc</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/112566">#112566</a>)</span></div></span></summary><div·class="docblock"><p>Creates·a·new·<code>UniqueRc</code>.</p>30 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-UniqueRc%3CT%3E"·class="impl"><a·class="src·rightside"·href="../../src/alloc/rc.rs.html#3704-3716">Source</a><a·href="#impl-UniqueRc%3CT%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="struct"·href="struct.UniqueRc.html"·title="struct·alloc::rc::UniqueRc">UniqueRc</a>&lt;T&gt;</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.new"·class="method"><a·class="src·rightside"·href="../../src/alloc/rc.rs.html#3713-3715">Source</a><h4·class="code-header">pub·fn·<a·href="#method.new"·class="fn">new</a>(value:·T)·-&gt;·Self</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>unique_rc_arc</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/112566">#112566</a>)</span></div></span></summary><div·class="docblock"><p>Creates·a·new·<code>UniqueRc</code>.</p>
31 <p>Weak·references·to·this·<code>UniqueRc</code>·can·be·created·with·<a·href="struct.UniqueRc.html#method.downgrade"·title="associated·function·alloc::rc::UniqueRc::downgrade"><code>UniqueRc::downgrade</code></a>.·Upgrading31 <p>Weak·references·to·this·<code>UniqueRc</code>·can·be·created·with·<a·href="struct.UniqueRc.html#method.downgrade"·title="associated·function·alloc::rc::UniqueRc::downgrade"><code>UniqueRc::downgrade</code></a>.·Upgrading
32 these·weak·references·will·fail·before·the·<code>UniqueRc</code>·has·been·converted·into·an·<a·href="struct.Rc.html"·title="struct·alloc::rc::Rc"><code>Rc</code></a>.32 these·weak·references·will·fail·before·the·<code>UniqueRc</code>·has·been·converted·into·an·<a·href="struct.Rc.html"·title="struct·alloc::rc::Rc"><code>Rc</code></a>.
33 After·converting·the·<code>UniqueRc</code>·into·an·<a·href="struct.Rc.html"·title="struct·alloc::rc::Rc"><code>Rc</code></a>,·any·weak·references·created·beforehand·will33 After·converting·the·<code>UniqueRc</code>·into·an·<a·href="struct.Rc.html"·title="struct·alloc::rc::Rc"><code>Rc</code></a>,·any·weak·references·created·beforehand·will
34 point·to·the·new·<a·href="struct.Rc.html"·title="struct·alloc::rc::Rc"><code>Rc</code></a>.</p>34 point·to·the·new·<a·href="struct.Rc.html"·title="struct·alloc::rc::Rc"><code>Rc</code></a>.</p>
35 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-UniqueRc%3CT,+A%3E"·class="impl"><a·class="src·rightside"·href="../../src/alloc/rc.rs.html#3718-3740">Source</a><a·href="#impl-UniqueRc%3CT,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·A:·<a·class="trait"·href="../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>&gt;·<a·class="struct"·href="struct.UniqueRc.html"·title="struct·alloc::rc::UniqueRc">UniqueRc</a>&lt;T,·A&gt;</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.new_in"·class="method"><a·class="src·rightside"·href="../../src/alloc/rc.rs.html#3727-3739">Source</a><h4·class="code-header">pub·fn·<a·href="#method.new_in"·class="fn">new_in</a>(value:·T,·alloc:·A)·-&gt;·Self</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>unique_rc_arc</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/112566">#112566</a>)</span></div></span></summary><div·class="docblock"><p>Creates·a·new·<code>UniqueRc</code>·in·the·provided·allocator.</p>35 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-UniqueRc%3CT,+A%3E"·class="impl"><a·class="src·rightside"·href="../../src/alloc/rc.rs.html#3718-3740">Source</a><a·href="#impl-UniqueRc%3CT,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·A:·<a·class="trait"·href="../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>&gt;·<a·class="struct"·href="struct.UniqueRc.html"·title="struct·alloc::rc::UniqueRc">UniqueRc</a>&lt;T,·A&gt;</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.new_in"·class="method"><a·class="src·rightside"·href="../../src/alloc/rc.rs.html#3727-3739">Source</a><h4·class="code-header">pub·fn·<a·href="#method.new_in"·class="fn">new_in</a>(value:·T,·alloc:·A)·-&gt;·Self</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>unique_rc_arc</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/112566">#112566</a>)</span></div></span></summary><div·class="docblock"><p>Creates·a·new·<code>UniqueRc</code>·in·the·provided·allocator.</p>
36 <p>Weak·references·to·this·<code>UniqueRc</code>·can·be·created·with·<a·href="struct.UniqueRc.html#method.downgrade"·title="associated·function·alloc::rc::UniqueRc::downgrade"><code>UniqueRc::downgrade</code></a>.·Upgrading36 <p>Weak·references·to·this·<code>UniqueRc</code>·can·be·created·with·<a·href="struct.UniqueRc.html#method.downgrade"·title="associated·function·alloc::rc::UniqueRc::downgrade"><code>UniqueRc::downgrade</code></a>.·Upgrading
37 these·weak·references·will·fail·before·the·<code>UniqueRc</code>·has·been·converted·into·an·<a·href="struct.Rc.html"·title="struct·alloc::rc::Rc"><code>Rc</code></a>.37 these·weak·references·will·fail·before·the·<code>UniqueRc</code>·has·been·converted·into·an·<a·href="struct.Rc.html"·title="struct·alloc::rc::Rc"><code>Rc</code></a>.
38 After·converting·the·<code>UniqueRc</code>·into·an·<a·href="struct.Rc.html"·title="struct·alloc::rc::Rc"><code>Rc</code></a>,·any·weak·references·created·beforehand·will38 After·converting·the·<code>UniqueRc</code>·into·an·<a·href="struct.Rc.html"·title="struct·alloc::rc::Rc"><code>Rc</code></a>,·any·weak·references·created·beforehand·will
39 point·to·the·new·<a·href="struct.Rc.html"·title="struct·alloc::rc::Rc"><code>Rc</code></a>.</p>39 point·to·the·new·<a·href="struct.Rc.html"·title="struct·alloc::rc::Rc"><code>Rc</code></a>.</p>
40 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-UniqueRc%3CT,+A%3E-1"·class="impl"><a·class="src·rightside"·href="../../src/alloc/rc.rs.html#3742-3766">Source</a><a·href="#impl-UniqueRc%3CT,+A%3E-1"·class="anchor">§</a><h3·class="code-header">impl&lt;T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,·A:·<a·class="trait"·href="../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>&gt;·<a·class="struct"·href="struct.UniqueRc.html"·title="struct·alloc::rc::UniqueRc">UniqueRc</a>&lt;T,·A&gt;</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into_rc"·class="method"><a·class="src·rightside"·href="../../src/alloc/rc.rs.html#3751-3765">Source</a><h4·class="code-header">pub·fn·<a·href="#method.into_rc"·class="fn">into_rc</a>(this:·Self)·-&gt;·<a·class="struct"·href="struct.Rc.html"·title="struct·alloc::rc::Rc">Rc</a>&lt;T,·A&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>unique_rc_arc</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/112566">#112566</a>)</span></div></span></summary><div·class="docblock"><p>Converts·the·<code>UniqueRc</code>·into·a·regular·<a·href="struct.Rc.html"·title="struct·alloc::rc::Rc"><code>Rc</code></a>.</p>40 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-UniqueRc%3CT,+A%3E-1"·class="impl"><a·class="src·rightside"·href="../../src/alloc/rc.rs.html#3742-3766">Source</a><a·href="#impl-UniqueRc%3CT,+A%3E-1"·class="anchor">§</a><h3·class="code-header">impl&lt;T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,·A:·<a·class="trait"·href="../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>&gt;·<a·class="struct"·href="struct.UniqueRc.html"·title="struct·alloc::rc::UniqueRc">UniqueRc</a>&lt;T,·A&gt;</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into_rc"·class="method"><a·class="src·rightside"·href="../../src/alloc/rc.rs.html#3751-3765">Source</a><h4·class="code-header">pub·fn·<a·href="#method.into_rc"·class="fn">into_rc</a>(this:·Self)·-&gt;·<a·class="struct"·href="struct.Rc.html"·title="struct·alloc::rc::Rc">Rc</a>&lt;T,·A&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>unique_rc_arc</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/112566">#112566</a>)</span></div></span></summary><div·class="docblock"><p>Converts·the·<code>UniqueRc</code>·into·a·regular·<a·href="struct.Rc.html"·title="struct·alloc::rc::Rc"><code>Rc</code></a>.</p>
41 <p>This·consumes·the·<code>UniqueRc</code>·and·returns·a·regular·<a·href="struct.Rc.html"·title="struct·alloc::rc::Rc"><code>Rc</code></a>·that·contains·the·<code>value</code>·that41 <p>This·consumes·the·<code>UniqueRc</code>·and·returns·a·regular·<a·href="struct.Rc.html"·title="struct·alloc::rc::Rc"><code>Rc</code></a>·that·contains·the·<code>value</code>·that
42 is·passed·to·<code>into_rc</code>.</p>42 is·passed·to·<code>into_rc</code>.</p>
43 <p>Any·weak·references·created·before·this·method·is·called·can·now·be·upgraded·to·strong43 <p>Any·weak·references·created·before·this·method·is·called·can·now·be·upgraded·to·strong
44 references.</p>44 references.</p>
45 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-UniqueRc%3CT,+A%3E-2"·class="impl"><a·class="src·rightside"·href="../../src/alloc/rc.rs.html#3768-3782">Source</a><a·href="#impl-UniqueRc%3CT,+A%3E-2"·class="anchor">§</a><h3·class="code-header">impl&lt;T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,·A:·<a·class="trait"·href="../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·+·<a·class="trait"·href="https://doc.ru[·...·truncated·by·diffoscope;·len:·18,·SHA:·29ea1e0ca7ba92241a0244969365722b32bad48b66d66e57dd3ff89930e9d243·...·]/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>&gt;·<a·class="struct"·href="struct.UniqueRc.html"·title="struct·alloc::rc::UniqueRc">UniqueRc</a>&lt;T,·A&gt;</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.downgrade"·class="method"><a·class="src·rightside"·href="../../src/alloc/rc.rs.html#3774-3781">Source</a><h4·class="code-header">pub·fn·<a·href="#method.downgrade"·class="fn">downgrade</a>(this:·&amp;Self)·-&gt;·<a·class="struct"·href="struct.Weak.html"·title="struct·alloc::rc::Weak">Weak</a>&lt;T,·A&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>unique_rc_arc</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/112566">#112566</a>)</span></div></span></summary><div·class="docblock"><p>Creates·a·new·weak·reference·to·the·<code>UniqueRc</code>.</p>45 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-UniqueRc%3CT,+A%3E-2"·class="impl"><a·class="src·rightside"·href="../../src/alloc/rc.rs.html#3768-3782">Source</a><a·href="#impl-UniqueRc%3CT,+A%3E-2"·class="anchor">§</a><h3·class="code-header">impl&lt;T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,·A:·<a·class="trait"·href="../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·+·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>&gt;·<a·class="struct"·href="struct.UniqueRc.html"·title="struct·alloc::rc::UniqueRc">UniqueRc</a>&lt;T,·A&gt;</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.downgrade"·class="method"><a·class="src·rightside"·href="../../src/alloc/rc.rs.html#3774-3781">Source</a><h4·class="code-header">pub·fn·<a·href="#method.downgrade"·class="fn">downgrade</a>(this:·&amp;Self)·-&gt;·<a·class="struct"·href="struct.Weak.html"·title="struct·alloc::rc::Weak">Weak</a>&lt;T,·A&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>unique_rc_arc</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/112566">#112566</a>)</span></div></span></summary><div·class="docblock"><p>Creates·a·new·weak·reference·to·the·<code>UniqueRc</code>.</p>
46 <p>Attempting·to·upgrade·this·weak·reference·will·fail·before·the·<code>UniqueRc</code>·has·been·converted46 <p>Attempting·to·upgrade·this·weak·reference·will·fail·before·the·<code>UniqueRc</code>·has·been·converted
47 to·a·<a·href="struct.Rc.html"·title="struct·alloc::rc::Rc"><code>Rc</code></a>·using·<a·href="struct.UniqueRc.html#method.into_rc"·title="associated·function·alloc::rc::UniqueRc::into_rc"><code>UniqueRc::into_rc</code></a>.</p>47 to·a·<a·href="struct.Rc.html"·title="struct·alloc::rc::Rc"><code>Rc</code></a>·using·<a·href="struct.UniqueRc.html#method.into_rc"·title="associated·function·alloc::rc::UniqueRc::into_rc"><code>UniqueRc::into_rc</code></a>.</p>
48 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-UniqueRc%3CT,+A%3E"·class="impl"><a·class="src·rightside"·href="../../src/alloc/rc.rs.html#3687">Source</a><a·href="#impl-Debug-for-UniqueRc%3CT,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T:·<a·class="trait"·href="../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,·A:·<a·class="trait"·href="../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·+·<a·class="trait"·href="../alloc/trait.Allocator.html"[·...·truncated·by·diffoscope;·len:·8165,·SHA:·2006447fc487e5968b9ca78e27a5b3fed38b1d7ee015ed5e48f67e42df4da582·...·]/core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="struct"·href="struct.UniqueRc.html"·title="struct·alloc::rc::UniqueRc">UniqueRc</a>&lt;T,·A&gt;<div·class="where">where48 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-UniqueRc%3CT,+A%3E"·class="impl"><a·class="src·rightside"·href="../../src/alloc/rc.rs.html#3687">Source</a><a·href="#impl-Debug-for-UniqueRc%3CT,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T:·<a·class="trait"·href="../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·+·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,·A:·<a·class="trait"·href="../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·+·<a·class="trait"·href="../alloc/trait.Allocator.html"·title="trait·alloc::alloc:[·...·truncated·by·diffoscope;·len:·7598,·SHA:·7f5c8ac0c3c71cf87a17447b24ddd0d8b80f762a3de382fea6abc2978dd37d0e·...·]/core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="struct"·href="struct.UniqueRc.html"·title="struct·alloc::rc::UniqueRc">UniqueRc</a>&lt;T,·A&gt;<div·class="where">where
49 ····A:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>,49 ····A:·<a·class="trait"·href="../../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>,
50 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section><section·id="impl-RefUnwindSafe-for-UniqueRc%3CT,+A%3E"·class="impl"><a·href="#impl-RefUnwindSafe-for-UniqueRc%3CT,+A%3E"·class=[·...·truncated·by·diffoscope;·len:·1719,·SHA:·8413075fe13ae0e1b6b411a6633bd841868e0612904408facb3a32f6c97d82ed·...·]/core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="struct"·href="struct.UniqueRc.html"·title="struct·alloc::rc::UniqueRc">UniqueRc</a>&lt;T,·A&gt;<div·class="where">where50 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section><section·id="impl-RefUnwindSafe-for-UniqueRc%3CT,+A%3E"·class="impl"><a·href="#impl-RefUnwindSafe-for-UniqueRc%3CT,+A%3E"·class="anchor">§</a><h3·class="co[·...·truncated·by·diffoscope;·len:·1584,·SHA:·4d7913dfee92ab54ae5a966c07775cc40e89b6fa533dc2ef132d2149a92c29e3·...·]/core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="struct"·href="struct.UniqueRc.html"·title="struct·alloc::rc::UniqueRc">UniqueRc</a>&lt;T,·A&gt;<div·class="where">where
51 ····A:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>,51 ····A:·<a·class="trait"·href="../../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>,
52 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></sec[·...·truncated·by·diffoscope;·len:·1095,·SHA:·20103a04b6e2769f46f75a72947bf467a5b06e1c0b63cf6d81f0f1e5eec46e04·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where52 ····T:·<a·class="trait"·href="../../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·+·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section><section·id="impl-UnwindSafe-for-UniqueRc%3CT,+A%[·...·truncated·by·diffoscope;·len:·960,·SHA:·8b902711777ee662ed4d1097d5ef7b3bd79b520f276773f581884b172b52ffdc·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where
53 ····T:·'static·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method[·...·truncated·by·diffoscope;·len:·834,·SHA:·47dfc2aa0101a4103e2a94c1f971c559790d87a62d58631fd2bfed98e6616a34·...·]/src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where53 ····T:·'static·+·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·[·...·truncated·by·diffoscope;·len:·672,·SHA:·ace7a059971745d739c5abd9821e5d1d485cc233fd42150ceb251bdea1ce6bf7·...·]/src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where
54 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·[·...·truncated·by·diffoscope;·len:·737,·SHA:·9e65370662e77fc5c56c98c66a5dfda3c1d1244574dc8806ab91a8967514da78·...·]/src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.BorrowMut.html"·title="trait·alloc::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where54 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·r[·...·truncated·by·diffoscope;·len:·629,·SHA:·8e6f5d2e4a2830729c5d495459113ca6f54993696d7dc71c1f46e5691f5108ed·...·]/src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.BorrowMut.html"·title="trait·alloc::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where
55 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="met[·...·truncated·by·diffoscope;·len:·1416,·SHA:·6a91c7d774262ffceb6c994b163406722441142120e090bf0659f9a11b6dd348·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>55 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="s[·...·truncated·by·diffoscope;·len:·1227,·SHA:·50e7ebda2b6919040565b80662e590c224b03e887e0c5eeee46fe8a8f7ae0e8c·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>
56 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where56 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where
57 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="m[·...·truncated·by·diffoscope;·len:·237,·SHA:·98603c35860102b3af9b5cf27aeabf39e3c03236551986a6ec030817f108d919·...·]/core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>57 ····U:·<a·class="trait"·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class=[·...·truncated·by·diffoscope;·len:·156,·SHA:·79561c49c77b14346871935198fc061d00c9e84705db975b0451f5fb4f6af9a0·...·]/core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>
58 <p>That·is,·this·conversion·is·whatever·the·implementation·of58 <p>That·is,·this·conversion·is·whatever·the·implementation·of
59 <code><a·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>59 <code><a·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>
60 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Receiver-for-P"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/ops/deref.rs.html#374-376">Source</a><a·href="#impl-Receiver-for-P"·class="anchor">§</a><h3·class="code-header">impl&lt;P,·T&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/deref/trait.Receiver.html"·title="trait·core::ops::deref::Receiver">Receiver</a>·for·P<div·class="where">where60 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Receiver-for-P"·class="impl"><a·class="src·rightside"·href="../../src/core/ops/deref.rs.html#374-376">Source</a><a·href="#impl-Receiver-for-P"·class="anchor">§</a><h3·class="code-header">impl&lt;P,·T&gt;·<a·class="trait"·href="../../core/ops/deref/trait.Receiver.html"·title="trait·core::ops::deref::Receiver">Receiver</a>·for·P<div·class="where">where
61 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/deref/trait.Deref.html"·title="trait·core::ops::deref::Deref">Deref</a>&lt;Target·=·T&gt;·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,61 ····P:·<a·class="trait"·href="../../core/ops/deref/trait.Deref.html"·title="trait·core::ops::deref::Deref">Deref</a>&lt;Target·=·T&gt;·+·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
62 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Target-1"·class="associatedt[·...·truncated·by·diffoscope;·len:·1097,·SHA:·7113bbe0f4d1fade01a8492467919bbae5790755055ca923079bde04717934b1·...·]/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where62 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Target-1"·class="associatedtype·trait-impl"><a·class="s[·...·truncated·by·diffoscope;·len:·962,·SHA:·bc2f8252732c340f3d8855b90ccca1e2910bb7aa5b2aad866868b7e90b82c943·...·]/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where
63 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="asso[·...·truncated·by·diffoscope;·len:·1973,·SHA:·db4b8407e8e20581ad139aef25a6221a11da0f5f18d6aa35aa33eb843f4e1b9f·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where63 ····U:·<a·class="trait"·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·c[·...·truncated·by·diffoscope;·len:·1676,·SHA:·4c73b68f4fb433b5f24fbcd660156381e5dd9f46425d075b558b9b6ca0705f88·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where
64 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·clas[·...·truncated·by·diffoscope;·len:·1578,·SHA:·998d5af10fd889567cd999d1306bfd16c91134d2238a3c172f1e7fa8ed138c18·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>64 ····U:·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-imp[·...·truncated·by·diffoscope;·len:·1308,·SHA:·6741e462a0e1b36010204263b7580305663bb27f362987d14303068592f9f358·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>
111 KB
./usr/share/doc/rust-doc/html/alloc/rc/struct.Weak.html
    
Offset 1, 39 lines modifiedOffset 1, 39 lines modified
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="`Weak`·is·a·version·of·`Rc`·that·holds·a·non-owning·reference·to·the·managed·allocation."><title>Weak·in·alloc::rc·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»    2025-01-07)» (built»   from»       a»      source»tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Weak</a></h2><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.allocator"·title="allocator">allocator</a></li><li><a·href="#method.as_ptr"·title="as_ptr">as_ptr</a></li><li><a·href="#method.from_raw"·title="from_raw">from_raw</a></li><li><a·href="#method.from_raw_in"·title="from_raw_in">from_raw_in</a></li><li><a·href="#method.into_raw"·title="into_raw">into_raw</a></li><li><a·href="#method.into_raw_with_allocator"·title="into_raw_with_allocator">into_raw_with_allocator</a></li><li><a·href="#method.new"·title="new">new</a></li><li><a·href="#method.new_in"·title="new_in">new_in</a></li><li><a·href="#method.ptr_eq"·title="ptr_eq">ptr_eq</a></li><li><a·href="#method.strong_count"·title="strong_count">strong_count</a></li><li><a·href="#method.upgrade"·title="upgrade">upgrade</a></li><li><a·href="#method.weak_count"·title="weak_count">weak_count</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Send-for-Weak%3CT,+A%3E"·title="!Send">!Send</a></li><li><a·href="#impl-Sync-for-Weak%3CT,+A%3E"·title="!Sync">!Sync</a></li><li><a·href="#impl-Clone-for-Weak%3CT,+A%3E"·title="Clone">Clone</a></li><li><a·href="#impl-CoerceUnsized%3CWeak%3CU,+A%3E%3E-for-Weak%3CT,+A%3E"·title="CoerceUnsized&#60;Weak&#60;U,·A&#62;&#62;">CoerceUnsized&#60;Weak&#60;U,·A&#62;&#62;</a></li><li><a·href="#impl-Debug-for-Weak%3CT,+A%3E"·title="Debug">Debug</a></li><li><a·href="#impl-Default-for-Weak%3CT%3E"·title="Default">Default</a></li><li><a·href="#impl-DispatchFromDyn%3CWeak%3CU%3E%3E-for-Weak%3CT%3E"·title="DispatchFromDyn&#60;Weak&#60;U&#62;&#62;">DispatchFromDyn&#60;Weak&#60;U&#62;&#62;</a></li><li><a·href="#impl-Drop-for-Weak%3CT,+A%3E"·title="Drop">Drop</a></li><li><a·href="#impl-PinCoerceUnsized-for-Weak%3CT,+A%3E"·title="PinCoerceUnsized">PinCoerceUnsized</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-RefUnwindSafe-for-Weak%3CT,+A%3E"·title="!RefUnwindSafe">!RefUnwindSafe</a></li><li><a·href="#impl-UnwindSafe-for-Weak%3CT,+A%3E"·title="!UnwindSafe">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-Weak%3CT,+A%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-Unpin-for-Weak%3CT,+A%3E"·title="Unpin">Unpin</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>rc</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">alloc</a>::<wbr><a·href="index.html">rc</a></span><h1>Struct·<span·class="struct">Weak</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../src/alloc/rc.rs.html#2958-2970">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·Weak&lt;T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,·A:·<a·class="trait"·href="../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·=·<a·class="struct"·href="../alloc/struct.Global.html"·title="struct·alloc::alloc::Global">Global</a>&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p><code>Weak</code>·is·a·version·of·<a·href="struct.Rc.html"·title="struct·alloc::rc::Rc"><code>Rc</code></a>·that·holds·a·non-owning·reference·to·the1 <!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="`Weak`·is·a·version·of·`Rc`·that·holds·a·non-owning·reference·to·the·managed·allocation."><title>Weak·in·alloc::rc·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»    2025-01-07)» (built»   from»       a»      source»tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Weak</a></h2><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.allocator"·title="allocator">allocator</a></li><li><a·href="#method.as_ptr"·title="as_ptr">as_ptr</a></li><li><a·href="#method.from_raw"·title="from_raw">from_raw</a></li><li><a·href="#method.from_raw_in"·title="from_raw_in">from_raw_in</a></li><li><a·href="#method.into_raw"·title="into_raw">into_raw</a></li><li><a·href="#method.into_raw_with_allocator"·title="into_raw_with_allocator">into_raw_with_allocator</a></li><li><a·href="#method.new"·title="new">new</a></li><li><a·href="#method.new_in"·title="new_in">new_in</a></li><li><a·href="#method.ptr_eq"·title="ptr_eq">ptr_eq</a></li><li><a·href="#method.strong_count"·title="strong_count">strong_count</a></li><li><a·href="#method.upgrade"·title="upgrade">upgrade</a></li><li><a·href="#method.weak_count"·title="weak_count">weak_count</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Send-for-Weak%3CT,+A%3E"·title="!Send">!Send</a></li><li><a·href="#impl-Sync-for-Weak%3CT,+A%3E"·title="!Sync">!Sync</a></li><li><a·href="#impl-Clone-for-Weak%3CT,+A%3E"·title="Clone">Clone</a></li><li><a·href="#impl-CoerceUnsized%3CWeak%3CU,+A%3E%3E-for-Weak%3CT,+A%3E"·title="CoerceUnsized&#60;Weak&#60;U,·A&#62;&#62;">CoerceUnsized&#60;Weak&#60;U,·A&#62;&#62;</a></li><li><a·href="#impl-Debug-for-Weak%3CT,+A%3E"·title="Debug">Debug</a></li><li><a·href="#impl-Default-for-Weak%3CT%3E"·title="Default">Default</a></li><li><a·href="#impl-DispatchFromDyn%3CWeak%3CU%3E%3E-for-Weak%3CT%3E"·title="DispatchFromDyn&#60;Weak&#60;U&#62;&#62;">DispatchFromDyn&#60;Weak&#60;U&#62;&#62;</a></li><li><a·href="#impl-Drop-for-Weak%3CT,+A%3E"·title="Drop">Drop</a></li><li><a·href="#impl-PinCoerceUnsized-for-Weak%3CT,+A%3E"·title="PinCoerceUnsized">PinCoerceUnsized</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-RefUnwindSafe-for-Weak%3CT,+A%3E"·title="!RefUnwindSafe">!RefUnwindSafe</a></li><li><a·href="#impl-UnwindSafe-for-Weak%3CT,+A%3E"·title="!UnwindSafe">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-Weak%3CT,+A%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-Unpin-for-Weak%3CT,+A%3E"·title="Unpin">Unpin</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>rc</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">alloc</a>::<wbr><a·href="index.html">rc</a></span><h1>Struct·<span·class="struct">Weak</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../src/alloc/rc.rs.html#2958-2970">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·Weak&lt;T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,·A:·<a·class="trait"·href="../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·=·<a·class="struct"·href="../alloc/struct.Global.html"·title="struct·alloc::alloc::Global">Global</a>&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p><code>Weak</code>·is·a·version·of·<a·href="struct.Rc.html"·title="struct·alloc::rc::Rc"><code>Rc</code></a>·that·holds·a·non-owning·reference·to·the
2 managed·allocation.</p>2 managed·allocation.</p>
3 <p>The·allocation·is·accessed·by·calling·<a·href="struct.Weak.html#method.upgrade"·title="method·alloc::rc::Weak::upgrade"><code>upgrade</code></a>·on·the·<code>Weak</code>3 <p>The·allocation·is·accessed·by·calling·<a·href="struct.Weak.html#method.upgrade"·title="method·alloc::rc::Weak::upgrade"><code>upgrade</code></a>·on·the·<code>Weak</code>
4 pointer,·which·returns·an·<code><a·href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·href="struct.Rc.html"·title="struct·alloc::rc::Rc">Rc</a>&lt;T&gt;&gt;</code>.</p>4 pointer,·which·returns·an·<code><a·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·href="struct.Rc.html"·title="struct·alloc::rc::Rc">Rc</a>&lt;T&gt;&gt;</code>.</p>
5 <p>Since·a·<code>Weak</code>·reference·does·not·count·towards·ownership,·it·will·not5 <p>Since·a·<code>Weak</code>·reference·does·not·count·towards·ownership,·it·will·not
6 prevent·the·value·stored·in·the·allocation·from·being·dropped,·and·<code>Weak</code>·itself·makes·no6 prevent·the·value·stored·in·the·allocation·from·being·dropped,·and·<code>Weak</code>·itself·makes·no
7 guarantees·about·the·value·still·being·present.·Thus·it·may·return·<a·href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html#variant.None"·title="variant·core::option::Option::None"><code>None</code></a>7 guarantees·about·the·value·still·being·present.·Thus·it·may·return·<a·href="../../core/option/enum.Option.html#variant.None"·title="variant·core::option::Option::None"><code>None</code></a>
8 when·<a·href="struct.Weak.html#method.upgrade"·title="method·alloc::rc::Weak::upgrade"><code>upgrade</code></a>d.·Note·however·that·a·<code>Weak</code>·reference·<em>does</em>·prevent·the·allocation8 when·<a·href="struct.Weak.html#method.upgrade"·title="method·alloc::rc::Weak::upgrade"><code>upgrade</code></a>d.·Note·however·that·a·<code>Weak</code>·reference·<em>does</em>·prevent·the·allocation
9 itself·(the·backing·store)·from·being·deallocated.</p>9 itself·(the·backing·store)·from·being·deallocated.</p>
10 <p>A·<code>Weak</code>·pointer·is·useful·for·keeping·a·temporary·reference·to·the·allocation10 <p>A·<code>Weak</code>·pointer·is·useful·for·keeping·a·temporary·reference·to·the·allocation
11 managed·by·<a·href="struct.Rc.html"·title="struct·alloc::rc::Rc"><code>Rc</code></a>·without·preventing·its·inner·value·from·being·dropped.·It·is·also·used·to11 managed·by·<a·href="struct.Rc.html"·title="struct·alloc::rc::Rc"><code>Rc</code></a>·without·preventing·its·inner·value·from·being·dropped.·It·is·also·used·to
12 prevent·circular·references·between·<a·href="struct.Rc.html"·title="struct·alloc::rc::Rc"><code>Rc</code></a>·pointers,·since·mutual·owning·references12 prevent·circular·references·between·<a·href="struct.Rc.html"·title="struct·alloc::rc::Rc"><code>Rc</code></a>·pointers,·since·mutual·owning·references
13 would·never·allow·either·<a·href="struct.Rc.html"·title="struct·alloc::rc::Rc"><code>Rc</code></a>·to·be·dropped.·For·example,·a·tree·could13 would·never·allow·either·<a·href="struct.Rc.html"·title="struct·alloc::rc::Rc"><code>Rc</code></a>·to·be·dropped.·For·example,·a·tree·could
14 have·strong·<a·href="struct.Rc.html"·title="struct·alloc::rc::Rc"><code>Rc</code></a>·pointers·from·parent·nodes·to·children,·and·<code>Weak</code>14 have·strong·<a·href="struct.Rc.html"·title="struct·alloc::rc::Rc"><code>Rc</code></a>·pointers·from·parent·nodes·to·children,·and·<code>Weak</code>
15 pointers·from·children·back·to·their·parents.</p>15 pointers·from·children·back·to·their·parents.</p>
16 <p>The·typical·way·to·obtain·a·<code>Weak</code>·pointer·is·to·call·<a·href="struct.Rc.html#method.downgrade"·title="associated·function·alloc::rc::Rc::downgrade"><code>Rc::downgrade</code></a>.</p>16 <p>The·typical·way·to·obtain·a·<code>Weak</code>·pointer·is·to·call·<a·href="struct.Rc.html#method.downgrade"·title="associated·function·alloc::rc::Rc::downgrade"><code>Rc::downgrade</code></a>.</p>
17 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Weak%3CT%3E"·class="impl"><a·class="src·rightside"·href="../../src/alloc/rc.rs.html#2983-3009">Source</a><a·href="#impl-Weak%3CT%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="struct"·href="struct.Weak.html"·title="struct·alloc::rc::Weak">Weak</a>&lt;T&gt;</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.new"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.10.0,·const·since·1.73.0">1.10.0·(const:·1.73.0)</span>···<a·class="src"·href="../../src/alloc/rc.rs.html#3001-3008">Source</a></span><h4·class="code-header">pub·const·fn·<a·href="#method.new"·class="fn">new</a>()·-&gt;·<a·class="struct"·href="struct.Weak.html"·title="struct·alloc::rc::Weak">Weak</a>&lt;T&gt;</h4></section></summary><div·class="docblock"><p>Constructs·a·new·<code>Weak&lt;T&gt;</code>,·without·allocating·any·memory.17 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Weak%3CT%3E"·class="impl"><a·class="src·rightside"·href="../../src/alloc/rc.rs.html#2983-3009">Source</a><a·href="#impl-Weak%3CT%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="struct"·href="struct.Weak.html"·title="struct·alloc::rc::Weak">Weak</a>&lt;T&gt;</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.new"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.10.0,·const·since·1.73.0">1.10.0·(const:·1.73.0)</span>···<a·class="src"·href="../../src/alloc/rc.rs.html#3001-3008">Source</a></span><h4·class="code-header">pub·const·fn·<a·href="#method.new"·class="fn">new</a>()·-&gt;·<a·class="struct"·href="struct.Weak.html"·title="struct·alloc::rc::Weak">Weak</a>&lt;T&gt;</h4></section></summary><div·class="docblock"><p>Constructs·a·new·<code>Weak&lt;T&gt;</code>,·without·allocating·any·memory.
18 Calling·<a·href="struct.Weak.html#method.upgrade"·title="method·alloc::rc::Weak::upgrade"><code>upgrade</code></a>·on·the·return·value·always·gives·<a·href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html#variant.None"·title="variant·core::option::Option::None"><code>None</code></a>.</p>18 Calling·<a·href="struct.Weak.html#method.upgrade"·title="method·alloc::rc::Weak::upgrade"><code>upgrade</code></a>·on·the·return·value·always·gives·<a·href="../../core/option/enum.Option.html#variant.None"·title="variant·core::option::Option::None"><code>None</code></a>.</p>
19 <h5·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h5>19 <h5·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h5>
20 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::rc::Weak;20 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::rc::Weak;
  
21 <span·class="kw">let·</span>empty:·Weak&lt;i64&gt;·=·Weak::new();21 <span·class="kw">let·</span>empty:·Weak&lt;i64&gt;·=·Weak::new();
22 <span·class="macro">assert!</span>(empty.upgrade().is_none());</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::rc::Weak;%0A++++%0A++++let+empty:+Weak%3Ci64%3E+=+Weak::new();%0A++++assert!(empty.upgrade().is_none());%0A%7D&amp;edition=2021"></a></div>22 <span·class="macro">assert!</span>(empty.upgrade().is_none());</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::rc::Weak;%0A++++%0A++++let+empty:+Weak%3Ci64%3E+=+Weak::new();%0A++++assert!(empty.upgrade().is_none());%0A%7D&amp;edition=2021"></a></div>
23 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Weak%3CT,+A%3E"·class="impl"><a·class="src·rightside"·href="../../src/alloc/rc.rs.html#3011-3036">Source</a><a·href="#impl-Weak%3CT,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·A:·<a·class="trait"·href="../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>&gt;·<a·class="struct"·href="struct.Weak.html"·title="struct·alloc::rc::Weak">Weak</a>&lt;T,·A&gt;</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.new_in"·class="method"><a·class="src·rightside"·href="../../src/alloc/rc.rs.html#3028-3035">Source</a><h4·class="code-header">pub·fn·<a·href="#method.new_in"·class="fn">new_in</a>(alloc:·A)·-&gt;·<a·class="struct"·href="struct.Weak.html"·title="struct·alloc::rc::Weak">Weak</a>&lt;T,·A&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>allocator_api</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/32838">#32838</a>)</span></div></span></summary><div·class="docblock"><p>Constructs·a·new·<code>Weak&lt;T&gt;</code>,·without·allocating·any·memory,·technically·in·the·provided23 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Weak%3CT,+A%3E"·class="impl"><a·class="src·rightside"·href="../../src/alloc/rc.rs.html#3011-3036">Source</a><a·href="#impl-Weak%3CT,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·A:·<a·class="trait"·href="../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>&gt;·<a·class="struct"·href="struct.Weak.html"·title="struct·alloc::rc::Weak">Weak</a>&lt;T,·A&gt;</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.new_in"·class="method"><a·class="src·rightside"·href="../../src/alloc/rc.rs.html#3028-3035">Source</a><h4·class="code-header">pub·fn·<a·href="#method.new_in"·class="fn">new_in</a>(alloc:·A)·-&gt;·<a·class="struct"·href="struct.Weak.html"·title="struct·alloc::rc::Weak">Weak</a>&lt;T,·A&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>allocator_api</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/32838">#32838</a>)</span></div></span></summary><div·class="docblock"><p>Constructs·a·new·<code>Weak&lt;T&gt;</code>,·without·allocating·any·memory,·technically·in·the·provided
24 allocator.24 allocator.
25 Calling·<a·href="struct.Weak.html#method.upgrade"·title="method·alloc::rc::Weak::upgrade"><code>upgrade</code></a>·on·the·return·value·always·gives·<a·href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html#variant.None"·title="variant·core::option::Option::None"><code>None</code></a>.</p>25 Calling·<a·href="struct.Weak.html#method.upgrade"·title="method·alloc::rc::Weak::upgrade"><code>upgrade</code></a>·on·the·return·value·always·gives·<a·href="../../core/option/enum.Option.html#variant.None"·title="variant·core::option::Option::None"><code>None</code></a>.</p>
26 <h5·id="examples-1"><a·class="doc-anchor"·href="#examples-1">§</a>Examples</h5>26 <h5·id="examples-1"><a·class="doc-anchor"·href="#examples-1">§</a>Examples</h5>
27 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::rc::Weak;27 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::rc::Weak;
  
28 <span·class="kw">let·</span>empty:·Weak&lt;i64&gt;·=·Weak::new();28 <span·class="kw">let·</span>empty:·Weak&lt;i64&gt;·=·Weak::new();
29 <span·class="macro">assert!</span>(empty.upgrade().is_none());</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::rc::Weak;%0A++++%0A++++let+empty:+Weak%3Ci64%3E+=+Weak::new();%0A++++assert!(empty.upgrade().is_none());%0A%7D&amp;edition=2021"></a></div>29 <span·class="macro">assert!</span>(empty.upgrade().is_none());</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::rc::Weak;%0A++++%0A++++let+empty:+Weak%3Ci64%3E+=+Weak::new();%0A++++assert!(empty.upgrade().is_none());%0A%7D&amp;edition=2021"></a></div>
30 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Weak%3CT%3E-1"·class="impl"><a·class="src·rightside"·href="../../src/alloc/rc.rs.html#3049-3097">Source</a><a·href="#impl-Weak%3CT%3E-1"·class="anchor">§</a><h3·class="code-header">impl&lt;T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>&gt;·<a·class="struct"·href="struct.Weak.html"·title="struct·alloc::rc::Weak">Weak</a>&lt;T&gt;</h3></section></summary><div·class="impl-items"><detai[·...·truncated·by·diffoscope;·len:·421,·SHA:·55c7dd4ab08778fc401830b54c1f8f154308cbbc95e229d27ed638dff185c2e6·...·]/core/primitive.pointer.html">*const·T</a>)·-&gt;·Self</h4></section></summary><div·class="docblock"><p>Converts·a·raw·pointer·previously·created·by·<a·href="struct.Weak.html#method.into_raw"·title="method·alloc::rc::Weak::into_raw"><code>into_raw</code></a>·back·into·<code>Weak&lt;T&gt;</code>.</p>30 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Weak%3CT%3E-1"·class="impl"><a·class="src·rightside"·href="../../src/alloc/rc.rs.html#3049-3097">Source</a><a·href="#impl-Weak%3CT%3E-1"·class="anchor">§</a><h3·class="code-header">impl&lt;T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>&gt;·<a·class="struct"·href="struct.Weak.html"·title="struct·alloc::rc::Weak">Weak</a>&lt;T&gt;</h3></section></summary><div·class="impl-items"><details·class="toggle·method-tog[·...·truncated·by·diffoscope;·len:·367,·SHA:·b4553240c94c8f86f327a4f40690fe7fb3d440bcb81fca42d7597b7487d7c90e·...·]/core/primitive.pointer.html">*const·T</a>)·-&gt;·Self</h4></section></summary><div·class="docblock"><p>Converts·a·raw·pointer·previously·created·by·<a·href="struct.Weak.html#method.into_raw"·title="method·alloc::rc::Weak::into_raw"><code>into_raw</code></a>·back·into·<code>Weak&lt;T&gt;</code>.</p>
31 <p>This·can·be·used·to·safely·get·a·strong·reference·(by·calling·<a·href="struct.Weak.html#method.upgrade"·title="method·alloc::rc::Weak::upgrade"><code>upgrade</code></a>31 <p>This·can·be·used·to·safely·get·a·strong·reference·(by·calling·<a·href="struct.Weak.html#method.upgrade"·title="method·alloc::rc::Weak::upgrade"><code>upgrade</code></a>
32 later)·or·to·deallocate·the·weak·count·by·dropping·the·<code>Weak&lt;T&gt;</code>.</p>32 later)·or·to·deallocate·the·weak·count·by·dropping·the·<code>Weak&lt;T&gt;</code>.</p>
33 <p>It·takes·ownership·of·one·weak·reference·(with·the·exception·of·pointers·created·by·<a·href="struct.Weak.html#method.new"·title="associated·function·alloc::rc::Weak::new"><code>new</code></a>,33 <p>It·takes·ownership·of·one·weak·reference·(with·the·exception·of·pointers·created·by·<a·href="struct.Weak.html#method.new"·title="associated·function·alloc::rc::Weak::new"><code>new</code></a>,
34 as·these·don’t·own·anything;·the·method·still·works·on·them).</p>34 as·these·don’t·own·anything;·the·method·still·works·on·them).</p>
35 <h5·id="safety"><a·class="doc-anchor"·href="#safety">§</a>Safety</h5>35 <h5·id="safety"><a·class="doc-anchor"·href="#safety">§</a>Safety</h5>
36 <p>The·pointer·must·have·originated·from·the·<a·href="struct.Weak.html#method.into_raw"·title="method·alloc::rc::Weak::into_raw"><code>into_raw</code></a>·and·must·still·own·its·potential36 <p>The·pointer·must·have·originated·from·the·<a·href="struct.Weak.html#method.into_raw"·title="method·alloc::rc::Weak::into_raw"><code>into_raw</code></a>·and·must·still·own·its·potential
37 weak·reference,·and·<code>ptr</code>·must·point·to·a·block·of·memory·allocated·by·the·global·allocator.</p>37 weak·reference,·and·<code>ptr</code>·must·point·to·a·block·of·memory·allocated·by·the·global·allocator.</p>
Offset 54, 18 lines modifiedOffset 54, 18 lines modified
54 <span·class="macro">assert_eq!</span>(<span·class="string">"hello"</span>,·<span·class="kw-2">&amp;*</span><span·class="kw">unsafe·</span>{·Weak::from_raw(raw_1)·}.upgrade().unwrap());54 <span·class="macro">assert_eq!</span>(<span·class="string">"hello"</span>,·<span·class="kw-2">&amp;*</span><span·class="kw">unsafe·</span>{·Weak::from_raw(raw_1)·}.upgrade().unwrap());
55 <span·class="macro">assert_eq!</span>(<span·class="number">1</span>,·Rc::weak_count(<span·class="kw-2">&amp;</span>strong));55 <span·class="macro">assert_eq!</span>(<span·class="number">1</span>,·Rc::weak_count(<span·class="kw-2">&amp;</span>strong));
  
56 drop(strong);56 drop(strong);
  
57 <span·class="comment">//·Decrement·the·last·weak·count.57 <span·class="comment">//·Decrement·the·last·weak·count.
58 </span><span·class="macro">assert!</span>(<span·class="kw">unsafe·</span>{·Weak::from_raw(raw_2)·}.upgrade().is_none());</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::rc::%7BRc,+Weak%7D;%0A++++%0A++++let+strong+=+Rc::new(%22hello%22.to_owned());%0A++++%0A++++let+raw_1+=+Rc::downgrade(%26strong).into_raw();%0A++++let+raw_2+=+Rc::downgrade(%26strong).into_raw();%0A++++%0A++++assert_eq!(2,+Rc::weak_count(%26strong));%0A++++%0A++++assert_eq!(%22hello%22,+%26*unsafe+%7B+Weak::from_raw(raw_1)+%7D.upgrade().unwrap());%0A++++assert_eq!(1,+Rc::weak_count(%26strong));%0A++++%0A++++drop(strong);%0A++++%0A++++//+Decrement+the+last+weak+count.%0A++++assert!(unsafe+%7B+Weak::from_raw(raw_2)+%7D.upgrade().is_none());%0A%7D&amp;edition=2021"></a></div>58 </span><span·class="macro">assert!</span>(<span·class="kw">unsafe·</span>{·Weak::from_raw(raw_2)·}.upgrade().is_none());</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::rc::%7BRc,+Weak%7D;%0A++++%0A++++let+strong+=+Rc::new(%22hello%22.to_owned());%0A++++%0A++++let+raw_1+=+Rc::downgrade(%26strong).into_raw();%0A++++let+raw_2+=+Rc::downgrade(%26strong).into_raw();%0A++++%0A++++assert_eq!(2,+Rc::weak_count(%26strong));%0A++++%0A++++assert_eq!(%22hello%22,+%26*unsafe+%7B+Weak::from_raw(raw_1)+%7D.upgrade().unwrap());%0A++++assert_eq!(1,+Rc::weak_count(%26strong));%0A++++%0A++++drop(strong);%0A++++%0A++++//+Decrement+the+last+weak+count.%0A++++assert!(unsafe+%7B+Weak::from_raw(raw_2)+%7D.upgrade().is_none());%0A%7D&amp;edition=2021"></a></div>
59 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Weak%3CT,+A%3E-1"·class="impl"><a·class="src·rightside"·href="../../src/alloc/rc.rs.html#3099-3415">Source</a><a·href="#impl-Weak%3CT,+A%3E-1"·class="anchor">§</a><h3·class="code-header">impl&lt;T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,·A:·<a·class="trait"·href="../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>&gt;·<a·class="struct"·href="struct.Weak[·...·truncated·by·diffoscope;·len:·444,·SHA:·5359ea0885bf51e5a0318079c74266167b715ce32d894811ec746b127ab28483·...·]/core/primitive.reference.html">&amp;A</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>allocator_api</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/32838">#32838</a>)</span></div></span></summary><div·class="docblock"><p>Returns·a·reference·to·the·underlying·allocator.</p>59 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Weak%3CT,+A%3E-1"·class="impl"><a·class="src·rightside"·href="../../src/alloc/rc.rs.html#3099-3415">Source</a><a·href="#impl-Weak%3CT,+A%3E-1"·class="anchor">§</a><h3·class="code-header">impl&lt;T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,·A:·<a·class="trait"·href="../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>&gt;·<a·class="struct"·href="struct.Weak.html"·title="struct·alloc:[·...·truncated·by·diffoscope;·len:·390,·SHA:·684b74d4e7604d8587c220f71a22e085d2c5eac03ad6a60eb4099b540a848cc0·...·]/core/primitive.reference.html">&amp;A</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>allocator_api</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/32838">#32838</a>)</span></div></span></summary><div·class="docblock"><p>Returns·a·reference·to·the·underlying·allocator.</p>
60 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.as_ptr"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.45.0">1.45.0</span>···<a·class="src"·href="../../src/alloc/rc.rs.html#3134-3147">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.as_ptr"·class="fn">as_ptr</a>(&amp;self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.pointer.html">*const·T</a></h4></section></summary><div·class="docblock"><p>Returns·a·raw·pointer·to·the·object·<code>T</code>·pointed·to·by·this·<code>Weak&lt;T&gt;</code>.</p>60 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.as_ptr"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.45.0">1.45.0</span>···<a·class="src"·href="../../src/alloc/rc.rs.html#3134-3147">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.as_ptr"·class="fn">as_ptr</a>(&amp;self)·-&gt;·<a·class="primitive"·href="../../core/primitive.pointer.html">*const·T</a></h4></section></summary><div·class="docblock"><p>Returns·a·raw·pointer·to·the·object·<code>T</code>·pointed·to·by·this·<code>Weak&lt;T&gt;</code>.</p>
61 <p>The·pointer·is·valid·only·if·there·are·some·strong·references.·The·pointer·may·be·dangling,61 <p>The·pointer·is·valid·only·if·there·are·some·strong·references.·The·pointer·may·be·dangling,
62 unaligned·or·even·<a·href="https://doc.rust-lang.org/1.84.0/core/ptr/fn.null.html"·title="fn·core::ptr::null"><code>null</code></a>·otherwise.</p>62 unaligned·or·even·<a·href="../../core/ptr/fn.null.html"·title="fn·core::ptr::null"><code>null</code></a>·otherwise.</p>
63 <h5·id="examples-3"><a·class="doc-anchor"·href="#examples-3">§</a>Examples</h5>63 <h5·id="examples-3"><a·class="doc-anchor"·href="#examples-3">§</a>Examples</h5>
64 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::rc::Rc;64 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::rc::Rc;
65 <span·class="kw">use·</span>std::ptr;65 <span·class="kw">use·</span>std::ptr;
  
66 <span·class="kw">let·</span>strong·=·Rc::new(<span·class="string">"hello"</span>.to_owned());66 <span·class="kw">let·</span>strong·=·Rc::new(<span·class="string">"hello"</span>.to_owned());
67 <span·class="kw">let·</span>weak·=·Rc::downgrade(<span·class="kw-2">&amp;</span>strong);67 <span·class="kw">let·</span>weak·=·Rc::downgrade(<span·class="kw-2">&amp;</span>strong);
68 <span·class="comment">//·Both·point·to·the·same·object68 <span·class="comment">//·Both·point·to·the·same·object
Offset 73, 15 lines modifiedOffset 73, 15 lines modified
73 <span·class="comment">//·The·strong·here·keeps·it·alive,·so·we·can·still·access·the·object.73 <span·class="comment">//·The·strong·here·keeps·it·alive,·so·we·can·still·access·the·object.
74 </span><span·class="macro">assert_eq!</span>(<span·class="string">"hello"</span>,·<span·class="kw">unsafe·</span>{·<span·class="kw-2">&amp;*</span>weak.as_ptr()·});74 </span><span·class="macro">assert_eq!</span>(<span·class="string">"hello"</span>,·<span·class="kw">unsafe·</span>{·<span·class="kw-2">&amp;*</span>weak.as_ptr()·});
  
75 drop(strong);75 drop(strong);
76 <span·class="comment">//·But·not·any·more.·We·can·do·weak.as_ptr(),·but·accessing·the·pointer·would·lead·to76 <span·class="comment">//·But·not·any·more.·We·can·do·weak.as_ptr(),·but·accessing·the·pointer·would·lead·to
77 //·undefined·behavior.77 //·undefined·behavior.
78 //·assert_eq!("hello",·unsafe·{·&amp;*weak.as_ptr()·});</span></code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::rc::Rc;%0A++++use+std::ptr;%0A++++%0A++++let+strong+=+Rc::new(%22hello%22.to_owned());%0A++++let+weak+=+Rc::downgrade(%26strong);%0A++++//+Both+point+to+the+same+object%0A++++assert!(ptr::eq(%26*strong,+weak.as_ptr()));%0A++++//+The+strong+here+keeps+it+alive,+so+we+can+still+access+the+object.%0A++++assert_eq!(%22hello%22,+unsafe+%7B+%26*weak.as_ptr()+%7D);%0A++++%0A++++drop(strong);%0A++++//+But+not+any+more.+We+can+do+weak.as_ptr(),+but+accessing+the+pointer+would+lead+to%0A++++//+undefined+behavior.%0A++++//+assert_eq!(%22hello%22,+unsafe+%7B+%26*weak.as_ptr()+%7D);%0A%7D&amp;edition=2021"></a></div>78 //·assert_eq!("hello",·unsafe·{·&amp;*weak.as_ptr()·});</span></code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::rc::Rc;%0A++++use+std::ptr;%0A++++%0A++++let+strong+=+Rc::new(%22hello%22.to_owned());%0A++++let+weak+=+Rc::downgrade(%26strong);%0A++++//+Both+point+to+the+same+object%0A++++assert!(ptr::eq(%26*strong,+weak.as_ptr()));%0A++++//+The+strong+here+keeps+it+alive,+so+we+can+still+access+the+object.%0A++++assert_eq!(%22hello%22,+unsafe+%7B+%26*weak.as_ptr()+%7D);%0A++++%0A++++drop(strong);%0A++++//+But+not+any+more.+We+can+do+weak.as_ptr(),+but+accessing+the+pointer+would+lead+to%0A++++//+undefined+behavior.%0A++++//+assert_eq!(%22hello%22,+unsafe+%7B+%26*weak.as_ptr()+%7D);%0A%7D&amp;edition=2021"></a></div>
79 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.into_raw"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.45.0">1.45.0</span>···<a·class="src"·href="../../src/alloc/rc.rs.html#3178-3180">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.into_raw"·class="fn">into_raw</a>(self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.pointer.html">*const·T</a></h4></section></summary><div·class="docblock"><p>Consumes·the·<code>Weak&lt;T&gt;</code>·and·turns·it·into·a·raw·pointer.</p>79 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.into_raw"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.45.0">1.45.0</span>···<a·class="src"·href="../../src/alloc/rc.rs.html#3178-3180">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.into_raw"·class="fn">into_raw</a>(self)·-&gt;·<a·class="primitive"·href="../../core/primitive.pointer.html">*const·T</a></h4></section></summary><div·class="docblock"><p>Consumes·the·<code>Weak&lt;T&gt;</code>·and·turns·it·into·a·raw·pointer.</p>
80 <p>This·converts·the·weak·pointer·into·a·raw·pointer,·while·still·preserving·the·ownership·of80 <p>This·converts·the·weak·pointer·into·a·raw·pointer,·while·still·preserving·the·ownership·of
81 one·weak·reference·(the·weak·count·is·not·modified·by·this·operation).·It·can·be·turned81 one·weak·reference·(the·weak·count·is·not·modified·by·this·operation).·It·can·be·turned
82 back·into·the·<code>Weak&lt;T&gt;</code>·with·<a·href="struct.Weak.html#method.from_raw"·title="associated·function·alloc::rc::Weak::from_raw"><code>from_raw</code></a>.</p>82 back·into·the·<code>Weak&lt;T&gt;</code>·with·<a·href="struct.Weak.html#method.from_raw"·title="associated·function·alloc::rc::Weak::from_raw"><code>from_raw</code></a>.</p>
83 <p>The·same·restrictions·of·accessing·the·target·of·the·pointer·as·with83 <p>The·same·restrictions·of·accessing·the·target·of·the·pointer·as·with
84 <a·href="struct.Weak.html#method.as_ptr"·title="method·alloc::rc::Weak::as_ptr"><code>as_ptr</code></a>·apply.</p>84 <a·href="struct.Weak.html#method.as_ptr"·title="method·alloc::rc::Weak::as_ptr"><code>as_ptr</code></a>·apply.</p>
85 <h5·id="examples-4"><a·class="doc-anchor"·href="#examples-4">§</a>Examples</h5>85 <h5·id="examples-4"><a·class="doc-anchor"·href="#examples-4">§</a>Examples</h5>
86 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::rc::{Rc,·Weak};86 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::rc::{Rc,·Weak};
Offset 91, 15 lines modifiedOffset 91, 15 lines modified
91 <span·class="kw">let·</span>raw·=·weak.into_raw();91 <span·class="kw">let·</span>raw·=·weak.into_raw();
  
92 <span·class="macro">assert_eq!</span>(<span·class="number">1</span>,·Rc::weak_count(<span·class="kw-2">&amp;</span>strong));92 <span·class="macro">assert_eq!</span>(<span·class="number">1</span>,·Rc::weak_count(<span·class="kw-2">&amp;</span>strong));
93 <span·class="macro">assert_eq!</span>(<span·class="string">"hello"</span>,·<span·class="kw">unsafe·</span>{·<span·class="kw-2">&amp;*</span>raw·});93 <span·class="macro">assert_eq!</span>(<span·class="string">"hello"</span>,·<span·class="kw">unsafe·</span>{·<span·class="kw-2">&amp;*</span>raw·});
  
94 drop(<span·class="kw">unsafe·</span>{·Weak::from_raw(raw)·});94 drop(<span·class="kw">unsafe·</span>{·Weak::from_raw(raw)·});
95 <span·class="macro">assert_eq!</span>(<span·class="number">0</span>,·Rc::weak_count(<span·class="kw-2">&amp;</span>strong));</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::rc::%7BRc,+Weak%7D;%0A++++%0A++++let+strong+=+Rc::new(%22hello%22.to_owned());%0A++++let+weak+=+Rc::downgrade(%26strong);%0A++++let+raw+=+weak.into_raw();%0A++++%0A++++assert_eq!(1,+Rc::weak_count(%26strong));%0A++++assert_eq!(%22hello%22,+unsafe+%7B+%26*raw+%7D);%0A++++%0A++++drop(unsafe+%7B+Weak::from_raw(raw)+%7D);%0A++++assert_eq!(0,+Rc::weak_count(%26strong));%0A%7D&amp;edition=2021"></a></div>95 <span·class="macro">assert_eq!</span>(<span·class="number">0</span>,·Rc::weak_count(<span·class="kw-2">&amp;</span>strong));</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::rc::%7BRc,+Weak%7D;%0A++++%0A++++let+strong+=+Rc::new(%22hello%22.to_owned());%0A++++let+weak+=+Rc::downgrade(%26strong);%0A++++let+raw+=+weak.into_raw();%0A++++%0A++++assert_eq!(1,+Rc::weak_count(%26strong));%0A++++assert_eq!(%22hello%22,+unsafe+%7B+%26*raw+%7D);%0A++++%0A++++drop(unsafe+%7B+Weak::from_raw(raw)+%7D);%0A++++assert_eq!(0,+Rc::weak_count(%26strong));%0A%7D&amp;edition=2021"></a></div>
96 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.into_raw_with_allocator"·class="method"><a·class="src·rightside"·href="../../src/alloc/rc.rs.html#3214-3220">Source</a><h4·class="code-header">pub·fn·<a·href="#method.into_raw_with_allocator"·class="fn">into_raw_with_allocator</a>(self)·-&gt;·(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.pointer.html">*const·T</a>,·A)</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>allocator_api</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/32838">#32838</a>)</span></div></span></summary><div·class="docblock"><p>Consumes·the·<code>Weak&lt;T&gt;</code>,·returning·the·wrapped·pointer·and·allocator.</p>96 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.into_raw_with_allocator"·class="method"><a·class="src·rightside"·href="../../src/alloc/rc.rs.html#3214-3220">Source</a><h4·class="code-header">pub·fn·<a·href="#method.into_raw_with_allocator"·class="fn">into_raw_with_allocator</a>(self)·-&gt;·(<a·class="primitive"·href="../../core/primitive.pointer.html">*const·T</a>,·A)</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>allocator_api</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/32838">#32838</a>)</span></div></span></summary><div·class="docblock"><p>Consumes·the·<code>Weak&lt;T&gt;</code>,·returning·the·wrapped·pointer·and·allocator.</p>
97 <p>This·converts·the·weak·pointer·into·a·raw·pointer,·while·still·preserving·the·ownership·of97 <p>This·converts·the·weak·pointer·into·a·raw·pointer,·while·still·preserving·the·ownership·of
98 one·weak·reference·(the·weak·count·is·not·modified·by·this·operation).·It·can·be·turned98 one·weak·reference·(the·weak·count·is·not·modified·by·this·operation).·It·can·be·turned
99 back·into·the·<code>Weak&lt;T&gt;</code>·with·<a·href="struct.Weak.html#method.from_raw_in"·title="associated·function·alloc::rc::Weak::from_raw_in"><code>from_raw_in</code></a>.</p>99 back·into·the·<code>Weak&lt;T&gt;</code>·with·<a·href="struct.Weak.html#method.from_raw_in"·title="associated·function·alloc::rc::Weak::from_raw_in"><code>from_raw_in</code></a>.</p>
100 <p>The·same·restrictions·of·accessing·the·target·of·the·pointer·as·with100 <p>The·same·restrictions·of·accessing·the·target·of·the·pointer·as·with
101 <a·href="struct.Weak.html#method.as_ptr"·title="method·alloc::rc::Weak::as_ptr"><code>as_ptr</code></a>·apply.</p>101 <a·href="struct.Weak.html#method.as_ptr"·title="method·alloc::rc::Weak::as_ptr"><code>as_ptr</code></a>·apply.</p>
102 <h5·id="examples-5"><a·class="doc-anchor"·href="#examples-5">§</a>Examples</h5>102 <h5·id="examples-5"><a·class="doc-anchor"·href="#examples-5">§</a>Examples</h5>
103 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(allocator_api)]103 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(allocator_api)]
Offset 111, 15 lines modifiedOffset 111, 15 lines modified
111 <span·class="kw">let·</span>(raw,·alloc)·=·weak.into_raw_with_allocator();111 <span·class="kw">let·</span>(raw,·alloc)·=·weak.into_raw_with_allocator();
  
112 <span·class="macro">assert_eq!</span>(<span·class="number">1</span>,·Rc::weak_count(<span·class="kw-2">&amp;</span>strong));112 <span·class="macro">assert_eq!</span>(<span·class="number">1</span>,·Rc::weak_count(<span·class="kw-2">&amp;</span>strong));
113 <span·class="macro">assert_eq!</span>(<span·class="string">"hello"</span>,·<span·class="kw">unsafe·</span>{·<span·class="kw-2">&amp;*</span>raw·});113 <span·class="macro">assert_eq!</span>(<span·class="string">"hello"</span>,·<span·class="kw">unsafe·</span>{·<span·class="kw-2">&amp;*</span>raw·});
  
114 drop(<span·class="kw">unsafe·</span>{·Weak::from_raw_in(raw,·alloc)·});114 drop(<span·class="kw">unsafe·</span>{·Weak::from_raw_in(raw,·alloc)·});
115 <span·class="macro">assert_eq!</span>(<span·class="number">0</span>,·Rc::weak_count(<span·class="kw-2">&amp;</span>strong));</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Bfeature(allocator_api)%5D%0A%23%5Ballow(unused_extern_crates)%5D%0Aextern+crate+r%23alloc;%0Afn+main()+%7B%0A++++use+std::rc::%7BRc,+Weak%7D;%0A++++use+std::alloc::System;%0A++++%0A++++let+strong+=+Rc::new_in(%22hello%22.to_owned(),+System);%0A++++let+weak+=+Rc::downgrade(%26strong);%0A++++let+(raw,+alloc)+=+weak.into_raw_with_allocator();%0A++++%0A++++assert_eq!(1,+Rc::weak_count(%26strong));%0A++++assert_eq!(%22hello%22,+unsafe+%7B+%26*raw+%7D);%0A++++%0A++++drop(unsafe+%7B+Weak::from_raw_in(raw,+alloc)+%7D);%0A++++assert_eq!(0,+Rc::weak_count(%26strong));%0A%7D&amp;version=nightly&amp;edition=2021"></a></div>115 <span·class="macro">assert_eq!</span>(<span·class="number">0</span>,·Rc::weak_count(<span·class="kw-2">&amp;</span>strong));</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Bfeature(allocator_api)%5D%0A%23%5Ballow(unused_extern_crates)%5D%0Aextern+crate+r%23alloc;%0Afn+main()+%7B%0A++++use+std::rc::%7BRc,+Weak%7D;%0A++++use+std::alloc::System;%0A++++%0A++++let+strong+=+Rc::new_in(%22hello%22.to_owned(),+System);%0A++++let+weak+=+Rc::downgrade(%26strong);%0A++++let+(raw,+alloc)+=+weak.into_raw_with_allocator();%0A++++%0A++++assert_eq!(1,+Rc::weak_count(%26strong));%0A++++assert_eq!(%22hello%22,+unsafe+%7B+%26*raw+%7D);%0A++++%0A++++drop(unsafe+%7B+Weak::from_raw_in(raw,+alloc)+%7D);%0A++++assert_eq!(0,+Rc::weak_count(%26strong));%0A%7D&amp;version=nightly&amp;edition=2021"></a></div>
116 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.from_raw_in"·class="method"><a·class="src·rightside"·href="../../src/alloc/rc.rs.html#3266-3283">Source</a><h4·class="code-header">pub·unsafe·fn·<a·href="#method.from_raw_in"·class="fn">from_raw_in</a>(ptr:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.pointer.html">*const·T</a>,·alloc:·A)·-&gt;·Self</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>allocator_api</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/32838">#32838</a>)</span></div></span></summary><div·class="docblock"><p>Converts·a·raw·pointer·previously·created·by·<a·href="struct.Weak.html#method.into_raw"·title="method·alloc::rc::Weak::into_raw"><code>into_raw</code></a>·back·into·<code>Weak&lt;T&gt;</code>.</p>116 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.from_raw_in"·class="method"><a·class="src·rightside"·href="../../src/alloc/rc.rs.html#3266-3283">Source</a><h4·class="code-header">pub·unsafe·fn·<a·href="#method.from_raw_in"·class="fn">from_raw_in</a>(ptr:·<a·class="primitive"·href="../../core/primitive.pointer.html">*const·T</a>,·alloc:·A)·-&gt;·Self</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>allocator_api</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/32838">#32838</a>)</span></div></span></summary><div·class="docblock"><p>Converts·a·raw·pointer·previously·created·by·<a·href="struct.Weak.html#method.into_raw"·title="method·alloc::rc::Weak::into_raw"><code>into_raw</code></a>·back·into·<code>Weak&lt;T&gt;</code>.</p>
117 <p>This·can·be·used·to·safely·get·a·strong·reference·(by·calling·<a·href="struct.Weak.html#method.upgrade"·title="method·alloc::rc::Weak::upgrade"><code>upgrade</code></a>117 <p>This·can·be·used·to·safely·get·a·strong·reference·(by·calling·<a·href="struct.Weak.html#method.upgrade"·title="method·alloc::rc::Weak::upgrade"><code>upgrade</code></a>
118 later)·or·to·deallocate·the·weak·count·by·dropping·the·<code>Weak&lt;T&gt;</code>.</p>118 later)·or·to·deallocate·the·weak·count·by·dropping·the·<code>Weak&lt;T&gt;</code>.</p>
119 <p>It·takes·ownership·of·one·weak·reference·(with·the·exception·of·pointers·created·by·<a·href="struct.Weak.html#method.new"·title="associated·function·alloc::rc::Weak::new"><code>new</code></a>,119 <p>It·takes·ownership·of·one·weak·reference·(with·the·exception·of·pointers·created·by·<a·href="struct.Weak.html#method.new"·title="associated·function·alloc::rc::Weak::new"><code>new</code></a>,
120 as·these·don’t·own·anything;·the·method·still·works·on·them).</p>120 as·these·don’t·own·anything;·the·method·still·works·on·them).</p>
121 <h5·id="safety-1"><a·class="doc-anchor"·href="#safety-1">§</a>Safety</h5>121 <h5·id="safety-1"><a·class="doc-anchor"·href="#safety-1">§</a>Safety</h5>
122 <p>The·pointer·must·have·originated·from·the·<a·href="struct.Weak.html#method.into_raw"·title="method·alloc::rc::Weak::into_raw"><code>into_raw</code></a>·and·must·still·own·its·potential122 <p>The·pointer·must·have·originated·from·the·<a·href="struct.Weak.html#method.into_raw"·title="method·alloc::rc::Weak::into_raw"><code>into_raw</code></a>·and·must·still·own·its·potential
123 weak·reference,·and·<code>ptr</code>·must·point·to·a·block·of·memory·allocated·by·<code>alloc</code>.</p>123 weak·reference,·and·<code>ptr</code>·must·point·to·a·block·of·memory·allocated·by·<code>alloc</code>.</p>
Offset 140, 18 lines modifiedOffset 140, 18 lines modified
140 <span·class="macro">assert_eq!</span>(<span·class="string">"hello"</span>,·<span·class="kw-2">&amp;*</span><span·class="kw">unsafe·</span>{·Weak::from_raw(raw_1)·}.upgrade().unwrap());140 <span·class="macro">assert_eq!</span>(<span·class="string">"hello"</span>,·<span·class="kw-2">&amp;*</span><span·class="kw">unsafe·</span>{·Weak::from_raw(raw_1)·}.upgrade().unwrap());
141 <span·class="macro">assert_eq!</span>(<span·class="number">1</span>,·Rc::weak_count(<span·class="kw-2">&amp;</span>strong));141 <span·class="macro">assert_eq!</span>(<span·class="number">1</span>,·Rc::weak_count(<span·class="kw-2">&amp;</span>strong));
  
142 drop(strong);142 drop(strong);
  
143 <span·class="comment">//·Decrement·the·last·weak·count.143 <span·class="comment">//·Decrement·the·last·weak·count.
144 </span><span·class="macro">assert!</span>(<span·class="kw">unsafe·</span>{·Weak::from_raw(raw_2)·}.upgrade().is_none());</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::rc::%7BRc,+Weak%7D;%0A++++%0A++++let+strong+=+Rc::new(%22hello%22.to_owned());%0A++++%0A++++let+raw_1+=+Rc::downgrade(%26strong).into_raw();%0A++++let+raw_2+=+Rc::downgrade(%26strong).into_raw();%0A++++%0A++++assert_eq!(2,+Rc::weak_count(%26strong));%0A++++%0A++++assert_eq!(%22hello%22,+%26*unsafe+%7B+Weak::from_raw(raw_1)+%7D.upgrade().unwrap());%0A++++assert_eq!(1,+Rc::weak_count(%26strong));%0A++++%0A++++drop(strong);%0A++++%0A++++//+Decrement+the+last+weak+count.%0A++++assert!(unsafe+%7B+Weak::from_raw(raw_2)+%7D.upgrade().is_none());%0A%7D&amp;edition=2021"></a></div>144 </span><span·class="macro">assert!</span>(<span·class="kw">unsafe·</span>{·Weak::from_raw(raw_2)·}.upgrade().is_none());</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::rc::%7BRc,+Weak%7D;%0A++++%0A++++let+strong+=+Rc::new(%22hello%22.to_owned());%0A++++%0A++++let+raw_1+=+Rc::downgrade(%26strong).into_raw();%0A++++let+raw_2+=+Rc::downgrade(%26strong).into_raw();%0A++++%0A++++assert_eq!(2,+Rc::weak_count(%26strong));%0A++++%0A++++assert_eq!(%22hello%22,+%26*unsafe+%7B+Weak::from_raw(raw_1)+%7D.upgrade().unwrap());%0A++++assert_eq!(1,+Rc::weak_count(%26strong));%0A++++%0A++++drop(strong);%0A++++%0A++++//+Decrement+the+last+weak+count.%0A++++assert!(unsafe+%7B+Weak::from_raw(raw_2)+%7D.upgrade().is_none());%0A%7D&amp;edition=2021"></a></div>
145 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.upgrade"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.4.0">1.4.0</span>···<a·class="src"·href="../../src/alloc/rc.rs.html#3311-3325">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.upgrade"·class="fn">upgrade</a>(&amp;self)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="struct"·href="struct.Rc.html"·title="struct·alloc::rc::Rc">Rc</a>&lt;T,·A&gt;&gt;<div·class="where">where145 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.upgrade"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.4.0">1.4.0</span>···<a·class="src"·href="../../src/alloc/rc.rs.html#3311-3325">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.upgrade"·class="fn">upgrade</a>(&amp;self)·-&gt;·<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="struct"·href="struct.Rc.html"·title="struct·alloc::rc::Rc">Rc</a>&lt;T,·A&gt;&gt;<div·class="where">where
146 ····A:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><div·class="docblock"><p>Attempts·to·upgrade·the·<code>Weak</code>·pointer·to·an·<a·href="struct.Rc.html"·title="struct·alloc::rc::Rc"><code>Rc</code></a>,·delaying146 ····A:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><div·class="docblock"><p>Attempts·to·upgrade·the·<code>Weak</code>·pointer·to·an·<a·href="struct.Rc.html"·title="struct·alloc::rc::Rc"><code>Rc</code></a>,·delaying
147 dropping·of·the·inner·value·if·successful.</p>147 dropping·of·the·inner·value·if·successful.</p>
148 <p>Returns·<a·href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html#variant.None"·title="variant·core::option::Option::None"><code>None</code></a>·if·the·inner·value·has·since·been·dropped.</p>148 <p>Returns·<a·href="../../core/option/enum.Option.html#variant.None"·title="variant·core::option::Option::None"><code>None</code></a>·if·the·inner·value·has·since·been·dropped.</p>
149 <h5·id="examples-7"><a·class="doc-anchor"·href="#examples-7">§</a>Examples</h5>149 <h5·id="examples-7"><a·class="doc-anchor"·href="#examples-7">§</a>Examples</h5>
150 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::rc::Rc;150 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::rc::Rc;
  
151 <span·class="kw">let·</span>five·=·Rc::new(<span·class="number">5</span>);151 <span·class="kw">let·</span>five·=·Rc::new(<span·class="number">5</span>);
  
152 <span·class="kw">let·</span>weak_five·=·Rc::downgrade(<span·class="kw-2">&amp;</span>five);152 <span·class="kw">let·</span>weak_five·=·Rc::downgrade(<span·class="kw-2">&amp;</span>five);
  
Offset 159, 19 lines modifiedOffset 159, 19 lines modified
159 <span·class="macro">assert!</span>(strong_five.is_some());159 <span·class="macro">assert!</span>(strong_five.is_some());
Max diff block lines reached; 67038/113293 bytes (59.17%) of diff not shown.
7.44 KB
./usr/share/doc/rust-doc/html/alloc/slice/fn.from_mut.html
    
Offset 1, 2 lines modifiedOffset 1, 2 lines modified
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="Converts·a·reference·to·T·into·a·slice·of·length·1·(without·copying)."><title>from_mut·in·alloc::slice·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·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"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»  2025-01-07)»       (built» from»     a»    source»      tarball)</div><div·class="sidebar-elems"><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>slice</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">alloc</a>::<wbr><a·href="index.html">slice</a></span><h1>Function·<span·class="fn">from_mut</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0,·const·since·1.83.0">1.36.0·(const:·1.83.0)</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/slice/raw.rs.html#208">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·const·fn·from_mut&lt;T&gt;(s:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;mut[·...·truncated·by·diffoscope;·len:·82,·SHA:·5b459e90d0cb8db2255df6afd1fd2ce71b1255459f1bd9f9d4bd9c8927c6f67f·...·]/core/primitive.slice.html">[T]</a></code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Converts·a·reference·to·T·into·a·slice·of·length·1·(without·copying).</p>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="Converts·a·reference·to·T·into·a·slice·of·length·1·(without·copying)."><title>from_mut·in·alloc::slice·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·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"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»  2025-01-07)»       (built» from»     a»    source»      tarball)</div><div·class="sidebar-elems"><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>slice</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">alloc</a>::<wbr><a·href="index.html">slice</a></span><h1>Function·<span·class="fn">from_mut</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0,·const·since·1.83.0">1.36.0·(const:·1.83.0)</span>···<a·class="src"·href="../../src/core/slice/raw.rs.html#208">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·const·fn·from_mut&lt;T&gt;(s:·<a·class="primitive"·href="../../core/primitive.reference.html">&amp;mut·T</a>)·-&gt;·&amp;mut·<a·class="primitive"·href="../.[·...·truncated·by·diffoscope;·len:·1,·SHA:·cdb4ee2aea69cc6a83331bbe96dc2caa9a299d21329efb0336fc02a82e1839a8·...·]/core/primitive.slice.html">[T]</a></code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Converts·a·reference·to·T·into·a·slice·of·length·1·(without·copying).</p>
2 </div></details></section></div></main></body></html>2 </div></details></section></div></main></body></html>
12.0 KB
./usr/share/doc/rust-doc/html/alloc/slice/fn.from_mut_ptr_range.html
    
Offset 1, 24 lines modifiedOffset 1, 24 lines modified
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="Forms·a·mutable·slice·from·a·pointer·range."><title>from_mut_ptr_range·in·alloc::slice·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·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"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»     2025-01-07)»  (built»    from»a»       source» tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">from_<wbr>mut_<wbr>ptr_<wbr>range</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#safety"·title="Safety">Safety</a></li><li><a·href="#panics"·title="Panics">Panics</a></li><li><a·href="#caveat"·title="Caveat">Caveat</a></li><li><a·href="#examples"·title="Examples">Examples</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>slice</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">alloc</a>::<wbr><a·href="index.html">slice</a></span><h1>Function·<span·class="fn">from_mut_ptr_range</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="https://doc.rust-lang.org/1.84.0/src/core/slice/raw.rs.html#343">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·const·unsafe·fn·from_mut_ptr_range&lt;'a,·T&gt;(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="Forms·a·mutable·slice·from·a·pointer·range."><title>from_mut_ptr_range·in·alloc::slice·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·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"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»     2025-01-07)»  (built»    from»a»       source» tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">from_<wbr>mut_<wbr>ptr_<wbr>range</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#safety"·title="Safety">Safety</a></li><li><a·href="#panics"·title="Panics">Panics</a></li><li><a·href="#caveat"·title="Caveat">Caveat</a></li><li><a·href="#examples"·title="Examples">Examples</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>slice</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">alloc</a>::<wbr><a·href="index.html">slice</a></span><h1>Function·<span·class="fn">from_mut_ptr_range</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/core/slice/raw.rs.html#343">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·const·unsafe·fn·from_mut_ptr_range&lt;'a,·T&gt;(
2 ····range:·<a·class="struct"·href="https://doc.rust-lang.org/1.84.0/core/ops/range/struct.Range.html"·title="struct·core::ops::range::Range">Range</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.pointer.html">*mut·T</a>&gt;,2 ····range:·<a·class="struct"·href="../../core/ops/range/struct.Range.html"·title="struct·core::ops::range::Range">Range</a>&lt;<a·class="primitive"·href="../../core/primitive.pointer.html">*mut·T</a>&gt;,
3 )·-&gt;·&amp;'a·mut·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html">[T]</a></code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>slice_from_ptr_range</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/89792">#89792</a>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Forms·a·mutable·slice·from·a·pointer·range.</p>3 )·-&gt;·&amp;'a·mut·<a·class="primitive"·href="../../core/primitive.slice.html">[T]</a></code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>slice_from_ptr_range</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/89792">#89792</a>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Forms·a·mutable·slice·from·a·pointer·range.</p>
4 <p>This·is·the·same·functionality·as·<a·href="fn.from_ptr_range.html"·title="fn·alloc::slice::from_ptr_range"><code>from_ptr_range</code></a>,·except·that·a4 <p>This·is·the·same·functionality·as·<a·href="fn.from_ptr_range.html"·title="fn·alloc::slice::from_ptr_range"><code>from_ptr_range</code></a>,·except·that·a
5 mutable·slice·is·returned.</p>5 mutable·slice·is·returned.</p>
6 <p>This·function·is·useful·for·interacting·with·foreign·interfaces·which6 <p>This·function·is·useful·for·interacting·with·foreign·interfaces·which
7 use·two·pointers·to·refer·to·a·range·of·elements·in·memory,·as·is7 use·two·pointers·to·refer·to·a·range·of·elements·in·memory,·as·is
8 common·in·C++.</p>8 common·in·C++.</p>
9 <h2·id="safety"><a·class="doc-anchor"·href="#safety">§</a>Safety</h2>9 <h2·id="safety"><a·class="doc-anchor"·href="#safety">§</a>Safety</h2>
10 <p>Behavior·is·undefined·if·any·of·the·following·conditions·are·violated:</p>10 <p>Behavior·is·undefined·if·any·of·the·following·conditions·are·violated:</p>
11 <ul>11 <ul>
12 <li>12 <li>
13 <p>The·<code>start</code>·pointer·of·the·range·must·be·a·non-null,·<a·href="https://doc.rust-lang.org/1.84.0/core/ptr/index.html#safety"·title="mod·core::ptr">valid</a>·and·properly·aligned·pointer13 <p>The·<code>start</code>·pointer·of·the·range·must·be·a·non-null,·<a·href="../../core/ptr/index.html#safety"·title="mod·core::ptr">valid</a>·and·properly·aligned·pointer
14 to·the·first·element·of·a·slice.</p>14 to·the·first·element·of·a·slice.</p>
15 </li>15 </li>
16 <li>16 <li>
17 <p>The·<code>end</code>·pointer·must·be·a·<a·href="https://doc.rust-lang.org/1.84.0/core/ptr/index.html#safety"·title="mod·core::ptr">valid</a>·and·properly·aligned·pointer·to·<em>one·past</em>17 <p>The·<code>end</code>·pointer·must·be·a·<a·href="../../core/ptr/index.html#safety"·title="mod·core::ptr">valid</a>·and·properly·aligned·pointer·to·<em>one·past</em>
18 the·last·element,·such·that·the·offset·from·the·end·to·the·start·pointer·is18 the·last·element,·such·that·the·offset·from·the·end·to·the·start·pointer·is
19 the·length·of·the·slice.</p>19 the·length·of·the·slice.</p>
20 </li>20 </li>
21 <li>21 <li>
22 <p>The·entire·memory·range·of·this·slice·must·be·contained·within·a·single·allocated·object!22 <p>The·entire·memory·range·of·this·slice·must·be·contained·within·a·single·allocated·object!
23 Slices·can·never·span·across·multiple·allocated·objects.</p>23 Slices·can·never·span·across·multiple·allocated·objects.</p>
24 </li>24 </li>
Offset 29, 18 lines modifiedOffset 29, 18 lines modified
29 <p>The·memory·referenced·by·the·returned·slice·must·not·be·accessed·through·any·other·pointer29 <p>The·memory·referenced·by·the·returned·slice·must·not·be·accessed·through·any·other·pointer
30 (not·derived·from·the·return·value)·for·the·duration·of·lifetime·<code>'a</code>.30 (not·derived·from·the·return·value)·for·the·duration·of·lifetime·<code>'a</code>.
31 Both·read·and·write·accesses·are·forbidden.</p>31 Both·read·and·write·accesses·are·forbidden.</p>
32 </li>32 </li>
33 <li>33 <li>
34 <p>The·total·length·of·the·range·must·be·no·larger·than·<code>isize::MAX</code>,34 <p>The·total·length·of·the·range·must·be·no·larger·than·<code>isize::MAX</code>,
35 and·adding·that·size·to·<code>start</code>·must·not·“wrap·around”·the·address·space.35 and·adding·that·size·to·<code>start</code>·must·not·“wrap·around”·the·address·space.
36 See·the·safety·documentation·of·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.pointer.html#method.offset"·title="method·pointer::offset"><code>pointer::offset</code></a>.</p>36 See·the·safety·documentation·of·<a·href="../../core/primitive.pointer.html#method.offset"·title="method·pointer::offset"><code>pointer::offset</code></a>.</p>
37 </li>37 </li>
38 </ul>38 </ul>
39 <p>Note·that·a·range·created·from·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html#method.as_mut_ptr_range"·title="method·slice::as_mut_ptr_range"><code>slice::as_mut_ptr_range</code></a>·fulfills·these·requirements.</p>39 <p>Note·that·a·range·created·from·<a·href="../../core/primitive.slice.html#method.as_mut_ptr_range"·title="method·slice::as_mut_ptr_range"><code>slice::as_mut_ptr_range</code></a>·fulfills·these·requirements.</p>
40 <h2·id="panics"><a·class="doc-anchor"·href="#panics">§</a>Panics</h2>40 <h2·id="panics"><a·class="doc-anchor"·href="#panics">§</a>Panics</h2>
41 <p>This·function·panics·if·<code>T</code>·is·a·Zero-Sized·Type·(“ZST”).</p>41 <p>This·function·panics·if·<code>T</code>·is·a·Zero-Sized·Type·(“ZST”).</p>
42 <h2·id="caveat"><a·class="doc-anchor"·href="#caveat">§</a>Caveat</h2>42 <h2·id="caveat"><a·class="doc-anchor"·href="#caveat">§</a>Caveat</h2>
43 <p>The·lifetime·for·the·returned·slice·is·inferred·from·its·usage.·To43 <p>The·lifetime·for·the·returned·slice·is·inferred·from·its·usage.·To
44 prevent·accidental·misuse,·it’s·suggested·to·tie·the·lifetime·to·whichever44 prevent·accidental·misuse,·it’s·suggested·to·tie·the·lifetime·to·whichever
45 source·lifetime·is·safe·in·the·context,·such·as·by·providing·a·helper45 source·lifetime·is·safe·in·the·context,·such·as·by·providing·a·helper
46 function·taking·the·lifetime·of·a·host·value·for·the·slice,·or·by·explicit46 function·taking·the·lifetime·of·a·host·value·for·the·slice,·or·by·explicit
11.6 KB
./usr/share/doc/rust-doc/html/alloc/slice/fn.from_ptr_range.html
    
Offset 1, 20 lines modifiedOffset 1, 20 lines modified
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="Forms·a·slice·from·a·pointer·range."><title>from_ptr_range·in·alloc::slice·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·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"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»2025-01-07)»     (built»       from»   a»  source»    tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">from_<wbr>ptr_<wbr>range</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#safety"·title="Safety">Safety</a></li><li><a·href="#panics"·title="Panics">Panics</a></li><li><a·href="#caveat"·title="Caveat">Caveat</a></li><li><a·href="#examples"·title="Examples">Examples</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>slice</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">alloc</a>::<wbr><a·href="index.html">slice</a></span><h1>Function·<span·class="fn">from_ptr_range</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="https://doc.rust-lang.org/1.84.0/src/core/slice/raw.rs.html#273">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·const·unsafe·fn·from_ptr_range&lt;'a,·T&gt;(range:·<a·class="struct"·href="https://doc.rust-lang.org/1.84.0/core/ops/range/struct[·...·truncated·by·diffoscope;·len:·245,·SHA:·94ec7d9815756d39f7c4ad7aeb45e25490afd8ff4243a1100a288775849dec50·...·]/core/primitive.slice.html">[T]</a></code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>slice_from_ptr_range</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/89792">#89792</a>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Forms·a·slice·from·a·pointer·range.</p>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="Forms·a·slice·from·a·pointer·range."><title>from_ptr_range·in·alloc::slice·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·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"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»2025-01-07)»     (built»       from»   a»  source»    tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">from_<wbr>ptr_<wbr>range</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#safety"·title="Safety">Safety</a></li><li><a·href="#panics"·title="Panics">Panics</a></li><li><a·href="#caveat"·title="Caveat">Caveat</a></li><li><a·href="#examples"·title="Examples">Examples</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>slice</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">alloc</a>::<wbr><a·href="index.html">slice</a></span><h1>Function·<span·class="fn">from_ptr_range</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/core/slice/raw.rs.html#273">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·const·unsafe·fn·from_ptr_range&lt;'a,·T&gt;(range:·<a·class="struct"·href="../../core/ops/range/struct.Range.html"·title="struct·core::ops::range::Range">Ra[·...·truncated·by·diffoscope;·len:·137,·SHA:·513b729fee33539a98195f1f527bace7cfaeb442b928368ff16c5a31a9690bbc·...·]/core/primitive.slice.html">[T]</a></code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>slice_from_ptr_range</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/89792">#89792</a>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Forms·a·slice·from·a·pointer·range.</p>
2 <p>This·function·is·useful·for·interacting·with·foreign·interfaces·which2 <p>This·function·is·useful·for·interacting·with·foreign·interfaces·which
3 use·two·pointers·to·refer·to·a·range·of·elements·in·memory,·as·is3 use·two·pointers·to·refer·to·a·range·of·elements·in·memory,·as·is
4 common·in·C++.</p>4 common·in·C++.</p>
5 <h2·id="safety"><a·class="doc-anchor"·href="#safety">§</a>Safety</h2>5 <h2·id="safety"><a·class="doc-anchor"·href="#safety">§</a>Safety</h2>
6 <p>Behavior·is·undefined·if·any·of·the·following·conditions·are·violated:</p>6 <p>Behavior·is·undefined·if·any·of·the·following·conditions·are·violated:</p>
7 <ul>7 <ul>
8 <li>8 <li>
9 <p>The·<code>start</code>·pointer·of·the·range·must·be·a·non-null,·<a·href="https://doc.rust-lang.org/1.84.0/core/ptr/index.html#safety"·title="mod·core::ptr">valid</a>·and·properly·aligned·pointer9 <p>The·<code>start</code>·pointer·of·the·range·must·be·a·non-null,·<a·href="../../core/ptr/index.html#safety"·title="mod·core::ptr">valid</a>·and·properly·aligned·pointer
10 to·the·first·element·of·a·slice.</p>10 to·the·first·element·of·a·slice.</p>
11 </li>11 </li>
12 <li>12 <li>
13 <p>The·<code>end</code>·pointer·must·be·a·<a·href="https://doc.rust-lang.org/1.84.0/core/ptr/index.html#safety"·title="mod·core::ptr">valid</a>·and·properly·aligned·pointer·to·<em>one·past</em>13 <p>The·<code>end</code>·pointer·must·be·a·<a·href="../../core/ptr/index.html#safety"·title="mod·core::ptr">valid</a>·and·properly·aligned·pointer·to·<em>one·past</em>
14 the·last·element,·such·that·the·offset·from·the·end·to·the·start·pointer·is14 the·last·element,·such·that·the·offset·from·the·end·to·the·start·pointer·is
15 the·length·of·the·slice.</p>15 the·length·of·the·slice.</p>
16 </li>16 </li>
17 <li>17 <li>
18 <p>The·entire·memory·range·of·this·slice·must·be·contained·within·a·single·allocated·object!18 <p>The·entire·memory·range·of·this·slice·must·be·contained·within·a·single·allocated·object!
19 Slices·can·never·span·across·multiple·allocated·objects.</p>19 Slices·can·never·span·across·multiple·allocated·objects.</p>
20 </li>20 </li>
Offset 24, 18 lines modifiedOffset 24, 18 lines modified
24 <li>24 <li>
25 <p>The·memory·referenced·by·the·returned·slice·must·not·be·mutated·for·the·duration25 <p>The·memory·referenced·by·the·returned·slice·must·not·be·mutated·for·the·duration
26 of·lifetime·<code>'a</code>,·except·inside·an·<code>UnsafeCell</code>.</p>26 of·lifetime·<code>'a</code>,·except·inside·an·<code>UnsafeCell</code>.</p>
27 </li>27 </li>
28 <li>28 <li>
29 <p>The·total·length·of·the·range·must·be·no·larger·than·<code>isize::MAX</code>,29 <p>The·total·length·of·the·range·must·be·no·larger·than·<code>isize::MAX</code>,
30 and·adding·that·size·to·<code>start</code>·must·not·“wrap·around”·the·address·space.30 and·adding·that·size·to·<code>start</code>·must·not·“wrap·around”·the·address·space.
31 See·the·safety·documentation·of·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.pointer.html#method.offset"·title="method·pointer::offset"><code>pointer::offset</code></a>.</p>31 See·the·safety·documentation·of·<a·href="../../core/primitive.pointer.html#method.offset"·title="method·pointer::offset"><code>pointer::offset</code></a>.</p>
32 </li>32 </li>
33 </ul>33 </ul>
34 <p>Note·that·a·range·created·from·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html#method.as_ptr_range"·title="method·slice::as_ptr_range"><code>slice::as_ptr_range</code></a>·fulfills·these·requirements.</p>34 <p>Note·that·a·range·created·from·<a·href="../../core/primitive.slice.html#method.as_ptr_range"·title="method·slice::as_ptr_range"><code>slice::as_ptr_range</code></a>·fulfills·these·requirements.</p>
35 <h2·id="panics"><a·class="doc-anchor"·href="#panics">§</a>Panics</h2>35 <h2·id="panics"><a·class="doc-anchor"·href="#panics">§</a>Panics</h2>
36 <p>This·function·panics·if·<code>T</code>·is·a·Zero-Sized·Type·(“ZST”).</p>36 <p>This·function·panics·if·<code>T</code>·is·a·Zero-Sized·Type·(“ZST”).</p>
37 <h2·id="caveat"><a·class="doc-anchor"·href="#caveat">§</a>Caveat</h2>37 <h2·id="caveat"><a·class="doc-anchor"·href="#caveat">§</a>Caveat</h2>
38 <p>The·lifetime·for·the·returned·slice·is·inferred·from·its·usage.·To38 <p>The·lifetime·for·the·returned·slice·is·inferred·from·its·usage.·To
39 prevent·accidental·misuse,·it’s·suggested·to·tie·the·lifetime·to·whichever39 prevent·accidental·misuse,·it’s·suggested·to·tie·the·lifetime·to·whichever
40 source·lifetime·is·safe·in·the·context,·such·as·by·providing·a·helper40 source·lifetime·is·safe·in·the·context,·such·as·by·providing·a·helper
41 function·taking·the·lifetime·of·a·host·value·for·the·slice,·or·by·explicit41 function·taking·the·lifetime·of·a·host·value·for·the·slice,·or·by·explicit
11.5 KB
./usr/share/doc/rust-doc/html/alloc/slice/fn.from_raw_parts.html
    
Offset 1, 37 lines modifiedOffset 1, 37 lines modified
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="Forms·a·slice·from·a·pointer·and·a·length."><title>from_raw_parts·in·alloc::slice·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·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"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»   2025-01-07)»(built»  from»      a»     source»       tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">from_<wbr>raw_<wbr>parts</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#safety"·title="Safety">Safety</a></li><li><a·href="#caveat"·title="Caveat">Caveat</a></li><li><a·href="#examples"·title="Examples">Examples</a><ul><li><a·href="#incorrect-usage"·title="Incorrect·usage">Incorrect·usage</a></li><li><a·href="#ffi-handling-null-pointers"·title="FFI:·Handling·null·pointers">FFI:·Handling·null·pointers</a></li></ul></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>slice</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">alloc</a>::<wbr><a·href="index.html">slice</a></span><h1>Function·<span·class="fn">from_raw_parts</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0,·const·since·1.64.0">1.36.0·(const:·1.64.0)</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/slice/raw.rs.html#123">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·const·unsafe·fn·from_raw_parts&lt;'a,·T&gt;(data:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.poin[·...·truncated·by·diffoscope;·len:·200,·SHA:·67877faf6947f75b8ca2086a6bb57efe3cd812f021b9f9c2c370cc39a6d838b4·...·]/core/primitive.slice.html">[T]</a></code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Forms·a·slice·from·a·pointer·and·a·length.</p>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="Forms·a·slice·from·a·pointer·and·a·length."><title>from_raw_parts·in·alloc::slice·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·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"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»   2025-01-07)»(built»  from»      a»     source»       tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">from_<wbr>raw_<wbr>parts</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#safety"·title="Safety">Safety</a></li><li><a·href="#caveat"·title="Caveat">Caveat</a></li><li><a·href="#examples"·title="Examples">Examples</a><ul><li><a·href="#incorrect-usage"·title="Incorrect·usage">Incorrect·usage</a></li><li><a·href="#ffi-handling-null-pointers"·title="FFI:·Handling·null·pointers">FFI:·Handling·null·pointers</a></li></ul></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>slice</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">alloc</a>::<wbr><a·href="index.html">slice</a></span><h1>Function·<span·class="fn">from_raw_parts</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0,·const·since·1.64.0">1.36.0·(const:·1.64.0)</span>···<a·class="src"·href="../../src/core/slice/raw.rs.html#123">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·const·unsafe·fn·from_raw_parts&lt;'a,·T&gt;(data:·<a·class="primitive"·href="../../core/primitive.pointer.html">*const·T</a>,·len:·<a·class="primitive"·href[·...·truncated·by·diffoscope;·len:·92,·SHA:·4b53de10ce32a7528afba1f6b6b02bf040f9ff132f6873092fa01770633dce9d·...·]/core/primitive.slice.html">[T]</a></code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Forms·a·slice·from·a·pointer·and·a·length.</p>
2 <p>The·<code>len</code>·argument·is·the·number·of·<strong>elements</strong>,·not·the·number·of·bytes.</p>2 <p>The·<code>len</code>·argument·is·the·number·of·<strong>elements</strong>,·not·the·number·of·bytes.</p>
3 <h2·id="safety"><a·class="doc-anchor"·href="#safety">§</a>Safety</h2>3 <h2·id="safety"><a·class="doc-anchor"·href="#safety">§</a>Safety</h2>
4 <p>Behavior·is·undefined·if·any·of·the·following·conditions·are·violated:</p>4 <p>Behavior·is·undefined·if·any·of·the·following·conditions·are·violated:</p>
5 <ul>5 <ul>
6 <li>6 <li>
7 <p><code>data</code>·must·be·non-null,·<a·href="https://doc.rust-lang.org/1.84.0/core/ptr/index.html#safety"·title="mod·core::ptr">valid</a>·for·reads·for·<code>len·*·mem::size_of::&lt;T&gt;()</code>·many·bytes,7 <p><code>data</code>·must·be·non-null,·<a·href="../../core/ptr/index.html#safety"·title="mod·core::ptr">valid</a>·for·reads·for·<code>len·*·mem::size_of::&lt;T&gt;()</code>·many·bytes,
8 and·it·must·be·properly·aligned.·This·means·in·particular:</p>8 and·it·must·be·properly·aligned.·This·means·in·particular:</p>
9 <ul>9 <ul>
10 <li>The·entire·memory·range·of·this·slice·must·be·contained·within·a·single·allocated·object!10 <li>The·entire·memory·range·of·this·slice·must·be·contained·within·a·single·allocated·object!
11 Slices·can·never·span·across·multiple·allocated·objects.·See·<a·href="#incorrect-usage">below</a>11 Slices·can·never·span·across·multiple·allocated·objects.·See·<a·href="#incorrect-usage">below</a>
12 for·an·example·incorrectly·not·taking·this·into·account.</li>12 for·an·example·incorrectly·not·taking·this·into·account.</li>
13 <li><code>data</code>·must·be·non-null·and·aligned·even·for·zero-length·slices·or·slices·of·ZSTs.·One13 <li><code>data</code>·must·be·non-null·and·aligned·even·for·zero-length·slices·or·slices·of·ZSTs.·One
14 reason·for·this·is·that·enum·layout·optimizations·may·rely·on·references14 reason·for·this·is·that·enum·layout·optimizations·may·rely·on·references
15 (including·slices·of·any·length)·being·aligned·and·non-null·to·distinguish15 (including·slices·of·any·length)·being·aligned·and·non-null·to·distinguish
16 them·from·other·data.·You·can·obtain·a·pointer·that·is·usable·as·<code>data</code>16 them·from·other·data.·You·can·obtain·a·pointer·that·is·usable·as·<code>data</code>
17 for·zero-length·slices·using·<a·href="https://doc.rust-lang.org/1.84.0/core/ptr/non_null/struct.NonNull.html#method.dangling"·title="associated·function·core::ptr::non_null::NonNull::dangling"><code>NonNull::dangling()</code></a>.</li>17 for·zero-length·slices·using·<a·href="../../core/ptr/non_null/struct.NonNull.html#method.dangling"·title="associated·function·core::ptr::non_null::NonNull::dangling"><code>NonNull::dangling()</code></a>.</li>
18 </ul>18 </ul>
19 </li>19 </li>
20 <li>20 <li>
21 <p><code>data</code>·must·point·to·<code>len</code>·consecutive·properly·initialized·values·of·type·<code>T</code>.</p>21 <p><code>data</code>·must·point·to·<code>len</code>·consecutive·properly·initialized·values·of·type·<code>T</code>.</p>
22 </li>22 </li>
23 <li>23 <li>
24 <p>The·memory·referenced·by·the·returned·slice·must·not·be·mutated·for·the·duration24 <p>The·memory·referenced·by·the·returned·slice·must·not·be·mutated·for·the·duration
25 of·lifetime·<code>'a</code>,·except·inside·an·<code>UnsafeCell</code>.</p>25 of·lifetime·<code>'a</code>,·except·inside·an·<code>UnsafeCell</code>.</p>
26 </li>26 </li>
27 <li>27 <li>
28 <p>The·total·size·<code>len·*·mem::size_of::&lt;T&gt;()</code>·of·the·slice·must·be·no·larger·than·<code>isize::MAX</code>,28 <p>The·total·size·<code>len·*·mem::size_of::&lt;T&gt;()</code>·of·the·slice·must·be·no·larger·than·<code>isize::MAX</code>,
29 and·adding·that·size·to·<code>data</code>·must·not·“wrap·around”·the·address·space.29 and·adding·that·size·to·<code>data</code>·must·not·“wrap·around”·the·address·space.
30 See·the·safety·documentation·of·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.pointer.html#method.offset"·title="method·pointer::offset"><code>pointer::offset</code></a>.</p>30 See·the·safety·documentation·of·<a·href="../../core/primitive.pointer.html#method.offset"·title="method·pointer::offset"><code>pointer::offset</code></a>.</p>
31 </li>31 </li>
32 </ul>32 </ul>
33 <h2·id="caveat"><a·class="doc-anchor"·href="#caveat">§</a>Caveat</h2>33 <h2·id="caveat"><a·class="doc-anchor"·href="#caveat">§</a>Caveat</h2>
34 <p>The·lifetime·for·the·returned·slice·is·inferred·from·its·usage.·To34 <p>The·lifetime·for·the·returned·slice·is·inferred·from·its·usage.·To
35 prevent·accidental·misuse,·it’s·suggested·to·tie·the·lifetime·to·whichever35 prevent·accidental·misuse,·it’s·suggested·to·tie·the·lifetime·to·whichever
36 source·lifetime·is·safe·in·the·context,·such·as·by·providing·a·helper36 source·lifetime·is·safe·in·the·context,·such·as·by·providing·a·helper
37 function·taking·the·lifetime·of·a·host·value·for·the·slice,·or·by·explicit37 function·taking·the·lifetime·of·a·host·value·for·the·slice,·or·by·explicit
10.9 KB
./usr/share/doc/rust-doc/html/alloc/slice/fn.from_raw_parts_mut.html
    
Offset 1, 36 lines modifiedOffset 1, 36 lines modified
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="Performs·the·same·functionality·as·`from_raw_parts`,·except·that·a·mutable·slice·is·returned."><title>from_raw_parts_mut·in·alloc::slice·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·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"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»2025-01-07)»     (built»       from»   a»  source»    tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">from_<wbr>raw_<wbr>parts_<wbr>mut</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#safety"·title="Safety">Safety</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>slice</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">alloc</a>::<wbr><a·href="index.html">slice</a></span><h1>Function·<span·class="fn">from_raw_parts_mut</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0,·const·since·1.83.0">1.36.0·(const:·1.83.0)</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/slice/raw.rs.html#177">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·const·unsafe·fn·from_raw_parts_mut&lt;'a,·T&gt;(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="Performs·the·same·functionality·as·`from_raw_parts`,·except·that·a·mutable·slice·is·returned."><title>from_raw_parts_mut·in·alloc::slice·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·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"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»2025-01-07)»     (built»       from»   a»  source»    tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">from_<wbr>raw_<wbr>parts_<wbr>mut</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#safety"·title="Safety">Safety</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>slice</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">alloc</a>::<wbr><a·href="index.html">slice</a></span><h1>Function·<span·class="fn">from_raw_parts_mut</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0,·const·since·1.83.0">1.36.0·(const:·1.83.0)</span>···<a·class="src"·href="../../src/core/slice/raw.rs.html#177">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·const·unsafe·fn·from_raw_parts_mut&lt;'a,·T&gt;(
2 ····data:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.pointer.html">*mut·T</a>,2 ····data:·<a·class="primitive"·href="../../core/primitive.pointer.html">*mut·T</a>,
3 ····len:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.usize.html">usize</a>,3 ····len:·<a·class="primitive"·href="../../core/primitive.usize.html">usize</a>,
4 )·-&gt;·&amp;'a·mut·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html">[T]</a></code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Performs·the·same·functionality·as·<a·href="fn.from_raw_parts.html"·title="fn·alloc::slice::from_raw_parts"><code>from_raw_parts</code></a>,·except·that·a4 )·-&gt;·&amp;'a·mut·<a·class="primitive"·href="../../core/primitive.slice.html">[T]</a></code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Performs·the·same·functionality·as·<a·href="fn.from_raw_parts.html"·title="fn·alloc::slice::from_raw_parts"><code>from_raw_parts</code></a>,·except·that·a
5 mutable·slice·is·returned.</p>5 mutable·slice·is·returned.</p>
6 <h2·id="safety"><a·class="doc-anchor"·href="#safety">§</a>Safety</h2>6 <h2·id="safety"><a·class="doc-anchor"·href="#safety">§</a>Safety</h2>
7 <p>Behavior·is·undefined·if·any·of·the·following·conditions·are·violated:</p>7 <p>Behavior·is·undefined·if·any·of·the·following·conditions·are·violated:</p>
8 <ul>8 <ul>
9 <li>9 <li>
10 <p><code>data</code>·must·be·non-null,·<a·href="https://doc.rust-lang.org/1.84.0/core/ptr/index.html#safety"·title="mod·core::ptr">valid</a>·for·both·reads·and·writes·for·<code>len·*·mem::size_of::&lt;T&gt;()</code>·many·bytes,10 <p><code>data</code>·must·be·non-null,·<a·href="../../core/ptr/index.html#safety"·title="mod·core::ptr">valid</a>·for·both·reads·and·writes·for·<code>len·*·mem::size_of::&lt;T&gt;()</code>·many·bytes,
11 and·it·must·be·properly·aligned.·This·means·in·particular:</p>11 and·it·must·be·properly·aligned.·This·means·in·particular:</p>
12 <ul>12 <ul>
13 <li>The·entire·memory·range·of·this·slice·must·be·contained·within·a·single·allocated·object!13 <li>The·entire·memory·range·of·this·slice·must·be·contained·within·a·single·allocated·object!
14 Slices·can·never·span·across·multiple·allocated·objects.</li>14 Slices·can·never·span·across·multiple·allocated·objects.</li>
15 <li><code>data</code>·must·be·non-null·and·aligned·even·for·zero-length·slices·or·slices·of·ZSTs.·One15 <li><code>data</code>·must·be·non-null·and·aligned·even·for·zero-length·slices·or·slices·of·ZSTs.·One
16 reason·for·this·is·that·enum·layout·optimizations·may·rely·on·references16 reason·for·this·is·that·enum·layout·optimizations·may·rely·on·references
17 (including·slices·of·any·length)·being·aligned·and·non-null·to·distinguish17 (including·slices·of·any·length)·being·aligned·and·non-null·to·distinguish
18 them·from·other·data.·You·can·obtain·a·pointer·that·is·usable·as·<code>data</code>18 them·from·other·data.·You·can·obtain·a·pointer·that·is·usable·as·<code>data</code>
19 for·zero-length·slices·using·<a·href="https://doc.rust-lang.org/1.84.0/core/ptr/non_null/struct.NonNull.html#method.dangling"·title="associated·function·core::ptr::non_null::NonNull::dangling"><code>NonNull::dangling()</code></a>.</li>19 for·zero-length·slices·using·<a·href="../../core/ptr/non_null/struct.NonNull.html#method.dangling"·title="associated·function·core::ptr::non_null::NonNull::dangling"><code>NonNull::dangling()</code></a>.</li>
20 </ul>20 </ul>
21 </li>21 </li>
22 <li>22 <li>
23 <p><code>data</code>·must·point·to·<code>len</code>·consecutive·properly·initialized·values·of·type·<code>T</code>.</p>23 <p><code>data</code>·must·point·to·<code>len</code>·consecutive·properly·initialized·values·of·type·<code>T</code>.</p>
24 </li>24 </li>
25 <li>25 <li>
26 <p>The·memory·referenced·by·the·returned·slice·must·not·be·accessed·through·any·other·pointer26 <p>The·memory·referenced·by·the·returned·slice·must·not·be·accessed·through·any·other·pointer
27 (not·derived·from·the·return·value)·for·the·duration·of·lifetime·<code>'a</code>.27 (not·derived·from·the·return·value)·for·the·duration·of·lifetime·<code>'a</code>.
28 Both·read·and·write·accesses·are·forbidden.</p>28 Both·read·and·write·accesses·are·forbidden.</p>
29 </li>29 </li>
30 <li>30 <li>
31 <p>The·total·size·<code>len·*·mem::size_of::&lt;T&gt;()</code>·of·the·slice·must·be·no·larger·than·<code>isize::MAX</code>,31 <p>The·total·size·<code>len·*·mem::size_of::&lt;T&gt;()</code>·of·the·slice·must·be·no·larger·than·<code>isize::MAX</code>,
32 and·adding·that·size·to·<code>data</code>·must·not·“wrap·around”·the·address·space.32 and·adding·that·size·to·<code>data</code>·must·not·“wrap·around”·the·address·space.
33 See·the·safety·documentation·of·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.pointer.html#method.offset"·title="method·pointer::offset"><code>pointer::offset</code></a>.</p>33 See·the·safety·documentation·of·<a·href="../../core/primitive.pointer.html#method.offset"·title="method·pointer::offset"><code>pointer::offset</code></a>.</p>
34 </li>34 </li>
35 </ul>35 </ul>
36 </div></details></section></div></main></body></html>36 </div></details></section></div></main></body></html>
7.42 KB
./usr/share/doc/rust-doc/html/alloc/slice/fn.from_ref.html
    
Offset 1, 2 lines modifiedOffset 1, 2 lines modified
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="Converts·a·reference·to·T·into·a·slice·of·length·1·(without·copying)."><title>from_ref·in·alloc::slice·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·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"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»  2025-01-07)»       (built» from»     a»    source»      tarball)</div><div·class="sidebar-elems"><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>slice</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">alloc</a>::<wbr><a·href="index.html">slice</a></span><h1>Function·<span·class="fn">from_ref</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0,·const·since·1.63.0">1.36.0·(const:·1.63.0)</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/slice/raw.rs.html#200">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·const·fn·from_ref&lt;T&gt;(s:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;T</[·...·truncated·by·diffoscope;·len:·74,·SHA:·53ef91e962b3b17dca76feb72485b49b183f1a43b1fa9f07943d8e426d54b632·...·]/core/primitive.slice.html">[T]</a></code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Converts·a·reference·to·T·into·a·slice·of·length·1·(without·copying).</p>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="Converts·a·reference·to·T·into·a·slice·of·length·1·(without·copying)."><title>from_ref·in·alloc::slice·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·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"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»  2025-01-07)»       (built» from»     a»    source»      tarball)</div><div·class="sidebar-elems"><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>slice</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">alloc</a>::<wbr><a·href="index.html">slice</a></span><h1>Function·<span·class="fn">from_ref</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0,·const·since·1.63.0">1.36.0·(const:·1.63.0)</span>···<a·class="src"·href="../../src/core/slice/raw.rs.html#200">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·const·fn·from_ref&lt;T&gt;(s:·<a·class="primitive"·href="../../core/primitive.reference.html">&amp;T</a>)·-&gt;·&amp;<a·class="primitive"·href="../../core/primitive.slice.html">[T]</a></code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Converts·a·reference·to·T·into·a·slice·of·length·1·(without·copying).</p>
2 </div></details></section></div></main></body></html>2 </div></details></section></div></main></body></html>
13.9 KB
./usr/share/doc/rust-doc/html/alloc/slice/fn.range.html
    
Offset 1, 28 lines modifiedOffset 1, 28 lines modified
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="Performs·bounds·checking·of·a·range."><title>range·in·alloc::slice·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·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"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»       2025-01-07)»    (built»      from»  a» source»   tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">range</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#panics"·title="Panics">Panics</a></li><li><a·href="#examples"·title="Examples">Examples</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>slice</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">alloc</a>::<wbr><a·href="index.html">slice</a></span><h1>Function·<span·class="fn">range</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="https://doc.rust-lang.org/1.84.0/src/core/slice/index.rs.html#835-837">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·fn·range&lt;R&gt;(range:·R,·bounds:·<a·class="struct"·href="https://doc.rust-lang.org/1.84.0/core/ops/range/struct.RangeTo.[·...·truncated·by·diffoscope;·len:·372,·SHA:·9eadca93ba740a7c25db7c3ec576694b241dd984087ba2f6fcb3a6b74209bf4d·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where1 <!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="Performs·bounds·checking·of·a·range."><title>range·in·alloc::slice·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·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"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»       2025-01-07)»    (built»      from»  a» source»   tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">range</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#panics"·title="Panics">Panics</a></li><li><a·href="#examples"·title="Examples">Examples</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>slice</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">alloc</a>::<wbr><a·href="index.html">slice</a></span><h1>Function·<span·class="fn">range</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/core/slice/index.rs.html#835-837">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·fn·range&lt;R&gt;(range:·R,·bounds:·<a·class="struct"·href="../../core/ops/range/struct.RangeTo.html"·title="struct·core::ops::range::RangeTo">RangeTo[·...·truncated·by·diffoscope;·len:·237,·SHA:·11efb6f6cb4abfeb419353dc81666551c858f6abf079a883e7c5ae42980559c4·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
2 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/range/trait.RangeBounds.html"·title="trait·core::ops::range::RangeBounds">RangeBounds</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.usize.html">usize</a>&gt;,</div></code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>slice_range</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/76393">#76393</a>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Performs·bounds·checking·of·a·range.</p>2 ····R:·<a·class="trait"·href="../../core/ops/range/trait.RangeBounds.html"·title="trait·core::ops::range::RangeBounds">RangeBounds</a>&lt;<a·class="primitive"·href="../../core/primitive.usize.html">usize</a>&gt;,</div></code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>slice_range</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/76393">#76393</a>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Performs·bounds·checking·of·a·range.</p>
3 <p>This·method·is·similar·to·<a·href="https://doc.rust-lang.org/1.84.0/core/ops/index/trait.Index.html#tymethod.index"·title="method·core::ops::index::Index::index"><code>Index::index</code></a>·for·slices,·but·it·returns·a3 <p>This·method·is·similar·to·<a·href="../../core/ops/index/trait.Index.html#tymethod.index"·title="method·core::ops::index::Index::index"><code>Index::index</code></a>·for·slices,·but·it·returns·a
4 <a·href="https://doc.rust-lang.org/1.84.0/core/ops/range/struct.Range.html"·title="struct·core::ops::range::Range"><code>Range</code></a>·equivalent·to·<code>range</code>.·You·can·use·this·method·to·turn·any·range4 <a·href="../../core/ops/range/struct.Range.html"·title="struct·core::ops::range::Range"><code>Range</code></a>·equivalent·to·<code>range</code>.·You·can·use·this·method·to·turn·any·range
5 into·<code>start</code>·and·<code>end</code>·values.</p>5 into·<code>start</code>·and·<code>end</code>·values.</p>
6 <p><code>bounds</code>·is·the·range·of·the·slice·to·use·for·bounds·checking.·It·should6 <p><code>bounds</code>·is·the·range·of·the·slice·to·use·for·bounds·checking.·It·should
7 be·a·<a·href="https://doc.rust-lang.org/1.84.0/core/ops/range/struct.RangeTo.html"·title="struct·core::ops::range::RangeTo"><code>RangeTo</code></a>·range·that·ends·at·the·length·of·the·slice.</p>7 be·a·<a·href="../../core/ops/range/struct.RangeTo.html"·title="struct·core::ops::range::RangeTo"><code>RangeTo</code></a>·range·that·ends·at·the·length·of·the·slice.</p>
8 <p>The·returned·<a·href="https://doc.rust-lang.org/1.84.0/core/ops/range/struct.Range.html"·title="struct·core::ops::range::Range"><code>Range</code></a>·is·safe·to·pass·to·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html#method.get_unchecked"·title="method·slice::get_unchecked"><code>slice::get_unchecked</code></a>·and8 <p>The·returned·<a·href="../../core/ops/range/struct.Range.html"·title="struct·core::ops::range::Range"><code>Range</code></a>·is·safe·to·pass·to·<a·href="../../core/primitive.slice.html#method.get_unchecked"·title="method·slice::get_unchecked"><code>slice::get_unchecked</code></a>·and
9 <a·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html#method.get_unchecked_mut"·title="method·slice::get_unchecked_mut"><code>slice::get_unchecked_mut</code></a>·for·slices·with·the·given·range.</p>9 <a·href="../../core/primitive.slice.html#method.get_unchecked_mut"·title="method·slice::get_unchecked_mut"><code>slice::get_unchecked_mut</code></a>·for·slices·with·the·given·range.</p>
10 <h2·id="panics"><a·class="doc-anchor"·href="#panics">§</a>Panics</h2>10 <h2·id="panics"><a·class="doc-anchor"·href="#panics">§</a>Panics</h2>
11 <p>Panics·if·<code>range</code>·would·be·out·of·bounds.</p>11 <p>Panics·if·<code>range</code>·would·be·out·of·bounds.</p>
12 <h2·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h2>12 <h2·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h2>
13 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(slice_range)]13 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(slice_range)]
  
14 </span><span·class="kw">use·</span>std::slice;14 </span><span·class="kw">use·</span>std::slice;
  
15 <span·class="kw">let·</span>v·=·[<span·class="number">10</span>,·<span·class="number">40</span>,·<span·class="number">30</span>];15 <span·class="kw">let·</span>v·=·[<span·class="number">10</span>,·<span·class="number">40</span>,·<span·class="number">30</span>];
16 <span·class="macro">assert_eq!</span>(<span·class="number">1</span>..<span·class="number">2</span>,·slice::range(<span·class="number">1</span>..<span·class="number">2</span>,·..v.len()));16 <span·class="macro">assert_eq!</span>(<span·class="number">1</span>..<span·class="number">2</span>,·slice::range(<span·class="number">1</span>..<span·class="number">2</span>,·..v.len()));
17 <span·class="macro">assert_eq!</span>(<span·class="number">0</span>..<span·class="number">2</span>,·slice::range(..<span·class="number">2</span>,·..v.len()));17 <span·class="macro">assert_eq!</span>(<span·class="number">0</span>..<span·class="number">2</span>,·slice::range(..<span·class="number">2</span>,·..v.len()));
18 <span·class="macro">assert_eq!</span>(<span·class="number">1</span>..<span·class="number">3</span>,·slice::range(<span·class="number">1</span>..,·..v.len()));</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Bfeature(slice_range)%5D%0A%0Afn+main()+%7B%0A++++use+std::slice;%0A++++%0A++++let+v+=+%5B10,+40,+30%5D;%0A++++assert_eq!(1..2,+slice::range(1..2,+..v.len()));%0A++++assert_eq!(0..2,+slice::range(..2,+..v.len()));%0A++++assert_eq!(1..3,+slice::range(1..,+..v.len()));%0A%7D&amp;version=nightly&amp;edition=2021"></a></div>18 <span·class="macro">assert_eq!</span>(<span·class="number">1</span>..<span·class="number">3</span>,·slice::range(<span·class="number">1</span>..,·..v.len()));</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Bfeature(slice_range)%5D%0A%0Afn+main()+%7B%0A++++use+std::slice;%0A++++%0A++++let+v+=+%5B10,+40,+30%5D;%0A++++assert_eq!(1..2,+slice::range(1..2,+..v.len()));%0A++++assert_eq!(0..2,+slice::range(..2,+..v.len()));%0A++++assert_eq!(1..3,+slice::range(1..,+..v.len()));%0A%7D&amp;version=nightly&amp;edition=2021"></a></div>
19 <p>Panics·when·<a·href="https://doc.rust-lang.org/1.84.0/core/ops/index/trait.Index.html#tymethod.index"·title="method·core::ops::index::Index::index"><code>Index::index</code></a>·would·panic:</p>19 <p>Panics·when·<a·href="../../core/ops/index/trait.Index.html#tymethod.index"·title="method·core::ops::index::Index::index"><code>Index::index</code></a>·would·panic:</p>
  
20 <div·class="example-wrap·should_panic"><a·href="#"·class="tooltip"·title="This·example·panics">ⓘ</a><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(slice_range)]20 <div·class="example-wrap·should_panic"><a·href="#"·class="tooltip"·title="This·example·panics">ⓘ</a><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(slice_range)]
  
21 </span><span·class="kw">use·</span>std::slice;21 </span><span·class="kw">use·</span>std::slice;
  
22 <span·class="kw">let·_·</span>=·slice::range(<span·class="number">2</span>..<span·class="number">1</span>,·..<span·class="number">3</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Bfeature(slice_range)%5D%0A%0Afn+main()+%7B%0A++++use+std::slice;%0A++++%0A++++let+_+=+slice::range(2..1,+..3);%0A%7D&amp;version=nightly&amp;edition=2021"></a></div>22 <span·class="kw">let·_·</span>=·slice::range(<span·class="number">2</span>..<span·class="number">1</span>,·..<span·class="number">3</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Bfeature(slice_range)%5D%0A%0Afn+main()+%7B%0A++++use+std::slice;%0A++++%0A++++let+_+=+slice::range(2..1,+..3);%0A%7D&amp;version=nightly&amp;edition=2021"></a></div>
  
12.5 KB
./usr/share/doc/rust-doc/html/alloc/slice/fn.try_range.html
    
Offset 1, 20 lines modifiedOffset 1, 20 lines modified
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="Performs·bounds·checking·of·a·range·without·panicking."><title>try_range·in·alloc::slice·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·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"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»   2025-01-07)»(built»  from»      a»     source»       tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">try_<wbr>range</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#examples"·title="Examples">Examples</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>slice</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">alloc</a>::<wbr><a·href="index.html">slice</a></span><h1>Function·<span·class="fn">try_range</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="https://doc.rust-lang.org/1.84.0/src/core/slice/index.rs.html#899-901">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·fn·try_range&lt;R&gt;(range:·R,·bounds:·<a·class="struct"·href="https://doc.rust-lang.org/1.84.0/core/ops/range/struct.Rang[·...·truncated·by·diffoscope;·len:·509,·SHA:·3c8d834cfe885d86bec5eaa8cad87313da3d10ffa67242bb3e3a00a6567889fb·...·]/core/primitive.usize.html">usize</a>&gt;&gt;<div·class="where">where1 <!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="Performs·bounds·checking·of·a·range·without·panicking."><title>try_range·in·alloc::slice·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·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"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»   2025-01-07)»(built»  from»      a»     source»       tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">try_<wbr>range</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#examples"·title="Examples">Examples</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>slice</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">alloc</a>::<wbr><a·href="index.html">slice</a></span><h1>Function·<span·class="fn">try_range</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/core/slice/index.rs.html#899-901">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·fn·try_range&lt;R&gt;(range:·R,·bounds:·<a·class="struct"·href="../../core/ops/range/struct.RangeTo.html"·title="struct·core::ops::range::RangeTo">Ran[·...·truncated·by·diffoscope;·len:·347,·SHA:·64cb7105337111837c8b8ca1c43aa3652285ccdd55140b850866ba0591dee90a·...·]/core/primitive.usize.html">usize</a>&gt;&gt;<div·class="where">where
2 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/range/trait.RangeBounds.html"·title="trait·core::ops::range::RangeBounds">RangeBounds</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.usize.html">usize</a>&gt;,</div></code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>slice_range</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/76393">#76393</a>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Performs·bounds·checking·of·a·range·without·panicking.</p>2 ····R:·<a·class="trait"·href="../../core/ops/range/trait.RangeBounds.html"·title="trait·core::ops::range::RangeBounds">RangeBounds</a>&lt;<a·class="primitive"·href="../../core/primitive.usize.html">usize</a>&gt;,</div></code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>slice_range</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/76393">#76393</a>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Performs·bounds·checking·of·a·range·without·panicking.</p>
3 <p>This·is·a·version·of·<a·href="fn.range.html"·title="fn·alloc::slice::range"><code>range()</code></a>·that·returns·<a·href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html#variant.None"·title="variant·core::option::Option::None"><code>None</code></a>·instead·of·panicking.</p>3 <p>This·is·a·version·of·<a·href="fn.range.html"·title="fn·alloc::slice::range"><code>range()</code></a>·that·returns·<a·href="../../core/option/enum.Option.html#variant.None"·title="variant·core::option::Option::None"><code>None</code></a>·instead·of·panicking.</p>
4 <h2·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h2>4 <h2·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h2>
5 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(slice_range)]5 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(slice_range)]
  
6 </span><span·class="kw">use·</span>std::slice;6 </span><span·class="kw">use·</span>std::slice;
  
7 <span·class="kw">let·</span>v·=·[<span·class="number">10</span>,·<span·class="number">40</span>,·<span·class="number">30</span>];7 <span·class="kw">let·</span>v·=·[<span·class="number">10</span>,·<span·class="number">40</span>,·<span·class="number">30</span>];
8 <span·class="macro">assert_eq!</span>(<span·class="prelude-val">Some</span>(<span·class="number">1</span>..<span·class="number">2</span>),·slice::try_range(<span·class="number">1</span>..<span·class="number">2</span>,·..v.len()));8 <span·class="macro">assert_eq!</span>(<span·class="prelude-val">Some</span>(<span·class="number">1</span>..<span·class="number">2</span>),·slice::try_range(<span·class="number">1</span>..<span·class="number">2</span>,·..v.len()));
9 <span·class="macro">assert_eq!</span>(<span·class="prelude-val">Some</span>(<span·class="number">0</span>..<span·class="number">2</span>),·slice::try_range(..<span·class="number">2</span>,·..v.len()));9 <span·class="macro">assert_eq!</span>(<span·class="prelude-val">Some</span>(<span·class="number">0</span>..<span·class="number">2</span>),·slice::try_range(..<span·class="number">2</span>,·..v.len()));
10 <span·class="macro">assert_eq!</span>(<span·class="prelude-val">Some</span>(<span·class="number">1</span>..<span·class="number">3</span>),·slice::try_range(<span·class="number">1</span>..,·..v.len()));</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Bfeature(slice_range)%5D%0A%0Afn+main()+%7B%0A++++use+std::slice;%0A++++%0A++++let+v+=+%5B10,+40,+30%5D;%0A++++assert_eq!(Some(1..2),+slice::try_range(1..2,+..v.len()));%0A++++assert_eq!(Some(0..2),+slice::try_range(..2,+..v.len()));%0A++++assert_eq!(Some(1..3),+slice::try_range(1..,+..v.len()));%0A%7D&amp;version=nightly&amp;edition=2021"></a></div>10 <span·class="macro">assert_eq!</span>(<span·class="prelude-val">Some</span>(<span·class="number">1</span>..<span·class="number">3</span>),·slice::try_range(<span·class="number">1</span>..,·..v.len()));</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Bfeature(slice_range)%5D%0A%0Afn+main()+%7B%0A++++use+std::slice;%0A++++%0A++++let+v+=+%5B10,+40,+30%5D;%0A++++assert_eq!(Some(1..2),+slice::try_range(1..2,+..v.len()));%0A++++assert_eq!(Some(0..2),+slice::try_range(..2,+..v.len()));%0A++++assert_eq!(Some(1..3),+slice::try_range(1..,+..v.len()));%0A%7D&amp;version=nightly&amp;edition=2021"></a></div>
11 <p>Returns·<a·href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html#variant.None"·title="variant·core::option::Option::None"><code>None</code></a>·when·<a·href="https://doc.rust-lang.org/1.84.0/core/ops/index/trait.Index.html#tymethod.index"·title="method·core::ops::index::Index::index"><code>Index::index</code></a>·would·panic:</p>11 <p>Returns·<a·href="../../core/option/enum.Option.html#variant.None"·title="variant·core::option::Option::None"><code>None</code></a>·when·<a·href="../../core/ops/index/trait.Index.html#tymethod.index"·title="method·core::ops::index::Index::index"><code>Index::index</code></a>·would·panic:</p>
  
12 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(slice_range)]12 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(slice_range)]
  
13 </span><span·class="kw">use·</span>std::slice;13 </span><span·class="kw">use·</span>std::slice;
  
14 <span·class="macro">assert_eq!</span>(<span·class="prelude-val">None</span>,·slice::try_range(<span·class="number">2</span>..<span·class="number">1</span>,·..<span·class="number">3</span>));14 <span·class="macro">assert_eq!</span>(<span·class="prelude-val">None</span>,·slice::try_range(<span·class="number">2</span>..<span·class="number">1</span>,·..<span·class="number">3</span>));
15 <span·class="macro">assert_eq!</span>(<span·class="prelude-val">None</span>,·slice::try_range(<span·class="number">1</span>..<span·class="number">4</span>,·..<span·class="number">3</span>));15 <span·class="macro">assert_eq!</span>(<span·class="prelude-val">None</span>,·slice::try_range(<span·class="number">1</span>..<span·class="number">4</span>,·..<span·class="number">3</span>));
13.4 KB
./usr/share/doc/rust-doc/html/alloc/slice/index.html
    
Offset 1, 9 lines modifiedOffset 1, 9 lines modified
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="Utilities·for·the·slice·primitive·type."><title>alloc::slice·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="../sidebar-items1.84.0.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"><!--[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><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»       2025-01-07)»    (built»      from»  a» source»   tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Module·slice</a></h2><h3><a·href="#structs">Module·Items</a></h3><ul·class="block"><li><a·href="#structs"·title="Structs">Structs</a></li><li><a·href="#traits"·title="Traits">Traits</a></li><li><a·href="#functions"·title="Functions">Functions</a></li></ul></section><div·id="rustdoc-modnav"><h2·class="in-crate"><a·href="../index.html">In·crate·alloc</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">alloc</a></span><h1>Module·<span>slice</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../src/alloc/slice.rs.html#1-921">Source</a>·</span></div><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Utilities·for·the·slice·primitive·type.</p>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="Utilities·for·the·slice·primitive·type."><title>alloc::slice·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="../sidebar-items1.84.0.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"><!--[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><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»       2025-01-07)»    (built»      from»  a» source»   tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Module·slice</a></h2><h3><a·href="#structs">Module·Items</a></h3><ul·class="block"><li><a·href="#structs"·title="Structs">Structs</a></li><li><a·href="#traits"·title="Traits">Traits</a></li><li><a·href="#functions"·title="Functions">Functions</a></li></ul></section><div·id="rustdoc-modnav"><h2·class="in-crate"><a·href="../index.html">In·crate·alloc</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">alloc</a></span><h1>Module·<span>slice</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../src/alloc/slice.rs.html#1-921">Source</a>·</span></div><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Utilities·for·the·slice·primitive·type.</p>
2 <p><em><a·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html"·title="primitive·slice">See·also·the·slice·primitive·type</a>.</em></p>2 <p><em><a·href="../../core/primitive.slice.html"·title="primitive·slice">See·also·the·slice·primitive·type</a>.</em></p>
3 <p>Most·of·the·structs·in·this·module·are·iterator·types·which·can·only·be·created3 <p>Most·of·the·structs·in·this·module·are·iterator·types·which·can·only·be·created
4 using·a·certain·function.·For·example,·<code>slice.iter()</code>·yields·an·<a·href="struct.Iter.html"·title="struct·alloc::slice::Iter"><code>Iter</code></a>.</p>4 using·a·certain·function.·For·example,·<code>slice.iter()</code>·yields·an·<a·href="struct.Iter.html"·title="struct·alloc::slice::Iter"><code>Iter</code></a>.</p>
5 <p>A·few·functions·are·provided·to·create·a·slice·from·a·value·reference5 <p>A·few·functions·are·provided·to·create·a·slice·from·a·value·reference
6 or·from·a·raw·pointer.</p>6 or·from·a·raw·pointer.</p>
7 </div></details><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.ChunkBy.html"·title="struct·alloc::slice::ChunkBy">ChunkBy</a></div><div·class="desc·docblock-short">An·iterator·over·slice·in·(non-overlapping)·chunks·separated·by·a·predicate.</div></li><li><div·class="item-name"><a·class="struct"·href="struct.ChunkByMut.html"·title="struct·alloc::slice::ChunkByMut">Chunk<wbr>ByMut</a></div><div·class="desc·docblock-short">An·iterator·over·slice·in·(non-overlapping)·mutable·chunks·separated7 </div></details><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.ChunkBy.html"·title="struct·alloc::slice::ChunkBy">ChunkBy</a></div><div·class="desc·docblock-short">An·iterator·over·slice·in·(non-overlapping)·chunks·separated·by·a·predicate.</div></li><li><div·class="item-name"><a·class="struct"·href="struct.ChunkByMut.html"·title="struct·alloc::slice::ChunkByMut">Chunk<wbr>ByMut</a></div><div·class="desc·docblock-short">An·iterator·over·slice·in·(non-overlapping)·mutable·chunks·separated
8 by·a·predicate.</div></li><li><div·class="item-name"><a·class="struct"·href="struct.Chunks.html"·title="struct·alloc::slice::Chunks">Chunks</a></div><div·class="desc·docblock-short">An·iterator·over·a·slice·in·(non-overlapping)·chunks·(<code>chunk_size</code>·elements·at·a8 by·a·predicate.</div></li><li><div·class="item-name"><a·class="struct"·href="struct.Chunks.html"·title="struct·alloc::slice::Chunks">Chunks</a></div><div·class="desc·docblock-short">An·iterator·over·a·slice·in·(non-overlapping)·chunks·(<code>chunk_size</code>·elements·at·a
9 time),·starting·at·the·beginning·of·the·slice.</div></li><li><div·class="item-name"><a·class="struct"·href="struct.ChunksExact.html"·title="struct·alloc::slice::ChunksExact">Chunks<wbr>Exact</a></div><div·class="desc·docblock-short">An·iterator·over·a·slice·in·(non-overlapping)·chunks·(<code>chunk_size</code>·elements·at·a9 time),·starting·at·the·beginning·of·the·slice.</div></li><li><div·class="item-name"><a·class="struct"·href="struct.ChunksExact.html"·title="struct·alloc::slice::ChunksExact">Chunks<wbr>Exact</a></div><div·class="desc·docblock-short">An·iterator·over·a·slice·in·(non-overlapping)·chunks·(<code>chunk_size</code>·elements·at·a
Offset 26, 9 lines modifiedOffset 26, 9 lines modified
26 by·elements·that·match·<code>pred</code>.·Unlike·<code>SplitMut</code>,·it·contains·the·matched26 by·elements·that·match·<code>pred</code>.·Unlike·<code>SplitMut</code>,·it·contains·the·matched
27 parts·in·the·ends·of·the·subslices.</div></li><li><div·class="item-name"><a·class="struct"·href="struct.SplitMut.html"·title="struct·alloc::slice::SplitMut">Split<wbr>Mut</a></div><div·class="desc·docblock-short">An·iterator·over·the·mutable·subslices·of·the·vector·which·are·separated27 parts·in·the·ends·of·the·subslices.</div></li><li><div·class="item-name"><a·class="struct"·href="struct.SplitMut.html"·title="struct·alloc::slice::SplitMut">Split<wbr>Mut</a></div><div·class="desc·docblock-short">An·iterator·over·the·mutable·subslices·of·the·vector·which·are·separated
28 by·elements·that·match·<code>pred</code>.</div></li><li><div·class="item-name"><a·class="struct"·href="struct.SplitN.html"·title="struct·alloc::slice::SplitN">SplitN</a></div><div·class="desc·docblock-short">An·iterator·over·subslices·separated·by·elements·that·match·a·predicate28 by·elements·that·match·<code>pred</code>.</div></li><li><div·class="item-name"><a·class="struct"·href="struct.SplitN.html"·title="struct·alloc::slice::SplitN">SplitN</a></div><div·class="desc·docblock-short">An·iterator·over·subslices·separated·by·elements·that·match·a·predicate
29 function,·limited·to·a·given·number·of·splits.</div></li><li><div·class="item-name"><a·class="struct"·href="struct.SplitNMut.html"·title="struct·alloc::slice::SplitNMut">SplitN<wbr>Mut</a></div><div·class="desc·docblock-short">An·iterator·over·subslices·separated·by·elements·that·match·a·predicate29 function,·limited·to·a·given·number·of·splits.</div></li><li><div·class="item-name"><a·class="struct"·href="struct.SplitNMut.html"·title="struct·alloc::slice::SplitNMut">SplitN<wbr>Mut</a></div><div·class="desc·docblock-short">An·iterator·over·subslices·separated·by·elements·that·match·a·predicate
30 function,·limited·to·a·given·number·of·splits.</div></li><li><div·class="item-name"><a·class="struct"·href="struct.Windows.html"·title="struct·alloc::slice::Windows">Windows</a></div><div·class="desc·docblock-short">An·iterator·over·overlapping·subslices·of·length·<code>size</code>.</div></li><li><div·class="item-name"><a·class="struct"·href="struct.ArrayChunks.html"·title="struct·alloc::slice::ArrayChunks">Array<wbr>Chunks</a><wbr><span·class="stab·unstable"·title="">Experimental</span></div><div·class="desc·docblock-short">An·iterator·over·a·slice·in·(non-overlapping)·chunks·(<code>N</code>·elements·at·a30 function,·limited·to·a·given·number·of·splits.</div></li><li><div·class="item-name"><a·class="struct"·href="struct.Windows.html"·title="struct·alloc::slice::Windows">Windows</a></div><div·class="desc·docblock-short">An·iterator·over·overlapping·subslices·of·length·<code>size</code>.</div></li><li><div·class="item-name"><a·class="struct"·href="struct.ArrayChunks.html"·title="struct·alloc::slice::ArrayChunks">Array<wbr>Chunks</a><wbr><span·class="stab·unstable"·title="">Experimental</span></div><div·class="desc·docblock-short">An·iterator·over·a·slice·in·(non-overlapping)·chunks·(<code>N</code>·elements·at·a
31 time),·starting·at·the·beginning·of·the·slice.</div></li><li><div·class="item-name"><a·class="struct"·href="struct.ArrayChunksMut.html"·title="struct·alloc::slice::ArrayChunksMut">Array<wbr>Chunks<wbr>Mut</a><wbr><span·class="stab·unstable"·title="">Experimental</span></div><div·class="desc·docblock-short">An·iterator·over·a·slice·in·(non-overlapping)·mutable·chunks·(<code>N</code>·elements31 time),·starting·at·the·beginning·of·the·slice.</div></li><li><div·class="item-name"><a·class="struct"·href="struct.ArrayChunksMut.html"·title="struct·alloc::slice::ArrayChunksMut">Array<wbr>Chunks<wbr>Mut</a><wbr><span·class="stab·unstable"·title="">Experimental</span></div><div·class="desc·docblock-short">An·iterator·over·a·slice·in·(non-overlapping)·mutable·chunks·(<code>N</code>·elements
32 at·a·time),·starting·at·the·beginning·of·the·slice.</div></li><li><div·class="item-name"><a·class="struct"·href="struct.ArrayWindows.html"·title="struct·alloc::slice::ArrayWindows">Array<wbr>Windows</a><wbr><span·class="stab·unstable"·title="">Experimental</span></div><div·class="desc·docblock-short">A·windowed·iterator·over·a·slice·in·overlapping·chunks·(<code>N</code>·elements·at·a32 at·a·time),·starting·at·the·beginning·of·the·slice.</div></li><li><div·class="item-name"><a·class="struct"·href="struct.ArrayWindows.html"·title="struct·alloc::slice::ArrayWindows">Array<wbr>Windows</a><wbr><span·class="stab·unstable"·title="">Experimental</span></div><div·class="desc·docblock-short">A·windowed·iterator·over·a·slice·in·overlapping·chunks·(<code>N</code>·elements·at·a
33 time),·starting·at·the·beginning·of·the·slice</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.SliceIndex.html"·title="trait·alloc::slice::SliceIndex">Slice<wbr>Index</a></div><div·class="desc·docblock-short">A·helper·trait·used·for·indexing·operations.</div></li><li><div·class="item-name"><a·class="trait"·href="trait.Concat.html"·title="trait·alloc::slice::Concat">Concat</a><wbr><span·class="stab·unstable"·title="">Experimental</span></div><div·class="desc·docblock-short">Helper·trait·for·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html#method.concat"·title="method·slice::concat"><code>[T]::concat</code></a>.</div></li><li><div·class="item-name"><a·class="trait"·href="trait.Join.html"·title="trait·alloc::slice::Join">Join</a><wbr>[·...·truncated·by·diffoscope;·len:·153,·SHA:·2f294fa265496007768c420f9b52833aa2906fe31fb2c5bc9e9689d7ab5568f3·...·]/core/primitive.slice.html#method.join"·title="method·slice::join"><code>[T]::join</code></a></div></li></ul><h2·id="functions"·class="section-header">Functions<a·href="#functions"·class="anchor">§</a></h2><ul·class="item-table"><li><div·class="item-name"><a·class="fn"·href="fn.from_mut.html"·title="fn·alloc::slice::from_mut">from_<wbr>mut</a></div><div·class="desc·docblock-short">Converts·a·reference·to·T·into·a·slice·of·length·1·(without·copying).</div></li><li><div·class="item-name"><a·class="fn"·href="fn.from_raw_parts.html"·title="fn·alloc::slice::from_raw_parts">from_<wbr>raw_<wbr>parts</a><sup·title="unsafe·function">⚠</sup></div><div·class="desc·docblock-short">Forms·a·slice·from·a·pointer·and·a·length.</div></li><li><div·class="item-name"><a·class="fn"·href="fn.from_raw_parts_mut.html"·title="fn·alloc::slice::from_raw_parts_mut">from_<wbr>raw_<wbr>parts_<wbr>mut</a><sup·title="unsafe·function">⚠</sup></div><div·class="desc·docblock-short">Performs·the·same·functionality·as·<a·href="fn.from_raw_parts.html"·title="fn·alloc::slice::from_raw_parts"><code>from_raw_parts</code></a>,·except·that·a33 time),·starting·at·the·beginning·of·the·slice</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.SliceIndex.html"·title="trait·alloc::slice::SliceIndex">Slice<wbr>Index</a></div><div·class="desc·docblock-short">A·helper·trait·used·for·indexing·operations.</div></li><li><div·class="item-name"><a·class="trait"·href="trait.Concat.html"·title="trait·alloc::slice::Concat">Concat</a><wbr><span·class="stab·unstable"·title="">Experimental</span></div><div·class="desc·docblock-short">Helper·trait·for·<a·href="../../core/primitive.slice.html#method.concat"·title="method·slice::concat"><code>[T]::concat</code></a>.</div></li><li><div·class="item-name"><a·class="trait"·href="trait.Join.html"·title="trait·alloc::slice::Join">Join</a><wbr><span·class="stab·unstable"[·...·truncated·by·diffoscope;·len:·99,·SHA:·86ab29dc34159b473b42d29f4424df856acb64c9b7a0087338c4d2fc3c0b5e55·...·]/core/primitive.slice.html#method.join"·title="method·slice::join"><code>[T]::join</code></a></div></li></ul><h2·id="functions"·class="section-header">Functions<a·href="#functions"·class="anchor">§</a></h2><ul·class="item-table"><li><div·class="item-name"><a·class="fn"·href="fn.from_mut.html"·title="fn·alloc::slice::from_mut">from_<wbr>mut</a></div><div·class="desc·docblock-short">Converts·a·reference·to·T·into·a·slice·of·length·1·(without·copying).</div></li><li><div·class="item-name"><a·class="fn"·href="fn.from_raw_parts.html"·title="fn·alloc::slice::from_raw_parts">from_<wbr>raw_<wbr>parts</a><sup·title="unsafe·function">⚠</sup></div><div·class="desc·docblock-short">Forms·a·slice·from·a·pointer·and·a·length.</div></li><li><div·class="item-name"><a·class="fn"·href="fn.from_raw_parts_mut.html"·title="fn·alloc::slice::from_raw_parts_mut">from_<wbr>raw_<wbr>parts_<wbr>mut</a><sup·title="unsafe·function">⚠</sup></div><div·class="desc·docblock-short">Performs·the·same·functionality·as·<a·href="fn.from_raw_parts.html"·title="fn·alloc::slice::from_raw_parts"><code>from_raw_parts</code></a>,·except·that·a
34 mutable·slice·is·returned.</div></li><li><div·class="item-name"><a·class="fn"·href="fn.from_ref.html"·title="fn·alloc::slice::from_ref">from_<wbr>ref</a></div><div·class="desc·docblock-short">Converts·a·reference·to·T·into·a·slice·of·length·1·(without·copying).</div></li><li><div·class="item-name"><a·class="fn"·href="fn.from_mut_ptr_range.html"·title="fn·alloc::slice::from_mut_ptr_range">from_<wbr>mut_<wbr>ptr_<wbr>range</a><sup·title="unsafe·function">⚠</sup><wbr><span·class="stab·unstable"·title="">Experimental</span></div><div·class="desc·docblock-short">Forms·a·mutable·slice·from·a·pointer·range.</div></li><li><div·class="item-name"><a·class="fn"·href="fn.from_ptr_range.html"·title="fn·alloc::slice::from_ptr_range">from_<wbr>ptr_<wbr>range</a><sup·title="unsafe·function">⚠</sup><wbr><span·class="stab·unstable"·title="">Experimental</span></div><div·class="desc·docblock-short">Forms·a·slice·from·a·pointer·range.</div></li><li><div·class="item-name"><a·class="fn"·href="fn.range.html"·title="fn·alloc::slice::range">range</a><wbr><span·class="stab·unstable"·title="">Experimental</span></div><div·class="desc·docblock-short">Performs·bounds·checking·of·a·range.</div></li><li><div·class="item-name"><a·class="fn"·href="fn.try_range.html"·title="fn·alloc::slice::try_range">try_<wbr>range</a><wbr><span·class="stab·unstable"·title="">Experimental</span></div><div·class="desc·docblock-short">Performs·bounds·checking·of·a·range·without·panicking.</div></li></ul></section></div></main></body></html>34 mutable·slice·is·returned.</div></li><li><div·class="item-name"><a·class="fn"·href="fn.from_ref.html"·title="fn·alloc::slice::from_ref">from_<wbr>ref</a></div><div·class="desc·docblock-short">Converts·a·reference·to·T·into·a·slice·of·length·1·(without·copying).</div></li><li><div·class="item-name"><a·class="fn"·href="fn.from_mut_ptr_range.html"·title="fn·alloc::slice::from_mut_ptr_range">from_<wbr>mut_<wbr>ptr_<wbr>range</a><sup·title="unsafe·function">⚠</sup><wbr><span·class="stab·unstable"·title="">Experimental</span></div><div·class="desc·docblock-short">Forms·a·mutable·slice·from·a·pointer·range.</div></li><li><div·class="item-name"><a·class="fn"·href="fn.from_ptr_range.html"·title="fn·alloc::slice::from_ptr_range">from_<wbr>ptr_<wbr>range</a><sup·title="unsafe·function">⚠</sup><wbr><span·class="stab·unstable"·title="">Experimental</span></div><div·class="desc·docblock-short">Forms·a·slice·from·a·pointer·range.</div></li><li><div·class="item-name"><a·class="fn"·href="fn.range.html"·title="fn·alloc::slice::range">range</a><wbr><span·class="stab·unstable"·title="">Experimental</span></div><div·class="desc·docblock-short">Performs·bounds·checking·of·a·range.</div></li><li><div·class="item-name"><a·class="fn"·href="fn.try_range.html"·title="fn·alloc::slice::try_range">try_<wbr>range</a><wbr><span·class="stab·unstable"·title="">Experimental</span></div><div·class="desc·docblock-short">Performs·bounds·checking·of·a·range·without·panicking.</div></li></ul></section></div></main></body></html>
351 KB
./usr/share/doc/rust-doc/html/alloc/slice/struct.ArrayChunks.html
Max HTML report size reached
337 KB
./usr/share/doc/rust-doc/html/alloc/slice/struct.ArrayChunksMut.html
    
Offset 1, 251 lines modifiedOffset 1, 251 lines modified
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="An·iterator·over·a·slice·in·(non-overlapping)·mutable·chunks·(`N`·elements·at·a·time),·starting·at·the·beginning·of·the·slice."><title>ArrayChunksMut·in·alloc::slice·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»       2025-01-07)»    (built»      from»  a» source»   tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Array<wbr>Chunks<wbr>Mut</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#example"·title="Example">Example</a></li></ul><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.into_remainder"·title="into_remainder">into_remainder</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Debug-for-ArrayChunksMut%3C'a,+T,+N%3E"·title="Debug">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-ArrayChunksMut%3C'a,+T,+N%3E"·title="DoubleEndedIterator">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-ArrayChunksMut%3C'_,+T,+N%3E"·title="ExactSizeIterator">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-ArrayChunksMut%3C'_,+T,+N%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-ArrayChunksMut%3C'a,+T,+N%3E"·title="Iterator">Iterator</a></li><li><a·href="#impl-TrustedLen-for-ArrayChunksMut%3C'_,+T,+N%3E"·title="TrustedLen">TrustedLen</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-UnwindSafe-for-ArrayChunksMut%3C'a,+T,+N%3E"·title="!UnwindSafe">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-ArrayChunksMut%3C'a,+T,+N%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-ArrayChunksMut%3C'a,+T,+N%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-ArrayChunksMut%3C'a,+T,+N%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-ArrayChunksMut%3C'a,+T,+N%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-ArrayChunksMut%3C'a,+T,+N%3E"·title="Unpin">Unpin</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>slice</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">alloc</a>::<wbr><a·href="index.html">slice</a></span><h1>Struct·<span·class="struct">ArrayChunksMut</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="https://doc.rust-lang.org/1.84.0/src/core/slice/iter.rs.html#2454">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·ArrayChunksMut&lt;'a,·T,·const·N:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.usize.html">usize</a>&gt;<div·class="where">where1 <!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="An·iterator·over·a·slice·in·(non-overlapping)·mutable·chunks·(`N`·elements·at·a·time),·starting·at·the·beginning·of·the·slice."><title>ArrayChunksMut·in·alloc::slice·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»       2025-01-07)»    (built»      from»  a» source»   tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Array<wbr>Chunks<wbr>Mut</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#example"·title="Example">Example</a></li></ul><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.into_remainder"·title="into_remainder">into_remainder</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Debug-for-ArrayChunksMut%3C'a,+T,+N%3E"·title="Debug">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-ArrayChunksMut%3C'a,+T,+N%3E"·title="DoubleEndedIterator">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-ArrayChunksMut%3C'_,+T,+N%3E"·title="ExactSizeIterator">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-ArrayChunksMut%3C'_,+T,+N%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-ArrayChunksMut%3C'a,+T,+N%3E"·title="Iterator">Iterator</a></li><li><a·href="#impl-TrustedLen-for-ArrayChunksMut%3C'_,+T,+N%3E"·title="TrustedLen">TrustedLen</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-UnwindSafe-for-ArrayChunksMut%3C'a,+T,+N%3E"·title="!UnwindSafe">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-ArrayChunksMut%3C'a,+T,+N%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-ArrayChunksMut%3C'a,+T,+N%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-ArrayChunksMut%3C'a,+T,+N%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-ArrayChunksMut%3C'a,+T,+N%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-ArrayChunksMut%3C'a,+T,+N%3E"·title="Unpin">Unpin</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>slice</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">alloc</a>::<wbr><a·href="index.html">slice</a></span><h1>Struct·<span·class="struct">ArrayChunksMut</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/core/slice/iter.rs.html#2454">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·ArrayChunksMut&lt;'a,·T,·const·N:·<a·class="primitive"·href="../../core/primitive.usize.html">usize</a>&gt;<div·class="where">where
2 ····T:·'a,</div>{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>array_chunks</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/74985">#74985</a>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>An·iterator·over·a·slice·in·(non-overlapping)·mutable·chunks·(<code>N</code>·elements2 ····T:·'a,</div>{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>array_chunks</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/74985">#74985</a>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>An·iterator·over·a·slice·in·(non-overlapping)·mutable·chunks·(<code>N</code>·elements
3 at·a·time),·starting·at·the·beginning·of·the·slice.</p>3 at·a·time),·starting·at·the·beginning·of·the·slice.</p>
4 <p>When·the·slice·len·is·not·evenly·divided·by·the·chunk·size,·the·last4 <p>When·the·slice·len·is·not·evenly·divided·by·the·chunk·size,·the·last
5 up·to·<code>N-1</code>·elements·will·be·omitted·but·can·be·retrieved·from5 up·to·<code>N-1</code>·elements·will·be·omitted·but·can·be·retrieved·from
6 the·<a·href="../../std/slice/struct.ArrayChunksMut.html#method.into_remainder"><code>into_remainder</code></a>·function·from·the·iterator.</p>6 the·<a·href="../../std/slice/struct.ArrayChunksMut.html#method.into_remainder"><code>into_remainder</code></a>·function·from·the·iterator.</p>
7 <p>This·struct·is·created·by·the·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html#method.array_chunks_mut"·title="method·slice::array_chunks_mut"><code>array_chunks_mut</code></a>·method·on·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html"·title="primitive·slice">slices</a>.</p>7 <p>This·struct·is·created·by·the·<a·href="../../core/primitive.slice.html#method.array_chunks_mut"·title="method·slice::array_chunks_mut"><code>array_chunks_mut</code></a>·method·on·<a·href="../../core/primitive.slice.html"·title="primitive·slice">slices</a>.</p>
8 <h2·id="example"><a·class="doc-anchor"·href="#example">§</a>Example</h2>8 <h2·id="example"><a·class="doc-anchor"·href="#example">§</a>Example</h2>
9 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(array_chunks)]9 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(array_chunks)]
  
10 </span><span·class="kw">let·</span><span·class="kw-2">mut·</span>slice·=·[<span·class="string">'l'</span>,·<span·class="string">'o'</span>,·<span·class="string">'r'</span>,·<span·class="string">'e'</span>,·<span·class="string">'m'</span>];10 </span><span·class="kw">let·</span><span·class="kw-2">mut·</span>slice·=·[<span·class="string">'l'</span>,·<span·class="string">'o'</span>,·<span·class="string">'r'</span>,·<span·class="string">'e'</span>,·<span·class="string">'m'</span>];
11 <span·class="kw">let·</span>iter·=·slice.array_chunks_mut::&lt;<span·class="number">2</span>&gt;();</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Bfeature(array_chunks)%5D%0A%0Afn+main()+%7B%0A++++let+mut+slice+=+%5B'l',+'o',+'r',+'e',+'m'%5D;%0A++++let+iter+=+slice.array_chunks_mut::%3C2%3E();%0A%7D&amp;version=nightly&amp;edition=2021"></a></div>11 <span·class="kw">let·</span>iter·=·slice.array_chunks_mut::&lt;<span·class="number">2</span>&gt;();</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Bfeature(array_chunks)%5D%0A%0Afn+main()+%7B%0A++++let+mut+slice+=+%5B'l',+'o',+'r',+'e',+'m'%5D;%0A++++let+iter+=+slice.array_chunks_mut::%3C2%3E();%0A%7D&amp;version=nightly&amp;edition=2021"></a></div>
12 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-ArrayChunksMut%3C'a,+T,+N%3E"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/slice/iter.rs.html#2459">Source</a><a·href="#impl-ArrayChunksMut%3C'a,+T,+N%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·T,·const·N:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/p[·...·truncated·by·diffoscope;·len:·602,·SHA:·c2fd4cd67c4fc7554c66fb6cee64ee01b18a85c47dca7254124decb197b6f0a3·...·]/core/primitive.slice.html">[T]</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>array_chunks</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/74985">#74985</a>)</span></div></span></summary><div·class="docblock"><p>Returns·the·remainder·of·the·original·slice·that·is·not·going·to·be12 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-ArrayChunksMut%3C'a,+T,+N%3E"·class="impl"><a·class="src·rightside"·href="../../src/core/slice/iter.rs.html#2459">Source</a><a·href="#impl-ArrayChunksMut%3C'a,+T,+N%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·T,·const·N:·<a·class="primitive"·href="../../core/primitive.usize.html">usize</a>&gt;·<a·class="struct"·h[·...·truncated·by·diffoscope;·len:·494,·SHA:·31d8765c07c91e75d35996e591b9f4e51150d38b526790b50083e4fead445002·...·]/core/primitive.slice.html">[T]</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>array_chunks</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/74985">#74985</a>)</span></div></span></summary><div·class="docblock"><p>Returns·the·remainder·of·the·original·slice·that·is·not·going·to·be
13 returned·by·the·iterator.·The·returned·slice·has·at·most·<code>N-1</code>13 returned·by·the·iterator.·The·returned·slice·has·at·most·<code>N-1</code>
14 elements.</p>14 elements.</p>
15 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-ArrayChunksMut%3C'a,+T,+N%3E"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/slice/iter.rs.html#2451">Source</a><a·href="#impl-Debug-for-ArrayChunksMut%3C'a,+T,+N%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·T,·const·N:·<a·class="primitive"·href="https://doc.rust-lang.org/1.8[·...·truncated·by·diffoscope;·len:·3,·SHA:·fbd04e1aae9ce0b11a8946e2c9ac2619f7428a64d32d01eff61d809dcb70ee8e·...·]/core/primitive.usize.html">usize</a>&gt;·<a·class="trait"·href="../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.ArrayChunksMut.html"·title="struct·alloc::slice::ArrayChunksMut">ArrayChunksMut</a>&lt;'a,·T,·N&gt;<div·class="where">where15 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-ArrayChunksMut%3C'a,+T,+N%3E"·class="impl"><a·class="src·rightside"·href="../../src/core/slice/iter.rs.html#2451">Source</a><a·href="#impl-Debug-for-ArrayChunksMut%3C'a,+T,+N%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·T,·const·N:·<a·class="primitive"·href="../../core/primitive.usize.html">usize</a>&gt;·<a·class="trait"·href="../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.ArrayChunksMut.html"·title="struct·alloc::slice::ArrayChunksMut">ArrayChunksMut</a>&lt;'a,·T,·N&gt;<div·class="where">where
16 ····T:·<a·class="trait"·href="../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·+·'a,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/slice/iter.rs.html#2451">Source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·hre[·...·truncated·by·diffoscope;·len:·2788,·SHA:·c1f5b01e0f82c4327adb9b6a437a8ab56c1cd0d504f435357f967e51ed217ed1·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.nth_back"·class="fn">nth_back</a>(16 ····T:·<a·class="trait"·href="../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·+·'a,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/slice/iter.rs.html#2451">Source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="../fmt/struct.Formatter.[·...·truncated·by·diffoscope;·len:·2437,·SHA:·bb04efe35512694ab4137d7e0b0310fe2c5c7e7a473cebc4ff8a5e8c8945ef1d·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.nth_back"·class="fn">nth_back</a>(
17 ····&amp;mut·self,17 ····&amp;mut·self,
18 ····n:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.usize.html">usize</a>,18 ····n:·<a·class="primitive"·href="../../core/primitive.usize.html">usize</a>,
19 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;&lt;<a·class="struct"·href="struct.ArrayChunksMut.html"·title="struct·alloc::slice::ArrayChunksMut">ArrayChunksMut</a>&lt;'a,·T,·N&gt;·as·<a·clas[·...·truncated·by·diffoscope;·len:·2677,·SHA:·a425419983aa4b6dbd577bf694a5c1be51d8e5d6f95195876490fe21af4bca37·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold"·class="fn">try_rfold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where19 )·-&gt;·<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;&lt;<a·class="struct"·href="struct.ArrayChunksMut.html"·title="struct·alloc::slice::ArrayChunksMut">ArrayChunksMut</a>&lt;'a,·T,·N&gt;·as·<a·class="trait"·href="../../core/[·...·truncated·by·diffoscope;·len:·2299,·SHA:·973ed3ea1774b5c9e590d669a740dba40e1b94fd9b519469a79f19a58c9b5cff·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold"·class="fn">try_rfold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where
20 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,20 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
21 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,21 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
22 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>This·is·the·reverse·version·of·<a·href="https://doc.rust-lang.org/1.8[·...·truncated·by·diffoscope;·len:·3,·SHA:·fbd04e1aae9ce0b11a8946e2c9ac2619f7428a64d32d01eff61d809dcb70ee8e·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·title="method·core::iter::traits::iterator::Iterator::try_fold"><code>Iterator::try_fold()</code></a>:·it·takes22 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>This·is·the·reverse·version·of·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·title="method·core::iter::traits::iterator::Iterator::try_fold"><code>Iterator::try_fold()</code></a>:·it·takes
23 elements·starting·from·the·back·of·the·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfold"·class="method·trait-impl"><span·clas[·...·truncated·by·diffoscope;·len:·325,·SHA:·7ffdb06a8ab3810207a1c974783822231eaf1d82fd94bcf810dd7b3181149b7b·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold"·class="fn">rfold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where23 elements·starting·from·the·back·of·the·iterator.·<a·href="../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfold"·class="method·trait-impl"><span·class="rightside"><span·class="[·...·truncated·by·diffoscope;·len:·244,·SHA:·6c4fe3f75fed1f00ec73ae6acd6efe929fb891f07f47293eec1013d32fc0fbe1·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold"·class="fn">rfold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where
24 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,24 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
25 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·reduces·the·iterator’s·elements·to·a·single,25 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·reduces·the·iterator’s·elements·to·a·single,
26 final·value,·starting·from·the·back.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfind"·class="method·trait-impl"><span·class="r[·...·truncated·by·diffoscope;·len:·665,·SHA:·fde89feb7c0e70eefa34d688476ca36a70115bec8150dbf9b1a3c359f72dd28d·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where26 final·value,·starting·from·the·back.·<a·href="../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfind"·class="method·trait-impl"><span·class="rightside"><span·class="sinc[·...·truncated·by·diffoscope;·len:·530,·SHA:·75a595bf6f9813abee32ae86d68f5de961884ee60e7080e18fb9c73b8e22c5f0·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
27 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,27 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
28 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·7737,·SHA:·02ea6862c12adf13ea5aa4af894f102b4801539be2ecdc473c039d1f0bd43e0d·...·]/core/iter/traits/iterator/trait.Iterator.html#method.nth"·class="fn">nth</a>(28 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·6711,·SHA:·df1919365129980fff03900fcb06261d13a8a5e7e54a7626408a39ba14bded14·...·]/core/iter/traits/iterator/trait.Iterator.html#method.nth"·class="fn">nth</a>(
29 ····&amp;mut·self,29 ····&amp;mut·self,
30 ····n:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.usize.html">usize</a>,30 ····n:·<a·class="primitive"·href="../../core/primitive.usize.html">usize</a>,
31 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;&lt;<a·class="struct"·href="struct.ArrayChunksMut.html"·title="struct·alloc::slice::ArrayChunksMut">ArrayChunksMut</a>&lt;'a,·T,·N&gt;·as·<a·clas[·...·truncated·by·diffoscope;·len:·2400,·SHA:·70d51cb1a9635ad0f5ae02d1be99c6355105b1c79bc659c630c1cb7c2dc3fcac·...·]/core/primitive.usize.html">usize</a>&gt;(31 )·-&gt;·<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;&lt;<a·class="struct"·href="struct.ArrayChunksMut.html"·title="struct·alloc::slice::ArrayChunksMut">ArrayChunksMut</a>&lt;'a,·T,·N&gt;·as·<a·class="trait"·href="../../core/[·...·truncated·by·diffoscope;·len:·2049,·SHA:·ee1483f329704a48443fec5d32cb510f6972b472315f80e31f24525fe91bc33f·...·]/core/primitive.usize.html">usize</a>&gt;(
32 ····&amp;mut·self,32 ····&amp;mut·self,
33 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·4f557a9b49151e0be8c52ffd68f1def4469c08164239dc8bef8df2040551c5ef·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where33 )·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">It[·...·truncated·by·diffoscope;·len:·246,·SHA:·baf6c8e6f3d5dbac69324111240b1587dbb858d42149cae1ee895a165289ff4f·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where
34 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·2597,·SHA:·e43e149acfa6ad1816c364b2828c60b6adfdffe814c9ef8b9f9b56e35c4e44a7·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where34 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_next_ch[·...·truncated·by·diffoscope;·len:·2219,·SHA:·92e912ee585db2c097b6d1cf2aef0139e2a927527f301ab7da0bc73758cc2d6b·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where
35 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by35 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by
36 the·given·amount·at·each·iteration.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><sp[·...·truncated·by·diffoscope;·len:·842,·SHA:·945c4509a8daf2f8fbccc5c6e5089e225955911e03a3e411f047f96d52d16862·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where36 the·given·amount·at·each·iteration.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Sta[·...·truncated·by·diffoscope;·len:·680,·SHA:·77241b5118fcbc984cb791fa9f75077307e18056b66492741335faf440cbdabc·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
37 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,37 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
38 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·3b5ce32f9d564c3aa7cf2adc7130e674758d0c0f4f1275b4c3b46a74aa802cb3·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where38 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·1113,·SHA:·ccf22d19f49a25daffdcc6d9226d5107457a8bfd16beccfeff5020d151bdb8bb·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
39 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,39 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
40 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·[·...·truncated·by·diffoscope;·len:·868,·SHA:·abdbf27ccc84063c7040d8fa3da9d0bda5ee310a470ef576e15554aee4bd5d21·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where40 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·of·pairs.·<a·href="../../co[·...·truncated·by·diffoscope;·len:·706,·SHA:·f32c568f049122021445a983654582d97ac74064a3e99c3361b348bd7708c1b2·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where
41 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,41 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
42 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent42 ····Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent
43 items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="sr[·...·truncated·by·diffoscope;·len:·427,·SHA:·6e82ad4aad49c2165d869fe30d20a968580a973cdb3a7f4c77f49e16dd59393e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where43 items·of·the·original·iterator.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="src·rightside"·href="../../sr[·...·truncated·by·diffoscope;·len:·319,·SHA:·8babc469a22056fc5a02684b52f9f93ba9c27a3dd2e8443ddc060797054e211e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where
44 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,44 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
45 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>45 ····G:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>
46 between·adjacent·items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightsi[·...·truncated·by·diffoscope;·len:·471,·SHA:·ed10488b7b2ccc3e4cc84a9a57a9695a74c1c964962e8d753cbace12f3318a66·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where46 between·adjacent·items·of·the·original·iterator.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·tit[·...·truncated·by·diffoscope;·len:·363,·SHA:·09aee21fa4172b743a714e2cb5915129575ce0224df49c7343dec38f43b7ecfd·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where
47 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,47 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
48 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each48 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each
49 element.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><spa[·...·truncated·by·diffoscope;·len:·306,·SHA:·61c87c39b177830189b0e4c036d97c40d8b9649d76432c90afb88de59498e8b2·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where49 element.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stab[·...·truncated·by·diffoscope;·len:·225,·SHA:·a0f2490a1a5fd6b44e0ab01199cbbbd6e5463251405d11eaf6798c9b50bbd683·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where
50 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,50 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
51 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·a65da32c5f5ef8335cb607d3b4ab3f8a25877bc2c2e8b44ca9d575caecd5c8a5·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where51 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·754,·SHA:·421e55a5747cab3df1dad40b747b4633f241bdc13a1546bb19b1370788dea27d·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where
52 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,52 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
53 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·6d69c85c69fa789be551ea42d95c33c237d12a04ef157f9ddaaead1177f7771e·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element53 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·59,·SHA:·76969e34965f1923de668a65a9f5c33f73266468c9b96650bcc5fd498e606a6b·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element
54 should·be·yielded.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·489,·SHA:·9bdc636899f4e4e5a26a3a21c9603f72b3fb972865d2f459c38b7e2ac8fed7f1·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where54 should·be·yielded.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·cf812944678f6755720896cf32b330946303afe59f1b1c11adeb6a7f33454c8d·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where
55 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,55 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
56 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·46dbf841c7aecd3f06bd4c944af21650faeac98c46c515dcfe643302618b1ecd·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where56 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·863,·SHA:·c2bab87fa2a70713bd2d34b3dcae8f4ff2341917103b43a1dd505317f15d6cff·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where
57 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as57 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as
58 the·next·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside[·...·truncated·by·diffoscope;·len:·468,·SHA:·52f7ff7f264284c3acc4429ca34d057ded9afa2e3d9d6e07571e252db9a48977·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where58 the·next·value.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title[·...·truncated·by·diffoscope;·len:·360,·SHA:·688416dc1aaaa0be069177270ba9e74b3d1b92521285a109dc7ba86b58c1f22a·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where
59 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·c0180fefce4346b0b4089e5c642521d7716108241c0ce6ec3e910c7a2c7364b4·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods59 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="../../core/iter/adapters/peekable/struct.Peekable.html#method.peek"·title="m[·...·truncated·by·diffoscope;·len:·94,·SHA:·78aeab33f83c647dfe680c1050358c95977e3af17eabde4a04880721ea1a619d·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods
60 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See60 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See
61 their·documentation·for·more·information.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightsid[·...·truncated·by·diffoscope;·len:·498,·SHA:·e4a68861585faec6a5032b3b69d6dfb0f2799b5f387a527d9a1365571ed02069·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where61 their·documentation·for·more·information.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightside"><span·class="since"·titl[·...·truncated·by·diffoscope;·len:·390,·SHA:·5da622ae0e4d00b47239007520070e22568156d6c5b1662db8b80b465934b18c·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where
62 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,62 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
63 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·93281c1f6402743fd61110c11cf676f0f67eddceda801b4eb35e5fe9f85870fd·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where63 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·1018,·SHA:·732548acff5239e9a7b904f32790c90ab3b63522635334128f35e01d37ceaeb6·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where
64 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,64 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
65 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·f1cdbb1ec64f98fabbe1d89c88b03824310926cd7eaa160953ce2452fc3abb77·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where65 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·869,·SHA:·8ec7e525848424d5104dbdd10928d17cfee4e5aee63cdda7ecdbe323b30b59d3·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where
66 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,66 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
67 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·f94a0b2c1396b13b89aca7830197ebf19e2c0e5ba536a9cc25b325a481799510·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where67 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·947,·SHA:·fdd074315a0bfb226f815b1b6ea114c7367886338ffffff233d7f6fc3108769a·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where
68 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="https://doc.rust-lang[·...·truncated·by·diffoscope;·len:·783,·SHA:·c14217b89e3292a50a09192a8857485891fc769f861e1d1fc4322d04295c86ef·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where68 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="../../core/iter/traits/iterator/trait.Iterator.h[·...·truncated·by·diffoscope;·len:·621,·SHA:·484df7f946e7f2f69c3acad8964421c0db8ac5bb40032d11bbd862e20e67704c·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where
69 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer69 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer
70 if·the·underlying·iterator·ends·sooner.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·c[·...·truncated·by·diffoscope;·len:·488,·SHA:·76f753d5a273a09a73127631acaa0ee947326a929f33be291018188793e1af56·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where70 if·the·underlying·iterator·ends·sooner.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·[·...·truncated·by·diffoscope;·len:·380,·SHA:·fa258c7e0b5d583304a69e2d4e19f3d4cc9a9ed830bdf3796eaa0968bdf590b4·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where
71 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,71 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
72 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·07d303586c8ad4e0082d5b44bff8eeda03cdb8f4bdbe46489f9232bca5a43ec6·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but72 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterat[·...·truncated·by·diffoscope;·len:·314,·SHA:·299331ff47adaff3ebc292c53557ad34da957aef932f87ec0444c7f856820410·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but
73 unlike·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·2b20882d9583cee50e0c8b3cf362b27ce0d524db387d4aa4093d622b9370dada·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where73 unlike·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.scan">Read·more[·...·truncated·by·diffoscope;·len:·555,·SHA:·77279e392f259f6d4859f5a7747ee4b4d5315f3af0ac3baebf1d53be3461b312·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where
74 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,74 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
75 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,75 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
76 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·933,·SHA:·4af94b75ba5c1e03d2d70590d2fd0706f13b3080fbff0f5b98e7b109048c403d·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where76 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·771,·SHA:·a1a50c8ca4c13151c7b22ce05c74c449231e1ffe44225beee67ff212fc1d3859·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where
77 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,77 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
78 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.I[·...·truncated·by·diffoscope;·len:·968,·SHA:·e5572ed2f3bdf5970d038da608f2f592d945541207c483c257fe5789efba168a·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where78 ····Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::col[·...·truncated·by·diffoscope;·len:·779,·SHA:·a4e524bd8aa8a1e0a66409d1b462b88093ab51a1f901ff1a788d7ee63d597f4c·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where
79 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,79 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
80 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·3013c0e49b0dade37f8ca096eccc5ceeb03fc79b9d320a4c92486d23b88d1009·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over80 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·54,·SHA:·6acee514e4d8df8979b4bba687b7e0d5dbb0ea4f98a7019e2fb03f3a8058df0f·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over
81 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,81 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="../../core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,
82 the·windows·during·mapping·overlap·as·well.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside">[·...·truncated·by·diffoscope;·len:·454,·SHA:·040991f3914479bcc92615de2b81df7363656323622e5aadc964e1a61917d23e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where82 the·windows·during·mapping·overlap·as·well.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="[·...·truncated·by·diffoscope;·len:·346,·SHA:·b1244a5f92e0573c29e04e883cf8212ba2586013b3687af07b63c29d2e611530·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where
83 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="https://doc.rust-lang.org/1.84.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·0e0294a45242d5ce9a3ab8f95d6d410756415291d92baa7d12283ef1b3ecc3a0·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where83 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="../../core/option/enum.Option.html#variant.None"·title="variant·cor[·...·truncated·by·diffoscope;·len:·679,·SHA:·ec753d6ecf7b9fe81cb270d78e45e053f2702fff74c7a63c2ab8da22b97fea86·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where
84 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,84 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
85 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·a8b562f71802a421f4745f7d1fadf4f70d98030c829e70f27b692e7915267027·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where85 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·635,·SHA:·ee3a5bcc3544c3f17985966634fef69b1708d641ddb7e62aaac76933935c5ef7·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where
86 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="https://doc.rust-lang.org/1.84.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·b3db7d84f203bbc139b1c52912705d19c664dac762898205fce452c9dc3a5318·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where86 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.by_ref">[·...·truncated·by·diffoscope;·len:·415,·SHA:·7e0e075470d2db380bcf0838446659654c982aa2ca7831ed7d0317877855be2a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where
87 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,87 ····B:·<a·class="trait"·href="../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
88 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·431,·SHA:·a705a23f6d810357e7dcac670743884665ffcccfb9b780d0aa03720be8ca5625·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(88 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.collect">Read[·...·truncated·by·diffoscope;·len:·323,·SHA:·80e0dde3814a6e7cf4e30949627abc841ab4e98e2a920efb248777e22708682d·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(
89 ····&amp;mut·self,89 ····&amp;mut·self,
90 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.h[·...·truncated·by·diffoscope;·len:·479,·SHA:·fa749442d890055f86ceb34f411c84fd7ea08302b336d786d1ca36fe5868b020·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where90 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&g[·...·truncated·by·diffoscope;·len:·344,·SHA:·c06c6401df0a7150633e94cc973521da42e09819b07be80ba18d6acb696860a9·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
91 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,91 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
92 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>,92 ····Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>,
93 ····&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.h[·...·truncated·by·diffoscope;·len:·300,·SHA:·3bff089180bac38df7f42b87556fae7641185b89a949c284f53e3ac718a6decb·...·]/core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;B&gt;,93 ····&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&g[·...·truncated·by·diffoscope;·len:·192,·SHA:·039ceb6ce31fc6b1871e3e366efbd0f164f4a6cc1bc25554bba598b0ee820cca·...·]/core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;B&gt;,
94 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/itera[·...·truncated·by·diffoscope;·len:·323,·SHA:·b5c51f161dc9d77fd81d1fd23cc71fbf42ac00f3168cf9e41ebaaa2b6eb25363·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if94 ····B:·<a·class="trait"·href="../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="ty[·...·truncated·by·diffoscope;·len:·215,·SHA:·ddb8fbd12147eecef1697edd4c63187cc514ab4b851290335adfcccc3fa429ba·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if
95 a·failure·is·encountered.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·ri[·...·truncated·by·diffoscope;·len:·521,·SHA:·6a54376815dab985ec8cc35604d035e98e3003b1563c9b41e70966084505542b·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where95 a·failure·is·encountered.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/co[·...·truncated·by·diffoscope;·len:·386,·SHA:·d46a776c329de4f757930edda252586c2cdd85c6956b7b2f68448da33ee0625e·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
96 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,96 ····E:·<a·class="trait"·href="../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
97 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·975,·SHA:·94f7f970236ba59ba5f1415764a0e3ab2f3093c6b79e76c25c797ac24a3c4d09·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where97 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_collect[·...·truncated·by·diffoscope;·len:·840,·SHA:·1ee6fbe4deb3d959e9ade58fb7ed3efa79d09721ed02fbb5f5f82aae6aa1425d·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
98 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,98 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
99 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·b480ec650ba000fe7cb67df58fc0351299638ee3e8f00db18f74ca24d69f9894·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,99 ····B:·<a·class="trait"·href="../../core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtyp[·...·truncated·by·diffoscope;·len:·14,·SHA:·4105980ca4887a52797067761af25a11e3de6069cd8d7c8ce82cd885bb798fe8·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
100 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·fdf5a1845f070855ba2cfd0c8c85460ea5cb646c4d3b42a8431bf21489c73701·...·]/core/primitive.usize.html">usize</a><div·class="where">where100 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·806,·SHA:·4d554b733db12e71a31ec2477a31408041941b0e2b0dc910904ecf2fced9f65b·...·]/core/primitive.usize.html">usize</a><div·class="where">where
101 ····T:·'a,101 ····T:·'a,
102 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·1fc250e258e9e42e4fa3e22f86ecd57057e9ff23e47af1aec778076a7a891134·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,102 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIter[·...·truncated·by·diffoscope;·len:·51,·SHA:·c9be73bbed9d11ecac2a179f480a640f51d6255f26712667ffdabc72c1fc7fb0·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,
103 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·5846407374f20f525a4a0663ad4488141eafe64513ef82581dc5df5c2d200745·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_partition_in_place</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62543">#62543</a>)</span></div></span><div·class='docblock'>Reorders·the·elements·of·this·iterator·<em>in-place</em>·according·to·the·given·predicate,103 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="../../core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_partition_in_place</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62543">#62543</a>)</span></div></span><div·class='docblock'>Reorders·the·elements·of·this·iterator·<em>in-place</em>·according·to·the·given·predicate,
104 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.104 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.
105 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.partition_in_place">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_partitioned"·class="method·trait-impl"><a·clas[·...·truncated·by·diffoscope;·len:·431,·SHA:·4aa7d028146c72d45794efc19a376d4bee3b75eda61ff46d969e440b3dbfa1b0·...·]/core/primitive.bool.html">bool</a><div·class="where">where105 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.partition_in_place">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_partitioned"·class="method·trait-impl"><a·class="src·rightside"·href="../[·...·truncated·by·diffoscope;·len:·323,·SHA:·bfc44418fa28079222aab80e2baccdaffb2d067bbe5d1b5162202d268ad628d7·...·]/core/primitive.bool.html">bool</a><div·class="where">where
106 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,106 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
107 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·fcd03e71f79faad6d9b9a12045d59f4dfabc78e5aefebcabc9c1a5be45e31125·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,107 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·54,·SHA:·d5ac304cc26edf57442227b641dd21c427d0f9cb322b79986f5b15fc49f867b0·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,
108 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><span·class="righ[·...·truncated·by·diffoscope;·len:·319,·SHA:·9b9df13f2f4e5b4dde3908515766e1a474fa30bcb7edc98c15665a016e677c2a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where108 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><span·class="rightside"><span·class="since"·[·...·truncated·by·diffoscope;·len:·238,·SHA:·af6ab768457e0afa1532b80c4296ae18061dac4c765922889b13eead3e5492db·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where
109 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,109 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
110 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,110 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
111 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns111 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns
112 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rights[·...·truncated·by·diffoscope;·len:·321,·SHA:·619fd774190944998148325de99aaa75de66ce4b7e26579fd342c564923a5652·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where112 successfully,·producing·a·single,·final·value.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"·ti[·...·truncated·by·diffoscope;·len:·240,·SHA:·125e84deea747ccbe139725d028362287beed6a89ab9da3a3aabd7df537abc59·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where
113 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,113 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
114 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,114 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
115 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the115 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="../../core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the
116 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·307,·SHA:·5975144fd8566efa93ad1ccec09297e280924b7372e08681d2103702124e2c52·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where116 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title=[·...·truncated·by·diffoscope;·len:·226,·SHA:·a7510e9271e68887d9e2681c6bc28312cec9ac38883128845f52742935a160a9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where
117 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,117 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
118 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,118 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,
119 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span[·...·truncated·by·diffoscope;·len:·619,·SHA:·8813f54846438870310d5f5dfabd2335a9dbf51e9da2e4cd681bcb6077d39628·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where119 returning·the·final·result.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stabl[·...·truncated·by·diffoscope;·len:·484,·SHA:·5f42e8d5ff08f4c76870e6cb9165e054f9a0d99051d9886ccd43d5c8a91e1fbc·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
120 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,120 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
121 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·084691f7fc4e7f4da7db385127d0ce8d2d52f6740757129a65910c4db0dc180d·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing121 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·244,·SHA:·f09ac7e818239538c3f3208cb5c76076c24a0153797eb762821d5bf2a382d83b·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing
122 operation.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·217,·SHA:·447ae00256be3de069c602a6c04889808c883eae6fa349d023f53bdd5570ecae·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(122 operation.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/iter[·...·truncated·by·diffoscope;·len:·136,·SHA:·97e3ee132585582ec7077e3bbd86406d8a2dcfc97dce7fd52b49af3ec1b58622·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(
123 ····&amp;mut·self,123 ····&amp;mut·self,
124 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R, 
125 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.T[·...·truncated·by·diffoscope;·len:·950,·SHA:·817376e71f7a0d170bfbd4b7264c15d324f49c65106c49349d11a077842aa533·...·]124 ····f:·impl·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core:[·...·truncated·by·diffoscope;·len:·238,·SHA:·a52edc1a1ce1db5dd6e620dbfe5acb58fdc6d84f2320cef02845988aa54e5c55·...·]
 125 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;&gt;&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
Max diff block lines reached; 83474/344494 bytes (24.23%) of diff not shown.
346 KB
./usr/share/doc/rust-doc/html/alloc/slice/struct.ArrayWindows.html
Max HTML report size reached
328 KB
./usr/share/doc/rust-doc/html/alloc/slice/struct.ChunkBy.html
    
Offset 1, 247 lines modifiedOffset 1, 247 lines modified
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="An·iterator·over·slice·in·(non-overlapping)·chunks·separated·by·a·predicate."><title>ChunkBy·in·alloc::slice·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»      2025-01-07)»   (built»     from» a»source»  tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">ChunkBy</a></h2><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Debug-for-ChunkBy%3C'a,+T,+P%3E"·title="Debug">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-ChunkBy%3C'a,+T,+P%3E"·title="DoubleEndedIterator">DoubleEndedIterator</a></li><li><a·href="#impl-FusedIterator-for-ChunkBy%3C'a,+T,+P%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-ChunkBy%3C'a,+T,+P%3E"·title="Iterator">Iterator</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-ChunkBy%3C'a,+T,+P%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-ChunkBy%3C'a,+T,+P%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-ChunkBy%3C'a,+T,+P%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-ChunkBy%3C'a,+T,+P%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-ChunkBy%3C'a,+T,+P%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-ChunkBy%3C'a,+T,+P%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>slice</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">alloc</a>::<wbr><a·href="index.html">slice</a></span><h1>Struct·<span·class="struct">ChunkBy</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.77.0">1.77.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/slice/iter.rs.html#3301">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·ChunkBy&lt;'a,·T,·P&gt;<div·class="where">where1 <!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="An·iterator·over·slice·in·(non-overlapping)·chunks·separated·by·a·predicate."><title>ChunkBy·in·alloc::slice·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»      2025-01-07)»   (built»     from» a»source»  tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">ChunkBy</a></h2><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Debug-for-ChunkBy%3C'a,+T,+P%3E"·title="Debug">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-ChunkBy%3C'a,+T,+P%3E"·title="DoubleEndedIterator">DoubleEndedIterator</a></li><li><a·href="#impl-FusedIterator-for-ChunkBy%3C'a,+T,+P%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-ChunkBy%3C'a,+T,+P%3E"·title="Iterator">Iterator</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-ChunkBy%3C'a,+T,+P%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-ChunkBy%3C'a,+T,+P%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-ChunkBy%3C'a,+T,+P%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-ChunkBy%3C'a,+T,+P%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-ChunkBy%3C'a,+T,+P%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-ChunkBy%3C'a,+T,+P%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>slice</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">alloc</a>::<wbr><a·href="index.html">slice</a></span><h1>Struct·<span·class="struct">ChunkBy</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.77.0">1.77.0</span>···<a·class="src"·href="../../src/core/slice/iter.rs.html#3301">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·ChunkBy&lt;'a,·T,·P&gt;<div·class="where">where
2 ····T:·'a,</div>{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>An·iterator·over·slice·in·(non-overlapping)·chunks·separated·by·a·predicate.</p>2 ····T:·'a,</div>{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>An·iterator·over·slice·in·(non-overlapping)·chunks·separated·by·a·predicate.</p>
3 <p>This·struct·is·created·by·the·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html#method.chunk_by"·title="method·slice::chunk_by"><code>chunk_by</code></a>·method·on·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html"·title="primitive·slice">slices</a>.</p>3 <p>This·struct·is·created·by·the·<a·href="../../core/primitive.slice.html#method.chunk_by"·title="method·slice::chunk_by"><code>chunk_by</code></a>·method·on·<a·href="../../core/primitive.slice.html"·title="primitive·slice">slices</a>.</p>
4 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-ChunkBy%3C'a,+T,+P%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.77.0">1.77.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/slice/iter.rs.html#3373">Source</a></span><a·href="#impl-Debug-for-ChunkBy%3C'a,+T,+P%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·T,·P&gt;·<a·class="trait"·href="../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.ChunkBy.html"·title="struct·alloc::slice::ChunkBy">ChunkBy</a>&lt;'a,·T,·P&gt;<div·class="where">where4 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-ChunkBy%3C'a,+T,+P%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.77.0">1.77.0</span>···<a·class="src"·href="../../src/core/slice/iter.rs.html#3373">Source</a></span><a·href="#impl-Debug-for-ChunkBy%3C'a,+T,+P%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·T,·P&gt;·<a·class="trait"·href="../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.ChunkBy.html"·title="struct·alloc::slice::ChunkBy">ChunkBy</a>&lt;'a,·T,·P&gt;<div·class="where">where
5 ····T:·'a·+·<a·class="trait"·href="../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/slice/iter.rs.html#3374">Source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·hre[·...·truncated·by·diffoscope;·len:·1137,·SHA:·4154c97429be1ef7a315379f8545d60da8449a427c47893cd680d71ba49a54c1·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIterator</a>·for·<a·class="struct"·href="struct.ChunkBy.html"·title="struct·alloc::slice::ChunkBy">ChunkBy</a>&lt;'a,·T,·P&gt;<div·class="where">where5 ····T:·'a·+·<a·class="trait"·href="../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/slice/iter.rs.html#3374">Source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="../fmt/struct.Formatter.[·...·truncated·by·diffoscope;·len:·1002,·SHA:·65555b1bfb761ad56c25e159bb9789d8f06220bf382b91f3a2c2b3150e35b89a·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIterator</a>·for·<a·class="struct"·href="struct.ChunkBy.html"·title="struct·alloc::slice::ChunkBy">ChunkBy</a>&lt;'a,·T,·P&gt;<div·class="where">where
6 ····T:·'a,6 ····T:·'a,
7 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;T</a>,·<a·class="primitive"·href="https:[·...·truncated·by·diffoscope;·len:·4889,·SHA:·64a1c5cc0701264fe690e855b51688e55ea758a52de7d714664a6186a37d1f3c·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold"·class="fn">try_rfold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where7 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../core/primitive.reference.html">&amp;T</a>,·<a·class="primitive"·href="../../core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·cl[·...·truncated·by·diffoscope;·len:·4187,·SHA:·555222d0b75e3d4a88b3a418c431a007a6941977a29e26e3dc5d9fdd0e16c1bc·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold"·class="fn">try_rfold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where
8 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,8 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
9 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,9 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
10 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>This·is·the·reverse·version·of·<a·href="https://doc.rust-lang.org/1.8[·...·truncated·by·diffoscope;·len:·3,·SHA:·fbd04e1aae9ce0b11a8946e2c9ac2619f7428a64d32d01eff61d809dcb70ee8e·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·title="method·core::iter::traits::iterator::Iterator::try_fold"><code>Iterator::try_fold()</code></a>:·it·takes10 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>This·is·the·reverse·version·of·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·title="method·core::iter::traits::iterator::Iterator::try_fold"><code>Iterator::try_fold()</code></a>:·it·takes
11 elements·starting·from·the·back·of·the·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfold"·class="method·trait-impl"><span·clas[·...·truncated·by·diffoscope;·len:·325,·SHA:·7ffdb06a8ab3810207a1c974783822231eaf1d82fd94bcf810dd7b3181149b7b·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold"·class="fn">rfold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where11 elements·starting·from·the·back·of·the·iterator.·<a·href="../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfold"·class="method·trait-impl"><span·class="rightside"><span·class="[·...·truncated·by·diffoscope;·len:·244,·SHA:·6c4fe3f75fed1f00ec73ae6acd6efe929fb891f07f47293eec1013d32fc0fbe1·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold"·class="fn">rfold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where
12 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,12 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
13 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·reduces·the·iterator’s·elements·to·a·single,13 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·reduces·the·iterator’s·elements·to·a·single,
14 final·value,·starting·from·the·back.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfind"·class="method·trait-impl"><span·class="r[·...·truncated·by·diffoscope;·len:·665,·SHA:·fde89feb7c0e70eefa34d688476ca36a70115bec8150dbf9b1a3c359f72dd28d·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where14 final·value,·starting·from·the·back.·<a·href="../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfind"·class="method·trait-impl"><span·class="rightside"><span·class="sinc[·...·truncated·by·diffoscope;·len:·530,·SHA:·75a595bf6f9813abee32ae86d68f5de961884ee60e7080e18fb9c73b8e22c5f0·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
15 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,15 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
16 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·979,·SHA:·28b616c7bd4f39b5578850c0439e140ed9b63c9600094420b48000c90a1bf2e2·...·]/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::Iterator">Iterator</a>·for·<a·class="struct"·href="struct.ChunkBy.html"·title="struct·alloc::slice::ChunkBy">ChunkBy</a>&lt;'a,·T,·P&gt;<div·class="where">where16 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·817,·SHA:·3d74deec3a69af4c5ac84dde4713e49ebad30813ad3fa7d3e513558f932328d5·...·]/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::Iterator">Iterator</a>·for·<a·class="struct"·href="struct.ChunkBy.html"·title="struct·alloc::slice::ChunkBy">ChunkBy</a>&lt;'a,·T,·P&gt;<div·class="where">where
17 ····T:·'a,17 ····T:·'a,
18 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;T</a>,·<a·class="primitive"·href="https:[·...·truncated·by·diffoscope;·len:·4949,·SHA:·3c33771b8ac754d5fecb0d3f89b3a3b1df5a732c9cdc6b92dca904686ee2e27a·...·]/core/primitive.usize.html">usize</a>&gt;(18 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../core/primitive.reference.html">&amp;T</a>,·<a·class="primitive"·href="../../core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·cl[·...·truncated·by·diffoscope;·len:·4193,·SHA:·231ec29d30444fa3f46f51440296468287a607587e50d263c1e4853aeb99f80b·...·]/core/primitive.usize.html">usize</a>&gt;(
19 ····&amp;mut·self,19 ····&amp;mut·self,
20 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·4f557a9b49151e0be8c52ffd68f1def4469c08164239dc8bef8df2040551c5ef·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where20 )·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">It[·...·truncated·by·diffoscope;·len:·246,·SHA:·baf6c8e6f3d5dbac69324111240b1587dbb858d42149cae1ee895a165289ff4f·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where
21 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·962,·SHA:·116e4ec2ae3d9655c3d115eaf50f435f5323b4e48b84de734c79d2a09b3c02f2·...·]/core/primitive.usize.html">usize</a><div·class="where">where21 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_next_ch[·...·truncated·by·diffoscope;·len:·827,·SHA:·2479cde9ab5aa3e18f76cf74cf7889a3de87c66e1745f27cf29bd34c4d30dbdf·...·]/core/primitive.usize.html">usize</a><div·class="where">where
22 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·counting·the·number·of·iterations·and·returning·it.·<a·href="https://doc.[·...·truncated·by·diffoscope;·len:·3529,·SHA:·36685e4ebfba7d155142dce71eec5dabe5f32dacb8a458b62987f15496f31675·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where22 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·counting·the·number·of·iterations·and·returning·it.·<a·href="../../core/iter/traits/iterator/trait.I[·...·truncated·by·diffoscope;·len:·2989,·SHA:·52662d0d84351ee66fd08cf83fe69d664777396d635c71dc09e542292824ef32·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where
23 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by23 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by
24 the·given·amount·at·each·iteration.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><sp[·...·truncated·by·diffoscope;·len:·842,·SHA:·945c4509a8daf2f8fbccc5c6e5089e225955911e03a3e411f047f96d52d16862·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where24 the·given·amount·at·each·iteration.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Sta[·...·truncated·by·diffoscope;·len:·680,·SHA:·77241b5118fcbc984cb791fa9f75077307e18056b66492741335faf440cbdabc·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
25 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,25 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
26 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·3b5ce32f9d564c3aa7cf2adc7130e674758d0c0f4f1275b4c3b46a74aa802cb3·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where26 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·1113,·SHA:·ccf22d19f49a25daffdcc6d9226d5107457a8bfd16beccfeff5020d151bdb8bb·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
27 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,27 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
28 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·[·...·truncated·by·diffoscope;·len:·868,·SHA:·abdbf27ccc84063c7040d8fa3da9d0bda5ee310a470ef576e15554aee4bd5d21·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where28 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·of·pairs.·<a·href="../../co[·...·truncated·by·diffoscope;·len:·706,·SHA:·f32c568f049122021445a983654582d97ac74064a3e99c3361b348bd7708c1b2·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where
29 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,29 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
30 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent30 ····Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent
31 items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="sr[·...·truncated·by·diffoscope;·len:·427,·SHA:·6e82ad4aad49c2165d869fe30d20a968580a973cdb3a7f4c77f49e16dd59393e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where31 items·of·the·original·iterator.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="src·rightside"·href="../../sr[·...·truncated·by·diffoscope;·len:·319,·SHA:·8babc469a22056fc5a02684b52f9f93ba9c27a3dd2e8443ddc060797054e211e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where
32 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,32 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
33 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>33 ····G:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>
34 between·adjacent·items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightsi[·...·truncated·by·diffoscope;·len:·471,·SHA:·ed10488b7b2ccc3e4cc84a9a57a9695a74c1c964962e8d753cbace12f3318a66·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where34 between·adjacent·items·of·the·original·iterator.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·tit[·...·truncated·by·diffoscope;·len:·363,·SHA:·09aee21fa4172b743a714e2cb5915129575ce0224df49c7343dec38f43b7ecfd·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where
35 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,35 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
36 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each36 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each
37 element.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><spa[·...·truncated·by·diffoscope;·len:·306,·SHA:·61c87c39b177830189b0e4c036d97c40d8b9649d76432c90afb88de59498e8b2·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where37 element.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stab[·...·truncated·by·diffoscope;·len:·225,·SHA:·a0f2490a1a5fd6b44e0ab01199cbbbd6e5463251405d11eaf6798c9b50bbd683·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where
38 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,38 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
39 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·a65da32c5f5ef8335cb607d3b4ab3f8a25877bc2c2e8b44ca9d575caecd5c8a5·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where39 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·754,·SHA:·421e55a5747cab3df1dad40b747b4633f241bdc13a1546bb19b1370788dea27d·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where
40 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,40 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
41 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·6d69c85c69fa789be551ea42d95c33c237d12a04ef157f9ddaaead1177f7771e·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element41 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·59,·SHA:·76969e34965f1923de668a65a9f5c33f73266468c9b96650bcc5fd498e606a6b·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element
42 should·be·yielded.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·489,·SHA:·9bdc636899f4e4e5a26a3a21c9603f72b3fb972865d2f459c38b7e2ac8fed7f1·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where42 should·be·yielded.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·cf812944678f6755720896cf32b330946303afe59f1b1c11adeb6a7f33454c8d·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where
43 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,43 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
44 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·46dbf841c7aecd3f06bd4c944af21650faeac98c46c515dcfe643302618b1ecd·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where44 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·863,·SHA:·c2bab87fa2a70713bd2d34b3dcae8f4ff2341917103b43a1dd505317f15d6cff·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where
45 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as45 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as
46 the·next·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside[·...·truncated·by·diffoscope;·len:·468,·SHA:·52f7ff7f264284c3acc4429ca34d057ded9afa2e3d9d6e07571e252db9a48977·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where46 the·next·value.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title[·...·truncated·by·diffoscope;·len:·360,·SHA:·688416dc1aaaa0be069177270ba9e74b3d1b92521285a109dc7ba86b58c1f22a·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where
47 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·c0180fefce4346b0b4089e5c642521d7716108241c0ce6ec3e910c7a2c7364b4·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods47 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="../../core/iter/adapters/peekable/struct.Peekable.html#method.peek"·title="m[·...·truncated·by·diffoscope;·len:·94,·SHA:·78aeab33f83c647dfe680c1050358c95977e3af17eabde4a04880721ea1a619d·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods
48 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See48 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See
49 their·documentation·for·more·information.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightsid[·...·truncated·by·diffoscope;·len:·498,·SHA:·e4a68861585faec6a5032b3b69d6dfb0f2799b5f387a527d9a1365571ed02069·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where49 their·documentation·for·more·information.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightside"><span·class="since"·titl[·...·truncated·by·diffoscope;·len:·390,·SHA:·5da622ae0e4d00b47239007520070e22568156d6c5b1662db8b80b465934b18c·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where
50 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,50 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
51 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·93281c1f6402743fd61110c11cf676f0f67eddceda801b4eb35e5fe9f85870fd·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where51 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·1018,·SHA:·732548acff5239e9a7b904f32790c90ab3b63522635334128f35e01d37ceaeb6·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where
52 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,52 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
53 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·f1cdbb1ec64f98fabbe1d89c88b03824310926cd7eaa160953ce2452fc3abb77·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where53 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·869,·SHA:·8ec7e525848424d5104dbdd10928d17cfee4e5aee63cdda7ecdbe323b30b59d3·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where
54 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,54 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
55 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·f94a0b2c1396b13b89aca7830197ebf19e2c0e5ba536a9cc25b325a481799510·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where55 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·947,·SHA:·fdd074315a0bfb226f815b1b6ea114c7367886338ffffff233d7f6fc3108769a·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where
56 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="https://doc.rust-lang[·...·truncated·by·diffoscope;·len:·783,·SHA:·c14217b89e3292a50a09192a8857485891fc769f861e1d1fc4322d04295c86ef·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where56 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="../../core/iter/traits/iterator/trait.Iterator.h[·...·truncated·by·diffoscope;·len:·621,·SHA:·484df7f946e7f2f69c3acad8964421c0db8ac5bb40032d11bbd862e20e67704c·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where
57 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer57 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer
58 if·the·underlying·iterator·ends·sooner.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·c[·...·truncated·by·diffoscope;·len:·488,·SHA:·76f753d5a273a09a73127631acaa0ee947326a929f33be291018188793e1af56·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where58 if·the·underlying·iterator·ends·sooner.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·[·...·truncated·by·diffoscope;·len:·380,·SHA:·fa258c7e0b5d583304a69e2d4e19f3d4cc9a9ed830bdf3796eaa0968bdf590b4·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where
59 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,59 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
60 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·07d303586c8ad4e0082d5b44bff8eeda03cdb8f4bdbe46489f9232bca5a43ec6·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but60 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterat[·...·truncated·by·diffoscope;·len:·314,·SHA:·299331ff47adaff3ebc292c53557ad34da957aef932f87ec0444c7f856820410·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but
61 unlike·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·2b20882d9583cee50e0c8b3cf362b27ce0d524db387d4aa4093d622b9370dada·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where61 unlike·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.scan">Read·more[·...·truncated·by·diffoscope;·len:·555,·SHA:·77279e392f259f6d4859f5a7747ee4b4d5315f3af0ac3baebf1d53be3461b312·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where
62 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,62 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
63 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,63 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
64 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·933,·SHA:·4af94b75ba5c1e03d2d70590d2fd0706f13b3080fbff0f5b98e7b109048c403d·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where64 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·771,·SHA:·a1a50c8ca4c13151c7b22ce05c74c449231e1ffe44225beee67ff212fc1d3859·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where
65 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,65 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
66 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.I[·...·truncated·by·diffoscope;·len:·968,·SHA:·e5572ed2f3bdf5970d038da608f2f592d945541207c483c257fe5789efba168a·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where66 ····Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::col[·...·truncated·by·diffoscope;·len:·779,·SHA:·a4e524bd8aa8a1e0a66409d1b462b88093ab51a1f901ff1a788d7ee63d597f4c·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where
67 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,67 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
68 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·3013c0e49b0dade37f8ca096eccc5ceeb03fc79b9d320a4c92486d23b88d1009·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over68 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·54,·SHA:·6acee514e4d8df8979b4bba687b7e0d5dbb0ea4f98a7019e2fb03f3a8058df0f·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over
69 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,69 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="../../core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,
70 the·windows·during·mapping·overlap·as·well.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside">[·...·truncated·by·diffoscope;·len:·454,·SHA:·040991f3914479bcc92615de2b81df7363656323622e5aadc964e1a61917d23e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where70 the·windows·during·mapping·overlap·as·well.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="[·...·truncated·by·diffoscope;·len:·346,·SHA:·b1244a5f92e0573c29e04e883cf8212ba2586013b3687af07b63c29d2e611530·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where
71 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="https://doc.rust-lang.org/1.84.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·0e0294a45242d5ce9a3ab8f95d6d410756415291d92baa7d12283ef1b3ecc3a0·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where71 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="../../core/option/enum.Option.html#variant.None"·title="variant·cor[·...·truncated·by·diffoscope;·len:·679,·SHA:·ec753d6ecf7b9fe81cb270d78e45e053f2702fff74c7a63c2ab8da22b97fea86·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where
72 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,72 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
73 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·a8b562f71802a421f4745f7d1fadf4f70d98030c829e70f27b692e7915267027·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where73 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·635,·SHA:·ee3a5bcc3544c3f17985966634fef69b1708d641ddb7e62aaac76933935c5ef7·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where
74 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="https://doc.rust-lang.org/1.84.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·b3db7d84f203bbc139b1c52912705d19c664dac762898205fce452c9dc3a5318·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where74 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.by_ref">[·...·truncated·by·diffoscope;·len:·415,·SHA:·7e0e075470d2db380bcf0838446659654c982aa2ca7831ed7d0317877855be2a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where
75 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,75 ····B:·<a·class="trait"·href="../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
76 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·431,·SHA:·a705a23f6d810357e7dcac670743884665ffcccfb9b780d0aa03720be8ca5625·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(76 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.collect">Read[·...·truncated·by·diffoscope;·len:·323,·SHA:·80e0dde3814a6e7cf4e30949627abc841ab4e98e2a920efb248777e22708682d·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(
77 ····&amp;mut·self,77 ····&amp;mut·self,
78 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.h[·...·truncated·by·diffoscope;·len:·479,·SHA:·fa749442d890055f86ceb34f411c84fd7ea08302b336d786d1ca36fe5868b020·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where78 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&g[·...·truncated·by·diffoscope;·len:·344,·SHA:·c06c6401df0a7150633e94cc973521da42e09819b07be80ba18d6acb696860a9·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
79 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,79 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
80 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>,80 ····Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>,
81 ····&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.h[·...·truncated·by·diffoscope;·len:·300,·SHA:·3bff089180bac38df7f42b87556fae7641185b89a949c284f53e3ac718a6decb·...·]/core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;B&gt;,81 ····&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&g[·...·truncated·by·diffoscope;·len:·192,·SHA:·039ceb6ce31fc6b1871e3e366efbd0f164f4a6cc1bc25554bba598b0ee820cca·...·]/core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;B&gt;,
82 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/itera[·...·truncated·by·diffoscope;·len:·323,·SHA:·b5c51f161dc9d77fd81d1fd23cc71fbf42ac00f3168cf9e41ebaaa2b6eb25363·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if82 ····B:·<a·class="trait"·href="../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="ty[·...·truncated·by·diffoscope;·len:·215,·SHA:·ddb8fbd12147eecef1697edd4c63187cc514ab4b851290335adfcccc3fa429ba·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if
83 a·failure·is·encountered.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·ri[·...·truncated·by·diffoscope;·len:·521,·SHA:·6a54376815dab985ec8cc35604d035e98e3003b1563c9b41e70966084505542b·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where83 a·failure·is·encountered.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/co[·...·truncated·by·diffoscope;·len:·386,·SHA:·d46a776c329de4f757930edda252586c2cdd85c6956b7b2f68448da33ee0625e·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
84 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,84 ····E:·<a·class="trait"·href="../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
85 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·975,·SHA:·94f7f970236ba59ba5f1415764a0e3ab2f3093c6b79e76c25c797ac24a3c4d09·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where85 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_collect[·...·truncated·by·diffoscope;·len:·840,·SHA:·1ee6fbe4deb3d959e9ade58fb7ed3efa79d09721ed02fbb5f5f82aae6aa1425d·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
86 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,86 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
87 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·b480ec650ba000fe7cb67df58fc0351299638ee3e8f00db18f74ca24d69f9894·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,87 ····B:·<a·class="trait"·href="../../core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtyp[·...·truncated·by·diffoscope;·len:·14,·SHA:·4105980ca4887a52797067761af25a11e3de6069cd8d7c8ce82cd885bb798fe8·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
88 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·fdf5a1845f070855ba2cfd0c8c85460ea5cb646c4d3b42a8431bf21489c73701·...·]/core/primitive.usize.html">usize</a><div·class="where">where88 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·806,·SHA:·4d554b733db12e71a31ec2477a31408041941b0e2b0dc910904ecf2fced9f65b·...·]/core/primitive.usize.html">usize</a><div·class="where">where
89 ····T:·'a,89 ····T:·'a,
90 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·1fc250e258e9e42e4fa3e22f86ecd57057e9ff23e47af1aec778076a7a891134·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,90 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIter[·...·truncated·by·diffoscope;·len:·51,·SHA:·c9be73bbed9d11ecac2a179f480a640f51d6255f26712667ffdabc72c1fc7fb0·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,
91 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·5846407374f20f525a4a0663ad4488141eafe64513ef82581dc5df5c2d200745·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_partition_in_place</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62543">#62543</a>)</span></div></span><div·class='docblock'>Reorders·the·elements·of·this·iterator·<em>in-place</em>·according·to·the·given·predicate,91 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="../../core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_partition_in_place</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62543">#62543</a>)</span></div></span><div·class='docblock'>Reorders·the·elements·of·this·iterator·<em>in-place</em>·according·to·the·given·predicate,
92 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.92 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.
93 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.partition_in_place">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_partitioned"·class="method·trait-impl"><a·clas[·...·truncated·by·diffoscope;·len:·431,·SHA:·4aa7d028146c72d45794efc19a376d4bee3b75eda61ff46d969e440b3dbfa1b0·...·]/core/primitive.bool.html">bool</a><div·class="where">where93 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.partition_in_place">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_partitioned"·class="method·trait-impl"><a·class="src·rightside"·href="../[·...·truncated·by·diffoscope;·len:·323,·SHA:·bfc44418fa28079222aab80e2baccdaffb2d067bbe5d1b5162202d268ad628d7·...·]/core/primitive.bool.html">bool</a><div·class="where">where
94 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,94 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
95 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·fcd03e71f79faad6d9b9a12045d59f4dfabc78e5aefebcabc9c1a5be45e31125·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,95 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·54,·SHA:·d5ac304cc26edf57442227b641dd21c427d0f9cb322b79986f5b15fc49f867b0·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,
96 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><span·class="righ[·...·truncated·by·diffoscope;·len:·319,·SHA:·9b9df13f2f4e5b4dde3908515766e1a474fa30bcb7edc98c15665a016e677c2a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where96 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><span·class="rightside"><span·class="since"·[·...·truncated·by·diffoscope;·len:·238,·SHA:·af6ab768457e0afa1532b80c4296ae18061dac4c765922889b13eead3e5492db·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where
97 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,97 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
98 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,98 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
99 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns99 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns
100 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rights[·...·truncated·by·diffoscope;·len:·321,·SHA:·619fd774190944998148325de99aaa75de66ce4b7e26579fd342c564923a5652·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where100 successfully,·producing·a·single,·final·value.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"·ti[·...·truncated·by·diffoscope;·len:·240,·SHA:·125e84deea747ccbe139725d028362287beed6a89ab9da3a3aabd7df537abc59·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where
101 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,101 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
102 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,102 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
103 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the103 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="../../core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the
104 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·307,·SHA:·5975144fd8566efa93ad1ccec09297e280924b7372e08681d2103702124e2c52·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where104 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title=[·...·truncated·by·diffoscope;·len:·226,·SHA:·a7510e9271e68887d9e2681c6bc28312cec9ac38883128845f52742935a160a9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where
105 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,105 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
106 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,106 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,
107 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span[·...·truncated·by·diffoscope;·len:·619,·SHA:·8813f54846438870310d5f5dfabd2335a9dbf51e9da2e4cd681bcb6077d39628·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where107 returning·the·final·result.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stabl[·...·truncated·by·diffoscope;·len:·484,·SHA:·5f42e8d5ff08f4c76870e6cb9165e054f9a0d99051d9886ccd43d5c8a91e1fbc·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
108 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,108 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
109 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·084691f7fc4e7f4da7db385127d0ce8d2d52f6740757129a65910c4db0dc180d·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing109 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·244,·SHA:·f09ac7e818239538c3f3208cb5c76076c24a0153797eb762821d5bf2a382d83b·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing
110 operation.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·217,·SHA:·447ae00256be3de069c602a6c04889808c883eae6fa349d023f53bdd5570ecae·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(110 operation.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/iter[·...·truncated·by·diffoscope;·len:·136,·SHA:·97e3ee132585582ec7077e3bbd86406d8a2dcfc97dce7fd52b49af3ec1b58622·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(
111 ····&amp;mut·self,111 ····&amp;mut·self,
112 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R, 
113 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.T[·...·truncated·by·diffoscope;·len:·950,·SHA:·817376e71f7a0d170bfbd4b7264c15d324f49c65106c49349d11a077842aa533·...·]112 ····f:·impl·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core:[·...·truncated·by·diffoscope;·len:·238,·SHA:·a52edc1a1ce1db5dd6e620dbfe5acb58fdc6d84f2320cef02845988aa54e5c55·...·]
 113 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;&gt;&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
114 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,114 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
115 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,115 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
116 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·764ea8f08626b05426a76738d54ebb2d640042494d76cba8c20d868bfdc07a73·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the116 ····&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>:·<a[·...·truncated·by·diffoscope;·len:·277,·SHA:·0dd064909226a9691486376740de1e17aa133a7ae2f635bee3feaa9b19d7b580·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the
117 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><span·class="rightside"><s[·...·truncated·by·diffoscope;·len:·476,·SHA:·aef721c14147dea2fbec70dcfa76916b3f1273bed8304f4c9db310ca23d1e4b1·...·]/core/primitive.bool.html">bool</a><div·class="where">where117 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="St[·...·truncated·by·diffoscope;·len:·368,·SHA:·6dbfbc90b7cfda9017074212ce0beeb560c8f9ba918ba7b00292e34daa531cc2·...·]/core/primitive.bool.html">bool</a><div·class="where">where
118 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,118 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
119 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·7c48e62c73a40a5cb5ebbf4a22cd789b342a88ad3d855022191f2bae33c736c6·...·]/core/primitive.bool.html">bool</a><div·class="where">where119 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·829,·SHA:·c413d95d1072acd820201f12ffb54d04a6c7f3b732f7de46115ba40b4eb1bd3f·...·]/core/primitive.bool.html">bool</a><div·class="where">where
120 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,120 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
121 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·673d69ce0c23e24b2546127c463e67cd2a4c0f7be792712e2b42e75427161b75·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where121 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·956,·SHA:·105c7ff05d33bc9219febe8c9633cf1c1a8d88c32e47e44793d403a428174c66·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
122 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,122 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
123 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·aa5078ff77f5638746395497f8ce92c1b684d342dea851990104d5e9981ab6b0·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where123 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·862,·SHA:·ab608da827ec12779180206da5bfe43676627c19288c1fe674060a00ba44a595·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where
124 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,124 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
125 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·1bd732dff19021a1586bb486282683f5c1bc65d5d514f9e13cc9232b4e94955b·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;,</div></h4></section></summary><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns125 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·49,·SHA:·819211b646a21318a22e9d295452cdf890d5288a631a50261ca1a5b2bac9f748·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;,</div></h4></section></summary><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns
126 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.find_map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_find"·class="method·trait-impl"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·215,·SHA:·4d59a011c8881794ce6367c1e816f11a813db02e37c71800ed6d47056f157573·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(126 the·first·non-none·result.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.find_map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_find"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/iter[·...·truncated·by·diffoscope;·len:·134,·SHA:·f9a67b0520c850053a598ecaa24d4c1a006e7174ac499ec1e09451cd90ea548e·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(
Max diff block lines reached; 153107/336024 bytes (45.56%) of diff not shown.
328 KB
./usr/share/doc/rust-doc/html/alloc/slice/struct.ChunkByMut.html
    
Offset 1, 246 lines modifiedOffset 1, 246 lines modified
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="An·iterator·over·slice·in·(non-overlapping)·mutable·chunks·separated·by·a·predicate."><title>ChunkByMut·in·alloc::slice·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»    2025-01-07)» (built»   from»       a»      source»tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Chunk<wbr>ByMut</a></h2><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Debug-for-ChunkByMut%3C'a,+T,+P%3E"·title="Debug">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-ChunkByMut%3C'a,+T,+P%3E"·title="DoubleEndedIterator">DoubleEndedIterator</a></li><li><a·href="#impl-FusedIterator-for-ChunkByMut%3C'a,+T,+P%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-ChunkByMut%3C'a,+T,+P%3E"·title="Iterator">Iterator</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-UnwindSafe-for-ChunkByMut%3C'a,+T,+P%3E"·title="!UnwindSafe">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-ChunkByMut%3C'a,+T,+P%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-ChunkByMut%3C'a,+T,+P%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-ChunkByMut%3C'a,+T,+P%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-ChunkByMut%3C'a,+T,+P%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-ChunkByMut%3C'a,+T,+P%3E"·title="Unpin">Unpin</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>slice</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">alloc</a>::<wbr><a·href="index.html">slice</a></span><h1>Struct·<span·class="struct">ChunkByMut</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.77.0">1.77.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/slice/iter.rs.html#3388">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·ChunkByMut&lt;'a,·T,·P&gt;<div·class="where">where1 <!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="An·iterator·over·slice·in·(non-overlapping)·mutable·chunks·separated·by·a·predicate."><title>ChunkByMut·in·alloc::slice·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»    2025-01-07)» (built»   from»       a»      source»tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Chunk<wbr>ByMut</a></h2><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Debug-for-ChunkByMut%3C'a,+T,+P%3E"·title="Debug">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-ChunkByMut%3C'a,+T,+P%3E"·title="DoubleEndedIterator">DoubleEndedIterator</a></li><li><a·href="#impl-FusedIterator-for-ChunkByMut%3C'a,+T,+P%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-ChunkByMut%3C'a,+T,+P%3E"·title="Iterator">Iterator</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-UnwindSafe-for-ChunkByMut%3C'a,+T,+P%3E"·title="!UnwindSafe">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-ChunkByMut%3C'a,+T,+P%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-ChunkByMut%3C'a,+T,+P%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-ChunkByMut%3C'a,+T,+P%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-ChunkByMut%3C'a,+T,+P%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-ChunkByMut%3C'a,+T,+P%3E"·title="Unpin">Unpin</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>slice</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">alloc</a>::<wbr><a·href="index.html">slice</a></span><h1>Struct·<span·class="struct">ChunkByMut</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.77.0">1.77.0</span>···<a·class="src"·href="../../src/core/slice/iter.rs.html#3388">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·ChunkByMut&lt;'a,·T,·P&gt;<div·class="where">where
2 ····T:·'a,</div>{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>An·iterator·over·slice·in·(non-overlapping)·mutable·chunks·separated2 ····T:·'a,</div>{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>An·iterator·over·slice·in·(non-overlapping)·mutable·chunks·separated
3 by·a·predicate.</p>3 by·a·predicate.</p>
4 <p>This·struct·is·created·by·the·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html#method.chunk_by_mut"·title="method·slice::chunk_by_mut"><code>chunk_by_mut</code></a>·method·on·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html"·title="primitive·slice">slices</a>.</p>4 <p>This·struct·is·created·by·the·<a·href="../../core/primitive.slice.html#method.chunk_by_mut"·title="method·slice::chunk_by_mut"><code>chunk_by_mut</code></a>·method·on·<a·href="../../core/primitive.slice.html"·title="primitive·slice">slices</a>.</p>
5 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-ChunkByMut%3C'a,+T,+P%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.77.0">1.77.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/slice/iter.rs.html#3462">Source</a></span><a·href="#impl-Debug-for-ChunkByMut%3C'a,+T,+P%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·T,·P&gt;·<a·class="trait"·href="../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.ChunkByMut.html"·title="struct·alloc::slice::ChunkByMut">ChunkByMut</a>&lt;'a,·T,·P&gt;<div·class="where">where5 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-ChunkByMut%3C'a,+T,+P%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.77.0">1.77.0</span>···<a·class="src"·href="../../src/core/slice/iter.rs.html#3462">Source</a></span><a·href="#impl-Debug-for-ChunkByMut%3C'a,+T,+P%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·T,·P&gt;·<a·class="trait"·href="../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.ChunkByMut.html"·title="struct·alloc::slice::ChunkByMut">ChunkByMut</a>&lt;'a,·T,·P&gt;<div·class="where">where
6 ····T:·'a·+·<a·class="trait"·href="../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/slice/iter.rs.html#3463">Source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·hre[·...·truncated·by·diffoscope;·len:·1143,·SHA:·e609289bf541b352d0e27b46709eef05403528555245f860ef3511d20ba2c57d·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIterator</a>·for·<a·class="struct"·href="struct.ChunkByMut.html"·title="struct·alloc::slice::ChunkByMut">ChunkByMut</a>&lt;'a,·T,·P&gt;<div·class="where">where6 ····T:·'a·+·<a·class="trait"·href="../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/slice/iter.rs.html#3463">Source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="../fmt/struct.Formatter.[·...·truncated·by·diffoscope;·len:·1008,·SHA:·5726f2a2d5312685cc381dc7d1efbe6a0c7b6a5c9766887ee9931e0546eb5387·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIterator</a>·for·<a·class="struct"·href="struct.ChunkByMut.html"·title="struct·alloc::slice::ChunkByMut">ChunkByMut</a>&lt;'a,·T,·P&gt;<div·class="where">where
7 ····T:·'a,7 ····T:·'a,
8 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;T</a>,·<a·class="primitive"·href="https:[·...·truncated·by·diffoscope;·len:·4898,·SHA:·3ec62ef77cc278ced0d2c5c44155008779e079b5d27e589a673a035e17452ad6·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold"·class="fn">try_rfold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where8 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../core/primitive.reference.html">&amp;T</a>,·<a·class="primitive"·href="../../core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·cl[·...·truncated·by·diffoscope;·len:·4196,·SHA:·5efdf47636f69927e20f1e9bc7652be68c00562eced071d8184f758b231851fe·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold"·class="fn">try_rfold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where
9 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,9 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
10 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,10 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
11 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>This·is·the·reverse·version·of·<a·href="https://doc.rust-lang.org/1.8[·...·truncated·by·diffoscope;·len:·3,·SHA:·fbd04e1aae9ce0b11a8946e2c9ac2619f7428a64d32d01eff61d809dcb70ee8e·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·title="method·core::iter::traits::iterator::Iterator::try_fold"><code>Iterator::try_fold()</code></a>:·it·takes11 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>This·is·the·reverse·version·of·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·title="method·core::iter::traits::iterator::Iterator::try_fold"><code>Iterator::try_fold()</code></a>:·it·takes
12 elements·starting·from·the·back·of·the·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfold"·class="method·trait-impl"><span·clas[·...·truncated·by·diffoscope;·len:·325,·SHA:·7ffdb06a8ab3810207a1c974783822231eaf1d82fd94bcf810dd7b3181149b7b·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold"·class="fn">rfold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where12 elements·starting·from·the·back·of·the·iterator.·<a·href="../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfold"·class="method·trait-impl"><span·class="rightside"><span·class="[·...·truncated·by·diffoscope;·len:·244,·SHA:·6c4fe3f75fed1f00ec73ae6acd6efe929fb891f07f47293eec1013d32fc0fbe1·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold"·class="fn">rfold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where
13 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,13 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
14 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·reduces·the·iterator’s·elements·to·a·single,14 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·reduces·the·iterator’s·elements·to·a·single,
15 final·value,·starting·from·the·back.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfind"·class="method·trait-impl"><span·class="r[·...·truncated·by·diffoscope;·len:·665,·SHA:·fde89feb7c0e70eefa34d688476ca36a70115bec8150dbf9b1a3c359f72dd28d·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where15 final·value,·starting·from·the·back.·<a·href="../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfind"·class="method·trait-impl"><span·class="rightside"><span·class="sinc[·...·truncated·by·diffoscope;·len:·530,·SHA:·75a595bf6f9813abee32ae86d68f5de961884ee60e7080e18fb9c73b8e22c5f0·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
16 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,16 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
17 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·985,·SHA:·3b48b2b0c4ce5fb7c6dfa8fae1dcde3be8dae1d826bc273658785bda4ec6061f·...·]/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::Iterator">Iterator</a>·for·<a·class="struct"·href="struct.ChunkByMut.html"·title="struct·alloc::slice::ChunkByMut">ChunkByMut</a>&lt;'a,·T,·P&gt;<div·class="where">where17 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·823,·SHA:·edb637729a3d88691b03f3579d2479c5cb12d96abdc3bc4a3d0a0b466f036303·...·]/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::Iterator">Iterator</a>·for·<a·class="struct"·href="struct.ChunkByMut.html"·title="struct·alloc::slice::ChunkByMut">ChunkByMut</a>&lt;'a,·T,·P&gt;<div·class="where">where
18 ····T:·'a,18 ····T:·'a,
19 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;T</a>,·<a·class="primitive"·href="https:[·...·truncated·by·diffoscope;·len:·4971,·SHA:·69919a7575c23d27c9f2db21be7bc35c5a4aa5a461ad8a75cb29b2a77e99e46a·...·]/core/primitive.usize.html">usize</a>&gt;(19 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../core/primitive.reference.html">&amp;T</a>,·<a·class="primitive"·href="../../core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·cl[·...·truncated·by·diffoscope;·len:·4215,·SHA:·ace4f9043f7f5f44322fbe228d9a02a75fe46663c58263af4da072204eac4ee8·...·]/core/primitive.usize.html">usize</a>&gt;(
20 ····&amp;mut·self,20 ····&amp;mut·self,
21 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·4f557a9b49151e0be8c52ffd68f1def4469c08164239dc8bef8df2040551c5ef·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where21 )·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">It[·...·truncated·by·diffoscope;·len:·246,·SHA:·baf6c8e6f3d5dbac69324111240b1587dbb858d42149cae1ee895a165289ff4f·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where
22 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·962,·SHA:·116e4ec2ae3d9655c3d115eaf50f435f5323b4e48b84de734c79d2a09b3c02f2·...·]/core/primitive.usize.html">usize</a><div·class="where">where22 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_next_ch[·...·truncated·by·diffoscope;·len:·827,·SHA:·2479cde9ab5aa3e18f76cf74cf7889a3de87c66e1745f27cf29bd34c4d30dbdf·...·]/core/primitive.usize.html">usize</a><div·class="where">where
23 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·counting·the·number·of·iterations·and·returning·it.·<a·href="https://doc.[·...·truncated·by·diffoscope;·len:·3529,·SHA:·36685e4ebfba7d155142dce71eec5dabe5f32dacb8a458b62987f15496f31675·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where23 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·counting·the·number·of·iterations·and·returning·it.·<a·href="../../core/iter/traits/iterator/trait.I[·...·truncated·by·diffoscope;·len:·2989,·SHA:·52662d0d84351ee66fd08cf83fe69d664777396d635c71dc09e542292824ef32·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where
24 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by24 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by
25 the·given·amount·at·each·iteration.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><sp[·...·truncated·by·diffoscope;·len:·842,·SHA:·945c4509a8daf2f8fbccc5c6e5089e225955911e03a3e411f047f96d52d16862·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where25 the·given·amount·at·each·iteration.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Sta[·...·truncated·by·diffoscope;·len:·680,·SHA:·77241b5118fcbc984cb791fa9f75077307e18056b66492741335faf440cbdabc·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
26 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,26 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
27 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·3b5ce32f9d564c3aa7cf2adc7130e674758d0c0f4f1275b4c3b46a74aa802cb3·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where27 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·1113,·SHA:·ccf22d19f49a25daffdcc6d9226d5107457a8bfd16beccfeff5020d151bdb8bb·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
28 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,28 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
29 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·[·...·truncated·by·diffoscope;·len:·868,·SHA:·abdbf27ccc84063c7040d8fa3da9d0bda5ee310a470ef576e15554aee4bd5d21·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where29 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·of·pairs.·<a·href="../../co[·...·truncated·by·diffoscope;·len:·706,·SHA:·f32c568f049122021445a983654582d97ac74064a3e99c3361b348bd7708c1b2·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where
30 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,30 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
31 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent31 ····Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent
32 items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="sr[·...·truncated·by·diffoscope;·len:·427,·SHA:·6e82ad4aad49c2165d869fe30d20a968580a973cdb3a7f4c77f49e16dd59393e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where32 items·of·the·original·iterator.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="src·rightside"·href="../../sr[·...·truncated·by·diffoscope;·len:·319,·SHA:·8babc469a22056fc5a02684b52f9f93ba9c27a3dd2e8443ddc060797054e211e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where
33 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,33 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
34 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>34 ····G:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>
35 between·adjacent·items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightsi[·...·truncated·by·diffoscope;·len:·471,·SHA:·ed10488b7b2ccc3e4cc84a9a57a9695a74c1c964962e8d753cbace12f3318a66·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where35 between·adjacent·items·of·the·original·iterator.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·tit[·...·truncated·by·diffoscope;·len:·363,·SHA:·09aee21fa4172b743a714e2cb5915129575ce0224df49c7343dec38f43b7ecfd·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where
36 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,36 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
37 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each37 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each
38 element.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><spa[·...·truncated·by·diffoscope;·len:·306,·SHA:·61c87c39b177830189b0e4c036d97c40d8b9649d76432c90afb88de59498e8b2·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where38 element.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stab[·...·truncated·by·diffoscope;·len:·225,·SHA:·a0f2490a1a5fd6b44e0ab01199cbbbd6e5463251405d11eaf6798c9b50bbd683·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where
39 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,39 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
40 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·a65da32c5f5ef8335cb607d3b4ab3f8a25877bc2c2e8b44ca9d575caecd5c8a5·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where40 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·754,·SHA:·421e55a5747cab3df1dad40b747b4633f241bdc13a1546bb19b1370788dea27d·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where
41 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,41 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
42 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·6d69c85c69fa789be551ea42d95c33c237d12a04ef157f9ddaaead1177f7771e·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element42 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·59,·SHA:·76969e34965f1923de668a65a9f5c33f73266468c9b96650bcc5fd498e606a6b·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element
43 should·be·yielded.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·489,·SHA:·9bdc636899f4e4e5a26a3a21c9603f72b3fb972865d2f459c38b7e2ac8fed7f1·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where43 should·be·yielded.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·cf812944678f6755720896cf32b330946303afe59f1b1c11adeb6a7f33454c8d·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where
44 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,44 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
45 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·46dbf841c7aecd3f06bd4c944af21650faeac98c46c515dcfe643302618b1ecd·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where45 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·863,·SHA:·c2bab87fa2a70713bd2d34b3dcae8f4ff2341917103b43a1dd505317f15d6cff·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where
46 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as46 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as
47 the·next·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside[·...·truncated·by·diffoscope;·len:·468,·SHA:·52f7ff7f264284c3acc4429ca34d057ded9afa2e3d9d6e07571e252db9a48977·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where47 the·next·value.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title[·...·truncated·by·diffoscope;·len:·360,·SHA:·688416dc1aaaa0be069177270ba9e74b3d1b92521285a109dc7ba86b58c1f22a·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where
48 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·c0180fefce4346b0b4089e5c642521d7716108241c0ce6ec3e910c7a2c7364b4·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods48 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="../../core/iter/adapters/peekable/struct.Peekable.html#method.peek"·title="m[·...·truncated·by·diffoscope;·len:·94,·SHA:·78aeab33f83c647dfe680c1050358c95977e3af17eabde4a04880721ea1a619d·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods
49 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See49 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See
50 their·documentation·for·more·information.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightsid[·...·truncated·by·diffoscope;·len:·498,·SHA:·e4a68861585faec6a5032b3b69d6dfb0f2799b5f387a527d9a1365571ed02069·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where50 their·documentation·for·more·information.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightside"><span·class="since"·titl[·...·truncated·by·diffoscope;·len:·390,·SHA:·5da622ae0e4d00b47239007520070e22568156d6c5b1662db8b80b465934b18c·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where
51 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,51 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
52 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·93281c1f6402743fd61110c11cf676f0f67eddceda801b4eb35e5fe9f85870fd·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where52 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·1018,·SHA:·732548acff5239e9a7b904f32790c90ab3b63522635334128f35e01d37ceaeb6·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where
53 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,53 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
54 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·f1cdbb1ec64f98fabbe1d89c88b03824310926cd7eaa160953ce2452fc3abb77·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where54 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·869,·SHA:·8ec7e525848424d5104dbdd10928d17cfee4e5aee63cdda7ecdbe323b30b59d3·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where
55 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,55 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
56 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·f94a0b2c1396b13b89aca7830197ebf19e2c0e5ba536a9cc25b325a481799510·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where56 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·947,·SHA:·fdd074315a0bfb226f815b1b6ea114c7367886338ffffff233d7f6fc3108769a·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where
57 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="https://doc.rust-lang[·...·truncated·by·diffoscope;·len:·783,·SHA:·c14217b89e3292a50a09192a8857485891fc769f861e1d1fc4322d04295c86ef·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where57 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="../../core/iter/traits/iterator/trait.Iterator.h[·...·truncated·by·diffoscope;·len:·621,·SHA:·484df7f946e7f2f69c3acad8964421c0db8ac5bb40032d11bbd862e20e67704c·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where
58 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer58 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer
59 if·the·underlying·iterator·ends·sooner.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·c[·...·truncated·by·diffoscope;·len:·488,·SHA:·76f753d5a273a09a73127631acaa0ee947326a929f33be291018188793e1af56·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where59 if·the·underlying·iterator·ends·sooner.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·[·...·truncated·by·diffoscope;·len:·380,·SHA:·fa258c7e0b5d583304a69e2d4e19f3d4cc9a9ed830bdf3796eaa0968bdf590b4·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where
60 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,60 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
61 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·07d303586c8ad4e0082d5b44bff8eeda03cdb8f4bdbe46489f9232bca5a43ec6·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but61 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterat[·...·truncated·by·diffoscope;·len:·314,·SHA:·299331ff47adaff3ebc292c53557ad34da957aef932f87ec0444c7f856820410·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but
62 unlike·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·2b20882d9583cee50e0c8b3cf362b27ce0d524db387d4aa4093d622b9370dada·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where62 unlike·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.scan">Read·more[·...·truncated·by·diffoscope;·len:·555,·SHA:·77279e392f259f6d4859f5a7747ee4b4d5315f3af0ac3baebf1d53be3461b312·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where
63 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,63 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
64 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,64 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
65 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·933,·SHA:·4af94b75ba5c1e03d2d70590d2fd0706f13b3080fbff0f5b98e7b109048c403d·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where65 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·771,·SHA:·a1a50c8ca4c13151c7b22ce05c74c449231e1ffe44225beee67ff212fc1d3859·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where
66 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,66 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
67 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.I[·...·truncated·by·diffoscope;·len:·968,·SHA:·e5572ed2f3bdf5970d038da608f2f592d945541207c483c257fe5789efba168a·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where67 ····Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::col[·...·truncated·by·diffoscope;·len:·779,·SHA:·a4e524bd8aa8a1e0a66409d1b462b88093ab51a1f901ff1a788d7ee63d597f4c·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where
68 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,68 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
69 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·3013c0e49b0dade37f8ca096eccc5ceeb03fc79b9d320a4c92486d23b88d1009·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over69 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·54,·SHA:·6acee514e4d8df8979b4bba687b7e0d5dbb0ea4f98a7019e2fb03f3a8058df0f·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over
70 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,70 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="../../core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,
71 the·windows·during·mapping·overlap·as·well.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside">[·...·truncated·by·diffoscope;·len:·454,·SHA:·040991f3914479bcc92615de2b81df7363656323622e5aadc964e1a61917d23e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where71 the·windows·during·mapping·overlap·as·well.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="[·...·truncated·by·diffoscope;·len:·346,·SHA:·b1244a5f92e0573c29e04e883cf8212ba2586013b3687af07b63c29d2e611530·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where
72 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="https://doc.rust-lang.org/1.84.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·0e0294a45242d5ce9a3ab8f95d6d410756415291d92baa7d12283ef1b3ecc3a0·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where72 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="../../core/option/enum.Option.html#variant.None"·title="variant·cor[·...·truncated·by·diffoscope;·len:·679,·SHA:·ec753d6ecf7b9fe81cb270d78e45e053f2702fff74c7a63c2ab8da22b97fea86·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where
73 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,73 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
74 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·a8b562f71802a421f4745f7d1fadf4f70d98030c829e70f27b692e7915267027·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where74 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·635,·SHA:·ee3a5bcc3544c3f17985966634fef69b1708d641ddb7e62aaac76933935c5ef7·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where
75 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="https://doc.rust-lang.org/1.84.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·b3db7d84f203bbc139b1c52912705d19c664dac762898205fce452c9dc3a5318·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where75 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.by_ref">[·...·truncated·by·diffoscope;·len:·415,·SHA:·7e0e075470d2db380bcf0838446659654c982aa2ca7831ed7d0317877855be2a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where
76 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,76 ····B:·<a·class="trait"·href="../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
77 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·431,·SHA:·a705a23f6d810357e7dcac670743884665ffcccfb9b780d0aa03720be8ca5625·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(77 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.collect">Read[·...·truncated·by·diffoscope;·len:·323,·SHA:·80e0dde3814a6e7cf4e30949627abc841ab4e98e2a920efb248777e22708682d·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(
78 ····&amp;mut·self,78 ····&amp;mut·self,
79 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.h[·...·truncated·by·diffoscope;·len:·479,·SHA:·fa749442d890055f86ceb34f411c84fd7ea08302b336d786d1ca36fe5868b020·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where79 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&g[·...·truncated·by·diffoscope;·len:·344,·SHA:·c06c6401df0a7150633e94cc973521da42e09819b07be80ba18d6acb696860a9·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
80 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,80 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
81 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>,81 ····Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>,
82 ····&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.h[·...·truncated·by·diffoscope;·len:·300,·SHA:·3bff089180bac38df7f42b87556fae7641185b89a949c284f53e3ac718a6decb·...·]/core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;B&gt;,82 ····&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&g[·...·truncated·by·diffoscope;·len:·192,·SHA:·039ceb6ce31fc6b1871e3e366efbd0f164f4a6cc1bc25554bba598b0ee820cca·...·]/core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;B&gt;,
83 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/itera[·...·truncated·by·diffoscope;·len:·323,·SHA:·b5c51f161dc9d77fd81d1fd23cc71fbf42ac00f3168cf9e41ebaaa2b6eb25363·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if83 ····B:·<a·class="trait"·href="../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="ty[·...·truncated·by·diffoscope;·len:·215,·SHA:·ddb8fbd12147eecef1697edd4c63187cc514ab4b851290335adfcccc3fa429ba·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if
84 a·failure·is·encountered.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·ri[·...·truncated·by·diffoscope;·len:·521,·SHA:·6a54376815dab985ec8cc35604d035e98e3003b1563c9b41e70966084505542b·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where84 a·failure·is·encountered.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/co[·...·truncated·by·diffoscope;·len:·386,·SHA:·d46a776c329de4f757930edda252586c2cdd85c6956b7b2f68448da33ee0625e·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
85 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,85 ····E:·<a·class="trait"·href="../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
86 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·975,·SHA:·94f7f970236ba59ba5f1415764a0e3ab2f3093c6b79e76c25c797ac24a3c4d09·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where86 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_collect[·...·truncated·by·diffoscope;·len:·840,·SHA:·1ee6fbe4deb3d959e9ade58fb7ed3efa79d09721ed02fbb5f5f82aae6aa1425d·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
87 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,87 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
88 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·b480ec650ba000fe7cb67df58fc0351299638ee3e8f00db18f74ca24d69f9894·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,88 ····B:·<a·class="trait"·href="../../core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtyp[·...·truncated·by·diffoscope;·len:·14,·SHA:·4105980ca4887a52797067761af25a11e3de6069cd8d7c8ce82cd885bb798fe8·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
89 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·fdf5a1845f070855ba2cfd0c8c85460ea5cb646c4d3b42a8431bf21489c73701·...·]/core/primitive.usize.html">usize</a><div·class="where">where89 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·806,·SHA:·4d554b733db12e71a31ec2477a31408041941b0e2b0dc910904ecf2fced9f65b·...·]/core/primitive.usize.html">usize</a><div·class="where">where
90 ····T:·'a,90 ····T:·'a,
91 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·1fc250e258e9e42e4fa3e22f86ecd57057e9ff23e47af1aec778076a7a891134·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,91 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIter[·...·truncated·by·diffoscope;·len:·51,·SHA:·c9be73bbed9d11ecac2a179f480a640f51d6255f26712667ffdabc72c1fc7fb0·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,
92 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·5846407374f20f525a4a0663ad4488141eafe64513ef82581dc5df5c2d200745·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_partition_in_place</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62543">#62543</a>)</span></div></span><div·class='docblock'>Reorders·the·elements·of·this·iterator·<em>in-place</em>·according·to·the·given·predicate,92 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="../../core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_partition_in_place</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62543">#62543</a>)</span></div></span><div·class='docblock'>Reorders·the·elements·of·this·iterator·<em>in-place</em>·according·to·the·given·predicate,
93 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.93 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.
94 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.partition_in_place">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_partitioned"·class="method·trait-impl"><a·clas[·...·truncated·by·diffoscope;·len:·431,·SHA:·4aa7d028146c72d45794efc19a376d4bee3b75eda61ff46d969e440b3dbfa1b0·...·]/core/primitive.bool.html">bool</a><div·class="where">where94 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.partition_in_place">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_partitioned"·class="method·trait-impl"><a·class="src·rightside"·href="../[·...·truncated·by·diffoscope;·len:·323,·SHA:·bfc44418fa28079222aab80e2baccdaffb2d067bbe5d1b5162202d268ad628d7·...·]/core/primitive.bool.html">bool</a><div·class="where">where
95 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,95 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
96 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·fcd03e71f79faad6d9b9a12045d59f4dfabc78e5aefebcabc9c1a5be45e31125·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,96 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·54,·SHA:·d5ac304cc26edf57442227b641dd21c427d0f9cb322b79986f5b15fc49f867b0·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,
97 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><span·class="righ[·...·truncated·by·diffoscope;·len:·319,·SHA:·9b9df13f2f4e5b4dde3908515766e1a474fa30bcb7edc98c15665a016e677c2a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where97 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><span·class="rightside"><span·class="since"·[·...·truncated·by·diffoscope;·len:·238,·SHA:·af6ab768457e0afa1532b80c4296ae18061dac4c765922889b13eead3e5492db·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where
98 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,98 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
99 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,99 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
100 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns100 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns
101 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rights[·...·truncated·by·diffoscope;·len:·321,·SHA:·619fd774190944998148325de99aaa75de66ce4b7e26579fd342c564923a5652·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where101 successfully,·producing·a·single,·final·value.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"·ti[·...·truncated·by·diffoscope;·len:·240,·SHA:·125e84deea747ccbe139725d028362287beed6a89ab9da3a3aabd7df537abc59·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where
102 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,102 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
103 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,103 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
104 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the104 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="../../core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the
105 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·307,·SHA:·5975144fd8566efa93ad1ccec09297e280924b7372e08681d2103702124e2c52·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where105 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title=[·...·truncated·by·diffoscope;·len:·226,·SHA:·a7510e9271e68887d9e2681c6bc28312cec9ac38883128845f52742935a160a9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where
106 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,106 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
107 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,107 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,
108 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span[·...·truncated·by·diffoscope;·len:·619,·SHA:·8813f54846438870310d5f5dfabd2335a9dbf51e9da2e4cd681bcb6077d39628·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where108 returning·the·final·result.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stabl[·...·truncated·by·diffoscope;·len:·484,·SHA:·5f42e8d5ff08f4c76870e6cb9165e054f9a0d99051d9886ccd43d5c8a91e1fbc·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
109 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,109 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
110 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·084691f7fc4e7f4da7db385127d0ce8d2d52f6740757129a65910c4db0dc180d·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing110 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·244,·SHA:·f09ac7e818239538c3f3208cb5c76076c24a0153797eb762821d5bf2a382d83b·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing
111 operation.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·217,·SHA:·447ae00256be3de069c602a6c04889808c883eae6fa349d023f53bdd5570ecae·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(111 operation.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/iter[·...·truncated·by·diffoscope;·len:·136,·SHA:·97e3ee132585582ec7077e3bbd86406d8a2dcfc97dce7fd52b49af3ec1b58622·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(
112 ····&amp;mut·self,112 ····&amp;mut·self,
113 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R, 
114 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.T[·...·truncated·by·diffoscope;·len:·950,·SHA:·817376e71f7a0d170bfbd4b7264c15d324f49c65106c49349d11a077842aa533·...·]113 ····f:·impl·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core:[·...·truncated·by·diffoscope;·len:·238,·SHA:·a52edc1a1ce1db5dd6e620dbfe5acb58fdc6d84f2320cef02845988aa54e5c55·...·]
 114 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;&gt;&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
115 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,115 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
116 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,116 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
117 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·764ea8f08626b05426a76738d54ebb2d640042494d76cba8c20d868bfdc07a73·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the117 ····&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>:·<a[·...·truncated·by·diffoscope;·len:·277,·SHA:·0dd064909226a9691486376740de1e17aa133a7ae2f635bee3feaa9b19d7b580·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the
118 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><span·class="rightside"><s[·...·truncated·by·diffoscope;·len:·476,·SHA:·aef721c14147dea2fbec70dcfa76916b3f1273bed8304f4c9db310ca23d1e4b1·...·]/core/primitive.bool.html">bool</a><div·class="where">where118 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="St[·...·truncated·by·diffoscope;·len:·368,·SHA:·6dbfbc90b7cfda9017074212ce0beeb560c8f9ba918ba7b00292e34daa531cc2·...·]/core/primitive.bool.html">bool</a><div·class="where">where
119 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,119 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
120 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·7c48e62c73a40a5cb5ebbf4a22cd789b342a88ad3d855022191f2bae33c736c6·...·]/core/primitive.bool.html">bool</a><div·class="where">where120 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·829,·SHA:·c413d95d1072acd820201f12ffb54d04a6c7f3b732f7de46115ba40b4eb1bd3f·...·]/core/primitive.bool.html">bool</a><div·class="where">where
121 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,121 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
122 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·673d69ce0c23e24b2546127c463e67cd2a4c0f7be792712e2b42e75427161b75·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where122 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·956,·SHA:·105c7ff05d33bc9219febe8c9633cf1c1a8d88c32e47e44793d403a428174c66·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
123 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,123 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
124 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·aa5078ff77f5638746395497f8ce92c1b684d342dea851990104d5e9981ab6b0·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where124 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·862,·SHA:·ab608da827ec12779180206da5bfe43676627c19288c1fe674060a00ba44a595·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where
125 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,125 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
126 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·1bd732dff19021a1586bb486282683f5c1bc65d5d514f9e13cc9232b4e94955b·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;,</div></h4></section></summary><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns126 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·49,·SHA:·819211b646a21318a22e9d295452cdf890d5288a631a50261ca1a5b2bac9f748·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;,</div></h4></section></summary><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns
Max diff block lines reached; 152587/335803 bytes (45.44%) of diff not shown.
345 KB
./usr/share/doc/rust-doc/html/alloc/slice/struct.Chunks.html
Max HTML report size reached
351 KB
./usr/share/doc/rust-doc/html/alloc/slice/struct.ChunksExact.html
Max HTML report size reached
334 KB
./usr/share/doc/rust-doc/html/alloc/slice/struct.ChunksExactMut.html
    
Offset 1, 246 lines modifiedOffset 1, 246 lines modified
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="An·iterator·over·a·slice·in·(non-overlapping)·mutable·chunks·(`chunk_size`·elements·at·a·time),·starting·at·the·beginning·of·the·slice."><title>ChunksExactMut·in·alloc::slice·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»      2025-01-07)»   (built»     from» a»source»  tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Chunks<wbr>Exact<wbr>Mut</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#example"·title="Example">Example</a></li></ul><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.into_remainder"·title="into_remainder">into_remainder</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Debug-for-ChunksExactMut%3C'a,+T%3E"·title="Debug">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-ChunksExactMut%3C'a,+T%3E"·title="DoubleEndedIterator">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-ChunksExactMut%3C'_,+T%3E"·title="ExactSizeIterator">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-ChunksExactMut%3C'_,+T%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-ChunksExactMut%3C'a,+T%3E"·title="Iterator">Iterator</a></li><li><a·href="#impl-Send-for-ChunksExactMut%3C'_,+T%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-ChunksExactMut%3C'_,+T%3E"·title="Sync">Sync</a></li><li><a·href="#impl-TrustedLen-for-ChunksExactMut%3C'_,+T%3E"·title="TrustedLen">TrustedLen</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-UnwindSafe-for-ChunksExactMut%3C'a,+T%3E"·title="!UnwindSafe">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-ChunksExactMut%3C'a,+T%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-ChunksExactMut%3C'a,+T%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Unpin-for-ChunksExactMut%3C'a,+T%3E"·title="Unpin">Unpin</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>slice</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">alloc</a>::<wbr><a·href="index.html">slice</a></span><h1>Struct·<span·class="struct">ChunksExactMut</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/slice/iter.rs.html#2028">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·ChunksExactMut&lt;'a,·T&gt;<div·class="where">where1 <!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="An·iterator·over·a·slice·in·(non-overlapping)·mutable·chunks·(`chunk_size`·elements·at·a·time),·starting·at·the·beginning·of·the·slice."><title>ChunksExactMut·in·alloc::slice·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»      2025-01-07)»   (built»     from» a»source»  tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Chunks<wbr>Exact<wbr>Mut</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#example"·title="Example">Example</a></li></ul><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.into_remainder"·title="into_remainder">into_remainder</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Debug-for-ChunksExactMut%3C'a,+T%3E"·title="Debug">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-ChunksExactMut%3C'a,+T%3E"·title="DoubleEndedIterator">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-ChunksExactMut%3C'_,+T%3E"·title="ExactSizeIterator">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-ChunksExactMut%3C'_,+T%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-ChunksExactMut%3C'a,+T%3E"·title="Iterator">Iterator</a></li><li><a·href="#impl-Send-for-ChunksExactMut%3C'_,+T%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-ChunksExactMut%3C'_,+T%3E"·title="Sync">Sync</a></li><li><a·href="#impl-TrustedLen-for-ChunksExactMut%3C'_,+T%3E"·title="TrustedLen">TrustedLen</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-UnwindSafe-for-ChunksExactMut%3C'a,+T%3E"·title="!UnwindSafe">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-ChunksExactMut%3C'a,+T%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-ChunksExactMut%3C'a,+T%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Unpin-for-ChunksExactMut%3C'a,+T%3E"·title="Unpin">Unpin</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>slice</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">alloc</a>::<wbr><a·href="index.html">slice</a></span><h1>Struct·<span·class="struct">ChunksExactMut</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../src/core/slice/iter.rs.html#2028">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·ChunksExactMut&lt;'a,·T&gt;<div·class="where">where
2 ····T:·'a,</div>{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>An·iterator·over·a·slice·in·(non-overlapping)·mutable·chunks·(<code>chunk_size</code>2 ····T:·'a,</div>{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>An·iterator·over·a·slice·in·(non-overlapping)·mutable·chunks·(<code>chunk_size</code>
3 elements·at·a·time),·starting·at·the·beginning·of·the·slice.</p>3 elements·at·a·time),·starting·at·the·beginning·of·the·slice.</p>
4 <p>When·the·slice·len·is·not·evenly·divided·by·the·chunk·size,·the·last·up·to4 <p>When·the·slice·len·is·not·evenly·divided·by·the·chunk·size,·the·last·up·to
5 <code>chunk_size-1</code>·elements·will·be·omitted·but·can·be·retrieved·from·the5 <code>chunk_size-1</code>·elements·will·be·omitted·but·can·be·retrieved·from·the
6 <a·href="struct.ChunksExactMut.html#method.into_remainder"·title="method·alloc::slice::ChunksExactMut::into_remainder"><code>into_remainder</code></a>·function·from·the·iterator.</p>6 <a·href="struct.ChunksExactMut.html#method.into_remainder"·title="method·alloc::slice::ChunksExactMut::into_remainder"><code>into_remainder</code></a>·function·from·the·iterator.</p>
7 <p>This·struct·is·created·by·the·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html#method.chunks_exact_mut"·title="method·slice::chunks_exact_mut"><code>chunks_exact_mut</code></a>·method·on·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html"·title="primitive·slice">slices</a>.</p>7 <p>This·struct·is·created·by·the·<a·href="../../core/primitive.slice.html#method.chunks_exact_mut"·title="method·slice::chunks_exact_mut"><code>chunks_exact_mut</code></a>·method·on·<a·href="../../core/primitive.slice.html"·title="primitive·slice">slices</a>.</p>
8 <h2·id="example"><a·class="doc-anchor"·href="#example">§</a>Example</h2>8 <h2·id="example"><a·class="doc-anchor"·href="#example">§</a>Example</h2>
9 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span><span·class="kw-2">mut·</span>slice·=·[<span·class="string">'l'</span>,·<span·class="string">'o'</span>,·<span·class="string">'r'</span>,·<span·class="string">'e'</span>,·<span·class="string">'m'</span>];9 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span><span·class="kw-2">mut·</span>slice·=·[<span·class="string">'l'</span>,·<span·class="string">'o'</span>,·<span·class="string">'r'</span>,·<span·class="string">'e'</span>,·<span·class="string">'m'</span>];
10 <span·class="kw">let·</span>iter·=·slice.chunks_exact_mut(<span·class="number">2</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++let+mut+slice+=+%5B'l',+'o',+'r',+'e',+'m'%5D;%0A++++let+iter+=+slice.chunks_exact_mut(2);%0A%7D&amp;edition=2021"></a></div>10 <span·class="kw">let·</span>iter·=·slice.chunks_exact_mut(<span·class="number">2</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++let+mut+slice+=+%5B'l',+'o',+'r',+'e',+'m'%5D;%0A++++let+iter+=+slice.chunks_exact_mut(2);%0A%7D&amp;edition=2021"></a></div>
11 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-ChunksExactMut%3C'a,+T%3E"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/slice/iter.rs.html#2041">Source</a><a·href="#impl-ChunksExactMut%3C'a,+T%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·T&gt;·<a·class="struct"·href="struct.ChunksExactMut.html"·title="struct·alloc::sl[·...·truncated·by·diffoscope;·len:·587,·SHA:·36028cf34d2fd00806ffc27eac142361e94b7c81aa6ce81d7d329ac6bfbaacaf·...·]/core/primitive.slice.html">[T]</a></h4></section></summary><div·class="docblock"><p>Returns·the·remainder·of·the·original·slice·that·is·not·going·to·be11 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-ChunksExactMut%3C'a,+T%3E"·class="impl"><a·class="src·rightside"·href="../../src/core/slice/iter.rs.html#2041">Source</a><a·href="#impl-ChunksExactMut%3C'a,+T%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·T&gt;·<a·class="struct"·href="struct.ChunksExactMut.html"·title="struct·alloc::slice::ChunksExactMut">Chunks[·...·truncated·by·diffoscope;·len:·506,·SHA:·c341d53a92bd64766f830c2e3d7fb3dee412ac68808f06b198766e664387bb29·...·]/core/primitive.slice.html">[T]</a></h4></section></summary><div·class="docblock"><p>Returns·the·remainder·of·the·original·slice·that·is·not·going·to·be
12 returned·by·the·iterator.·The·returned·slice·has·at·most·<code>chunk_size-1</code>12 returned·by·the·iterator.·The·returned·slice·has·at·most·<code>chunk_size-1</code>
13 elements.</p>13 elements.</p>
14 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-ChunksExactMut%3C'a,+T%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.31.0">1.31.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/slice/iter.rs.html#2025">Source</a></span><a·href="#impl-Debug-for-ChunksExactMut%3C'a,+T%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·T&gt;·<a·class="trait"·href="../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.ChunksExactMut.html"·title="struct·alloc::slice::ChunksExactMut">ChunksExactMut</a>&lt;'a,·T&gt;<div·class="where">where14 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-ChunksExactMut%3C'a,+T%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.31.0">1.31.0</span>···<a·class="src"·href="../../src/core/slice/iter.rs.html#2025">Source</a></span><a·href="#impl-Debug-for-ChunksExactMut%3C'a,+T%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·T&gt;·<a·class="trait"·href="../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.ChunksExactMut.html"·title="struct·alloc::slice::ChunksExactMut">ChunksExactMut</a>&lt;'a,·T&gt;<div·class="where">where
15 ····T:·<a·class="trait"·href="../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·+·'a,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/slice/iter.rs.html#2025">Source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·hre[·...·truncated·by·diffoscope;·len:·2767,·SHA:·8d54f0f7f0b54f3823ac36fc85574bacaafd4b3822b193df552251424b6c29be·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.nth_back"·class="fn">nth_back</a>(15 ····T:·<a·class="trait"·href="../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·+·'a,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/slice/iter.rs.html#2025">Source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="../fmt/struct.Formatter.[·...·truncated·by·diffoscope;·len:·2443,·SHA:·d078ce0998f9f985837ab024bd193b5a25cc3cf7c7ef631c776d55be7139ac36·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.nth_back"·class="fn">nth_back</a>(
16 ····&amp;mut·self,16 ····&amp;mut·self,
17 ····n:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.usize.html">usize</a>,17 ····n:·<a·class="primitive"·href="../../core/primitive.usize.html">usize</a>,
18 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;&lt;<a·class="struct"·href="struct.ChunksExactMut.html"·title="struct·alloc::slice::ChunksExactMut">ChunksExactMut</a>&lt;'a,·T&gt;·as·<a·class="[·...·truncated·by·diffoscope;·len:·2674,·SHA:·a01865b846d4d62b689d301b0aa4c2d94e516baba9fede5dadf6a86171cc296c·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold"·class="fn">try_rfold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where18 )·-&gt;·<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;&lt;<a·class="struct"·href="struct.ChunksExactMut.html"·title="struct·alloc::slice::ChunksExactMut">ChunksExactMut</a>&lt;'a,·T&gt;·as·<a·class="trait"·href="../../core/ite[·...·truncated·by·diffoscope;·len:·2296,·SHA:·619043284bbcc0033dd63f1b1bdbe8245e241c11ab327a81cb53064b8a9d6e23·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold"·class="fn">try_rfold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where
19 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,19 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
20 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,20 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
21 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>This·is·the·reverse·version·of·<a·href="https://doc.rust-lang.org/1.8[·...·truncated·by·diffoscope;·len:·3,·SHA:·fbd04e1aae9ce0b11a8946e2c9ac2619f7428a64d32d01eff61d809dcb70ee8e·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·title="method·core::iter::traits::iterator::Iterator::try_fold"><code>Iterator::try_fold()</code></a>:·it·takes21 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>This·is·the·reverse·version·of·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·title="method·core::iter::traits::iterator::Iterator::try_fold"><code>Iterator::try_fold()</code></a>:·it·takes
22 elements·starting·from·the·back·of·the·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfold"·class="method·trait-impl"><span·clas[·...·truncated·by·diffoscope;·len:·325,·SHA:·7ffdb06a8ab3810207a1c974783822231eaf1d82fd94bcf810dd7b3181149b7b·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold"·class="fn">rfold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where22 elements·starting·from·the·back·of·the·iterator.·<a·href="../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfold"·class="method·trait-impl"><span·class="rightside"><span·class="[·...·truncated·by·diffoscope;·len:·244,·SHA:·6c4fe3f75fed1f00ec73ae6acd6efe929fb891f07f47293eec1013d32fc0fbe1·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold"·class="fn">rfold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where
23 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,23 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
24 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·reduces·the·iterator’s·elements·to·a·single,24 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·reduces·the·iterator’s·elements·to·a·single,
25 final·value,·starting·from·the·back.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfind"·class="method·trait-impl"><span·class="r[·...·truncated·by·diffoscope;·len:·665,·SHA:·fde89feb7c0e70eefa34d688476ca36a70115bec8150dbf9b1a3c359f72dd28d·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where25 final·value,·starting·from·the·back.·<a·href="../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfind"·class="method·trait-impl"><span·class="rightside"><span·class="sinc[·...·truncated·by·diffoscope;·len:·530,·SHA:·75a595bf6f9813abee32ae86d68f5de961884ee60e7080e18fb9c73b8e22c5f0·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
26 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,26 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
27 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·10166,·SHA:·de9622cf10a1b97936e42cd4e9f4bab37e957fd5bd0601f7fee4c3ef9aad4a3c·...·]/core/primitive.usize.html">usize</a>&gt;(27 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·8843,·SHA:·c347c6bce3c8f2e502ad3386667fcb2ce4703b4b1ef5003d430eab2b85370fdd·...·]/core/primitive.usize.html">usize</a>&gt;(
28 ····&amp;mut·self,28 ····&amp;mut·self,
29 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·4f557a9b49151e0be8c52ffd68f1def4469c08164239dc8bef8df2040551c5ef·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where29 )·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">It[·...·truncated·by·diffoscope;·len:·246,·SHA:·baf6c8e6f3d5dbac69324111240b1587dbb858d42149cae1ee895a165289ff4f·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where
30 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·2597,·SHA:·e43e149acfa6ad1816c364b2828c60b6adfdffe814c9ef8b9f9b56e35c4e44a7·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where30 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_next_ch[·...·truncated·by·diffoscope;·len:·2219,·SHA:·92e912ee585db2c097b6d1cf2aef0139e2a927527f301ab7da0bc73758cc2d6b·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where
31 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by31 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by
32 the·given·amount·at·each·iteration.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><sp[·...·truncated·by·diffoscope;·len:·842,·SHA:·945c4509a8daf2f8fbccc5c6e5089e225955911e03a3e411f047f96d52d16862·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where32 the·given·amount·at·each·iteration.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Sta[·...·truncated·by·diffoscope;·len:·680,·SHA:·77241b5118fcbc984cb791fa9f75077307e18056b66492741335faf440cbdabc·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
33 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,33 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
34 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·3b5ce32f9d564c3aa7cf2adc7130e674758d0c0f4f1275b4c3b46a74aa802cb3·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where34 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·1113,·SHA:·ccf22d19f49a25daffdcc6d9226d5107457a8bfd16beccfeff5020d151bdb8bb·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
35 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,35 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
36 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·[·...·truncated·by·diffoscope;·len:·868,·SHA:·abdbf27ccc84063c7040d8fa3da9d0bda5ee310a470ef576e15554aee4bd5d21·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where36 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·of·pairs.·<a·href="../../co[·...·truncated·by·diffoscope;·len:·706,·SHA:·f32c568f049122021445a983654582d97ac74064a3e99c3361b348bd7708c1b2·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where
37 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,37 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
38 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent38 ····Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent
39 items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="sr[·...·truncated·by·diffoscope;·len:·427,·SHA:·6e82ad4aad49c2165d869fe30d20a968580a973cdb3a7f4c77f49e16dd59393e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where39 items·of·the·original·iterator.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="src·rightside"·href="../../sr[·...·truncated·by·diffoscope;·len:·319,·SHA:·8babc469a22056fc5a02684b52f9f93ba9c27a3dd2e8443ddc060797054e211e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where
40 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,40 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
41 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>41 ····G:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>
42 between·adjacent·items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightsi[·...·truncated·by·diffoscope;·len:·471,·SHA:·ed10488b7b2ccc3e4cc84a9a57a9695a74c1c964962e8d753cbace12f3318a66·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where42 between·adjacent·items·of·the·original·iterator.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·tit[·...·truncated·by·diffoscope;·len:·363,·SHA:·09aee21fa4172b743a714e2cb5915129575ce0224df49c7343dec38f43b7ecfd·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where
43 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,43 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
44 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each44 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each
45 element.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><spa[·...·truncated·by·diffoscope;·len:·306,·SHA:·61c87c39b177830189b0e4c036d97c40d8b9649d76432c90afb88de59498e8b2·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where45 element.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stab[·...·truncated·by·diffoscope;·len:·225,·SHA:·a0f2490a1a5fd6b44e0ab01199cbbbd6e5463251405d11eaf6798c9b50bbd683·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where
46 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,46 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
47 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·a65da32c5f5ef8335cb607d3b4ab3f8a25877bc2c2e8b44ca9d575caecd5c8a5·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where47 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·754,·SHA:·421e55a5747cab3df1dad40b747b4633f241bdc13a1546bb19b1370788dea27d·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where
48 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,48 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
49 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·6d69c85c69fa789be551ea42d95c33c237d12a04ef157f9ddaaead1177f7771e·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element49 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·59,·SHA:·76969e34965f1923de668a65a9f5c33f73266468c9b96650bcc5fd498e606a6b·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element
50 should·be·yielded.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·489,·SHA:·9bdc636899f4e4e5a26a3a21c9603f72b3fb972865d2f459c38b7e2ac8fed7f1·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where50 should·be·yielded.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·cf812944678f6755720896cf32b330946303afe59f1b1c11adeb6a7f33454c8d·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where
51 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,51 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
52 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·46dbf841c7aecd3f06bd4c944af21650faeac98c46c515dcfe643302618b1ecd·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where52 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·863,·SHA:·c2bab87fa2a70713bd2d34b3dcae8f4ff2341917103b43a1dd505317f15d6cff·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where
53 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as53 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as
54 the·next·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside[·...·truncated·by·diffoscope;·len:·468,·SHA:·52f7ff7f264284c3acc4429ca34d057ded9afa2e3d9d6e07571e252db9a48977·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where54 the·next·value.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title[·...·truncated·by·diffoscope;·len:·360,·SHA:·688416dc1aaaa0be069177270ba9e74b3d1b92521285a109dc7ba86b58c1f22a·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where
55 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·c0180fefce4346b0b4089e5c642521d7716108241c0ce6ec3e910c7a2c7364b4·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods55 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="../../core/iter/adapters/peekable/struct.Peekable.html#method.peek"·title="m[·...·truncated·by·diffoscope;·len:·94,·SHA:·78aeab33f83c647dfe680c1050358c95977e3af17eabde4a04880721ea1a619d·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods
56 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See56 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See
57 their·documentation·for·more·information.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightsid[·...·truncated·by·diffoscope;·len:·498,·SHA:·e4a68861585faec6a5032b3b69d6dfb0f2799b5f387a527d9a1365571ed02069·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where57 their·documentation·for·more·information.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightside"><span·class="since"·titl[·...·truncated·by·diffoscope;·len:·390,·SHA:·5da622ae0e4d00b47239007520070e22568156d6c5b1662db8b80b465934b18c·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where
58 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,58 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
59 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·93281c1f6402743fd61110c11cf676f0f67eddceda801b4eb35e5fe9f85870fd·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where59 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·1018,·SHA:·732548acff5239e9a7b904f32790c90ab3b63522635334128f35e01d37ceaeb6·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where
60 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,60 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
61 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·f1cdbb1ec64f98fabbe1d89c88b03824310926cd7eaa160953ce2452fc3abb77·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where61 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·869,·SHA:·8ec7e525848424d5104dbdd10928d17cfee4e5aee63cdda7ecdbe323b30b59d3·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where
62 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,62 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
63 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·f94a0b2c1396b13b89aca7830197ebf19e2c0e5ba536a9cc25b325a481799510·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where63 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·947,·SHA:·fdd074315a0bfb226f815b1b6ea114c7367886338ffffff233d7f6fc3108769a·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where
64 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="https://doc.rust-lang[·...·truncated·by·diffoscope;·len:·783,·SHA:·c14217b89e3292a50a09192a8857485891fc769f861e1d1fc4322d04295c86ef·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where64 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="../../core/iter/traits/iterator/trait.Iterator.h[·...·truncated·by·diffoscope;·len:·621,·SHA:·484df7f946e7f2f69c3acad8964421c0db8ac5bb40032d11bbd862e20e67704c·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where
65 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer65 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer
66 if·the·underlying·iterator·ends·sooner.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·c[·...·truncated·by·diffoscope;·len:·488,·SHA:·76f753d5a273a09a73127631acaa0ee947326a929f33be291018188793e1af56·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where66 if·the·underlying·iterator·ends·sooner.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·[·...·truncated·by·diffoscope;·len:·380,·SHA:·fa258c7e0b5d583304a69e2d4e19f3d4cc9a9ed830bdf3796eaa0968bdf590b4·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where
67 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,67 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
68 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·07d303586c8ad4e0082d5b44bff8eeda03cdb8f4bdbe46489f9232bca5a43ec6·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but68 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterat[·...·truncated·by·diffoscope;·len:·314,·SHA:·299331ff47adaff3ebc292c53557ad34da957aef932f87ec0444c7f856820410·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but
69 unlike·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·2b20882d9583cee50e0c8b3cf362b27ce0d524db387d4aa4093d622b9370dada·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where69 unlike·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.scan">Read·more[·...·truncated·by·diffoscope;·len:·555,·SHA:·77279e392f259f6d4859f5a7747ee4b4d5315f3af0ac3baebf1d53be3461b312·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where
70 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,70 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
71 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,71 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
72 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·933,·SHA:·4af94b75ba5c1e03d2d70590d2fd0706f13b3080fbff0f5b98e7b109048c403d·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where72 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·771,·SHA:·a1a50c8ca4c13151c7b22ce05c74c449231e1ffe44225beee67ff212fc1d3859·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where
73 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,73 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
74 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.I[·...·truncated·by·diffoscope;·len:·968,·SHA:·e5572ed2f3bdf5970d038da608f2f592d945541207c483c257fe5789efba168a·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where74 ····Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::col[·...·truncated·by·diffoscope;·len:·779,·SHA:·a4e524bd8aa8a1e0a66409d1b462b88093ab51a1f901ff1a788d7ee63d597f4c·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where
75 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,75 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
76 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·3013c0e49b0dade37f8ca096eccc5ceeb03fc79b9d320a4c92486d23b88d1009·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over76 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·54,·SHA:·6acee514e4d8df8979b4bba687b7e0d5dbb0ea4f98a7019e2fb03f3a8058df0f·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over
77 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,77 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="../../core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,
78 the·windows·during·mapping·overlap·as·well.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside">[·...·truncated·by·diffoscope;·len:·454,·SHA:·040991f3914479bcc92615de2b81df7363656323622e5aadc964e1a61917d23e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where78 the·windows·during·mapping·overlap·as·well.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="[·...·truncated·by·diffoscope;·len:·346,·SHA:·b1244a5f92e0573c29e04e883cf8212ba2586013b3687af07b63c29d2e611530·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where
79 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="https://doc.rust-lang.org/1.84.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·0e0294a45242d5ce9a3ab8f95d6d410756415291d92baa7d12283ef1b3ecc3a0·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where79 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="../../core/option/enum.Option.html#variant.None"·title="variant·cor[·...·truncated·by·diffoscope;·len:·679,·SHA:·ec753d6ecf7b9fe81cb270d78e45e053f2702fff74c7a63c2ab8da22b97fea86·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where
80 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,80 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
81 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·a8b562f71802a421f4745f7d1fadf4f70d98030c829e70f27b692e7915267027·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where81 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·635,·SHA:·ee3a5bcc3544c3f17985966634fef69b1708d641ddb7e62aaac76933935c5ef7·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where
82 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="https://doc.rust-lang.org/1.84.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·b3db7d84f203bbc139b1c52912705d19c664dac762898205fce452c9dc3a5318·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where82 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.by_ref">[·...·truncated·by·diffoscope;·len:·415,·SHA:·7e0e075470d2db380bcf0838446659654c982aa2ca7831ed7d0317877855be2a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where
83 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,83 ····B:·<a·class="trait"·href="../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
84 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·431,·SHA:·a705a23f6d810357e7dcac670743884665ffcccfb9b780d0aa03720be8ca5625·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(84 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.collect">Read[·...·truncated·by·diffoscope;·len:·323,·SHA:·80e0dde3814a6e7cf4e30949627abc841ab4e98e2a920efb248777e22708682d·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(
85 ····&amp;mut·self,85 ····&amp;mut·self,
86 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.h[·...·truncated·by·diffoscope;·len:·479,·SHA:·fa749442d890055f86ceb34f411c84fd7ea08302b336d786d1ca36fe5868b020·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where86 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&g[·...·truncated·by·diffoscope;·len:·344,·SHA:·c06c6401df0a7150633e94cc973521da42e09819b07be80ba18d6acb696860a9·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
87 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,87 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
88 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>,88 ····Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>,
89 ····&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.h[·...·truncated·by·diffoscope;·len:·300,·SHA:·3bff089180bac38df7f42b87556fae7641185b89a949c284f53e3ac718a6decb·...·]/core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;B&gt;,89 ····&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&g[·...·truncated·by·diffoscope;·len:·192,·SHA:·039ceb6ce31fc6b1871e3e366efbd0f164f4a6cc1bc25554bba598b0ee820cca·...·]/core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;B&gt;,
90 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/itera[·...·truncated·by·diffoscope;·len:·323,·SHA:·b5c51f161dc9d77fd81d1fd23cc71fbf42ac00f3168cf9e41ebaaa2b6eb25363·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if90 ····B:·<a·class="trait"·href="../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="ty[·...·truncated·by·diffoscope;·len:·215,·SHA:·ddb8fbd12147eecef1697edd4c63187cc514ab4b851290335adfcccc3fa429ba·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if
91 a·failure·is·encountered.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·ri[·...·truncated·by·diffoscope;·len:·521,·SHA:·6a54376815dab985ec8cc35604d035e98e3003b1563c9b41e70966084505542b·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where91 a·failure·is·encountered.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/co[·...·truncated·by·diffoscope;·len:·386,·SHA:·d46a776c329de4f757930edda252586c2cdd85c6956b7b2f68448da33ee0625e·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
92 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,92 ····E:·<a·class="trait"·href="../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
93 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·975,·SHA:·94f7f970236ba59ba5f1415764a0e3ab2f3093c6b79e76c25c797ac24a3c4d09·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where93 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_collect[·...·truncated·by·diffoscope;·len:·840,·SHA:·1ee6fbe4deb3d959e9ade58fb7ed3efa79d09721ed02fbb5f5f82aae6aa1425d·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
94 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,94 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
95 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·b480ec650ba000fe7cb67df58fc0351299638ee3e8f00db18f74ca24d69f9894·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,95 ····B:·<a·class="trait"·href="../../core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtyp[·...·truncated·by·diffoscope;·len:·14,·SHA:·4105980ca4887a52797067761af25a11e3de6069cd8d7c8ce82cd885bb798fe8·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
96 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·fdf5a1845f070855ba2cfd0c8c85460ea5cb646c4d3b42a8431bf21489c73701·...·]/core/primitive.usize.html">usize</a><div·class="where">where96 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·806,·SHA:·4d554b733db12e71a31ec2477a31408041941b0e2b0dc910904ecf2fced9f65b·...·]/core/primitive.usize.html">usize</a><div·class="where">where
97 ····T:·'a,97 ····T:·'a,
98 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·1fc250e258e9e42e4fa3e22f86ecd57057e9ff23e47af1aec778076a7a891134·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,98 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIter[·...·truncated·by·diffoscope;·len:·51,·SHA:·c9be73bbed9d11ecac2a179f480a640f51d6255f26712667ffdabc72c1fc7fb0·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,
99 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·5846407374f20f525a4a0663ad4488141eafe64513ef82581dc5df5c2d200745·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_partition_in_place</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62543">#62543</a>)</span></div></span><div·class='docblock'>Reorders·the·elements·of·this·iterator·<em>in-place</em>·according·to·the·given·predicate,99 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="../../core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_partition_in_place</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62543">#62543</a>)</span></div></span><div·class='docblock'>Reorders·the·elements·of·this·iterator·<em>in-place</em>·according·to·the·given·predicate,
100 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.100 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.
101 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.partition_in_place">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_partitioned"·class="method·trait-impl"><a·clas[·...·truncated·by·diffoscope;·len:·431,·SHA:·4aa7d028146c72d45794efc19a376d4bee3b75eda61ff46d969e440b3dbfa1b0·...·]/core/primitive.bool.html">bool</a><div·class="where">where101 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.partition_in_place">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_partitioned"·class="method·trait-impl"><a·class="src·rightside"·href="../[·...·truncated·by·diffoscope;·len:·323,·SHA:·bfc44418fa28079222aab80e2baccdaffb2d067bbe5d1b5162202d268ad628d7·...·]/core/primitive.bool.html">bool</a><div·class="where">where
102 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,102 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
103 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·fcd03e71f79faad6d9b9a12045d59f4dfabc78e5aefebcabc9c1a5be45e31125·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,103 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·54,·SHA:·d5ac304cc26edf57442227b641dd21c427d0f9cb322b79986f5b15fc49f867b0·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,
104 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><span·class="righ[·...·truncated·by·diffoscope;·len:·319,·SHA:·9b9df13f2f4e5b4dde3908515766e1a474fa30bcb7edc98c15665a016e677c2a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where104 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><span·class="rightside"><span·class="since"·[·...·truncated·by·diffoscope;·len:·238,·SHA:·af6ab768457e0afa1532b80c4296ae18061dac4c765922889b13eead3e5492db·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where
105 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,105 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
106 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,106 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
107 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns107 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns
108 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rights[·...·truncated·by·diffoscope;·len:·321,·SHA:·619fd774190944998148325de99aaa75de66ce4b7e26579fd342c564923a5652·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where108 successfully,·producing·a·single,·final·value.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"·ti[·...·truncated·by·diffoscope;·len:·240,·SHA:·125e84deea747ccbe139725d028362287beed6a89ab9da3a3aabd7df537abc59·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where
109 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,109 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
110 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,110 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
111 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the111 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="../../core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the
112 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·307,·SHA:·5975144fd8566efa93ad1ccec09297e280924b7372e08681d2103702124e2c52·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where112 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title=[·...·truncated·by·diffoscope;·len:·226,·SHA:·a7510e9271e68887d9e2681c6bc28312cec9ac38883128845f52742935a160a9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where
113 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,113 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
114 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,114 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,
115 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span[·...·truncated·by·diffoscope;·len:·619,·SHA:·8813f54846438870310d5f5dfabd2335a9dbf51e9da2e4cd681bcb6077d39628·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where115 returning·the·final·result.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stabl[·...·truncated·by·diffoscope;·len:·484,·SHA:·5f42e8d5ff08f4c76870e6cb9165e054f9a0d99051d9886ccd43d5c8a91e1fbc·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
116 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,116 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
117 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·084691f7fc4e7f4da7db385127d0ce8d2d52f6740757129a65910c4db0dc180d·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing117 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·244,·SHA:·f09ac7e818239538c3f3208cb5c76076c24a0153797eb762821d5bf2a382d83b·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing
118 operation.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·217,·SHA:·447ae00256be3de069c602a6c04889808c883eae6fa349d023f53bdd5570ecae·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(118 operation.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/iter[·...·truncated·by·diffoscope;·len:·136,·SHA:·97e3ee132585582ec7077e3bbd86406d8a2dcfc97dce7fd52b49af3ec1b58622·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(
119 ····&amp;mut·self,119 ····&amp;mut·self,
120 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R, 
121 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.T[·...·truncated·by·diffoscope;·len:·950,·SHA:·817376e71f7a0d170bfbd4b7264c15d324f49c65106c49349d11a077842aa533·...·]120 ····f:·impl·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core:[·...·truncated·by·diffoscope;·len:·238,·SHA:·a52edc1a1ce1db5dd6e620dbfe5acb58fdc6d84f2320cef02845988aa54e5c55·...·]
 121 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;&gt;&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
122 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,122 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
123 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,123 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
124 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·764ea8f08626b05426a76738d54ebb2d640042494d76cba8c20d868bfdc07a73·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the124 ····&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>:·<a[·...·truncated·by·diffoscope;·len:·277,·SHA:·0dd064909226a9691486376740de1e17aa133a7ae2f635bee3feaa9b19d7b580·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the
125 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><span·class="rightside"><s[·...·truncated·by·diffoscope;·len:·476,·SHA:·aef721c14147dea2fbec70dcfa76916b3f1273bed8304f4c9db310ca23d1e4b1·...·]/core/primitive.bool.html">bool</a><div·class="where">where125 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="St[·...·truncated·by·diffoscope;·len:·368,·SHA:·6dbfbc90b7cfda9017074212ce0beeb560c8f9ba918ba7b00292e34daa531cc2·...·]/core/primitive.bool.html">bool</a><div·class="where">where
126 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,126 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
Max diff block lines reached; 152272/341956 bytes (44.53%) of diff not shown.
330 KB
./usr/share/doc/rust-doc/html/alloc/slice/struct.ChunksMut.html
    
Offset 1, 239 lines modifiedOffset 1, 239 lines modified
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="An·iterator·over·a·slice·in·(non-overlapping)·mutable·chunks·(`chunk_size`·elements·at·a·time),·starting·at·the·beginning·of·the·slice."><title>ChunksMut·in·alloc::slice·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»   2025-01-07)»(built»  from»      a»     source»       tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Chunks<wbr>Mut</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#example"·title="Example">Example</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Debug-for-ChunksMut%3C'a,+T%3E"·title="Debug">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-ChunksMut%3C'a,+T%3E"·title="DoubleEndedIterator">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-ChunksMut%3C'_,+T%3E"·title="ExactSizeIterator">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-ChunksMut%3C'_,+T%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-ChunksMut%3C'a,+T%3E"·title="Iterator">Iterator</a></li><li><a·href="#impl-Send-for-ChunksMut%3C'_,+T%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-ChunksMut%3C'_,+T%3E"·title="Sync">Sync</a></li><li><a·href="#impl-TrustedLen-for-ChunksMut%3C'_,+T%3E"·title="TrustedLen">TrustedLen</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-UnwindSafe-for-ChunksMut%3C'a,+T%3E"·title="!UnwindSafe">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-ChunksMut%3C'a,+T%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-ChunksMut%3C'a,+T%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Unpin-for-ChunksMut%3C'a,+T%3E"·title="Unpin">Unpin</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>slice</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">alloc</a>::<wbr><a·href="index.html">slice</a></span><h1>Struct·<span·class="struct">ChunksMut</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/slice/iter.rs.html#1663">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·ChunksMut&lt;'a,·T&gt;<div·class="where">where1 <!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="An·iterator·over·a·slice·in·(non-overlapping)·mutable·chunks·(`chunk_size`·elements·at·a·time),·starting·at·the·beginning·of·the·slice."><title>ChunksMut·in·alloc::slice·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»   2025-01-07)»(built»  from»      a»     source»       tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Chunks<wbr>Mut</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#example"·title="Example">Example</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Debug-for-ChunksMut%3C'a,+T%3E"·title="Debug">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-ChunksMut%3C'a,+T%3E"·title="DoubleEndedIterator">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-ChunksMut%3C'_,+T%3E"·title="ExactSizeIterator">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-ChunksMut%3C'_,+T%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-ChunksMut%3C'a,+T%3E"·title="Iterator">Iterator</a></li><li><a·href="#impl-Send-for-ChunksMut%3C'_,+T%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-ChunksMut%3C'_,+T%3E"·title="Sync">Sync</a></li><li><a·href="#impl-TrustedLen-for-ChunksMut%3C'_,+T%3E"·title="TrustedLen">TrustedLen</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-UnwindSafe-for-ChunksMut%3C'a,+T%3E"·title="!UnwindSafe">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-ChunksMut%3C'a,+T%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-ChunksMut%3C'a,+T%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Unpin-for-ChunksMut%3C'a,+T%3E"·title="Unpin">Unpin</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>slice</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">alloc</a>::<wbr><a·href="index.html">slice</a></span><h1>Struct·<span·class="struct">ChunksMut</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../src/core/slice/iter.rs.html#1663">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·ChunksMut&lt;'a,·T&gt;<div·class="where">where
2 ····T:·'a,</div>{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>An·iterator·over·a·slice·in·(non-overlapping)·mutable·chunks·(<code>chunk_size</code>2 ····T:·'a,</div>{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>An·iterator·over·a·slice·in·(non-overlapping)·mutable·chunks·(<code>chunk_size</code>
3 elements·at·a·time),·starting·at·the·beginning·of·the·slice.</p>3 elements·at·a·time),·starting·at·the·beginning·of·the·slice.</p>
4 <p>When·the·slice·len·is·not·evenly·divided·by·the·chunk·size,·the·last·slice4 <p>When·the·slice·len·is·not·evenly·divided·by·the·chunk·size,·the·last·slice
5 of·the·iteration·will·be·the·remainder.</p>5 of·the·iteration·will·be·the·remainder.</p>
6 <p>This·struct·is·created·by·the·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html#method.chunks_mut"·title="method·slice::chunks_mut"><code>chunks_mut</code></a>·method·on·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html"·title="primitive·slice">slices</a>.</p>6 <p>This·struct·is·created·by·the·<a·href="../../core/primitive.slice.html#method.chunks_mut"·title="method·slice::chunks_mut"><code>chunks_mut</code></a>·method·on·<a·href="../../core/primitive.slice.html"·title="primitive·slice">slices</a>.</p>
7 <h2·id="example"><a·class="doc-anchor"·href="#example">§</a>Example</h2>7 <h2·id="example"><a·class="doc-anchor"·href="#example">§</a>Example</h2>
8 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span><span·class="kw-2">mut·</span>slice·=·[<span·class="string">'l'</span>,·<span·class="string">'o'</span>,·<span·class="string">'r'</span>,·<span·class="string">'e'</span>,·<span·class="string">'m'</span>];8 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span><span·class="kw-2">mut·</span>slice·=·[<span·class="string">'l'</span>,·<span·class="string">'o'</span>,·<span·class="string">'r'</span>,·<span·class="string">'e'</span>,·<span·class="string">'m'</span>];
9 <span·class="kw">let·</span>iter·=·slice.chunks_mut(<span·class="number">2</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++let+mut+slice+=+%5B'l',+'o',+'r',+'e',+'m'%5D;%0A++++let+iter+=+slice.chunks_mut(2);%0A%7D&amp;edition=2021"></a></div>9 <span·class="kw">let·</span>iter·=·slice.chunks_mut(<span·class="number">2</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++let+mut+slice+=+%5B'l',+'o',+'r',+'e',+'m'%5D;%0A++++let+iter+=+slice.chunks_mut(2);%0A%7D&amp;edition=2021"></a></div>
10 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-ChunksMut%3C'a,+T%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/slice/iter.rs.html#1660">Source</a></span><a·href="#impl-Debug-for-ChunksMut%3C'a,+T%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·T&gt;·<a·class="trait"·href="../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.ChunksMut.html"·title="struct·alloc::slice::ChunksMut">ChunksMut</a>&lt;'a,·T&gt;<div·class="where">where10 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-ChunksMut%3C'a,+T%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/slice/iter.rs.html#1660">Source</a></span><a·href="#impl-Debug-for-ChunksMut%3C'a,+T%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·T&gt;·<a·class="trait"·href="../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.ChunksMut.html"·title="struct·alloc::slice::ChunksMut">ChunksMut</a>&lt;'a,·T&gt;<div·class="where">where
11 ····T:·<a·class="trait"·href="../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·+·'a,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/slice/iter.rs.html#1660">Source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·hre[·...·truncated·by·diffoscope;·len:·5902,·SHA:·1748601234fef415801a5ced38fee7e0175d041bee442561ed867e03340f1a9d·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold"·class="fn">try_rfold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where11 ····T:·<a·class="trait"·href="../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·+·'a,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/slice/iter.rs.html#1660">Source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="../fmt/struct.Formatter.[·...·truncated·by·diffoscope;·len:·5173,·SHA:·16771e32b177eeb68af225723ff06856fb826bf4adaef57f90def727a7f86187·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold"·class="fn">try_rfold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where
12 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,12 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
13 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,13 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
14 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>This·is·the·reverse·version·of·<a·href="https://doc.rust-lang.org/1.8[·...·truncated·by·diffoscope;·len:·3,·SHA:·fbd04e1aae9ce0b11a8946e2c9ac2619f7428a64d32d01eff61d809dcb70ee8e·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·title="method·core::iter::traits::iterator::Iterator::try_fold"><code>Iterator::try_fold()</code></a>:·it·takes14 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>This·is·the·reverse·version·of·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·title="method·core::iter::traits::iterator::Iterator::try_fold"><code>Iterator::try_fold()</code></a>:·it·takes
15 elements·starting·from·the·back·of·the·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfold"·class="method·trait-impl"><span·clas[·...·truncated·by·diffoscope;·len:·325,·SHA:·7ffdb06a8ab3810207a1c974783822231eaf1d82fd94bcf810dd7b3181149b7b·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold"·class="fn">rfold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where15 elements·starting·from·the·back·of·the·iterator.·<a·href="../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfold"·class="method·trait-impl"><span·class="rightside"><span·class="[·...·truncated·by·diffoscope;·len:·244,·SHA:·6c4fe3f75fed1f00ec73ae6acd6efe929fb891f07f47293eec1013d32fc0fbe1·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold"·class="fn">rfold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where
16 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,16 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
17 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·reduces·the·iterator’s·elements·to·a·single,17 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·reduces·the·iterator’s·elements·to·a·single,
18 final·value,·starting·from·the·back.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfind"·class="method·trait-impl"><span·class="r[·...·truncated·by·diffoscope;·len:·665,·SHA:·fde89feb7c0e70eefa34d688476ca36a70115bec8150dbf9b1a3c359f72dd28d·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where18 final·value,·starting·from·the·back.·<a·href="../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfind"·class="method·trait-impl"><span·class="rightside"><span·class="sinc[·...·truncated·by·diffoscope;·len:·530,·SHA:·75a595bf6f9813abee32ae86d68f5de961884ee60e7080e18fb9c73b8e22c5f0·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
19 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,19 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
20 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·10108,·SHA:·376f929aef7da720027df28e1f55ae604426cdaa01cfbecc9b6d6a14119ed2cb·...·]/core/primitive.usize.html">usize</a>&gt;(20 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·8785,·SHA:·3dce7fcb00dd5fcea0067c24992c97470031659821c8ce5834c6adaa56607a3e·...·]/core/primitive.usize.html">usize</a>&gt;(
21 ····&amp;mut·self,21 ····&amp;mut·self,
22 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·4f557a9b49151e0be8c52ffd68f1def4469c08164239dc8bef8df2040551c5ef·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where22 )·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">It[·...·truncated·by·diffoscope;·len:·246,·SHA:·baf6c8e6f3d5dbac69324111240b1587dbb858d42149cae1ee895a165289ff4f·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where
23 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·2597,·SHA:·e43e149acfa6ad1816c364b2828c60b6adfdffe814c9ef8b9f9b56e35c4e44a7·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where23 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_next_ch[·...·truncated·by·diffoscope;·len:·2219,·SHA:·92e912ee585db2c097b6d1cf2aef0139e2a927527f301ab7da0bc73758cc2d6b·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where
24 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by24 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by
25 the·given·amount·at·each·iteration.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><sp[·...·truncated·by·diffoscope;·len:·842,·SHA:·945c4509a8daf2f8fbccc5c6e5089e225955911e03a3e411f047f96d52d16862·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where25 the·given·amount·at·each·iteration.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Sta[·...·truncated·by·diffoscope;·len:·680,·SHA:·77241b5118fcbc984cb791fa9f75077307e18056b66492741335faf440cbdabc·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
26 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,26 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
27 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·3b5ce32f9d564c3aa7cf2adc7130e674758d0c0f4f1275b4c3b46a74aa802cb3·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where27 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·1113,·SHA:·ccf22d19f49a25daffdcc6d9226d5107457a8bfd16beccfeff5020d151bdb8bb·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
28 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,28 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
29 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·[·...·truncated·by·diffoscope;·len:·868,·SHA:·abdbf27ccc84063c7040d8fa3da9d0bda5ee310a470ef576e15554aee4bd5d21·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where29 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·of·pairs.·<a·href="../../co[·...·truncated·by·diffoscope;·len:·706,·SHA:·f32c568f049122021445a983654582d97ac74064a3e99c3361b348bd7708c1b2·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where
30 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,30 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
31 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent31 ····Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent
32 items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="sr[·...·truncated·by·diffoscope;·len:·427,·SHA:·6e82ad4aad49c2165d869fe30d20a968580a973cdb3a7f4c77f49e16dd59393e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where32 items·of·the·original·iterator.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="src·rightside"·href="../../sr[·...·truncated·by·diffoscope;·len:·319,·SHA:·8babc469a22056fc5a02684b52f9f93ba9c27a3dd2e8443ddc060797054e211e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where
33 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,33 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
34 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>34 ····G:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>
35 between·adjacent·items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightsi[·...·truncated·by·diffoscope;·len:·471,·SHA:·ed10488b7b2ccc3e4cc84a9a57a9695a74c1c964962e8d753cbace12f3318a66·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where35 between·adjacent·items·of·the·original·iterator.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·tit[·...·truncated·by·diffoscope;·len:·363,·SHA:·09aee21fa4172b743a714e2cb5915129575ce0224df49c7343dec38f43b7ecfd·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where
36 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,36 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
37 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each37 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each
38 element.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><spa[·...·truncated·by·diffoscope;·len:·306,·SHA:·61c87c39b177830189b0e4c036d97c40d8b9649d76432c90afb88de59498e8b2·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where38 element.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stab[·...·truncated·by·diffoscope;·len:·225,·SHA:·a0f2490a1a5fd6b44e0ab01199cbbbd6e5463251405d11eaf6798c9b50bbd683·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where
39 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,39 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
40 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·a65da32c5f5ef8335cb607d3b4ab3f8a25877bc2c2e8b44ca9d575caecd5c8a5·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where40 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·754,·SHA:·421e55a5747cab3df1dad40b747b4633f241bdc13a1546bb19b1370788dea27d·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where
41 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,41 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
42 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·6d69c85c69fa789be551ea42d95c33c237d12a04ef157f9ddaaead1177f7771e·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element42 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·59,·SHA:·76969e34965f1923de668a65a9f5c33f73266468c9b96650bcc5fd498e606a6b·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element
43 should·be·yielded.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·489,·SHA:·9bdc636899f4e4e5a26a3a21c9603f72b3fb972865d2f459c38b7e2ac8fed7f1·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where43 should·be·yielded.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·cf812944678f6755720896cf32b330946303afe59f1b1c11adeb6a7f33454c8d·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where
44 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,44 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
45 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·46dbf841c7aecd3f06bd4c944af21650faeac98c46c515dcfe643302618b1ecd·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where45 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·863,·SHA:·c2bab87fa2a70713bd2d34b3dcae8f4ff2341917103b43a1dd505317f15d6cff·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where
46 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as46 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as
47 the·next·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside[·...·truncated·by·diffoscope;·len:·468,·SHA:·52f7ff7f264284c3acc4429ca34d057ded9afa2e3d9d6e07571e252db9a48977·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where47 the·next·value.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title[·...·truncated·by·diffoscope;·len:·360,·SHA:·688416dc1aaaa0be069177270ba9e74b3d1b92521285a109dc7ba86b58c1f22a·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where
48 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·c0180fefce4346b0b4089e5c642521d7716108241c0ce6ec3e910c7a2c7364b4·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods48 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="../../core/iter/adapters/peekable/struct.Peekable.html#method.peek"·title="m[·...·truncated·by·diffoscope;·len:·94,·SHA:·78aeab33f83c647dfe680c1050358c95977e3af17eabde4a04880721ea1a619d·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods
49 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See49 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See
50 their·documentation·for·more·information.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightsid[·...·truncated·by·diffoscope;·len:·498,·SHA:·e4a68861585faec6a5032b3b69d6dfb0f2799b5f387a527d9a1365571ed02069·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where50 their·documentation·for·more·information.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightside"><span·class="since"·titl[·...·truncated·by·diffoscope;·len:·390,·SHA:·5da622ae0e4d00b47239007520070e22568156d6c5b1662db8b80b465934b18c·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where
51 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,51 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
52 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·93281c1f6402743fd61110c11cf676f0f67eddceda801b4eb35e5fe9f85870fd·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where52 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·1018,·SHA:·732548acff5239e9a7b904f32790c90ab3b63522635334128f35e01d37ceaeb6·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where
53 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,53 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
54 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·f1cdbb1ec64f98fabbe1d89c88b03824310926cd7eaa160953ce2452fc3abb77·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where54 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·869,·SHA:·8ec7e525848424d5104dbdd10928d17cfee4e5aee63cdda7ecdbe323b30b59d3·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where
55 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,55 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
56 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·f94a0b2c1396b13b89aca7830197ebf19e2c0e5ba536a9cc25b325a481799510·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where56 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·947,·SHA:·fdd074315a0bfb226f815b1b6ea114c7367886338ffffff233d7f6fc3108769a·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where
57 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="https://doc.rust-lang[·...·truncated·by·diffoscope;·len:·783,·SHA:·c14217b89e3292a50a09192a8857485891fc769f861e1d1fc4322d04295c86ef·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where57 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="../../core/iter/traits/iterator/trait.Iterator.h[·...·truncated·by·diffoscope;·len:·621,·SHA:·484df7f946e7f2f69c3acad8964421c0db8ac5bb40032d11bbd862e20e67704c·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where
58 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer58 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer
59 if·the·underlying·iterator·ends·sooner.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·c[·...·truncated·by·diffoscope;·len:·488,·SHA:·76f753d5a273a09a73127631acaa0ee947326a929f33be291018188793e1af56·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where59 if·the·underlying·iterator·ends·sooner.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·[·...·truncated·by·diffoscope;·len:·380,·SHA:·fa258c7e0b5d583304a69e2d4e19f3d4cc9a9ed830bdf3796eaa0968bdf590b4·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where
60 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,60 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
61 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·07d303586c8ad4e0082d5b44bff8eeda03cdb8f4bdbe46489f9232bca5a43ec6·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but61 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterat[·...·truncated·by·diffoscope;·len:·314,·SHA:·299331ff47adaff3ebc292c53557ad34da957aef932f87ec0444c7f856820410·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but
62 unlike·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·2b20882d9583cee50e0c8b3cf362b27ce0d524db387d4aa4093d622b9370dada·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where62 unlike·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.scan">Read·more[·...·truncated·by·diffoscope;·len:·555,·SHA:·77279e392f259f6d4859f5a7747ee4b4d5315f3af0ac3baebf1d53be3461b312·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where
63 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,63 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
64 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,64 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
65 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·933,·SHA:·4af94b75ba5c1e03d2d70590d2fd0706f13b3080fbff0f5b98e7b109048c403d·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where65 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·771,·SHA:·a1a50c8ca4c13151c7b22ce05c74c449231e1ffe44225beee67ff212fc1d3859·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where
66 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,66 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
67 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.I[·...·truncated·by·diffoscope;·len:·968,·SHA:·e5572ed2f3bdf5970d038da608f2f592d945541207c483c257fe5789efba168a·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where67 ····Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::col[·...·truncated·by·diffoscope;·len:·779,·SHA:·a4e524bd8aa8a1e0a66409d1b462b88093ab51a1f901ff1a788d7ee63d597f4c·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where
68 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,68 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
69 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·3013c0e49b0dade37f8ca096eccc5ceeb03fc79b9d320a4c92486d23b88d1009·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over69 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·54,·SHA:·6acee514e4d8df8979b4bba687b7e0d5dbb0ea4f98a7019e2fb03f3a8058df0f·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over
70 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,70 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="../../core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,
71 the·windows·during·mapping·overlap·as·well.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside">[·...·truncated·by·diffoscope;·len:·454,·SHA:·040991f3914479bcc92615de2b81df7363656323622e5aadc964e1a61917d23e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where71 the·windows·during·mapping·overlap·as·well.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="[·...·truncated·by·diffoscope;·len:·346,·SHA:·b1244a5f92e0573c29e04e883cf8212ba2586013b3687af07b63c29d2e611530·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where
72 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="https://doc.rust-lang.org/1.84.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·0e0294a45242d5ce9a3ab8f95d6d410756415291d92baa7d12283ef1b3ecc3a0·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where72 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="../../core/option/enum.Option.html#variant.None"·title="variant·cor[·...·truncated·by·diffoscope;·len:·679,·SHA:·ec753d6ecf7b9fe81cb270d78e45e053f2702fff74c7a63c2ab8da22b97fea86·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where
73 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,73 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
74 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·a8b562f71802a421f4745f7d1fadf4f70d98030c829e70f27b692e7915267027·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where74 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·635,·SHA:·ee3a5bcc3544c3f17985966634fef69b1708d641ddb7e62aaac76933935c5ef7·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where
75 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="https://doc.rust-lang.org/1.84.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·b3db7d84f203bbc139b1c52912705d19c664dac762898205fce452c9dc3a5318·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where75 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.by_ref">[·...·truncated·by·diffoscope;·len:·415,·SHA:·7e0e075470d2db380bcf0838446659654c982aa2ca7831ed7d0317877855be2a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where
76 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,76 ····B:·<a·class="trait"·href="../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
77 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·431,·SHA:·a705a23f6d810357e7dcac670743884665ffcccfb9b780d0aa03720be8ca5625·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(77 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.collect">Read[·...·truncated·by·diffoscope;·len:·323,·SHA:·80e0dde3814a6e7cf4e30949627abc841ab4e98e2a920efb248777e22708682d·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(
78 ····&amp;mut·self,78 ····&amp;mut·self,
79 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.h[·...·truncated·by·diffoscope;·len:·479,·SHA:·fa749442d890055f86ceb34f411c84fd7ea08302b336d786d1ca36fe5868b020·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where79 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&g[·...·truncated·by·diffoscope;·len:·344,·SHA:·c06c6401df0a7150633e94cc973521da42e09819b07be80ba18d6acb696860a9·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
80 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,80 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
81 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>,81 ····Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>,
82 ····&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.h[·...·truncated·by·diffoscope;·len:·300,·SHA:·3bff089180bac38df7f42b87556fae7641185b89a949c284f53e3ac718a6decb·...·]/core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;B&gt;,82 ····&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&g[·...·truncated·by·diffoscope;·len:·192,·SHA:·039ceb6ce31fc6b1871e3e366efbd0f164f4a6cc1bc25554bba598b0ee820cca·...·]/core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;B&gt;,
83 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/itera[·...·truncated·by·diffoscope;·len:·323,·SHA:·b5c51f161dc9d77fd81d1fd23cc71fbf42ac00f3168cf9e41ebaaa2b6eb25363·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if83 ····B:·<a·class="trait"·href="../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="ty[·...·truncated·by·diffoscope;·len:·215,·SHA:·ddb8fbd12147eecef1697edd4c63187cc514ab4b851290335adfcccc3fa429ba·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if
84 a·failure·is·encountered.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·ri[·...·truncated·by·diffoscope;·len:·521,·SHA:·6a54376815dab985ec8cc35604d035e98e3003b1563c9b41e70966084505542b·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where84 a·failure·is·encountered.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/co[·...·truncated·by·diffoscope;·len:·386,·SHA:·d46a776c329de4f757930edda252586c2cdd85c6956b7b2f68448da33ee0625e·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
85 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,85 ····E:·<a·class="trait"·href="../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
86 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·975,·SHA:·94f7f970236ba59ba5f1415764a0e3ab2f3093c6b79e76c25c797ac24a3c4d09·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where86 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_collect[·...·truncated·by·diffoscope;·len:·840,·SHA:·1ee6fbe4deb3d959e9ade58fb7ed3efa79d09721ed02fbb5f5f82aae6aa1425d·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
87 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,87 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
88 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·b480ec650ba000fe7cb67df58fc0351299638ee3e8f00db18f74ca24d69f9894·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,88 ····B:·<a·class="trait"·href="../../core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtyp[·...·truncated·by·diffoscope;·len:·14,·SHA:·4105980ca4887a52797067761af25a11e3de6069cd8d7c8ce82cd885bb798fe8·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
89 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·fdf5a1845f070855ba2cfd0c8c85460ea5cb646c4d3b42a8431bf21489c73701·...·]/core/primitive.usize.html">usize</a><div·class="where">where89 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·806,·SHA:·4d554b733db12e71a31ec2477a31408041941b0e2b0dc910904ecf2fced9f65b·...·]/core/primitive.usize.html">usize</a><div·class="where">where
90 ····T:·'a,90 ····T:·'a,
91 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·1fc250e258e9e42e4fa3e22f86ecd57057e9ff23e47af1aec778076a7a891134·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,91 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIter[·...·truncated·by·diffoscope;·len:·51,·SHA:·c9be73bbed9d11ecac2a179f480a640f51d6255f26712667ffdabc72c1fc7fb0·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,
92 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·5846407374f20f525a4a0663ad4488141eafe64513ef82581dc5df5c2d200745·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_partition_in_place</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62543">#62543</a>)</span></div></span><div·class='docblock'>Reorders·the·elements·of·this·iterator·<em>in-place</em>·according·to·the·given·predicate,92 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="../../core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_partition_in_place</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62543">#62543</a>)</span></div></span><div·class='docblock'>Reorders·the·elements·of·this·iterator·<em>in-place</em>·according·to·the·given·predicate,
93 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.93 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.
94 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.partition_in_place">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_partitioned"·class="method·trait-impl"><a·clas[·...·truncated·by·diffoscope;·len:·431,·SHA:·4aa7d028146c72d45794efc19a376d4bee3b75eda61ff46d969e440b3dbfa1b0·...·]/core/primitive.bool.html">bool</a><div·class="where">where94 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.partition_in_place">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_partitioned"·class="method·trait-impl"><a·class="src·rightside"·href="../[·...·truncated·by·diffoscope;·len:·323,·SHA:·bfc44418fa28079222aab80e2baccdaffb2d067bbe5d1b5162202d268ad628d7·...·]/core/primitive.bool.html">bool</a><div·class="where">where
95 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,95 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
96 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·fcd03e71f79faad6d9b9a12045d59f4dfabc78e5aefebcabc9c1a5be45e31125·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,96 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·54,·SHA:·d5ac304cc26edf57442227b641dd21c427d0f9cb322b79986f5b15fc49f867b0·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,
97 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><span·class="righ[·...·truncated·by·diffoscope;·len:·319,·SHA:·9b9df13f2f4e5b4dde3908515766e1a474fa30bcb7edc98c15665a016e677c2a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where97 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><span·class="rightside"><span·class="since"·[·...·truncated·by·diffoscope;·len:·238,·SHA:·af6ab768457e0afa1532b80c4296ae18061dac4c765922889b13eead3e5492db·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where
98 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,98 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
99 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,99 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
100 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns100 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns
101 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rights[·...·truncated·by·diffoscope;·len:·321,·SHA:·619fd774190944998148325de99aaa75de66ce4b7e26579fd342c564923a5652·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where101 successfully,·producing·a·single,·final·value.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"·ti[·...·truncated·by·diffoscope;·len:·240,·SHA:·125e84deea747ccbe139725d028362287beed6a89ab9da3a3aabd7df537abc59·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where
102 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,102 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
103 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,103 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
104 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the104 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="../../core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the
105 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·307,·SHA:·5975144fd8566efa93ad1ccec09297e280924b7372e08681d2103702124e2c52·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where105 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title=[·...·truncated·by·diffoscope;·len:·226,·SHA:·a7510e9271e68887d9e2681c6bc28312cec9ac38883128845f52742935a160a9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where
106 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,106 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
107 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,107 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,
108 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span[·...·truncated·by·diffoscope;·len:·619,·SHA:·8813f54846438870310d5f5dfabd2335a9dbf51e9da2e4cd681bcb6077d39628·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where108 returning·the·final·result.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stabl[·...·truncated·by·diffoscope;·len:·484,·SHA:·5f42e8d5ff08f4c76870e6cb9165e054f9a0d99051d9886ccd43d5c8a91e1fbc·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
109 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,109 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
110 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·084691f7fc4e7f4da7db385127d0ce8d2d52f6740757129a65910c4db0dc180d·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing110 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·244,·SHA:·f09ac7e818239538c3f3208cb5c76076c24a0153797eb762821d5bf2a382d83b·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing
111 operation.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·217,·SHA:·447ae00256be3de069c602a6c04889808c883eae6fa349d023f53bdd5570ecae·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(111 operation.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/iter[·...·truncated·by·diffoscope;·len:·136,·SHA:·97e3ee132585582ec7077e3bbd86406d8a2dcfc97dce7fd52b49af3ec1b58622·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(
112 ····&amp;mut·self,112 ····&amp;mut·self,
113 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R, 
114 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.T[·...·truncated·by·diffoscope;·len:·950,·SHA:·817376e71f7a0d170bfbd4b7264c15d324f49c65106c49349d11a077842aa533·...·]113 ····f:·impl·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core:[·...·truncated·by·diffoscope;·len:·238,·SHA:·a52edc1a1ce1db5dd6e620dbfe5acb58fdc6d84f2320cef02845988aa54e5c55·...·]
 114 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;&gt;&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
115 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,115 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
116 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,116 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
117 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·764ea8f08626b05426a76738d54ebb2d640042494d76cba8c20d868bfdc07a73·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the117 ····&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>:·<a[·...·truncated·by·diffoscope;·len:·277,·SHA:·0dd064909226a9691486376740de1e17aa133a7ae2f635bee3feaa9b19d7b580·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the
118 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><span·class="rightside"><s[·...·truncated·by·diffoscope;·len:·476,·SHA:·aef721c14147dea2fbec70dcfa76916b3f1273bed8304f4c9db310ca23d1e4b1·...·]/core/primitive.bool.html">bool</a><div·class="where">where118 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="St[·...·truncated·by·diffoscope;·len:·368,·SHA:·6dbfbc90b7cfda9017074212ce0beeb560c8f9ba918ba7b00292e34daa531cc2·...·]/core/primitive.bool.html">bool</a><div·class="where">where
119 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,119 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
120 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·7c48e62c73a40a5cb5ebbf4a22cd789b342a88ad3d855022191f2bae33c736c6·...·]/core/primitive.bool.html">bool</a><div·class="where">where120 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·829,·SHA:·c413d95d1072acd820201f12ffb54d04a6c7f3b732f7de46115ba40b4eb1bd3f·...·]/core/primitive.bool.html">bool</a><div·class="where">where
121 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,121 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
122 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·673d69ce0c23e24b2546127c463e67cd2a4c0f7be792712e2b42e75427161b75·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where122 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·956,·SHA:·105c7ff05d33bc9219febe8c9633cf1c1a8d88c32e47e44793d403a428174c66·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
123 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,123 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
124 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·aa5078ff77f5638746395497f8ce92c1b684d342dea851990104d5e9981ab6b0·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where124 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·862,·SHA:·ab608da827ec12779180206da5bfe43676627c19288c1fe674060a00ba44a595·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where
125 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,125 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
126 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·1bd732dff19021a1586bb486282683f5c1bc65d5d514f9e13cc9232b4e94955b·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;,</div></h4></section></summary><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns126 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·49,·SHA:·819211b646a21318a22e9d295452cdf890d5288a631a50261ca1a5b2bac9f748·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;,</div></h4></section></summary><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns
Max diff block lines reached; 151864/337853 bytes (44.95%) of diff not shown.
340 KB
./usr/share/doc/rust-doc/html/alloc/slice/struct.EscapeAscii.html
    
Offset 1, 231 lines modifiedOffset 1, 231 lines modified
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="An·iterator·over·the·escaped·version·of·a·byte·slice."><title>EscapeAscii·in·alloc::slice·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»2025-01-07)»     (built»       from»   a»  source»    tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Escape<wbr>Ascii</a></h2><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-EscapeAscii%3C'a%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-EscapeAscii%3C'a%3E"·title="Debug">Debug</a></li><li><a·href="#impl-Display-for-EscapeAscii%3C'a%3E"·title="Display">Display</a></li><li><a·href="#impl-DoubleEndedIterator-for-EscapeAscii%3C'a%3E"·title="DoubleEndedIterator">DoubleEndedIterator</a></li><li><a·href="#impl-FusedIterator-for-EscapeAscii%3C'a%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-EscapeAscii%3C'a%3E"·title="Iterator">Iterator</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-EscapeAscii%3C'a%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-EscapeAscii%3C'a%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-EscapeAscii%3C'a%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-EscapeAscii%3C'a%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-EscapeAscii%3C'a%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-EscapeAscii%3C'a%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-ToString-for-T"·title="ToString">ToString</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>slice</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">alloc</a>::<wbr><a·href="index.html">slice</a></span><h1>Struct·<span·class="struct">EscapeAscii</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.60.0">1.60.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/slice/ascii.rs.html#236">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·EscapeAscii&lt;'a&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>An·iterator·over·the·escaped·version·of·a·byte·slice.</p>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="An·iterator·over·the·escaped·version·of·a·byte·slice."><title>EscapeAscii·in·alloc::slice·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»2025-01-07)»     (built»       from»   a»  source»    tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Escape<wbr>Ascii</a></h2><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-EscapeAscii%3C'a%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-EscapeAscii%3C'a%3E"·title="Debug">Debug</a></li><li><a·href="#impl-Display-for-EscapeAscii%3C'a%3E"·title="Display">Display</a></li><li><a·href="#impl-DoubleEndedIterator-for-EscapeAscii%3C'a%3E"·title="DoubleEndedIterator">DoubleEndedIterator</a></li><li><a·href="#impl-FusedIterator-for-EscapeAscii%3C'a%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-EscapeAscii%3C'a%3E"·title="Iterator">Iterator</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-EscapeAscii%3C'a%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-EscapeAscii%3C'a%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-EscapeAscii%3C'a%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-EscapeAscii%3C'a%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-EscapeAscii%3C'a%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-EscapeAscii%3C'a%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-ToString-for-T"·title="ToString">ToString</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>slice</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">alloc</a>::<wbr><a·href="index.html">slice</a></span><h1>Struct·<span·class="struct">EscapeAscii</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.60.0">1.60.0</span>···<a·class="src"·href="../../src/core/slice/ascii.rs.html#236">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·EscapeAscii&lt;'a&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>An·iterator·over·the·escaped·version·of·a·byte·slice.</p>
2 <p>This·<code>struct</code>·is·created·by·the·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html#method.escape_ascii"·title="method·slice::escape_ascii"><code>slice::escape_ascii</code></a>·method.·See·its2 <p>This·<code>struct</code>·is·created·by·the·<a·href="../../core/primitive.slice.html#method.escape_ascii"·title="method·slice::escape_ascii"><code>slice::escape_ascii</code></a>·method.·See·its
3 documentation·for·more·information.</p>3 documentation·for·more·information.</p>
4 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-EscapeAscii%3C'a%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.60.0">1.60.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/slice/ascii.rs.html#234">Source</a></span><a·href="#impl-Clone-for-EscapeAscii%3C'a%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/[·...·truncated·by·diffoscope;·len:·10278,·SHA:·54e7de7591eeabd8a67fab16f44ffe68c130ea3666bceb52dfc9661f663d716f·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold"·class="fn">try_rfold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where4 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-EscapeAscii%3C'a%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.60.0">1.60.0</span>···<a·class="src"·href="../../src/core/slice/ascii.rs.html#234">Source</a></span><a·href="#impl-Clone-for-EscapeAscii%3C'a%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a&gt;·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clo[·...·truncated·by·diffoscope;·len:·9225,·SHA:·12671069bee2cbd19db70da611fe20ab621c61cf9852ff08b85590daaef72112·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold"·class="fn">try_rfold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where
5 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,5 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
6 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,6 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
7 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>This·is·the·reverse·version·of·<a·href="https://doc.rust-lang.org/1.8[·...·truncated·by·diffoscope;·len:·3,·SHA:·fbd04e1aae9ce0b11a8946e2c9ac2619f7428a64d32d01eff61d809dcb70ee8e·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·title="method·core::iter::traits::iterator::Iterator::try_fold"><code>Iterator::try_fold()</code></a>:·it·takes7 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>This·is·the·reverse·version·of·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·title="method·core::iter::traits::iterator::Iterator::try_fold"><code>Iterator::try_fold()</code></a>:·it·takes
8 elements·starting·from·the·back·of·the·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfold"·class="method·trait-impl"><span·clas[·...·truncated·by·diffoscope;·len:·325,·SHA:·7ffdb06a8ab3810207a1c974783822231eaf1d82fd94bcf810dd7b3181149b7b·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold"·class="fn">rfold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where8 elements·starting·from·the·back·of·the·iterator.·<a·href="../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfold"·class="method·trait-impl"><span·class="rightside"><span·class="[·...·truncated·by·diffoscope;·len:·244,·SHA:·6c4fe3f75fed1f00ec73ae6acd6efe929fb891f07f47293eec1013d32fc0fbe1·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold"·class="fn">rfold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where
9 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,9 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
10 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·reduces·the·iterator’s·elements·to·a·single,10 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·reduces·the·iterator’s·elements·to·a·single,
11 final·value,·starting·from·the·back.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfind"·class="method·trait-impl"><span·class="r[·...·truncated·by·diffoscope;·len:·665,·SHA:·fde89feb7c0e70eefa34d688476ca36a70115bec8150dbf9b1a3c359f72dd28d·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where11 final·value,·starting·from·the·back.·<a·href="../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfind"·class="method·trait-impl"><span·class="rightside"><span·class="sinc[·...·truncated·by·diffoscope;·len:·530,·SHA:·75a595bf6f9813abee32ae86d68f5de961884ee60e7080e18fb9c73b8e22c5f0·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
12 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,12 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
13 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·4113,·SHA:·acd6f110674e422c2b4ebff7681398dfaaa82a01d04d059021d9033c1109fb08·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;Acc,·Fold,·R&gt;(&amp;mut·self,·init:·Acc,·fold:·Fold)·-&gt;·R<div·class="where">where13 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·3519,·SHA:·757a715bf17d738b56cab2c90ec18c474b2d782b2c0f4992d162e15cc0f4c4f0·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;Acc,·Fold,·R&gt;(&amp;mut·self,·init:·Acc,·fold:·Fold)·-&gt;·R<div·class="where">where
14 ····Fold:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Acc,·&lt;<a·class="struct"·href="struct.EscapeAscii.html"·title="struct·alloc::slice::EscapeAscii">EscapeAscii</a>&lt;'a&gt;·as·<a·class[·...·truncated·by·diffoscope;·len:·230,·SHA:·597726bcbbae17a97432fa661f94dd8f7ad0db4c83592d1e269d3dbd5f99d4a4·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,14 ····Fold:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Acc,·&lt;<a·class="struct"·href="struct.EscapeAscii.html"·title="struct·alloc::slice::EscapeAscii">EscapeAscii</a>&lt;'a&gt;·as·<a·class="trait"·href="../../core/i[·...·truncated·by·diffoscope;·len:·149,·SHA:·54f826e30413cd92d4c86f9ee8bc393dd994e8f511cf6bd14387642c9c882646·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
15 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Acc&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns15 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Acc&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns
16 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><a·class="src·rightside"·hr[·...·truncated·by·diffoscope;·len:·196,·SHA:·f4eb3f8d43fb7e35abadd1a55851d3a513484d4228b2a84147a793eedb454166·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;Acc,·Fold&gt;(self,·init:·Acc,·fold:·Fold)·-&gt;·Acc<div·class="where">where16 successfully,·producing·a·single,·final·value.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/slice/as[·...·truncated·by·diffoscope;·len:·115,·SHA:·981140b6e431abf797a5b4bc60b4539d04289816962eb20c637cc8eaef26877f·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;Acc,·Fold&gt;(self,·init:·Acc,·fold:·Fold)·-&gt;·Acc<div·class="where">where
17 ····Fold:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Acc,·&lt;<a·class="struct"·href="struct.EscapeAscii.html"·title="struct·alloc::slice::EscapeAscii">EscapeAscii</a>&lt;'a&gt;·as·<a·class[·...·truncated·by·diffoscope;·len:·230,·SHA:·597726bcbbae17a97432fa661f94dd8f7ad0db4c83592d1e269d3dbd5f99d4a4·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·Acc,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,17 ····Fold:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Acc,·&lt;<a·class="struct"·href="struct.EscapeAscii.html"·title="struct·alloc::slice::EscapeAscii">EscapeAscii</a>&lt;'a&gt;·as·<a·class="trait"·href="../../core/i[·...·truncated·by·diffoscope;·len:·149,·SHA:·54f826e30413cd92d4c86f9ee8bc393dd994e8f511cf6bd14387642c9c882646·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·Acc,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,
18 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.last"·class="method·trait-impl"><a·class="src·rightside"·href="[·...·truncated·by·diffoscope;·len:·1246,·SHA:·c802b53eada0a42cf1424f496a368882704629e225a2d0ee3c1bbaec1870175c·...·]/core/primitive.usize.html">usize</a>&gt;(18 returning·the·final·result.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.last"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/slice/ascii.[·...·truncated·by·diffoscope;·len:·1003,·SHA:·fdb7116507e7b4a900309397e233681d4c86bf21b2dc13d44219a5a492abac07·...·]/core/primitive.usize.html">usize</a>&gt;(
19 ····&amp;mut·self,19 ····&amp;mut·self,
20 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·4f557a9b49151e0be8c52ffd68f1def4469c08164239dc8bef8df2040551c5ef·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where20 )·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">It[·...·truncated·by·diffoscope;·len:·246,·SHA:·baf6c8e6f3d5dbac69324111240b1587dbb858d42149cae1ee895a165289ff4f·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where
21 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·962,·SHA:·116e4ec2ae3d9655c3d115eaf50f435f5323b4e48b84de734c79d2a09b3c02f2·...·]/core/primitive.usize.html">usize</a><div·class="where">where21 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_next_ch[·...·truncated·by·diffoscope;·len:·827,·SHA:·2479cde9ab5aa3e18f76cf74cf7889a3de87c66e1745f27cf29bd34c4d30dbdf·...·]/core/primitive.usize.html">usize</a><div·class="where">where
22 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·counting·the·number·of·iterations·and·returning·it.·<a·href="https://doc.[·...·truncated·by·diffoscope;·len:·3529,·SHA:·36685e4ebfba7d155142dce71eec5dabe5f32dacb8a458b62987f15496f31675·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where22 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·counting·the·number·of·iterations·and·returning·it.·<a·href="../../core/iter/traits/iterator/trait.I[·...·truncated·by·diffoscope;·len:·2989,·SHA:·52662d0d84351ee66fd08cf83fe69d664777396d635c71dc09e542292824ef32·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where
23 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by23 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by
24 the·given·amount·at·each·iteration.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><sp[·...·truncated·by·diffoscope;·len:·842,·SHA:·945c4509a8daf2f8fbccc5c6e5089e225955911e03a3e411f047f96d52d16862·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where24 the·given·amount·at·each·iteration.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Sta[·...·truncated·by·diffoscope;·len:·680,·SHA:·77241b5118fcbc984cb791fa9f75077307e18056b66492741335faf440cbdabc·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
25 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,25 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
26 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·3b5ce32f9d564c3aa7cf2adc7130e674758d0c0f4f1275b4c3b46a74aa802cb3·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where26 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·1113,·SHA:·ccf22d19f49a25daffdcc6d9226d5107457a8bfd16beccfeff5020d151bdb8bb·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
27 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,27 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
28 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·[·...·truncated·by·diffoscope;·len:·868,·SHA:·abdbf27ccc84063c7040d8fa3da9d0bda5ee310a470ef576e15554aee4bd5d21·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where28 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·of·pairs.·<a·href="../../co[·...·truncated·by·diffoscope;·len:·706,·SHA:·f32c568f049122021445a983654582d97ac74064a3e99c3361b348bd7708c1b2·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where
29 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,29 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
30 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent30 ····Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent
31 items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="sr[·...·truncated·by·diffoscope;·len:·427,·SHA:·6e82ad4aad49c2165d869fe30d20a968580a973cdb3a7f4c77f49e16dd59393e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where31 items·of·the·original·iterator.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="src·rightside"·href="../../sr[·...·truncated·by·diffoscope;·len:·319,·SHA:·8babc469a22056fc5a02684b52f9f93ba9c27a3dd2e8443ddc060797054e211e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where
32 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,32 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
33 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>33 ····G:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>
34 between·adjacent·items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightsi[·...·truncated·by·diffoscope;·len:·471,·SHA:·ed10488b7b2ccc3e4cc84a9a57a9695a74c1c964962e8d753cbace12f3318a66·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where34 between·adjacent·items·of·the·original·iterator.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·tit[·...·truncated·by·diffoscope;·len:·363,·SHA:·09aee21fa4172b743a714e2cb5915129575ce0224df49c7343dec38f43b7ecfd·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where
35 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,35 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
36 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each36 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each
37 element.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><spa[·...·truncated·by·diffoscope;·len:·306,·SHA:·61c87c39b177830189b0e4c036d97c40d8b9649d76432c90afb88de59498e8b2·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where37 element.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stab[·...·truncated·by·diffoscope;·len:·225,·SHA:·a0f2490a1a5fd6b44e0ab01199cbbbd6e5463251405d11eaf6798c9b50bbd683·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where
38 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,38 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
39 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·a65da32c5f5ef8335cb607d3b4ab3f8a25877bc2c2e8b44ca9d575caecd5c8a5·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where39 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·754,·SHA:·421e55a5747cab3df1dad40b747b4633f241bdc13a1546bb19b1370788dea27d·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where
40 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,40 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
41 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·6d69c85c69fa789be551ea42d95c33c237d12a04ef157f9ddaaead1177f7771e·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element41 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·59,·SHA:·76969e34965f1923de668a65a9f5c33f73266468c9b96650bcc5fd498e606a6b·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element
42 should·be·yielded.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·489,·SHA:·9bdc636899f4e4e5a26a3a21c9603f72b3fb972865d2f459c38b7e2ac8fed7f1·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where42 should·be·yielded.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·cf812944678f6755720896cf32b330946303afe59f1b1c11adeb6a7f33454c8d·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where
43 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,43 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
44 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·46dbf841c7aecd3f06bd4c944af21650faeac98c46c515dcfe643302618b1ecd·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where44 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·863,·SHA:·c2bab87fa2a70713bd2d34b3dcae8f4ff2341917103b43a1dd505317f15d6cff·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where
45 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as45 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as
46 the·next·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside[·...·truncated·by·diffoscope;·len:·468,·SHA:·52f7ff7f264284c3acc4429ca34d057ded9afa2e3d9d6e07571e252db9a48977·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where46 the·next·value.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title[·...·truncated·by·diffoscope;·len:·360,·SHA:·688416dc1aaaa0be069177270ba9e74b3d1b92521285a109dc7ba86b58c1f22a·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where
47 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·c0180fefce4346b0b4089e5c642521d7716108241c0ce6ec3e910c7a2c7364b4·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods47 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="../../core/iter/adapters/peekable/struct.Peekable.html#method.peek"·title="m[·...·truncated·by·diffoscope;·len:·94,·SHA:·78aeab33f83c647dfe680c1050358c95977e3af17eabde4a04880721ea1a619d·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods
48 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See48 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See
49 their·documentation·for·more·information.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightsid[·...·truncated·by·diffoscope;·len:·498,·SHA:·e4a68861585faec6a5032b3b69d6dfb0f2799b5f387a527d9a1365571ed02069·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where49 their·documentation·for·more·information.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightside"><span·class="since"·titl[·...·truncated·by·diffoscope;·len:·390,·SHA:·5da622ae0e4d00b47239007520070e22568156d6c5b1662db8b80b465934b18c·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where
50 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,50 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
51 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·93281c1f6402743fd61110c11cf676f0f67eddceda801b4eb35e5fe9f85870fd·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where51 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·1018,·SHA:·732548acff5239e9a7b904f32790c90ab3b63522635334128f35e01d37ceaeb6·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where
52 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,52 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
53 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·f1cdbb1ec64f98fabbe1d89c88b03824310926cd7eaa160953ce2452fc3abb77·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where53 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·869,·SHA:·8ec7e525848424d5104dbdd10928d17cfee4e5aee63cdda7ecdbe323b30b59d3·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where
54 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,54 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
55 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·f94a0b2c1396b13b89aca7830197ebf19e2c0e5ba536a9cc25b325a481799510·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where55 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·947,·SHA:·fdd074315a0bfb226f815b1b6ea114c7367886338ffffff233d7f6fc3108769a·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where
56 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="https://doc.rust-lang[·...·truncated·by·diffoscope;·len:·783,·SHA:·c14217b89e3292a50a09192a8857485891fc769f861e1d1fc4322d04295c86ef·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where56 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="../../core/iter/traits/iterator/trait.Iterator.h[·...·truncated·by·diffoscope;·len:·621,·SHA:·484df7f946e7f2f69c3acad8964421c0db8ac5bb40032d11bbd862e20e67704c·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where
57 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer57 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer
58 if·the·underlying·iterator·ends·sooner.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·c[·...·truncated·by·diffoscope;·len:·488,·SHA:·76f753d5a273a09a73127631acaa0ee947326a929f33be291018188793e1af56·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where58 if·the·underlying·iterator·ends·sooner.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·[·...·truncated·by·diffoscope;·len:·380,·SHA:·fa258c7e0b5d583304a69e2d4e19f3d4cc9a9ed830bdf3796eaa0968bdf590b4·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where
59 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,59 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
60 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·07d303586c8ad4e0082d5b44bff8eeda03cdb8f4bdbe46489f9232bca5a43ec6·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but60 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterat[·...·truncated·by·diffoscope;·len:·314,·SHA:·299331ff47adaff3ebc292c53557ad34da957aef932f87ec0444c7f856820410·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but
61 unlike·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·2b20882d9583cee50e0c8b3cf362b27ce0d524db387d4aa4093d622b9370dada·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where61 unlike·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.scan">Read·more[·...·truncated·by·diffoscope;·len:·555,·SHA:·77279e392f259f6d4859f5a7747ee4b4d5315f3af0ac3baebf1d53be3461b312·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where
62 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,62 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
63 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,63 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
64 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·933,·SHA:·4af94b75ba5c1e03d2d70590d2fd0706f13b3080fbff0f5b98e7b109048c403d·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where64 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·771,·SHA:·a1a50c8ca4c13151c7b22ce05c74c449231e1ffe44225beee67ff212fc1d3859·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where
65 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,65 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
66 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.I[·...·truncated·by·diffoscope;·len:·968,·SHA:·e5572ed2f3bdf5970d038da608f2f592d945541207c483c257fe5789efba168a·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where66 ····Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::col[·...·truncated·by·diffoscope;·len:·779,·SHA:·a4e524bd8aa8a1e0a66409d1b462b88093ab51a1f901ff1a788d7ee63d597f4c·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where
67 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,67 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
68 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·3013c0e49b0dade37f8ca096eccc5ceeb03fc79b9d320a4c92486d23b88d1009·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over68 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·54,·SHA:·6acee514e4d8df8979b4bba687b7e0d5dbb0ea4f98a7019e2fb03f3a8058df0f·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over
69 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,69 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="../../core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,
70 the·windows·during·mapping·overlap·as·well.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside">[·...·truncated·by·diffoscope;·len:·454,·SHA:·040991f3914479bcc92615de2b81df7363656323622e5aadc964e1a61917d23e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where70 the·windows·during·mapping·overlap·as·well.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="[·...·truncated·by·diffoscope;·len:·346,·SHA:·b1244a5f92e0573c29e04e883cf8212ba2586013b3687af07b63c29d2e611530·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where
71 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="https://doc.rust-lang.org/1.84.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·0e0294a45242d5ce9a3ab8f95d6d410756415291d92baa7d12283ef1b3ecc3a0·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where71 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="../../core/option/enum.Option.html#variant.None"·title="variant·cor[·...·truncated·by·diffoscope;·len:·679,·SHA:·ec753d6ecf7b9fe81cb270d78e45e053f2702fff74c7a63c2ab8da22b97fea86·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where
72 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,72 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
73 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·a8b562f71802a421f4745f7d1fadf4f70d98030c829e70f27b692e7915267027·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where73 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·635,·SHA:·ee3a5bcc3544c3f17985966634fef69b1708d641ddb7e62aaac76933935c5ef7·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where
74 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="https://doc.rust-lang.org/1.84.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·b3db7d84f203bbc139b1c52912705d19c664dac762898205fce452c9dc3a5318·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where74 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.by_ref">[·...·truncated·by·diffoscope;·len:·415,·SHA:·7e0e075470d2db380bcf0838446659654c982aa2ca7831ed7d0317877855be2a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where
75 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,75 ····B:·<a·class="trait"·href="../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
76 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·431,·SHA:·a705a23f6d810357e7dcac670743884665ffcccfb9b780d0aa03720be8ca5625·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(76 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.collect">Read[·...·truncated·by·diffoscope;·len:·323,·SHA:·80e0dde3814a6e7cf4e30949627abc841ab4e98e2a920efb248777e22708682d·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(
77 ····&amp;mut·self,77 ····&amp;mut·self,
78 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.h[·...·truncated·by·diffoscope;·len:·479,·SHA:·fa749442d890055f86ceb34f411c84fd7ea08302b336d786d1ca36fe5868b020·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where78 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&g[·...·truncated·by·diffoscope;·len:·344,·SHA:·c06c6401df0a7150633e94cc973521da42e09819b07be80ba18d6acb696860a9·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
79 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,79 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
80 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>,80 ····Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>,
81 ····&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.h[·...·truncated·by·diffoscope;·len:·300,·SHA:·3bff089180bac38df7f42b87556fae7641185b89a949c284f53e3ac718a6decb·...·]/core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;B&gt;,81 ····&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&g[·...·truncated·by·diffoscope;·len:·192,·SHA:·039ceb6ce31fc6b1871e3e366efbd0f164f4a6cc1bc25554bba598b0ee820cca·...·]/core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;B&gt;,
82 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/itera[·...·truncated·by·diffoscope;·len:·323,·SHA:·b5c51f161dc9d77fd81d1fd23cc71fbf42ac00f3168cf9e41ebaaa2b6eb25363·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if82 ····B:·<a·class="trait"·href="../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="ty[·...·truncated·by·diffoscope;·len:·215,·SHA:·ddb8fbd12147eecef1697edd4c63187cc514ab4b851290335adfcccc3fa429ba·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if
83 a·failure·is·encountered.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·ri[·...·truncated·by·diffoscope;·len:·521,·SHA:·6a54376815dab985ec8cc35604d035e98e3003b1563c9b41e70966084505542b·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where83 a·failure·is·encountered.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/co[·...·truncated·by·diffoscope;·len:·386,·SHA:·d46a776c329de4f757930edda252586c2cdd85c6956b7b2f68448da33ee0625e·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
84 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,84 ····E:·<a·class="trait"·href="../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
85 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·975,·SHA:·94f7f970236ba59ba5f1415764a0e3ab2f3093c6b79e76c25c797ac24a3c4d09·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where85 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_collect[·...·truncated·by·diffoscope;·len:·840,·SHA:·1ee6fbe4deb3d959e9ade58fb7ed3efa79d09721ed02fbb5f5f82aae6aa1425d·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
86 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,86 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
87 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·b480ec650ba000fe7cb67df58fc0351299638ee3e8f00db18f74ca24d69f9894·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,87 ····B:·<a·class="trait"·href="../../core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtyp[·...·truncated·by·diffoscope;·len:·14,·SHA:·4105980ca4887a52797067761af25a11e3de6069cd8d7c8ce82cd885bb798fe8·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
88 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·fdf5a1845f070855ba2cfd0c8c85460ea5cb646c4d3b42a8431bf21489c73701·...·]/core/primitive.usize.html">usize</a><div·class="where">where88 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·806,·SHA:·4d554b733db12e71a31ec2477a31408041941b0e2b0dc910904ecf2fced9f65b·...·]/core/primitive.usize.html">usize</a><div·class="where">where
89 ····T:·'a,89 ····T:·'a,
90 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·1fc250e258e9e42e4fa3e22f86ecd57057e9ff23e47af1aec778076a7a891134·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,90 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIter[·...·truncated·by·diffoscope;·len:·51,·SHA:·c9be73bbed9d11ecac2a179f480a640f51d6255f26712667ffdabc72c1fc7fb0·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,
91 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·5846407374f20f525a4a0663ad4488141eafe64513ef82581dc5df5c2d200745·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_partition_in_place</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62543">#62543</a>)</span></div></span><div·class='docblock'>Reorders·the·elements·of·this·iterator·<em>in-place</em>·according·to·the·given·predicate,91 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="../../core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_partition_in_place</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62543">#62543</a>)</span></div></span><div·class='docblock'>Reorders·the·elements·of·this·iterator·<em>in-place</em>·according·to·the·given·predicate,
92 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.92 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.
93 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.partition_in_place">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_partitioned"·class="method·trait-impl"><a·clas[·...·truncated·by·diffoscope;·len:·431,·SHA:·4aa7d028146c72d45794efc19a376d4bee3b75eda61ff46d969e440b3dbfa1b0·...·]/core/primitive.bool.html">bool</a><div·class="where">where93 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.partition_in_place">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_partitioned"·class="method·trait-impl"><a·class="src·rightside"·href="../[·...·truncated·by·diffoscope;·len:·323,·SHA:·bfc44418fa28079222aab80e2baccdaffb2d067bbe5d1b5162202d268ad628d7·...·]/core/primitive.bool.html">bool</a><div·class="where">where
94 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,94 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
95 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·fcd03e71f79faad6d9b9a12045d59f4dfabc78e5aefebcabc9c1a5be45e31125·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,95 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·54,·SHA:·d5ac304cc26edf57442227b641dd21c427d0f9cb322b79986f5b15fc49f867b0·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,
96 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="[·...·truncated·by·diffoscope;·len:·327,·SHA:·6a5e1fb3d277395b79208a4b9226a3f67079855ea8ea2a966f794f23ed6151ba·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where96 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rightside"><span·class="sin[·...·truncated·by·diffoscope;·len:·246,·SHA:·e0390f91275ada2fcba1a4ca0ab0ddd5749e0d816895bb6c572dba762e92a4b6·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where
97 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,97 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
98 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,98 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
99 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the99 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="../../core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the
100 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightsid[·...·truncated·by·diffoscope;·len:·627,·SHA:·6a5bb11fcfdaae1b3149efa5eb584c4da7964c86ed0f5313c3ee12e94ad8d787·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where100 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span·class="since"·titl[·...·truncated·by·diffoscope;·len:·492,·SHA:·2537bf5a16d74ea3547b1bb9ec43123e549bd2f9060163c344770cbe8ea1375c·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
101 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,101 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
102 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·084691f7fc4e7f4da7db385127d0ce8d2d52f6740757129a65910c4db0dc180d·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing102 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·244,·SHA:·f09ac7e818239538c3f3208cb5c76076c24a0153797eb762821d5bf2a382d83b·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing
103 operation.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·217,·SHA:·447ae00256be3de069c602a6c04889808c883eae6fa349d023f53bdd5570ecae·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(103 operation.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/iter[·...·truncated·by·diffoscope;·len:·136,·SHA:·97e3ee132585582ec7077e3bbd86406d8a2dcfc97dce7fd52b49af3ec1b58622·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(
104 ····&amp;mut·self,104 ····&amp;mut·self,
105 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R, 
106 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.T[·...·truncated·by·diffoscope;·len:·950,·SHA:·817376e71f7a0d170bfbd4b7264c15d324f49c65106c49349d11a077842aa533·...·]105 ····f:·impl·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core:[·...·truncated·by·diffoscope;·len:·238,·SHA:·a52edc1a1ce1db5dd6e620dbfe5acb58fdc6d84f2320cef02845988aa54e5c55·...·]
 106 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;&gt;&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
107 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,107 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
108 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,108 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
109 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·764ea8f08626b05426a76738d54ebb2d640042494d76cba8c20d868bfdc07a73·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the109 ····&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>:·<a[·...·truncated·by·diffoscope;·len:·277,·SHA:·0dd064909226a9691486376740de1e17aa133a7ae2f635bee3feaa9b19d7b580·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the
110 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><span·class="rightside"><s[·...·truncated·by·diffoscope;·len:·476,·SHA:·aef721c14147dea2fbec70dcfa76916b3f1273bed8304f4c9db310ca23d1e4b1·...·]/core/primitive.bool.html">bool</a><div·class="where">where110 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="St[·...·truncated·by·diffoscope;·len:·368,·SHA:·6dbfbc90b7cfda9017074212ce0beeb560c8f9ba918ba7b00292e34daa531cc2·...·]/core/primitive.bool.html">bool</a><div·class="where">where
111 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,111 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
112 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·7c48e62c73a40a5cb5ebbf4a22cd789b342a88ad3d855022191f2bae33c736c6·...·]/core/primitive.bool.html">bool</a><div·class="where">where112 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·829,·SHA:·c413d95d1072acd820201f12ffb54d04a6c7f3b732f7de46115ba40b4eb1bd3f·...·]/core/primitive.bool.html">bool</a><div·class="where">where
113 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,113 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
114 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·673d69ce0c23e24b2546127c463e67cd2a4c0f7be792712e2b42e75427161b75·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where114 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·956,·SHA:·105c7ff05d33bc9219febe8c9633cf1c1a8d88c32e47e44793d403a428174c66·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
115 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,115 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
116 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·aa5078ff77f5638746395497f8ce92c1b684d342dea851990104d5e9981ab6b0·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where116 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·862,·SHA:·ab608da827ec12779180206da5bfe43676627c19288c1fe674060a00ba44a595·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where
117 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,117 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
118 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·1bd732dff19021a1586bb486282683f5c1bc65d5d514f9e13cc9232b4e94955b·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;,</div></h4></section></summary><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns118 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·49,·SHA:·819211b646a21318a22e9d295452cdf890d5288a631a50261ca1a5b2bac9f748·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;,</div></h4></section></summary><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns
119 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.find_map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_find"·class="method·trait-impl"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·215,·SHA:·4d59a011c8881794ce6367c1e816f11a813db02e37c71800ed6d47056f157573·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(119 the·first·non-none·result.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.find_map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_find"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/iter[·...·truncated·by·diffoscope;·len:·134,·SHA:·f9a67b0520c850053a598ecaa24d4c1a006e7174ac499ec1e09451cd90ea548e·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(
120 ····&amp;mut·self,120 ····&amp;mut·self,
121 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,121 ····f:·impl·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
122 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·efb03e5c706e0947c6a4490b17f1efb0f1944a7d81f2640b5933212334dd255a·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where122 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>·as·[·...·truncated·by·diffoscope;·len:·464,·SHA:·38b1d27bdc6fd93a0d7e942386ffe94e909033d34def03ec6236baba6643ee81·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
123 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,123 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
124 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html">bool</a>&gt;,124 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="../../core/primitive.bool.html">bool</a>&gt;,
125 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·764ea8f08626b05426a76738d54ebb2d640042494d76cba8c20d868bfdc07a73·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>try_find</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/63178">#63178</a>)</span></div></span><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns125 ····&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>:·<a[·...·truncated·by·diffoscope;·len:·277,·SHA:·0dd064909226a9691486376740de1e17aa133a7ae2f635bee3feaa9b19d7b580·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>try_find</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/63178">#63178</a>)</span></div></span><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns
126 the·first·true·result·or·the·first·error.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_find">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.position"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·635,·SHA:·348891c2a01ad4ba1f5ccca4c270bd2cefaf47e6b8194dc69d227209558119ff·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where126 the·first·true·result·or·the·first·error.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_find">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.position"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title=[·...·truncated·by·diffoscope;·len:·500,·SHA:·005fbbf80a1954a9c056f5ea1c5ad1868c1657316a1b4be45b5d494a4ecbdf59·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
Max diff block lines reached; 91853/348540 bytes (26.35%) of diff not shown.
357 KB
./usr/share/doc/rust-doc/html/alloc/slice/struct.Iter.html
Max HTML report size reached
352 KB
./usr/share/doc/rust-doc/html/alloc/slice/struct.IterMut.html
Max HTML report size reached
345 KB
./usr/share/doc/rust-doc/html/alloc/slice/struct.RChunks.html
Max HTML report size reached
351 KB
./usr/share/doc/rust-doc/html/alloc/slice/struct.RChunksExact.html
Max HTML report size reached
334 KB
./usr/share/doc/rust-doc/html/alloc/slice/struct.RChunksExactMut.html
    
Offset 1, 246 lines modifiedOffset 1, 246 lines modified
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="An·iterator·over·a·slice·in·(non-overlapping)·mutable·chunks·(`chunk_size`·elements·at·a·time),·starting·at·the·end·of·the·slice."><title>RChunksExactMut·in·alloc::slice·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»   2025-01-07)»(built»  from»      a»     source»       tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">RChunks<wbr>Exact<wbr>Mut</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#example"·title="Example">Example</a></li></ul><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.into_remainder"·title="into_remainder">into_remainder</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Debug-for-RChunksExactMut%3C'a,+T%3E"·title="Debug">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-RChunksExactMut%3C'a,+T%3E"·title="DoubleEndedIterator">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-RChunksExactMut%3C'_,+T%3E"·title="ExactSizeIterator">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-RChunksExactMut%3C'_,+T%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-RChunksExactMut%3C'a,+T%3E"·title="Iterator">Iterator</a></li><li><a·href="#impl-Send-for-RChunksExactMut%3C'_,+T%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-RChunksExactMut%3C'_,+T%3E"·title="Sync">Sync</a></li><li><a·href="#impl-TrustedLen-for-RChunksExactMut%3C'_,+T%3E"·title="TrustedLen">TrustedLen</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-UnwindSafe-for-RChunksExactMut%3C'a,+T%3E"·title="!UnwindSafe">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-RChunksExactMut%3C'a,+T%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-RChunksExactMut%3C'a,+T%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Unpin-for-RChunksExactMut%3C'a,+T%3E"·title="Unpin">Unpin</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>slice</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">alloc</a>::<wbr><a·href="index.html">slice</a></span><h1>Struct·<span·class="struct">RChunksExactMut</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/slice/iter.rs.html#3118">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·RChunksExactMut&lt;'a,·T&gt;<div·class="where">where1 <!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="An·iterator·over·a·slice·in·(non-overlapping)·mutable·chunks·(`chunk_size`·elements·at·a·time),·starting·at·the·end·of·the·slice."><title>RChunksExactMut·in·alloc::slice·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»   2025-01-07)»(built»  from»      a»     source»       tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">RChunks<wbr>Exact<wbr>Mut</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#example"·title="Example">Example</a></li></ul><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.into_remainder"·title="into_remainder">into_remainder</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Debug-for-RChunksExactMut%3C'a,+T%3E"·title="Debug">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-RChunksExactMut%3C'a,+T%3E"·title="DoubleEndedIterator">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-RChunksExactMut%3C'_,+T%3E"·title="ExactSizeIterator">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-RChunksExactMut%3C'_,+T%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-RChunksExactMut%3C'a,+T%3E"·title="Iterator">Iterator</a></li><li><a·href="#impl-Send-for-RChunksExactMut%3C'_,+T%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-RChunksExactMut%3C'_,+T%3E"·title="Sync">Sync</a></li><li><a·href="#impl-TrustedLen-for-RChunksExactMut%3C'_,+T%3E"·title="TrustedLen">TrustedLen</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-UnwindSafe-for-RChunksExactMut%3C'a,+T%3E"·title="!UnwindSafe">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-RChunksExactMut%3C'a,+T%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-RChunksExactMut%3C'a,+T%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Unpin-for-RChunksExactMut%3C'a,+T%3E"·title="Unpin">Unpin</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>slice</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">alloc</a>::<wbr><a·href="index.html">slice</a></span><h1>Struct·<span·class="struct">RChunksExactMut</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../src/core/slice/iter.rs.html#3118">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·RChunksExactMut&lt;'a,·T&gt;<div·class="where">where
2 ····T:·'a,</div>{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>An·iterator·over·a·slice·in·(non-overlapping)·mutable·chunks·(<code>chunk_size</code>2 ····T:·'a,</div>{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>An·iterator·over·a·slice·in·(non-overlapping)·mutable·chunks·(<code>chunk_size</code>
3 elements·at·a·time),·starting·at·the·end·of·the·slice.</p>3 elements·at·a·time),·starting·at·the·end·of·the·slice.</p>
4 <p>When·the·slice·len·is·not·evenly·divided·by·the·chunk·size,·the·last·up·to4 <p>When·the·slice·len·is·not·evenly·divided·by·the·chunk·size,·the·last·up·to
5 <code>chunk_size-1</code>·elements·will·be·omitted·but·can·be·retrieved·from·the5 <code>chunk_size-1</code>·elements·will·be·omitted·but·can·be·retrieved·from·the
6 <a·href="struct.RChunksExactMut.html#method.into_remainder"·title="method·alloc::slice::RChunksExactMut::into_remainder"><code>into_remainder</code></a>·function·from·the·iterator.</p>6 <a·href="struct.RChunksExactMut.html#method.into_remainder"·title="method·alloc::slice::RChunksExactMut::into_remainder"><code>into_remainder</code></a>·function·from·the·iterator.</p>
7 <p>This·struct·is·created·by·the·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html#method.rchunks_exact_mut"·title="method·slice::rchunks_exact_mut"><code>rchunks_exact_mut</code></a>·method·on·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html"·title="primitive·slice">slices</a>.</p>7 <p>This·struct·is·created·by·the·<a·href="../../core/primitive.slice.html#method.rchunks_exact_mut"·title="method·slice::rchunks_exact_mut"><code>rchunks_exact_mut</code></a>·method·on·<a·href="../../core/primitive.slice.html"·title="primitive·slice">slices</a>.</p>
8 <h2·id="example"><a·class="doc-anchor"·href="#example">§</a>Example</h2>8 <h2·id="example"><a·class="doc-anchor"·href="#example">§</a>Example</h2>
9 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span><span·class="kw-2">mut·</span>slice·=·[<span·class="string">'l'</span>,·<span·class="string">'o'</span>,·<span·class="string">'r'</span>,·<span·class="string">'e'</span>,·<span·class="string">'m'</span>];9 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span><span·class="kw-2">mut·</span>slice·=·[<span·class="string">'l'</span>,·<span·class="string">'o'</span>,·<span·class="string">'r'</span>,·<span·class="string">'e'</span>,·<span·class="string">'m'</span>];
10 <span·class="kw">let·</span>iter·=·slice.rchunks_exact_mut(<span·class="number">2</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++let+mut+slice+=+%5B'l',+'o',+'r',+'e',+'m'%5D;%0A++++let+iter+=+slice.rchunks_exact_mut(2);%0A%7D&amp;edition=2021"></a></div>10 <span·class="kw">let·</span>iter·=·slice.rchunks_exact_mut(<span·class="number">2</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++let+mut+slice+=+%5B'l',+'o',+'r',+'e',+'m'%5D;%0A++++let+iter+=+slice.rchunks_exact_mut(2);%0A%7D&amp;edition=2021"></a></div>
11 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-RChunksExactMut%3C'a,+T%3E"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/slice/iter.rs.html#3130">Source</a><a·href="#impl-RChunksExactMut%3C'a,+T%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·T&gt;·<a·class="struct"·href="struct.RChunksExactMut.html"·title="struct·alloc::[·...·truncated·by·diffoscope;·len:·591,·SHA:·b1e42c83fcd23b2f79c21064b33d5be0609c173d4c559db1b71d2107797b18a8·...·]/core/primitive.slice.html">[T]</a></h4></section></summary><div·class="docblock"><p>Returns·the·remainder·of·the·original·slice·that·is·not·going·to·be11 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-RChunksExactMut%3C'a,+T%3E"·class="impl"><a·class="src·rightside"·href="../../src/core/slice/iter.rs.html#3130">Source</a><a·href="#impl-RChunksExactMut%3C'a,+T%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·T&gt;·<a·class="struct"·href="struct.RChunksExactMut.html"·title="struct·alloc::slice::RChunksExactMut">RCh[·...·truncated·by·diffoscope;·len:·510,·SHA:·219a203e9d6e319078524db894f4e6d23c577546d75ef35df033dc20c9dbbff4·...·]/core/primitive.slice.html">[T]</a></h4></section></summary><div·class="docblock"><p>Returns·the·remainder·of·the·original·slice·that·is·not·going·to·be
12 returned·by·the·iterator.·The·returned·slice·has·at·most·<code>chunk_size-1</code>12 returned·by·the·iterator.·The·returned·slice·has·at·most·<code>chunk_size-1</code>
13 elements.</p>13 elements.</p>
14 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-RChunksExactMut%3C'a,+T%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.31.0">1.31.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/slice/iter.rs.html#3115">Source</a></span><a·href="#impl-Debug-for-RChunksExactMut%3C'a,+T%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·T&gt;·<a·class="trait"·href="../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.RChunksExactMut.html"·title="struct·alloc::slice::RChunksExactMut">RChunksExactMut</a>&lt;'a,·T&gt;<div·class="where">where14 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-RChunksExactMut%3C'a,+T%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.31.0">1.31.0</span>···<a·class="src"·href="../../src/core/slice/iter.rs.html#3115">Source</a></span><a·href="#impl-Debug-for-RChunksExactMut%3C'a,+T%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·T&gt;·<a·class="trait"·href="../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.RChunksExactMut.html"·title="struct·alloc::slice::RChunksExactMut">RChunksExactMut</a>&lt;'a,·T&gt;<div·class="where">where
15 ····T:·<a·class="trait"·href="../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·+·'a,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/slice/iter.rs.html#3115">Source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·hre[·...·truncated·by·diffoscope;·len:·2772,·SHA:·c31b957b8094fc1bfb068394613ec8891e5013d23560186e46b2dd6b6c54b17c·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.nth_back"·class="fn">nth_back</a>(15 ····T:·<a·class="trait"·href="../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·+·'a,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/slice/iter.rs.html#3115">Source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="../fmt/struct.Formatter.[·...·truncated·by·diffoscope;·len:·2448,·SHA:·e43d15a77c7a2ab81e2ed32468cd7d3c201eb9ed5f90edda8b41b23a48ed6f2c·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.nth_back"·class="fn">nth_back</a>(
16 ····&amp;mut·self,16 ····&amp;mut·self,
17 ····n:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.usize.html">usize</a>,17 ····n:·<a·class="primitive"·href="../../core/primitive.usize.html">usize</a>,
18 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;&lt;<a·class="struct"·href="struct.RChunksExactMut.html"·title="struct·alloc::slice::RChunksExactMut">RChunksExactMut</a>&lt;'a,·T&gt;·as·<a·clas[·...·truncated·by·diffoscope;·len:·2677,·SHA:·a425419983aa4b6dbd577bf694a5c1be51d8e5d6f95195876490fe21af4bca37·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold"·class="fn">try_rfold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where18 )·-&gt;·<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;&lt;<a·class="struct"·href="struct.RChunksExactMut.html"·title="struct·alloc::slice::RChunksExactMut">RChunksExactMut</a>&lt;'a,·T&gt;·as·<a·class="trait"·href="../../core/[·...·truncated·by·diffoscope;·len:·2299,·SHA:·973ed3ea1774b5c9e590d669a740dba40e1b94fd9b519469a79f19a58c9b5cff·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold"·class="fn">try_rfold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where
19 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,19 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
20 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,20 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
21 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>This·is·the·reverse·version·of·<a·href="https://doc.rust-lang.org/1.8[·...·truncated·by·diffoscope;·len:·3,·SHA:·fbd04e1aae9ce0b11a8946e2c9ac2619f7428a64d32d01eff61d809dcb70ee8e·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·title="method·core::iter::traits::iterator::Iterator::try_fold"><code>Iterator::try_fold()</code></a>:·it·takes21 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>This·is·the·reverse·version·of·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·title="method·core::iter::traits::iterator::Iterator::try_fold"><code>Iterator::try_fold()</code></a>:·it·takes
22 elements·starting·from·the·back·of·the·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfold"·class="method·trait-impl"><span·clas[·...·truncated·by·diffoscope;·len:·325,·SHA:·7ffdb06a8ab3810207a1c974783822231eaf1d82fd94bcf810dd7b3181149b7b·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold"·class="fn">rfold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where22 elements·starting·from·the·back·of·the·iterator.·<a·href="../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfold"·class="method·trait-impl"><span·class="rightside"><span·class="[·...·truncated·by·diffoscope;·len:·244,·SHA:·6c4fe3f75fed1f00ec73ae6acd6efe929fb891f07f47293eec1013d32fc0fbe1·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold"·class="fn">rfold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where
23 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,23 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
24 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·reduces·the·iterator’s·elements·to·a·single,24 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·reduces·the·iterator’s·elements·to·a·single,
25 final·value,·starting·from·the·back.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfind"·class="method·trait-impl"><span·class="r[·...·truncated·by·diffoscope;·len:·665,·SHA:·fde89feb7c0e70eefa34d688476ca36a70115bec8150dbf9b1a3c359f72dd28d·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where25 final·value,·starting·from·the·back.·<a·href="../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfind"·class="method·trait-impl"><span·class="rightside"><span·class="sinc[·...·truncated·by·diffoscope;·len:·530,·SHA:·75a595bf6f9813abee32ae86d68f5de961884ee60e7080e18fb9c73b8e22c5f0·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
26 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,26 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
27 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·10179,·SHA:·bf4667cca3d26e223835a541aed5567268212289743256993ff6e9011fbf96aa·...·]/core/primitive.usize.html">usize</a>&gt;(27 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·8856,·SHA:·28b59ab483a264d11e08fd0684cd970cfba46e547a8bbe3c11d03678d3d75eb6·...·]/core/primitive.usize.html">usize</a>&gt;(
28 ····&amp;mut·self,28 ····&amp;mut·self,
29 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·4f557a9b49151e0be8c52ffd68f1def4469c08164239dc8bef8df2040551c5ef·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where29 )·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">It[·...·truncated·by·diffoscope;·len:·246,·SHA:·baf6c8e6f3d5dbac69324111240b1587dbb858d42149cae1ee895a165289ff4f·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where
30 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·2597,·SHA:·e43e149acfa6ad1816c364b2828c60b6adfdffe814c9ef8b9f9b56e35c4e44a7·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where30 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_next_ch[·...·truncated·by·diffoscope;·len:·2219,·SHA:·92e912ee585db2c097b6d1cf2aef0139e2a927527f301ab7da0bc73758cc2d6b·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where
31 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by31 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by
32 the·given·amount·at·each·iteration.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><sp[·...·truncated·by·diffoscope;·len:·842,·SHA:·945c4509a8daf2f8fbccc5c6e5089e225955911e03a3e411f047f96d52d16862·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where32 the·given·amount·at·each·iteration.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Sta[·...·truncated·by·diffoscope;·len:·680,·SHA:·77241b5118fcbc984cb791fa9f75077307e18056b66492741335faf440cbdabc·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
33 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,33 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
34 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·3b5ce32f9d564c3aa7cf2adc7130e674758d0c0f4f1275b4c3b46a74aa802cb3·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where34 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·1113,·SHA:·ccf22d19f49a25daffdcc6d9226d5107457a8bfd16beccfeff5020d151bdb8bb·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
35 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,35 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
36 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·[·...·truncated·by·diffoscope;·len:·868,·SHA:·abdbf27ccc84063c7040d8fa3da9d0bda5ee310a470ef576e15554aee4bd5d21·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where36 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·of·pairs.·<a·href="../../co[·...·truncated·by·diffoscope;·len:·706,·SHA:·f32c568f049122021445a983654582d97ac74064a3e99c3361b348bd7708c1b2·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where
37 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,37 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
38 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent38 ····Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent
39 items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="sr[·...·truncated·by·diffoscope;·len:·427,·SHA:·6e82ad4aad49c2165d869fe30d20a968580a973cdb3a7f4c77f49e16dd59393e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where39 items·of·the·original·iterator.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="src·rightside"·href="../../sr[·...·truncated·by·diffoscope;·len:·319,·SHA:·8babc469a22056fc5a02684b52f9f93ba9c27a3dd2e8443ddc060797054e211e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where
40 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,40 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
41 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>41 ····G:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>
42 between·adjacent·items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightsi[·...·truncated·by·diffoscope;·len:·471,·SHA:·ed10488b7b2ccc3e4cc84a9a57a9695a74c1c964962e8d753cbace12f3318a66·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where42 between·adjacent·items·of·the·original·iterator.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·tit[·...·truncated·by·diffoscope;·len:·363,·SHA:·09aee21fa4172b743a714e2cb5915129575ce0224df49c7343dec38f43b7ecfd·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where
43 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,43 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
44 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each44 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each
45 element.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><spa[·...·truncated·by·diffoscope;·len:·306,·SHA:·61c87c39b177830189b0e4c036d97c40d8b9649d76432c90afb88de59498e8b2·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where45 element.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stab[·...·truncated·by·diffoscope;·len:·225,·SHA:·a0f2490a1a5fd6b44e0ab01199cbbbd6e5463251405d11eaf6798c9b50bbd683·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where
46 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,46 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
47 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·a65da32c5f5ef8335cb607d3b4ab3f8a25877bc2c2e8b44ca9d575caecd5c8a5·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where47 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·754,·SHA:·421e55a5747cab3df1dad40b747b4633f241bdc13a1546bb19b1370788dea27d·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where
48 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,48 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
49 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·6d69c85c69fa789be551ea42d95c33c237d12a04ef157f9ddaaead1177f7771e·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element49 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·59,·SHA:·76969e34965f1923de668a65a9f5c33f73266468c9b96650bcc5fd498e606a6b·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element
50 should·be·yielded.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·489,·SHA:·9bdc636899f4e4e5a26a3a21c9603f72b3fb972865d2f459c38b7e2ac8fed7f1·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where50 should·be·yielded.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·cf812944678f6755720896cf32b330946303afe59f1b1c11adeb6a7f33454c8d·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where
51 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,51 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
52 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·46dbf841c7aecd3f06bd4c944af21650faeac98c46c515dcfe643302618b1ecd·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where52 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·863,·SHA:·c2bab87fa2a70713bd2d34b3dcae8f4ff2341917103b43a1dd505317f15d6cff·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where
53 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as53 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as
54 the·next·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside[·...·truncated·by·diffoscope;·len:·468,·SHA:·52f7ff7f264284c3acc4429ca34d057ded9afa2e3d9d6e07571e252db9a48977·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where54 the·next·value.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title[·...·truncated·by·diffoscope;·len:·360,·SHA:·688416dc1aaaa0be069177270ba9e74b3d1b92521285a109dc7ba86b58c1f22a·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where
55 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·c0180fefce4346b0b4089e5c642521d7716108241c0ce6ec3e910c7a2c7364b4·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods55 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="../../core/iter/adapters/peekable/struct.Peekable.html#method.peek"·title="m[·...·truncated·by·diffoscope;·len:·94,·SHA:·78aeab33f83c647dfe680c1050358c95977e3af17eabde4a04880721ea1a619d·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods
56 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See56 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See
57 their·documentation·for·more·information.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightsid[·...·truncated·by·diffoscope;·len:·498,·SHA:·e4a68861585faec6a5032b3b69d6dfb0f2799b5f387a527d9a1365571ed02069·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where57 their·documentation·for·more·information.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightside"><span·class="since"·titl[·...·truncated·by·diffoscope;·len:·390,·SHA:·5da622ae0e4d00b47239007520070e22568156d6c5b1662db8b80b465934b18c·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where
58 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,58 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
59 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·93281c1f6402743fd61110c11cf676f0f67eddceda801b4eb35e5fe9f85870fd·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where59 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·1018,·SHA:·732548acff5239e9a7b904f32790c90ab3b63522635334128f35e01d37ceaeb6·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where
60 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,60 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
61 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·f1cdbb1ec64f98fabbe1d89c88b03824310926cd7eaa160953ce2452fc3abb77·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where61 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·869,·SHA:·8ec7e525848424d5104dbdd10928d17cfee4e5aee63cdda7ecdbe323b30b59d3·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where
62 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,62 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
63 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·f94a0b2c1396b13b89aca7830197ebf19e2c0e5ba536a9cc25b325a481799510·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where63 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·947,·SHA:·fdd074315a0bfb226f815b1b6ea114c7367886338ffffff233d7f6fc3108769a·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where
64 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="https://doc.rust-lang[·...·truncated·by·diffoscope;·len:·783,·SHA:·c14217b89e3292a50a09192a8857485891fc769f861e1d1fc4322d04295c86ef·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where64 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="../../core/iter/traits/iterator/trait.Iterator.h[·...·truncated·by·diffoscope;·len:·621,·SHA:·484df7f946e7f2f69c3acad8964421c0db8ac5bb40032d11bbd862e20e67704c·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where
65 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer65 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer
66 if·the·underlying·iterator·ends·sooner.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·c[·...·truncated·by·diffoscope;·len:·488,·SHA:·76f753d5a273a09a73127631acaa0ee947326a929f33be291018188793e1af56·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where66 if·the·underlying·iterator·ends·sooner.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·[·...·truncated·by·diffoscope;·len:·380,·SHA:·fa258c7e0b5d583304a69e2d4e19f3d4cc9a9ed830bdf3796eaa0968bdf590b4·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where
67 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,67 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
68 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·07d303586c8ad4e0082d5b44bff8eeda03cdb8f4bdbe46489f9232bca5a43ec6·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but68 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterat[·...·truncated·by·diffoscope;·len:·314,·SHA:·299331ff47adaff3ebc292c53557ad34da957aef932f87ec0444c7f856820410·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but
69 unlike·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·2b20882d9583cee50e0c8b3cf362b27ce0d524db387d4aa4093d622b9370dada·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where69 unlike·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.scan">Read·more[·...·truncated·by·diffoscope;·len:·555,·SHA:·77279e392f259f6d4859f5a7747ee4b4d5315f3af0ac3baebf1d53be3461b312·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where
70 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,70 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
71 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,71 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
72 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·933,·SHA:·4af94b75ba5c1e03d2d70590d2fd0706f13b3080fbff0f5b98e7b109048c403d·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where72 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·771,·SHA:·a1a50c8ca4c13151c7b22ce05c74c449231e1ffe44225beee67ff212fc1d3859·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where
73 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,73 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
74 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.I[·...·truncated·by·diffoscope;·len:·968,·SHA:·e5572ed2f3bdf5970d038da608f2f592d945541207c483c257fe5789efba168a·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where74 ····Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::col[·...·truncated·by·diffoscope;·len:·779,·SHA:·a4e524bd8aa8a1e0a66409d1b462b88093ab51a1f901ff1a788d7ee63d597f4c·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where
75 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,75 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
76 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·3013c0e49b0dade37f8ca096eccc5ceeb03fc79b9d320a4c92486d23b88d1009·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over76 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·54,·SHA:·6acee514e4d8df8979b4bba687b7e0d5dbb0ea4f98a7019e2fb03f3a8058df0f·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over
77 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,77 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="../../core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,
78 the·windows·during·mapping·overlap·as·well.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside">[·...·truncated·by·diffoscope;·len:·454,·SHA:·040991f3914479bcc92615de2b81df7363656323622e5aadc964e1a61917d23e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where78 the·windows·during·mapping·overlap·as·well.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="[·...·truncated·by·diffoscope;·len:·346,·SHA:·b1244a5f92e0573c29e04e883cf8212ba2586013b3687af07b63c29d2e611530·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where
79 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="https://doc.rust-lang.org/1.84.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·0e0294a45242d5ce9a3ab8f95d6d410756415291d92baa7d12283ef1b3ecc3a0·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where79 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="../../core/option/enum.Option.html#variant.None"·title="variant·cor[·...·truncated·by·diffoscope;·len:·679,·SHA:·ec753d6ecf7b9fe81cb270d78e45e053f2702fff74c7a63c2ab8da22b97fea86·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where
80 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,80 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
81 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·a8b562f71802a421f4745f7d1fadf4f70d98030c829e70f27b692e7915267027·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where81 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·635,·SHA:·ee3a5bcc3544c3f17985966634fef69b1708d641ddb7e62aaac76933935c5ef7·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where
82 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="https://doc.rust-lang.org/1.84.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·b3db7d84f203bbc139b1c52912705d19c664dac762898205fce452c9dc3a5318·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where82 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.by_ref">[·...·truncated·by·diffoscope;·len:·415,·SHA:·7e0e075470d2db380bcf0838446659654c982aa2ca7831ed7d0317877855be2a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where
83 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,83 ····B:·<a·class="trait"·href="../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
84 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·431,·SHA:·a705a23f6d810357e7dcac670743884665ffcccfb9b780d0aa03720be8ca5625·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(84 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.collect">Read[·...·truncated·by·diffoscope;·len:·323,·SHA:·80e0dde3814a6e7cf4e30949627abc841ab4e98e2a920efb248777e22708682d·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(
85 ····&amp;mut·self,85 ····&amp;mut·self,
86 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.h[·...·truncated·by·diffoscope;·len:·479,·SHA:·fa749442d890055f86ceb34f411c84fd7ea08302b336d786d1ca36fe5868b020·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where86 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&g[·...·truncated·by·diffoscope;·len:·344,·SHA:·c06c6401df0a7150633e94cc973521da42e09819b07be80ba18d6acb696860a9·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
87 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,87 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
88 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>,88 ····Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>,
89 ····&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.h[·...·truncated·by·diffoscope;·len:·300,·SHA:·3bff089180bac38df7f42b87556fae7641185b89a949c284f53e3ac718a6decb·...·]/core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;B&gt;,89 ····&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&g[·...·truncated·by·diffoscope;·len:·192,·SHA:·039ceb6ce31fc6b1871e3e366efbd0f164f4a6cc1bc25554bba598b0ee820cca·...·]/core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;B&gt;,
90 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/itera[·...·truncated·by·diffoscope;·len:·323,·SHA:·b5c51f161dc9d77fd81d1fd23cc71fbf42ac00f3168cf9e41ebaaa2b6eb25363·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if90 ····B:·<a·class="trait"·href="../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="ty[·...·truncated·by·diffoscope;·len:·215,·SHA:·ddb8fbd12147eecef1697edd4c63187cc514ab4b851290335adfcccc3fa429ba·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if
91 a·failure·is·encountered.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·ri[·...·truncated·by·diffoscope;·len:·521,·SHA:·6a54376815dab985ec8cc35604d035e98e3003b1563c9b41e70966084505542b·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where91 a·failure·is·encountered.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/co[·...·truncated·by·diffoscope;·len:·386,·SHA:·d46a776c329de4f757930edda252586c2cdd85c6956b7b2f68448da33ee0625e·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
92 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,92 ····E:·<a·class="trait"·href="../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
93 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·975,·SHA:·94f7f970236ba59ba5f1415764a0e3ab2f3093c6b79e76c25c797ac24a3c4d09·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where93 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_collect[·...·truncated·by·diffoscope;·len:·840,·SHA:·1ee6fbe4deb3d959e9ade58fb7ed3efa79d09721ed02fbb5f5f82aae6aa1425d·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
94 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,94 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
95 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·b480ec650ba000fe7cb67df58fc0351299638ee3e8f00db18f74ca24d69f9894·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,95 ····B:·<a·class="trait"·href="../../core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtyp[·...·truncated·by·diffoscope;·len:·14,·SHA:·4105980ca4887a52797067761af25a11e3de6069cd8d7c8ce82cd885bb798fe8·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
96 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·fdf5a1845f070855ba2cfd0c8c85460ea5cb646c4d3b42a8431bf21489c73701·...·]/core/primitive.usize.html">usize</a><div·class="where">where96 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·806,·SHA:·4d554b733db12e71a31ec2477a31408041941b0e2b0dc910904ecf2fced9f65b·...·]/core/primitive.usize.html">usize</a><div·class="where">where
97 ····T:·'a,97 ····T:·'a,
98 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·1fc250e258e9e42e4fa3e22f86ecd57057e9ff23e47af1aec778076a7a891134·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,98 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIter[·...·truncated·by·diffoscope;·len:·51,·SHA:·c9be73bbed9d11ecac2a179f480a640f51d6255f26712667ffdabc72c1fc7fb0·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,
99 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·5846407374f20f525a4a0663ad4488141eafe64513ef82581dc5df5c2d200745·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_partition_in_place</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62543">#62543</a>)</span></div></span><div·class='docblock'>Reorders·the·elements·of·this·iterator·<em>in-place</em>·according·to·the·given·predicate,99 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="../../core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_partition_in_place</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62543">#62543</a>)</span></div></span><div·class='docblock'>Reorders·the·elements·of·this·iterator·<em>in-place</em>·according·to·the·given·predicate,
100 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.100 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.
101 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.partition_in_place">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_partitioned"·class="method·trait-impl"><a·clas[·...·truncated·by·diffoscope;·len:·431,·SHA:·4aa7d028146c72d45794efc19a376d4bee3b75eda61ff46d969e440b3dbfa1b0·...·]/core/primitive.bool.html">bool</a><div·class="where">where101 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.partition_in_place">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_partitioned"·class="method·trait-impl"><a·class="src·rightside"·href="../[·...·truncated·by·diffoscope;·len:·323,·SHA:·bfc44418fa28079222aab80e2baccdaffb2d067bbe5d1b5162202d268ad628d7·...·]/core/primitive.bool.html">bool</a><div·class="where">where
102 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,102 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
103 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·fcd03e71f79faad6d9b9a12045d59f4dfabc78e5aefebcabc9c1a5be45e31125·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,103 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·54,·SHA:·d5ac304cc26edf57442227b641dd21c427d0f9cb322b79986f5b15fc49f867b0·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,
104 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><span·class="righ[·...·truncated·by·diffoscope;·len:·319,·SHA:·9b9df13f2f4e5b4dde3908515766e1a474fa30bcb7edc98c15665a016e677c2a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where104 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><span·class="rightside"><span·class="since"·[·...·truncated·by·diffoscope;·len:·238,·SHA:·af6ab768457e0afa1532b80c4296ae18061dac4c765922889b13eead3e5492db·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where
105 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,105 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
106 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,106 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
107 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns107 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns
108 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rights[·...·truncated·by·diffoscope;·len:·321,·SHA:·619fd774190944998148325de99aaa75de66ce4b7e26579fd342c564923a5652·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where108 successfully,·producing·a·single,·final·value.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"·ti[·...·truncated·by·diffoscope;·len:·240,·SHA:·125e84deea747ccbe139725d028362287beed6a89ab9da3a3aabd7df537abc59·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where
109 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,109 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
110 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,110 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
111 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the111 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="../../core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the
112 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·307,·SHA:·5975144fd8566efa93ad1ccec09297e280924b7372e08681d2103702124e2c52·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where112 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title=[·...·truncated·by·diffoscope;·len:·226,·SHA:·a7510e9271e68887d9e2681c6bc28312cec9ac38883128845f52742935a160a9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where
113 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,113 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
114 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,114 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,
115 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span[·...·truncated·by·diffoscope;·len:·619,·SHA:·8813f54846438870310d5f5dfabd2335a9dbf51e9da2e4cd681bcb6077d39628·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where115 returning·the·final·result.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stabl[·...·truncated·by·diffoscope;·len:·484,·SHA:·5f42e8d5ff08f4c76870e6cb9165e054f9a0d99051d9886ccd43d5c8a91e1fbc·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
116 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,116 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
117 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·084691f7fc4e7f4da7db385127d0ce8d2d52f6740757129a65910c4db0dc180d·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing117 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·244,·SHA:·f09ac7e818239538c3f3208cb5c76076c24a0153797eb762821d5bf2a382d83b·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing
118 operation.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·217,·SHA:·447ae00256be3de069c602a6c04889808c883eae6fa349d023f53bdd5570ecae·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(118 operation.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/iter[·...·truncated·by·diffoscope;·len:·136,·SHA:·97e3ee132585582ec7077e3bbd86406d8a2dcfc97dce7fd52b49af3ec1b58622·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(
119 ····&amp;mut·self,119 ····&amp;mut·self,
120 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R, 
121 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.T[·...·truncated·by·diffoscope;·len:·950,·SHA:·817376e71f7a0d170bfbd4b7264c15d324f49c65106c49349d11a077842aa533·...·]120 ····f:·impl·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core:[·...·truncated·by·diffoscope;·len:·238,·SHA:·a52edc1a1ce1db5dd6e620dbfe5acb58fdc6d84f2320cef02845988aa54e5c55·...·]
 121 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;&gt;&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
122 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,122 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
123 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,123 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
124 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·764ea8f08626b05426a76738d54ebb2d640042494d76cba8c20d868bfdc07a73·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the124 ····&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>:·<a[·...·truncated·by·diffoscope;·len:·277,·SHA:·0dd064909226a9691486376740de1e17aa133a7ae2f635bee3feaa9b19d7b580·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the
125 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><span·class="rightside"><s[·...·truncated·by·diffoscope;·len:·476,·SHA:·aef721c14147dea2fbec70dcfa76916b3f1273bed8304f4c9db310ca23d1e4b1·...·]/core/primitive.bool.html">bool</a><div·class="where">where125 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="St[·...·truncated·by·diffoscope;·len:·368,·SHA:·6dbfbc90b7cfda9017074212ce0beeb560c8f9ba918ba7b00292e34daa531cc2·...·]/core/primitive.bool.html">bool</a><div·class="where">where
126 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,126 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
Max diff block lines reached; 152352/342122 bytes (44.53%) of diff not shown.
330 KB
./usr/share/doc/rust-doc/html/alloc/slice/struct.RChunksMut.html
    
Offset 1, 242 lines modifiedOffset 1, 242 lines modified
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="An·iterator·over·a·slice·in·(non-overlapping)·mutable·chunks·(`chunk_size`·elements·at·a·time),·starting·at·the·end·of·the·slice."><title>RChunksMut·in·alloc::slice·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»2025-01-07)»     (built»       from»   a»  source»    tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">RChunks<wbr>Mut</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#example"·title="Example">Example</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Debug-for-RChunksMut%3C'a,+T%3E"·title="Debug">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-RChunksMut%3C'a,+T%3E"·title="DoubleEndedIterator">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-RChunksMut%3C'_,+T%3E"·title="ExactSizeIterator">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-RChunksMut%3C'_,+T%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-RChunksMut%3C'a,+T%3E"·title="Iterator">Iterator</a></li><li><a·href="#impl-Send-for-RChunksMut%3C'_,+T%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-RChunksMut%3C'_,+T%3E"·title="Sync">Sync</a></li><li><a·href="#impl-TrustedLen-for-RChunksMut%3C'_,+T%3E"·title="TrustedLen">TrustedLen</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-UnwindSafe-for-RChunksMut%3C'a,+T%3E"·title="!UnwindSafe">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-RChunksMut%3C'a,+T%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-RChunksMut%3C'a,+T%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Unpin-for-RChunksMut%3C'a,+T%3E"·title="Unpin">Unpin</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>slice</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">alloc</a>::<wbr><a·href="index.html">slice</a></span><h1>Struct·<span·class="struct">RChunksMut</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/slice/iter.rs.html#2745">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·RChunksMut&lt;'a,·T&gt;<div·class="where">where1 <!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="An·iterator·over·a·slice·in·(non-overlapping)·mutable·chunks·(`chunk_size`·elements·at·a·time),·starting·at·the·end·of·the·slice."><title>RChunksMut·in·alloc::slice·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»2025-01-07)»     (built»       from»   a»  source»    tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">RChunks<wbr>Mut</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#example"·title="Example">Example</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Debug-for-RChunksMut%3C'a,+T%3E"·title="Debug">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-RChunksMut%3C'a,+T%3E"·title="DoubleEndedIterator">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-RChunksMut%3C'_,+T%3E"·title="ExactSizeIterator">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-RChunksMut%3C'_,+T%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-RChunksMut%3C'a,+T%3E"·title="Iterator">Iterator</a></li><li><a·href="#impl-Send-for-RChunksMut%3C'_,+T%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-RChunksMut%3C'_,+T%3E"·title="Sync">Sync</a></li><li><a·href="#impl-TrustedLen-for-RChunksMut%3C'_,+T%3E"·title="TrustedLen">TrustedLen</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-UnwindSafe-for-RChunksMut%3C'a,+T%3E"·title="!UnwindSafe">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-RChunksMut%3C'a,+T%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-RChunksMut%3C'a,+T%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Unpin-for-RChunksMut%3C'a,+T%3E"·title="Unpin">Unpin</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>slice</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">alloc</a>::<wbr><a·href="index.html">slice</a></span><h1>Struct·<span·class="struct">RChunksMut</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../src/core/slice/iter.rs.html#2745">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·RChunksMut&lt;'a,·T&gt;<div·class="where">where
2 ····T:·'a,</div>{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>An·iterator·over·a·slice·in·(non-overlapping)·mutable·chunks·(<code>chunk_size</code>2 ····T:·'a,</div>{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>An·iterator·over·a·slice·in·(non-overlapping)·mutable·chunks·(<code>chunk_size</code>
3 elements·at·a·time),·starting·at·the·end·of·the·slice.</p>3 elements·at·a·time),·starting·at·the·end·of·the·slice.</p>
4 <p>When·the·slice·len·is·not·evenly·divided·by·the·chunk·size,·the·last·slice4 <p>When·the·slice·len·is·not·evenly·divided·by·the·chunk·size,·the·last·slice
5 of·the·iteration·will·be·the·remainder.</p>5 of·the·iteration·will·be·the·remainder.</p>
6 <p>This·struct·is·created·by·the·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html#method.rchunks_mut"·title="method·slice::rchunks_mut"><code>rchunks_mut</code></a>·method·on·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html"·title="primitive·slice">slices</a>.</p>6 <p>This·struct·is·created·by·the·<a·href="../../core/primitive.slice.html#method.rchunks_mut"·title="method·slice::rchunks_mut"><code>rchunks_mut</code></a>·method·on·<a·href="../../core/primitive.slice.html"·title="primitive·slice">slices</a>.</p>
7 <h2·id="example"><a·class="doc-anchor"·href="#example">§</a>Example</h2>7 <h2·id="example"><a·class="doc-anchor"·href="#example">§</a>Example</h2>
8 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span><span·class="kw-2">mut·</span>slice·=·[<span·class="string">'l'</span>,·<span·class="string">'o'</span>,·<span·class="string">'r'</span>,·<span·class="string">'e'</span>,·<span·class="string">'m'</span>];8 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span><span·class="kw-2">mut·</span>slice·=·[<span·class="string">'l'</span>,·<span·class="string">'o'</span>,·<span·class="string">'r'</span>,·<span·class="string">'e'</span>,·<span·class="string">'m'</span>];
9 <span·class="kw">let·</span>iter·=·slice.rchunks_mut(<span·class="number">2</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++let+mut+slice+=+%5B'l',+'o',+'r',+'e',+'m'%5D;%0A++++let+iter+=+slice.rchunks_mut(2);%0A%7D&amp;edition=2021"></a></div>9 <span·class="kw">let·</span>iter·=·slice.rchunks_mut(<span·class="number">2</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++let+mut+slice+=+%5B'l',+'o',+'r',+'e',+'m'%5D;%0A++++let+iter+=+slice.rchunks_mut(2);%0A%7D&amp;edition=2021"></a></div>
10 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-RChunksMut%3C'a,+T%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.31.0">1.31.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/slice/iter.rs.html#2742">Source</a></span><a·href="#impl-Debug-for-RChunksMut%3C'a,+T%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·T&gt;·<a·class="trait"·href="../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.RChunksMut.html"·title="struct·alloc::slice::RChunksMut">RChunksMut</a>&lt;'a,·T&gt;<div·class="where">where10 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-RChunksMut%3C'a,+T%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.31.0">1.31.0</span>···<a·class="src"·href="../../src/core/slice/iter.rs.html#2742">Source</a></span><a·href="#impl-Debug-for-RChunksMut%3C'a,+T%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·T&gt;·<a·class="trait"·href="../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.RChunksMut.html"·title="struct·alloc::slice::RChunksMut">RChunksMut</a>&lt;'a,·T&gt;<div·class="where">where
11 ····T:·<a·class="trait"·href="../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·+·'a,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/slice/iter.rs.html#2742">Source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·hre[·...·truncated·by·diffoscope;·len:·2747,·SHA:·7bfbfc0579f91208298481e3c35e6b739d397e6d9b625886c17aff8af2f323e9·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.nth_back"·class="fn">nth_back</a>(11 ····T:·<a·class="trait"·href="../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·+·'a,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/slice/iter.rs.html#2742">Source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="../fmt/struct.Formatter.[·...·truncated·by·diffoscope;·len:·2423,·SHA:·9518286ae1631ede98184b578f992623b12cac169a3288e3ab432a3729a643ca·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.nth_back"·class="fn">nth_back</a>(
12 ····&amp;mut·self,12 ····&amp;mut·self,
13 ····n:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.usize.html">usize</a>,13 ····n:·<a·class="primitive"·href="../../core/primitive.usize.html">usize</a>,
14 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;&lt;<a·class="struct"·href="struct.RChunksMut.html"·title="struct·alloc::slice::RChunksMut">RChunksMut</a>&lt;'a,·T&gt;·as·<a·class="trait"·href=[·...·truncated·by·diffoscope;·len:·2662,·SHA:·f958598d024abae5e3a6abd92709f60d75748588a3961b9e1fb621530fcbc820·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold"·class="fn">try_rfold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where14 )·-&gt;·<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;&lt;<a·class="struct"·href="struct.RChunksMut.html"·title="struct·alloc::slice::RChunksMut">RChunksMut</a>&lt;'a,·T&gt;·as·<a·class="trait"·href="../../core/iter/traits/ite[·...·truncated·by·diffoscope;·len:·2284,·SHA:·77f847f551aa0a7a9ae9dcc555f7121c1b15c6d0d1dc779f250d7a8babbb17d0·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold"·class="fn">try_rfold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where
15 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,15 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
16 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,16 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
17 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>This·is·the·reverse·version·of·<a·href="https://doc.rust-lang.org/1.8[·...·truncated·by·diffoscope;·len:·3,·SHA:·fbd04e1aae9ce0b11a8946e2c9ac2619f7428a64d32d01eff61d809dcb70ee8e·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·title="method·core::iter::traits::iterator::Iterator::try_fold"><code>Iterator::try_fold()</code></a>:·it·takes17 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>This·is·the·reverse·version·of·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·title="method·core::iter::traits::iterator::Iterator::try_fold"><code>Iterator::try_fold()</code></a>:·it·takes
18 elements·starting·from·the·back·of·the·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfold"·class="method·trait-impl"><span·clas[·...·truncated·by·diffoscope;·len:·325,·SHA:·7ffdb06a8ab3810207a1c974783822231eaf1d82fd94bcf810dd7b3181149b7b·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold"·class="fn">rfold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where18 elements·starting·from·the·back·of·the·iterator.·<a·href="../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfold"·class="method·trait-impl"><span·class="rightside"><span·class="[·...·truncated·by·diffoscope;·len:·244,·SHA:·6c4fe3f75fed1f00ec73ae6acd6efe929fb891f07f47293eec1013d32fc0fbe1·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold"·class="fn">rfold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where
19 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,19 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
20 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·reduces·the·iterator’s·elements·to·a·single,20 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·reduces·the·iterator’s·elements·to·a·single,
21 final·value,·starting·from·the·back.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfind"·class="method·trait-impl"><span·class="r[·...·truncated·by·diffoscope;·len:·665,·SHA:·fde89feb7c0e70eefa34d688476ca36a70115bec8150dbf9b1a3c359f72dd28d·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where21 final·value,·starting·from·the·back.·<a·href="../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfind"·class="method·trait-impl"><span·class="rightside"><span·class="sinc[·...·truncated·by·diffoscope;·len:·530,·SHA:·75a595bf6f9813abee32ae86d68f5de961884ee60e7080e18fb9c73b8e22c5f0·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
22 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,22 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
23 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·10125,·SHA:·7a512b1664cf47d57e56e79121ac1feff49631542eb5e93a009153a125e23444·...·]/core/primitive.usize.html">usize</a>&gt;(23 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·8802,·SHA:·5a5d6de21ba36150bfb86973eeb8e658d5f9318865b23d18756861190bb8b1d2·...·]/core/primitive.usize.html">usize</a>&gt;(
24 ····&amp;mut·self,24 ····&amp;mut·self,
25 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·4f557a9b49151e0be8c52ffd68f1def4469c08164239dc8bef8df2040551c5ef·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where25 )·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">It[·...·truncated·by·diffoscope;·len:·246,·SHA:·baf6c8e6f3d5dbac69324111240b1587dbb858d42149cae1ee895a165289ff4f·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where
26 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·2597,·SHA:·e43e149acfa6ad1816c364b2828c60b6adfdffe814c9ef8b9f9b56e35c4e44a7·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where26 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_next_ch[·...·truncated·by·diffoscope;·len:·2219,·SHA:·92e912ee585db2c097b6d1cf2aef0139e2a927527f301ab7da0bc73758cc2d6b·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where
27 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by27 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by
28 the·given·amount·at·each·iteration.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><sp[·...·truncated·by·diffoscope;·len:·842,·SHA:·945c4509a8daf2f8fbccc5c6e5089e225955911e03a3e411f047f96d52d16862·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where28 the·given·amount·at·each·iteration.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Sta[·...·truncated·by·diffoscope;·len:·680,·SHA:·77241b5118fcbc984cb791fa9f75077307e18056b66492741335faf440cbdabc·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
29 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,29 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
30 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·3b5ce32f9d564c3aa7cf2adc7130e674758d0c0f4f1275b4c3b46a74aa802cb3·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where30 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·1113,·SHA:·ccf22d19f49a25daffdcc6d9226d5107457a8bfd16beccfeff5020d151bdb8bb·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
31 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,31 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
32 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·[·...·truncated·by·diffoscope;·len:·868,·SHA:·abdbf27ccc84063c7040d8fa3da9d0bda5ee310a470ef576e15554aee4bd5d21·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where32 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·of·pairs.·<a·href="../../co[·...·truncated·by·diffoscope;·len:·706,·SHA:·f32c568f049122021445a983654582d97ac74064a3e99c3361b348bd7708c1b2·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where
33 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,33 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
34 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent34 ····Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent
35 items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="sr[·...·truncated·by·diffoscope;·len:·427,·SHA:·6e82ad4aad49c2165d869fe30d20a968580a973cdb3a7f4c77f49e16dd59393e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where35 items·of·the·original·iterator.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="src·rightside"·href="../../sr[·...·truncated·by·diffoscope;·len:·319,·SHA:·8babc469a22056fc5a02684b52f9f93ba9c27a3dd2e8443ddc060797054e211e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where
36 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,36 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
37 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>37 ····G:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>
38 between·adjacent·items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightsi[·...·truncated·by·diffoscope;·len:·471,·SHA:·ed10488b7b2ccc3e4cc84a9a57a9695a74c1c964962e8d753cbace12f3318a66·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where38 between·adjacent·items·of·the·original·iterator.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·tit[·...·truncated·by·diffoscope;·len:·363,·SHA:·09aee21fa4172b743a714e2cb5915129575ce0224df49c7343dec38f43b7ecfd·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where
39 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,39 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
40 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each40 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each
41 element.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><spa[·...·truncated·by·diffoscope;·len:·306,·SHA:·61c87c39b177830189b0e4c036d97c40d8b9649d76432c90afb88de59498e8b2·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where41 element.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stab[·...·truncated·by·diffoscope;·len:·225,·SHA:·a0f2490a1a5fd6b44e0ab01199cbbbd6e5463251405d11eaf6798c9b50bbd683·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where
42 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,42 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
43 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·a65da32c5f5ef8335cb607d3b4ab3f8a25877bc2c2e8b44ca9d575caecd5c8a5·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where43 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·754,·SHA:·421e55a5747cab3df1dad40b747b4633f241bdc13a1546bb19b1370788dea27d·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where
44 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,44 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
45 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·6d69c85c69fa789be551ea42d95c33c237d12a04ef157f9ddaaead1177f7771e·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element45 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·59,·SHA:·76969e34965f1923de668a65a9f5c33f73266468c9b96650bcc5fd498e606a6b·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element
46 should·be·yielded.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·489,·SHA:·9bdc636899f4e4e5a26a3a21c9603f72b3fb972865d2f459c38b7e2ac8fed7f1·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where46 should·be·yielded.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·cf812944678f6755720896cf32b330946303afe59f1b1c11adeb6a7f33454c8d·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where
47 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,47 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
48 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·46dbf841c7aecd3f06bd4c944af21650faeac98c46c515dcfe643302618b1ecd·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where48 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·863,·SHA:·c2bab87fa2a70713bd2d34b3dcae8f4ff2341917103b43a1dd505317f15d6cff·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where
49 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as49 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as
50 the·next·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside[·...·truncated·by·diffoscope;·len:·468,·SHA:·52f7ff7f264284c3acc4429ca34d057ded9afa2e3d9d6e07571e252db9a48977·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where50 the·next·value.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title[·...·truncated·by·diffoscope;·len:·360,·SHA:·688416dc1aaaa0be069177270ba9e74b3d1b92521285a109dc7ba86b58c1f22a·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where
51 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·c0180fefce4346b0b4089e5c642521d7716108241c0ce6ec3e910c7a2c7364b4·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods51 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="../../core/iter/adapters/peekable/struct.Peekable.html#method.peek"·title="m[·...·truncated·by·diffoscope;·len:·94,·SHA:·78aeab33f83c647dfe680c1050358c95977e3af17eabde4a04880721ea1a619d·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods
52 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See52 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See
53 their·documentation·for·more·information.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightsid[·...·truncated·by·diffoscope;·len:·498,·SHA:·e4a68861585faec6a5032b3b69d6dfb0f2799b5f387a527d9a1365571ed02069·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where53 their·documentation·for·more·information.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightside"><span·class="since"·titl[·...·truncated·by·diffoscope;·len:·390,·SHA:·5da622ae0e4d00b47239007520070e22568156d6c5b1662db8b80b465934b18c·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where
54 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,54 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
55 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·93281c1f6402743fd61110c11cf676f0f67eddceda801b4eb35e5fe9f85870fd·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where55 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·1018,·SHA:·732548acff5239e9a7b904f32790c90ab3b63522635334128f35e01d37ceaeb6·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where
56 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,56 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
57 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·f1cdbb1ec64f98fabbe1d89c88b03824310926cd7eaa160953ce2452fc3abb77·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where57 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·869,·SHA:·8ec7e525848424d5104dbdd10928d17cfee4e5aee63cdda7ecdbe323b30b59d3·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where
58 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,58 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
59 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·f94a0b2c1396b13b89aca7830197ebf19e2c0e5ba536a9cc25b325a481799510·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where59 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·947,·SHA:·fdd074315a0bfb226f815b1b6ea114c7367886338ffffff233d7f6fc3108769a·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where
60 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="https://doc.rust-lang[·...·truncated·by·diffoscope;·len:·783,·SHA:·c14217b89e3292a50a09192a8857485891fc769f861e1d1fc4322d04295c86ef·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where60 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="../../core/iter/traits/iterator/trait.Iterator.h[·...·truncated·by·diffoscope;·len:·621,·SHA:·484df7f946e7f2f69c3acad8964421c0db8ac5bb40032d11bbd862e20e67704c·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where
61 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer61 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer
62 if·the·underlying·iterator·ends·sooner.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·c[·...·truncated·by·diffoscope;·len:·488,·SHA:·76f753d5a273a09a73127631acaa0ee947326a929f33be291018188793e1af56·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where62 if·the·underlying·iterator·ends·sooner.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·[·...·truncated·by·diffoscope;·len:·380,·SHA:·fa258c7e0b5d583304a69e2d4e19f3d4cc9a9ed830bdf3796eaa0968bdf590b4·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where
63 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,63 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
64 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·07d303586c8ad4e0082d5b44bff8eeda03cdb8f4bdbe46489f9232bca5a43ec6·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but64 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterat[·...·truncated·by·diffoscope;·len:·314,·SHA:·299331ff47adaff3ebc292c53557ad34da957aef932f87ec0444c7f856820410·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but
65 unlike·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·2b20882d9583cee50e0c8b3cf362b27ce0d524db387d4aa4093d622b9370dada·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where65 unlike·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.scan">Read·more[·...·truncated·by·diffoscope;·len:·555,·SHA:·77279e392f259f6d4859f5a7747ee4b4d5315f3af0ac3baebf1d53be3461b312·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where
66 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,66 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
67 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,67 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
68 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·933,·SHA:·4af94b75ba5c1e03d2d70590d2fd0706f13b3080fbff0f5b98e7b109048c403d·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where68 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·771,·SHA:·a1a50c8ca4c13151c7b22ce05c74c449231e1ffe44225beee67ff212fc1d3859·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where
69 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,69 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
70 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.I[·...·truncated·by·diffoscope;·len:·968,·SHA:·e5572ed2f3bdf5970d038da608f2f592d945541207c483c257fe5789efba168a·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where70 ····Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::col[·...·truncated·by·diffoscope;·len:·779,·SHA:·a4e524bd8aa8a1e0a66409d1b462b88093ab51a1f901ff1a788d7ee63d597f4c·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where
71 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,71 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
72 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·3013c0e49b0dade37f8ca096eccc5ceeb03fc79b9d320a4c92486d23b88d1009·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over72 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·54,·SHA:·6acee514e4d8df8979b4bba687b7e0d5dbb0ea4f98a7019e2fb03f3a8058df0f·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over
73 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,73 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="../../core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,
74 the·windows·during·mapping·overlap·as·well.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside">[·...·truncated·by·diffoscope;·len:·454,·SHA:·040991f3914479bcc92615de2b81df7363656323622e5aadc964e1a61917d23e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where74 the·windows·during·mapping·overlap·as·well.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="[·...·truncated·by·diffoscope;·len:·346,·SHA:·b1244a5f92e0573c29e04e883cf8212ba2586013b3687af07b63c29d2e611530·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where
75 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="https://doc.rust-lang.org/1.84.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·0e0294a45242d5ce9a3ab8f95d6d410756415291d92baa7d12283ef1b3ecc3a0·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where75 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="../../core/option/enum.Option.html#variant.None"·title="variant·cor[·...·truncated·by·diffoscope;·len:·679,·SHA:·ec753d6ecf7b9fe81cb270d78e45e053f2702fff74c7a63c2ab8da22b97fea86·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where
76 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,76 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
77 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·a8b562f71802a421f4745f7d1fadf4f70d98030c829e70f27b692e7915267027·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where77 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·635,·SHA:·ee3a5bcc3544c3f17985966634fef69b1708d641ddb7e62aaac76933935c5ef7·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where
78 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="https://doc.rust-lang.org/1.84.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·b3db7d84f203bbc139b1c52912705d19c664dac762898205fce452c9dc3a5318·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where78 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.by_ref">[·...·truncated·by·diffoscope;·len:·415,·SHA:·7e0e075470d2db380bcf0838446659654c982aa2ca7831ed7d0317877855be2a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where
79 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,79 ····B:·<a·class="trait"·href="../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
80 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·431,·SHA:·a705a23f6d810357e7dcac670743884665ffcccfb9b780d0aa03720be8ca5625·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(80 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.collect">Read[·...·truncated·by·diffoscope;·len:·323,·SHA:·80e0dde3814a6e7cf4e30949627abc841ab4e98e2a920efb248777e22708682d·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(
81 ····&amp;mut·self,81 ····&amp;mut·self,
82 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.h[·...·truncated·by·diffoscope;·len:·479,·SHA:·fa749442d890055f86ceb34f411c84fd7ea08302b336d786d1ca36fe5868b020·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where82 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&g[·...·truncated·by·diffoscope;·len:·344,·SHA:·c06c6401df0a7150633e94cc973521da42e09819b07be80ba18d6acb696860a9·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
83 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,83 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
84 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>,84 ····Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>,
85 ····&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.h[·...·truncated·by·diffoscope;·len:·300,·SHA:·3bff089180bac38df7f42b87556fae7641185b89a949c284f53e3ac718a6decb·...·]/core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;B&gt;,85 ····&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&g[·...·truncated·by·diffoscope;·len:·192,·SHA:·039ceb6ce31fc6b1871e3e366efbd0f164f4a6cc1bc25554bba598b0ee820cca·...·]/core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;B&gt;,
86 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/itera[·...·truncated·by·diffoscope;·len:·323,·SHA:·b5c51f161dc9d77fd81d1fd23cc71fbf42ac00f3168cf9e41ebaaa2b6eb25363·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if86 ····B:·<a·class="trait"·href="../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="ty[·...·truncated·by·diffoscope;·len:·215,·SHA:·ddb8fbd12147eecef1697edd4c63187cc514ab4b851290335adfcccc3fa429ba·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if
87 a·failure·is·encountered.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·ri[·...·truncated·by·diffoscope;·len:·521,·SHA:·6a54376815dab985ec8cc35604d035e98e3003b1563c9b41e70966084505542b·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where87 a·failure·is·encountered.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/co[·...·truncated·by·diffoscope;·len:·386,·SHA:·d46a776c329de4f757930edda252586c2cdd85c6956b7b2f68448da33ee0625e·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
88 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,88 ····E:·<a·class="trait"·href="../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
89 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·975,·SHA:·94f7f970236ba59ba5f1415764a0e3ab2f3093c6b79e76c25c797ac24a3c4d09·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where89 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_collect[·...·truncated·by·diffoscope;·len:·840,·SHA:·1ee6fbe4deb3d959e9ade58fb7ed3efa79d09721ed02fbb5f5f82aae6aa1425d·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
90 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,90 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
91 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·b480ec650ba000fe7cb67df58fc0351299638ee3e8f00db18f74ca24d69f9894·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,91 ····B:·<a·class="trait"·href="../../core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtyp[·...·truncated·by·diffoscope;·len:·14,·SHA:·4105980ca4887a52797067761af25a11e3de6069cd8d7c8ce82cd885bb798fe8·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
92 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·fdf5a1845f070855ba2cfd0c8c85460ea5cb646c4d3b42a8431bf21489c73701·...·]/core/primitive.usize.html">usize</a><div·class="where">where92 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·806,·SHA:·4d554b733db12e71a31ec2477a31408041941b0e2b0dc910904ecf2fced9f65b·...·]/core/primitive.usize.html">usize</a><div·class="where">where
93 ····T:·'a,93 ····T:·'a,
94 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·1fc250e258e9e42e4fa3e22f86ecd57057e9ff23e47af1aec778076a7a891134·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,94 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIter[·...·truncated·by·diffoscope;·len:·51,·SHA:·c9be73bbed9d11ecac2a179f480a640f51d6255f26712667ffdabc72c1fc7fb0·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,
95 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·5846407374f20f525a4a0663ad4488141eafe64513ef82581dc5df5c2d200745·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_partition_in_place</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62543">#62543</a>)</span></div></span><div·class='docblock'>Reorders·the·elements·of·this·iterator·<em>in-place</em>·according·to·the·given·predicate,95 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="../../core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_partition_in_place</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62543">#62543</a>)</span></div></span><div·class='docblock'>Reorders·the·elements·of·this·iterator·<em>in-place</em>·according·to·the·given·predicate,
96 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.96 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.
97 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.partition_in_place">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_partitioned"·class="method·trait-impl"><a·clas[·...·truncated·by·diffoscope;·len:·431,·SHA:·4aa7d028146c72d45794efc19a376d4bee3b75eda61ff46d969e440b3dbfa1b0·...·]/core/primitive.bool.html">bool</a><div·class="where">where97 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.partition_in_place">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_partitioned"·class="method·trait-impl"><a·class="src·rightside"·href="../[·...·truncated·by·diffoscope;·len:·323,·SHA:·bfc44418fa28079222aab80e2baccdaffb2d067bbe5d1b5162202d268ad628d7·...·]/core/primitive.bool.html">bool</a><div·class="where">where
98 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,98 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
99 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·fcd03e71f79faad6d9b9a12045d59f4dfabc78e5aefebcabc9c1a5be45e31125·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,99 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·54,·SHA:·d5ac304cc26edf57442227b641dd21c427d0f9cb322b79986f5b15fc49f867b0·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,
100 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><span·class="righ[·...·truncated·by·diffoscope;·len:·319,·SHA:·9b9df13f2f4e5b4dde3908515766e1a474fa30bcb7edc98c15665a016e677c2a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where100 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><span·class="rightside"><span·class="since"·[·...·truncated·by·diffoscope;·len:·238,·SHA:·af6ab768457e0afa1532b80c4296ae18061dac4c765922889b13eead3e5492db·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where
101 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,101 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
102 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,102 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
103 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns103 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns
104 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rights[·...·truncated·by·diffoscope;·len:·321,·SHA:·619fd774190944998148325de99aaa75de66ce4b7e26579fd342c564923a5652·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where104 successfully,·producing·a·single,·final·value.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"·ti[·...·truncated·by·diffoscope;·len:·240,·SHA:·125e84deea747ccbe139725d028362287beed6a89ab9da3a3aabd7df537abc59·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where
105 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,105 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
106 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,106 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
107 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the107 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="../../core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the
108 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·307,·SHA:·5975144fd8566efa93ad1ccec09297e280924b7372e08681d2103702124e2c52·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where108 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title=[·...·truncated·by·diffoscope;·len:·226,·SHA:·a7510e9271e68887d9e2681c6bc28312cec9ac38883128845f52742935a160a9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where
109 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,109 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
110 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,110 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,
111 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span[·...·truncated·by·diffoscope;·len:·619,·SHA:·8813f54846438870310d5f5dfabd2335a9dbf51e9da2e4cd681bcb6077d39628·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where111 returning·the·final·result.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stabl[·...·truncated·by·diffoscope;·len:·484,·SHA:·5f42e8d5ff08f4c76870e6cb9165e054f9a0d99051d9886ccd43d5c8a91e1fbc·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
112 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,112 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
113 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·084691f7fc4e7f4da7db385127d0ce8d2d52f6740757129a65910c4db0dc180d·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing113 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·244,·SHA:·f09ac7e818239538c3f3208cb5c76076c24a0153797eb762821d5bf2a382d83b·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing
114 operation.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·217,·SHA:·447ae00256be3de069c602a6c04889808c883eae6fa349d023f53bdd5570ecae·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(114 operation.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/iter[·...·truncated·by·diffoscope;·len:·136,·SHA:·97e3ee132585582ec7077e3bbd86406d8a2dcfc97dce7fd52b49af3ec1b58622·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(
115 ····&amp;mut·self,115 ····&amp;mut·self,
116 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R, 
117 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.T[·...·truncated·by·diffoscope;·len:·950,·SHA:·817376e71f7a0d170bfbd4b7264c15d324f49c65106c49349d11a077842aa533·...·]116 ····f:·impl·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core:[·...·truncated·by·diffoscope;·len:·238,·SHA:·a52edc1a1ce1db5dd6e620dbfe5acb58fdc6d84f2320cef02845988aa54e5c55·...·]
 117 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;&gt;&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
118 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,118 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
119 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,119 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
120 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·764ea8f08626b05426a76738d54ebb2d640042494d76cba8c20d868bfdc07a73·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the120 ····&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>:·<a[·...·truncated·by·diffoscope;·len:·277,·SHA:·0dd064909226a9691486376740de1e17aa133a7ae2f635bee3feaa9b19d7b580·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the
121 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><span·class="rightside"><s[·...·truncated·by·diffoscope;·len:·476,·SHA:·aef721c14147dea2fbec70dcfa76916b3f1273bed8304f4c9db310ca23d1e4b1·...·]/core/primitive.bool.html">bool</a><div·class="where">where121 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="St[·...·truncated·by·diffoscope;·len:·368,·SHA:·6dbfbc90b7cfda9017074212ce0beeb560c8f9ba918ba7b00292e34daa531cc2·...·]/core/primitive.bool.html">bool</a><div·class="where">where
122 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,122 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
123 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·7c48e62c73a40a5cb5ebbf4a22cd789b342a88ad3d855022191f2bae33c736c6·...·]/core/primitive.bool.html">bool</a><div·class="where">where123 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·829,·SHA:·c413d95d1072acd820201f12ffb54d04a6c7f3b732f7de46115ba40b4eb1bd3f·...·]/core/primitive.bool.html">bool</a><div·class="where">where
124 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,124 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
125 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·673d69ce0c23e24b2546127c463e67cd2a4c0f7be792712e2b42e75427161b75·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where125 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·956,·SHA:·105c7ff05d33bc9219febe8c9633cf1c1a8d88c32e47e44793d403a428174c66·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
126 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,126 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
Max diff block lines reached; 151952/338039 bytes (44.95%) of diff not shown.
345 KB
./usr/share/doc/rust-doc/html/alloc/slice/struct.RSplit.html
Max HTML report size reached
328 KB
./usr/share/doc/rust-doc/html/alloc/slice/struct.RSplitMut.html
    
Offset 1, 249 lines modifiedOffset 1, 249 lines modified
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="An·iterator·over·the·subslices·of·the·vector·which·are·separated·by·elements·that·match·`pred`,·starting·from·the·end·of·the·slice."><title>RSplitMut·in·alloc::slice·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312» 2025-01-07)»      (built»from»    a»   source»     tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">RSplit<wbr>Mut</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#example"·title="Example">Example</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Debug-for-RSplitMut%3C'_,+T,+P%3E"·title="Debug">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-RSplitMut%3C'a,+T,+P%3E"·title="DoubleEndedIterator">DoubleEndedIterator</a></li><li><a·href="#impl-FusedIterator-for-RSplitMut%3C'_,+T,+P%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-RSplitMut%3C'a,+T,+P%3E"·title="Iterator">Iterator</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-UnwindSafe-for-RSplitMut%3C'a,+T,+P%3E"·title="!UnwindSafe">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-RSplitMut%3C'a,+T,+P%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-RSplitMut%3C'a,+T,+P%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-RSplitMut%3C'a,+T,+P%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-RSplitMut%3C'a,+T,+P%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-RSplitMut%3C'a,+T,+P%3E"·title="Unpin">Unpin</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>slice</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">alloc</a>::<wbr><a·href="index.html">slice</a></span><h1>Struct·<span·class="struct">RSplitMut</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/slice/iter.rs.html#1028">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·RSplitMut&lt;'a,·T,·P&gt;<div·class="where">where1 <!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="An·iterator·over·the·subslices·of·the·vector·which·are·separated·by·elements·that·match·`pred`,·starting·from·the·end·of·the·slice."><title>RSplitMut·in·alloc::slice·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312» 2025-01-07)»      (built»from»    a»   source»     tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">RSplit<wbr>Mut</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#example"·title="Example">Example</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Debug-for-RSplitMut%3C'_,+T,+P%3E"·title="Debug">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-RSplitMut%3C'a,+T,+P%3E"·title="DoubleEndedIterator">DoubleEndedIterator</a></li><li><a·href="#impl-FusedIterator-for-RSplitMut%3C'_,+T,+P%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-RSplitMut%3C'a,+T,+P%3E"·title="Iterator">Iterator</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-UnwindSafe-for-RSplitMut%3C'a,+T,+P%3E"·title="!UnwindSafe">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-RSplitMut%3C'a,+T,+P%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-RSplitMut%3C'a,+T,+P%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-RSplitMut%3C'a,+T,+P%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-RSplitMut%3C'a,+T,+P%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-RSplitMut%3C'a,+T,+P%3E"·title="Unpin">Unpin</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>slice</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">alloc</a>::<wbr><a·href="index.html">slice</a></span><h1>Struct·<span·class="struct">RSplitMut</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../src/core/slice/iter.rs.html#1028">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·RSplitMut&lt;'a,·T,·P&gt;<div·class="where">where
2 ····T:·'a,2 ····T:·'a,
3 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·5846407374f20f525a4a0663ad4488141eafe64513ef82581dc5df5c2d200745·...·]/core/primitive.bool.html">bool</a>,</div>{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>An·iterator·over·the·subslices·of·the·vector·which·are·separated3 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="../../core/primitive.bool.html">bool</a>,</div>{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>An·iterator·over·the·subslices·of·the·vector·which·are·separated
4 by·elements·that·match·<code>pred</code>,·starting·from·the·end·of·the·slice.</p>4 by·elements·that·match·<code>pred</code>,·starting·from·the·end·of·the·slice.</p>
5 <p>This·struct·is·created·by·the·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html#method.rsplit_mut"·title="method·slice::rsplit_mut"><code>rsplit_mut</code></a>·method·on·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html"·title="primitive·slice">slices</a>.</p>5 <p>This·struct·is·created·by·the·<a·href="../../core/primitive.slice.html#method.rsplit_mut"·title="method·slice::rsplit_mut"><code>rsplit_mut</code></a>·method·on·<a·href="../../core/primitive.slice.html"·title="primitive·slice">slices</a>.</p>
6 <h2·id="example"><a·class="doc-anchor"·href="#example">§</a>Example</h2>6 <h2·id="example"><a·class="doc-anchor"·href="#example">§</a>Example</h2>
7 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span><span·class="kw-2">mut·</span>slice·=·[<span·class="number">11</span>,·<span·class="number">22</span>,·<span·class="number">33</span>,·<span·class="number">0</span>,·<span·class="number">44</span>,·<span·class="number">55</span>];7 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span><span·class="kw-2">mut·</span>slice·=·[<span·class="number">11</span>,·<span·class="number">22</span>,·<span·class="number">33</span>,·<span·class="number">0</span>,·<span·class="number">44</span>,·<span·class="number">55</span>];
8 <span·class="kw">let·</span>iter·=·slice.rsplit_mut(|num|·<span·class="kw-2">*</span>num·==·<span·class="number">0</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++let+mut+slice+=+%5B11,+22,+33,+0,+44,+55%5D;%0A++++let+iter+=+slice.rsplit_mut(%7Cnum%7C+*num+==+0);%0A%7D&amp;edition=2021"></a></div>8 <span·class="kw">let·</span>iter·=·slice.rsplit_mut(|num|·<span·class="kw-2">*</span>num·==·<span·class="number">0</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++let+mut+slice+=+%5B11,+22,+33,+0,+44,+55%5D;%0A++++let+iter+=+slice.rsplit_mut(%7Cnum%7C+*num+==+0);%0A%7D&amp;edition=2021"></a></div>
9 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-RSplitMut%3C'_,+T,+P%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.27.0">1.27.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/slice/iter.rs.html#1043-1045">Source</a></span><a·href="#impl-Debug-for-RSplitMut%3C'_,+T,+P%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·P&gt;·<a·class="trait"·href="../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.RSplitMut.html"·title="struct·alloc::slice::RSplitMut">RSplitMut</a>&lt;'_,·T,·P&gt;<div·class="where">where9 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-RSplitMut%3C'_,+T,+P%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.27.0">1.27.0</span>···<a·class="src"·href="../../src/core/slice/iter.rs.html#1043-1045">Source</a></span><a·href="#impl-Debug-for-RSplitMut%3C'_,+T,+P%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·P&gt;·<a·class="trait"·href="../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.RSplitMut.html"·title="struct·alloc::slice::RSplitMut">RSplitMut</a>&lt;'_,·T,·P&gt;<div·class="where">where
10 ····T:·<a·class="trait"·href="../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,10 ····T:·<a·class="trait"·href="../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,
11 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·1654,·SHA:·119b66a7217ee09e2512d21da1e6453d92bc0a8572922f053d00452591846f1e·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIterator</a>·for·<a·class="struct"·href="struct.RSplitMut.html"·title="struct·alloc::slice::RSplitMut">RSplitMut</a>&lt;'a,·T,·P&gt;<div·class="where">where11 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="../../core/primitive.bool.html">bool</a>,</div></h3></[·...·truncated·by·diffoscope;·len:·1438,·SHA:·8d3301b7861361090c5fd667e55ffc661453b85be7b757e787cfd7d0714a35f8·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIterator</a>·for·<a·class="struct"·href="struct.RSplitMut.html"·title="struct·alloc::slice::RSplitMut">RSplitMut</a>&lt;'a,·T,·P&gt;<div·class="where">where
12 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·4403,·SHA:·8ae808ab662775c323a2a7c1fb2db6d28c21c7743eb3b96e26ef204bcb28e0e7·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold"·class="fn">try_rfold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where12 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="../../core/primitive.bool.html">bool</a>,</div></h3></[·...·truncated·by·diffoscope;·len:·3755,·SHA:·87813bdf18f5ad7c8251e60a9d8f4d71d525b606aaa9e3a59808a7f5faaf022e·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold"·class="fn">try_rfold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where
13 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,13 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
14 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,14 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
15 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>This·is·the·reverse·version·of·<a·href="https://doc.rust-lang.org/1.8[·...·truncated·by·diffoscope;·len:·3,·SHA:·fbd04e1aae9ce0b11a8946e2c9ac2619f7428a64d32d01eff61d809dcb70ee8e·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·title="method·core::iter::traits::iterator::Iterator::try_fold"><code>Iterator::try_fold()</code></a>:·it·takes15 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>This·is·the·reverse·version·of·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·title="method·core::iter::traits::iterator::Iterator::try_fold"><code>Iterator::try_fold()</code></a>:·it·takes
16 elements·starting·from·the·back·of·the·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfold"·class="method·trait-impl"><span·clas[·...·truncated·by·diffoscope;·len:·325,·SHA:·7ffdb06a8ab3810207a1c974783822231eaf1d82fd94bcf810dd7b3181149b7b·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold"·class="fn">rfold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where16 elements·starting·from·the·back·of·the·iterator.·<a·href="../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfold"·class="method·trait-impl"><span·class="rightside"><span·class="[·...·truncated·by·diffoscope;·len:·244,·SHA:·6c4fe3f75fed1f00ec73ae6acd6efe929fb891f07f47293eec1013d32fc0fbe1·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold"·class="fn">rfold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where
17 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,17 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
18 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·reduces·the·iterator’s·elements·to·a·single,18 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·reduces·the·iterator’s·elements·to·a·single,
19 final·value,·starting·from·the·back.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfind"·class="method·trait-impl"><span·class="r[·...·truncated·by·diffoscope;·len:·665,·SHA:·fde89feb7c0e70eefa34d688476ca36a70115bec8150dbf9b1a3c359f72dd28d·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where19 final·value,·starting·from·the·back.·<a·href="../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfind"·class="method·trait-impl"><span·class="rightside"><span·class="sinc[·...·truncated·by·diffoscope;·len:·530,·SHA:·75a595bf6f9813abee32ae86d68f5de961884ee60e7080e18fb9c73b8e22c5f0·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
20 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,20 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
21 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·983,·SHA:·8ab1954191b4e5998c2bf4e66067a76cf49a83e4f58bc8afc518ae4165c2507c·...·]/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::Iterator">Iterator</a>·for·<a·class="struct"·href="struct.RSplitMut.html"·title="struct·alloc::slice::RSplitMut">RSplitMut</a>&lt;'a,·T,·P&gt;<div·class="where">where21 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·821,·SHA:·b7c90be74aff260885f7d62ac0273e2f120d46002309fb4488cb47fc784f48cb·...·]/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::Iterator">Iterator</a>·for·<a·class="struct"·href="struct.RSplitMut.html"·title="struct·alloc::slice::RSplitMut">RSplitMut</a>&lt;'a,·T,·P&gt;<div·class="where">where
22 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·3198,·SHA:·dc837a54c7beb9a341b377dda583c0253e8767df8371a3e464a62caeacb226c8·...·]/core/primitive.usize.html">usize</a>&gt;(22 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="../../core/primitive.bool.html">bool</a>,</div></h3></[·...·truncated·by·diffoscope;·len:·2658,·SHA:·0cc434ba59bedf9844f882f5535495f99abf5710cb5e31280920c05444deba4c·...·]/core/primitive.usize.html">usize</a>&gt;(
23 ····&amp;mut·self,23 ····&amp;mut·self,
24 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·4f557a9b49151e0be8c52ffd68f1def4469c08164239dc8bef8df2040551c5ef·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where24 )·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">It[·...·truncated·by·diffoscope;·len:·246,·SHA:·baf6c8e6f3d5dbac69324111240b1587dbb858d42149cae1ee895a165289ff4f·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where
25 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·962,·SHA:·116e4ec2ae3d9655c3d115eaf50f435f5323b4e48b84de734c79d2a09b3c02f2·...·]/core/primitive.usize.html">usize</a><div·class="where">where25 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_next_ch[·...·truncated·by·diffoscope;·len:·827,·SHA:·2479cde9ab5aa3e18f76cf74cf7889a3de87c66e1745f27cf29bd34c4d30dbdf·...·]/core/primitive.usize.html">usize</a><div·class="where">where
26 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·counting·the·number·of·iterations·and·returning·it.·<a·href="https://doc.[·...·truncated·by·diffoscope;·len:·837,·SHA:·47e25b6f9687bcc1d1fcdf9842fb085e6aba767d70531028f948636b80563dfc·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where26 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·counting·the·number·of·iterations·and·returning·it.·<a·href="../../core/iter/traits/iterator/trait.I[·...·truncated·by·diffoscope;·len:·675,·SHA:·1ce62884794ba87e19a0c96720594ee19d36bf34d9a84160028eeff78b648fa9·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
27 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·returning·the·last·element.·<a·href="https://doc.rust-lang.org/1.84.0/cor[·...·truncated·by·diffoscope;·len:·3504,·SHA:·ec43d0f6d8d2a1e0fb7a684c382b9934abe1250844e53cce08bdfc6017ecb276·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where27 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·returning·the·last·element.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.last[·...·truncated·by·diffoscope;·len:·2964,·SHA:·db62f7c0fcc4ed24f8d8d5c90b4eb970e1ba2f576e1c200c74164f961b4de28e·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where
28 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by28 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by
29 the·given·amount·at·each·iteration.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><sp[·...·truncated·by·diffoscope;·len:·842,·SHA:·945c4509a8daf2f8fbccc5c6e5089e225955911e03a3e411f047f96d52d16862·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where29 the·given·amount·at·each·iteration.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Sta[·...·truncated·by·diffoscope;·len:·680,·SHA:·77241b5118fcbc984cb791fa9f75077307e18056b66492741335faf440cbdabc·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
30 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,30 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
31 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·3b5ce32f9d564c3aa7cf2adc7130e674758d0c0f4f1275b4c3b46a74aa802cb3·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where31 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·1113,·SHA:·ccf22d19f49a25daffdcc6d9226d5107457a8bfd16beccfeff5020d151bdb8bb·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
32 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,32 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
33 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·[·...·truncated·by·diffoscope;·len:·868,·SHA:·abdbf27ccc84063c7040d8fa3da9d0bda5ee310a470ef576e15554aee4bd5d21·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where33 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·of·pairs.·<a·href="../../co[·...·truncated·by·diffoscope;·len:·706,·SHA:·f32c568f049122021445a983654582d97ac74064a3e99c3361b348bd7708c1b2·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where
34 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,34 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
35 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent35 ····Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent
36 items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="sr[·...·truncated·by·diffoscope;·len:·427,·SHA:·6e82ad4aad49c2165d869fe30d20a968580a973cdb3a7f4c77f49e16dd59393e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where36 items·of·the·original·iterator.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="src·rightside"·href="../../sr[·...·truncated·by·diffoscope;·len:·319,·SHA:·8babc469a22056fc5a02684b52f9f93ba9c27a3dd2e8443ddc060797054e211e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where
37 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,37 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
38 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>38 ····G:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>
39 between·adjacent·items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightsi[·...·truncated·by·diffoscope;·len:·471,·SHA:·ed10488b7b2ccc3e4cc84a9a57a9695a74c1c964962e8d753cbace12f3318a66·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where39 between·adjacent·items·of·the·original·iterator.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·tit[·...·truncated·by·diffoscope;·len:·363,·SHA:·09aee21fa4172b743a714e2cb5915129575ce0224df49c7343dec38f43b7ecfd·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where
40 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,40 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
41 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each41 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each
42 element.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><spa[·...·truncated·by·diffoscope;·len:·306,·SHA:·61c87c39b177830189b0e4c036d97c40d8b9649d76432c90afb88de59498e8b2·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where42 element.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stab[·...·truncated·by·diffoscope;·len:·225,·SHA:·a0f2490a1a5fd6b44e0ab01199cbbbd6e5463251405d11eaf6798c9b50bbd683·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where
43 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,43 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
44 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·a65da32c5f5ef8335cb607d3b4ab3f8a25877bc2c2e8b44ca9d575caecd5c8a5·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where44 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·754,·SHA:·421e55a5747cab3df1dad40b747b4633f241bdc13a1546bb19b1370788dea27d·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where
45 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,45 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
46 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·6d69c85c69fa789be551ea42d95c33c237d12a04ef157f9ddaaead1177f7771e·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element46 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·59,·SHA:·76969e34965f1923de668a65a9f5c33f73266468c9b96650bcc5fd498e606a6b·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element
47 should·be·yielded.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·489,·SHA:·9bdc636899f4e4e5a26a3a21c9603f72b3fb972865d2f459c38b7e2ac8fed7f1·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where47 should·be·yielded.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·cf812944678f6755720896cf32b330946303afe59f1b1c11adeb6a7f33454c8d·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where
48 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,48 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
49 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·46dbf841c7aecd3f06bd4c944af21650faeac98c46c515dcfe643302618b1ecd·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where49 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·863,·SHA:·c2bab87fa2a70713bd2d34b3dcae8f4ff2341917103b43a1dd505317f15d6cff·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where
50 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as50 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as
51 the·next·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside[·...·truncated·by·diffoscope;·len:·468,·SHA:·52f7ff7f264284c3acc4429ca34d057ded9afa2e3d9d6e07571e252db9a48977·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where51 the·next·value.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title[·...·truncated·by·diffoscope;·len:·360,·SHA:·688416dc1aaaa0be069177270ba9e74b3d1b92521285a109dc7ba86b58c1f22a·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where
52 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·c0180fefce4346b0b4089e5c642521d7716108241c0ce6ec3e910c7a2c7364b4·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods52 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="../../core/iter/adapters/peekable/struct.Peekable.html#method.peek"·title="m[·...·truncated·by·diffoscope;·len:·94,·SHA:·78aeab33f83c647dfe680c1050358c95977e3af17eabde4a04880721ea1a619d·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods
53 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See53 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See
54 their·documentation·for·more·information.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightsid[·...·truncated·by·diffoscope;·len:·498,·SHA:·e4a68861585faec6a5032b3b69d6dfb0f2799b5f387a527d9a1365571ed02069·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where54 their·documentation·for·more·information.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightside"><span·class="since"·titl[·...·truncated·by·diffoscope;·len:·390,·SHA:·5da622ae0e4d00b47239007520070e22568156d6c5b1662db8b80b465934b18c·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where
55 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,55 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
56 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·93281c1f6402743fd61110c11cf676f0f67eddceda801b4eb35e5fe9f85870fd·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where56 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·1018,·SHA:·732548acff5239e9a7b904f32790c90ab3b63522635334128f35e01d37ceaeb6·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where
57 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,57 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
58 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·f1cdbb1ec64f98fabbe1d89c88b03824310926cd7eaa160953ce2452fc3abb77·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where58 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·869,·SHA:·8ec7e525848424d5104dbdd10928d17cfee4e5aee63cdda7ecdbe323b30b59d3·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where
59 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,59 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
60 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·f94a0b2c1396b13b89aca7830197ebf19e2c0e5ba536a9cc25b325a481799510·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where60 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·947,·SHA:·fdd074315a0bfb226f815b1b6ea114c7367886338ffffff233d7f6fc3108769a·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where
61 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="https://doc.rust-lang[·...·truncated·by·diffoscope;·len:·783,·SHA:·c14217b89e3292a50a09192a8857485891fc769f861e1d1fc4322d04295c86ef·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where61 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="../../core/iter/traits/iterator/trait.Iterator.h[·...·truncated·by·diffoscope;·len:·621,·SHA:·484df7f946e7f2f69c3acad8964421c0db8ac5bb40032d11bbd862e20e67704c·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where
62 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer62 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer
63 if·the·underlying·iterator·ends·sooner.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·c[·...·truncated·by·diffoscope;·len:·488,·SHA:·76f753d5a273a09a73127631acaa0ee947326a929f33be291018188793e1af56·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where63 if·the·underlying·iterator·ends·sooner.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·[·...·truncated·by·diffoscope;·len:·380,·SHA:·fa258c7e0b5d583304a69e2d4e19f3d4cc9a9ed830bdf3796eaa0968bdf590b4·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where
64 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,64 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
65 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·07d303586c8ad4e0082d5b44bff8eeda03cdb8f4bdbe46489f9232bca5a43ec6·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but65 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterat[·...·truncated·by·diffoscope;·len:·314,·SHA:·299331ff47adaff3ebc292c53557ad34da957aef932f87ec0444c7f856820410·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but
66 unlike·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·2b20882d9583cee50e0c8b3cf362b27ce0d524db387d4aa4093d622b9370dada·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where66 unlike·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.scan">Read·more[·...·truncated·by·diffoscope;·len:·555,·SHA:·77279e392f259f6d4859f5a7747ee4b4d5315f3af0ac3baebf1d53be3461b312·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where
67 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,67 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
68 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,68 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
69 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·933,·SHA:·4af94b75ba5c1e03d2d70590d2fd0706f13b3080fbff0f5b98e7b109048c403d·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where69 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·771,·SHA:·a1a50c8ca4c13151c7b22ce05c74c449231e1ffe44225beee67ff212fc1d3859·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where
70 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,70 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
71 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.I[·...·truncated·by·diffoscope;·len:·968,·SHA:·e5572ed2f3bdf5970d038da608f2f592d945541207c483c257fe5789efba168a·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where71 ····Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::col[·...·truncated·by·diffoscope;·len:·779,·SHA:·a4e524bd8aa8a1e0a66409d1b462b88093ab51a1f901ff1a788d7ee63d597f4c·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where
72 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,72 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
73 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·3013c0e49b0dade37f8ca096eccc5ceeb03fc79b9d320a4c92486d23b88d1009·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over73 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·54,·SHA:·6acee514e4d8df8979b4bba687b7e0d5dbb0ea4f98a7019e2fb03f3a8058df0f·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over
74 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,74 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="../../core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,
75 the·windows·during·mapping·overlap·as·well.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside">[·...·truncated·by·diffoscope;·len:·454,·SHA:·040991f3914479bcc92615de2b81df7363656323622e5aadc964e1a61917d23e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where75 the·windows·during·mapping·overlap·as·well.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="[·...·truncated·by·diffoscope;·len:·346,·SHA:·b1244a5f92e0573c29e04e883cf8212ba2586013b3687af07b63c29d2e611530·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where
76 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="https://doc.rust-lang.org/1.84.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·0e0294a45242d5ce9a3ab8f95d6d410756415291d92baa7d12283ef1b3ecc3a0·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where76 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="../../core/option/enum.Option.html#variant.None"·title="variant·cor[·...·truncated·by·diffoscope;·len:·679,·SHA:·ec753d6ecf7b9fe81cb270d78e45e053f2702fff74c7a63c2ab8da22b97fea86·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where
77 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,77 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
78 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·a8b562f71802a421f4745f7d1fadf4f70d98030c829e70f27b692e7915267027·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where78 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·635,·SHA:·ee3a5bcc3544c3f17985966634fef69b1708d641ddb7e62aaac76933935c5ef7·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where
79 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="https://doc.rust-lang.org/1.84.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·b3db7d84f203bbc139b1c52912705d19c664dac762898205fce452c9dc3a5318·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where79 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.by_ref">[·...·truncated·by·diffoscope;·len:·415,·SHA:·7e0e075470d2db380bcf0838446659654c982aa2ca7831ed7d0317877855be2a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where
80 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,80 ····B:·<a·class="trait"·href="../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
81 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·431,·SHA:·a705a23f6d810357e7dcac670743884665ffcccfb9b780d0aa03720be8ca5625·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(81 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.collect">Read[·...·truncated·by·diffoscope;·len:·323,·SHA:·80e0dde3814a6e7cf4e30949627abc841ab4e98e2a920efb248777e22708682d·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(
82 ····&amp;mut·self,82 ····&amp;mut·self,
83 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.h[·...·truncated·by·diffoscope;·len:·479,·SHA:·fa749442d890055f86ceb34f411c84fd7ea08302b336d786d1ca36fe5868b020·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where83 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&g[·...·truncated·by·diffoscope;·len:·344,·SHA:·c06c6401df0a7150633e94cc973521da42e09819b07be80ba18d6acb696860a9·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
84 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,84 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
85 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>,85 ····Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>,
86 ····&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.h[·...·truncated·by·diffoscope;·len:·300,·SHA:·3bff089180bac38df7f42b87556fae7641185b89a949c284f53e3ac718a6decb·...·]/core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;B&gt;,86 ····&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&g[·...·truncated·by·diffoscope;·len:·192,·SHA:·039ceb6ce31fc6b1871e3e366efbd0f164f4a6cc1bc25554bba598b0ee820cca·...·]/core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;B&gt;,
87 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/itera[·...·truncated·by·diffoscope;·len:·323,·SHA:·b5c51f161dc9d77fd81d1fd23cc71fbf42ac00f3168cf9e41ebaaa2b6eb25363·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if87 ····B:·<a·class="trait"·href="../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="ty[·...·truncated·by·diffoscope;·len:·215,·SHA:·ddb8fbd12147eecef1697edd4c63187cc514ab4b851290335adfcccc3fa429ba·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if
88 a·failure·is·encountered.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·ri[·...·truncated·by·diffoscope;·len:·521,·SHA:·6a54376815dab985ec8cc35604d035e98e3003b1563c9b41e70966084505542b·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where88 a·failure·is·encountered.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/co[·...·truncated·by·diffoscope;·len:·386,·SHA:·d46a776c329de4f757930edda252586c2cdd85c6956b7b2f68448da33ee0625e·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
89 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,89 ····E:·<a·class="trait"·href="../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
90 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·975,·SHA:·94f7f970236ba59ba5f1415764a0e3ab2f3093c6b79e76c25c797ac24a3c4d09·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where90 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_collect[·...·truncated·by·diffoscope;·len:·840,·SHA:·1ee6fbe4deb3d959e9ade58fb7ed3efa79d09721ed02fbb5f5f82aae6aa1425d·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
91 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,91 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
92 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·b480ec650ba000fe7cb67df58fc0351299638ee3e8f00db18f74ca24d69f9894·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,92 ····B:·<a·class="trait"·href="../../core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtyp[·...·truncated·by·diffoscope;·len:·14,·SHA:·4105980ca4887a52797067761af25a11e3de6069cd8d7c8ce82cd885bb798fe8·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
93 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·fdf5a1845f070855ba2cfd0c8c85460ea5cb646c4d3b42a8431bf21489c73701·...·]/core/primitive.usize.html">usize</a><div·class="where">where93 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·806,·SHA:·4d554b733db12e71a31ec2477a31408041941b0e2b0dc910904ecf2fced9f65b·...·]/core/primitive.usize.html">usize</a><div·class="where">where
94 ····T:·'a,94 ····T:·'a,
95 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·1fc250e258e9e42e4fa3e22f86ecd57057e9ff23e47af1aec778076a7a891134·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,95 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIter[·...·truncated·by·diffoscope;·len:·51,·SHA:·c9be73bbed9d11ecac2a179f480a640f51d6255f26712667ffdabc72c1fc7fb0·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,
96 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·5846407374f20f525a4a0663ad4488141eafe64513ef82581dc5df5c2d200745·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_partition_in_place</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62543">#62543</a>)</span></div></span><div·class='docblock'>Reorders·the·elements·of·this·iterator·<em>in-place</em>·according·to·the·given·predicate,96 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="../../core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_partition_in_place</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62543">#62543</a>)</span></div></span><div·class='docblock'>Reorders·the·elements·of·this·iterator·<em>in-place</em>·according·to·the·given·predicate,
97 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.97 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.
98 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.partition_in_place">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_partitioned"·class="method·trait-impl"><a·clas[·...·truncated·by·diffoscope;·len:·431,·SHA:·4aa7d028146c72d45794efc19a376d4bee3b75eda61ff46d969e440b3dbfa1b0·...·]/core/primitive.bool.html">bool</a><div·class="where">where98 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.partition_in_place">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_partitioned"·class="method·trait-impl"><a·class="src·rightside"·href="../[·...·truncated·by·diffoscope;·len:·323,·SHA:·bfc44418fa28079222aab80e2baccdaffb2d067bbe5d1b5162202d268ad628d7·...·]/core/primitive.bool.html">bool</a><div·class="where">where
99 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,99 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
100 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·fcd03e71f79faad6d9b9a12045d59f4dfabc78e5aefebcabc9c1a5be45e31125·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,100 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·54,·SHA:·d5ac304cc26edf57442227b641dd21c427d0f9cb322b79986f5b15fc49f867b0·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,
101 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><span·class="righ[·...·truncated·by·diffoscope;·len:·319,·SHA:·9b9df13f2f4e5b4dde3908515766e1a474fa30bcb7edc98c15665a016e677c2a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where101 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><span·class="rightside"><span·class="since"·[·...·truncated·by·diffoscope;·len:·238,·SHA:·af6ab768457e0afa1532b80c4296ae18061dac4c765922889b13eead3e5492db·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where
102 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,102 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
103 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,103 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
104 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns104 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns
105 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rights[·...·truncated·by·diffoscope;·len:·321,·SHA:·619fd774190944998148325de99aaa75de66ce4b7e26579fd342c564923a5652·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where105 successfully,·producing·a·single,·final·value.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"·ti[·...·truncated·by·diffoscope;·len:·240,·SHA:·125e84deea747ccbe139725d028362287beed6a89ab9da3a3aabd7df537abc59·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where
106 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,106 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
107 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,107 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
108 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the108 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="../../core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the
109 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·307,·SHA:·5975144fd8566efa93ad1ccec09297e280924b7372e08681d2103702124e2c52·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where109 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title=[·...·truncated·by·diffoscope;·len:·226,·SHA:·a7510e9271e68887d9e2681c6bc28312cec9ac38883128845f52742935a160a9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where
110 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,110 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
111 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,111 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,
112 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span[·...·truncated·by·diffoscope;·len:·619,·SHA:·8813f54846438870310d5f5dfabd2335a9dbf51e9da2e4cd681bcb6077d39628·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where112 returning·the·final·result.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stabl[·...·truncated·by·diffoscope;·len:·484,·SHA:·5f42e8d5ff08f4c76870e6cb9165e054f9a0d99051d9886ccd43d5c8a91e1fbc·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
113 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,113 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
114 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·084691f7fc4e7f4da7db385127d0ce8d2d52f6740757129a65910c4db0dc180d·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing114 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·244,·SHA:·f09ac7e818239538c3f3208cb5c76076c24a0153797eb762821d5bf2a382d83b·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing
115 operation.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·217,·SHA:·447ae00256be3de069c602a6c04889808c883eae6fa349d023f53bdd5570ecae·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(115 operation.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/iter[·...·truncated·by·diffoscope;·len:·136,·SHA:·97e3ee132585582ec7077e3bbd86406d8a2dcfc97dce7fd52b49af3ec1b58622·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(
116 ····&amp;mut·self,116 ····&amp;mut·self,
117 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R, 
118 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.T[·...·truncated·by·diffoscope;·len:·950,·SHA:·817376e71f7a0d170bfbd4b7264c15d324f49c65106c49349d11a077842aa533·...·]117 ····f:·impl·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core:[·...·truncated·by·diffoscope;·len:·238,·SHA:·a52edc1a1ce1db5dd6e620dbfe5acb58fdc6d84f2320cef02845988aa54e5c55·...·]
 118 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;&gt;&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
119 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,119 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
120 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,120 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
121 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·764ea8f08626b05426a76738d54ebb2d640042494d76cba8c20d868bfdc07a73·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the121 ····&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>:·<a[·...·truncated·by·diffoscope;·len:·277,·SHA:·0dd064909226a9691486376740de1e17aa133a7ae2f635bee3feaa9b19d7b580·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the
122 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><span·class="rightside"><s[·...·truncated·by·diffoscope;·len:·476,·SHA:·aef721c14147dea2fbec70dcfa76916b3f1273bed8304f4c9db310ca23d1e4b1·...·]/core/primitive.bool.html">bool</a><div·class="where">where122 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="St[·...·truncated·by·diffoscope;·len:·368,·SHA:·6dbfbc90b7cfda9017074212ce0beeb560c8f9ba918ba7b00292e34daa531cc2·...·]/core/primitive.bool.html">bool</a><div·class="where">where
123 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,123 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
124 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·7c48e62c73a40a5cb5ebbf4a22cd789b342a88ad3d855022191f2bae33c736c6·...·]/core/primitive.bool.html">bool</a><div·class="where">where124 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·829,·SHA:·c413d95d1072acd820201f12ffb54d04a6c7f3b732f7de46115ba40b4eb1bd3f·...·]/core/primitive.bool.html">bool</a><div·class="where">where
125 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,125 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
126 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·673d69ce0c23e24b2546127c463e67cd2a4c0f7be792712e2b42e75427161b75·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where126 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·956,·SHA:·105c7ff05d33bc9219febe8c9633cf1c1a8d88c32e47e44793d403a428174c66·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
Max diff block lines reached; 152318/336169 bytes (45.31%) of diff not shown.
311 KB
./usr/share/doc/rust-doc/html/alloc/slice/struct.RSplitN.html
    
Offset 1, 245 lines modifiedOffset 1, 245 lines modified
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="An·iterator·over·subslices·separated·by·elements·that·match·a·predicate·function,·limited·to·a·given·number·of·splits,·starting·from·the·end·of·the·slice."><title>RSplitN·in·alloc::slice·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»       2025-01-07)»    (built»      from»  a» source»   tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">RSplitN</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#example"·title="Example">Example</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Debug-for-RSplitN%3C'_,+T,+P%3E"·title="Debug">Debug</a></li><li><a·href="#impl-FusedIterator-for-RSplitN%3C'a,+T,+P%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-RSplitN%3C'a,+T,+P%3E"·title="Iterator">Iterator</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-RSplitN%3C'a,+T,+P%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-RSplitN%3C'a,+T,+P%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-RSplitN%3C'a,+T,+P%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-RSplitN%3C'a,+T,+P%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-RSplitN%3C'a,+T,+P%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-RSplitN%3C'a,+T,+P%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>slice</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">alloc</a>::<wbr><a·href="index.html">slice</a></span><h1>Struct·<span·class="struct">RSplitN</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/slice/iter.rs.html#1198">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·RSplitN&lt;'a,·T,·P&gt;<div·class="where">where1 <!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="An·iterator·over·subslices·separated·by·elements·that·match·a·predicate·function,·limited·to·a·given·number·of·splits,·starting·from·the·end·of·the·slice."><title>RSplitN·in·alloc::slice·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»       2025-01-07)»    (built»      from»  a» source»   tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">RSplitN</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#example"·title="Example">Example</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Debug-for-RSplitN%3C'_,+T,+P%3E"·title="Debug">Debug</a></li><li><a·href="#impl-FusedIterator-for-RSplitN%3C'a,+T,+P%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-RSplitN%3C'a,+T,+P%3E"·title="Iterator">Iterator</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-RSplitN%3C'a,+T,+P%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-RSplitN%3C'a,+T,+P%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-RSplitN%3C'a,+T,+P%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-RSplitN%3C'a,+T,+P%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-RSplitN%3C'a,+T,+P%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-RSplitN%3C'a,+T,+P%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>slice</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">alloc</a>::<wbr><a·href="index.html">slice</a></span><h1>Struct·<span·class="struct">RSplitN</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../src/core/slice/iter.rs.html#1198">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·RSplitN&lt;'a,·T,·P&gt;<div·class="where">where
2 ····T:·'a,2 ····T:·'a,
3 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·5846407374f20f525a4a0663ad4488141eafe64513ef82581dc5df5c2d200745·...·]/core/primitive.bool.html">bool</a>,</div>{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>An·iterator·over·subslices·separated·by·elements·that·match·a3 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="../../core/primitive.bool.html">bool</a>,</div>{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>An·iterator·over·subslices·separated·by·elements·that·match·a
4 predicate·function,·limited·to·a·given·number·of·splits,·starting4 predicate·function,·limited·to·a·given·number·of·splits,·starting
5 from·the·end·of·the·slice.</p>5 from·the·end·of·the·slice.</p>
6 <p>This·struct·is·created·by·the·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html#method.rsplitn"·title="method·slice::rsplitn"><code>rsplitn</code></a>·method·on·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html"·title="primitive·slice">slices</a>.</p>6 <p>This·struct·is·created·by·the·<a·href="../../core/primitive.slice.html#method.rsplitn"·title="method·slice::rsplitn"><code>rsplitn</code></a>·method·on·<a·href="../../core/primitive.slice.html"·title="primitive·slice">slices</a>.</p>
7 <h2·id="example"><a·class="doc-anchor"·href="#example">§</a>Example</h2>7 <h2·id="example"><a·class="doc-anchor"·href="#example">§</a>Example</h2>
8 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span>slice·=·[<span·class="number">10</span>,·<span·class="number">40</span>,·<span·class="number">30</span>,·<span·class="number">20</span>,·<span·class="number">60</span>,·<span·class="number">50</span>];8 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span>slice·=·[<span·class="number">10</span>,·<span·class="number">40</span>,·<span·class="number">30</span>,·<span·class="number">20</span>,·<span·class="number">60</span>,·<span·class="number">50</span>];
9 <span·class="kw">let·</span><span·class="kw-2">mut·</span>iter·=·slice.rsplitn(<span·class="number">2</span>,·|num|·<span·class="kw-2">*</span>num·%·<span·class="number">3·</span>==·<span·class="number">0</span>);9 <span·class="kw">let·</span><span·class="kw-2">mut·</span>iter·=·slice.rsplitn(<span·class="number">2</span>,·|num|·<span·class="kw-2">*</span>num·%·<span·class="number">3·</span>==·<span·class="number">0</span>);
10 <span·class="macro">assert_eq!</span>(iter.next(),·<span·class="prelude-val">Some</span>(<span·class="kw-2">&amp;</span>[<span·class="number">50</span>][..]));10 <span·class="macro">assert_eq!</span>(iter.next(),·<span·class="prelude-val">Some</span>(<span·class="kw-2">&amp;</span>[<span·class="number">50</span>][..]));
11 <span·class="macro">assert_eq!</span>(iter.next(),·<span·class="prelude-val">Some</span>(<span·class="kw-2">&amp;</span>[<span·class="number">10</span>,·<span·class="number">40</span>,·<span·class="number">30</span>,·<span·class="number">20</span>][..]));11 <span·class="macro">assert_eq!</span>(iter.next(),·<span·class="prelude-val">Some</span>(<span·class="kw-2">&amp;</span>[<span·class="number">10</span>,·<span·class="number">40</span>,·<span·class="number">30</span>,·<span·class="number">20</span>][..]));
12 <span·class="macro">assert_eq!</span>(iter.next(),·<span·class="prelude-val">None</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++let+slice+=+%5B10,+40,+30,+20,+60,+50%5D;%0A++++let+mut+iter+=+slice.rsplitn(2,+%7Cnum%7C+*num+%25+3+==+0);%0A++++assert_eq!(iter.next(),+Some(%26%5B50%5D%5B..%5D));%0A++++assert_eq!(iter.next(),+Some(%26%5B10,+40,+30,+20%5D%5B..%5D));%0A++++assert_eq!(iter.next(),+None);%0A%7D&amp;edition=2021"></a></div>12 <span·class="macro">assert_eq!</span>(iter.next(),·<span·class="prelude-val">None</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++let+slice+=+%5B10,+40,+30,+20,+60,+50%5D;%0A++++let+mut+iter+=+slice.rsplitn(2,+%7Cnum%7C+*num+%25+3+==+0);%0A++++assert_eq!(iter.next(),+Some(%26%5B50%5D%5B..%5D));%0A++++assert_eq!(iter.next(),+Some(%26%5B10,+40,+30,+20%5D%5B..%5D));%0A++++assert_eq!(iter.next(),+None);%0A%7D&amp;edition=2021"></a></div>
13 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-RSplitN%3C'_,+T,+P%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.9.0">1.9.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/slice/iter.rs.html#1213-1215">Source</a></span><a·href="#impl-Debug-for-RSplitN%3C'_,+T,+P%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·P&gt;·<a·class="trait"·href="../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.RSplitN.html"·title="struct·alloc::slice::RSplitN">RSplitN</a>&lt;'_,·T,·P&gt;<div·class="where">where13 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-RSplitN%3C'_,+T,+P%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.9.0">1.9.0</span>···<a·class="src"·href="../../src/core/slice/iter.rs.html#1213-1215">Source</a></span><a·href="#impl-Debug-for-RSplitN%3C'_,+T,+P%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·P&gt;·<a·class="trait"·href="../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.RSplitN.html"·title="struct·alloc::slice::RSplitN">RSplitN</a>&lt;'_,·T,·P&gt;<div·class="where">where
14 ····T:·<a·class="trait"·href="../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,14 ····T:·<a·class="trait"·href="../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,
15 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·1621,·SHA:·4bd9a5fe38f2601bf85972a14e84c853a8ea48775cea38ee05f6c25b3a3fcb26·...·]/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::Iterator">Iterator</a>·for·<a·class="struct"·href="struct.RSplitN.html"·title="struct·alloc::slice::RSplitN">RSplitN</a>&lt;'a,·T,·P&gt;<div·class="where">where15 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="../../core/primitive.bool.html">bool</a>,</div></h3></[·...·truncated·by·diffoscope;·len:·1405,·SHA:·b923d67a7681e7b68232fe043253e1c82d4b38c558838343572b6bf168f031e4·...·]/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::Iterator">Iterator</a>·for·<a·class="struct"·href="struct.RSplitN.html"·title="struct·alloc::slice::RSplitN">RSplitN</a>&lt;'a,·T,·P&gt;<div·class="where">where
16 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·3190,·SHA:·410b8edf9d1b1fea3c1a8b6fae0e991667377ede43358c25420458e80bdf5d29·...·]/core/primitive.usize.html">usize</a>&gt;(16 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="../../core/primitive.bool.html">bool</a>,</div></h3></[·...·truncated·by·diffoscope;·len:·2650,·SHA:·79cf02f0006ebb2d882a6a3ffaa216b80158b4d487ebb0baa2b37f0ec7d77f36·...·]/core/primitive.usize.html">usize</a>&gt;(
17 ····&amp;mut·self,17 ····&amp;mut·self,
18 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·4f557a9b49151e0be8c52ffd68f1def4469c08164239dc8bef8df2040551c5ef·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where18 )·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">It[·...·truncated·by·diffoscope;·len:·246,·SHA:·baf6c8e6f3d5dbac69324111240b1587dbb858d42149cae1ee895a165289ff4f·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where
19 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·962,·SHA:·116e4ec2ae3d9655c3d115eaf50f435f5323b4e48b84de734c79d2a09b3c02f2·...·]/core/primitive.usize.html">usize</a><div·class="where">where19 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_next_ch[·...·truncated·by·diffoscope;·len:·827,·SHA:·2479cde9ab5aa3e18f76cf74cf7889a3de87c66e1745f27cf29bd34c4d30dbdf·...·]/core/primitive.usize.html">usize</a><div·class="where">where
20 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·counting·the·number·of·iterations·and·returning·it.·<a·href="https://doc.[·...·truncated·by·diffoscope;·len:·837,·SHA:·47e25b6f9687bcc1d1fcdf9842fb085e6aba767d70531028f948636b80563dfc·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where20 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·counting·the·number·of·iterations·and·returning·it.·<a·href="../../core/iter/traits/iterator/trait.I[·...·truncated·by·diffoscope;·len:·675,·SHA:·1ce62884794ba87e19a0c96720594ee19d36bf34d9a84160028eeff78b648fa9·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
21 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·returning·the·last·element.·<a·href="https://doc.rust-lang.org/1.84.0/cor[·...·truncated·by·diffoscope;·len:·3504,·SHA:·ec43d0f6d8d2a1e0fb7a684c382b9934abe1250844e53cce08bdfc6017ecb276·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where21 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·returning·the·last·element.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.last[·...·truncated·by·diffoscope;·len:·2964,·SHA:·db62f7c0fcc4ed24f8d8d5c90b4eb970e1ba2f576e1c200c74164f961b4de28e·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where
22 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by22 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by
23 the·given·amount·at·each·iteration.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><sp[·...·truncated·by·diffoscope;·len:·842,·SHA:·945c4509a8daf2f8fbccc5c6e5089e225955911e03a3e411f047f96d52d16862·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where23 the·given·amount·at·each·iteration.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Sta[·...·truncated·by·diffoscope;·len:·680,·SHA:·77241b5118fcbc984cb791fa9f75077307e18056b66492741335faf440cbdabc·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
24 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,24 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
25 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·3b5ce32f9d564c3aa7cf2adc7130e674758d0c0f4f1275b4c3b46a74aa802cb3·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where25 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·1113,·SHA:·ccf22d19f49a25daffdcc6d9226d5107457a8bfd16beccfeff5020d151bdb8bb·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
26 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,26 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
27 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·[·...·truncated·by·diffoscope;·len:·868,·SHA:·abdbf27ccc84063c7040d8fa3da9d0bda5ee310a470ef576e15554aee4bd5d21·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where27 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·of·pairs.·<a·href="../../co[·...·truncated·by·diffoscope;·len:·706,·SHA:·f32c568f049122021445a983654582d97ac74064a3e99c3361b348bd7708c1b2·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where
28 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,28 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
29 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent29 ····Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent
30 items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="sr[·...·truncated·by·diffoscope;·len:·427,·SHA:·6e82ad4aad49c2165d869fe30d20a968580a973cdb3a7f4c77f49e16dd59393e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where30 items·of·the·original·iterator.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="src·rightside"·href="../../sr[·...·truncated·by·diffoscope;·len:·319,·SHA:·8babc469a22056fc5a02684b52f9f93ba9c27a3dd2e8443ddc060797054e211e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where
31 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,31 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
32 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>32 ····G:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>
33 between·adjacent·items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightsi[·...·truncated·by·diffoscope;·len:·471,·SHA:·ed10488b7b2ccc3e4cc84a9a57a9695a74c1c964962e8d753cbace12f3318a66·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where33 between·adjacent·items·of·the·original·iterator.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·tit[·...·truncated·by·diffoscope;·len:·363,·SHA:·09aee21fa4172b743a714e2cb5915129575ce0224df49c7343dec38f43b7ecfd·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where
34 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,34 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
35 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each35 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each
36 element.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><spa[·...·truncated·by·diffoscope;·len:·306,·SHA:·61c87c39b177830189b0e4c036d97c40d8b9649d76432c90afb88de59498e8b2·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where36 element.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stab[·...·truncated·by·diffoscope;·len:·225,·SHA:·a0f2490a1a5fd6b44e0ab01199cbbbd6e5463251405d11eaf6798c9b50bbd683·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where
37 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,37 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
38 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·a65da32c5f5ef8335cb607d3b4ab3f8a25877bc2c2e8b44ca9d575caecd5c8a5·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where38 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·754,·SHA:·421e55a5747cab3df1dad40b747b4633f241bdc13a1546bb19b1370788dea27d·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where
39 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,39 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
40 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·6d69c85c69fa789be551ea42d95c33c237d12a04ef157f9ddaaead1177f7771e·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element40 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·59,·SHA:·76969e34965f1923de668a65a9f5c33f73266468c9b96650bcc5fd498e606a6b·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element
41 should·be·yielded.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·489,·SHA:·9bdc636899f4e4e5a26a3a21c9603f72b3fb972865d2f459c38b7e2ac8fed7f1·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where41 should·be·yielded.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·cf812944678f6755720896cf32b330946303afe59f1b1c11adeb6a7f33454c8d·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where
42 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,42 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
43 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·46dbf841c7aecd3f06bd4c944af21650faeac98c46c515dcfe643302618b1ecd·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where43 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·863,·SHA:·c2bab87fa2a70713bd2d34b3dcae8f4ff2341917103b43a1dd505317f15d6cff·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where
44 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as44 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as
45 the·next·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside[·...·truncated·by·diffoscope;·len:·468,·SHA:·52f7ff7f264284c3acc4429ca34d057ded9afa2e3d9d6e07571e252db9a48977·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where45 the·next·value.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title[·...·truncated·by·diffoscope;·len:·360,·SHA:·688416dc1aaaa0be069177270ba9e74b3d1b92521285a109dc7ba86b58c1f22a·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where
46 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·c0180fefce4346b0b4089e5c642521d7716108241c0ce6ec3e910c7a2c7364b4·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods46 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="../../core/iter/adapters/peekable/struct.Peekable.html#method.peek"·title="m[·...·truncated·by·diffoscope;·len:·94,·SHA:·78aeab33f83c647dfe680c1050358c95977e3af17eabde4a04880721ea1a619d·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods
47 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See47 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See
48 their·documentation·for·more·information.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightsid[·...·truncated·by·diffoscope;·len:·498,·SHA:·e4a68861585faec6a5032b3b69d6dfb0f2799b5f387a527d9a1365571ed02069·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where48 their·documentation·for·more·information.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightside"><span·class="since"·titl[·...·truncated·by·diffoscope;·len:·390,·SHA:·5da622ae0e4d00b47239007520070e22568156d6c5b1662db8b80b465934b18c·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where
49 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,49 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
50 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·93281c1f6402743fd61110c11cf676f0f67eddceda801b4eb35e5fe9f85870fd·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where50 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·1018,·SHA:·732548acff5239e9a7b904f32790c90ab3b63522635334128f35e01d37ceaeb6·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where
51 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,51 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
52 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·f1cdbb1ec64f98fabbe1d89c88b03824310926cd7eaa160953ce2452fc3abb77·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where52 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·869,·SHA:·8ec7e525848424d5104dbdd10928d17cfee4e5aee63cdda7ecdbe323b30b59d3·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where
53 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,53 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
54 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·f94a0b2c1396b13b89aca7830197ebf19e2c0e5ba536a9cc25b325a481799510·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where54 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·947,·SHA:·fdd074315a0bfb226f815b1b6ea114c7367886338ffffff233d7f6fc3108769a·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where
55 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="https://doc.rust-lang[·...·truncated·by·diffoscope;·len:·783,·SHA:·c14217b89e3292a50a09192a8857485891fc769f861e1d1fc4322d04295c86ef·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where55 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="../../core/iter/traits/iterator/trait.Iterator.h[·...·truncated·by·diffoscope;·len:·621,·SHA:·484df7f946e7f2f69c3acad8964421c0db8ac5bb40032d11bbd862e20e67704c·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where
56 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer56 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer
57 if·the·underlying·iterator·ends·sooner.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·c[·...·truncated·by·diffoscope;·len:·488,·SHA:·76f753d5a273a09a73127631acaa0ee947326a929f33be291018188793e1af56·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where57 if·the·underlying·iterator·ends·sooner.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·[·...·truncated·by·diffoscope;·len:·380,·SHA:·fa258c7e0b5d583304a69e2d4e19f3d4cc9a9ed830bdf3796eaa0968bdf590b4·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where
58 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,58 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
59 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·07d303586c8ad4e0082d5b44bff8eeda03cdb8f4bdbe46489f9232bca5a43ec6·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but59 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterat[·...·truncated·by·diffoscope;·len:·314,·SHA:·299331ff47adaff3ebc292c53557ad34da957aef932f87ec0444c7f856820410·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but
60 unlike·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·2b20882d9583cee50e0c8b3cf362b27ce0d524db387d4aa4093d622b9370dada·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where60 unlike·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.scan">Read·more[·...·truncated·by·diffoscope;·len:·555,·SHA:·77279e392f259f6d4859f5a7747ee4b4d5315f3af0ac3baebf1d53be3461b312·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where
61 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,61 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
62 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,62 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
63 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·933,·SHA:·4af94b75ba5c1e03d2d70590d2fd0706f13b3080fbff0f5b98e7b109048c403d·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where63 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·771,·SHA:·a1a50c8ca4c13151c7b22ce05c74c449231e1ffe44225beee67ff212fc1d3859·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where
64 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,64 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
65 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.I[·...·truncated·by·diffoscope;·len:·968,·SHA:·e5572ed2f3bdf5970d038da608f2f592d945541207c483c257fe5789efba168a·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where65 ····Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::col[·...·truncated·by·diffoscope;·len:·779,·SHA:·a4e524bd8aa8a1e0a66409d1b462b88093ab51a1f901ff1a788d7ee63d597f4c·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where
66 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,66 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
67 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·3013c0e49b0dade37f8ca096eccc5ceeb03fc79b9d320a4c92486d23b88d1009·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over67 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·54,·SHA:·6acee514e4d8df8979b4bba687b7e0d5dbb0ea4f98a7019e2fb03f3a8058df0f·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over
68 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,68 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="../../core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,
69 the·windows·during·mapping·overlap·as·well.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside">[·...·truncated·by·diffoscope;·len:·454,·SHA:·040991f3914479bcc92615de2b81df7363656323622e5aadc964e1a61917d23e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where69 the·windows·during·mapping·overlap·as·well.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="[·...·truncated·by·diffoscope;·len:·346,·SHA:·b1244a5f92e0573c29e04e883cf8212ba2586013b3687af07b63c29d2e611530·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where
70 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="https://doc.rust-lang.org/1.84.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·0e0294a45242d5ce9a3ab8f95d6d410756415291d92baa7d12283ef1b3ecc3a0·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where70 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="../../core/option/enum.Option.html#variant.None"·title="variant·cor[·...·truncated·by·diffoscope;·len:·679,·SHA:·ec753d6ecf7b9fe81cb270d78e45e053f2702fff74c7a63c2ab8da22b97fea86·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where
71 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,71 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
72 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·a8b562f71802a421f4745f7d1fadf4f70d98030c829e70f27b692e7915267027·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where72 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·635,·SHA:·ee3a5bcc3544c3f17985966634fef69b1708d641ddb7e62aaac76933935c5ef7·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where
73 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="https://doc.rust-lang.org/1.84.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·b3db7d84f203bbc139b1c52912705d19c664dac762898205fce452c9dc3a5318·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where73 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.by_ref">[·...·truncated·by·diffoscope;·len:·415,·SHA:·7e0e075470d2db380bcf0838446659654c982aa2ca7831ed7d0317877855be2a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where
74 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,74 ····B:·<a·class="trait"·href="../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
75 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·431,·SHA:·a705a23f6d810357e7dcac670743884665ffcccfb9b780d0aa03720be8ca5625·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(75 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.collect">Read[·...·truncated·by·diffoscope;·len:·323,·SHA:·80e0dde3814a6e7cf4e30949627abc841ab4e98e2a920efb248777e22708682d·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(
76 ····&amp;mut·self,76 ····&amp;mut·self,
77 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.h[·...·truncated·by·diffoscope;·len:·479,·SHA:·fa749442d890055f86ceb34f411c84fd7ea08302b336d786d1ca36fe5868b020·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where77 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&g[·...·truncated·by·diffoscope;·len:·344,·SHA:·c06c6401df0a7150633e94cc973521da42e09819b07be80ba18d6acb696860a9·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
78 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,78 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
79 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>,79 ····Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>,
80 ····&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.h[·...·truncated·by·diffoscope;·len:·300,·SHA:·3bff089180bac38df7f42b87556fae7641185b89a949c284f53e3ac718a6decb·...·]/core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;B&gt;,80 ····&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&g[·...·truncated·by·diffoscope;·len:·192,·SHA:·039ceb6ce31fc6b1871e3e366efbd0f164f4a6cc1bc25554bba598b0ee820cca·...·]/core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;B&gt;,
81 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/itera[·...·truncated·by·diffoscope;·len:·323,·SHA:·b5c51f161dc9d77fd81d1fd23cc71fbf42ac00f3168cf9e41ebaaa2b6eb25363·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if81 ····B:·<a·class="trait"·href="../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="ty[·...·truncated·by·diffoscope;·len:·215,·SHA:·ddb8fbd12147eecef1697edd4c63187cc514ab4b851290335adfcccc3fa429ba·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if
82 a·failure·is·encountered.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·ri[·...·truncated·by·diffoscope;·len:·521,·SHA:·6a54376815dab985ec8cc35604d035e98e3003b1563c9b41e70966084505542b·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where82 a·failure·is·encountered.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/co[·...·truncated·by·diffoscope;·len:·386,·SHA:·d46a776c329de4f757930edda252586c2cdd85c6956b7b2f68448da33ee0625e·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
83 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,83 ····E:·<a·class="trait"·href="../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
84 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·975,·SHA:·94f7f970236ba59ba5f1415764a0e3ab2f3093c6b79e76c25c797ac24a3c4d09·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where84 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_collect[·...·truncated·by·diffoscope;·len:·840,·SHA:·1ee6fbe4deb3d959e9ade58fb7ed3efa79d09721ed02fbb5f5f82aae6aa1425d·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
85 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,85 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
86 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·b480ec650ba000fe7cb67df58fc0351299638ee3e8f00db18f74ca24d69f9894·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,86 ····B:·<a·class="trait"·href="../../core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtyp[·...·truncated·by·diffoscope;·len:·14,·SHA:·4105980ca4887a52797067761af25a11e3de6069cd8d7c8ce82cd885bb798fe8·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
87 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·fdf5a1845f070855ba2cfd0c8c85460ea5cb646c4d3b42a8431bf21489c73701·...·]/core/primitive.usize.html">usize</a><div·class="where">where87 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·806,·SHA:·4d554b733db12e71a31ec2477a31408041941b0e2b0dc910904ecf2fced9f65b·...·]/core/primitive.usize.html">usize</a><div·class="where">where
88 ····T:·'a,88 ····T:·'a,
89 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·1fc250e258e9e42e4fa3e22f86ecd57057e9ff23e47af1aec778076a7a891134·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,89 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIter[·...·truncated·by·diffoscope;·len:·51,·SHA:·c9be73bbed9d11ecac2a179f480a640f51d6255f26712667ffdabc72c1fc7fb0·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,
90 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·5846407374f20f525a4a0663ad4488141eafe64513ef82581dc5df5c2d200745·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_partition_in_place</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62543">#62543</a>)</span></div></span><div·class='docblock'>Reorders·the·elements·of·this·iterator·<em>in-place</em>·according·to·the·given·predicate,90 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="../../core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_partition_in_place</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62543">#62543</a>)</span></div></span><div·class='docblock'>Reorders·the·elements·of·this·iterator·<em>in-place</em>·according·to·the·given·predicate,
91 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.91 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.
92 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.partition_in_place">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_partitioned"·class="method·trait-impl"><a·clas[·...·truncated·by·diffoscope;·len:·431,·SHA:·4aa7d028146c72d45794efc19a376d4bee3b75eda61ff46d969e440b3dbfa1b0·...·]/core/primitive.bool.html">bool</a><div·class="where">where92 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.partition_in_place">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_partitioned"·class="method·trait-impl"><a·class="src·rightside"·href="../[·...·truncated·by·diffoscope;·len:·323,·SHA:·bfc44418fa28079222aab80e2baccdaffb2d067bbe5d1b5162202d268ad628d7·...·]/core/primitive.bool.html">bool</a><div·class="where">where
93 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,93 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
94 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·fcd03e71f79faad6d9b9a12045d59f4dfabc78e5aefebcabc9c1a5be45e31125·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,94 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·54,·SHA:·d5ac304cc26edf57442227b641dd21c427d0f9cb322b79986f5b15fc49f867b0·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,
95 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><span·class="righ[·...·truncated·by·diffoscope;·len:·319,·SHA:·9b9df13f2f4e5b4dde3908515766e1a474fa30bcb7edc98c15665a016e677c2a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where95 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><span·class="rightside"><span·class="since"·[·...·truncated·by·diffoscope;·len:·238,·SHA:·af6ab768457e0afa1532b80c4296ae18061dac4c765922889b13eead3e5492db·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where
96 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,96 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
97 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,97 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
98 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns98 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns
99 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rights[·...·truncated·by·diffoscope;·len:·321,·SHA:·619fd774190944998148325de99aaa75de66ce4b7e26579fd342c564923a5652·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where99 successfully,·producing·a·single,·final·value.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"·ti[·...·truncated·by·diffoscope;·len:·240,·SHA:·125e84deea747ccbe139725d028362287beed6a89ab9da3a3aabd7df537abc59·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where
100 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,100 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
101 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,101 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
102 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the102 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="../../core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the
103 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·307,·SHA:·5975144fd8566efa93ad1ccec09297e280924b7372e08681d2103702124e2c52·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where103 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title=[·...·truncated·by·diffoscope;·len:·226,·SHA:·a7510e9271e68887d9e2681c6bc28312cec9ac38883128845f52742935a160a9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where
104 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,104 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
105 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,105 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,
106 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span[·...·truncated·by·diffoscope;·len:·619,·SHA:·8813f54846438870310d5f5dfabd2335a9dbf51e9da2e4cd681bcb6077d39628·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where106 returning·the·final·result.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stabl[·...·truncated·by·diffoscope;·len:·484,·SHA:·5f42e8d5ff08f4c76870e6cb9165e054f9a0d99051d9886ccd43d5c8a91e1fbc·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
107 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,107 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
108 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·084691f7fc4e7f4da7db385127d0ce8d2d52f6740757129a65910c4db0dc180d·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing108 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·244,·SHA:·f09ac7e818239538c3f3208cb5c76076c24a0153797eb762821d5bf2a382d83b·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing
109 operation.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·217,·SHA:·447ae00256be3de069c602a6c04889808c883eae6fa349d023f53bdd5570ecae·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(109 operation.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/iter[·...·truncated·by·diffoscope;·len:·136,·SHA:·97e3ee132585582ec7077e3bbd86406d8a2dcfc97dce7fd52b49af3ec1b58622·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(
110 ····&amp;mut·self,110 ····&amp;mut·self,
111 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R, 
112 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.T[·...·truncated·by·diffoscope;·len:·950,·SHA:·817376e71f7a0d170bfbd4b7264c15d324f49c65106c49349d11a077842aa533·...·]111 ····f:·impl·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core:[·...·truncated·by·diffoscope;·len:·238,·SHA:·a52edc1a1ce1db5dd6e620dbfe5acb58fdc6d84f2320cef02845988aa54e5c55·...·]
 112 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;&gt;&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
113 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,113 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
114 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,114 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
115 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·764ea8f08626b05426a76738d54ebb2d640042494d76cba8c20d868bfdc07a73·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the115 ····&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>:·<a[·...·truncated·by·diffoscope;·len:·277,·SHA:·0dd064909226a9691486376740de1e17aa133a7ae2f635bee3feaa9b19d7b580·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the
116 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><span·class="rightside"><s[·...·truncated·by·diffoscope;·len:·476,·SHA:·aef721c14147dea2fbec70dcfa76916b3f1273bed8304f4c9db310ca23d1e4b1·...·]/core/primitive.bool.html">bool</a><div·class="where">where116 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="St[·...·truncated·by·diffoscope;·len:·368,·SHA:·6dbfbc90b7cfda9017074212ce0beeb560c8f9ba918ba7b00292e34daa531cc2·...·]/core/primitive.bool.html">bool</a><div·class="where">where
117 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,117 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
118 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·7c48e62c73a40a5cb5ebbf4a22cd789b342a88ad3d855022191f2bae33c736c6·...·]/core/primitive.bool.html">bool</a><div·class="where">where118 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·829,·SHA:·c413d95d1072acd820201f12ffb54d04a6c7f3b732f7de46115ba40b4eb1bd3f·...·]/core/primitive.bool.html">bool</a><div·class="where">where
119 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,119 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
120 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·673d69ce0c23e24b2546127c463e67cd2a4c0f7be792712e2b42e75427161b75·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where120 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·956,·SHA:·105c7ff05d33bc9219febe8c9633cf1c1a8d88c32e47e44793d403a428174c66·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
121 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,121 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
122 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·aa5078ff77f5638746395497f8ce92c1b684d342dea851990104d5e9981ab6b0·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where122 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·862,·SHA:·ab608da827ec12779180206da5bfe43676627c19288c1fe674060a00ba44a595·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where
123 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,123 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
124 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·1bd732dff19021a1586bb486282683f5c1bc65d5d514f9e13cc9232b4e94955b·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;,</div></h4></section></summary><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns124 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·49,·SHA:·819211b646a21318a22e9d295452cdf890d5288a631a50261ca1a5b2bac9f748·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;,</div></h4></section></summary><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns
125 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.find_map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_find"·class="method·trait-impl"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·215,·SHA:·4d59a011c8881794ce6367c1e816f11a813db02e37c71800ed6d47056f157573·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(125 the·first·non-none·result.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.find_map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_find"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/iter[·...·truncated·by·diffoscope;·len:·134,·SHA:·f9a67b0520c850053a598ecaa24d4c1a006e7174ac499ec1e09451cd90ea548e·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(
126 ····&amp;mut·self,126 ····&amp;mut·self,
Max diff block lines reached; 83428/318135 bytes (26.22%) of diff not shown.
310 KB
./usr/share/doc/rust-doc/html/alloc/slice/struct.RSplitNMut.html
    
Offset 1, 240 lines modifiedOffset 1, 240 lines modified
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="An·iterator·over·subslices·separated·by·elements·that·match·a·predicate·function,·limited·to·a·given·number·of·splits,·starting·from·the·end·of·the·slice."><title>RSplitNMut·in·alloc::slice·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»    2025-01-07)» (built»   from»       a»      source»tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">RSplitN<wbr>Mut</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#example"·title="Example">Example</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Debug-for-RSplitNMut%3C'_,+T,+P%3E"·title="Debug">Debug</a></li><li><a·href="#impl-FusedIterator-for-RSplitNMut%3C'a,+T,+P%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-RSplitNMut%3C'a,+T,+P%3E"·title="Iterator">Iterator</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-UnwindSafe-for-RSplitNMut%3C'a,+T,+P%3E"·title="!UnwindSafe">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-RSplitNMut%3C'a,+T,+P%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-RSplitNMut%3C'a,+T,+P%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-RSplitNMut%3C'a,+T,+P%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-RSplitNMut%3C'a,+T,+P%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-RSplitNMut%3C'a,+T,+P%3E"·title="Unpin">Unpin</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>slice</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">alloc</a>::<wbr><a·href="index.html">slice</a></span><h1>Struct·<span·class="struct">RSplitNMut</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/slice/iter.rs.html#1279">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·RSplitNMut&lt;'a,·T,·P&gt;<div·class="where">where1 <!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="An·iterator·over·subslices·separated·by·elements·that·match·a·predicate·function,·limited·to·a·given·number·of·splits,·starting·from·the·end·of·the·slice."><title>RSplitNMut·in·alloc::slice·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»    2025-01-07)» (built»   from»       a»      source»tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">RSplitN<wbr>Mut</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#example"·title="Example">Example</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Debug-for-RSplitNMut%3C'_,+T,+P%3E"·title="Debug">Debug</a></li><li><a·href="#impl-FusedIterator-for-RSplitNMut%3C'a,+T,+P%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-RSplitNMut%3C'a,+T,+P%3E"·title="Iterator">Iterator</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-UnwindSafe-for-RSplitNMut%3C'a,+T,+P%3E"·title="!UnwindSafe">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-RSplitNMut%3C'a,+T,+P%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-RSplitNMut%3C'a,+T,+P%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-RSplitNMut%3C'a,+T,+P%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-RSplitNMut%3C'a,+T,+P%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-RSplitNMut%3C'a,+T,+P%3E"·title="Unpin">Unpin</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>slice</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">alloc</a>::<wbr><a·href="index.html">slice</a></span><h1>Struct·<span·class="struct">RSplitNMut</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../src/core/slice/iter.rs.html#1279">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·RSplitNMut&lt;'a,·T,·P&gt;<div·class="where">where
2 ····T:·'a,2 ····T:·'a,
3 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·5846407374f20f525a4a0663ad4488141eafe64513ef82581dc5df5c2d200745·...·]/core/primitive.bool.html">bool</a>,</div>{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>An·iterator·over·subslices·separated·by·elements·that·match·a3 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="../../core/primitive.bool.html">bool</a>,</div>{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>An·iterator·over·subslices·separated·by·elements·that·match·a
4 predicate·function,·limited·to·a·given·number·of·splits,·starting4 predicate·function,·limited·to·a·given·number·of·splits,·starting
5 from·the·end·of·the·slice.</p>5 from·the·end·of·the·slice.</p>
6 <p>This·struct·is·created·by·the·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html#method.rsplitn_mut"·title="method·slice::rsplitn_mut"><code>rsplitn_mut</code></a>·method·on·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html"·title="primitive·slice">slices</a>.</p>6 <p>This·struct·is·created·by·the·<a·href="../../core/primitive.slice.html#method.rsplitn_mut"·title="method·slice::rsplitn_mut"><code>rsplitn_mut</code></a>·method·on·<a·href="../../core/primitive.slice.html"·title="primitive·slice">slices</a>.</p>
7 <h2·id="example"><a·class="doc-anchor"·href="#example">§</a>Example</h2>7 <h2·id="example"><a·class="doc-anchor"·href="#example">§</a>Example</h2>
8 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span><span·class="kw-2">mut·</span>slice·=·[<span·class="number">10</span>,·<span·class="number">40</span>,·<span·class="number">30</span>,·<span·class="number">20</span>,·<span·class="number">60</span>,·<span·class="number">50</span>];8 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span><span·class="kw-2">mut·</span>slice·=·[<span·class="number">10</span>,·<span·class="number">40</span>,·<span·class="number">30</span>,·<span·class="number">20</span>,·<span·class="number">60</span>,·<span·class="number">50</span>];
9 <span·class="kw">let·</span>iter·=·slice.rsplitn_mut(<span·class="number">2</span>,·|num|·<span·class="kw-2">*</span>num·%·<span·class="number">3·</span>==·<span·class="number">0</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++let+mut+slice+=+%5B10,+40,+30,+20,+60,+50%5D;%0A++++let+iter+=+slice.rsplitn_mut(2,+%7Cnum%7C+*num+%25+3+==+0);%0A%7D&amp;edition=2021"></a></div>9 <span·class="kw">let·</span>iter·=·slice.rsplitn_mut(<span·class="number">2</span>,·|num|·<span·class="kw-2">*</span>num·%·<span·class="number">3·</span>==·<span·class="number">0</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++let+mut+slice+=+%5B10,+40,+30,+20,+60,+50%5D;%0A++++let+iter+=+slice.rsplitn_mut(2,+%7Cnum%7C+*num+%25+3+==+0);%0A%7D&amp;edition=2021"></a></div>
10 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-RSplitNMut%3C'_,+T,+P%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.9.0">1.9.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/slice/iter.rs.html#1294-1296">Source</a></span><a·href="#impl-Debug-for-RSplitNMut%3C'_,+T,+P%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·P&gt;·<a·class="trait"·href="../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.RSplitNMut.html"·title="struct·alloc::slice::RSplitNMut">RSplitNMut</a>&lt;'_,·T,·P&gt;<div·class="where">where10 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-RSplitNMut%3C'_,+T,+P%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.9.0">1.9.0</span>···<a·class="src"·href="../../src/core/slice/iter.rs.html#1294-1296">Source</a></span><a·href="#impl-Debug-for-RSplitNMut%3C'_,+T,+P%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·P&gt;·<a·class="trait"·href="../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.RSplitNMut.html"·title="struct·alloc::slice::RSplitNMut">RSplitNMut</a>&lt;'_,·T,·P&gt;<div·class="where">where
11 ····T:·<a·class="trait"·href="../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,11 ····T:·<a·class="trait"·href="../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,
12 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·1627,·SHA:·a51151c38df495e5e5339e407f443221a9b78249e6cec6c141fd8c3fe591fbed·...·]/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::Iterator">Iterator</a>·for·<a·class="struct"·href="struct.RSplitNMut.html"·title="struct·alloc::slice::RSplitNMut">RSplitNMut</a>&lt;'a,·T,·P&gt;<div·class="where">where12 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="../../core/primitive.bool.html">bool</a>,</div></h3></[·...·truncated·by·diffoscope;·len:·1411,·SHA:·205e6109070e617254e341f67207b47320d382ee38ce2464b554a46faee64b80·...·]/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::Iterator">Iterator</a>·for·<a·class="struct"·href="struct.RSplitNMut.html"·title="struct·alloc::slice::RSplitNMut">RSplitNMut</a>&lt;'a,·T,·P&gt;<div·class="where">where
13 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·3198,·SHA:·0d2933f776d5217d4623ea7c73f63dad7b0fdd050f59bee7235cf8154f8d03ab·...·]/core/primitive.usize.html">usize</a>&gt;(13 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="../../core/primitive.bool.html">bool</a>,</div></h3></[·...·truncated·by·diffoscope;·len:·2658,·SHA:·7b985de410881ad8b77187362315d1fcbd8341fc6c58c3623cd589aa0e353dda·...·]/core/primitive.usize.html">usize</a>&gt;(
14 ····&amp;mut·self,14 ····&amp;mut·self,
15 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·4f557a9b49151e0be8c52ffd68f1def4469c08164239dc8bef8df2040551c5ef·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where15 )·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">It[·...·truncated·by·diffoscope;·len:·246,·SHA:·baf6c8e6f3d5dbac69324111240b1587dbb858d42149cae1ee895a165289ff4f·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where
16 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·962,·SHA:·116e4ec2ae3d9655c3d115eaf50f435f5323b4e48b84de734c79d2a09b3c02f2·...·]/core/primitive.usize.html">usize</a><div·class="where">where16 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_next_ch[·...·truncated·by·diffoscope;·len:·827,·SHA:·2479cde9ab5aa3e18f76cf74cf7889a3de87c66e1745f27cf29bd34c4d30dbdf·...·]/core/primitive.usize.html">usize</a><div·class="where">where
17 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·counting·the·number·of·iterations·and·returning·it.·<a·href="https://doc.[·...·truncated·by·diffoscope;·len:·837,·SHA:·47e25b6f9687bcc1d1fcdf9842fb085e6aba767d70531028f948636b80563dfc·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where17 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·counting·the·number·of·iterations·and·returning·it.·<a·href="../../core/iter/traits/iterator/trait.I[·...·truncated·by·diffoscope;·len:·675,·SHA:·1ce62884794ba87e19a0c96720594ee19d36bf34d9a84160028eeff78b648fa9·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
18 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·returning·the·last·element.·<a·href="https://doc.rust-lang.org/1.84.0/cor[·...·truncated·by·diffoscope;·len:·3504,·SHA:·ec43d0f6d8d2a1e0fb7a684c382b9934abe1250844e53cce08bdfc6017ecb276·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where18 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·returning·the·last·element.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.last[·...·truncated·by·diffoscope;·len:·2964,·SHA:·db62f7c0fcc4ed24f8d8d5c90b4eb970e1ba2f576e1c200c74164f961b4de28e·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where
19 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by19 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by
20 the·given·amount·at·each·iteration.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><sp[·...·truncated·by·diffoscope;·len:·842,·SHA:·945c4509a8daf2f8fbccc5c6e5089e225955911e03a3e411f047f96d52d16862·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where20 the·given·amount·at·each·iteration.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Sta[·...·truncated·by·diffoscope;·len:·680,·SHA:·77241b5118fcbc984cb791fa9f75077307e18056b66492741335faf440cbdabc·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
21 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,21 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
22 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·3b5ce32f9d564c3aa7cf2adc7130e674758d0c0f4f1275b4c3b46a74aa802cb3·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where22 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·1113,·SHA:·ccf22d19f49a25daffdcc6d9226d5107457a8bfd16beccfeff5020d151bdb8bb·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
23 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,23 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
24 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·[·...·truncated·by·diffoscope;·len:·868,·SHA:·abdbf27ccc84063c7040d8fa3da9d0bda5ee310a470ef576e15554aee4bd5d21·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where24 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·of·pairs.·<a·href="../../co[·...·truncated·by·diffoscope;·len:·706,·SHA:·f32c568f049122021445a983654582d97ac74064a3e99c3361b348bd7708c1b2·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where
25 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,25 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
26 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent26 ····Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent
27 items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="sr[·...·truncated·by·diffoscope;·len:·427,·SHA:·6e82ad4aad49c2165d869fe30d20a968580a973cdb3a7f4c77f49e16dd59393e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where27 items·of·the·original·iterator.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="src·rightside"·href="../../sr[·...·truncated·by·diffoscope;·len:·319,·SHA:·8babc469a22056fc5a02684b52f9f93ba9c27a3dd2e8443ddc060797054e211e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where
28 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,28 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
29 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>29 ····G:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>
30 between·adjacent·items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightsi[·...·truncated·by·diffoscope;·len:·471,·SHA:·ed10488b7b2ccc3e4cc84a9a57a9695a74c1c964962e8d753cbace12f3318a66·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where30 between·adjacent·items·of·the·original·iterator.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·tit[·...·truncated·by·diffoscope;·len:·363,·SHA:·09aee21fa4172b743a714e2cb5915129575ce0224df49c7343dec38f43b7ecfd·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where
31 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,31 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
32 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each32 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each
33 element.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><spa[·...·truncated·by·diffoscope;·len:·306,·SHA:·61c87c39b177830189b0e4c036d97c40d8b9649d76432c90afb88de59498e8b2·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where33 element.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stab[·...·truncated·by·diffoscope;·len:·225,·SHA:·a0f2490a1a5fd6b44e0ab01199cbbbd6e5463251405d11eaf6798c9b50bbd683·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where
34 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,34 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
35 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·a65da32c5f5ef8335cb607d3b4ab3f8a25877bc2c2e8b44ca9d575caecd5c8a5·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where35 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·754,·SHA:·421e55a5747cab3df1dad40b747b4633f241bdc13a1546bb19b1370788dea27d·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where
36 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,36 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
37 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·6d69c85c69fa789be551ea42d95c33c237d12a04ef157f9ddaaead1177f7771e·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element37 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·59,·SHA:·76969e34965f1923de668a65a9f5c33f73266468c9b96650bcc5fd498e606a6b·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element
38 should·be·yielded.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·489,·SHA:·9bdc636899f4e4e5a26a3a21c9603f72b3fb972865d2f459c38b7e2ac8fed7f1·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where38 should·be·yielded.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·cf812944678f6755720896cf32b330946303afe59f1b1c11adeb6a7f33454c8d·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where
39 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,39 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
40 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·46dbf841c7aecd3f06bd4c944af21650faeac98c46c515dcfe643302618b1ecd·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where40 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·863,·SHA:·c2bab87fa2a70713bd2d34b3dcae8f4ff2341917103b43a1dd505317f15d6cff·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where
41 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as41 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as
42 the·next·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside[·...·truncated·by·diffoscope;·len:·468,·SHA:·52f7ff7f264284c3acc4429ca34d057ded9afa2e3d9d6e07571e252db9a48977·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where42 the·next·value.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title[·...·truncated·by·diffoscope;·len:·360,·SHA:·688416dc1aaaa0be069177270ba9e74b3d1b92521285a109dc7ba86b58c1f22a·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where
43 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·c0180fefce4346b0b4089e5c642521d7716108241c0ce6ec3e910c7a2c7364b4·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods43 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="../../core/iter/adapters/peekable/struct.Peekable.html#method.peek"·title="m[·...·truncated·by·diffoscope;·len:·94,·SHA:·78aeab33f83c647dfe680c1050358c95977e3af17eabde4a04880721ea1a619d·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods
44 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See44 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See
45 their·documentation·for·more·information.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightsid[·...·truncated·by·diffoscope;·len:·498,·SHA:·e4a68861585faec6a5032b3b69d6dfb0f2799b5f387a527d9a1365571ed02069·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where45 their·documentation·for·more·information.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightside"><span·class="since"·titl[·...·truncated·by·diffoscope;·len:·390,·SHA:·5da622ae0e4d00b47239007520070e22568156d6c5b1662db8b80b465934b18c·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where
46 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,46 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
47 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·93281c1f6402743fd61110c11cf676f0f67eddceda801b4eb35e5fe9f85870fd·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where47 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·1018,·SHA:·732548acff5239e9a7b904f32790c90ab3b63522635334128f35e01d37ceaeb6·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where
48 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,48 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
49 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·f1cdbb1ec64f98fabbe1d89c88b03824310926cd7eaa160953ce2452fc3abb77·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where49 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·869,·SHA:·8ec7e525848424d5104dbdd10928d17cfee4e5aee63cdda7ecdbe323b30b59d3·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where
50 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,50 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
51 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·f94a0b2c1396b13b89aca7830197ebf19e2c0e5ba536a9cc25b325a481799510·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where51 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·947,·SHA:·fdd074315a0bfb226f815b1b6ea114c7367886338ffffff233d7f6fc3108769a·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where
52 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="https://doc.rust-lang[·...·truncated·by·diffoscope;·len:·783,·SHA:·c14217b89e3292a50a09192a8857485891fc769f861e1d1fc4322d04295c86ef·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where52 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="../../core/iter/traits/iterator/trait.Iterator.h[·...·truncated·by·diffoscope;·len:·621,·SHA:·484df7f946e7f2f69c3acad8964421c0db8ac5bb40032d11bbd862e20e67704c·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where
53 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer53 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer
54 if·the·underlying·iterator·ends·sooner.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·c[·...·truncated·by·diffoscope;·len:·488,·SHA:·76f753d5a273a09a73127631acaa0ee947326a929f33be291018188793e1af56·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where54 if·the·underlying·iterator·ends·sooner.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·[·...·truncated·by·diffoscope;·len:·380,·SHA:·fa258c7e0b5d583304a69e2d4e19f3d4cc9a9ed830bdf3796eaa0968bdf590b4·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where
55 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,55 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
56 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·07d303586c8ad4e0082d5b44bff8eeda03cdb8f4bdbe46489f9232bca5a43ec6·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but56 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterat[·...·truncated·by·diffoscope;·len:·314,·SHA:·299331ff47adaff3ebc292c53557ad34da957aef932f87ec0444c7f856820410·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but
57 unlike·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·2b20882d9583cee50e0c8b3cf362b27ce0d524db387d4aa4093d622b9370dada·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where57 unlike·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.scan">Read·more[·...·truncated·by·diffoscope;·len:·555,·SHA:·77279e392f259f6d4859f5a7747ee4b4d5315f3af0ac3baebf1d53be3461b312·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where
58 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,58 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
59 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,59 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
60 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·933,·SHA:·4af94b75ba5c1e03d2d70590d2fd0706f13b3080fbff0f5b98e7b109048c403d·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where60 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·771,·SHA:·a1a50c8ca4c13151c7b22ce05c74c449231e1ffe44225beee67ff212fc1d3859·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where
61 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,61 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
62 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.I[·...·truncated·by·diffoscope;·len:·968,·SHA:·e5572ed2f3bdf5970d038da608f2f592d945541207c483c257fe5789efba168a·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where62 ····Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::col[·...·truncated·by·diffoscope;·len:·779,·SHA:·a4e524bd8aa8a1e0a66409d1b462b88093ab51a1f901ff1a788d7ee63d597f4c·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where
63 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,63 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
64 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·3013c0e49b0dade37f8ca096eccc5ceeb03fc79b9d320a4c92486d23b88d1009·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over64 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·54,·SHA:·6acee514e4d8df8979b4bba687b7e0d5dbb0ea4f98a7019e2fb03f3a8058df0f·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over
65 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,65 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="../../core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,
66 the·windows·during·mapping·overlap·as·well.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside">[·...·truncated·by·diffoscope;·len:·454,·SHA:·040991f3914479bcc92615de2b81df7363656323622e5aadc964e1a61917d23e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where66 the·windows·during·mapping·overlap·as·well.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="[·...·truncated·by·diffoscope;·len:·346,·SHA:·b1244a5f92e0573c29e04e883cf8212ba2586013b3687af07b63c29d2e611530·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where
67 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="https://doc.rust-lang.org/1.84.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·0e0294a45242d5ce9a3ab8f95d6d410756415291d92baa7d12283ef1b3ecc3a0·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where67 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="../../core/option/enum.Option.html#variant.None"·title="variant·cor[·...·truncated·by·diffoscope;·len:·679,·SHA:·ec753d6ecf7b9fe81cb270d78e45e053f2702fff74c7a63c2ab8da22b97fea86·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where
68 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,68 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
69 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·a8b562f71802a421f4745f7d1fadf4f70d98030c829e70f27b692e7915267027·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where69 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·635,·SHA:·ee3a5bcc3544c3f17985966634fef69b1708d641ddb7e62aaac76933935c5ef7·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where
70 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="https://doc.rust-lang.org/1.84.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·b3db7d84f203bbc139b1c52912705d19c664dac762898205fce452c9dc3a5318·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where70 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.by_ref">[·...·truncated·by·diffoscope;·len:·415,·SHA:·7e0e075470d2db380bcf0838446659654c982aa2ca7831ed7d0317877855be2a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where
71 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,71 ····B:·<a·class="trait"·href="../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
72 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·431,·SHA:·a705a23f6d810357e7dcac670743884665ffcccfb9b780d0aa03720be8ca5625·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(72 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.collect">Read[·...·truncated·by·diffoscope;·len:·323,·SHA:·80e0dde3814a6e7cf4e30949627abc841ab4e98e2a920efb248777e22708682d·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(
73 ····&amp;mut·self,73 ····&amp;mut·self,
74 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.h[·...·truncated·by·diffoscope;·len:·479,·SHA:·fa749442d890055f86ceb34f411c84fd7ea08302b336d786d1ca36fe5868b020·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where74 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&g[·...·truncated·by·diffoscope;·len:·344,·SHA:·c06c6401df0a7150633e94cc973521da42e09819b07be80ba18d6acb696860a9·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
75 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,75 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
76 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>,76 ····Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>,
77 ····&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.h[·...·truncated·by·diffoscope;·len:·300,·SHA:·3bff089180bac38df7f42b87556fae7641185b89a949c284f53e3ac718a6decb·...·]/core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;B&gt;,77 ····&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&g[·...·truncated·by·diffoscope;·len:·192,·SHA:·039ceb6ce31fc6b1871e3e366efbd0f164f4a6cc1bc25554bba598b0ee820cca·...·]/core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;B&gt;,
78 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/itera[·...·truncated·by·diffoscope;·len:·323,·SHA:·b5c51f161dc9d77fd81d1fd23cc71fbf42ac00f3168cf9e41ebaaa2b6eb25363·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if78 ····B:·<a·class="trait"·href="../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="ty[·...·truncated·by·diffoscope;·len:·215,·SHA:·ddb8fbd12147eecef1697edd4c63187cc514ab4b851290335adfcccc3fa429ba·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if
79 a·failure·is·encountered.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·ri[·...·truncated·by·diffoscope;·len:·521,·SHA:·6a54376815dab985ec8cc35604d035e98e3003b1563c9b41e70966084505542b·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where79 a·failure·is·encountered.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/co[·...·truncated·by·diffoscope;·len:·386,·SHA:·d46a776c329de4f757930edda252586c2cdd85c6956b7b2f68448da33ee0625e·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
80 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,80 ····E:·<a·class="trait"·href="../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
81 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·975,·SHA:·94f7f970236ba59ba5f1415764a0e3ab2f3093c6b79e76c25c797ac24a3c4d09·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where81 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_collect[·...·truncated·by·diffoscope;·len:·840,·SHA:·1ee6fbe4deb3d959e9ade58fb7ed3efa79d09721ed02fbb5f5f82aae6aa1425d·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
82 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,82 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
83 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·b480ec650ba000fe7cb67df58fc0351299638ee3e8f00db18f74ca24d69f9894·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,83 ····B:·<a·class="trait"·href="../../core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtyp[·...·truncated·by·diffoscope;·len:·14,·SHA:·4105980ca4887a52797067761af25a11e3de6069cd8d7c8ce82cd885bb798fe8·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
84 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·fdf5a1845f070855ba2cfd0c8c85460ea5cb646c4d3b42a8431bf21489c73701·...·]/core/primitive.usize.html">usize</a><div·class="where">where84 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·806,·SHA:·4d554b733db12e71a31ec2477a31408041941b0e2b0dc910904ecf2fced9f65b·...·]/core/primitive.usize.html">usize</a><div·class="where">where
85 ····T:·'a,85 ····T:·'a,
86 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·1fc250e258e9e42e4fa3e22f86ecd57057e9ff23e47af1aec778076a7a891134·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,86 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIter[·...·truncated·by·diffoscope;·len:·51,·SHA:·c9be73bbed9d11ecac2a179f480a640f51d6255f26712667ffdabc72c1fc7fb0·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,
87 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·5846407374f20f525a4a0663ad4488141eafe64513ef82581dc5df5c2d200745·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_partition_in_place</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62543">#62543</a>)</span></div></span><div·class='docblock'>Reorders·the·elements·of·this·iterator·<em>in-place</em>·according·to·the·given·predicate,87 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="../../core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_partition_in_place</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62543">#62543</a>)</span></div></span><div·class='docblock'>Reorders·the·elements·of·this·iterator·<em>in-place</em>·according·to·the·given·predicate,
88 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.88 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.
89 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.partition_in_place">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_partitioned"·class="method·trait-impl"><a·clas[·...·truncated·by·diffoscope;·len:·431,·SHA:·4aa7d028146c72d45794efc19a376d4bee3b75eda61ff46d969e440b3dbfa1b0·...·]/core/primitive.bool.html">bool</a><div·class="where">where89 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.partition_in_place">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_partitioned"·class="method·trait-impl"><a·class="src·rightside"·href="../[·...·truncated·by·diffoscope;·len:·323,·SHA:·bfc44418fa28079222aab80e2baccdaffb2d067bbe5d1b5162202d268ad628d7·...·]/core/primitive.bool.html">bool</a><div·class="where">where
90 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,90 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
91 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·fcd03e71f79faad6d9b9a12045d59f4dfabc78e5aefebcabc9c1a5be45e31125·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,91 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·54,·SHA:·d5ac304cc26edf57442227b641dd21c427d0f9cb322b79986f5b15fc49f867b0·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,
92 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><span·class="righ[·...·truncated·by·diffoscope;·len:·319,·SHA:·9b9df13f2f4e5b4dde3908515766e1a474fa30bcb7edc98c15665a016e677c2a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where92 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><span·class="rightside"><span·class="since"·[·...·truncated·by·diffoscope;·len:·238,·SHA:·af6ab768457e0afa1532b80c4296ae18061dac4c765922889b13eead3e5492db·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where
93 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,93 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
94 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,94 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
95 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns95 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns
96 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rights[·...·truncated·by·diffoscope;·len:·321,·SHA:·619fd774190944998148325de99aaa75de66ce4b7e26579fd342c564923a5652·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where96 successfully,·producing·a·single,·final·value.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"·ti[·...·truncated·by·diffoscope;·len:·240,·SHA:·125e84deea747ccbe139725d028362287beed6a89ab9da3a3aabd7df537abc59·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where
97 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,97 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
98 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,98 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
99 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the99 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="../../core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the
100 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·307,·SHA:·5975144fd8566efa93ad1ccec09297e280924b7372e08681d2103702124e2c52·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where100 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title=[·...·truncated·by·diffoscope;·len:·226,·SHA:·a7510e9271e68887d9e2681c6bc28312cec9ac38883128845f52742935a160a9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where
101 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,101 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
102 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,102 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,
103 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span[·...·truncated·by·diffoscope;·len:·619,·SHA:·8813f54846438870310d5f5dfabd2335a9dbf51e9da2e4cd681bcb6077d39628·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where103 returning·the·final·result.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stabl[·...·truncated·by·diffoscope;·len:·484,·SHA:·5f42e8d5ff08f4c76870e6cb9165e054f9a0d99051d9886ccd43d5c8a91e1fbc·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
104 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,104 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
105 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·084691f7fc4e7f4da7db385127d0ce8d2d52f6740757129a65910c4db0dc180d·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing105 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·244,·SHA:·f09ac7e818239538c3f3208cb5c76076c24a0153797eb762821d5bf2a382d83b·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing
106 operation.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·217,·SHA:·447ae00256be3de069c602a6c04889808c883eae6fa349d023f53bdd5570ecae·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(106 operation.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/iter[·...·truncated·by·diffoscope;·len:·136,·SHA:·97e3ee132585582ec7077e3bbd86406d8a2dcfc97dce7fd52b49af3ec1b58622·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(
107 ····&amp;mut·self,107 ····&amp;mut·self,
108 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R, 
109 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.T[·...·truncated·by·diffoscope;·len:·950,·SHA:·817376e71f7a0d170bfbd4b7264c15d324f49c65106c49349d11a077842aa533·...·]108 ····f:·impl·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core:[·...·truncated·by·diffoscope;·len:·238,·SHA:·a52edc1a1ce1db5dd6e620dbfe5acb58fdc6d84f2320cef02845988aa54e5c55·...·]
 109 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;&gt;&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
110 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,110 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
111 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,111 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
112 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·764ea8f08626b05426a76738d54ebb2d640042494d76cba8c20d868bfdc07a73·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the112 ····&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>:·<a[·...·truncated·by·diffoscope;·len:·277,·SHA:·0dd064909226a9691486376740de1e17aa133a7ae2f635bee3feaa9b19d7b580·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the
113 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><span·class="rightside"><s[·...·truncated·by·diffoscope;·len:·476,·SHA:·aef721c14147dea2fbec70dcfa76916b3f1273bed8304f4c9db310ca23d1e4b1·...·]/core/primitive.bool.html">bool</a><div·class="where">where113 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="St[·...·truncated·by·diffoscope;·len:·368,·SHA:·6dbfbc90b7cfda9017074212ce0beeb560c8f9ba918ba7b00292e34daa531cc2·...·]/core/primitive.bool.html">bool</a><div·class="where">where
114 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,114 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
115 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·7c48e62c73a40a5cb5ebbf4a22cd789b342a88ad3d855022191f2bae33c736c6·...·]/core/primitive.bool.html">bool</a><div·class="where">where115 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·829,·SHA:·c413d95d1072acd820201f12ffb54d04a6c7f3b732f7de46115ba40b4eb1bd3f·...·]/core/primitive.bool.html">bool</a><div·class="where">where
116 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,116 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
117 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·673d69ce0c23e24b2546127c463e67cd2a4c0f7be792712e2b42e75427161b75·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where117 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·956,·SHA:·105c7ff05d33bc9219febe8c9633cf1c1a8d88c32e47e44793d403a428174c66·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
118 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,118 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
119 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·aa5078ff77f5638746395497f8ce92c1b684d342dea851990104d5e9981ab6b0·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where119 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·862,·SHA:·ab608da827ec12779180206da5bfe43676627c19288c1fe674060a00ba44a595·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where
120 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,120 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
121 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·1bd732dff19021a1586bb486282683f5c1bc65d5d514f9e13cc9232b4e94955b·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;,</div></h4></section></summary><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns121 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·49,·SHA:·819211b646a21318a22e9d295452cdf890d5288a631a50261ca1a5b2bac9f748·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;,</div></h4></section></summary><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns
122 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.find_map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_find"·class="method·trait-impl"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·215,·SHA:·4d59a011c8881794ce6367c1e816f11a813db02e37c71800ed6d47056f157573·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(122 the·first·non-none·result.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.find_map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_find"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/iter[·...·truncated·by·diffoscope;·len:·134,·SHA:·f9a67b0520c850053a598ecaa24d4c1a006e7174ac499ec1e09451cd90ea548e·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(
123 ····&amp;mut·self,123 ····&amp;mut·self,
124 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,124 ····f:·impl·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
125 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·efb03e5c706e0947c6a4490b17f1efb0f1944a7d81f2640b5933212334dd255a·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where125 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>·as·[·...·truncated·by·diffoscope;·len:·464,·SHA:·38b1d27bdc6fd93a0d7e942386ffe94e909033d34def03ec6236baba6643ee81·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
126 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,126 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
Max diff block lines reached; 82908/317140 bytes (26.14%) of diff not shown.
349 KB
./usr/share/doc/rust-doc/html/alloc/slice/struct.Split.html
Max HTML report size reached
346 KB
./usr/share/doc/rust-doc/html/alloc/slice/struct.SplitInclusive.html
Max HTML report size reached
330 KB
./usr/share/doc/rust-doc/html/alloc/slice/struct.SplitInclusiveMut.html
    
Offset 1, 250 lines modifiedOffset 1, 250 lines modified
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="An·iterator·over·the·mutable·subslices·of·the·vector·which·are·separated·by·elements·that·match·`pred`.·Unlike·`SplitMut`,·it·contains·the·matched·parts·in·the·ends·of·the·subslices."><title>SplitInclusiveMut·in·alloc::slice·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»     2025-01-07)»  (built»    from»a»       source» tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Split<wbr>Inclusive<wbr>Mut</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#example"·title="Example">Example</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Debug-for-SplitInclusiveMut%3C'_,+T,+P%3E"·title="Debug">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-SplitInclusiveMut%3C'a,+T,+P%3E"·title="DoubleEndedIterator">DoubleEndedIterator</a></li><li><a·href="#impl-FusedIterator-for-SplitInclusiveMut%3C'_,+T,+P%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-SplitInclusiveMut%3C'a,+T,+P%3E"·title="Iterator">Iterator</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-UnwindSafe-for-SplitInclusiveMut%3C'a,+T,+P%3E"·title="!UnwindSafe">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-SplitInclusiveMut%3C'a,+T,+P%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-SplitInclusiveMut%3C'a,+T,+P%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-SplitInclusiveMut%3C'a,+T,+P%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-SplitInclusiveMut%3C'a,+T,+P%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-SplitInclusiveMut%3C'a,+T,+P%3E"·title="Unpin">Unpin</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>slice</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">alloc</a>::<wbr><a·href="index.html">slice</a></span><h1>Struct·<span·class="struct">SplitInclusiveMut</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.51.0">1.51.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/slice/iter.rs.html#804">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·SplitInclusiveMut&lt;'a,·T,·P&gt;<div·class="where">where1 <!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="An·iterator·over·the·mutable·subslices·of·the·vector·which·are·separated·by·elements·that·match·`pred`.·Unlike·`SplitMut`,·it·contains·the·matched·parts·in·the·ends·of·the·subslices."><title>SplitInclusiveMut·in·alloc::slice·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»     2025-01-07)»  (built»    from»a»       source» tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Split<wbr>Inclusive<wbr>Mut</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#example"·title="Example">Example</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Debug-for-SplitInclusiveMut%3C'_,+T,+P%3E"·title="Debug">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-SplitInclusiveMut%3C'a,+T,+P%3E"·title="DoubleEndedIterator">DoubleEndedIterator</a></li><li><a·href="#impl-FusedIterator-for-SplitInclusiveMut%3C'_,+T,+P%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-SplitInclusiveMut%3C'a,+T,+P%3E"·title="Iterator">Iterator</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-UnwindSafe-for-SplitInclusiveMut%3C'a,+T,+P%3E"·title="!UnwindSafe">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-SplitInclusiveMut%3C'a,+T,+P%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-SplitInclusiveMut%3C'a,+T,+P%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-SplitInclusiveMut%3C'a,+T,+P%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-SplitInclusiveMut%3C'a,+T,+P%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-SplitInclusiveMut%3C'a,+T,+P%3E"·title="Unpin">Unpin</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>slice</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">alloc</a>::<wbr><a·href="index.html">slice</a></span><h1>Struct·<span·class="struct">SplitInclusiveMut</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.51.0">1.51.0</span>···<a·class="src"·href="../../src/core/slice/iter.rs.html#804">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·SplitInclusiveMut&lt;'a,·T,·P&gt;<div·class="where">where
2 ····T:·'a,2 ····T:·'a,
3 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·5846407374f20f525a4a0663ad4488141eafe64513ef82581dc5df5c2d200745·...·]/core/primitive.bool.html">bool</a>,</div>{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>An·iterator·over·the·mutable·subslices·of·the·vector·which·are·separated3 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="../../core/primitive.bool.html">bool</a>,</div>{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>An·iterator·over·the·mutable·subslices·of·the·vector·which·are·separated
4 by·elements·that·match·<code>pred</code>.·Unlike·<code>SplitMut</code>,·it·contains·the·matched4 by·elements·that·match·<code>pred</code>.·Unlike·<code>SplitMut</code>,·it·contains·the·matched
5 parts·in·the·ends·of·the·subslices.</p>5 parts·in·the·ends·of·the·subslices.</p>
6 <p>This·struct·is·created·by·the·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html#method.split_inclusive_mut"·title="method·slice::split_inclusive_mut"><code>split_inclusive_mut</code></a>·method·on·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html"·title="primitive·slice">slices</a>.</p>6 <p>This·struct·is·created·by·the·<a·href="../../core/primitive.slice.html#method.split_inclusive_mut"·title="method·slice::split_inclusive_mut"><code>split_inclusive_mut</code></a>·method·on·<a·href="../../core/primitive.slice.html"·title="primitive·slice">slices</a>.</p>
7 <h2·id="example"><a·class="doc-anchor"·href="#example">§</a>Example</h2>7 <h2·id="example"><a·class="doc-anchor"·href="#example">§</a>Example</h2>
8 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span><span·class="kw-2">mut·</span>v·=·[<span·class="number">10</span>,·<span·class="number">40</span>,·<span·class="number">30</span>,·<span·class="number">20</span>,·<span·class="number">60</span>,·<span·class="number">50</span>];8 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span><span·class="kw-2">mut·</span>v·=·[<span·class="number">10</span>,·<span·class="number">40</span>,·<span·class="number">30</span>,·<span·class="number">20</span>,·<span·class="number">60</span>,·<span·class="number">50</span>];
9 <span·class="kw">let·</span>iter·=·v.split_inclusive_mut(|num|·<span·class="kw-2">*</span>num·%·<span·class="number">3·</span>==·<span·class="number">0</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++let+mut+v+=+%5B10,+40,+30,+20,+60,+50%5D;%0A++++let+iter+=+v.split_inclusive_mut(%7Cnum%7C+*num+%25+3+==+0);%0A%7D&amp;edition=2021"></a></div>9 <span·class="kw">let·</span>iter·=·v.split_inclusive_mut(|num|·<span·class="kw-2">*</span>num·%·<span·class="number">3·</span>==·<span·class="number">0</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++let+mut+v+=+%5B10,+40,+30,+20,+60,+50%5D;%0A++++let+iter+=+v.split_inclusive_mut(%7Cnum%7C+*num+%25+3+==+0);%0A%7D&amp;edition=2021"></a></div>
10 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-SplitInclusiveMut%3C'_,+T,+P%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.51.0">1.51.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/slice/iter.rs.html#822-824">Source</a></span><a·href="#impl-Debug-for-SplitInclusiveMut%3C'_,+T,+P%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·P&gt;·<a·class="trait"·href="../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.SplitInclusiveMut.html"·title="struct·alloc::slice::SplitInclusiveMut">SplitInclusiveMut</a>&lt;'_,·T,·P&gt;<div·class="where">where10 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-SplitInclusiveMut%3C'_,+T,+P%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.51.0">1.51.0</span>···<a·class="src"·href="../../src/core/slice/iter.rs.html#822-824">Source</a></span><a·href="#impl-Debug-for-SplitInclusiveMut%3C'_,+T,+P%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·P&gt;·<a·class="trait"·href="../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.SplitInclusiveMut.html"·title="struct·alloc::slice::SplitInclusiveMut">SplitInclusiveMut</a>&lt;'_,·T,·P&gt;<div·class="where">where
11 ····T:·<a·class="trait"·href="../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,11 ····T:·<a·class="trait"·href="../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,
12 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·1667,·SHA:·f44af12962bfec89d04213977542688683e25b6d708263c3cc4a7c2f8db2bcf0·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIterator</a>·for·<a·class="struct"·href="struct.SplitInclusiveMut.html"·title="struct·alloc::slice::SplitInclusiveMut">SplitInclusiveMut</a>&lt;'a,·T,·P&gt;<div·class="where">where12 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="../../core/primitive.bool.html">bool</a>,</div></h3></[·...·truncated·by·diffoscope;·len:·1451,·SHA:·23ab74523ba688a129f48790d50d5ebd8934e9cd8c90dd38a77a67a05793aff5·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIterator</a>·for·<a·class="struct"·href="struct.SplitInclusiveMut.html"·title="struct·alloc::slice::SplitInclusiveMut">SplitInclusiveMut</a>&lt;'a,·T,·P&gt;<div·class="where">where
13 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·4402,·SHA:·9c923314f7beb0a58a8a28910fe45768717bcb2e69aa864fe8a31db06aa94836·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold"·class="fn">try_rfold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where13 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="../../core/primitive.bool.html">bool</a>,</div></h3></[·...·truncated·by·diffoscope;·len:·3754,·SHA:·33682ea39f2dc969b1d7db2fb922daafa465c26dcb4204802645d971ba2f2fb0·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold"·class="fn">try_rfold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where
14 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,14 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
15 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,15 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
16 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>This·is·the·reverse·version·of·<a·href="https://doc.rust-lang.org/1.8[·...·truncated·by·diffoscope;·len:·3,·SHA:·fbd04e1aae9ce0b11a8946e2c9ac2619f7428a64d32d01eff61d809dcb70ee8e·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·title="method·core::iter::traits::iterator::Iterator::try_fold"><code>Iterator::try_fold()</code></a>:·it·takes16 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>This·is·the·reverse·version·of·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·title="method·core::iter::traits::iterator::Iterator::try_fold"><code>Iterator::try_fold()</code></a>:·it·takes
17 elements·starting·from·the·back·of·the·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfold"·class="method·trait-impl"><span·clas[·...·truncated·by·diffoscope;·len:·325,·SHA:·7ffdb06a8ab3810207a1c974783822231eaf1d82fd94bcf810dd7b3181149b7b·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold"·class="fn">rfold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where17 elements·starting·from·the·back·of·the·iterator.·<a·href="../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfold"·class="method·trait-impl"><span·class="rightside"><span·class="[·...·truncated·by·diffoscope;·len:·244,·SHA:·6c4fe3f75fed1f00ec73ae6acd6efe929fb891f07f47293eec1013d32fc0fbe1·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold"·class="fn">rfold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where
18 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,18 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
19 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·reduces·the·iterator’s·elements·to·a·single,19 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·reduces·the·iterator’s·elements·to·a·single,
20 final·value,·starting·from·the·back.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfind"·class="method·trait-impl"><span·class="r[·...·truncated·by·diffoscope;·len:·665,·SHA:·fde89feb7c0e70eefa34d688476ca36a70115bec8150dbf9b1a3c359f72dd28d·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where20 final·value,·starting·from·the·back.·<a·href="../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfind"·class="method·trait-impl"><span·class="rightside"><span·class="sinc[·...·truncated·by·diffoscope;·len:·530,·SHA:·75a595bf6f9813abee32ae86d68f5de961884ee60e7080e18fb9c73b8e22c5f0·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
21 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,21 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
22 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·997,·SHA:·e70e1ccaacce4453e6cecbe9f42a9487c7bc10ae1554cf70f66175db583306ce·...·]/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::Iterator">Iterator</a>·for·<a·class="struct"·href="struct.SplitInclusiveMut.html"·title="struct·alloc::slice::SplitInclusiveMut">SplitInclusiveMut</a>&lt;'a,·T,·P&gt;<div·class="where">where22 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·835,·SHA:·db31baf4150af9c5c94cbd837da893ccd34844df2f775e3e5e71a26641d48787·...·]/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::Iterator">Iterator</a>·for·<a·class="struct"·href="struct.SplitInclusiveMut.html"·title="struct·alloc::slice::SplitInclusiveMut">SplitInclusiveMut</a>&lt;'a,·T,·P&gt;<div·class="where">where
23 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·3195,·SHA:·c7245aa0b10918a8ce0944f28b91398a6f1687435c3cfd33fbf3675844b350c5·...·]/core/primitive.usize.html">usize</a>&gt;(23 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="../../core/primitive.bool.html">bool</a>,</div></h3></[·...·truncated·by·diffoscope;·len:·2655,·SHA:·6b7fd2b384669f5fd7b591c563fd13f6018aaa7b8d3246556baddaf6502d4818·...·]/core/primitive.usize.html">usize</a>&gt;(
24 ····&amp;mut·self,24 ····&amp;mut·self,
25 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·4f557a9b49151e0be8c52ffd68f1def4469c08164239dc8bef8df2040551c5ef·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where25 )·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">It[·...·truncated·by·diffoscope;·len:·246,·SHA:·baf6c8e6f3d5dbac69324111240b1587dbb858d42149cae1ee895a165289ff4f·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where
26 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·962,·SHA:·116e4ec2ae3d9655c3d115eaf50f435f5323b4e48b84de734c79d2a09b3c02f2·...·]/core/primitive.usize.html">usize</a><div·class="where">where26 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_next_ch[·...·truncated·by·diffoscope;·len:·827,·SHA:·2479cde9ab5aa3e18f76cf74cf7889a3de87c66e1745f27cf29bd34c4d30dbdf·...·]/core/primitive.usize.html">usize</a><div·class="where">where
27 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·counting·the·number·of·iterations·and·returning·it.·<a·href="https://doc.[·...·truncated·by·diffoscope;·len:·837,·SHA:·47e25b6f9687bcc1d1fcdf9842fb085e6aba767d70531028f948636b80563dfc·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where27 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·counting·the·number·of·iterations·and·returning·it.·<a·href="../../core/iter/traits/iterator/trait.I[·...·truncated·by·diffoscope;·len:·675,·SHA:·1ce62884794ba87e19a0c96720594ee19d36bf34d9a84160028eeff78b648fa9·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
28 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·returning·the·last·element.·<a·href="https://doc.rust-lang.org/1.84.0/cor[·...·truncated·by·diffoscope;·len:·3504,·SHA:·ec43d0f6d8d2a1e0fb7a684c382b9934abe1250844e53cce08bdfc6017ecb276·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where28 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·returning·the·last·element.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.last[·...·truncated·by·diffoscope;·len:·2964,·SHA:·db62f7c0fcc4ed24f8d8d5c90b4eb970e1ba2f576e1c200c74164f961b4de28e·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where
29 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by29 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by
30 the·given·amount·at·each·iteration.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><sp[·...·truncated·by·diffoscope;·len:·842,·SHA:·945c4509a8daf2f8fbccc5c6e5089e225955911e03a3e411f047f96d52d16862·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where30 the·given·amount·at·each·iteration.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Sta[·...·truncated·by·diffoscope;·len:·680,·SHA:·77241b5118fcbc984cb791fa9f75077307e18056b66492741335faf440cbdabc·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
31 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,31 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
32 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·3b5ce32f9d564c3aa7cf2adc7130e674758d0c0f4f1275b4c3b46a74aa802cb3·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where32 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·1113,·SHA:·ccf22d19f49a25daffdcc6d9226d5107457a8bfd16beccfeff5020d151bdb8bb·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
33 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,33 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
34 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·[·...·truncated·by·diffoscope;·len:·868,·SHA:·abdbf27ccc84063c7040d8fa3da9d0bda5ee310a470ef576e15554aee4bd5d21·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where34 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·of·pairs.·<a·href="../../co[·...·truncated·by·diffoscope;·len:·706,·SHA:·f32c568f049122021445a983654582d97ac74064a3e99c3361b348bd7708c1b2·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where
35 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,35 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
36 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent36 ····Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent
37 items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="sr[·...·truncated·by·diffoscope;·len:·427,·SHA:·6e82ad4aad49c2165d869fe30d20a968580a973cdb3a7f4c77f49e16dd59393e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where37 items·of·the·original·iterator.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="src·rightside"·href="../../sr[·...·truncated·by·diffoscope;·len:·319,·SHA:·8babc469a22056fc5a02684b52f9f93ba9c27a3dd2e8443ddc060797054e211e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where
38 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,38 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
39 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>39 ····G:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>
40 between·adjacent·items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightsi[·...·truncated·by·diffoscope;·len:·471,·SHA:·ed10488b7b2ccc3e4cc84a9a57a9695a74c1c964962e8d753cbace12f3318a66·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where40 between·adjacent·items·of·the·original·iterator.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·tit[·...·truncated·by·diffoscope;·len:·363,·SHA:·09aee21fa4172b743a714e2cb5915129575ce0224df49c7343dec38f43b7ecfd·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where
41 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,41 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
42 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each42 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each
43 element.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><spa[·...·truncated·by·diffoscope;·len:·306,·SHA:·61c87c39b177830189b0e4c036d97c40d8b9649d76432c90afb88de59498e8b2·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where43 element.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stab[·...·truncated·by·diffoscope;·len:·225,·SHA:·a0f2490a1a5fd6b44e0ab01199cbbbd6e5463251405d11eaf6798c9b50bbd683·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where
44 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,44 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
45 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·a65da32c5f5ef8335cb607d3b4ab3f8a25877bc2c2e8b44ca9d575caecd5c8a5·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where45 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·754,·SHA:·421e55a5747cab3df1dad40b747b4633f241bdc13a1546bb19b1370788dea27d·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where
46 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,46 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
47 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·6d69c85c69fa789be551ea42d95c33c237d12a04ef157f9ddaaead1177f7771e·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element47 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·59,·SHA:·76969e34965f1923de668a65a9f5c33f73266468c9b96650bcc5fd498e606a6b·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element
48 should·be·yielded.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·489,·SHA:·9bdc636899f4e4e5a26a3a21c9603f72b3fb972865d2f459c38b7e2ac8fed7f1·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where48 should·be·yielded.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·cf812944678f6755720896cf32b330946303afe59f1b1c11adeb6a7f33454c8d·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where
49 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,49 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
50 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·46dbf841c7aecd3f06bd4c944af21650faeac98c46c515dcfe643302618b1ecd·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where50 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·863,·SHA:·c2bab87fa2a70713bd2d34b3dcae8f4ff2341917103b43a1dd505317f15d6cff·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where
51 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as51 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as
52 the·next·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside[·...·truncated·by·diffoscope;·len:·468,·SHA:·52f7ff7f264284c3acc4429ca34d057ded9afa2e3d9d6e07571e252db9a48977·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where52 the·next·value.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title[·...·truncated·by·diffoscope;·len:·360,·SHA:·688416dc1aaaa0be069177270ba9e74b3d1b92521285a109dc7ba86b58c1f22a·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where
53 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·c0180fefce4346b0b4089e5c642521d7716108241c0ce6ec3e910c7a2c7364b4·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods53 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="../../core/iter/adapters/peekable/struct.Peekable.html#method.peek"·title="m[·...·truncated·by·diffoscope;·len:·94,·SHA:·78aeab33f83c647dfe680c1050358c95977e3af17eabde4a04880721ea1a619d·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods
54 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See54 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See
55 their·documentation·for·more·information.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightsid[·...·truncated·by·diffoscope;·len:·498,·SHA:·e4a68861585faec6a5032b3b69d6dfb0f2799b5f387a527d9a1365571ed02069·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where55 their·documentation·for·more·information.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightside"><span·class="since"·titl[·...·truncated·by·diffoscope;·len:·390,·SHA:·5da622ae0e4d00b47239007520070e22568156d6c5b1662db8b80b465934b18c·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where
56 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,56 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
57 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·93281c1f6402743fd61110c11cf676f0f67eddceda801b4eb35e5fe9f85870fd·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where57 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·1018,·SHA:·732548acff5239e9a7b904f32790c90ab3b63522635334128f35e01d37ceaeb6·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where
58 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,58 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
59 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·f1cdbb1ec64f98fabbe1d89c88b03824310926cd7eaa160953ce2452fc3abb77·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where59 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·869,·SHA:·8ec7e525848424d5104dbdd10928d17cfee4e5aee63cdda7ecdbe323b30b59d3·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where
60 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,60 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
61 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·f94a0b2c1396b13b89aca7830197ebf19e2c0e5ba536a9cc25b325a481799510·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where61 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·947,·SHA:·fdd074315a0bfb226f815b1b6ea114c7367886338ffffff233d7f6fc3108769a·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where
62 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="https://doc.rust-lang[·...·truncated·by·diffoscope;·len:·783,·SHA:·c14217b89e3292a50a09192a8857485891fc769f861e1d1fc4322d04295c86ef·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where62 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="../../core/iter/traits/iterator/trait.Iterator.h[·...·truncated·by·diffoscope;·len:·621,·SHA:·484df7f946e7f2f69c3acad8964421c0db8ac5bb40032d11bbd862e20e67704c·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where
63 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer63 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer
64 if·the·underlying·iterator·ends·sooner.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·c[·...·truncated·by·diffoscope;·len:·488,·SHA:·76f753d5a273a09a73127631acaa0ee947326a929f33be291018188793e1af56·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where64 if·the·underlying·iterator·ends·sooner.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·[·...·truncated·by·diffoscope;·len:·380,·SHA:·fa258c7e0b5d583304a69e2d4e19f3d4cc9a9ed830bdf3796eaa0968bdf590b4·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where
65 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,65 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
66 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·07d303586c8ad4e0082d5b44bff8eeda03cdb8f4bdbe46489f9232bca5a43ec6·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but66 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterat[·...·truncated·by·diffoscope;·len:·314,·SHA:·299331ff47adaff3ebc292c53557ad34da957aef932f87ec0444c7f856820410·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but
67 unlike·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·2b20882d9583cee50e0c8b3cf362b27ce0d524db387d4aa4093d622b9370dada·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where67 unlike·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.scan">Read·more[·...·truncated·by·diffoscope;·len:·555,·SHA:·77279e392f259f6d4859f5a7747ee4b4d5315f3af0ac3baebf1d53be3461b312·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where
68 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,68 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
69 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,69 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
70 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·933,·SHA:·4af94b75ba5c1e03d2d70590d2fd0706f13b3080fbff0f5b98e7b109048c403d·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where70 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·771,·SHA:·a1a50c8ca4c13151c7b22ce05c74c449231e1ffe44225beee67ff212fc1d3859·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where
71 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,71 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
72 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.I[·...·truncated·by·diffoscope;·len:·968,·SHA:·e5572ed2f3bdf5970d038da608f2f592d945541207c483c257fe5789efba168a·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where72 ····Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::col[·...·truncated·by·diffoscope;·len:·779,·SHA:·a4e524bd8aa8a1e0a66409d1b462b88093ab51a1f901ff1a788d7ee63d597f4c·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where
73 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,73 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
74 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·3013c0e49b0dade37f8ca096eccc5ceeb03fc79b9d320a4c92486d23b88d1009·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over74 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·54,·SHA:·6acee514e4d8df8979b4bba687b7e0d5dbb0ea4f98a7019e2fb03f3a8058df0f·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over
75 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,75 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="../../core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,
76 the·windows·during·mapping·overlap·as·well.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside">[·...·truncated·by·diffoscope;·len:·454,·SHA:·040991f3914479bcc92615de2b81df7363656323622e5aadc964e1a61917d23e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where76 the·windows·during·mapping·overlap·as·well.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="[·...·truncated·by·diffoscope;·len:·346,·SHA:·b1244a5f92e0573c29e04e883cf8212ba2586013b3687af07b63c29d2e611530·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where
77 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="https://doc.rust-lang.org/1.84.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·0e0294a45242d5ce9a3ab8f95d6d410756415291d92baa7d12283ef1b3ecc3a0·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where77 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="../../core/option/enum.Option.html#variant.None"·title="variant·cor[·...·truncated·by·diffoscope;·len:·679,·SHA:·ec753d6ecf7b9fe81cb270d78e45e053f2702fff74c7a63c2ab8da22b97fea86·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where
78 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,78 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
79 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·a8b562f71802a421f4745f7d1fadf4f70d98030c829e70f27b692e7915267027·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where79 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·635,·SHA:·ee3a5bcc3544c3f17985966634fef69b1708d641ddb7e62aaac76933935c5ef7·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where
80 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="https://doc.rust-lang.org/1.84.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·b3db7d84f203bbc139b1c52912705d19c664dac762898205fce452c9dc3a5318·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where80 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.by_ref">[·...·truncated·by·diffoscope;·len:·415,·SHA:·7e0e075470d2db380bcf0838446659654c982aa2ca7831ed7d0317877855be2a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where
81 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,81 ····B:·<a·class="trait"·href="../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
82 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·431,·SHA:·a705a23f6d810357e7dcac670743884665ffcccfb9b780d0aa03720be8ca5625·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(82 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.collect">Read[·...·truncated·by·diffoscope;·len:·323,·SHA:·80e0dde3814a6e7cf4e30949627abc841ab4e98e2a920efb248777e22708682d·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(
83 ····&amp;mut·self,83 ····&amp;mut·self,
84 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.h[·...·truncated·by·diffoscope;·len:·479,·SHA:·fa749442d890055f86ceb34f411c84fd7ea08302b336d786d1ca36fe5868b020·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where84 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&g[·...·truncated·by·diffoscope;·len:·344,·SHA:·c06c6401df0a7150633e94cc973521da42e09819b07be80ba18d6acb696860a9·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
85 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,85 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
86 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>,86 ····Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>,
87 ····&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.h[·...·truncated·by·diffoscope;·len:·300,·SHA:·3bff089180bac38df7f42b87556fae7641185b89a949c284f53e3ac718a6decb·...·]/core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;B&gt;,87 ····&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&g[·...·truncated·by·diffoscope;·len:·192,·SHA:·039ceb6ce31fc6b1871e3e366efbd0f164f4a6cc1bc25554bba598b0ee820cca·...·]/core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;B&gt;,
88 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/itera[·...·truncated·by·diffoscope;·len:·323,·SHA:·b5c51f161dc9d77fd81d1fd23cc71fbf42ac00f3168cf9e41ebaaa2b6eb25363·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if88 ····B:·<a·class="trait"·href="../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="ty[·...·truncated·by·diffoscope;·len:·215,·SHA:·ddb8fbd12147eecef1697edd4c63187cc514ab4b851290335adfcccc3fa429ba·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if
89 a·failure·is·encountered.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·ri[·...·truncated·by·diffoscope;·len:·521,·SHA:·6a54376815dab985ec8cc35604d035e98e3003b1563c9b41e70966084505542b·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where89 a·failure·is·encountered.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/co[·...·truncated·by·diffoscope;·len:·386,·SHA:·d46a776c329de4f757930edda252586c2cdd85c6956b7b2f68448da33ee0625e·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
90 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,90 ····E:·<a·class="trait"·href="../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
91 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·975,·SHA:·94f7f970236ba59ba5f1415764a0e3ab2f3093c6b79e76c25c797ac24a3c4d09·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where91 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_collect[·...·truncated·by·diffoscope;·len:·840,·SHA:·1ee6fbe4deb3d959e9ade58fb7ed3efa79d09721ed02fbb5f5f82aae6aa1425d·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
92 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,92 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
93 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·b480ec650ba000fe7cb67df58fc0351299638ee3e8f00db18f74ca24d69f9894·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,93 ····B:·<a·class="trait"·href="../../core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtyp[·...·truncated·by·diffoscope;·len:·14,·SHA:·4105980ca4887a52797067761af25a11e3de6069cd8d7c8ce82cd885bb798fe8·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
94 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·fdf5a1845f070855ba2cfd0c8c85460ea5cb646c4d3b42a8431bf21489c73701·...·]/core/primitive.usize.html">usize</a><div·class="where">where94 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·806,·SHA:·4d554b733db12e71a31ec2477a31408041941b0e2b0dc910904ecf2fced9f65b·...·]/core/primitive.usize.html">usize</a><div·class="where">where
95 ····T:·'a,95 ····T:·'a,
96 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·1fc250e258e9e42e4fa3e22f86ecd57057e9ff23e47af1aec778076a7a891134·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,96 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIter[·...·truncated·by·diffoscope;·len:·51,·SHA:·c9be73bbed9d11ecac2a179f480a640f51d6255f26712667ffdabc72c1fc7fb0·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,
97 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·5846407374f20f525a4a0663ad4488141eafe64513ef82581dc5df5c2d200745·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_partition_in_place</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62543">#62543</a>)</span></div></span><div·class='docblock'>Reorders·the·elements·of·this·iterator·<em>in-place</em>·according·to·the·given·predicate,97 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="../../core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_partition_in_place</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62543">#62543</a>)</span></div></span><div·class='docblock'>Reorders·the·elements·of·this·iterator·<em>in-place</em>·according·to·the·given·predicate,
98 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.98 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.
99 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.partition_in_place">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_partitioned"·class="method·trait-impl"><a·clas[·...·truncated·by·diffoscope;·len:·431,·SHA:·4aa7d028146c72d45794efc19a376d4bee3b75eda61ff46d969e440b3dbfa1b0·...·]/core/primitive.bool.html">bool</a><div·class="where">where99 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.partition_in_place">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_partitioned"·class="method·trait-impl"><a·class="src·rightside"·href="../[·...·truncated·by·diffoscope;·len:·323,·SHA:·bfc44418fa28079222aab80e2baccdaffb2d067bbe5d1b5162202d268ad628d7·...·]/core/primitive.bool.html">bool</a><div·class="where">where
100 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,100 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
101 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·fcd03e71f79faad6d9b9a12045d59f4dfabc78e5aefebcabc9c1a5be45e31125·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,101 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·54,·SHA:·d5ac304cc26edf57442227b641dd21c427d0f9cb322b79986f5b15fc49f867b0·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,
102 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><span·class="righ[·...·truncated·by·diffoscope;·len:·319,·SHA:·9b9df13f2f4e5b4dde3908515766e1a474fa30bcb7edc98c15665a016e677c2a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where102 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><span·class="rightside"><span·class="since"·[·...·truncated·by·diffoscope;·len:·238,·SHA:·af6ab768457e0afa1532b80c4296ae18061dac4c765922889b13eead3e5492db·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where
103 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,103 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
104 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,104 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
105 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns105 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns
106 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rights[·...·truncated·by·diffoscope;·len:·321,·SHA:·619fd774190944998148325de99aaa75de66ce4b7e26579fd342c564923a5652·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where106 successfully,·producing·a·single,·final·value.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"·ti[·...·truncated·by·diffoscope;·len:·240,·SHA:·125e84deea747ccbe139725d028362287beed6a89ab9da3a3aabd7df537abc59·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where
107 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,107 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
108 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,108 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
109 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the109 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="../../core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the
110 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·307,·SHA:·5975144fd8566efa93ad1ccec09297e280924b7372e08681d2103702124e2c52·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where110 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title=[·...·truncated·by·diffoscope;·len:·226,·SHA:·a7510e9271e68887d9e2681c6bc28312cec9ac38883128845f52742935a160a9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where
111 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,111 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
112 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,112 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,
113 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span[·...·truncated·by·diffoscope;·len:·619,·SHA:·8813f54846438870310d5f5dfabd2335a9dbf51e9da2e4cd681bcb6077d39628·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where113 returning·the·final·result.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stabl[·...·truncated·by·diffoscope;·len:·484,·SHA:·5f42e8d5ff08f4c76870e6cb9165e054f9a0d99051d9886ccd43d5c8a91e1fbc·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
114 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,114 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
115 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·084691f7fc4e7f4da7db385127d0ce8d2d52f6740757129a65910c4db0dc180d·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing115 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·244,·SHA:·f09ac7e818239538c3f3208cb5c76076c24a0153797eb762821d5bf2a382d83b·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing
116 operation.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·217,·SHA:·447ae00256be3de069c602a6c04889808c883eae6fa349d023f53bdd5570ecae·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(116 operation.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/iter[·...·truncated·by·diffoscope;·len:·136,·SHA:·97e3ee132585582ec7077e3bbd86406d8a2dcfc97dce7fd52b49af3ec1b58622·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(
117 ····&amp;mut·self,117 ····&amp;mut·self,
118 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R, 
119 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.T[·...·truncated·by·diffoscope;·len:·950,·SHA:·817376e71f7a0d170bfbd4b7264c15d324f49c65106c49349d11a077842aa533·...·]118 ····f:·impl·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core:[·...·truncated·by·diffoscope;·len:·238,·SHA:·a52edc1a1ce1db5dd6e620dbfe5acb58fdc6d84f2320cef02845988aa54e5c55·...·]
 119 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;&gt;&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
120 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,120 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
121 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,121 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
122 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·764ea8f08626b05426a76738d54ebb2d640042494d76cba8c20d868bfdc07a73·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the122 ····&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>:·<a[·...·truncated·by·diffoscope;·len:·277,·SHA:·0dd064909226a9691486376740de1e17aa133a7ae2f635bee3feaa9b19d7b580·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the
123 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><span·class="rightside"><s[·...·truncated·by·diffoscope;·len:·476,·SHA:·aef721c14147dea2fbec70dcfa76916b3f1273bed8304f4c9db310ca23d1e4b1·...·]/core/primitive.bool.html">bool</a><div·class="where">where123 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="St[·...·truncated·by·diffoscope;·len:·368,·SHA:·6dbfbc90b7cfda9017074212ce0beeb560c8f9ba918ba7b00292e34daa531cc2·...·]/core/primitive.bool.html">bool</a><div·class="where">where
124 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,124 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
125 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·7c48e62c73a40a5cb5ebbf4a22cd789b342a88ad3d855022191f2bae33c736c6·...·]/core/primitive.bool.html">bool</a><div·class="where">where125 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·829,·SHA:·c413d95d1072acd820201f12ffb54d04a6c7f3b732f7de46115ba40b4eb1bd3f·...·]/core/primitive.bool.html">bool</a><div·class="where">where
126 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,126 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
Max diff block lines reached; 152876/337446 bytes (45.30%) of diff not shown.
328 KB
./usr/share/doc/rust-doc/html/alloc/slice/struct.SplitMut.html
    
Offset 1, 249 lines modifiedOffset 1, 249 lines modified
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="An·iterator·over·the·mutable·subslices·of·the·vector·which·are·separated·by·elements·that·match·`pred`."><title>SplitMut·in·alloc::slice·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»2025-01-07)»     (built»       from»   a»  source»    tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Split<wbr>Mut</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#example"·title="Example">Example</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Debug-for-SplitMut%3C'_,+T,+P%3E"·title="Debug">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-SplitMut%3C'a,+T,+P%3E"·title="DoubleEndedIterator">DoubleEndedIterator</a></li><li><a·href="#impl-FusedIterator-for-SplitMut%3C'_,+T,+P%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-SplitMut%3C'a,+T,+P%3E"·title="Iterator">Iterator</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-UnwindSafe-for-SplitMut%3C'a,+T,+P%3E"·title="!UnwindSafe">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-SplitMut%3C'a,+T,+P%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-SplitMut%3C'a,+T,+P%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-SplitMut%3C'a,+T,+P%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-SplitMut%3C'a,+T,+P%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-SplitMut%3C'a,+T,+P%3E"·title="Unpin">Unpin</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>slice</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">alloc</a>::<wbr><a·href="index.html">slice</a></span><h1>Struct·<span·class="struct">SplitMut</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/slice/iter.rs.html#675">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·SplitMut&lt;'a,·T,·P&gt;<div·class="where">where1 <!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="An·iterator·over·the·mutable·subslices·of·the·vector·which·are·separated·by·elements·that·match·`pred`."><title>SplitMut·in·alloc::slice·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»2025-01-07)»     (built»       from»   a»  source»    tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Split<wbr>Mut</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#example"·title="Example">Example</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Debug-for-SplitMut%3C'_,+T,+P%3E"·title="Debug">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-SplitMut%3C'a,+T,+P%3E"·title="DoubleEndedIterator">DoubleEndedIterator</a></li><li><a·href="#impl-FusedIterator-for-SplitMut%3C'_,+T,+P%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-SplitMut%3C'a,+T,+P%3E"·title="Iterator">Iterator</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-UnwindSafe-for-SplitMut%3C'a,+T,+P%3E"·title="!UnwindSafe">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-SplitMut%3C'a,+T,+P%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-SplitMut%3C'a,+T,+P%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-SplitMut%3C'a,+T,+P%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-SplitMut%3C'a,+T,+P%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-SplitMut%3C'a,+T,+P%3E"·title="Unpin">Unpin</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>slice</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">alloc</a>::<wbr><a·href="index.html">slice</a></span><h1>Struct·<span·class="struct">SplitMut</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../src/core/slice/iter.rs.html#675">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·SplitMut&lt;'a,·T,·P&gt;<div·class="where">where
2 ····T:·'a,2 ····T:·'a,
3 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·5846407374f20f525a4a0663ad4488141eafe64513ef82581dc5df5c2d200745·...·]/core/primitive.bool.html">bool</a>,</div>{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>An·iterator·over·the·mutable·subslices·of·the·vector·which·are·separated3 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="../../core/primitive.bool.html">bool</a>,</div>{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>An·iterator·over·the·mutable·subslices·of·the·vector·which·are·separated
4 by·elements·that·match·<code>pred</code>.</p>4 by·elements·that·match·<code>pred</code>.</p>
5 <p>This·struct·is·created·by·the·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html#method.split_mut"·title="method·slice::split_mut"><code>split_mut</code></a>·method·on·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html"·title="primitive·slice">slices</a>.</p>5 <p>This·struct·is·created·by·the·<a·href="../../core/primitive.slice.html#method.split_mut"·title="method·slice::split_mut"><code>split_mut</code></a>·method·on·<a·href="../../core/primitive.slice.html"·title="primitive·slice">slices</a>.</p>
6 <h2·id="example"><a·class="doc-anchor"·href="#example">§</a>Example</h2>6 <h2·id="example"><a·class="doc-anchor"·href="#example">§</a>Example</h2>
7 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span><span·class="kw-2">mut·</span>v·=·[<span·class="number">10</span>,·<span·class="number">40</span>,·<span·class="number">30</span>,·<span·class="number">20</span>,·<span·class="number">60</span>,·<span·class="number">50</span>];7 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span><span·class="kw-2">mut·</span>v·=·[<span·class="number">10</span>,·<span·class="number">40</span>,·<span·class="number">30</span>,·<span·class="number">20</span>,·<span·class="number">60</span>,·<span·class="number">50</span>];
8 <span·class="kw">let·</span>iter·=·v.split_mut(|num|·<span·class="kw-2">*</span>num·%·<span·class="number">3·</span>==·<span·class="number">0</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++let+mut+v+=+%5B10,+40,+30,+20,+60,+50%5D;%0A++++let+iter+=+v.split_mut(%7Cnum%7C+*num+%25+3+==+0);%0A%7D&amp;edition=2021"></a></div>8 <span·class="kw">let·</span>iter·=·v.split_mut(|num|·<span·class="kw-2">*</span>num·%·<span·class="number">3·</span>==·<span·class="number">0</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++let+mut+v+=+%5B10,+40,+30,+20,+60,+50%5D;%0A++++let+iter+=+v.split_mut(%7Cnum%7C+*num+%25+3+==+0);%0A%7D&amp;edition=2021"></a></div>
9 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-SplitMut%3C'_,+T,+P%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.9.0">1.9.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/slice/iter.rs.html#692-694">Source</a></span><a·href="#impl-Debug-for-SplitMut%3C'_,+T,+P%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·P&gt;·<a·class="trait"·href="../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.SplitMut.html"·title="struct·alloc::slice::SplitMut">SplitMut</a>&lt;'_,·T,·P&gt;<div·class="where">where9 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-SplitMut%3C'_,+T,+P%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.9.0">1.9.0</span>···<a·class="src"·href="../../src/core/slice/iter.rs.html#692-694">Source</a></span><a·href="#impl-Debug-for-SplitMut%3C'_,+T,+P%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·P&gt;·<a·class="trait"·href="../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.SplitMut.html"·title="struct·alloc::slice::SplitMut">SplitMut</a>&lt;'_,·T,·P&gt;<div·class="where">where
10 ····T:·<a·class="trait"·href="../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,10 ····T:·<a·class="trait"·href="../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,
11 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·1647,·SHA:·fa94d5546931070b8ce7d4752323625b8e4635ddd1c9cf8b396f8d87cae1b5d2·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIterator</a>·for·<a·class="struct"·href="struct.SplitMut.html"·title="struct·alloc::slice::SplitMut">SplitMut</a>&lt;'a,·T,·P&gt;<div·class="where">where11 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="../../core/primitive.bool.html">bool</a>,</div></h3></[·...·truncated·by·diffoscope;·len:·1431,·SHA:·e516b9cd45274543460d0808f2d555140b9f064930e0eeb9e5cd82806730f043·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIterator</a>·for·<a·class="struct"·href="struct.SplitMut.html"·title="struct·alloc::slice::SplitMut">SplitMut</a>&lt;'a,·T,·P&gt;<div·class="where">where
12 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·4402,·SHA:·5d5736f73cfe5c1bcb5309c8f22ce938123ffdd759b28be1e402e603c4572935·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold"·class="fn">try_rfold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where12 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="../../core/primitive.bool.html">bool</a>,</div></h3></[·...·truncated·by·diffoscope;·len:·3754,·SHA:·cab757f7fad0d11158f2e7de811fd49cc4fd75667b0b73a56991b13455ae113d·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold"·class="fn">try_rfold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where
13 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,13 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
14 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,14 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
15 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>This·is·the·reverse·version·of·<a·href="https://doc.rust-lang.org/1.8[·...·truncated·by·diffoscope;·len:·3,·SHA:·fbd04e1aae9ce0b11a8946e2c9ac2619f7428a64d32d01eff61d809dcb70ee8e·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·title="method·core::iter::traits::iterator::Iterator::try_fold"><code>Iterator::try_fold()</code></a>:·it·takes15 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>This·is·the·reverse·version·of·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·title="method·core::iter::traits::iterator::Iterator::try_fold"><code>Iterator::try_fold()</code></a>:·it·takes
16 elements·starting·from·the·back·of·the·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfold"·class="method·trait-impl"><span·clas[·...·truncated·by·diffoscope;·len:·325,·SHA:·7ffdb06a8ab3810207a1c974783822231eaf1d82fd94bcf810dd7b3181149b7b·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold"·class="fn">rfold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where16 elements·starting·from·the·back·of·the·iterator.·<a·href="../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfold"·class="method·trait-impl"><span·class="rightside"><span·class="[·...·truncated·by·diffoscope;·len:·244,·SHA:·6c4fe3f75fed1f00ec73ae6acd6efe929fb891f07f47293eec1013d32fc0fbe1·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold"·class="fn">rfold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where
17 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,17 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
18 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·reduces·the·iterator’s·elements·to·a·single,18 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·reduces·the·iterator’s·elements·to·a·single,
19 final·value,·starting·from·the·back.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfind"·class="method·trait-impl"><span·class="r[·...·truncated·by·diffoscope;·len:·665,·SHA:·fde89feb7c0e70eefa34d688476ca36a70115bec8150dbf9b1a3c359f72dd28d·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where19 final·value,·starting·from·the·back.·<a·href="../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfind"·class="method·trait-impl"><span·class="rightside"><span·class="sinc[·...·truncated·by·diffoscope;·len:·530,·SHA:·75a595bf6f9813abee32ae86d68f5de961884ee60e7080e18fb9c73b8e22c5f0·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
20 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,20 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
21 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·977,·SHA:·5a81e23397bbea0da45fa68b9c6803b6194a67651bc76fcbd549cf6fbbf7708c·...·]/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::Iterator">Iterator</a>·for·<a·class="struct"·href="struct.SplitMut.html"·title="struct·alloc::slice::SplitMut">SplitMut</a>&lt;'a,·T,·P&gt;<div·class="where">where21 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·815,·SHA:·abad61297a3b6e242f517e5efd255577c8c35c6c52c0405038936592bd9061d8·...·]/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::Iterator">Iterator</a>·for·<a·class="struct"·href="struct.SplitMut.html"·title="struct·alloc::slice::SplitMut">SplitMut</a>&lt;'a,·T,·P&gt;<div·class="where">where
22 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·3195,·SHA:·20c6b9f839a65ba104f884158e5f4138ad1d03305d93a45d8de21d363201e433·...·]/core/primitive.usize.html">usize</a>&gt;(22 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="../../core/primitive.bool.html">bool</a>,</div></h3></[·...·truncated·by·diffoscope;·len:·2655,·SHA:·cc3b2a1eeb2d234a99e95c1267ffcacd771b589ea1a2b8a7f364a8fe3ee3f817·...·]/core/primitive.usize.html">usize</a>&gt;(
23 ····&amp;mut·self,23 ····&amp;mut·self,
24 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·4f557a9b49151e0be8c52ffd68f1def4469c08164239dc8bef8df2040551c5ef·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where24 )·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">It[·...·truncated·by·diffoscope;·len:·246,·SHA:·baf6c8e6f3d5dbac69324111240b1587dbb858d42149cae1ee895a165289ff4f·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where
25 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·962,·SHA:·116e4ec2ae3d9655c3d115eaf50f435f5323b4e48b84de734c79d2a09b3c02f2·...·]/core/primitive.usize.html">usize</a><div·class="where">where25 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_next_ch[·...·truncated·by·diffoscope;·len:·827,·SHA:·2479cde9ab5aa3e18f76cf74cf7889a3de87c66e1745f27cf29bd34c4d30dbdf·...·]/core/primitive.usize.html">usize</a><div·class="where">where
26 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·counting·the·number·of·iterations·and·returning·it.·<a·href="https://doc.[·...·truncated·by·diffoscope;·len:·837,·SHA:·47e25b6f9687bcc1d1fcdf9842fb085e6aba767d70531028f948636b80563dfc·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where26 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·counting·the·number·of·iterations·and·returning·it.·<a·href="../../core/iter/traits/iterator/trait.I[·...·truncated·by·diffoscope;·len:·675,·SHA:·1ce62884794ba87e19a0c96720594ee19d36bf34d9a84160028eeff78b648fa9·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
27 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·returning·the·last·element.·<a·href="https://doc.rust-lang.org/1.84.0/cor[·...·truncated·by·diffoscope;·len:·3504,·SHA:·ec43d0f6d8d2a1e0fb7a684c382b9934abe1250844e53cce08bdfc6017ecb276·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where27 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·returning·the·last·element.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.last[·...·truncated·by·diffoscope;·len:·2964,·SHA:·db62f7c0fcc4ed24f8d8d5c90b4eb970e1ba2f576e1c200c74164f961b4de28e·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where
28 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by28 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by
29 the·given·amount·at·each·iteration.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><sp[·...·truncated·by·diffoscope;·len:·842,·SHA:·945c4509a8daf2f8fbccc5c6e5089e225955911e03a3e411f047f96d52d16862·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where29 the·given·amount·at·each·iteration.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Sta[·...·truncated·by·diffoscope;·len:·680,·SHA:·77241b5118fcbc984cb791fa9f75077307e18056b66492741335faf440cbdabc·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
30 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,30 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
31 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·3b5ce32f9d564c3aa7cf2adc7130e674758d0c0f4f1275b4c3b46a74aa802cb3·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where31 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·1113,·SHA:·ccf22d19f49a25daffdcc6d9226d5107457a8bfd16beccfeff5020d151bdb8bb·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
32 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,32 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
33 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·[·...·truncated·by·diffoscope;·len:·868,·SHA:·abdbf27ccc84063c7040d8fa3da9d0bda5ee310a470ef576e15554aee4bd5d21·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where33 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·of·pairs.·<a·href="../../co[·...·truncated·by·diffoscope;·len:·706,·SHA:·f32c568f049122021445a983654582d97ac74064a3e99c3361b348bd7708c1b2·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where
34 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,34 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
35 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent35 ····Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent
36 items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="sr[·...·truncated·by·diffoscope;·len:·427,·SHA:·6e82ad4aad49c2165d869fe30d20a968580a973cdb3a7f4c77f49e16dd59393e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where36 items·of·the·original·iterator.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="src·rightside"·href="../../sr[·...·truncated·by·diffoscope;·len:·319,·SHA:·8babc469a22056fc5a02684b52f9f93ba9c27a3dd2e8443ddc060797054e211e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where
37 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,37 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
38 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>38 ····G:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>
39 between·adjacent·items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightsi[·...·truncated·by·diffoscope;·len:·471,·SHA:·ed10488b7b2ccc3e4cc84a9a57a9695a74c1c964962e8d753cbace12f3318a66·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where39 between·adjacent·items·of·the·original·iterator.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·tit[·...·truncated·by·diffoscope;·len:·363,·SHA:·09aee21fa4172b743a714e2cb5915129575ce0224df49c7343dec38f43b7ecfd·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where
40 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,40 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
41 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each41 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each
42 element.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><spa[·...·truncated·by·diffoscope;·len:·306,·SHA:·61c87c39b177830189b0e4c036d97c40d8b9649d76432c90afb88de59498e8b2·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where42 element.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stab[·...·truncated·by·diffoscope;·len:·225,·SHA:·a0f2490a1a5fd6b44e0ab01199cbbbd6e5463251405d11eaf6798c9b50bbd683·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where
43 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,43 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
44 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·a65da32c5f5ef8335cb607d3b4ab3f8a25877bc2c2e8b44ca9d575caecd5c8a5·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where44 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·754,·SHA:·421e55a5747cab3df1dad40b747b4633f241bdc13a1546bb19b1370788dea27d·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where
45 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,45 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
46 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·6d69c85c69fa789be551ea42d95c33c237d12a04ef157f9ddaaead1177f7771e·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element46 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·59,·SHA:·76969e34965f1923de668a65a9f5c33f73266468c9b96650bcc5fd498e606a6b·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element
47 should·be·yielded.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·489,·SHA:·9bdc636899f4e4e5a26a3a21c9603f72b3fb972865d2f459c38b7e2ac8fed7f1·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where47 should·be·yielded.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·cf812944678f6755720896cf32b330946303afe59f1b1c11adeb6a7f33454c8d·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where
48 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,48 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
49 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·46dbf841c7aecd3f06bd4c944af21650faeac98c46c515dcfe643302618b1ecd·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where49 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·863,·SHA:·c2bab87fa2a70713bd2d34b3dcae8f4ff2341917103b43a1dd505317f15d6cff·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where
50 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as50 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as
51 the·next·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside[·...·truncated·by·diffoscope;·len:·468,·SHA:·52f7ff7f264284c3acc4429ca34d057ded9afa2e3d9d6e07571e252db9a48977·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where51 the·next·value.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title[·...·truncated·by·diffoscope;·len:·360,·SHA:·688416dc1aaaa0be069177270ba9e74b3d1b92521285a109dc7ba86b58c1f22a·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where
52 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·c0180fefce4346b0b4089e5c642521d7716108241c0ce6ec3e910c7a2c7364b4·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods52 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="../../core/iter/adapters/peekable/struct.Peekable.html#method.peek"·title="m[·...·truncated·by·diffoscope;·len:·94,·SHA:·78aeab33f83c647dfe680c1050358c95977e3af17eabde4a04880721ea1a619d·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods
53 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See53 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See
54 their·documentation·for·more·information.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightsid[·...·truncated·by·diffoscope;·len:·498,·SHA:·e4a68861585faec6a5032b3b69d6dfb0f2799b5f387a527d9a1365571ed02069·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where54 their·documentation·for·more·information.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightside"><span·class="since"·titl[·...·truncated·by·diffoscope;·len:·390,·SHA:·5da622ae0e4d00b47239007520070e22568156d6c5b1662db8b80b465934b18c·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where
55 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,55 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
56 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·93281c1f6402743fd61110c11cf676f0f67eddceda801b4eb35e5fe9f85870fd·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where56 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·1018,·SHA:·732548acff5239e9a7b904f32790c90ab3b63522635334128f35e01d37ceaeb6·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where
57 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,57 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
58 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·f1cdbb1ec64f98fabbe1d89c88b03824310926cd7eaa160953ce2452fc3abb77·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where58 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·869,·SHA:·8ec7e525848424d5104dbdd10928d17cfee4e5aee63cdda7ecdbe323b30b59d3·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where
59 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,59 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
60 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·f94a0b2c1396b13b89aca7830197ebf19e2c0e5ba536a9cc25b325a481799510·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where60 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·947,·SHA:·fdd074315a0bfb226f815b1b6ea114c7367886338ffffff233d7f6fc3108769a·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where
61 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="https://doc.rust-lang[·...·truncated·by·diffoscope;·len:·783,·SHA:·c14217b89e3292a50a09192a8857485891fc769f861e1d1fc4322d04295c86ef·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where61 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="../../core/iter/traits/iterator/trait.Iterator.h[·...·truncated·by·diffoscope;·len:·621,·SHA:·484df7f946e7f2f69c3acad8964421c0db8ac5bb40032d11bbd862e20e67704c·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where
62 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer62 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer
63 if·the·underlying·iterator·ends·sooner.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·c[·...·truncated·by·diffoscope;·len:·488,·SHA:·76f753d5a273a09a73127631acaa0ee947326a929f33be291018188793e1af56·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where63 if·the·underlying·iterator·ends·sooner.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·[·...·truncated·by·diffoscope;·len:·380,·SHA:·fa258c7e0b5d583304a69e2d4e19f3d4cc9a9ed830bdf3796eaa0968bdf590b4·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where
64 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,64 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
65 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·07d303586c8ad4e0082d5b44bff8eeda03cdb8f4bdbe46489f9232bca5a43ec6·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but65 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterat[·...·truncated·by·diffoscope;·len:·314,·SHA:·299331ff47adaff3ebc292c53557ad34da957aef932f87ec0444c7f856820410·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but
66 unlike·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·2b20882d9583cee50e0c8b3cf362b27ce0d524db387d4aa4093d622b9370dada·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where66 unlike·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.scan">Read·more[·...·truncated·by·diffoscope;·len:·555,·SHA:·77279e392f259f6d4859f5a7747ee4b4d5315f3af0ac3baebf1d53be3461b312·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where
67 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,67 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
68 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,68 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
69 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·933,·SHA:·4af94b75ba5c1e03d2d70590d2fd0706f13b3080fbff0f5b98e7b109048c403d·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where69 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·771,·SHA:·a1a50c8ca4c13151c7b22ce05c74c449231e1ffe44225beee67ff212fc1d3859·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where
70 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,70 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
71 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.I[·...·truncated·by·diffoscope;·len:·968,·SHA:·e5572ed2f3bdf5970d038da608f2f592d945541207c483c257fe5789efba168a·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where71 ····Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::col[·...·truncated·by·diffoscope;·len:·779,·SHA:·a4e524bd8aa8a1e0a66409d1b462b88093ab51a1f901ff1a788d7ee63d597f4c·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where
72 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,72 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
73 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·3013c0e49b0dade37f8ca096eccc5ceeb03fc79b9d320a4c92486d23b88d1009·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over73 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·54,·SHA:·6acee514e4d8df8979b4bba687b7e0d5dbb0ea4f98a7019e2fb03f3a8058df0f·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over
74 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,74 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="../../core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,
75 the·windows·during·mapping·overlap·as·well.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside">[·...·truncated·by·diffoscope;·len:·454,·SHA:·040991f3914479bcc92615de2b81df7363656323622e5aadc964e1a61917d23e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where75 the·windows·during·mapping·overlap·as·well.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="[·...·truncated·by·diffoscope;·len:·346,·SHA:·b1244a5f92e0573c29e04e883cf8212ba2586013b3687af07b63c29d2e611530·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where
76 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="https://doc.rust-lang.org/1.84.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·0e0294a45242d5ce9a3ab8f95d6d410756415291d92baa7d12283ef1b3ecc3a0·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where76 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="../../core/option/enum.Option.html#variant.None"·title="variant·cor[·...·truncated·by·diffoscope;·len:·679,·SHA:·ec753d6ecf7b9fe81cb270d78e45e053f2702fff74c7a63c2ab8da22b97fea86·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where
77 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,77 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
78 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·a8b562f71802a421f4745f7d1fadf4f70d98030c829e70f27b692e7915267027·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where78 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·635,·SHA:·ee3a5bcc3544c3f17985966634fef69b1708d641ddb7e62aaac76933935c5ef7·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where
79 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="https://doc.rust-lang.org/1.84.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·b3db7d84f203bbc139b1c52912705d19c664dac762898205fce452c9dc3a5318·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where79 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.by_ref">[·...·truncated·by·diffoscope;·len:·415,·SHA:·7e0e075470d2db380bcf0838446659654c982aa2ca7831ed7d0317877855be2a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where
80 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,80 ····B:·<a·class="trait"·href="../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
81 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·431,·SHA:·a705a23f6d810357e7dcac670743884665ffcccfb9b780d0aa03720be8ca5625·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(81 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.collect">Read[·...·truncated·by·diffoscope;·len:·323,·SHA:·80e0dde3814a6e7cf4e30949627abc841ab4e98e2a920efb248777e22708682d·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(
82 ····&amp;mut·self,82 ····&amp;mut·self,
83 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.h[·...·truncated·by·diffoscope;·len:·479,·SHA:·fa749442d890055f86ceb34f411c84fd7ea08302b336d786d1ca36fe5868b020·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where83 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&g[·...·truncated·by·diffoscope;·len:·344,·SHA:·c06c6401df0a7150633e94cc973521da42e09819b07be80ba18d6acb696860a9·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
84 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,84 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
85 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>,85 ····Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>,
86 ····&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.h[·...·truncated·by·diffoscope;·len:·300,·SHA:·3bff089180bac38df7f42b87556fae7641185b89a949c284f53e3ac718a6decb·...·]/core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;B&gt;,86 ····&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&g[·...·truncated·by·diffoscope;·len:·192,·SHA:·039ceb6ce31fc6b1871e3e366efbd0f164f4a6cc1bc25554bba598b0ee820cca·...·]/core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;B&gt;,
87 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/itera[·...·truncated·by·diffoscope;·len:·323,·SHA:·b5c51f161dc9d77fd81d1fd23cc71fbf42ac00f3168cf9e41ebaaa2b6eb25363·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if87 ····B:·<a·class="trait"·href="../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="ty[·...·truncated·by·diffoscope;·len:·215,·SHA:·ddb8fbd12147eecef1697edd4c63187cc514ab4b851290335adfcccc3fa429ba·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if
88 a·failure·is·encountered.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·ri[·...·truncated·by·diffoscope;·len:·521,·SHA:·6a54376815dab985ec8cc35604d035e98e3003b1563c9b41e70966084505542b·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where88 a·failure·is·encountered.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/co[·...·truncated·by·diffoscope;·len:·386,·SHA:·d46a776c329de4f757930edda252586c2cdd85c6956b7b2f68448da33ee0625e·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
89 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,89 ····E:·<a·class="trait"·href="../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
90 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·975,·SHA:·94f7f970236ba59ba5f1415764a0e3ab2f3093c6b79e76c25c797ac24a3c4d09·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where90 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_collect[·...·truncated·by·diffoscope;·len:·840,·SHA:·1ee6fbe4deb3d959e9ade58fb7ed3efa79d09721ed02fbb5f5f82aae6aa1425d·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
91 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,91 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
92 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·b480ec650ba000fe7cb67df58fc0351299638ee3e8f00db18f74ca24d69f9894·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,92 ····B:·<a·class="trait"·href="../../core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtyp[·...·truncated·by·diffoscope;·len:·14,·SHA:·4105980ca4887a52797067761af25a11e3de6069cd8d7c8ce82cd885bb798fe8·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
93 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·fdf5a1845f070855ba2cfd0c8c85460ea5cb646c4d3b42a8431bf21489c73701·...·]/core/primitive.usize.html">usize</a><div·class="where">where93 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·806,·SHA:·4d554b733db12e71a31ec2477a31408041941b0e2b0dc910904ecf2fced9f65b·...·]/core/primitive.usize.html">usize</a><div·class="where">where
94 ····T:·'a,94 ····T:·'a,
95 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·1fc250e258e9e42e4fa3e22f86ecd57057e9ff23e47af1aec778076a7a891134·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,95 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIter[·...·truncated·by·diffoscope;·len:·51,·SHA:·c9be73bbed9d11ecac2a179f480a640f51d6255f26712667ffdabc72c1fc7fb0·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,
96 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·5846407374f20f525a4a0663ad4488141eafe64513ef82581dc5df5c2d200745·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_partition_in_place</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62543">#62543</a>)</span></div></span><div·class='docblock'>Reorders·the·elements·of·this·iterator·<em>in-place</em>·according·to·the·given·predicate,96 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="../../core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_partition_in_place</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62543">#62543</a>)</span></div></span><div·class='docblock'>Reorders·the·elements·of·this·iterator·<em>in-place</em>·according·to·the·given·predicate,
97 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.97 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.
98 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.partition_in_place">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_partitioned"·class="method·trait-impl"><a·clas[·...·truncated·by·diffoscope;·len:·431,·SHA:·4aa7d028146c72d45794efc19a376d4bee3b75eda61ff46d969e440b3dbfa1b0·...·]/core/primitive.bool.html">bool</a><div·class="where">where98 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.partition_in_place">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_partitioned"·class="method·trait-impl"><a·class="src·rightside"·href="../[·...·truncated·by·diffoscope;·len:·323,·SHA:·bfc44418fa28079222aab80e2baccdaffb2d067bbe5d1b5162202d268ad628d7·...·]/core/primitive.bool.html">bool</a><div·class="where">where
99 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,99 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
100 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·fcd03e71f79faad6d9b9a12045d59f4dfabc78e5aefebcabc9c1a5be45e31125·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,100 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·54,·SHA:·d5ac304cc26edf57442227b641dd21c427d0f9cb322b79986f5b15fc49f867b0·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,
101 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><span·class="righ[·...·truncated·by·diffoscope;·len:·319,·SHA:·9b9df13f2f4e5b4dde3908515766e1a474fa30bcb7edc98c15665a016e677c2a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where101 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><span·class="rightside"><span·class="since"·[·...·truncated·by·diffoscope;·len:·238,·SHA:·af6ab768457e0afa1532b80c4296ae18061dac4c765922889b13eead3e5492db·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where
102 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,102 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
103 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,103 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
104 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns104 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns
105 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rights[·...·truncated·by·diffoscope;·len:·321,·SHA:·619fd774190944998148325de99aaa75de66ce4b7e26579fd342c564923a5652·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where105 successfully,·producing·a·single,·final·value.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"·ti[·...·truncated·by·diffoscope;·len:·240,·SHA:·125e84deea747ccbe139725d028362287beed6a89ab9da3a3aabd7df537abc59·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where
106 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,106 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
107 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,107 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
108 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the108 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="../../core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the
109 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·307,·SHA:·5975144fd8566efa93ad1ccec09297e280924b7372e08681d2103702124e2c52·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where109 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title=[·...·truncated·by·diffoscope;·len:·226,·SHA:·a7510e9271e68887d9e2681c6bc28312cec9ac38883128845f52742935a160a9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where
110 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,110 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
111 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,111 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,
112 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span[·...·truncated·by·diffoscope;·len:·619,·SHA:·8813f54846438870310d5f5dfabd2335a9dbf51e9da2e4cd681bcb6077d39628·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where112 returning·the·final·result.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stabl[·...·truncated·by·diffoscope;·len:·484,·SHA:·5f42e8d5ff08f4c76870e6cb9165e054f9a0d99051d9886ccd43d5c8a91e1fbc·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
113 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,113 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
114 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·084691f7fc4e7f4da7db385127d0ce8d2d52f6740757129a65910c4db0dc180d·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing114 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·244,·SHA:·f09ac7e818239538c3f3208cb5c76076c24a0153797eb762821d5bf2a382d83b·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing
115 operation.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·217,·SHA:·447ae00256be3de069c602a6c04889808c883eae6fa349d023f53bdd5570ecae·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(115 operation.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/iter[·...·truncated·by·diffoscope;·len:·136,·SHA:·97e3ee132585582ec7077e3bbd86406d8a2dcfc97dce7fd52b49af3ec1b58622·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(
116 ····&amp;mut·self,116 ····&amp;mut·self,
117 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R, 
118 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.T[·...·truncated·by·diffoscope;·len:·950,·SHA:·817376e71f7a0d170bfbd4b7264c15d324f49c65106c49349d11a077842aa533·...·]117 ····f:·impl·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core:[·...·truncated·by·diffoscope;·len:·238,·SHA:·a52edc1a1ce1db5dd6e620dbfe5acb58fdc6d84f2320cef02845988aa54e5c55·...·]
 118 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;&gt;&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
119 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,119 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
120 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,120 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
121 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·764ea8f08626b05426a76738d54ebb2d640042494d76cba8c20d868bfdc07a73·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the121 ····&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>:·<a[·...·truncated·by·diffoscope;·len:·277,·SHA:·0dd064909226a9691486376740de1e17aa133a7ae2f635bee3feaa9b19d7b580·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the
122 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><span·class="rightside"><s[·...·truncated·by·diffoscope;·len:·476,·SHA:·aef721c14147dea2fbec70dcfa76916b3f1273bed8304f4c9db310ca23d1e4b1·...·]/core/primitive.bool.html">bool</a><div·class="where">where122 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="St[·...·truncated·by·diffoscope;·len:·368,·SHA:·6dbfbc90b7cfda9017074212ce0beeb560c8f9ba918ba7b00292e34daa531cc2·...·]/core/primitive.bool.html">bool</a><div·class="where">where
123 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,123 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
124 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·7c48e62c73a40a5cb5ebbf4a22cd789b342a88ad3d855022191f2bae33c736c6·...·]/core/primitive.bool.html">bool</a><div·class="where">where124 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·829,·SHA:·c413d95d1072acd820201f12ffb54d04a6c7f3b732f7de46115ba40b4eb1bd3f·...·]/core/primitive.bool.html">bool</a><div·class="where">where
125 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,125 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
126 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·673d69ce0c23e24b2546127c463e67cd2a4c0f7be792712e2b42e75427161b75·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where126 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·956,·SHA:·105c7ff05d33bc9219febe8c9633cf1c1a8d88c32e47e44793d403a428174c66·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
Max diff block lines reached; 152246/335943 bytes (45.32%) of diff not shown.
311 KB
./usr/share/doc/rust-doc/html/alloc/slice/struct.SplitN.html
    
Offset 1, 244 lines modifiedOffset 1, 244 lines modified
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="An·iterator·over·subslices·separated·by·elements·that·match·a·predicate·function,·limited·to·a·given·number·of·splits."><title>SplitN·in·alloc::slice·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»     2025-01-07)»  (built»    from»a»       source» tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">SplitN</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#example"·title="Example">Example</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Debug-for-SplitN%3C'_,+T,+P%3E"·title="Debug">Debug</a></li><li><a·href="#impl-FusedIterator-for-SplitN%3C'a,+T,+P%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-SplitN%3C'a,+T,+P%3E"·title="Iterator">Iterator</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-SplitN%3C'a,+T,+P%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-SplitN%3C'a,+T,+P%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-SplitN%3C'a,+T,+P%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-SplitN%3C'a,+T,+P%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-SplitN%3C'a,+T,+P%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-SplitN%3C'a,+T,+P%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>slice</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">alloc</a>::<wbr><a·href="index.html">slice</a></span><h1>Struct·<span·class="struct">SplitN</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/slice/iter.rs.html#1154">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·SplitN&lt;'a,·T,·P&gt;<div·class="where">where1 <!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="An·iterator·over·subslices·separated·by·elements·that·match·a·predicate·function,·limited·to·a·given·number·of·splits."><title>SplitN·in·alloc::slice·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»     2025-01-07)»  (built»    from»a»       source» tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">SplitN</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#example"·title="Example">Example</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Debug-for-SplitN%3C'_,+T,+P%3E"·title="Debug">Debug</a></li><li><a·href="#impl-FusedIterator-for-SplitN%3C'a,+T,+P%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-SplitN%3C'a,+T,+P%3E"·title="Iterator">Iterator</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-SplitN%3C'a,+T,+P%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-SplitN%3C'a,+T,+P%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-SplitN%3C'a,+T,+P%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-SplitN%3C'a,+T,+P%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-SplitN%3C'a,+T,+P%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-SplitN%3C'a,+T,+P%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>slice</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">alloc</a>::<wbr><a·href="index.html">slice</a></span><h1>Struct·<span·class="struct">SplitN</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../src/core/slice/iter.rs.html#1154">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·SplitN&lt;'a,·T,·P&gt;<div·class="where">where
2 ····T:·'a,2 ····T:·'a,
3 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·5846407374f20f525a4a0663ad4488141eafe64513ef82581dc5df5c2d200745·...·]/core/primitive.bool.html">bool</a>,</div>{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>An·iterator·over·subslices·separated·by·elements·that·match·a·predicate3 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="../../core/primitive.bool.html">bool</a>,</div>{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>An·iterator·over·subslices·separated·by·elements·that·match·a·predicate
4 function,·limited·to·a·given·number·of·splits.</p>4 function,·limited·to·a·given·number·of·splits.</p>
5 <p>This·struct·is·created·by·the·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html#method.splitn"·title="method·slice::splitn"><code>splitn</code></a>·method·on·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html"·title="primitive·slice">slices</a>.</p>5 <p>This·struct·is·created·by·the·<a·href="../../core/primitive.slice.html#method.splitn"·title="method·slice::splitn"><code>splitn</code></a>·method·on·<a·href="../../core/primitive.slice.html"·title="primitive·slice">slices</a>.</p>
6 <h2·id="example"><a·class="doc-anchor"·href="#example">§</a>Example</h2>6 <h2·id="example"><a·class="doc-anchor"·href="#example">§</a>Example</h2>
7 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span>slice·=·[<span·class="number">10</span>,·<span·class="number">40</span>,·<span·class="number">30</span>,·<span·class="number">20</span>,·<span·class="number">60</span>,·<span·class="number">50</span>];7 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span>slice·=·[<span·class="number">10</span>,·<span·class="number">40</span>,·<span·class="number">30</span>,·<span·class="number">20</span>,·<span·class="number">60</span>,·<span·class="number">50</span>];
8 <span·class="kw">let·</span><span·class="kw-2">mut·</span>iter·=·slice.splitn(<span·class="number">2</span>,·|num|·<span·class="kw-2">*</span>num·%·<span·class="number">3·</span>==·<span·class="number">0</span>);8 <span·class="kw">let·</span><span·class="kw-2">mut·</span>iter·=·slice.splitn(<span·class="number">2</span>,·|num|·<span·class="kw-2">*</span>num·%·<span·class="number">3·</span>==·<span·class="number">0</span>);
9 <span·class="macro">assert_eq!</span>(iter.next(),·<span·class="prelude-val">Some</span>(<span·class="kw-2">&amp;</span>[<span·class="number">10</span>,·<span·class="number">40</span>][..]));9 <span·class="macro">assert_eq!</span>(iter.next(),·<span·class="prelude-val">Some</span>(<span·class="kw-2">&amp;</span>[<span·class="number">10</span>,·<span·class="number">40</span>][..]));
10 <span·class="macro">assert_eq!</span>(iter.next(),·<span·class="prelude-val">Some</span>(<span·class="kw-2">&amp;</span>[<span·class="number">20</span>,·<span·class="number">60</span>,·<span·class="number">50</span>][..]));10 <span·class="macro">assert_eq!</span>(iter.next(),·<span·class="prelude-val">Some</span>(<span·class="kw-2">&amp;</span>[<span·class="number">20</span>,·<span·class="number">60</span>,·<span·class="number">50</span>][..]));
11 <span·class="macro">assert_eq!</span>(iter.next(),·<span·class="prelude-val">None</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++let+slice+=+%5B10,+40,+30,+20,+60,+50%5D;%0A++++let+mut+iter+=+slice.splitn(2,+%7Cnum%7C+*num+%25+3+==+0);%0A++++assert_eq!(iter.next(),+Some(%26%5B10,+40%5D%5B..%5D));%0A++++assert_eq!(iter.next(),+Some(%26%5B20,+60,+50%5D%5B..%5D));%0A++++assert_eq!(iter.next(),+None);%0A%7D&amp;edition=2021"></a></div>11 <span·class="macro">assert_eq!</span>(iter.next(),·<span·class="prelude-val">None</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++let+slice+=+%5B10,+40,+30,+20,+60,+50%5D;%0A++++let+mut+iter+=+slice.splitn(2,+%7Cnum%7C+*num+%25+3+==+0);%0A++++assert_eq!(iter.next(),+Some(%26%5B10,+40%5D%5B..%5D));%0A++++assert_eq!(iter.next(),+Some(%26%5B20,+60,+50%5D%5B..%5D));%0A++++assert_eq!(iter.next(),+None);%0A%7D&amp;edition=2021"></a></div>
12 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-SplitN%3C'_,+T,+P%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.9.0">1.9.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/slice/iter.rs.html#1169-1171">Source</a></span><a·href="#impl-Debug-for-SplitN%3C'_,+T,+P%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·P&gt;·<a·class="trait"·href="../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.SplitN.html"·title="struct·alloc::slice::SplitN">SplitN</a>&lt;'_,·T,·P&gt;<div·class="where">where12 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-SplitN%3C'_,+T,+P%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.9.0">1.9.0</span>···<a·class="src"·href="../../src/core/slice/iter.rs.html#1169-1171">Source</a></span><a·href="#impl-Debug-for-SplitN%3C'_,+T,+P%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·P&gt;·<a·class="trait"·href="../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.SplitN.html"·title="struct·alloc::slice::SplitN">SplitN</a>&lt;'_,·T,·P&gt;<div·class="where">where
13 ····T:·<a·class="trait"·href="../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,13 ····T:·<a·class="trait"·href="../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,
14 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·1619,·SHA:·bb5630387f3c6a26390e99371997c560d939bb5aedab8640a030592238d7160c·...·]/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::Iterator">Iterator</a>·for·<a·class="struct"·href="struct.SplitN.html"·title="struct·alloc::slice::SplitN">SplitN</a>&lt;'a,·T,·P&gt;<div·class="where">where14 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="../../core/primitive.bool.html">bool</a>,</div></h3></[·...·truncated·by·diffoscope;·len:·1403,·SHA:·e7dd8a9ca72e2914ed07a0aa6c5380cc726ce453c07d2efa6c82e1a6494c744f·...·]/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::Iterator">Iterator</a>·for·<a·class="struct"·href="struct.SplitN.html"·title="struct·alloc::slice::SplitN">SplitN</a>&lt;'a,·T,·P&gt;<div·class="where">where
15 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·3190,·SHA:·5dd8dec8e19b7711eab6aff1efc917947651ecb3211c42817986d5b191bf7acd·...·]/core/primitive.usize.html">usize</a>&gt;(15 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="../../core/primitive.bool.html">bool</a>,</div></h3></[·...·truncated·by·diffoscope;·len:·2650,·SHA:·f901d054beb4008659f65c8322375c1766ff08623d232bb3411bd828dd956177·...·]/core/primitive.usize.html">usize</a>&gt;(
16 ····&amp;mut·self,16 ····&amp;mut·self,
17 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·4f557a9b49151e0be8c52ffd68f1def4469c08164239dc8bef8df2040551c5ef·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where17 )·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">It[·...·truncated·by·diffoscope;·len:·246,·SHA:·baf6c8e6f3d5dbac69324111240b1587dbb858d42149cae1ee895a165289ff4f·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where
18 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·962,·SHA:·116e4ec2ae3d9655c3d115eaf50f435f5323b4e48b84de734c79d2a09b3c02f2·...·]/core/primitive.usize.html">usize</a><div·class="where">where18 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_next_ch[·...·truncated·by·diffoscope;·len:·827,·SHA:·2479cde9ab5aa3e18f76cf74cf7889a3de87c66e1745f27cf29bd34c4d30dbdf·...·]/core/primitive.usize.html">usize</a><div·class="where">where
19 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·counting·the·number·of·iterations·and·returning·it.·<a·href="https://doc.[·...·truncated·by·diffoscope;·len:·837,·SHA:·47e25b6f9687bcc1d1fcdf9842fb085e6aba767d70531028f948636b80563dfc·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where19 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·counting·the·number·of·iterations·and·returning·it.·<a·href="../../core/iter/traits/iterator/trait.I[·...·truncated·by·diffoscope;·len:·675,·SHA:·1ce62884794ba87e19a0c96720594ee19d36bf34d9a84160028eeff78b648fa9·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
20 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·returning·the·last·element.·<a·href="https://doc.rust-lang.org/1.84.0/cor[·...·truncated·by·diffoscope;·len:·3504,·SHA:·ec43d0f6d8d2a1e0fb7a684c382b9934abe1250844e53cce08bdfc6017ecb276·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where20 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·returning·the·last·element.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.last[·...·truncated·by·diffoscope;·len:·2964,·SHA:·db62f7c0fcc4ed24f8d8d5c90b4eb970e1ba2f576e1c200c74164f961b4de28e·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where
21 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by21 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by
22 the·given·amount·at·each·iteration.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><sp[·...·truncated·by·diffoscope;·len:·842,·SHA:·945c4509a8daf2f8fbccc5c6e5089e225955911e03a3e411f047f96d52d16862·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where22 the·given·amount·at·each·iteration.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Sta[·...·truncated·by·diffoscope;·len:·680,·SHA:·77241b5118fcbc984cb791fa9f75077307e18056b66492741335faf440cbdabc·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
23 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,23 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
24 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·3b5ce32f9d564c3aa7cf2adc7130e674758d0c0f4f1275b4c3b46a74aa802cb3·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where24 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·1113,·SHA:·ccf22d19f49a25daffdcc6d9226d5107457a8bfd16beccfeff5020d151bdb8bb·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
25 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,25 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
26 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·[·...·truncated·by·diffoscope;·len:·868,·SHA:·abdbf27ccc84063c7040d8fa3da9d0bda5ee310a470ef576e15554aee4bd5d21·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where26 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·of·pairs.·<a·href="../../co[·...·truncated·by·diffoscope;·len:·706,·SHA:·f32c568f049122021445a983654582d97ac74064a3e99c3361b348bd7708c1b2·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where
27 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,27 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
28 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent28 ····Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent
29 items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="sr[·...·truncated·by·diffoscope;·len:·427,·SHA:·6e82ad4aad49c2165d869fe30d20a968580a973cdb3a7f4c77f49e16dd59393e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where29 items·of·the·original·iterator.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="src·rightside"·href="../../sr[·...·truncated·by·diffoscope;·len:·319,·SHA:·8babc469a22056fc5a02684b52f9f93ba9c27a3dd2e8443ddc060797054e211e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where
30 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,30 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
31 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>31 ····G:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>
32 between·adjacent·items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightsi[·...·truncated·by·diffoscope;·len:·471,·SHA:·ed10488b7b2ccc3e4cc84a9a57a9695a74c1c964962e8d753cbace12f3318a66·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where32 between·adjacent·items·of·the·original·iterator.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·tit[·...·truncated·by·diffoscope;·len:·363,·SHA:·09aee21fa4172b743a714e2cb5915129575ce0224df49c7343dec38f43b7ecfd·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where
33 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,33 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
34 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each34 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each
35 element.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><spa[·...·truncated·by·diffoscope;·len:·306,·SHA:·61c87c39b177830189b0e4c036d97c40d8b9649d76432c90afb88de59498e8b2·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where35 element.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stab[·...·truncated·by·diffoscope;·len:·225,·SHA:·a0f2490a1a5fd6b44e0ab01199cbbbd6e5463251405d11eaf6798c9b50bbd683·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where
36 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,36 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
37 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·a65da32c5f5ef8335cb607d3b4ab3f8a25877bc2c2e8b44ca9d575caecd5c8a5·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where37 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·754,·SHA:·421e55a5747cab3df1dad40b747b4633f241bdc13a1546bb19b1370788dea27d·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where
38 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,38 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
39 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·6d69c85c69fa789be551ea42d95c33c237d12a04ef157f9ddaaead1177f7771e·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element39 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·59,·SHA:·76969e34965f1923de668a65a9f5c33f73266468c9b96650bcc5fd498e606a6b·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element
40 should·be·yielded.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·489,·SHA:·9bdc636899f4e4e5a26a3a21c9603f72b3fb972865d2f459c38b7e2ac8fed7f1·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where40 should·be·yielded.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·cf812944678f6755720896cf32b330946303afe59f1b1c11adeb6a7f33454c8d·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where
41 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,41 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
42 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·46dbf841c7aecd3f06bd4c944af21650faeac98c46c515dcfe643302618b1ecd·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where42 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·863,·SHA:·c2bab87fa2a70713bd2d34b3dcae8f4ff2341917103b43a1dd505317f15d6cff·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where
43 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as43 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as
44 the·next·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside[·...·truncated·by·diffoscope;·len:·468,·SHA:·52f7ff7f264284c3acc4429ca34d057ded9afa2e3d9d6e07571e252db9a48977·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where44 the·next·value.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title[·...·truncated·by·diffoscope;·len:·360,·SHA:·688416dc1aaaa0be069177270ba9e74b3d1b92521285a109dc7ba86b58c1f22a·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where
45 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·c0180fefce4346b0b4089e5c642521d7716108241c0ce6ec3e910c7a2c7364b4·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods45 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="../../core/iter/adapters/peekable/struct.Peekable.html#method.peek"·title="m[·...·truncated·by·diffoscope;·len:·94,·SHA:·78aeab33f83c647dfe680c1050358c95977e3af17eabde4a04880721ea1a619d·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods
46 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See46 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See
47 their·documentation·for·more·information.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightsid[·...·truncated·by·diffoscope;·len:·498,·SHA:·e4a68861585faec6a5032b3b69d6dfb0f2799b5f387a527d9a1365571ed02069·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where47 their·documentation·for·more·information.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightside"><span·class="since"·titl[·...·truncated·by·diffoscope;·len:·390,·SHA:·5da622ae0e4d00b47239007520070e22568156d6c5b1662db8b80b465934b18c·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where
48 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,48 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
49 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·93281c1f6402743fd61110c11cf676f0f67eddceda801b4eb35e5fe9f85870fd·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where49 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·1018,·SHA:·732548acff5239e9a7b904f32790c90ab3b63522635334128f35e01d37ceaeb6·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where
50 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,50 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
51 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·f1cdbb1ec64f98fabbe1d89c88b03824310926cd7eaa160953ce2452fc3abb77·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where51 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·869,·SHA:·8ec7e525848424d5104dbdd10928d17cfee4e5aee63cdda7ecdbe323b30b59d3·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where
52 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,52 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
53 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·f94a0b2c1396b13b89aca7830197ebf19e2c0e5ba536a9cc25b325a481799510·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where53 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·947,·SHA:·fdd074315a0bfb226f815b1b6ea114c7367886338ffffff233d7f6fc3108769a·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where
54 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="https://doc.rust-lang[·...·truncated·by·diffoscope;·len:·783,·SHA:·c14217b89e3292a50a09192a8857485891fc769f861e1d1fc4322d04295c86ef·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where54 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="../../core/iter/traits/iterator/trait.Iterator.h[·...·truncated·by·diffoscope;·len:·621,·SHA:·484df7f946e7f2f69c3acad8964421c0db8ac5bb40032d11bbd862e20e67704c·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where
55 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer55 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer
56 if·the·underlying·iterator·ends·sooner.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·c[·...·truncated·by·diffoscope;·len:·488,·SHA:·76f753d5a273a09a73127631acaa0ee947326a929f33be291018188793e1af56·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where56 if·the·underlying·iterator·ends·sooner.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·[·...·truncated·by·diffoscope;·len:·380,·SHA:·fa258c7e0b5d583304a69e2d4e19f3d4cc9a9ed830bdf3796eaa0968bdf590b4·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where
57 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,57 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
58 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·07d303586c8ad4e0082d5b44bff8eeda03cdb8f4bdbe46489f9232bca5a43ec6·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but58 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterat[·...·truncated·by·diffoscope;·len:·314,·SHA:·299331ff47adaff3ebc292c53557ad34da957aef932f87ec0444c7f856820410·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but
59 unlike·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·2b20882d9583cee50e0c8b3cf362b27ce0d524db387d4aa4093d622b9370dada·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where59 unlike·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.scan">Read·more[·...·truncated·by·diffoscope;·len:·555,·SHA:·77279e392f259f6d4859f5a7747ee4b4d5315f3af0ac3baebf1d53be3461b312·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where
60 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,60 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
61 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,61 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
62 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·933,·SHA:·4af94b75ba5c1e03d2d70590d2fd0706f13b3080fbff0f5b98e7b109048c403d·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where62 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·771,·SHA:·a1a50c8ca4c13151c7b22ce05c74c449231e1ffe44225beee67ff212fc1d3859·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where
63 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,63 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
64 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.I[·...·truncated·by·diffoscope;·len:·968,·SHA:·e5572ed2f3bdf5970d038da608f2f592d945541207c483c257fe5789efba168a·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where64 ····Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::col[·...·truncated·by·diffoscope;·len:·779,·SHA:·a4e524bd8aa8a1e0a66409d1b462b88093ab51a1f901ff1a788d7ee63d597f4c·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where
65 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,65 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
66 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·3013c0e49b0dade37f8ca096eccc5ceeb03fc79b9d320a4c92486d23b88d1009·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over66 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·54,·SHA:·6acee514e4d8df8979b4bba687b7e0d5dbb0ea4f98a7019e2fb03f3a8058df0f·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over
67 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,67 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="../../core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,
68 the·windows·during·mapping·overlap·as·well.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside">[·...·truncated·by·diffoscope;·len:·454,·SHA:·040991f3914479bcc92615de2b81df7363656323622e5aadc964e1a61917d23e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where68 the·windows·during·mapping·overlap·as·well.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="[·...·truncated·by·diffoscope;·len:·346,·SHA:·b1244a5f92e0573c29e04e883cf8212ba2586013b3687af07b63c29d2e611530·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where
69 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="https://doc.rust-lang.org/1.84.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·0e0294a45242d5ce9a3ab8f95d6d410756415291d92baa7d12283ef1b3ecc3a0·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where69 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="../../core/option/enum.Option.html#variant.None"·title="variant·cor[·...·truncated·by·diffoscope;·len:·679,·SHA:·ec753d6ecf7b9fe81cb270d78e45e053f2702fff74c7a63c2ab8da22b97fea86·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where
70 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,70 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
71 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·a8b562f71802a421f4745f7d1fadf4f70d98030c829e70f27b692e7915267027·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where71 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·635,·SHA:·ee3a5bcc3544c3f17985966634fef69b1708d641ddb7e62aaac76933935c5ef7·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where
72 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="https://doc.rust-lang.org/1.84.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·b3db7d84f203bbc139b1c52912705d19c664dac762898205fce452c9dc3a5318·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where72 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.by_ref">[·...·truncated·by·diffoscope;·len:·415,·SHA:·7e0e075470d2db380bcf0838446659654c982aa2ca7831ed7d0317877855be2a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where
73 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,73 ····B:·<a·class="trait"·href="../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
74 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·431,·SHA:·a705a23f6d810357e7dcac670743884665ffcccfb9b780d0aa03720be8ca5625·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(74 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.collect">Read[·...·truncated·by·diffoscope;·len:·323,·SHA:·80e0dde3814a6e7cf4e30949627abc841ab4e98e2a920efb248777e22708682d·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(
75 ····&amp;mut·self,75 ····&amp;mut·self,
76 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.h[·...·truncated·by·diffoscope;·len:·479,·SHA:·fa749442d890055f86ceb34f411c84fd7ea08302b336d786d1ca36fe5868b020·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where76 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&g[·...·truncated·by·diffoscope;·len:·344,·SHA:·c06c6401df0a7150633e94cc973521da42e09819b07be80ba18d6acb696860a9·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
77 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,77 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
78 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>,78 ····Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>,
79 ····&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.h[·...·truncated·by·diffoscope;·len:·300,·SHA:·3bff089180bac38df7f42b87556fae7641185b89a949c284f53e3ac718a6decb·...·]/core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;B&gt;,79 ····&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&g[·...·truncated·by·diffoscope;·len:·192,·SHA:·039ceb6ce31fc6b1871e3e366efbd0f164f4a6cc1bc25554bba598b0ee820cca·...·]/core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;B&gt;,
80 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/itera[·...·truncated·by·diffoscope;·len:·323,·SHA:·b5c51f161dc9d77fd81d1fd23cc71fbf42ac00f3168cf9e41ebaaa2b6eb25363·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if80 ····B:·<a·class="trait"·href="../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="ty[·...·truncated·by·diffoscope;·len:·215,·SHA:·ddb8fbd12147eecef1697edd4c63187cc514ab4b851290335adfcccc3fa429ba·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if
81 a·failure·is·encountered.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·ri[·...·truncated·by·diffoscope;·len:·521,·SHA:·6a54376815dab985ec8cc35604d035e98e3003b1563c9b41e70966084505542b·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where81 a·failure·is·encountered.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/co[·...·truncated·by·diffoscope;·len:·386,·SHA:·d46a776c329de4f757930edda252586c2cdd85c6956b7b2f68448da33ee0625e·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
82 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,82 ····E:·<a·class="trait"·href="../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
83 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·975,·SHA:·94f7f970236ba59ba5f1415764a0e3ab2f3093c6b79e76c25c797ac24a3c4d09·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where83 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_collect[·...·truncated·by·diffoscope;·len:·840,·SHA:·1ee6fbe4deb3d959e9ade58fb7ed3efa79d09721ed02fbb5f5f82aae6aa1425d·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
84 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,84 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
85 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·b480ec650ba000fe7cb67df58fc0351299638ee3e8f00db18f74ca24d69f9894·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,85 ····B:·<a·class="trait"·href="../../core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtyp[·...·truncated·by·diffoscope;·len:·14,·SHA:·4105980ca4887a52797067761af25a11e3de6069cd8d7c8ce82cd885bb798fe8·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
86 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·fdf5a1845f070855ba2cfd0c8c85460ea5cb646c4d3b42a8431bf21489c73701·...·]/core/primitive.usize.html">usize</a><div·class="where">where86 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·806,·SHA:·4d554b733db12e71a31ec2477a31408041941b0e2b0dc910904ecf2fced9f65b·...·]/core/primitive.usize.html">usize</a><div·class="where">where
87 ····T:·'a,87 ····T:·'a,
88 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·1fc250e258e9e42e4fa3e22f86ecd57057e9ff23e47af1aec778076a7a891134·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,88 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIter[·...·truncated·by·diffoscope;·len:·51,·SHA:·c9be73bbed9d11ecac2a179f480a640f51d6255f26712667ffdabc72c1fc7fb0·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,
89 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·5846407374f20f525a4a0663ad4488141eafe64513ef82581dc5df5c2d200745·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_partition_in_place</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62543">#62543</a>)</span></div></span><div·class='docblock'>Reorders·the·elements·of·this·iterator·<em>in-place</em>·according·to·the·given·predicate,89 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="../../core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_partition_in_place</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62543">#62543</a>)</span></div></span><div·class='docblock'>Reorders·the·elements·of·this·iterator·<em>in-place</em>·according·to·the·given·predicate,
90 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.90 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.
91 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.partition_in_place">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_partitioned"·class="method·trait-impl"><a·clas[·...·truncated·by·diffoscope;·len:·431,·SHA:·4aa7d028146c72d45794efc19a376d4bee3b75eda61ff46d969e440b3dbfa1b0·...·]/core/primitive.bool.html">bool</a><div·class="where">where91 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.partition_in_place">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_partitioned"·class="method·trait-impl"><a·class="src·rightside"·href="../[·...·truncated·by·diffoscope;·len:·323,·SHA:·bfc44418fa28079222aab80e2baccdaffb2d067bbe5d1b5162202d268ad628d7·...·]/core/primitive.bool.html">bool</a><div·class="where">where
92 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,92 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
93 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·fcd03e71f79faad6d9b9a12045d59f4dfabc78e5aefebcabc9c1a5be45e31125·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,93 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·54,·SHA:·d5ac304cc26edf57442227b641dd21c427d0f9cb322b79986f5b15fc49f867b0·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,
94 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><span·class="righ[·...·truncated·by·diffoscope;·len:·319,·SHA:·9b9df13f2f4e5b4dde3908515766e1a474fa30bcb7edc98c15665a016e677c2a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where94 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><span·class="rightside"><span·class="since"·[·...·truncated·by·diffoscope;·len:·238,·SHA:·af6ab768457e0afa1532b80c4296ae18061dac4c765922889b13eead3e5492db·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where
95 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,95 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
96 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,96 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
97 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns97 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns
98 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rights[·...·truncated·by·diffoscope;·len:·321,·SHA:·619fd774190944998148325de99aaa75de66ce4b7e26579fd342c564923a5652·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where98 successfully,·producing·a·single,·final·value.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"·ti[·...·truncated·by·diffoscope;·len:·240,·SHA:·125e84deea747ccbe139725d028362287beed6a89ab9da3a3aabd7df537abc59·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where
99 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,99 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
100 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,100 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
101 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the101 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="../../core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the
102 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·307,·SHA:·5975144fd8566efa93ad1ccec09297e280924b7372e08681d2103702124e2c52·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where102 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title=[·...·truncated·by·diffoscope;·len:·226,·SHA:·a7510e9271e68887d9e2681c6bc28312cec9ac38883128845f52742935a160a9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where
103 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,103 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
104 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,104 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,
105 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span[·...·truncated·by·diffoscope;·len:·619,·SHA:·8813f54846438870310d5f5dfabd2335a9dbf51e9da2e4cd681bcb6077d39628·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where105 returning·the·final·result.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stabl[·...·truncated·by·diffoscope;·len:·484,·SHA:·5f42e8d5ff08f4c76870e6cb9165e054f9a0d99051d9886ccd43d5c8a91e1fbc·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
106 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,106 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
107 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·084691f7fc4e7f4da7db385127d0ce8d2d52f6740757129a65910c4db0dc180d·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing107 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·244,·SHA:·f09ac7e818239538c3f3208cb5c76076c24a0153797eb762821d5bf2a382d83b·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing
108 operation.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·217,·SHA:·447ae00256be3de069c602a6c04889808c883eae6fa349d023f53bdd5570ecae·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(108 operation.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/iter[·...·truncated·by·diffoscope;·len:·136,·SHA:·97e3ee132585582ec7077e3bbd86406d8a2dcfc97dce7fd52b49af3ec1b58622·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(
109 ····&amp;mut·self,109 ····&amp;mut·self,
110 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R, 
111 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.T[·...·truncated·by·diffoscope;·len:·950,·SHA:·817376e71f7a0d170bfbd4b7264c15d324f49c65106c49349d11a077842aa533·...·]110 ····f:·impl·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core:[·...·truncated·by·diffoscope;·len:·238,·SHA:·a52edc1a1ce1db5dd6e620dbfe5acb58fdc6d84f2320cef02845988aa54e5c55·...·]
 111 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;&gt;&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
112 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,112 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
113 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,113 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
114 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·764ea8f08626b05426a76738d54ebb2d640042494d76cba8c20d868bfdc07a73·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the114 ····&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>:·<a[·...·truncated·by·diffoscope;·len:·277,·SHA:·0dd064909226a9691486376740de1e17aa133a7ae2f635bee3feaa9b19d7b580·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the
115 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><span·class="rightside"><s[·...·truncated·by·diffoscope;·len:·476,·SHA:·aef721c14147dea2fbec70dcfa76916b3f1273bed8304f4c9db310ca23d1e4b1·...·]/core/primitive.bool.html">bool</a><div·class="where">where115 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="St[·...·truncated·by·diffoscope;·len:·368,·SHA:·6dbfbc90b7cfda9017074212ce0beeb560c8f9ba918ba7b00292e34daa531cc2·...·]/core/primitive.bool.html">bool</a><div·class="where">where
116 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,116 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
117 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·7c48e62c73a40a5cb5ebbf4a22cd789b342a88ad3d855022191f2bae33c736c6·...·]/core/primitive.bool.html">bool</a><div·class="where">where117 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·829,·SHA:·c413d95d1072acd820201f12ffb54d04a6c7f3b732f7de46115ba40b4eb1bd3f·...·]/core/primitive.bool.html">bool</a><div·class="where">where
118 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,118 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
119 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·673d69ce0c23e24b2546127c463e67cd2a4c0f7be792712e2b42e75427161b75·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where119 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·956,·SHA:·105c7ff05d33bc9219febe8c9633cf1c1a8d88c32e47e44793d403a428174c66·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
120 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,120 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
121 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·aa5078ff77f5638746395497f8ce92c1b684d342dea851990104d5e9981ab6b0·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where121 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·862,·SHA:·ab608da827ec12779180206da5bfe43676627c19288c1fe674060a00ba44a595·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where
122 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,122 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
123 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·1bd732dff19021a1586bb486282683f5c1bc65d5d514f9e13cc9232b4e94955b·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;,</div></h4></section></summary><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns123 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·49,·SHA:·819211b646a21318a22e9d295452cdf890d5288a631a50261ca1a5b2bac9f748·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;,</div></h4></section></summary><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns
124 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.find_map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_find"·class="method·trait-impl"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·215,·SHA:·4d59a011c8881794ce6367c1e816f11a813db02e37c71800ed6d47056f157573·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(124 the·first·non-none·result.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.find_map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_find"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/iter[·...·truncated·by·diffoscope;·len:·134,·SHA:·f9a67b0520c850053a598ecaa24d4c1a006e7174ac499ec1e09451cd90ea548e·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(
125 ····&amp;mut·self,125 ····&amp;mut·self,
126 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,126 ····f:·impl·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
Max diff block lines reached; 83358/317912 bytes (26.22%) of diff not shown.
310 KB
./usr/share/doc/rust-doc/html/alloc/slice/struct.SplitNMut.html
    
Offset 1, 239 lines modifiedOffset 1, 239 lines modified
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="An·iterator·over·subslices·separated·by·elements·that·match·a·predicate·function,·limited·to·a·given·number·of·splits."><title>SplitNMut·in·alloc::slice·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»  2025-01-07)»       (built» from»     a»    source»      tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">SplitN<wbr>Mut</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#example"·title="Example">Example</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Debug-for-SplitNMut%3C'_,+T,+P%3E"·title="Debug">Debug</a></li><li><a·href="#impl-FusedIterator-for-SplitNMut%3C'a,+T,+P%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-SplitNMut%3C'a,+T,+P%3E"·title="Iterator">Iterator</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-UnwindSafe-for-SplitNMut%3C'a,+T,+P%3E"·title="!UnwindSafe">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-SplitNMut%3C'a,+T,+P%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-SplitNMut%3C'a,+T,+P%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-SplitNMut%3C'a,+T,+P%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-SplitNMut%3C'a,+T,+P%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-SplitNMut%3C'a,+T,+P%3E"·title="Unpin">Unpin</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>slice</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">alloc</a>::<wbr><a·href="index.html">slice</a></span><h1>Struct·<span·class="struct">SplitNMut</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/slice/iter.rs.html#1238">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·SplitNMut&lt;'a,·T,·P&gt;<div·class="where">where1 <!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="An·iterator·over·subslices·separated·by·elements·that·match·a·predicate·function,·limited·to·a·given·number·of·splits."><title>SplitNMut·in·alloc::slice·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»  2025-01-07)»       (built» from»     a»    source»      tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">SplitN<wbr>Mut</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#example"·title="Example">Example</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Debug-for-SplitNMut%3C'_,+T,+P%3E"·title="Debug">Debug</a></li><li><a·href="#impl-FusedIterator-for-SplitNMut%3C'a,+T,+P%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-SplitNMut%3C'a,+T,+P%3E"·title="Iterator">Iterator</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-UnwindSafe-for-SplitNMut%3C'a,+T,+P%3E"·title="!UnwindSafe">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-SplitNMut%3C'a,+T,+P%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-SplitNMut%3C'a,+T,+P%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-SplitNMut%3C'a,+T,+P%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-SplitNMut%3C'a,+T,+P%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-SplitNMut%3C'a,+T,+P%3E"·title="Unpin">Unpin</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>slice</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">alloc</a>::<wbr><a·href="index.html">slice</a></span><h1>Struct·<span·class="struct">SplitNMut</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../src/core/slice/iter.rs.html#1238">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·SplitNMut&lt;'a,·T,·P&gt;<div·class="where">where
2 ····T:·'a,2 ····T:·'a,
3 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·5846407374f20f525a4a0663ad4488141eafe64513ef82581dc5df5c2d200745·...·]/core/primitive.bool.html">bool</a>,</div>{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>An·iterator·over·subslices·separated·by·elements·that·match·a·predicate3 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="../../core/primitive.bool.html">bool</a>,</div>{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>An·iterator·over·subslices·separated·by·elements·that·match·a·predicate
4 function,·limited·to·a·given·number·of·splits.</p>4 function,·limited·to·a·given·number·of·splits.</p>
5 <p>This·struct·is·created·by·the·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html#method.splitn_mut"·title="method·slice::splitn_mut"><code>splitn_mut</code></a>·method·on·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html"·title="primitive·slice">slices</a>.</p>5 <p>This·struct·is·created·by·the·<a·href="../../core/primitive.slice.html#method.splitn_mut"·title="method·slice::splitn_mut"><code>splitn_mut</code></a>·method·on·<a·href="../../core/primitive.slice.html"·title="primitive·slice">slices</a>.</p>
6 <h2·id="example"><a·class="doc-anchor"·href="#example">§</a>Example</h2>6 <h2·id="example"><a·class="doc-anchor"·href="#example">§</a>Example</h2>
7 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span><span·class="kw-2">mut·</span>slice·=·[<span·class="number">10</span>,·<span·class="number">40</span>,·<span·class="number">30</span>,·<span·class="number">20</span>,·<span·class="number">60</span>,·<span·class="number">50</span>];7 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span><span·class="kw-2">mut·</span>slice·=·[<span·class="number">10</span>,·<span·class="number">40</span>,·<span·class="number">30</span>,·<span·class="number">20</span>,·<span·class="number">60</span>,·<span·class="number">50</span>];
8 <span·class="kw">let·</span>iter·=·slice.splitn_mut(<span·class="number">2</span>,·|num|·<span·class="kw-2">*</span>num·%·<span·class="number">3·</span>==·<span·class="number">0</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++let+mut+slice+=+%5B10,+40,+30,+20,+60,+50%5D;%0A++++let+iter+=+slice.splitn_mut(2,+%7Cnum%7C+*num+%25+3+==+0);%0A%7D&amp;edition=2021"></a></div>8 <span·class="kw">let·</span>iter·=·slice.splitn_mut(<span·class="number">2</span>,·|num|·<span·class="kw-2">*</span>num·%·<span·class="number">3·</span>==·<span·class="number">0</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++let+mut+slice+=+%5B10,+40,+30,+20,+60,+50%5D;%0A++++let+iter+=+slice.splitn_mut(2,+%7Cnum%7C+*num+%25+3+==+0);%0A%7D&amp;edition=2021"></a></div>
9 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-SplitNMut%3C'_,+T,+P%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.9.0">1.9.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/slice/iter.rs.html#1253-1255">Source</a></span><a·href="#impl-Debug-for-SplitNMut%3C'_,+T,+P%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·P&gt;·<a·class="trait"·href="../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.SplitNMut.html"·title="struct·alloc::slice::SplitNMut">SplitNMut</a>&lt;'_,·T,·P&gt;<div·class="where">where9 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-SplitNMut%3C'_,+T,+P%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.9.0">1.9.0</span>···<a·class="src"·href="../../src/core/slice/iter.rs.html#1253-1255">Source</a></span><a·href="#impl-Debug-for-SplitNMut%3C'_,+T,+P%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·P&gt;·<a·class="trait"·href="../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.SplitNMut.html"·title="struct·alloc::slice::SplitNMut">SplitNMut</a>&lt;'_,·T,·P&gt;<div·class="where">where
10 ····T:·<a·class="trait"·href="../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,10 ····T:·<a·class="trait"·href="../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,
11 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·1625,·SHA:·bad69645dec072754d997c63da7d6f0378a18d7c1d3aadb115a1e6bc4d751503·...·]/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::Iterator">Iterator</a>·for·<a·class="struct"·href="struct.SplitNMut.html"·title="struct·alloc::slice::SplitNMut">SplitNMut</a>&lt;'a,·T,·P&gt;<div·class="where">where11 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="../../core/primitive.bool.html">bool</a>,</div></h3></[·...·truncated·by·diffoscope;·len:·1409,·SHA:·a982c7dfa7232cb1a88d3365cde183b049b113e4bb6c44b78e29c87de69e9200·...·]/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::Iterator">Iterator</a>·for·<a·class="struct"·href="struct.SplitNMut.html"·title="struct·alloc::slice::SplitNMut">SplitNMut</a>&lt;'a,·T,·P&gt;<div·class="where">where
12 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·3198,·SHA:·551b79e166340050d68807be090d6d969f7eac353ab0dd4e18930de64327ed79·...·]/core/primitive.usize.html">usize</a>&gt;(12 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="../../core/primitive.bool.html">bool</a>,</div></h3></[·...·truncated·by·diffoscope;·len:·2658,·SHA:·e8c41b5e194e2deef834bdc4206bffbf67507eecd08730e72b2b194ac17876c9·...·]/core/primitive.usize.html">usize</a>&gt;(
13 ····&amp;mut·self,13 ····&amp;mut·self,
14 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·4f557a9b49151e0be8c52ffd68f1def4469c08164239dc8bef8df2040551c5ef·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where14 )·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">It[·...·truncated·by·diffoscope;·len:·246,·SHA:·baf6c8e6f3d5dbac69324111240b1587dbb858d42149cae1ee895a165289ff4f·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where
15 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·962,·SHA:·116e4ec2ae3d9655c3d115eaf50f435f5323b4e48b84de734c79d2a09b3c02f2·...·]/core/primitive.usize.html">usize</a><div·class="where">where15 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_next_ch[·...·truncated·by·diffoscope;·len:·827,·SHA:·2479cde9ab5aa3e18f76cf74cf7889a3de87c66e1745f27cf29bd34c4d30dbdf·...·]/core/primitive.usize.html">usize</a><div·class="where">where
16 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·counting·the·number·of·iterations·and·returning·it.·<a·href="https://doc.[·...·truncated·by·diffoscope;·len:·837,·SHA:·47e25b6f9687bcc1d1fcdf9842fb085e6aba767d70531028f948636b80563dfc·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where16 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·counting·the·number·of·iterations·and·returning·it.·<a·href="../../core/iter/traits/iterator/trait.I[·...·truncated·by·diffoscope;·len:·675,·SHA:·1ce62884794ba87e19a0c96720594ee19d36bf34d9a84160028eeff78b648fa9·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
17 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·returning·the·last·element.·<a·href="https://doc.rust-lang.org/1.84.0/cor[·...·truncated·by·diffoscope;·len:·3504,·SHA:·ec43d0f6d8d2a1e0fb7a684c382b9934abe1250844e53cce08bdfc6017ecb276·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where17 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·returning·the·last·element.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.last[·...·truncated·by·diffoscope;·len:·2964,·SHA:·db62f7c0fcc4ed24f8d8d5c90b4eb970e1ba2f576e1c200c74164f961b4de28e·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where
18 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by18 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by
19 the·given·amount·at·each·iteration.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><sp[·...·truncated·by·diffoscope;·len:·842,·SHA:·945c4509a8daf2f8fbccc5c6e5089e225955911e03a3e411f047f96d52d16862·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where19 the·given·amount·at·each·iteration.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Sta[·...·truncated·by·diffoscope;·len:·680,·SHA:·77241b5118fcbc984cb791fa9f75077307e18056b66492741335faf440cbdabc·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
20 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,20 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
21 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·3b5ce32f9d564c3aa7cf2adc7130e674758d0c0f4f1275b4c3b46a74aa802cb3·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where21 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·1113,·SHA:·ccf22d19f49a25daffdcc6d9226d5107457a8bfd16beccfeff5020d151bdb8bb·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
22 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,22 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
23 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·[·...·truncated·by·diffoscope;·len:·868,·SHA:·abdbf27ccc84063c7040d8fa3da9d0bda5ee310a470ef576e15554aee4bd5d21·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where23 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·of·pairs.·<a·href="../../co[·...·truncated·by·diffoscope;·len:·706,·SHA:·f32c568f049122021445a983654582d97ac74064a3e99c3361b348bd7708c1b2·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where
24 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,24 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
25 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent25 ····Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent
26 items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="sr[·...·truncated·by·diffoscope;·len:·427,·SHA:·6e82ad4aad49c2165d869fe30d20a968580a973cdb3a7f4c77f49e16dd59393e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where26 items·of·the·original·iterator.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="src·rightside"·href="../../sr[·...·truncated·by·diffoscope;·len:·319,·SHA:·8babc469a22056fc5a02684b52f9f93ba9c27a3dd2e8443ddc060797054e211e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where
27 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,27 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
28 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>28 ····G:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>
29 between·adjacent·items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightsi[·...·truncated·by·diffoscope;·len:·471,·SHA:·ed10488b7b2ccc3e4cc84a9a57a9695a74c1c964962e8d753cbace12f3318a66·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where29 between·adjacent·items·of·the·original·iterator.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·tit[·...·truncated·by·diffoscope;·len:·363,·SHA:·09aee21fa4172b743a714e2cb5915129575ce0224df49c7343dec38f43b7ecfd·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where
30 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,30 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
31 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each31 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each
32 element.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><spa[·...·truncated·by·diffoscope;·len:·306,·SHA:·61c87c39b177830189b0e4c036d97c40d8b9649d76432c90afb88de59498e8b2·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where32 element.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stab[·...·truncated·by·diffoscope;·len:·225,·SHA:·a0f2490a1a5fd6b44e0ab01199cbbbd6e5463251405d11eaf6798c9b50bbd683·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where
33 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,33 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
34 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·a65da32c5f5ef8335cb607d3b4ab3f8a25877bc2c2e8b44ca9d575caecd5c8a5·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where34 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·754,·SHA:·421e55a5747cab3df1dad40b747b4633f241bdc13a1546bb19b1370788dea27d·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where
35 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,35 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
36 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·6d69c85c69fa789be551ea42d95c33c237d12a04ef157f9ddaaead1177f7771e·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element36 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·59,·SHA:·76969e34965f1923de668a65a9f5c33f73266468c9b96650bcc5fd498e606a6b·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element
37 should·be·yielded.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·489,·SHA:·9bdc636899f4e4e5a26a3a21c9603f72b3fb972865d2f459c38b7e2ac8fed7f1·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where37 should·be·yielded.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·cf812944678f6755720896cf32b330946303afe59f1b1c11adeb6a7f33454c8d·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where
38 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,38 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
39 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·46dbf841c7aecd3f06bd4c944af21650faeac98c46c515dcfe643302618b1ecd·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where39 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·863,·SHA:·c2bab87fa2a70713bd2d34b3dcae8f4ff2341917103b43a1dd505317f15d6cff·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where
40 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as40 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as
41 the·next·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside[·...·truncated·by·diffoscope;·len:·468,·SHA:·52f7ff7f264284c3acc4429ca34d057ded9afa2e3d9d6e07571e252db9a48977·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where41 the·next·value.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title[·...·truncated·by·diffoscope;·len:·360,·SHA:·688416dc1aaaa0be069177270ba9e74b3d1b92521285a109dc7ba86b58c1f22a·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where
42 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·c0180fefce4346b0b4089e5c642521d7716108241c0ce6ec3e910c7a2c7364b4·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods42 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="../../core/iter/adapters/peekable/struct.Peekable.html#method.peek"·title="m[·...·truncated·by·diffoscope;·len:·94,·SHA:·78aeab33f83c647dfe680c1050358c95977e3af17eabde4a04880721ea1a619d·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods
43 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See43 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See
44 their·documentation·for·more·information.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightsid[·...·truncated·by·diffoscope;·len:·498,·SHA:·e4a68861585faec6a5032b3b69d6dfb0f2799b5f387a527d9a1365571ed02069·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where44 their·documentation·for·more·information.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightside"><span·class="since"·titl[·...·truncated·by·diffoscope;·len:·390,·SHA:·5da622ae0e4d00b47239007520070e22568156d6c5b1662db8b80b465934b18c·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where
45 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,45 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
46 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·93281c1f6402743fd61110c11cf676f0f67eddceda801b4eb35e5fe9f85870fd·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where46 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·1018,·SHA:·732548acff5239e9a7b904f32790c90ab3b63522635334128f35e01d37ceaeb6·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where
47 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,47 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
48 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·f1cdbb1ec64f98fabbe1d89c88b03824310926cd7eaa160953ce2452fc3abb77·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where48 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·869,·SHA:·8ec7e525848424d5104dbdd10928d17cfee4e5aee63cdda7ecdbe323b30b59d3·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where
49 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,49 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
50 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·f94a0b2c1396b13b89aca7830197ebf19e2c0e5ba536a9cc25b325a481799510·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where50 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·947,·SHA:·fdd074315a0bfb226f815b1b6ea114c7367886338ffffff233d7f6fc3108769a·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where
51 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="https://doc.rust-lang[·...·truncated·by·diffoscope;·len:·783,·SHA:·c14217b89e3292a50a09192a8857485891fc769f861e1d1fc4322d04295c86ef·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where51 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="../../core/iter/traits/iterator/trait.Iterator.h[·...·truncated·by·diffoscope;·len:·621,·SHA:·484df7f946e7f2f69c3acad8964421c0db8ac5bb40032d11bbd862e20e67704c·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where
52 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer52 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer
53 if·the·underlying·iterator·ends·sooner.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·c[·...·truncated·by·diffoscope;·len:·488,·SHA:·76f753d5a273a09a73127631acaa0ee947326a929f33be291018188793e1af56·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where53 if·the·underlying·iterator·ends·sooner.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·[·...·truncated·by·diffoscope;·len:·380,·SHA:·fa258c7e0b5d583304a69e2d4e19f3d4cc9a9ed830bdf3796eaa0968bdf590b4·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where
54 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,54 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
55 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·07d303586c8ad4e0082d5b44bff8eeda03cdb8f4bdbe46489f9232bca5a43ec6·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but55 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterat[·...·truncated·by·diffoscope;·len:·314,·SHA:·299331ff47adaff3ebc292c53557ad34da957aef932f87ec0444c7f856820410·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but
56 unlike·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·2b20882d9583cee50e0c8b3cf362b27ce0d524db387d4aa4093d622b9370dada·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where56 unlike·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.scan">Read·more[·...·truncated·by·diffoscope;·len:·555,·SHA:·77279e392f259f6d4859f5a7747ee4b4d5315f3af0ac3baebf1d53be3461b312·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where
57 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,57 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
58 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,58 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
59 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·933,·SHA:·4af94b75ba5c1e03d2d70590d2fd0706f13b3080fbff0f5b98e7b109048c403d·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where59 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·771,·SHA:·a1a50c8ca4c13151c7b22ce05c74c449231e1ffe44225beee67ff212fc1d3859·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where
60 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,60 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
61 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.I[·...·truncated·by·diffoscope;·len:·968,·SHA:·e5572ed2f3bdf5970d038da608f2f592d945541207c483c257fe5789efba168a·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where61 ····Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::col[·...·truncated·by·diffoscope;·len:·779,·SHA:·a4e524bd8aa8a1e0a66409d1b462b88093ab51a1f901ff1a788d7ee63d597f4c·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where
62 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,62 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
63 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·3013c0e49b0dade37f8ca096eccc5ceeb03fc79b9d320a4c92486d23b88d1009·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over63 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·54,·SHA:·6acee514e4d8df8979b4bba687b7e0d5dbb0ea4f98a7019e2fb03f3a8058df0f·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over
64 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,64 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="../../core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,
65 the·windows·during·mapping·overlap·as·well.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside">[·...·truncated·by·diffoscope;·len:·454,·SHA:·040991f3914479bcc92615de2b81df7363656323622e5aadc964e1a61917d23e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where65 the·windows·during·mapping·overlap·as·well.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="[·...·truncated·by·diffoscope;·len:·346,·SHA:·b1244a5f92e0573c29e04e883cf8212ba2586013b3687af07b63c29d2e611530·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where
66 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="https://doc.rust-lang.org/1.84.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·0e0294a45242d5ce9a3ab8f95d6d410756415291d92baa7d12283ef1b3ecc3a0·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where66 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="../../core/option/enum.Option.html#variant.None"·title="variant·cor[·...·truncated·by·diffoscope;·len:·679,·SHA:·ec753d6ecf7b9fe81cb270d78e45e053f2702fff74c7a63c2ab8da22b97fea86·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where
67 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,67 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
68 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·a8b562f71802a421f4745f7d1fadf4f70d98030c829e70f27b692e7915267027·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where68 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·635,·SHA:·ee3a5bcc3544c3f17985966634fef69b1708d641ddb7e62aaac76933935c5ef7·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where
69 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="https://doc.rust-lang.org/1.84.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·b3db7d84f203bbc139b1c52912705d19c664dac762898205fce452c9dc3a5318·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where69 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.by_ref">[·...·truncated·by·diffoscope;·len:·415,·SHA:·7e0e075470d2db380bcf0838446659654c982aa2ca7831ed7d0317877855be2a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where
70 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,70 ····B:·<a·class="trait"·href="../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
71 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·431,·SHA:·a705a23f6d810357e7dcac670743884665ffcccfb9b780d0aa03720be8ca5625·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(71 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.collect">Read[·...·truncated·by·diffoscope;·len:·323,·SHA:·80e0dde3814a6e7cf4e30949627abc841ab4e98e2a920efb248777e22708682d·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(
72 ····&amp;mut·self,72 ····&amp;mut·self,
73 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.h[·...·truncated·by·diffoscope;·len:·479,·SHA:·fa749442d890055f86ceb34f411c84fd7ea08302b336d786d1ca36fe5868b020·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where73 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&g[·...·truncated·by·diffoscope;·len:·344,·SHA:·c06c6401df0a7150633e94cc973521da42e09819b07be80ba18d6acb696860a9·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
74 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,74 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
75 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>,75 ····Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>,
76 ····&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.h[·...·truncated·by·diffoscope;·len:·300,·SHA:·3bff089180bac38df7f42b87556fae7641185b89a949c284f53e3ac718a6decb·...·]/core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;B&gt;,76 ····&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&g[·...·truncated·by·diffoscope;·len:·192,·SHA:·039ceb6ce31fc6b1871e3e366efbd0f164f4a6cc1bc25554bba598b0ee820cca·...·]/core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;B&gt;,
77 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/itera[·...·truncated·by·diffoscope;·len:·323,·SHA:·b5c51f161dc9d77fd81d1fd23cc71fbf42ac00f3168cf9e41ebaaa2b6eb25363·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if77 ····B:·<a·class="trait"·href="../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="ty[·...·truncated·by·diffoscope;·len:·215,·SHA:·ddb8fbd12147eecef1697edd4c63187cc514ab4b851290335adfcccc3fa429ba·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if
78 a·failure·is·encountered.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·ri[·...·truncated·by·diffoscope;·len:·521,·SHA:·6a54376815dab985ec8cc35604d035e98e3003b1563c9b41e70966084505542b·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where78 a·failure·is·encountered.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/co[·...·truncated·by·diffoscope;·len:·386,·SHA:·d46a776c329de4f757930edda252586c2cdd85c6956b7b2f68448da33ee0625e·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
79 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,79 ····E:·<a·class="trait"·href="../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
80 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·975,·SHA:·94f7f970236ba59ba5f1415764a0e3ab2f3093c6b79e76c25c797ac24a3c4d09·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where80 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_collect[·...·truncated·by·diffoscope;·len:·840,·SHA:·1ee6fbe4deb3d959e9ade58fb7ed3efa79d09721ed02fbb5f5f82aae6aa1425d·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
81 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,81 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
82 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·b480ec650ba000fe7cb67df58fc0351299638ee3e8f00db18f74ca24d69f9894·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,82 ····B:·<a·class="trait"·href="../../core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtyp[·...·truncated·by·diffoscope;·len:·14,·SHA:·4105980ca4887a52797067761af25a11e3de6069cd8d7c8ce82cd885bb798fe8·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
83 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·fdf5a1845f070855ba2cfd0c8c85460ea5cb646c4d3b42a8431bf21489c73701·...·]/core/primitive.usize.html">usize</a><div·class="where">where83 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·806,·SHA:·4d554b733db12e71a31ec2477a31408041941b0e2b0dc910904ecf2fced9f65b·...·]/core/primitive.usize.html">usize</a><div·class="where">where
84 ····T:·'a,84 ····T:·'a,
85 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·1fc250e258e9e42e4fa3e22f86ecd57057e9ff23e47af1aec778076a7a891134·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,85 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIter[·...·truncated·by·diffoscope;·len:·51,·SHA:·c9be73bbed9d11ecac2a179f480a640f51d6255f26712667ffdabc72c1fc7fb0·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,
86 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·5846407374f20f525a4a0663ad4488141eafe64513ef82581dc5df5c2d200745·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_partition_in_place</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62543">#62543</a>)</span></div></span><div·class='docblock'>Reorders·the·elements·of·this·iterator·<em>in-place</em>·according·to·the·given·predicate,86 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="../../core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_partition_in_place</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62543">#62543</a>)</span></div></span><div·class='docblock'>Reorders·the·elements·of·this·iterator·<em>in-place</em>·according·to·the·given·predicate,
87 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.87 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.
88 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.partition_in_place">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_partitioned"·class="method·trait-impl"><a·clas[·...·truncated·by·diffoscope;·len:·431,·SHA:·4aa7d028146c72d45794efc19a376d4bee3b75eda61ff46d969e440b3dbfa1b0·...·]/core/primitive.bool.html">bool</a><div·class="where">where88 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.partition_in_place">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_partitioned"·class="method·trait-impl"><a·class="src·rightside"·href="../[·...·truncated·by·diffoscope;·len:·323,·SHA:·bfc44418fa28079222aab80e2baccdaffb2d067bbe5d1b5162202d268ad628d7·...·]/core/primitive.bool.html">bool</a><div·class="where">where
89 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,89 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
90 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·fcd03e71f79faad6d9b9a12045d59f4dfabc78e5aefebcabc9c1a5be45e31125·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,90 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·54,·SHA:·d5ac304cc26edf57442227b641dd21c427d0f9cb322b79986f5b15fc49f867b0·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,
91 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><span·class="righ[·...·truncated·by·diffoscope;·len:·319,·SHA:·9b9df13f2f4e5b4dde3908515766e1a474fa30bcb7edc98c15665a016e677c2a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where91 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><span·class="rightside"><span·class="since"·[·...·truncated·by·diffoscope;·len:·238,·SHA:·af6ab768457e0afa1532b80c4296ae18061dac4c765922889b13eead3e5492db·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where
92 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,92 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
93 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,93 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
94 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns94 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns
95 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rights[·...·truncated·by·diffoscope;·len:·321,·SHA:·619fd774190944998148325de99aaa75de66ce4b7e26579fd342c564923a5652·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where95 successfully,·producing·a·single,·final·value.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"·ti[·...·truncated·by·diffoscope;·len:·240,·SHA:·125e84deea747ccbe139725d028362287beed6a89ab9da3a3aabd7df537abc59·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where
96 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,96 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
97 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,97 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
98 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the98 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="../../core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the
99 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·307,·SHA:·5975144fd8566efa93ad1ccec09297e280924b7372e08681d2103702124e2c52·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where99 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title=[·...·truncated·by·diffoscope;·len:·226,·SHA:·a7510e9271e68887d9e2681c6bc28312cec9ac38883128845f52742935a160a9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where
100 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,100 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
101 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,101 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,
102 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span[·...·truncated·by·diffoscope;·len:·619,·SHA:·8813f54846438870310d5f5dfabd2335a9dbf51e9da2e4cd681bcb6077d39628·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where102 returning·the·final·result.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stabl[·...·truncated·by·diffoscope;·len:·484,·SHA:·5f42e8d5ff08f4c76870e6cb9165e054f9a0d99051d9886ccd43d5c8a91e1fbc·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
103 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,103 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
104 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·084691f7fc4e7f4da7db385127d0ce8d2d52f6740757129a65910c4db0dc180d·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing104 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·244,·SHA:·f09ac7e818239538c3f3208cb5c76076c24a0153797eb762821d5bf2a382d83b·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing
105 operation.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·217,·SHA:·447ae00256be3de069c602a6c04889808c883eae6fa349d023f53bdd5570ecae·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(105 operation.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/iter[·...·truncated·by·diffoscope;·len:·136,·SHA:·97e3ee132585582ec7077e3bbd86406d8a2dcfc97dce7fd52b49af3ec1b58622·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(
106 ····&amp;mut·self,106 ····&amp;mut·self,
107 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R, 
108 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.T[·...·truncated·by·diffoscope;·len:·950,·SHA:·817376e71f7a0d170bfbd4b7264c15d324f49c65106c49349d11a077842aa533·...·]107 ····f:·impl·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core:[·...·truncated·by·diffoscope;·len:·238,·SHA:·a52edc1a1ce1db5dd6e620dbfe5acb58fdc6d84f2320cef02845988aa54e5c55·...·]
 108 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;&gt;&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
109 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,109 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
110 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,110 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
111 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·764ea8f08626b05426a76738d54ebb2d640042494d76cba8c20d868bfdc07a73·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the111 ····&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>:·<a[·...·truncated·by·diffoscope;·len:·277,·SHA:·0dd064909226a9691486376740de1e17aa133a7ae2f635bee3feaa9b19d7b580·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the
112 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><span·class="rightside"><s[·...·truncated·by·diffoscope;·len:·476,·SHA:·aef721c14147dea2fbec70dcfa76916b3f1273bed8304f4c9db310ca23d1e4b1·...·]/core/primitive.bool.html">bool</a><div·class="where">where112 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="St[·...·truncated·by·diffoscope;·len:·368,·SHA:·6dbfbc90b7cfda9017074212ce0beeb560c8f9ba918ba7b00292e34daa531cc2·...·]/core/primitive.bool.html">bool</a><div·class="where">where
113 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,113 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
114 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·7c48e62c73a40a5cb5ebbf4a22cd789b342a88ad3d855022191f2bae33c736c6·...·]/core/primitive.bool.html">bool</a><div·class="where">where114 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·829,·SHA:·c413d95d1072acd820201f12ffb54d04a6c7f3b732f7de46115ba40b4eb1bd3f·...·]/core/primitive.bool.html">bool</a><div·class="where">where
115 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,115 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
116 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·673d69ce0c23e24b2546127c463e67cd2a4c0f7be792712e2b42e75427161b75·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where116 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·956,·SHA:·105c7ff05d33bc9219febe8c9633cf1c1a8d88c32e47e44793d403a428174c66·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
117 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,117 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
118 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·aa5078ff77f5638746395497f8ce92c1b684d342dea851990104d5e9981ab6b0·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where118 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·862,·SHA:·ab608da827ec12779180206da5bfe43676627c19288c1fe674060a00ba44a595·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where
119 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,119 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
120 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·1bd732dff19021a1586bb486282683f5c1bc65d5d514f9e13cc9232b4e94955b·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;,</div></h4></section></summary><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns120 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·49,·SHA:·819211b646a21318a22e9d295452cdf890d5288a631a50261ca1a5b2bac9f748·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;,</div></h4></section></summary><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns
121 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.find_map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_find"·class="method·trait-impl"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·215,·SHA:·4d59a011c8881794ce6367c1e816f11a813db02e37c71800ed6d47056f157573·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(121 the·first·non-none·result.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.find_map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_find"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/iter[·...·truncated·by·diffoscope;·len:·134,·SHA:·f9a67b0520c850053a598ecaa24d4c1a006e7174ac499ec1e09451cd90ea548e·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(
122 ····&amp;mut·self,122 ····&amp;mut·self,
123 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,123 ····f:·impl·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
124 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·efb03e5c706e0947c6a4490b17f1efb0f1944a7d81f2640b5933212334dd255a·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where124 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>·as·[·...·truncated·by·diffoscope;·len:·464,·SHA:·38b1d27bdc6fd93a0d7e942386ffe94e909033d34def03ec6236baba6643ee81·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
125 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,125 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
126 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html">bool</a>&gt;,126 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="../../core/primitive.bool.html">bool</a>&gt;,
Max diff block lines reached; 82838/316917 bytes (26.14%) of diff not shown.
345 KB
./usr/share/doc/rust-doc/html/alloc/slice/struct.Windows.html
    
Offset 1, 243 lines modifiedOffset 1, 243 lines modified
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="An·iterator·over·overlapping·subslices·of·length·`size`."><title>Windows·in·alloc::slice·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»       2025-01-07)»    (built»      from»  a» source»   tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Windows</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#example"·title="Example">Example</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-Windows%3C'_,+T%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-Windows%3C'a,+T%3E"·title="Debug">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-Windows%3C'a,+T%3E"·title="DoubleEndedIterator">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-Windows%3C'_,+T%3E"·title="ExactSizeIterator">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-Windows%3C'_,+T%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-Windows%3C'a,+T%3E"·title="Iterator">Iterator</a></li><li><a·href="#impl-TrustedLen-for-Windows%3C'_,+T%3E"·title="TrustedLen">TrustedLen</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-Windows%3C'a,+T%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Windows%3C'a,+T%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Windows%3C'a,+T%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-Windows%3C'a,+T%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-Windows%3C'a,+T%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Windows%3C'a,+T%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>slice</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">alloc</a>::<wbr><a·href="index.html">slice</a></span><h1>Struct·<span·class="struct">Windows</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/slice/iter.rs.html#1328">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·Windows&lt;'a,·T&gt;<div·class="where">where1 <!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="An·iterator·over·overlapping·subslices·of·length·`size`."><title>Windows·in·alloc::slice·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»       2025-01-07)»    (built»      from»  a» source»   tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Windows</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#example"·title="Example">Example</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-Windows%3C'_,+T%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-Windows%3C'a,+T%3E"·title="Debug">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-Windows%3C'a,+T%3E"·title="DoubleEndedIterator">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-Windows%3C'_,+T%3E"·title="ExactSizeIterator">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-Windows%3C'_,+T%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-Windows%3C'a,+T%3E"·title="Iterator">Iterator</a></li><li><a·href="#impl-TrustedLen-for-Windows%3C'_,+T%3E"·title="TrustedLen">TrustedLen</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-Windows%3C'a,+T%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Windows%3C'a,+T%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Windows%3C'a,+T%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-Windows%3C'a,+T%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-Windows%3C'a,+T%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Windows%3C'a,+T%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>slice</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">alloc</a>::<wbr><a·href="index.html">slice</a></span><h1>Struct·<span·class="struct">Windows</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../src/core/slice/iter.rs.html#1328">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·Windows&lt;'a,·T&gt;<div·class="where">where
2 ····T:·'a,</div>{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>An·iterator·over·overlapping·subslices·of·length·<code>size</code>.</p>2 ····T:·'a,</div>{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>An·iterator·over·overlapping·subslices·of·length·<code>size</code>.</p>
3 <p>This·struct·is·created·by·the·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>windows</code></a>·method·on·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html"·title="primitive·slice">slices</a>.</p>3 <p>This·struct·is·created·by·the·<a·href="../../core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>windows</code></a>·method·on·<a·href="../../core/primitive.slice.html"·title="primitive·slice">slices</a>.</p>
4 <h2·id="example"><a·class="doc-anchor"·href="#example">§</a>Example</h2>4 <h2·id="example"><a·class="doc-anchor"·href="#example">§</a>Example</h2>
5 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span>slice·=·[<span·class="string">'r'</span>,·<span·class="string">'u'</span>,·<span·class="string">'s'</span>,·<span·class="string">'t'</span>];5 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span>slice·=·[<span·class="string">'r'</span>,·<span·class="string">'u'</span>,·<span·class="string">'s'</span>,·<span·class="string">'t'</span>];
6 <span·class="kw">let·</span><span·class="kw-2">mut·</span>iter·=·slice.windows(<span·class="number">2</span>);6 <span·class="kw">let·</span><span·class="kw-2">mut·</span>iter·=·slice.windows(<span·class="number">2</span>);
7 <span·class="macro">assert_eq!</span>(iter.next(),·<span·class="prelude-val">Some</span>(<span·class="kw-2">&amp;</span>[<span·class="string">'r'</span>,·<span·class="string">'u'</span>][..]));7 <span·class="macro">assert_eq!</span>(iter.next(),·<span·class="prelude-val">Some</span>(<span·class="kw-2">&amp;</span>[<span·class="string">'r'</span>,·<span·class="string">'u'</span>][..]));
8 <span·class="macro">assert_eq!</span>(iter.next(),·<span·class="prelude-val">Some</span>(<span·class="kw-2">&amp;</span>[<span·class="string">'u'</span>,·<span·class="string">'s'</span>][..]));8 <span·class="macro">assert_eq!</span>(iter.next(),·<span·class="prelude-val">Some</span>(<span·class="kw-2">&amp;</span>[<span·class="string">'u'</span>,·<span·class="string">'s'</span>][..]));
9 <span·class="macro">assert_eq!</span>(iter.next(),·<span·class="prelude-val">Some</span>(<span·class="kw-2">&amp;</span>[<span·class="string">'s'</span>,·<span·class="string">'t'</span>][..]));9 <span·class="macro">assert_eq!</span>(iter.next(),·<span·class="prelude-val">Some</span>(<span·class="kw-2">&amp;</span>[<span·class="string">'s'</span>,·<span·class="string">'t'</span>][..]));
10 <span·class="macro">assert_eq!</span>(iter.next(),·<span·class="prelude-val">None</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++let+slice+=+%5B'r',+'u',+'s',+'t'%5D;%0A++++let+mut+iter+=+slice.windows(2);%0A++++assert_eq!(iter.next(),+Some(%26%5B'r',+'u'%5D%5B..%5D));%0A++++assert_eq!(iter.next(),+Some(%26%5B'u',+'s'%5D%5B..%5D));%0A++++assert_eq!(iter.next(),+Some(%26%5B's',+'t'%5D%5B..%5D));%0A++++assert_eq!(iter.next(),+None);%0A%7D&amp;edition=2021"></a></div>10 <span·class="macro">assert_eq!</span>(iter.next(),·<span·class="prelude-val">None</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++let+slice+=+%5B'r',+'u',+'s',+'t'%5D;%0A++++let+mut+iter+=+slice.windows(2);%0A++++assert_eq!(iter.next(),+Some(%26%5B'r',+'u'%5D%5B..%5D));%0A++++assert_eq!(iter.next(),+Some(%26%5B'u',+'s'%5D%5B..%5D));%0A++++assert_eq!(iter.next(),+Some(%26%5B's',+'t'%5D%5B..%5D));%0A++++assert_eq!(iter.next(),+None);%0A%7D&amp;edition=2021"></a></div>
11 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-Windows%3C'_,+T%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/slice/iter.rs.html#1342">Source</a></span><a·href="#impl-Clone-for-Windows%3C'_,+T%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/tr[·...·truncated·by·diffoscope;·len:·2035,·SHA:·8170e326fec0bca52f0daae203ac773f5f6d9e121d6db7cb2576e10988f7b4ca·...·]/src/core/slice/iter.rs.html#1325">Source</a></span><a·href="#impl-Debug-for-Windows%3C'a,+T%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·T&gt;·<a·class="trait"·href="../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.Windows.html"·title="struct·alloc::slice::Windows">Windows</a>&lt;'a,·T&gt;<div·class="where">where11 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-Windows%3C'_,+T%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/slice/iter.rs.html#1342">Source</a></span><a·href="#impl-Clone-for-Windows%3C'_,+T%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone[·...·truncated·by·diffoscope;·len:·1792,·SHA:·618315db9c9e7118f4ba9de5995a36ea10c5a4453f4990a68b41fdc8fa3a4437·...·]/src/core/slice/iter.rs.html#1325">Source</a></span><a·href="#impl-Debug-for-Windows%3C'a,+T%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·T&gt;·<a·class="trait"·href="../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.Windows.html"·title="struct·alloc::slice::Windows">Windows</a>&lt;'a,·T&gt;<div·class="where">where
12 ····T:·<a·class="trait"·href="../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·+·'a,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/slice/iter.rs.html#1325">Source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·hre[·...·truncated·by·diffoscope;·len:·5882,·SHA:·0e5e89a6fe1acb6ba7ecc96c5fdc02ad0850260283d41a1966cbb3ace658d62b·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold"·class="fn">try_rfold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where12 ····T:·<a·class="trait"·href="../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·+·'a,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/slice/iter.rs.html#1325">Source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="../fmt/struct.Formatter.[·...·truncated·by·diffoscope;·len:·5153,·SHA:·840dfd090335d15c7c2adebcfde79d4f3242d60511d1a9c5e5da683e7a6032ab·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold"·class="fn">try_rfold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where
13 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,13 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
14 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,14 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
15 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>This·is·the·reverse·version·of·<a·href="https://doc.rust-lang.org/1.8[·...·truncated·by·diffoscope;·len:·3,·SHA:·fbd04e1aae9ce0b11a8946e2c9ac2619f7428a64d32d01eff61d809dcb70ee8e·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·title="method·core::iter::traits::iterator::Iterator::try_fold"><code>Iterator::try_fold()</code></a>:·it·takes15 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>This·is·the·reverse·version·of·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·title="method·core::iter::traits::iterator::Iterator::try_fold"><code>Iterator::try_fold()</code></a>:·it·takes
16 elements·starting·from·the·back·of·the·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfold"·class="method·trait-impl"><span·clas[·...·truncated·by·diffoscope;·len:·325,·SHA:·7ffdb06a8ab3810207a1c974783822231eaf1d82fd94bcf810dd7b3181149b7b·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold"·class="fn">rfold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where16 elements·starting·from·the·back·of·the·iterator.·<a·href="../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfold"·class="method·trait-impl"><span·class="rightside"><span·class="[·...·truncated·by·diffoscope;·len:·244,·SHA:·6c4fe3f75fed1f00ec73ae6acd6efe929fb891f07f47293eec1013d32fc0fbe1·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold"·class="fn">rfold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where
17 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,17 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
18 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·reduces·the·iterator’s·elements·to·a·single,18 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·reduces·the·iterator’s·elements·to·a·single,
19 final·value,·starting·from·the·back.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfind"·class="method·trait-impl"><span·class="r[·...·truncated·by·diffoscope;·len:·665,·SHA:·fde89feb7c0e70eefa34d688476ca36a70115bec8150dbf9b1a3c359f72dd28d·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where19 final·value,·starting·from·the·back.·<a·href="../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfind"·class="method·trait-impl"><span·class="rightside"><span·class="sinc[·...·truncated·by·diffoscope;·len:·530,·SHA:·75a595bf6f9813abee32ae86d68f5de961884ee60e7080e18fb9c73b8e22c5f0·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
20 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,20 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
21 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·10454,·SHA:·6c0861d81291075389280cc1074e05e153c8685e0b6207d64ed193fcc39c5a6e·...·]/core/primitive.usize.html">usize</a>&gt;(21 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·9104,·SHA:·b8cc9f589c449754394e31b182f3692441f7c7fa859ee2c1ff68e2c92bf951ff·...·]/core/primitive.usize.html">usize</a>&gt;(
22 ····&amp;mut·self,22 ····&amp;mut·self,
23 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·4f557a9b49151e0be8c52ffd68f1def4469c08164239dc8bef8df2040551c5ef·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where23 )·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">It[·...·truncated·by·diffoscope;·len:·246,·SHA:·baf6c8e6f3d5dbac69324111240b1587dbb858d42149cae1ee895a165289ff4f·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where
24 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·2597,·SHA:·e43e149acfa6ad1816c364b2828c60b6adfdffe814c9ef8b9f9b56e35c4e44a7·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where24 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_next_ch[·...·truncated·by·diffoscope;·len:·2219,·SHA:·92e912ee585db2c097b6d1cf2aef0139e2a927527f301ab7da0bc73758cc2d6b·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where
25 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by25 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by
26 the·given·amount·at·each·iteration.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><sp[·...·truncated·by·diffoscope;·len:·842,·SHA:·945c4509a8daf2f8fbccc5c6e5089e225955911e03a3e411f047f96d52d16862·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where26 the·given·amount·at·each·iteration.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Sta[·...·truncated·by·diffoscope;·len:·680,·SHA:·77241b5118fcbc984cb791fa9f75077307e18056b66492741335faf440cbdabc·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
27 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,27 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
28 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·3b5ce32f9d564c3aa7cf2adc7130e674758d0c0f4f1275b4c3b46a74aa802cb3·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where28 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·1113,·SHA:·ccf22d19f49a25daffdcc6d9226d5107457a8bfd16beccfeff5020d151bdb8bb·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
29 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,29 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
30 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·[·...·truncated·by·diffoscope;·len:·868,·SHA:·abdbf27ccc84063c7040d8fa3da9d0bda5ee310a470ef576e15554aee4bd5d21·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where30 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·of·pairs.·<a·href="../../co[·...·truncated·by·diffoscope;·len:·706,·SHA:·f32c568f049122021445a983654582d97ac74064a3e99c3361b348bd7708c1b2·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where
31 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,31 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
32 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent32 ····Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent
33 items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="sr[·...·truncated·by·diffoscope;·len:·427,·SHA:·6e82ad4aad49c2165d869fe30d20a968580a973cdb3a7f4c77f49e16dd59393e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where33 items·of·the·original·iterator.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="src·rightside"·href="../../sr[·...·truncated·by·diffoscope;·len:·319,·SHA:·8babc469a22056fc5a02684b52f9f93ba9c27a3dd2e8443ddc060797054e211e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where
34 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,34 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
35 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>35 ····G:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>
36 between·adjacent·items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightsi[·...·truncated·by·diffoscope;·len:·471,·SHA:·ed10488b7b2ccc3e4cc84a9a57a9695a74c1c964962e8d753cbace12f3318a66·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where36 between·adjacent·items·of·the·original·iterator.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·tit[·...·truncated·by·diffoscope;·len:·363,·SHA:·09aee21fa4172b743a714e2cb5915129575ce0224df49c7343dec38f43b7ecfd·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where
37 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,37 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
38 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each38 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each
39 element.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><spa[·...·truncated·by·diffoscope;·len:·306,·SHA:·61c87c39b177830189b0e4c036d97c40d8b9649d76432c90afb88de59498e8b2·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where39 element.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stab[·...·truncated·by·diffoscope;·len:·225,·SHA:·a0f2490a1a5fd6b44e0ab01199cbbbd6e5463251405d11eaf6798c9b50bbd683·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where
40 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,40 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
41 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·a65da32c5f5ef8335cb607d3b4ab3f8a25877bc2c2e8b44ca9d575caecd5c8a5·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where41 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·754,·SHA:·421e55a5747cab3df1dad40b747b4633f241bdc13a1546bb19b1370788dea27d·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where
42 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,42 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
43 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·6d69c85c69fa789be551ea42d95c33c237d12a04ef157f9ddaaead1177f7771e·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element43 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·59,·SHA:·76969e34965f1923de668a65a9f5c33f73266468c9b96650bcc5fd498e606a6b·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element
44 should·be·yielded.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·489,·SHA:·9bdc636899f4e4e5a26a3a21c9603f72b3fb972865d2f459c38b7e2ac8fed7f1·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where44 should·be·yielded.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·cf812944678f6755720896cf32b330946303afe59f1b1c11adeb6a7f33454c8d·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where
45 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,45 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
46 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·46dbf841c7aecd3f06bd4c944af21650faeac98c46c515dcfe643302618b1ecd·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where46 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·863,·SHA:·c2bab87fa2a70713bd2d34b3dcae8f4ff2341917103b43a1dd505317f15d6cff·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where
47 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as47 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as
48 the·next·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside[·...·truncated·by·diffoscope;·len:·468,·SHA:·52f7ff7f264284c3acc4429ca34d057ded9afa2e3d9d6e07571e252db9a48977·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where48 the·next·value.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title[·...·truncated·by·diffoscope;·len:·360,·SHA:·688416dc1aaaa0be069177270ba9e74b3d1b92521285a109dc7ba86b58c1f22a·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where
49 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·c0180fefce4346b0b4089e5c642521d7716108241c0ce6ec3e910c7a2c7364b4·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods49 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="../../core/iter/adapters/peekable/struct.Peekable.html#method.peek"·title="m[·...·truncated·by·diffoscope;·len:·94,·SHA:·78aeab33f83c647dfe680c1050358c95977e3af17eabde4a04880721ea1a619d·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods
50 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See50 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See
51 their·documentation·for·more·information.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightsid[·...·truncated·by·diffoscope;·len:·498,·SHA:·e4a68861585faec6a5032b3b69d6dfb0f2799b5f387a527d9a1365571ed02069·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where51 their·documentation·for·more·information.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightside"><span·class="since"·titl[·...·truncated·by·diffoscope;·len:·390,·SHA:·5da622ae0e4d00b47239007520070e22568156d6c5b1662db8b80b465934b18c·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where
52 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,52 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
53 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·93281c1f6402743fd61110c11cf676f0f67eddceda801b4eb35e5fe9f85870fd·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where53 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·1018,·SHA:·732548acff5239e9a7b904f32790c90ab3b63522635334128f35e01d37ceaeb6·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where
54 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,54 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
55 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·f1cdbb1ec64f98fabbe1d89c88b03824310926cd7eaa160953ce2452fc3abb77·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where55 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·869,·SHA:·8ec7e525848424d5104dbdd10928d17cfee4e5aee63cdda7ecdbe323b30b59d3·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where
56 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,56 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
57 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·f94a0b2c1396b13b89aca7830197ebf19e2c0e5ba536a9cc25b325a481799510·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where57 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·947,·SHA:·fdd074315a0bfb226f815b1b6ea114c7367886338ffffff233d7f6fc3108769a·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where
58 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="https://doc.rust-lang[·...·truncated·by·diffoscope;·len:·783,·SHA:·c14217b89e3292a50a09192a8857485891fc769f861e1d1fc4322d04295c86ef·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where58 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="../../core/iter/traits/iterator/trait.Iterator.h[·...·truncated·by·diffoscope;·len:·621,·SHA:·484df7f946e7f2f69c3acad8964421c0db8ac5bb40032d11bbd862e20e67704c·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where
59 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer59 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer
60 if·the·underlying·iterator·ends·sooner.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·c[·...·truncated·by·diffoscope;·len:·488,·SHA:·76f753d5a273a09a73127631acaa0ee947326a929f33be291018188793e1af56·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where60 if·the·underlying·iterator·ends·sooner.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·[·...·truncated·by·diffoscope;·len:·380,·SHA:·fa258c7e0b5d583304a69e2d4e19f3d4cc9a9ed830bdf3796eaa0968bdf590b4·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where
61 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,61 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
62 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·07d303586c8ad4e0082d5b44bff8eeda03cdb8f4bdbe46489f9232bca5a43ec6·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but62 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterat[·...·truncated·by·diffoscope;·len:·314,·SHA:·299331ff47adaff3ebc292c53557ad34da957aef932f87ec0444c7f856820410·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but
63 unlike·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·2b20882d9583cee50e0c8b3cf362b27ce0d524db387d4aa4093d622b9370dada·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where63 unlike·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.scan">Read·more[·...·truncated·by·diffoscope;·len:·555,·SHA:·77279e392f259f6d4859f5a7747ee4b4d5315f3af0ac3baebf1d53be3461b312·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where
64 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,64 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
65 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,65 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
66 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·933,·SHA:·4af94b75ba5c1e03d2d70590d2fd0706f13b3080fbff0f5b98e7b109048c403d·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where66 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·771,·SHA:·a1a50c8ca4c13151c7b22ce05c74c449231e1ffe44225beee67ff212fc1d3859·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where
67 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,67 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
68 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.I[·...·truncated·by·diffoscope;·len:·968,·SHA:·e5572ed2f3bdf5970d038da608f2f592d945541207c483c257fe5789efba168a·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where68 ····Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::col[·...·truncated·by·diffoscope;·len:·779,·SHA:·a4e524bd8aa8a1e0a66409d1b462b88093ab51a1f901ff1a788d7ee63d597f4c·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where
69 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,69 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
70 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·3013c0e49b0dade37f8ca096eccc5ceeb03fc79b9d320a4c92486d23b88d1009·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over70 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·54,·SHA:·6acee514e4d8df8979b4bba687b7e0d5dbb0ea4f98a7019e2fb03f3a8058df0f·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over
71 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,71 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="../../core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,
72 the·windows·during·mapping·overlap·as·well.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside">[·...·truncated·by·diffoscope;·len:·454,·SHA:·040991f3914479bcc92615de2b81df7363656323622e5aadc964e1a61917d23e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where72 the·windows·during·mapping·overlap·as·well.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="[·...·truncated·by·diffoscope;·len:·346,·SHA:·b1244a5f92e0573c29e04e883cf8212ba2586013b3687af07b63c29d2e611530·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where
73 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="https://doc.rust-lang.org/1.84.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·0e0294a45242d5ce9a3ab8f95d6d410756415291d92baa7d12283ef1b3ecc3a0·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where73 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="../../core/option/enum.Option.html#variant.None"·title="variant·cor[·...·truncated·by·diffoscope;·len:·679,·SHA:·ec753d6ecf7b9fe81cb270d78e45e053f2702fff74c7a63c2ab8da22b97fea86·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where
74 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,74 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
75 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·a8b562f71802a421f4745f7d1fadf4f70d98030c829e70f27b692e7915267027·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where75 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·635,·SHA:·ee3a5bcc3544c3f17985966634fef69b1708d641ddb7e62aaac76933935c5ef7·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where
76 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="https://doc.rust-lang.org/1.84.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·b3db7d84f203bbc139b1c52912705d19c664dac762898205fce452c9dc3a5318·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where76 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.by_ref">[·...·truncated·by·diffoscope;·len:·415,·SHA:·7e0e075470d2db380bcf0838446659654c982aa2ca7831ed7d0317877855be2a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where
77 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,77 ····B:·<a·class="trait"·href="../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
78 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·431,·SHA:·a705a23f6d810357e7dcac670743884665ffcccfb9b780d0aa03720be8ca5625·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(78 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.collect">Read[·...·truncated·by·diffoscope;·len:·323,·SHA:·80e0dde3814a6e7cf4e30949627abc841ab4e98e2a920efb248777e22708682d·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(
79 ····&amp;mut·self,79 ····&amp;mut·self,
80 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.h[·...·truncated·by·diffoscope;·len:·479,·SHA:·fa749442d890055f86ceb34f411c84fd7ea08302b336d786d1ca36fe5868b020·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where80 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&g[·...·truncated·by·diffoscope;·len:·344,·SHA:·c06c6401df0a7150633e94cc973521da42e09819b07be80ba18d6acb696860a9·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
81 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,81 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
82 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>,82 ····Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>,
83 ····&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.h[·...·truncated·by·diffoscope;·len:·300,·SHA:·3bff089180bac38df7f42b87556fae7641185b89a949c284f53e3ac718a6decb·...·]/core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;B&gt;,83 ····&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&g[·...·truncated·by·diffoscope;·len:·192,·SHA:·039ceb6ce31fc6b1871e3e366efbd0f164f4a6cc1bc25554bba598b0ee820cca·...·]/core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;B&gt;,
84 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/itera[·...·truncated·by·diffoscope;·len:·323,·SHA:·b5c51f161dc9d77fd81d1fd23cc71fbf42ac00f3168cf9e41ebaaa2b6eb25363·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if84 ····B:·<a·class="trait"·href="../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="ty[·...·truncated·by·diffoscope;·len:·215,·SHA:·ddb8fbd12147eecef1697edd4c63187cc514ab4b851290335adfcccc3fa429ba·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if
85 a·failure·is·encountered.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·ri[·...·truncated·by·diffoscope;·len:·521,·SHA:·6a54376815dab985ec8cc35604d035e98e3003b1563c9b41e70966084505542b·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where85 a·failure·is·encountered.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/co[·...·truncated·by·diffoscope;·len:·386,·SHA:·d46a776c329de4f757930edda252586c2cdd85c6956b7b2f68448da33ee0625e·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
86 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,86 ····E:·<a·class="trait"·href="../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
87 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·975,·SHA:·94f7f970236ba59ba5f1415764a0e3ab2f3093c6b79e76c25c797ac24a3c4d09·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where87 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_collect[·...·truncated·by·diffoscope;·len:·840,·SHA:·1ee6fbe4deb3d959e9ade58fb7ed3efa79d09721ed02fbb5f5f82aae6aa1425d·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
88 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,88 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
89 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·b480ec650ba000fe7cb67df58fc0351299638ee3e8f00db18f74ca24d69f9894·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,89 ····B:·<a·class="trait"·href="../../core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtyp[·...·truncated·by·diffoscope;·len:·14,·SHA:·4105980ca4887a52797067761af25a11e3de6069cd8d7c8ce82cd885bb798fe8·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
90 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·fdf5a1845f070855ba2cfd0c8c85460ea5cb646c4d3b42a8431bf21489c73701·...·]/core/primitive.usize.html">usize</a><div·class="where">where90 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·806,·SHA:·4d554b733db12e71a31ec2477a31408041941b0e2b0dc910904ecf2fced9f65b·...·]/core/primitive.usize.html">usize</a><div·class="where">where
91 ····T:·'a,91 ····T:·'a,
92 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·1fc250e258e9e42e4fa3e22f86ecd57057e9ff23e47af1aec778076a7a891134·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,92 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIter[·...·truncated·by·diffoscope;·len:·51,·SHA:·c9be73bbed9d11ecac2a179f480a640f51d6255f26712667ffdabc72c1fc7fb0·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,
93 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·5846407374f20f525a4a0663ad4488141eafe64513ef82581dc5df5c2d200745·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_partition_in_place</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62543">#62543</a>)</span></div></span><div·class='docblock'>Reorders·the·elements·of·this·iterator·<em>in-place</em>·according·to·the·given·predicate,93 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="../../core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_partition_in_place</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62543">#62543</a>)</span></div></span><div·class='docblock'>Reorders·the·elements·of·this·iterator·<em>in-place</em>·according·to·the·given·predicate,
94 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.94 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.
95 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.partition_in_place">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_partitioned"·class="method·trait-impl"><a·clas[·...·truncated·by·diffoscope;·len:·431,·SHA:·4aa7d028146c72d45794efc19a376d4bee3b75eda61ff46d969e440b3dbfa1b0·...·]/core/primitive.bool.html">bool</a><div·class="where">where95 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.partition_in_place">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_partitioned"·class="method·trait-impl"><a·class="src·rightside"·href="../[·...·truncated·by·diffoscope;·len:·323,·SHA:·bfc44418fa28079222aab80e2baccdaffb2d067bbe5d1b5162202d268ad628d7·...·]/core/primitive.bool.html">bool</a><div·class="where">where
96 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,96 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
97 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·fcd03e71f79faad6d9b9a12045d59f4dfabc78e5aefebcabc9c1a5be45e31125·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,97 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·54,·SHA:·d5ac304cc26edf57442227b641dd21c427d0f9cb322b79986f5b15fc49f867b0·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,
98 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><span·class="righ[·...·truncated·by·diffoscope;·len:·319,·SHA:·9b9df13f2f4e5b4dde3908515766e1a474fa30bcb7edc98c15665a016e677c2a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where98 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><span·class="rightside"><span·class="since"·[·...·truncated·by·diffoscope;·len:·238,·SHA:·af6ab768457e0afa1532b80c4296ae18061dac4c765922889b13eead3e5492db·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where
99 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,99 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
100 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,100 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
101 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns101 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns
102 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rights[·...·truncated·by·diffoscope;·len:·321,·SHA:·619fd774190944998148325de99aaa75de66ce4b7e26579fd342c564923a5652·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where102 successfully,·producing·a·single,·final·value.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"·ti[·...·truncated·by·diffoscope;·len:·240,·SHA:·125e84deea747ccbe139725d028362287beed6a89ab9da3a3aabd7df537abc59·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where
103 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,103 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
104 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,104 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
105 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the105 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="../../core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the
106 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·307,·SHA:·5975144fd8566efa93ad1ccec09297e280924b7372e08681d2103702124e2c52·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where106 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title=[·...·truncated·by·diffoscope;·len:·226,·SHA:·a7510e9271e68887d9e2681c6bc28312cec9ac38883128845f52742935a160a9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where
107 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,107 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
108 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,108 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,
109 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span[·...·truncated·by·diffoscope;·len:·619,·SHA:·8813f54846438870310d5f5dfabd2335a9dbf51e9da2e4cd681bcb6077d39628·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where109 returning·the·final·result.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stabl[·...·truncated·by·diffoscope;·len:·484,·SHA:·5f42e8d5ff08f4c76870e6cb9165e054f9a0d99051d9886ccd43d5c8a91e1fbc·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
110 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,110 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
111 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·084691f7fc4e7f4da7db385127d0ce8d2d52f6740757129a65910c4db0dc180d·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing111 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·244,·SHA:·f09ac7e818239538c3f3208cb5c76076c24a0153797eb762821d5bf2a382d83b·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing
112 operation.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·217,·SHA:·447ae00256be3de069c602a6c04889808c883eae6fa349d023f53bdd5570ecae·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(112 operation.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/iter[·...·truncated·by·diffoscope;·len:·136,·SHA:·97e3ee132585582ec7077e3bbd86406d8a2dcfc97dce7fd52b49af3ec1b58622·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(
113 ····&amp;mut·self,113 ····&amp;mut·self,
114 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R, 
115 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.T[·...·truncated·by·diffoscope;·len:·950,·SHA:·817376e71f7a0d170bfbd4b7264c15d324f49c65106c49349d11a077842aa533·...·]114 ····f:·impl·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core:[·...·truncated·by·diffoscope;·len:·238,·SHA:·a52edc1a1ce1db5dd6e620dbfe5acb58fdc6d84f2320cef02845988aa54e5c55·...·]
 115 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;&gt;&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
116 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,116 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
117 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,117 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
118 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·764ea8f08626b05426a76738d54ebb2d640042494d76cba8c20d868bfdc07a73·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the118 ····&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>:·<a[·...·truncated·by·diffoscope;·len:·277,·SHA:·0dd064909226a9691486376740de1e17aa133a7ae2f635bee3feaa9b19d7b580·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the
119 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><span·class="rightside"><s[·...·truncated·by·diffoscope;·len:·476,·SHA:·aef721c14147dea2fbec70dcfa76916b3f1273bed8304f4c9db310ca23d1e4b1·...·]/core/primitive.bool.html">bool</a><div·class="where">where119 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="St[·...·truncated·by·diffoscope;·len:·368,·SHA:·6dbfbc90b7cfda9017074212ce0beeb560c8f9ba918ba7b00292e34daa531cc2·...·]/core/primitive.bool.html">bool</a><div·class="where">where
120 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,120 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
121 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·7c48e62c73a40a5cb5ebbf4a22cd789b342a88ad3d855022191f2bae33c736c6·...·]/core/primitive.bool.html">bool</a><div·class="where">where121 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·829,·SHA:·c413d95d1072acd820201f12ffb54d04a6c7f3b732f7de46115ba40b4eb1bd3f·...·]/core/primitive.bool.html">bool</a><div·class="where">where
122 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,122 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
123 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·673d69ce0c23e24b2546127c463e67cd2a4c0f7be792712e2b42e75427161b75·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where123 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·956,·SHA:·105c7ff05d33bc9219febe8c9633cf1c1a8d88c32e47e44793d403a428174c66·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
124 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,124 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
125 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·aa5078ff77f5638746395497f8ce92c1b684d342dea851990104d5e9981ab6b0·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where125 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·862,·SHA:·ab608da827ec12779180206da5bfe43676627c19288c1fe674060a00ba44a595·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where
126 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,126 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
Max diff block lines reached; 161006/352760 bytes (45.64%) of diff not shown.
19.7 KB
./usr/share/doc/rust-doc/html/alloc/slice/trait.Concat.html
    
Offset 1, 13 lines modifiedOffset 1, 13 lines modified
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="Helper·trait·for·`[T]::concat`."><title>Concat·in·alloc::slice·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»      2025-01-07)»   (built»     from» a»source»  tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Concat</a></h2><h3><a·href="#required-associated-types">Required·Associated·Types</a></h3><ul·class="block"><li><a·href="#associatedtype.Output"·title="Output">Output</a></li></ul><h3><a·href="#required-methods">Required·Methods</a></h3><ul·class="block"><li><a·href="#tymethod.concat"·title="concat">concat</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><a·href="index.html">In·alloc::<wbr>slice</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">alloc</a>::<wbr><a·href="index.html">slice</a></span><h1>Trait·<span·class="trait">Concat</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/alloc/slice.rs.html#745-753">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·trait·Concat&lt;Item:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>&gt;·{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="Helper·trait·for·`[T]::concat`."><title>Concat·in·alloc::slice·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»      2025-01-07)»   (built»     from» a»source»  tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Concat</a></h2><h3><a·href="#required-associated-types">Required·Associated·Types</a></h3><ul·class="block"><li><a·href="#associatedtype.Output"·title="Output">Output</a></li></ul><h3><a·href="#required-methods">Required·Methods</a></h3><ul·class="block"><li><a·href="#tymethod.concat"·title="concat">concat</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><a·href="index.html">In·alloc::<wbr>slice</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">alloc</a>::<wbr><a·href="index.html">slice</a></span><h1>Trait·<span·class="trait">Concat</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/alloc/slice.rs.html#745-753">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·trait·Concat&lt;Item:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>&gt;·{
2 ····type·<a·href="#associatedtype.Output"·class="associatedtype">Output</a>;2 ····type·<a·href="#associatedtype.Output"·class="associatedtype">Output</a>;
  
3 ····//·Required·method3 ····//·Required·method
4 ····fn·<a·href="#tymethod.concat"·class="fn">concat</a>(slice:·&amp;Self)·-&gt;·Self::<a·class="associatedtype"·href="trait.Concat.html#associatedtype.Output"·title="type·alloc::slice::Concat::Output">Output</a>;4 ····fn·<a·href="#tymethod.concat"·class="fn">concat</a>(slice:·&amp;Self)·-&gt;·Self::<a·class="associatedtype"·href="trait.Concat.html#associatedtype.Output"·title="type·alloc::slice::Concat::Output">Output</a>;
5 }</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>slice_concat_trait</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27747">#27747</a>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Helper·trait·for·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html#method.concat"·title="method·slice::concat"><code>[T]::concat</code></a>.</p>5 }</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>slice_concat_trait</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27747">#27747</a>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Helper·trait·for·<a·href="../../core/primitive.slice.html#method.concat"·title="method·slice::concat"><code>[T]::concat</code></a>.</p>
6 <p>Note:·the·<code>Item</code>·type·parameter·is·not·used·in·this·trait,6 <p>Note:·the·<code>Item</code>·type·parameter·is·not·used·in·this·trait,
7 but·it·allows·impls·to·be·more·generic.7 but·it·allows·impls·to·be·more·generic.
8 Without·it,·we·get·this·error:</p>8 Without·it,·we·get·this·error:</p>
9 <div·class="example-wrap"><pre·class="language-error"><code>error[E0207]:·the·type·parameter·`T`·is·not·constrained·by·the·impl·trait,·self·type,·or·predica9 <div·class="example-wrap"><pre·class="language-error"><code>error[E0207]:·the·type·parameter·`T`·is·not·constrained·by·the·impl·trait,·self·type,·or·predica
10 ···--&gt;·library/alloc/src/slice.rs:608:610 ···--&gt;·library/alloc/src/slice.rs:608:6
11 ····|11 ····|
12 608·|·impl&lt;T:·Clone,·V:·Borrow&lt;[T]&gt;&gt;·Concat·for·[V]·{12 608·|·impl&lt;T:·Clone,·V:·Borrow&lt;[T]&gt;&gt;·Concat·for·[V]·{
Offset 21, 11 lines modifiedOffset 21, 11 lines modified
21 ····<span·class="kw">fn·</span>borrow(<span·class="kw-2">&amp;</span><span·class="self">self</span>)·-&gt;·<span·class="kw-2">&amp;</span>[u32]·{·<span·class="kw-2">&amp;</span><span·class="self">self</span>.<span·class="number">0·</span>}21 ····<span·class="kw">fn·</span>borrow(<span·class="kw-2">&amp;</span><span·class="self">self</span>)·-&gt;·<span·class="kw-2">&amp;</span>[u32]·{·<span·class="kw-2">&amp;</span><span·class="self">self</span>.<span·class="number">0·</span>}
22 }22 }
  
23 <span·class="kw">impl·</span>std::borrow::Borrow&lt;[String]&gt;·<span·class="kw">for·</span>Foo·{23 <span·class="kw">impl·</span>std::borrow::Borrow&lt;[String]&gt;·<span·class="kw">for·</span>Foo·{
24 ····<span·class="kw">fn·</span>borrow(<span·class="kw-2">&amp;</span><span·class="self">self</span>)·-&gt;·<span·class="kw-2">&amp;</span>[String]·{·<span·class="kw-2">&amp;</span><span·class="self">self</span>.<span·class="number">1·</span>}24 ····<span·class="kw">fn·</span>borrow(<span·class="kw-2">&amp;</span><span·class="self">self</span>)·-&gt;·<span·class="kw-2">&amp;</span>[String]·{·<span·class="kw-2">&amp;</span><span·class="self">self</span>.<span·class="number">1·</span>}
25 }</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++%23%5Ballow(dead_code)%5D%0A++++pub+struct+Foo(Vec%3Cu32%3E,+Vec%3CString%3E);%0A++++%0A++++impl+std::borrow::Borrow%3C%5Bu32%5D%3E+for+Foo+%7B%0A++++++++fn+borrow(%26self)+-%3E+%26%5Bu32%5D+%7B+%26self.0+%7D%0A++++%7D%0A++++%0A++++impl+std::borrow::Borrow%3C%5BString%5D%3E+for+Foo+%7B%0A++++++++fn+borrow(%26self)+-%3E+%26%5BString%5D+%7B+%26self.1+%7D%0A++++%7D%0A%7D&amp;edition=2021"></a></div>25 }</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++%23%5Ballow(dead_code)%5D%0A++++pub+struct+Foo(Vec%3Cu32%3E,+Vec%3CString%3E);%0A++++%0A++++impl+std::borrow::Borrow%3C%5Bu32%5D%3E+for+Foo+%7B%0A++++++++fn+borrow(%26self)+-%3E+%26%5Bu32%5D+%7B+%26self.0+%7D%0A++++%7D%0A++++%0A++++impl+std::borrow::Borrow%3C%5BString%5D%3E+for+Foo+%7B%0A++++++++fn+borrow(%26self)+-%3E+%26%5BString%5D+%7B+%26self.1+%7D%0A++++%7D%0A%7D&amp;edition=2021"></a></div>
26 </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.Output"·class="method"><a·class="src·rightside"·href="../../src/alloc/slice.rs.html#748">Source</a><h4·class="code-header">type·<a·href="#associatedtype.Output"·class="associatedtype">Output</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>slice_concat_trait</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27747">#27747</a>)</span></div></span></summary><div·class="docblock"><p>The·resulting·type·after·concatenation</p>26 </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.Output"·class="method"><a·class="src·rightside"·href="../../src/alloc/slice.rs.html#748">Source</a><h4·class="code-header">type·<a·href="#associatedtype.Output"·class="associatedtype">Output</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>slice_concat_trait</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27747">#27747</a>)</span></div></span></summary><div·class="docblock"><p>The·resulting·type·after·concatenation</p>
27 </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.concat"·class="method"><a·class="src·rightside"·href="../../src/alloc/slice.rs.html#752">Source</a><h4·class="code-header">fn·<a·href="#tymethod.concat"·class="fn">concat</a>(slice:·&amp;Self)·-&gt;·Self::<a·class="associatedtype"·href="trait.Concat.html#associatedtype.Output"·title="type·alloc::slice::Concat::Output">Output</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>slice_concat_trait</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27747">#27747</a>)</span></div></span></summary><div·class="docblock"><p>Implementation·of·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html#method.concat"·title="method·slice::concat"><code>[T]::concat</code></a></p>27 </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.concat"·class="method"><a·class="src·rightside"·href="../../src/alloc/slice.rs.html#752">Source</a><h4·class="code-header">fn·<a·href="#tymethod.concat"·class="fn">concat</a>(slice:·&amp;Self)·-&gt;·Self::<a·class="associatedtype"·href="trait.Concat.html#associatedtype.Output"·title="type·alloc::slice::Concat::Output">Output</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>slice_concat_trait</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27747">#27747</a>)</span></div></span></summary><div·class="docblock"><p>Implementation·of·<a·href="../../core/primitive.slice.html#method.concat"·title="method·slice::concat"><code>[T]::concat</code></a></p>
28 </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.84.0/reference/items/traits.html#object-safety">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="implementors"·class="section-header">Implementors<a·href="#implementors"·class="anchor">§</a></h2><div·id="implementors-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-Concat%3Cstr%3E-for-%5BS%5D"·class="impl"><a·class="src·rightside"·href="../../src/alloc/str.rs.html#62-68">Source</a><a·href="#impl-Concat%3Cstr%3E-for-%5BS%5D"·class="anchor">§</a><h3·class="code-header">impl&lt;S:·<a·class="trait"·href="../borrow/trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.str.html">str</a>&gt;&gt;·<a·class="trait"·href="trait.Concat.html"·title="trait·alloc::slice::Concat">Concat</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.str.html">str</a[·...·truncated·by·diffoscope;·len:·69,·SHA:·f4b53082be70aadae6aa3ccf59bdea7c49899268cb28ad28e3d2f5540d0fb41d·...·]/core/primitive.slice.html">[S]</a></h3></section></summary><div·class="docblock"><p>Note:·<code>str</code>·in·<code>Concat&lt;str&gt;</code>·is·not·meaningful·here.28 </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.84.0/reference/items/traits.html#object-safety">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="implementors"·class="section-header">Implementors<a·href="#implementors"·class="anchor">§</a></h2><div·id="implementors-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-Concat%3Cstr%3E-for-%5BS%5D"·class="impl"><a·class="src·rightside"·href="../../src/alloc/str.rs.html#62-68">Source</a><a·href="#impl-Concat%3Cstr%3E-for-%5BS%5D"·class="anchor">§</a><h3·class="code-header">impl&lt;S:·<a·class="trait"·href="../borrow/trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;<a·class="primitive"·href="../../core/primitive.str.html">str</a>&gt;&gt;·<a·class="trait"·href="trait.Concat.html"·title="trait·alloc::slice::Concat">Concat</a>&lt;<a·class="primitive"·href="../../core/primitive.str.html">str</a>&gt;·for·<a·class="primitive"·href="../../core/primitive.slice.html">[S]</a></h3></section></summary><div·class="docblock"><p>Note:·<code>str</code>·in·<code>Concat&lt;str&gt;</code>·is·not·meaningful·here.
29 This·type·parameter·of·the·trait·only·exists·to·enable·another·impl.</p>29 This·type·parameter·of·the·trait·only·exists·to·enable·another·impl.</p>
30 </div><div·class="impl-items"><section·id="associatedtype.Output-1"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/alloc/str.rs.html#63">Source</a><a·href="#associatedtype.Output-1"·class="anchor">§</a><h4·class="code-header">type·<a·href="#associatedtype.Output"·class="associatedtype">Output</a>·=·<a·class="struct"·href="../string/struct.String.html"·title="struct·alloc::string::String">String</a></h4></section></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Concat%3CT%3E-for-%5BV%5D"·class="impl"><a·class="src·rightside"·href="../../src/alloc/slice.rs.html#769-780">Source</a><a·href="#impl-Concat%3CT%3E-for-%5BV%5D"·class="anchor">§</a><h3·class="code-header">impl&lt;T:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,·V:·<a·class="trait"·href="../borrow/trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;<a·class="primitive"·href="https://doc.rust-l[·...·truncated·by·diffoscope;·len:·218,·SHA:·1a0cfb4b52e9f8780dc4aac5a59b5f0cf6439ea47c5339b156b6bbb4b7b16e70·...·]/core/primitive.slice.html">[V]</a></h3></section></summary><div·class="impl-items"><section·id="associatedtype.Output-2"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/alloc/slice.rs.html#770">Source</a><a·href="#associatedtype.Output-2"·class="anchor">§</a><h4·class="code-header">type·<a·href="#associatedtype.Output"·class="associatedtype">Output</a>·=·<a·class="struct"·href="../vec/struct.Vec.html"·title="struct·alloc::vec::Vec">Vec</a>&lt;T&gt;</h4></section></div></details></div><script·src="../../trait.impl/alloc/slice/trait.Concat.js"·data-ignore-extern-crates="core"·async></script></section></div></main></body></html>30 </div><div·class="impl-items"><section·id="associatedtype.Output-1"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/alloc/str.rs.html#63">Source</a><a·href="#associatedtype.Output-1"·class="anchor">§</a><h4·class="code-header">type·<a·href="#associatedtype.Output"·class="associatedtype">Output</a>·=·<a·class="struct"·href="../string/struct.String.html"·title="struct·alloc::string::String">String</a></h4></section></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Concat%3CT%3E-for-%5BV%5D"·class="impl"><a·class="src·rightside"·href="../../src/alloc/slice.rs.html#769-780">Source</a><a·href="#impl-Concat%3CT%3E-for-%5BV%5D"·class="anchor">§</a><h3·class="code-header">impl&lt;T:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,·V:·<a·class="trait"·href="../borrow/trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;<a·class="primitive"·href="../../core/primitive.slice.html">[T]</a>&gt;&[·...·truncated·by·diffoscope;·len:·137,·SHA:·bf252f031768fe8f7d0e9bfe8a24b964b9d71f4bf6e7b00f876e00c9db49dddf·...·]/core/primitive.slice.html">[V]</a></h3></section></summary><div·class="impl-items"><section·id="associatedtype.Output-2"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/alloc/slice.rs.html#770">Source</a><a·href="#associatedtype.Output-2"·class="anchor">§</a><h4·class="code-header">type·<a·href="#associatedtype.Output"·class="associatedtype">Output</a>·=·<a·class="struct"·href="../vec/struct.Vec.html"·title="struct·alloc::vec::Vec">Vec</a>&lt;T&gt;</h4></section></div></details></div><script·src="../../trait.impl/alloc/slice/trait.Concat.js"·data-ignore-extern-crates="core"·async></script></section></div></main></body></html>
16.8 KB
./usr/share/doc/rust-doc/html/alloc/slice/trait.Join.html
    
Offset 1, 9 lines modifiedOffset 1, 9 lines modified
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="Helper·trait·for·`[T]::join`"><title>Join·in·alloc::slice·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»   2025-01-07)»(built»  from»      a»     source»       tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Join</a></h2><h3><a·href="#required-associated-types">Required·Associated·Types</a></h3><ul·class="block"><li><a·href="#associatedtype.Output"·title="Output">Output</a></li></ul><h3><a·href="#required-methods">Required·Methods</a></h3><ul·class="block"><li><a·href="#tymethod.join"·title="join">join</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><a·href="index.html">In·alloc::<wbr>slice</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">alloc</a>::<wbr><a·href="index.html">slice</a></span><h1>Trait·<span·class="trait">Join</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/alloc/slice.rs.html#757-765">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·trait·Join&lt;Separator&gt;·{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="Helper·trait·for·`[T]::join`"><title>Join·in·alloc::slice·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»   2025-01-07)»(built»  from»      a»     source»       tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Join</a></h2><h3><a·href="#required-associated-types">Required·Associated·Types</a></h3><ul·class="block"><li><a·href="#associatedtype.Output"·title="Output">Output</a></li></ul><h3><a·href="#required-methods">Required·Methods</a></h3><ul·class="block"><li><a·href="#tymethod.join"·title="join">join</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><a·href="index.html">In·alloc::<wbr>slice</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">alloc</a>::<wbr><a·href="index.html">slice</a></span><h1>Trait·<span·class="trait">Join</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/alloc/slice.rs.html#757-765">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·trait·Join&lt;Separator&gt;·{
2 ····type·<a·href="#associatedtype.Output"·class="associatedtype">Output</a>;2 ····type·<a·href="#associatedtype.Output"·class="associatedtype">Output</a>;
  
3 ····//·Required·method3 ····//·Required·method
4 ····fn·<a·href="#tymethod.join"·class="fn">join</a>(slice:·&amp;Self,·sep:·Separator)·-&gt;·Self::<a·class="associatedtype"·href="trait.Join.html#associatedtype.Output"·title="type·alloc::slice::Join::Output">Output</a>;4 ····fn·<a·href="#tymethod.join"·class="fn">join</a>(slice:·&amp;Self,·sep:·Separator)·-&gt;·Self::<a·class="associatedtype"·href="trait.Join.html#associatedtype.Output"·title="type·alloc::slice::Join::Output">Output</a>;
5 }</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>slice_concat_trait</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27747">#27747</a>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Helper·trait·for·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html#method.join"·title="method·slice::join"><code>[T]::join</code></a></p>5 }</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>slice_concat_trait</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27747">#27747</a>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Helper·trait·for·<a·href="../../core/primitive.slice.html#method.join"·title="method·slice::join"><code>[T]::join</code></a></p>
6 </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.Output"·class="method"><a·class="src·rightside"·href="../../src/alloc/slice.rs.html#760">Source</a><h4·class="code-header">type·<a·href="#associatedtype.Output"·class="associatedtype">Output</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>slice_concat_trait</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27747">#27747</a>)</span></div></span></summary><div·class="docblock"><p>The·resulting·type·after·concatenation</p>6 </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.Output"·class="method"><a·class="src·rightside"·href="../../src/alloc/slice.rs.html#760">Source</a><h4·class="code-header">type·<a·href="#associatedtype.Output"·class="associatedtype">Output</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>slice_concat_trait</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27747">#27747</a>)</span></div></span></summary><div·class="docblock"><p>The·resulting·type·after·concatenation</p>
7 </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.join"·class="method"><a·class="src·rightside"·href="../../src/alloc/slice.rs.html#764">Source</a><h4·class="code-header">fn·<a·href="#tymethod.join"·class="fn">join</a>(slice:·&amp;Self,·sep:·Separator)·-&gt;·Self::<a·class="associatedtype"·href="trait.Join.html#associatedtype.Output"·title="type·alloc::slice::Join::Output">Output</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>slice_concat_trait</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27747">#27747</a>)</span></div></span></summary><div·class="docblock"><p>Implementation·of·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html#method.join"·title="method·slice::join"><code>[T]::join</code></a></p>7 </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.join"·class="method"><a·class="src·rightside"·href="../../src/alloc/slice.rs.html#764">Source</a><h4·class="code-header">fn·<a·href="#tymethod.join"·class="fn">join</a>(slice:·&amp;Self,·sep:·Separator)·-&gt;·Self::<a·class="associatedtype"·href="trait.Join.html#associatedtype.Output"·title="type·alloc::slice::Join::Output">Output</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>slice_concat_trait</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27747">#27747</a>)</span></div></span></summary><div·class="docblock"><p>Implementation·of·<a·href="../../core/primitive.slice.html#method.join"·title="method·slice::join"><code>[T]::join</code></a></p>
8 </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.84.0/reference/items/traits.html#object-safety">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="implementors"·class="section-header">Implementors<a·href="#implementors"·class="anchor">§</a></h2><div·id="implementors-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-Join%3C%26str%3E-for-%5BS%5D"·class="impl"><a·class="src·rightside"·href="../../src/alloc/str.rs.html#72-78">Source</a><a·href="#impl-Join%3C%26str%3E-for-%5BS%5D"·class="anchor">§</a><h3·class="code-header">impl&lt;S:·<a·class="trait"·href="../borrow/trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.str.html">str</a>&gt;&gt;·<a·class="trait"·href="trait.Join.html"·title="trait·alloc::slice::Join">Join</a>&lt;&amp;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.str.html">str</a>[·...·truncated·by·diffoscope;·len:·2865,·SHA:·93673e8903ec8fa175b583813a4702eeea446dc57fb76cb62125a657d4edf255·...·]/core/primitive.slice.html">[V]</a></h3></section></summary><div·class="impl-items"><section·id="associatedtype.Output-3"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/alloc/slice.rs.html#785">Source</a><a·href="#associatedtype.Output-3"·class="anchor">§</a><h4·class="code-header">type·<a·href="#associatedtype.Output"·class="associatedtype">Output</a>·=·<a·class="struct"·href="../vec/struct.Vec.html"·title="struct·alloc::vec::Vec">Vec</a>&lt;T&gt;</h4></section></div></details></div><script·src="../../trait.impl/alloc/slice/trait.Join.js"·data-ignore-extern-crates="core"·async></script></section></div></main></body></html>8 </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.84.0/reference/items/traits.html#object-safety">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="implementors"·class="section-header">Implementors<a·href="#implementors"·class="anchor">§</a></h2><div·id="implementors-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-Join%3C%26str%3E-for-%5BS%5D"·class="impl"><a·class="src·rightside"·href="../../src/alloc/str.rs.html#72-78">Source</a><a·href="#impl-Join%3C%26str%3E-for-%5BS%5D"·class="anchor">§</a><h3·class="code-header">impl&lt;S:·<a·class="trait"·href="../borrow/trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;<a·class="primitive"·href="../../core/primitive.str.html">str</a>&gt;&gt;·<a·class="trait"·href="trait.Join.html"·title="trait·alloc::slice::Join">Join</a>&lt;&amp;<a·class="primitive"·href="../../core/primitive.str.html">str</a>&gt;·for·<a·class="primitive"·href="../../core/primiti[·...·truncated·by·diffoscope;·len:·2568,·SHA:·44ee0fbe276bada213d36b29d4e917f5af48ae8b687ace48b0c279a5dd1618c9·...·]/core/primitive.slice.html">[V]</a></h3></section></summary><div·class="impl-items"><section·id="associatedtype.Output-3"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/alloc/slice.rs.html#785">Source</a><a·href="#associatedtype.Output-3"·class="anchor">§</a><h4·class="code-header">type·<a·href="#associatedtype.Output"·class="associatedtype">Output</a>·=·<a·class="struct"·href="../vec/struct.Vec.html"·title="struct·alloc::vec::Vec">Vec</a>&lt;T&gt;</h4></section></div></details></div><script·src="../../trait.impl/alloc/slice/trait.Join.js"·data-ignore-extern-crates="core"·async></script></section></div></main></body></html>
90.6 KB
./usr/share/doc/rust-doc/html/alloc/slice/trait.SliceIndex.html
    
Offset 1, 48 lines modifiedOffset 1, 48 lines modified
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="A·helper·trait·used·for·indexing·operations."><title>SliceIndex·in·alloc::slice·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»2025-01-07)»     (built»       from»   a»  source»    tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Slice<wbr>Index</a></h2><h3><a·href="#required-associated-types">Required·Associated·Types</a></h3><ul·class="block"><li><a·href="#associatedtype.Output"·title="Output">Output</a></li></ul><h3><a·href="#required-methods">Required·Methods</a></h3><ul·class="block"><li><a·href="#tymethod.get"·title="get">get</a></li><li><a·href="#tymethod.get_mut"·title="get_mut">get_mut</a></li><li><a·href="#tymethod.get_unchecked"·title="get_unchecked">get_unchecked</a></li><li><a·href="#tymethod.get_unchecked_mut"·title="get_unchecked_mut">get_unchecked_mut</a></li><li><a·href="#tymethod.index"·title="index">index</a></li><li><a·href="#tymethod.index_mut"·title="index_mut">index_mut</a></li></ul><h3><a·href="#implementors">Implementors</a></h3></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>slice</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">alloc</a>::<wbr><a·href="index.html">slice</a></span><h1>Trait·<span·class="trait">SliceIndex</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/slice/index.rs.html#172">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·unsafe·trait·SliceIndex&lt;T&gt;:·Sealed<div·class="where">where1 <!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·helper·trait·used·for·indexing·operations."><title>SliceIndex·in·alloc::slice·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»2025-01-07)»     (built»       from»   a»  source»    tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Slice<wbr>Index</a></h2><h3><a·href="#required-associated-types">Required·Associated·Types</a></h3><ul·class="block"><li><a·href="#associatedtype.Output"·title="Output">Output</a></li></ul><h3><a·href="#required-methods">Required·Methods</a></h3><ul·class="block"><li><a·href="#tymethod.get"·title="get">get</a></li><li><a·href="#tymethod.get_mut"·title="get_mut">get_mut</a></li><li><a·href="#tymethod.get_unchecked"·title="get_unchecked">get_unchecked</a></li><li><a·href="#tymethod.get_unchecked_mut"·title="get_unchecked_mut">get_unchecked_mut</a></li><li><a·href="#tymethod.index"·title="index">index</a></li><li><a·href="#tymethod.index_mut"·title="index_mut">index_mut</a></li></ul><h3><a·href="#implementors">Implementors</a></h3></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>slice</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">alloc</a>::<wbr><a·href="index.html">slice</a></span><h1>Trait·<span·class="trait">SliceIndex</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../src/core/slice/index.rs.html#172">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·unsafe·trait·SliceIndex&lt;T&gt;:·Sealed<div·class="where">where
2 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div>{2 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div>{
3 ····type·<a·href="#associatedtype.Output"·class="associatedtype">Output</a>:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>;3 ····type·<a·href="#associatedtype.Output"·class="associatedtype">Output</a>:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>;
  
4 ····//·Required·methods4 ····//·Required·methods
5 ····fn·<a·href="#tymethod.get"·class="fn">get</a>(self,·slice:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;&amp;Self::<a·class="associatedtype"·href="trait.SliceIndex.html#associatedtype.Output"·title="type·alloc::slice::SliceIndex::Output">Output</a>&gt;;5 ····fn·<a·href="#tymethod.get"·class="fn">get</a>(self,·slice:·<a·class="primitive"·href="../../core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;&amp;Self::<a·class="associatedtype"·href="trait.SliceIndex.html#associatedtype.Output"·title="type·alloc::slice::SliceIndex::Output">Output</a>&gt;;
6 <span·class="item-spacer"></span>····fn·<a·href="#tymethod.get_mut"·class="fn">get_mut</a>(self,·slice:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;mut·T</a>)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;&amp;mut·Self::<a·class="associatedtype"·href="trait.SliceIndex.html#associatedtype.Output"·title="type·alloc::slice::SliceIndex::Output">Output</a>&gt;;6 <span·class="item-spacer"></span>····fn·<a·href="#tymethod.get_mut"·class="fn">get_mut</a>(self,·slice:·<a·class="primitive"·href="../../core/primitive.reference.html">&amp;mut·T</a>)·-&gt;·<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;&amp;mut·Self::<a·class="associatedtype"·href="trait.SliceIndex.html#associatedtype.Output"·title="type·alloc::slice::SliceIndex::Output">Output</a>&gt;;
7 <span·class="item-spacer"></span>····unsafe·fn·<a·href="#tymethod.get_unchecked"·class="fn">get_unchecked</a>(self,·slice:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.pointer.html">*const·T</a>)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.pointer.html">*const·</a>Self::<a·class="associatedtype"·href="trait.SliceIndex.html#associatedtype.Output"·title="type·alloc::slice::SliceIndex::Output">Output</a>;7 <span·class="item-spacer"></span>····unsafe·fn·<a·href="#tymethod.get_unchecked"·class="fn">get_unchecked</a>(self,·slice:·<a·class="primitive"·href="../../core/primitive.pointer.html">*const·T</a>)·-&gt;·<a·class="primitive"·href="../../core/primitive.pointer.html">*const·</a>Self::<a·class="associatedtype"·href="trait.SliceIndex.html#associatedtype.Output"·title="type·alloc::slice::SliceIndex::Output">Output</a>;
8 <span·class="item-spacer"></span>····unsafe·fn·<a·href="#tymethod.get_unchecked_mut"·class="fn">get_unchecked_mut</a>(self,·slice:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.pointer.html">*mut·T</a>)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.pointer.html">*mut·</a>Self::<a·class="associatedtype"·href="trait.SliceIndex.html#associatedtype.Output"·title="type·alloc::slice::SliceIndex::Output">Output</a>;8 <span·class="item-spacer"></span>····unsafe·fn·<a·href="#tymethod.get_unchecked_mut"·class="fn">get_unchecked_mut</a>(self,·slice:·<a·class="primitive"·href="../../core/primitive.pointer.html">*mut·T</a>)·-&gt;·<a·class="primitive"·href="../../core/primitive.pointer.html">*mut·</a>Self::<a·class="associatedtype"·href="trait.SliceIndex.html#associatedtype.Output"·title="type·alloc::slice::SliceIndex::Output">Output</a>;
9 <span·class="item-spacer"></span>····fn·<a·href="#tymethod.index"·class="fn">index</a>(self,·slice:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·&amp;Self::<a·class="associatedtype"·href="trait.SliceIndex.html#associatedtype.Output"·title="type·alloc::slice::SliceIndex::Output">Output</a>;9 <span·class="item-spacer"></span>····fn·<a·href="#tymethod.index"·class="fn">index</a>(self,·slice:·<a·class="primitive"·href="../../core/primitive.reference.html">&amp;T</a>)·-&gt;·&amp;Self::<a·class="associatedtype"·href="trait.SliceIndex.html#associatedtype.Output"·title="type·alloc::slice::SliceIndex::Output">Output</a>;
10 <span·class="item-spacer"></span>····fn·<a·href="#tymethod.index_mut"·class="fn">index_mut</a>(self,·slice:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;mut·T</a>)·-&gt;·&amp;mut·Self::<a·class="associatedtype"·href="trait.SliceIndex.html#associatedtype.Output"·title="type·alloc::slice::SliceIndex::Output">Output</a>;10 <span·class="item-spacer"></span>····fn·<a·href="#tymethod.index_mut"·class="fn">index_mut</a>(self,·slice:·<a·class="primitive"·href="../../core/primitive.reference.html">&amp;mut·T</a>)·-&gt;·&amp;mut·Self::<a·class="associatedtype"·href="trait.SliceIndex.html#associatedtype.Output"·title="type·alloc::slice::SliceIndex::Output">Output</a>;
11 }</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>A·helper·trait·used·for·indexing·operations.</p>11 }</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>A·helper·trait·used·for·indexing·operations.</p>
12 <p>Implementations·of·this·trait·have·to·promise·that·if·the·argument12 <p>Implementations·of·this·trait·have·to·promise·that·if·the·argument
13 to·<code>get_unchecked(_mut)</code>·is·a·safe·reference,·then·so·is·the·result.</p>13 to·<code>get_unchecked(_mut)</code>·is·a·safe·reference,·then·so·is·the·result.</p>
14 </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.Output"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.28.0">1.28.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/slice/index.rs.html#175">Source</a></span><h4·class="code-header">type·<a·href="#associatedtype.Output"·class="associatedtype">Output</a>:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a></h4></section></summary><div·class="docblock"><p>The·output·type·returned·by·methods.</p>14 </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.Output"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.28.0">1.28.0</span>···<a·class="src"·href="../../src/core/slice/index.rs.html#175">Source</a></span><h4·class="code-header">type·<a·href="#associatedtype.Output"·class="associatedtype">Output</a>:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a></h4></section></summary><div·class="docblock"><p>The·output·type·returned·by·methods.</p>
15 </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.get"·class="method"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/slice/index.rs.html#180">Source</a><h4·class="code-header">fn·<a·href="#tymethod.get"·class="fn">get</a>(self,·slice:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;[·...·truncated·by·diffoscope;·len:·67,·SHA:·892e0f9a795c7b9f4f8e93785cae380d95817be3204baba4da532f3dc6bbc3a4·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;&amp;Self::<a·class="associatedtype"·href="trait.SliceIndex.html#associatedtype.Output"·title="type·alloc::slice::SliceIndex::Output">Output</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>slice_index_methods</code>)</span></div></span></summary><div·class="docblock"><p>Returns·a·shared·reference·to·the·output·at·this·location,·if·in15 </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.get"·class="method"><a·class="src·rightside"·href="../../src/core/slice/index.rs.html#180">Source</a><h4·class="code-header">fn·<a·href="#tymethod.get"·class="fn">get</a>(self,·slice:·<a·class="primitive"·href="../../core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;&amp;Self::<a·class="associatedtype"·href="trait.SliceIndex.html#associatedtype.Output"·title="type·alloc::slice::SliceIndex::Output">Output</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>slice_index_methods</code>)</span></div></span></summary><div·class="docblock"><p>Returns·a·shared·reference·to·the·output·at·this·location,·if·in
16 bounds.</p>16 bounds.</p>
17 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="tymethod.get_mut"·class="method"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/slice/index.rs.html#185">Source</a><h4·class="code-header">fn·<a·href="#tymethod.get_mut"·class="fn">get_mut</a>(self,·slice:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.htm[·...·truncated·by·diffoscope;·len:·79,·SHA:·82a9298f8e170da8909790c4506211cd54d4048098725ae7d133312bda7f3819·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;&amp;mut·Self::<a·class="associatedtype"·href="trait.SliceIndex.html#associatedtype.Output"·title="type·alloc::slice::SliceIndex::Output">Output</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>slice_index_methods</code>)</span></div></span></summary><div·class="docblock"><p>Returns·a·mutable·reference·to·the·output·at·this·location,·if·in17 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="tymethod.get_mut"·class="method"><a·class="src·rightside"·href="../../src/core/slice/index.rs.html#185">Source</a><h4·class="code-header">fn·<a·href="#tymethod.get_mut"·class="fn">get_mut</a>(self,·slice:·<a·class="primitive"·href="../../core/primitive.reference.html">&amp;mut·T</a>)·-&gt;·<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;&amp;mut·Self::<a·class="associatedtype"·href="trait.SliceIndex.html#associatedtype.Output"·title="type·alloc::slice::SliceIndex::Output">Output</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>slice_index_methods</code>)</span></div></span></summary><div·class="docblock"><p>Returns·a·mutable·reference·to·the·output·at·this·location,·if·in
18 bounds.</p>18 bounds.</p>
19 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="tymethod.get_unchecked"·class="method"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/slice/index.rs.html#195">Source</a><h4·class="code-header">unsafe·fn·<a·href="#tymethod.get_unchecked"·class="fn">get_unchecked</a>(self,·slice:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/prim[·...·truncated·by·diffoscope;·len:·99,·SHA:·bfcc990e2a5ac608485a71c5052c29cb33e32fe754e69c4d3d53ca559ad7e60a·...·]/core/primitive.pointer.html">*const·</a>Self::<a·class="associatedtype"·href="trait.SliceIndex.html#associatedtype.Output"·title="type·alloc::slice::SliceIndex::Output">Output</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>slice_index_methods</code>)</span></div></span></summary><div·class="docblock"><p>Returns·a·pointer·to·the·output·at·this·location,·without19 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="tymethod.get_unchecked"·class="method"><a·class="src·rightside"·href="../../src/core/slice/index.rs.html#195">Source</a><h4·class="code-header">unsafe·fn·<a·href="#tymethod.get_unchecked"·class="fn">get_unchecked</a>(self,·slice:·<a·class="primitive"·href="../../core/primitive.pointer.html">*const·T</a>)·-&gt;·<a·class="prim[·...·truncated·by·diffoscope;·len:·18,·SHA:·3774ff17ac3c5abdd94d5a5dea6c95091be4f6446f81dd9c67d1a666199a7493·...·]/core/primitive.pointer.html">*const·</a>Self::<a·class="associatedtype"·href="trait.SliceIndex.html#associatedtype.Output"·title="type·alloc::slice::SliceIndex::Output">Output</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>slice_index_methods</code>)</span></div></span></summary><div·class="docblock"><p>Returns·a·pointer·to·the·output·at·this·location,·without
20 performing·any·bounds·checking.</p>20 performing·any·bounds·checking.</p>
21 <p>Calling·this·method·with·an·out-of-bounds·index·or·a·dangling·<code>slice</code>·pointer21 <p>Calling·this·method·with·an·out-of-bounds·index·or·a·dangling·<code>slice</code>·pointer
22 is·<em><a·href="https://doc.rust-lang.org/reference/behavior-considered-undefined.html">undefined·behavior</a></em>·even·if·the·resulting·pointer·is·not·used.</p>22 is·<em><a·href="https://doc.rust-lang.org/reference/behavior-considered-undefined.html">undefined·behavior</a></em>·even·if·the·resulting·pointer·is·not·used.</p>
23 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="tymethod.get_unchecked_mut"·class="method"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/slice/index.rs.html#205">Source</a><h4·class="code-header">unsafe·fn·<a·href="#tymethod.get_unchecked_mut"·class="fn">get_unchecked_mut</a>(self,·slice:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/c[·...·truncated·by·diffoscope;·len:·105,·SHA:·20d8ff121e2d9c463ff390816fae4f72bba12c77ada0c3aa424d02ddc4dd6270·...·]/core/primitive.pointer.html">*mut·</a>Self::<a·class="associatedtype"·href="trait.SliceIndex.html#associatedtype.Output"·title="type·alloc::slice::SliceIndex::Output">Output</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>slice_index_methods</code>)</span></div></span></summary><div·class="docblock"><p>Returns·a·mutable·pointer·to·the·output·at·this·location,·without23 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="tymethod.get_unchecked_mut"·class="method"><a·class="src·rightside"·href="../../src/core/slice/index.rs.html#205">Source</a><h4·class="code-header">unsafe·fn·<a·href="#tymethod.get_unchecked_mut"·class="fn">get_unchecked_mut</a>(self,·slice:·<a·class="primitive"·href="../../core/primitive.pointer.html">*mut·T</a>)·-&gt;·<a·class[·...·truncated·by·diffoscope;·len:·24,·SHA:·aa6ca92cb27553d4f4b50b995e1f26ced1866cb2ceca69373f032eac0bdb2fcc·...·]/core/primitive.pointer.html">*mut·</a>Self::<a·class="associatedtype"·href="trait.SliceIndex.html#associatedtype.Output"·title="type·alloc::slice::SliceIndex::Output">Output</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>slice_index_methods</code>)</span></div></span></summary><div·class="docblock"><p>Returns·a·mutable·pointer·to·the·output·at·this·location,·without
24 performing·any·bounds·checking.</p>24 performing·any·bounds·checking.</p>
25 <p>Calling·this·method·with·an·out-of-bounds·index·or·a·dangling·<code>slice</code>·pointer25 <p>Calling·this·method·with·an·out-of-bounds·index·or·a·dangling·<code>slice</code>·pointer
26 is·<em><a·href="https://doc.rust-lang.org/reference/behavior-considered-undefined.html">undefined·behavior</a></em>·even·if·the·resulting·pointer·is·not·used.</p>26 is·<em><a·href="https://doc.rust-lang.org/reference/behavior-considered-undefined.html">undefined·behavior</a></em>·even·if·the·resulting·pointer·is·not·used.</p>
27 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="tymethod.index"·class="method"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/slice/index.rs.html#211">Source</a><h4·class="code-header">fn·<a·href="#tymethod.index"·class="fn">index</a>(self,·slice:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·&amp;Self::<a·class="associatedtype"·href="trait.SliceIndex.html#associatedtype.Output"·title="type·alloc::slice::SliceIndex::Output">Output</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>slice_index_methods</code>)</span></div></span></summary><div·class="docblock"><p>Returns·a·shared·reference·to·the·output·at·this·location,·panicking27 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="tymethod.index"·class="method"><a·class="src·rightside"·href="../../src/core/slice/index.rs.html#211">Source</a><h4·class="code-header">fn·<a·href="#tymethod.index"·class="fn">index</a>(self,·slice:·<a·class="primitive"·href="../../core/primitive.reference.html">&amp;T</a>)·-&gt;·&amp;Self::<a·class="associatedtype"·href="trait.SliceIndex.html#associatedtype.Output"·title="type·alloc::slice::SliceIndex::Output">Output</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>slice_index_methods</code>)</span></div></span></summary><div·class="docblock"><p>Returns·a·shared·reference·to·the·output·at·this·location,·panicking
28 if·out·of·bounds.</p>28 if·out·of·bounds.</p>
29 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="tymethod.index_mut"·class="method"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/slice/index.rs.html#217">Source</a><h4·class="code-header">fn·<a·href="#tymethod.index_mut"·class="fn">index_mut</a>(self,·slice:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;mut·T</a>)·-&gt;·&amp;mut·Self::<a·class="associatedtype"·href="trait.SliceIndex.html#associatedtype.Output"·title="type·alloc::slice::SliceIndex::Output">Output</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>slice_index_methods</code>)</span></div></span></summary><div·class="docblock"><p>Returns·a·mutable·reference·to·the·output·at·this·location,·panicking29 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="tymethod.index_mut"·class="method"><a·class="src·rightside"·href="../../src/core/slice/index.rs.html#217">Source</a><h4·class="code-header">fn·<a·href="#tymethod.index_mut"·class="fn">index_mut</a>(self,·slice:·<a·class="primitive"·href="../../core/primitive.reference.html">&amp;mut·T</a>)·-&gt;·&amp;mut·Self::<a·class="associatedtype"·href="trait.SliceIndex.html#associatedtype.Output"·title="type·alloc::slice::SliceIndex::Output">Output</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>slice_index_methods</code>)</span></div></span></summary><div·class="docblock"><p>Returns·a·mutable·reference·to·the·output·at·this·location,·panicking
30 if·out·of·bounds.</p>30 if·out·of·bounds.</p>
31 </div></details></div><h2·id="implementors"·class="section-header">Implementors<a·href="#implementors"·class="anchor">§</a></h2><div·id="implementors-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-SliceIndex%3Cstr%3E-for-(Bound%3Cusize%3E,+Bound%3Cusize%3E)"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.73.0">1.73.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/str/traits.rs.html#376">Source</a></span><a·href="#impl-SliceIndex%3Cstr%3E-for-(Bound%3Cusize%3E,+Bound%3Cusize%3E)"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="trait.SliceIndex.html"·t[·...·truncated·by·diffoscope;·len:·593,·SHA:·633ab14cfc81a32d93bd176f968d3e1efc0a4d807ba7984e58cda388cecb9286·...·]/core/primitive.usize.html">usize</a>&gt;)</h3></section></summary><div·class="docblock"><p>Implements·substring·slicing·for·arbitrary·bounds.</p>31 </div></details></div><h2·id="implementors"·class="section-header">Implementors<a·href="#implementors"·class="anchor">§</a></h2><div·id="implementors-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-SliceIndex%3Cstr%3E-for-(Bound%3Cusize%3E,+Bound%3Cusize%3E)"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.73.0">1.73.0</span>···<a·class="src"·href="../../src/core/str/traits.rs.html#376">Source</a></span><a·href="#impl-SliceIndex%3Cstr%3E-for-(Bound%3Cusize%3E,+Bound%3Cusize%3E)"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="trait.SliceIndex.html"·title="trait·alloc::slice::S[·...·truncated·by·diffoscope;·len:·431,·SHA:·b869681e3732332b4fe34edfdfad6757840f656a1e3459d9b3c772855fca5b7a·...·]/core/primitive.usize.html">usize</a>&gt;)</h3></section></summary><div·class="docblock"><p>Implements·substring·slicing·for·arbitrary·bounds.</p>
32 <p>Returns·a·slice·of·the·given·string·bounded·by·the·byte·indices32 <p>Returns·a·slice·of·the·given·string·bounded·by·the·byte·indices
33 provided·by·each·bound.</p>33 provided·by·each·bound.</p>
34 <p>This·operation·is·<em>O</em>(1).</p>34 <p>This·operation·is·<em>O</em>(1).</p>
35 <h4·id="panics"><a·class="doc-anchor"·href="#panics">§</a>Panics</h4>35 <h4·id="panics"><a·class="doc-anchor"·href="#panics">§</a>Panics</h4>
36 <p>Panics·if·<code>begin</code>·or·<code>end</code>·(if·it·exists·and·once·adjusted·for36 <p>Panics·if·<code>begin</code>·or·<code>end</code>·(if·it·exists·and·once·adjusted·for
37 inclusion/exclusion)·does·not·point·to·the·starting·byte·offset·of37 inclusion/exclusion)·does·not·point·to·the·starting·byte·offset·of
38 a·character·(as·defined·by·<code>is_char_boundary</code>),·if·<code>begin·&gt;·end</code>,·or·if38 a·character·(as·defined·by·<code>is_char_boundary</code>),·if·<code>begin·&gt;·end</code>,·or·if
39 <code>end·&gt;·len</code>.</p>39 <code>end·&gt;·len</code>.</p>
40 </div><div·class="impl-items"><section·id="associatedtype.Output-1"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/str/traits.rs.html#377">Source</a><a·href="#associatedtype.Output-1"·class="anchor">§</a><h4·class="code-header">type·<a·href="#associatedtype.Output"·class="associatedtype">Output</a>·=·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·957,·SHA:·765fa913d6ea9f2b4772b9591330892f8f49711952c3f59652694cc9a7c2784f·...·]/core/primitive.usize.html">usize</a>&gt;</h3></section></summary><div·class="docblock"><p>Implements·substring·slicing·with·syntax·<code>&amp;self[begin·..·end]</code>·or·<code>&amp;mut·self[begin·..·end]</code>.</p>40 </div><div·class="impl-items"><section·id="associatedtype.Output-1"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/core/str/traits.rs.html#377">Source</a><a·href="#associatedtype.Output-1"·class="anchor">§</a><h4·class="code-header">type·<a·href="#associatedtype.Output"·class="associatedtype">Output</a>·=·<a·class="primitive"·href="../../core/primitive.str.ht[·...·truncated·by·diffoscope;·len:·795,·SHA:·6f82ddffa2eeab8bd3276f6fe18677273706f398a854baac32003b041062b3b9·...·]/core/primitive.usize.html">usize</a>&gt;</h3></section></summary><div·class="docblock"><p>Implements·substring·slicing·with·syntax·<code>&amp;self[begin·..·end]</code>·or·<code>&amp;mut·self[begin·..·end]</code>.</p>
41 <p>Returns·a·slice·of·the·given·string·from·the·byte·range41 <p>Returns·a·slice·of·the·given·string·from·the·byte·range
42 [<code>begin</code>,·<code>end</code>).</p>42 [<code>begin</code>,·<code>end</code>).</p>
43 <p>This·operation·is·<em>O</em>(1).</p>43 <p>This·operation·is·<em>O</em>(1).</p>
44 <p>Prior·to·1.20.0,·these·indexing·operations·were·still·supported·by44 <p>Prior·to·1.20.0,·these·indexing·operations·were·still·supported·by
45 direct·implementation·of·<code>Index</code>·and·<code>IndexMut</code>.</p>45 direct·implementation·of·<code>Index</code>·and·<code>IndexMut</code>.</p>
46 <h4·id="panics-1"><a·class="doc-anchor"·href="#panics-1">§</a>Panics</h4>46 <h4·id="panics-1"><a·class="doc-anchor"·href="#panics-1">§</a>Panics</h4>
47 <p>Panics·if·<code>begin</code>·or·<code>end</code>·does·not·point·to·the·starting·byte·offset·of47 <p>Panics·if·<code>begin</code>·or·<code>end</code>·does·not·point·to·the·starting·byte·offset·of
Offset 59, 67 lines modifiedOffset 59, 67 lines modified
59 //·&amp;s[2·..3];59 //·&amp;s[2·..3];
  
60 //·byte·8·lies·within·`老`60 //·byte·8·lies·within·`老`
61 //·&amp;s[1·..·8];61 //·&amp;s[1·..·8];
  
62 //·byte·100·is·outside·the·string62 //·byte·100·is·outside·the·string
63 //·&amp;s[3·..·100];</span></code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++let+s+=+%22L%C3%B6we+%E8%80%81%E8%99%8E+L%C3%A9opard%22;%0A++++assert_eq!(%26s%5B0+..+1%5D,+%22L%22);%0A++++%0A++++assert_eq!(%26s%5B1+..+9%5D,+%22%C3%B6we+%E8%80%81%22);%0A++++%0A++++//+these+will+panic:%0A++++//+byte+2+lies+within+%60%C3%B6%60:%0A++++//+%26s%5B2+..3%5D;%0A++++%0A++++//+byte+8+lies+within+%60%E8%80%81%60%0A++++//+%26s%5B1+..+8%5D;%0A++++%0A++++//+byte+100+is+outside+the+string%0A++++//+%26s%5B3+..+100%5D;%0A%7D&amp;edition=2021"></a></div>63 //·&amp;s[3·..·100];</span></code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++let+s+=+%22L%C3%B6we+%E8%80%81%E8%99%8E+L%C3%A9opard%22;%0A++++assert_eq!(%26s%5B0+..+1%5D,+%22L%22);%0A++++%0A++++assert_eq!(%26s%5B1+..+9%5D,+%22%C3%B6we+%E8%80%81%22);%0A++++%0A++++//+these+will+panic:%0A++++//+byte+2+lies+within+%60%C3%B6%60:%0A++++//+%26s%5B2+..3%5D;%0A++++%0A++++//+byte+8+lies+within+%60%E8%80%81%60%0A++++//+%26s%5B1+..+8%5D;%0A++++%0A++++//+byte+100+is+outside+the+string%0A++++//+%26s%5B3+..+100%5D;%0A%7D&amp;edition=2021"></a></div>
64 </div><div·class="impl-items"><section·id="associatedtype.Output-2"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/str/traits.rs.html#160">Source</a><a·href="#associatedtype.Output-2"·class="anchor">§</a><h4·class="code-header">type·<a·href="#associatedtype.Output"·class="associatedtype">Output</a>·=·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·977,·SHA:·9e682ec05288cb05ff485f24939dbebeda1f6f4a0714df66af83333fe0ee7cb3·...·]/core/primitive.usize.html">usize</a>&gt;</h3></section></summary><div·class="docblock"><p>Implements·substring·slicing·with·syntax·<code>&amp;self[begin·..]</code>·or·<code>&amp;mut·self[begin·..]</code>.</p>64 </div><div·class="impl-items"><section·id="associatedtype.Output-2"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/core/str/traits.rs.html#160">Source</a><a·href="#associatedtype.Output-2"·class="anchor">§</a><h4·class="code-header">type·<a·href="#associatedtype.Output"·class="associatedtype">Output</a>·=·<a·class="primitive"·href="../../core/primitive.str.ht[·...·truncated·by·diffoscope;·len:·815,·SHA:·eed096440922aa0bf4a3d41f9b2acba17bebdcd334778be2d341637f062b8133·...·]/core/primitive.usize.html">usize</a>&gt;</h3></section></summary><div·class="docblock"><p>Implements·substring·slicing·with·syntax·<code>&amp;self[begin·..]</code>·or·<code>&amp;mut·self[begin·..]</code>.</p>
65 <p>Returns·a·slice·of·the·given·string·from·the·byte·range·[<code>begin</code>,·<code>len</code>).65 <p>Returns·a·slice·of·the·given·string·from·the·byte·range·[<code>begin</code>,·<code>len</code>).
66 Equivalent·to·<code>&amp;self[begin·..·len]</code>·or·<code>&amp;mut·self[begin·..·len]</code>.</p>66 Equivalent·to·<code>&amp;self[begin·..·len]</code>·or·<code>&amp;mut·self[begin·..·len]</code>.</p>
67 <p>This·operation·is·<em>O</em>(1).</p>67 <p>This·operation·is·<em>O</em>(1).</p>
68 <p>Prior·to·1.20.0,·these·indexing·operations·were·still·supported·by68 <p>Prior·to·1.20.0,·these·indexing·operations·were·still·supported·by
69 direct·implementation·of·<code>Index</code>·and·<code>IndexMut</code>.</p>69 direct·implementation·of·<code>Index</code>·and·<code>IndexMut</code>.</p>
70 <h4·id="panics-2"><a·class="doc-anchor"·href="#panics-2">§</a>Panics</h4>70 <h4·id="panics-2"><a·class="doc-anchor"·href="#panics-2">§</a>Panics</h4>
71 <p>Panics·if·<code>begin</code>·does·not·point·to·the·starting·byte·offset·of71 <p>Panics·if·<code>begin</code>·does·not·point·to·the·starting·byte·offset·of
72 a·character·(as·defined·by·<code>is_char_boundary</code>),·or·if·<code>begin·&gt;·len</code>.</p>72 a·character·(as·defined·by·<code>is_char_boundary</code>),·or·if·<code>begin·&gt;·len</code>.</p>
73 </div><div·class="impl-items"><section·id="associatedtype.Output-3"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/str/traits.rs.html#499">Source</a><a·href="#associatedtype.Output-3"·class="anchor">§</a><h4·class="code-header">type·<a·href="#associatedtype.Output"·class="associatedtype">Output</a>·=·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·778,·SHA:·0e87de86843497e34b2001c2ff3f0eb27a559356458ac6ea0b377e0570ff768e·...·]/core/ops/range/struct.RangeFull.html"·title="struct·core::ops::range::RangeFull">RangeFull</a></h3></section></summary><div·class="docblock"><p>Implements·substring·slicing·with·syntax·<code>&amp;self[..]</code>·or·<code>&amp;mut·self[..]</code>.</p>73 </div><div·class="impl-items"><section·id="associatedtype.Output-3"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/core/str/traits.rs.html#499">Source</a><a·href="#associatedtype.Output-3"·class="anchor">§</a><h4·class="code-header">type·<a·href="#associatedtype.Output"·class="associatedtype">Output</a>·=·<a·class="primitive"·href="../../core/primitive.str.ht[·...·truncated·by·diffoscope;·len:·643,·SHA:·2c8f136ef7924de504c82eaf931f3fb7d02fd2cd8d74dd2a012e1faa29460757·...·]/core/ops/range/struct.RangeFull.html"·title="struct·core::ops::range::RangeFull">RangeFull</a></h3></section></summary><div·class="docblock"><p>Implements·substring·slicing·with·syntax·<code>&amp;self[..]</code>·or·<code>&amp;mut·self[..]</code>.</p>
74 <p>Returns·a·slice·of·the·whole·string,·i.e.,·returns·<code>&amp;self</code>·or·<code>&amp;mut·self</code>.·Equivalent·to·<code>&amp;self[0·..·len]</code>·or·<code>&amp;mut·self[0·..·len]</code>.·Unlike74 <p>Returns·a·slice·of·the·whole·string,·i.e.,·returns·<code>&amp;self</code>·or·<code>&amp;mut·self</code>.·Equivalent·to·<code>&amp;self[0·..·len]</code>·or·<code>&amp;mut·self[0·..·len]</code>.·Unlike
75 other·indexing·operations,·this·can·never·panic.</p>75 other·indexing·operations,·this·can·never·panic.</p>
76 <p>This·operation·is·<em>O</em>(1).</p>76 <p>This·operation·is·<em>O</em>(1).</p>
77 <p>Prior·to·1.20.0,·these·indexing·operations·were·still·supported·by77 <p>Prior·to·1.20.0,·these·indexing·operations·were·still·supported·by
78 direct·implementation·of·<code>Index</code>·and·<code>IndexMut</code>.</p>78 direct·implementation·of·<code>Index</code>·and·<code>IndexMut</code>.</p>
79 <p>Equivalent·to·<code>&amp;self[0·..·len]</code>·or·<code>&amp;mut·self[0·..·len]</code>.</p>79 <p>Equivalent·to·<code>&amp;self[0·..·len]</code>·or·<code>&amp;mut·self[0·..·len]</code>.</p>
80 </div><div·class="impl-items"><section·id="associatedtype.Output-4"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/str/traits.rs.html#96">Source</a><a·href="#associatedtype.Output-4"·class="anchor">§</a><h4·class="code-header">type·<a·href="#associatedtype.Output"·class="associatedtype">Output</a>·=·<a·class="primitive"·href="h[·...·truncated·by·diffoscope;·len:·1001,·SHA:·4f61098142491647916923c8b13eeb2d0f5d7a34254942c3939733f914a1522d·...·]/core/primitive.usize.html">usize</a>&gt;</h3></section></summary><div·class="docblock"><p>Implements·substring·slicing·with·syntax·<code>&amp;self[begin·..=·end]</code>·or·<code>&amp;mut·self[begin·..=·end]</code>.</p>80 </div><div·class="impl-items"><section·id="associatedtype.Output-4"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/core/str/traits.rs.html#96">Source</a><a·href="#associatedtype.Output-4"·class="anchor">§</a><h4·class="code-header">type·<a·href="#associatedtype.Output"·class="associatedtype">Output</a>·=·<a·class="primitive"·href="../../core/primitive.str.htm[·...·truncated·by·diffoscope;·len:·839,·SHA:·3a96b29a93bcc2d2d98b15411b8fe6e5b499267f28b96cdca8e45b9690864e1b·...·]/core/primitive.usize.html">usize</a>&gt;</h3></section></summary><div·class="docblock"><p>Implements·substring·slicing·with·syntax·<code>&amp;self[begin·..=·end]</code>·or·<code>&amp;mut·self[begin·..=·end]</code>.</p>
81 <p>Returns·a·slice·of·the·given·string·from·the·byte·range81 <p>Returns·a·slice·of·the·given·string·from·the·byte·range
82 [<code>begin</code>,·<code>end</code>].·Equivalent·to·<code>&amp;self·[begin·..·end·+·1]</code>·or·<code>&amp;mut·self[begin·..·end·+·1]</code>,·except·if·<code>end</code>·has·the·maximum·value·for82 [<code>begin</code>,·<code>end</code>].·Equivalent·to·<code>&amp;self·[begin·..·end·+·1]</code>·or·<code>&amp;mut·self[begin·..·end·+·1]</code>,·except·if·<code>end</code>·has·the·maximum·value·for
83 <code>usize</code>.</p>83 <code>usize</code>.</p>
84 <p>This·operation·is·<em>O</em>(1).</p>84 <p>This·operation·is·<em>O</em>(1).</p>
85 <h4·id="panics-3"><a·class="doc-anchor"·href="#panics-3">§</a>Panics</h4>85 <h4·id="panics-3"><a·class="doc-anchor"·href="#panics-3">§</a>Panics</h4>
86 <p>Panics·if·<code>begin</code>·does·not·point·to·the·starting·byte·offset·of86 <p>Panics·if·<code>begin</code>·does·not·point·to·the·starting·byte·offset·of
87 a·character·(as·defined·by·<code>is_char_boundary</code>),·if·<code>end</code>·does·not·point87 a·character·(as·defined·by·<code>is_char_boundary</code>),·if·<code>end</code>·does·not·point
88 to·the·ending·byte·offset·of·a·character·(<code>end·+·1</code>·is·either·a·starting88 to·the·ending·byte·offset·of·a·character·(<code>end·+·1</code>·is·either·a·starting
89 byte·offset·or·equal·to·<code>len</code>),·if·<code>begin·&gt;·end</code>,·or·if·<code>end·&gt;=·len</code>.</p>89 byte·offset·or·equal·to·<code>len</code>),·if·<code>begin·&gt;·end</code>,·or·if·<code>end·&gt;=·len</code>.</p>
90 </div><div·class="impl-items"><section·id="associatedtype.Output-5"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/str/traits.rs.html#625">Source</a><a·href="#associatedtype.Output-5"·class="anchor">§</a><h4·class="code-header">type·<a·href="#associatedtype.Output"·class="associatedtype">Output</a>·=·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·949,·SHA:·e71779fdb349d2cef5b78bde4bbfdb5399111ba419117b69a4bc5ab2999b5d2b·...·]/core/primitive.usize.html">usize</a>&gt;</h3></section></summary><div·class="docblock"><p>Implements·substring·slicing·with·syntax·<code>&amp;self[..·end]</code>·or·<code>&amp;mut·self[..·end]</code>.</p>90 </div><div·class="impl-items"><section·id="associatedtype.Output-5"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/core/str/traits.rs.html#625">Source</a><a·href="#associatedtype.Output-5"·class="anchor">§</a><h4·class="code-header">type·<a·href="#associatedtype.Output"·class="associatedtype">Output</a>·=·<a·class="primitive"·href="../../core/primitive.str.ht[·...·truncated·by·diffoscope;·len:·787,·SHA:·2360b4841db4d2bf9785e7e55bc2255b36ea9a45e2271530debf74a48d62d82e·...·]/core/primitive.usize.html">usize</a>&gt;</h3></section></summary><div·class="docblock"><p>Implements·substring·slicing·with·syntax·<code>&amp;self[..·end]</code>·or·<code>&amp;mut·self[..·end]</code>.</p>
91 <p>Returns·a·slice·of·the·given·string·from·the·byte·range·[0,·<code>end</code>).91 <p>Returns·a·slice·of·the·given·string·from·the·byte·range·[0,·<code>end</code>).
92 Equivalent·to·<code>&amp;self[0·..·end]</code>·or·<code>&amp;mut·self[0·..·end]</code>.</p>92 Equivalent·to·<code>&amp;self[0·..·end]</code>·or·<code>&amp;mut·self[0·..·end]</code>.</p>
93 <p>This·operation·is·<em>O</em>(1).</p>93 <p>This·operation·is·<em>O</em>(1).</p>
94 <p>Prior·to·1.20.0,·these·indexing·operations·were·still·supported·by94 <p>Prior·to·1.20.0,·these·indexing·operations·were·still·supported·by
95 direct·implementation·of·<code>Index</code>·and·<code>IndexMut</code>.</p>95 direct·implementation·of·<code>Index</code>·and·<code>IndexMut</code>.</p>
96 <h4·id="panics-4"><a·class="doc-anchor"·href="#panics-4">§</a>Panics</h4>96 <h4·id="panics-4"><a·class="doc-anchor"·href="#panics-4">§</a>Panics</h4>
97 <p>Panics·if·<code>end</code>·does·not·point·to·the·starting·byte·offset·of·a97 <p>Panics·if·<code>end</code>·does·not·point·to·the·starting·byte·offset·of·a
98 character·(as·defined·by·<code>is_char_boundary</code>),·or·if·<code>end·&gt;·len</code>.</p>98 character·(as·defined·by·<code>is_char_boundary</code>),·or·if·<code>end·&gt;·len</code>.</p>
99 </div><div·class="impl-items"><section·id="associatedtype.Output-6"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/str/traits.rs.html#431">Source</a><a·href="#associatedtype.Output-6"·class="anchor">§</a><h4·class="code-header">type·<a·href="#associatedtype.Output"·class="associatedtype">Output</a>·=·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·994,·SHA:·1892f4b071c0b81733aeb5764f03a85b24f53c35b169c82aa4368bb703206a00·...·]/core/primitive.usize.html">usize</a>&gt;</h3></section></summary><div·class="docblock"><p>Implements·substring·slicing·with·syntax·<code>&amp;self[..=·end]</code>·or·<code>&amp;mut·self[..=·end]</code>.</p>99 </div><div·class="impl-items"><section·id="associatedtype.Output-6"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/core/str/traits.rs.html#431">Source</a><a·href="#associatedtype.Output-6"·class="anchor">§</a><h4·class="code-header">type·<a·href="#associatedtype.Output"·class="associatedtype">Output</a>·=·<a·class="primitive"·href="../../core/primitive.str.ht[·...·truncated·by·diffoscope;·len:·832,·SHA:·f71e60bfc056312f4b4831d1eafc57ac7822e80f4f47d9b85a5862253245935a·...·]/core/primitive.usize.html">usize</a>&gt;</h3></section></summary><div·class="docblock"><p>Implements·substring·slicing·with·syntax·<code>&amp;self[..=·end]</code>·or·<code>&amp;mut·self[..=·end]</code>.</p>
100 <p>Returns·a·slice·of·the·given·string·from·the·byte·range·[0,·<code>end</code>].100 <p>Returns·a·slice·of·the·given·string·from·the·byte·range·[0,·<code>end</code>].
101 Equivalent·to·<code>&amp;self·[0·..·end·+·1]</code>,·except·if·<code>end</code>·has·the·maximum101 Equivalent·to·<code>&amp;self·[0·..·end·+·1]</code>,·except·if·<code>end</code>·has·the·maximum
102 value·for·<code>usize</code>.</p>102 value·for·<code>usize</code>.</p>
103 <p>This·operation·is·<em>O</em>(1).</p>103 <p>This·operation·is·<em>O</em>(1).</p>
104 <h4·id="panics-5"><a·class="doc-anchor"·href="#panics-5">§</a>Panics</h4>104 <h4·id="panics-5"><a·class="doc-anchor"·href="#panics-5">§</a>Panics</h4>
105 <p>Panics·if·<code>end</code>·does·not·point·to·the·ending·byte·offset·of·a·character105 <p>Panics·if·<code>end</code>·does·not·point·to·the·ending·byte·offset·of·a·character
106 (<code>end·+·1</code>·is·either·a·starting·byte·offset·as·defined·by106 (<code>end·+·1</code>·is·either·a·starting·byte·offset·as·defined·by
107 <code>is_char_boundary</code>,·or·equal·to·<code>len</code>),·or·if·<code>end·&gt;=·len</code>.</p>107 <code>is_char_boundary</code>,·or·equal·to·<code>len</code>),·or·if·<code>end·&gt;=·len</code>.</p>
108 </div><div·class="impl-items"><section·id="associatedtype.Output-7"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/str/traits.rs.html#713">Source</a><a·href="#associatedtype.Output-7"·class="anchor">§</a><h4·class="code-header">type·<a·href="#associatedtype.Output"·class="associatedtype">Output</a>·=·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·6443,·SHA:·572beb55d697332173d9928aef98c92b1b239283a8f37d84a7ec8417c2c91d9e·...·]/core/primitive.usize.html">usize</a></h3></section></summary><div·class="docblock"><p>The·methods·<code>index</code>·and·<code>index_mut</code>·panic·if·the·index·is·out·of·bounds.</p>108 </div><div·class="impl-items"><section·id="associatedtype.Output-7"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/core/str/traits.rs.html#713">Source</a><a·href="#associatedtype.Output-7"·class="anchor">§</a><h4·class="code-header">type·<a·href="#associatedtype.Output"·class="associatedtype">Output</a>·=·<a·class="primitive"·href="../../core/primitive.str.ht[·...·truncated·by·diffoscope;·len:·5606,·SHA:·ad814bfa5e6df35719ee19ebd3929a0e655ee3f39ba08c7b30912a0c3b42a870·...·]/core/primitive.usize.html">usize</a></h3></section></summary><div·class="docblock"><p>The·methods·<code>index</code>·and·<code>index_mut</code>·panic·if·the·index·is·out·of·bounds.</p>
109 </div><div·class="impl-items"><section·id="associatedtype.Output-12"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/slice/index.rs.html#223">Source</a><a·href="#associatedtype.Output-12"·class="anchor">§</a><h4·class="code-header">type·<a·href="#associatedtype.Output"·class="associatedtype">Output</a>·=·T</h4></section></div></d[·...·truncated·by·diffoscope;·len:·888,·SHA:·5e94fd691214870e3c99801d834a5e7de26689d1ce54964562d32266128ce4ad·...·]/core/primitive.usize.html">usize</a>&gt;</h3></section></summary><div·class="docblock"><p>The·methods·<code>index</code>·and·<code>index_mut</code>·panic·if:</p>109 </div><div·class="impl-items"><section·id="associatedtype.Output-12"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/core/slice/index.rs.html#223">Source</a><a·href="#associatedtype.Output-12"·class="anchor">§</a><h4·class="code-header">type·<a·href="#associatedtype.Output"·class="associatedtype">Output</a>·=·T</h4></section></div></details><details·class="togg[·...·truncated·by·diffoscope;·len:·753,·SHA:·bef9f3958f1b57153e3860160d08be2cbbd158d306a07b53d7663f25b419bd20·...·]/core/primitive.usize.html">usize</a>&gt;</h3></section></summary><div·class="docblock"><p>The·methods·<code>index</code>·and·<code>index_mut</code>·panic·if:</p>
110 <ul>110 <ul>
111 <li>the·start·of·the·range·is·greater·than·the·end·of·the·range·or</li>111 <li>the·start·of·the·range·is·greater·than·the·end·of·the·range·or</li>
112 <li>the·end·of·the·range·is·out·of·bounds.</li>112 <li>the·end·of·the·range·is·out·of·bounds.</li>
113 </ul>113 </ul>
114 </div><div·class="impl-items"><section·id="associatedtype.Output-13"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/slice/index.rs.html#361">Source</a><a·href="#associatedtype.Output-13"·class="anchor">§</a><h4·class="code-header">type·<a·href="#associatedtype.Output"·class="associatedtype">Output</a>·=·<a·class="primitive"·href[·...·truncated·by·diffoscope;·len:·1001,·SHA:·973786396ba1240d2510ffe5f74094a4d4406b15048d81072ff367914c03f083·...·]/core/primitive.usize.html">usize</a>&gt;</h3></section></summary><div·class="docblock"><p>The·methods·<code>index</code>·and·<code>index_mut</code>·panic·if·the·start·of·the·range·is·out·of·bounds.</p>114 </div><div·class="impl-items"><section·id="associatedtype.Output-13"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/core/slice/index.rs.html#361">Source</a><a·href="#associatedtype.Output-13"·class="anchor">§</a><h4·class="code-header">type·<a·href="#associatedtype.Output"·class="associatedtype">Output</a>·=·<a·class="primitive"·href="../../core/primitive.slic[·...·truncated·by·diffoscope;·len:·839,·SHA:·62aaf9e3a8366d13473d916fae4937e29f01bae1d596cab174fd1c9a30e5a0ce·...·]/core/primitive.usize.html">usize</a>&gt;</h3></section></summary><div·class="docblock"><p>The·methods·<code>index</code>·and·<code>index_mut</code>·panic·if·the·start·of·the·range·is·out·of·bounds.</p>
115 </div><div·class="impl-items"><section·id="associatedtype.Output-14"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/slice/index.rs.html#534">Source</a><a·href="#associatedtype.Output-14"·class="anchor">§</a><h4·class="code-header">type·<a·href="#associatedtype.Output"·class="associatedtype">Output</a>·=·<a·class="primitive"·href[·...·truncated·by·diffoscope;·len:·2333,·SHA:·3974882c2f0bc78af799214bf5c32cf4cae500fb410fec401ae7422db266e011·...·]/core/primitive.usize.html">usize</a>&gt;</h3></section></summary><div·class="docblock"><p>The·methods·<code>index</code>·and·<code>index_mut</code>·panic·if:</p>115 </div><div·class="impl-items"><section·id="associatedtype.Output-14"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/core/slice/index.rs.html#534">Source</a><a·href="#associatedtype.Output-14"·class="anchor">§</a><h4·class="code-header">type·<a·href="#associatedtype.Output"·class="associatedtype">Output</a>·=·<a·class="primitive"·href="../../core/primitive.slic[·...·truncated·by·diffoscope;·len:·2036,·SHA:·e22d23e85e9d3321803a896f190caaedf63e6ed6496428ed0df1d3bf5b32fdfb·...·]/core/primitive.usize.html">usize</a>&gt;</h3></section></summary><div·class="docblock"><p>The·methods·<code>index</code>·and·<code>index_mut</code>·panic·if:</p>
116 <ul>116 <ul>
117 <li>the·end·of·the·range·is·<code>usize::MAX</code>·or</li>117 <li>the·end·of·the·range·is·<code>usize::MAX</code>·or</li>
118 <li>the·start·of·the·range·is·greater·than·the·end·of·the·range·or</li>118 <li>the·start·of·the·range·is·greater·than·the·end·of·the·range·or</li>
119 <li>the·end·of·the·range·is·out·of·bounds.</li>119 <li>the·end·of·the·range·is·out·of·bounds.</li>
120 </ul>120 </ul>
121 </div><div·class="impl-items"><section·id="associatedtype.Output-16"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/slice/index.rs.html#655">Source</a><a·href="#associatedtype.Output-16"·class="anchor">§</a><h4·class="code-header">type·<a·href="#associatedtype.Output"·class="associatedtype">Output</a>·=·<a·class="primitive"·href[·...·truncated·by·diffoscope;·len:·973,·SHA:·70a0e19a677b261ae9ec6f74f23fbddbc74d20f05aec618233866e0e14d9f753·...·]/core/primitive.usize.html">usize</a>&gt;</h3></section></summary><div·class="docblock"><p>The·methods·<code>index</code>·and·<code>index_mut</code>·panic·if·the·end·of·the·range·is·out·of·bounds.</p>121 </div><div·class="impl-items"><section·id="associatedtype.Output-16"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/core/slice/index.rs.html#655">Source</a><a·href="#associatedtype.Output-16"·class="anchor">§</a><h4·class="code-header">type·<a·href="#associatedtype.Output"·class="associatedtype">Output</a>·=·<a·class="primitive"·href="../../core/primitive.slic[·...·truncated·by·diffoscope;·len:·811,·SHA:·4cbdedf7d1ceac788cf276bed55d60bd698cc160072f832d95662fc20cb946c0·...·]/core/primitive.usize.html">usize</a>&gt;</h3></section></summary><div·class="docblock"><p>The·methods·<code>index</code>·and·<code>index_mut</code>·panic·if·the·end·of·the·range·is·out·of·bounds.</p>
122 </div><div·class="impl-items"><section·id="associatedtype.Output-17"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/slice/index.rs.html#496">Source</a><a·href="#associatedtype.Output-17"·class="anchor">§</a><h4·class="code-header">type·<a·href="#associatedtype.Output"·class="associatedtype">Output</a>·=·<a·class="primitive"·href[·...·truncated·by·diffoscope;·len:·1018,·SHA:·9fc0b874c02efeb9002cebfeb85e65928b2e190f7df88f9cf590a0edc6e546fa·...·]/core/primitive.usize.html">usize</a>&gt;</h3></section></summary><div·class="docblock"><p>The·methods·<code>index</code>·and·<code>index_mut</code>·panic·if·the·end·of·the·range·is·out·of·bounds.</p>122 </div><div·class="impl-items"><section·id="associatedtype.Output-17"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/core/slice/index.rs.html#496">Source</a><a·href="#associatedtype.Output-17"·class="anchor">§</a><h4·class="code-header">type·<a·href="#associatedtype.Output"·class="associatedtype">Output</a>·=·<a·class="primitive"·href="../../core/primitive.slic[·...·truncated·by·diffoscope;·len:·856,·SHA:·d30a2de54e2f1923d91cf572161e78b734de14ed5bcccaeabd3c7dede7086261·...·]/core/primitive.usize.html">usize</a>&gt;</h3></section></summary><div·class="docblock"><p>The·methods·<code>index</code>·and·<code>index_mut</code>·panic·if·the·end·of·the·range·is·out·of·bounds.</p>
123 </div><div·class="impl-items"><section·id="associatedtype.Output-18"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/slice/index.rs.html#736">Source</a><a·href="#associatedtype.Output-18"·class="anchor">§</a><h4·class="code-header">type·<a·href="#associatedtype.Output"·class="associatedtype">Output</a>·=·<a·class="primitive"·href[·...·truncated·by·diffoscope;·len:·4068,·SHA:·ba4c01462fddfef0dc2f9de37a9dd10bc740fb67c821ced05a668554810f655b·...·]/core/primitive.slice.html">[T]</a></h4></section></div></details></div><script·src="../../trait.impl/core/slice/index/trait.SliceIndex.js"·data-ignore-extern-crates="core"·async></script></section></div></main></body></html>123 </div><div·class="impl-items"><section·id="associatedtype.Output-18"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/core/slice/index.rs.html#736">Source</a><a·href="#associatedtype.Output-18"·class="anchor">§</a><h4·class="code-header">type·<a·href="#associatedtype.Output"·class="associatedtype">Output</a>·=·<a·class="primitive"·href="../../core/primitive.slic[·...·truncated·by·diffoscope;·len:·3528,·SHA:·70084406b8a2d985cd50ed688fcfcd1ece0a21010b5ba25d22be6d9f6ef97197·...·]/core/primitive.slice.html">[T]</a></h4></section></div></details></div><script·src="../../trait.impl/core/slice/index/trait.SliceIndex.js"·data-ignore-extern-crates="core"·async></script></section></div></main></body></html>
9.25 KB
./usr/share/doc/rust-doc/html/alloc/str/fn.from_boxed_utf8_unchecked.html
    
Offset 1, 8 lines modifiedOffset 1, 8 lines modified
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="Converts·a·boxed·slice·of·bytes·to·a·boxed·string·slice·without·checking·that·the·string·contains·valid·UTF-8."><title>from_boxed_utf8_unchecked·in·alloc::str·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·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"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»2025-01-07)»     (built»       from»   a»  source»    tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">from_<wbr>boxed_<wbr>utf8_<wbr>unchecked</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#examples"·title="Examples">Examples</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>str</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">alloc</a>::<wbr><a·href="index.html">str</a></span><h1>Function·<span·class="fn">from_boxed_utf8_unchecked</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../src/alloc/str.rs.html#618-620">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·unsafe·fn·from_boxed_utf8_unchecked(v:·<a·class="struct"·href="../boxed/struct.Box.html"·title="struct·alloc::boxed::Box">Box</a>&lt;[<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.u8.html">u8</a>]&gt;)·-&gt;·<a·class="struct"·href="../boxed/struct.Box.html"·title="struct·alloc::boxed::Box">Box</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.str.html">str</a>&gt;</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Converts·a·boxed·slice·of·bytes·to·a·boxed·string·slice·without·checking1 <!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="Converts·a·boxed·slice·of·bytes·to·a·boxed·string·slice·without·checking·that·the·string·contains·valid·UTF-8."><title>from_boxed_utf8_unchecked·in·alloc::str·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·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"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»2025-01-07)»     (built»       from»   a»  source»    tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">from_<wbr>boxed_<wbr>utf8_<wbr>unchecked</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#examples"·title="Examples">Examples</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>str</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">alloc</a>::<wbr><a·href="index.html">str</a></span><h1>Function·<span·class="fn">from_boxed_utf8_unchecked</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../src/alloc/str.rs.html#618-620">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·unsafe·fn·from_boxed_utf8_unchecked(v:·<a·class="struct"·href="../boxed/struct.Box.html"·title="struct·alloc::boxed::Box">Box</a>&lt;[<a·class="primitive"·href="../../core/primitive.u8.html">u8</a>]&gt;)·-&gt;·<a·class="struct"·href="../boxed/struct.Box.html"·title="struct·alloc::boxed::Box">Box</a>&lt;<a·class="primitive"·href="../../core/primitive.str.html">str</a>&gt;</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Converts·a·boxed·slice·of·bytes·to·a·boxed·string·slice·without·checking
2 that·the·string·contains·valid·UTF-8.</p>2 that·the·string·contains·valid·UTF-8.</p>
3 <h2·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h2>3 <h2·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h2>
4 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span>smile_utf8·=·Box::new([<span·class="number">226</span>,·<span·class="number">152</span>,·<span·class="number">186</span>]);4 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span>smile_utf8·=·Box::new([<span·class="number">226</span>,·<span·class="number">152</span>,·<span·class="number">186</span>]);
5 <span·class="kw">let·</span>smile·=·<span·class="kw">unsafe·</span>{·std::str::from_boxed_utf8_unchecked(smile_utf8)·};5 <span·class="kw">let·</span>smile·=·<span·class="kw">unsafe·</span>{·std::str::from_boxed_utf8_unchecked(smile_utf8)·};
  
6 <span·class="macro">assert_eq!</span>(<span·class="string">"☺"</span>,·<span·class="kw-2">&amp;*</span>smile);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++let+smile_utf8+=+Box::new(%5B226,+152,+186%5D);%0A++++let+smile+=+unsafe+%7B+std::str::from_boxed_utf8_unchecked(smile_utf8)+%7D;%0A++++%0A++++assert_eq!(%22%E2%98%BA%22,+%26*smile);%0A%7D&amp;edition=2021"></a></div>6 <span·class="macro">assert_eq!</span>(<span·class="string">"☺"</span>,·<span·class="kw-2">&amp;*</span>smile);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++let+smile_utf8+=+Box::new(%5B226,+152,+186%5D);%0A++++let+smile+=+unsafe+%7B+std::str::from_boxed_utf8_unchecked(smile_utf8)+%7D;%0A++++%0A++++assert_eq!(%22%E2%98%BA%22,+%26*smile);%0A%7D&amp;edition=2021"></a></div>
7 </div></details></section></div></main></body></html>7 </div></details></section></div></main></body></html>
8.64 KB
./usr/share/doc/rust-doc/html/alloc/str/fn.from_raw_parts.html
    
Offset 1, 8 lines modifiedOffset 1, 8 lines modified
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="Creates·a·`&#38;str`·from·a·pointer·and·a·length."><title>from_raw_parts·in·alloc::str·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·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"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»      2025-01-07)»   (built»     from» a»source»  tarball)</div><div·class="sidebar-elems"><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>str</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">alloc</a>::<wbr><a·href="index.html">str</a></span><h1>Function·<span·class="fn">from_raw_parts</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="https://doc.rust-lang.org/1.84.0/src/core/str/converts.rs.html#220">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·const·unsafe·fn·from_raw_parts&lt;'a&gt;(ptr:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.point[·...·truncated·by·diffoscope;·len:·288,·SHA:·5c6bcab3990361fbe070bd3552e048d5b91dd775536fdceadc080238f298fbbf·...·]/core/primitive.str.html">str</a></code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>str_from_raw_parts</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/119206">#119206</a>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Creates·a·<code>&amp;str</code>·from·a·pointer·and·a·length.</p>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="Creates·a·`&#38;str`·from·a·pointer·and·a·length."><title>from_raw_parts·in·alloc::str·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·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"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»      2025-01-07)»   (built»     from» a»source»  tarball)</div><div·class="sidebar-elems"><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>str</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">alloc</a>::<wbr><a·href="index.html">str</a></span><h1>Function·<span·class="fn">from_raw_parts</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/core/str/converts.rs.html#220">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·const·unsafe·fn·from_raw_parts&lt;'a&gt;(ptr:·<a·class="primitive"·href="../../core/primitive.pointer.html">*const·</a><a·class="primitive"·href="../../c[·...·truncated·by·diffoscope;·len:·153,·SHA:·ec0f17188111cd9711470f114f5def232ce4f0bba7b932b87b91d8fcb27f84d0·...·]/core/primitive.str.html">str</a></code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>str_from_raw_parts</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/119206">#119206</a>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Creates·a·<code>&amp;str</code>·from·a·pointer·and·a·length.</p>
2 <p>The·pointed-to·bytes·must·be·valid·UTF-8.2 <p>The·pointed-to·bytes·must·be·valid·UTF-8.
3 If·this·might·not·be·the·case,·use·<code>str::from_utf8(slice::from_raw_parts(ptr,·len))</code>,3 If·this·might·not·be·the·case,·use·<code>str::from_utf8(slice::from_raw_parts(ptr,·len))</code>,
4 which·will·return·an·<code>Err</code>·if·the·data·isn’t·valid·UTF-8.</p>4 which·will·return·an·<code>Err</code>·if·the·data·isn’t·valid·UTF-8.</p>
5 <p>This·function·is·the·<code>str</code>·equivalent·of·<a·href="../slice/fn.from_raw_parts.html"·title="fn·alloc::slice::from_raw_parts"><code>slice::from_raw_parts</code></a>.5 <p>This·function·is·the·<code>str</code>·equivalent·of·<a·href="../slice/fn.from_raw_parts.html"·title="fn·alloc::slice::from_raw_parts"><code>slice::from_raw_parts</code></a>.
6 See·that·function’s·documentation·for·safety·concerns·and·examples.</p>6 See·that·function’s·documentation·for·safety·concerns·and·examples.</p>
7 <p>The·mutable·version·of·this·function·is·<a·href="fn.from_raw_parts_mut.html"·title="fn·alloc::str::from_raw_parts_mut"><code>from_raw_parts_mut</code></a>.</p>7 <p>The·mutable·version·of·this·function·is·<a·href="fn.from_raw_parts_mut.html"·title="fn·alloc::str::from_raw_parts_mut"><code>from_raw_parts_mut</code></a>.</p>
8 </div></details></section></div></main></body></html>8 </div></details></section></div></main></body></html>
8.73 KB
./usr/share/doc/rust-doc/html/alloc/str/fn.from_raw_parts_mut.html
    
Offset 1, 11 lines modifiedOffset 1, 11 lines modified
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="Creates·a·`&#38;mut·str`·from·a·pointer·and·a·length."><title>from_raw_parts_mut·in·alloc::str·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·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"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»       2025-01-07)»    (built»      from»  a» source»   tarball)</div><div·class="sidebar-elems"><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>str</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">alloc</a>::<wbr><a·href="index.html">str</a></span><h1>Function·<span·class="fn">from_raw_parts_mut</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="https://doc.rust-lang.org/1.84.0/src/core/str/converts.rs.html#238">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·const·unsafe·fn·from_raw_parts_mut&lt;'a&gt;(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="Creates·a·`&#38;mut·str`·from·a·pointer·and·a·length."><title>from_raw_parts_mut·in·alloc::str·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·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"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»       2025-01-07)»    (built»      from»  a» source»   tarball)</div><div·class="sidebar-elems"><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>str</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">alloc</a>::<wbr><a·href="index.html">str</a></span><h1>Function·<span·class="fn">from_raw_parts_mut</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/core/str/converts.rs.html#238">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·const·unsafe·fn·from_raw_parts_mut&lt;'a&gt;(
2 ····ptr:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.pointer.html">*mut·</a><a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.u8.html">u8</a>,2 ····ptr:·<a·class="primitive"·href="../../core/primitive.pointer.html">*mut·</a><a·class="primitive"·href="../../core/primitive.u8.html">u8</a>,
3 ····len:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.usize.html">usize</a>,3 ····len:·<a·class="primitive"·href="../../core/primitive.usize.html">usize</a>,
4 )·-&gt;·&amp;'a·mut·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.str.html">str</a></code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>str_from_raw_parts</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/119206">#119206</a>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Creates·a·<code>&amp;mut·str</code>·from·a·pointer·and·a·length.</p>4 )·-&gt;·&amp;'a·mut·<a·class="primitive"·href="../../core/primitive.str.html">str</a></code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>str_from_raw_parts</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/119206">#119206</a>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Creates·a·<code>&amp;mut·str</code>·from·a·pointer·and·a·length.</p>
5 <p>The·pointed-to·bytes·must·be·valid·UTF-8.5 <p>The·pointed-to·bytes·must·be·valid·UTF-8.
6 If·this·might·not·be·the·case,·use·<code>str::from_utf8_mut(slice::from_raw_parts_mut(ptr,·len))</code>,6 If·this·might·not·be·the·case,·use·<code>str::from_utf8_mut(slice::from_raw_parts_mut(ptr,·len))</code>,
7 which·will·return·an·<code>Err</code>·if·the·data·isn’t·valid·UTF-8.</p>7 which·will·return·an·<code>Err</code>·if·the·data·isn’t·valid·UTF-8.</p>
8 <p>This·function·is·the·<code>str</code>·equivalent·of·<a·href="../slice/fn.from_raw_parts_mut.html"·title="fn·alloc::slice::from_raw_parts_mut"><code>slice::from_raw_parts_mut</code></a>.8 <p>This·function·is·the·<code>str</code>·equivalent·of·<a·href="../slice/fn.from_raw_parts_mut.html"·title="fn·alloc::slice::from_raw_parts_mut"><code>slice::from_raw_parts_mut</code></a>.
9 See·that·function’s·documentation·for·safety·concerns·and·examples.</p>9 See·that·function’s·documentation·for·safety·concerns·and·examples.</p>
10 <p>The·immutable·version·of·this·function·is·<a·href="fn.from_raw_parts.html"·title="fn·alloc::str::from_raw_parts"><code>from_raw_parts</code></a>.</p>10 <p>The·immutable·version·of·this·function·is·<a·href="fn.from_raw_parts.html"·title="fn·alloc::str::from_raw_parts"><code>from_raw_parts</code></a>.</p>
11 </div></details></section></div></main></body></html>11 </div></details></section></div></main></body></html>
10.7 KB
./usr/share/doc/rust-doc/html/alloc/str/fn.from_utf8.html
    
Offset 1, 21 lines modifiedOffset 1, 21 lines modified
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="Converts·a·slice·of·bytes·to·a·string·slice."><title>from_utf8·in·alloc::str·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·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"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»2025-01-07)»     (built»       from»   a»  source»    tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">from_<wbr>utf8</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#errors"·title="Errors">Errors</a></li><li><a·href="#examples"·title="Examples">Examples</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>str</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">alloc</a>::<wbr><a·href="index.html">str</a></span><h1>Function·<span·class="fn">from_utf8</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0,·const·since·1.63.0">1.36.0·(const:·1.63.0)</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/str/converts.rs.html#86">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·const·fn·from_utf8(v:·&amp;[<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.u8.html">u8</a>])·-&gt;·[·...·truncated·by·diffoscope;·len:·197,·SHA:·f4cf3fe3015f0a335f135e974538c12d9ffa123294608ea0f9f6226e78ff4306·...·]/core/primitive.str.html">str</a>,·<a·class="struct"·href="struct.Utf8Error.html"·title="struct·alloc::str::Utf8Error">Utf8Error</a>&gt;</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Converts·a·slice·of·bytes·to·a·string·slice.</p>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="Converts·a·slice·of·bytes·to·a·string·slice."><title>from_utf8·in·alloc::str·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·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"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»2025-01-07)»     (built»       from»   a»  source»    tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">from_<wbr>utf8</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#errors"·title="Errors">Errors</a></li><li><a·href="#examples"·title="Examples">Examples</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>str</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">alloc</a>::<wbr><a·href="index.html">str</a></span><h1>Function·<span·class="fn">from_utf8</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0,·const·since·1.63.0">1.36.0·(const:·1.63.0)</span>···<a·class="src"·href="../../src/core/str/converts.rs.html#86">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·const·fn·from_utf8(v:·&amp;[<a·class="primitive"·href="../../core/primitive.u8.html">u8</a>])·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.ht[·...·truncated·by·diffoscope;·len:·89,·SHA:·580ce0792e6030311781ca0cfe5a0e94309d0e7f3838f355725ba0e2a13279b2·...·]/core/primitive.str.html">str</a>,·<a·class="struct"·href="struct.Utf8Error.html"·title="struct·alloc::str::Utf8Error">Utf8Error</a>&gt;</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Converts·a·slice·of·bytes·to·a·string·slice.</p>
2 <p>A·string·slice·(<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.str.html"·title="primitive·str"><code>&amp;str</code></a>)·is·made·of·bytes·(<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.u8.html"·title="primitive·u8"><code>u8</code></a>),·and·a·byte·slice2 <p>A·string·slice·(<a·href="../../core/primitive.str.html"·title="primitive·str"><code>&amp;str</code></a>)·is·made·of·bytes·(<a·href="../../core/primitive.u8.html"·title="primitive·u8"><code>u8</code></a>),·and·a·byte·slice
3 (<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html"·title="primitive·slice"><code>&amp;[u8]</code></a>)·is·made·of·bytes,·so·this·function·converts·between3 (<a·href="../../core/primitive.slice.html"·title="primitive·slice"><code>&amp;[u8]</code></a>)·is·made·of·bytes,·so·this·function·converts·between
4 the·two.·Not·all·byte·slices·are·valid·string·slices,·however:·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.str.html"·title="primitive·str"><code>&amp;str</code></a>·requires4 the·two.·Not·all·byte·slices·are·valid·string·slices,·however:·<a·href="../../core/primitive.str.html"·title="primitive·str"><code>&amp;str</code></a>·requires
5 that·it·is·valid·UTF-8.·<code>from_utf8()</code>·checks·to·ensure·that·the·bytes·are·valid5 that·it·is·valid·UTF-8.·<code>from_utf8()</code>·checks·to·ensure·that·the·bytes·are·valid
6 UTF-8,·and·then·does·the·conversion.</p>6 UTF-8,·and·then·does·the·conversion.</p>
7 <p>If·you·are·sure·that·the·byte·slice·is·valid·UTF-8,·and·you·don’t·want·to7 <p>If·you·are·sure·that·the·byte·slice·is·valid·UTF-8,·and·you·don’t·want·to
8 incur·the·overhead·of·the·validity·check,·there·is·an·unsafe·version·of8 incur·the·overhead·of·the·validity·check,·there·is·an·unsafe·version·of
9 this·function,·<a·href="fn.from_utf8_unchecked.html"·title="fn·alloc::str::from_utf8_unchecked"><code>from_utf8_unchecked</code></a>,·which·has·the·same9 this·function,·<a·href="fn.from_utf8_unchecked.html"·title="fn·alloc::str::from_utf8_unchecked"><code>from_utf8_unchecked</code></a>,·which·has·the·same
10 behavior·but·skips·the·check.</p>10 behavior·but·skips·the·check.</p>
11 <p>If·you·need·a·<code>String</code>·instead·of·a·<code>&amp;str</code>,·consider11 <p>If·you·need·a·<code>String</code>·instead·of·a·<code>&amp;str</code>,·consider
12 <a·href="../../std/string/struct.String.html#method.from_utf8"><code>String::from_utf8</code></a>.</p>12 <a·href="../../std/string/struct.String.html#method.from_utf8"><code>String::from_utf8</code></a>.</p>
13 <p>Because·you·can·stack-allocate·a·<code>[u8;·N]</code>,·and·you·can·take·a13 <p>Because·you·can·stack-allocate·a·<code>[u8;·N]</code>,·and·you·can·take·a
14 <a·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html"·title="primitive·slice"><code>&amp;[u8]</code></a>·of·it,·this·function·is·one·way·to·have·a14 <a·href="../../core/primitive.slice.html"·title="primitive·slice"><code>&amp;[u8]</code></a>·of·it,·this·function·is·one·way·to·have·a
15 stack-allocated·string.·There·is·an·example·of·this·in·the15 stack-allocated·string.·There·is·an·example·of·this·in·the
16 examples·section·below.</p>16 examples·section·below.</p>
17 <h2·id="errors"><a·class="doc-anchor"·href="#errors">§</a>Errors</h2>17 <h2·id="errors"><a·class="doc-anchor"·href="#errors">§</a>Errors</h2>
18 <p>Returns·<code>Err</code>·if·the·slice·is·not·UTF-8·with·a·description·as·to·why·the18 <p>Returns·<code>Err</code>·if·the·slice·is·not·UTF-8·with·a·description·as·to·why·the
19 provided·slice·is·not·UTF-8.</p>19 provided·slice·is·not·UTF-8.</p>
20 <h2·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h2>20 <h2·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h2>
21 <p>Basic·usage:</p>21 <p>Basic·usage:</p>
9.17 KB
./usr/share/doc/rust-doc/html/alloc/str/fn.from_utf8_mut.html
    
Offset 1, 8 lines modifiedOffset 1, 8 lines modified
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="Converts·a·mutable·slice·of·bytes·to·a·mutable·string·slice."><title>from_utf8_mut·in·alloc::str·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·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"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»      2025-01-07)»   (built»     from» a»source»  tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">from_<wbr>utf8_<wbr>mut</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#examples"·title="Examples">Examples</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>str</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">alloc</a>::<wbr><a·href="index.html">str</a></span><h1>Function·<span·class="fn">from_utf8_mut</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0,·const·unstable">1.36.0·(const:·<a·href="https://github.com/rust-lang/rust/issues/91006"·title="Tracking·issue·for·const_str_from_utf8">unstable</a>)</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/str/converts.rs.html#130">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·fn·from_utf8_mut(v:·&amp;mut·[<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.u8.html">u8</a>])·-&g[·...·truncated·by·diffoscope;·len:·204,·SHA:·57fbc7c0a0a2c1405aa1b4f213c548e9b465d4526fdf0b0cc417d2afc1bdebb0·...·]/core/primitive.str.html">str</a>,·<a·class="struct"·href="struct.Utf8Error.html"·title="struct·alloc::str::Utf8Error">Utf8Error</a>&gt;</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Converts·a·mutable·slice·of·bytes·to·a·mutable·string·slice.</p>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="Converts·a·mutable·slice·of·bytes·to·a·mutable·string·slice."><title>from_utf8_mut·in·alloc::str·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·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"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»      2025-01-07)»   (built»     from» a»source»  tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">from_<wbr>utf8_<wbr>mut</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#examples"·title="Examples">Examples</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>str</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">alloc</a>::<wbr><a·href="index.html">str</a></span><h1>Function·<span·class="fn">from_utf8_mut</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0,·const·unstable">1.36.0·(const:·<a·href="https://github.com/rust-lang/rust/issues/91006"·title="Tracking·issue·for·const_str_from_utf8">unstable</a>)</span>···<a·class="src"·href="../../src/core/str/converts.rs.html#130">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·fn·from_utf8_mut(v:·&amp;mut·[<a·class="primitive"·href="../../core/primitive.u8.html">u8</a>])·-&gt;·<a·class="enum"·href="../../core/result/enum.Result[·...·truncated·by·diffoscope;·len:·96,·SHA:·468a940c231d6fc0db8465b00ca468777a35cac5035a21c6d434db922fa9c18a·...·]/core/primitive.str.html">str</a>,·<a·class="struct"·href="struct.Utf8Error.html"·title="struct·alloc::str::Utf8Error">Utf8Error</a>&gt;</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Converts·a·mutable·slice·of·bytes·to·a·mutable·string·slice.</p>
2 <h2·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h2>2 <h2·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h2>
3 <p>Basic·usage:</p>3 <p>Basic·usage:</p>
  
4 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::str;4 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::str;
  
5 <span·class="comment">//·"Hello,·Rust!"·as·a·mutable·vector5 <span·class="comment">//·"Hello,·Rust!"·as·a·mutable·vector
6 </span><span·class="kw">let·</span><span·class="kw-2">mut·</span>hellorust·=·<span·class="macro">vec!</span>[<span·class="number">72</span>,·<span·class="number">101</span>,·<span·class="number">108</span>,·<span·class="number">108</span>,·<span·class="number">111</span>,·<span·class="number">44</span>,·<span·class="number">32</span>,·<span·class="number">82</span>,·<span·class="number">117</span>,·<span·class="number">115</span>,·<span·class="number">116</span>,·<span·class="number">33</span>];6 </span><span·class="kw">let·</span><span·class="kw-2">mut·</span>hellorust·=·<span·class="macro">vec!</span>[<span·class="number">72</span>,·<span·class="number">101</span>,·<span·class="number">108</span>,·<span·class="number">108</span>,·<span·class="number">111</span>,·<span·class="number">44</span>,·<span·class="number">32</span>,·<span·class="number">82</span>,·<span·class="number">117</span>,·<span·class="number">115</span>,·<span·class="number">116</span>,·<span·class="number">33</span>];
8.41 KB
./usr/share/doc/rust-doc/html/alloc/str/fn.from_utf8_unchecked.html
    
Offset 1, 8 lines modifiedOffset 1, 8 lines modified
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="Converts·a·slice·of·bytes·to·a·string·slice·without·checking·that·the·string·contains·valid·UTF-8."><title>from_utf8_unchecked·in·alloc::str·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·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"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»2025-01-07)»     (built»       from»   a»  source»    tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">from_<wbr>utf8_<wbr>unchecked</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#safety"·title="Safety">Safety</a></li><li><a·href="#examples"·title="Examples">Examples</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>str</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">alloc</a>::<wbr><a·href="index.html">str</a></span><h1>Function·<span·class="fn">from_utf8_unchecked</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0,·const·since·1.55.0">1.36.0·(const:·1.55.0)</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/str/converts.rs.html#171">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·const·unsafe·fn·from_utf8_unchecked(v:·&amp;[<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.u8.htm[·...·truncated·by·diffoscope;·len:·82,·SHA:·d2e1b3eb1c721969221b374c3ce43dd42eef69a3a1a6051c990d4f37031872eb·...·]/core/primitive.str.html">str</a></code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Converts·a·slice·of·bytes·to·a·string·slice·without·checking1 <!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="Converts·a·slice·of·bytes·to·a·string·slice·without·checking·that·the·string·contains·valid·UTF-8."><title>from_utf8_unchecked·in·alloc::str·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·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"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»2025-01-07)»     (built»       from»   a»  source»    tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">from_<wbr>utf8_<wbr>unchecked</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#safety"·title="Safety">Safety</a></li><li><a·href="#examples"·title="Examples">Examples</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>str</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">alloc</a>::<wbr><a·href="index.html">str</a></span><h1>Function·<span·class="fn">from_utf8_unchecked</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0,·const·since·1.55.0">1.36.0·(const:·1.55.0)</span>···<a·class="src"·href="../../src/core/str/converts.rs.html#171">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·const·unsafe·fn·from_utf8_unchecked(v:·&amp;[<a·class="primitive"·href="../../core/primitive.u8.html">u8</a>])·-&gt;·&amp;<a·class="primitive"·href="../.[·...·truncated·by·diffoscope;·len:·1,·SHA:·cdb4ee2aea69cc6a83331bbe96dc2caa9a299d21329efb0336fc02a82e1839a8·...·]/core/primitive.str.html">str</a></code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Converts·a·slice·of·bytes·to·a·string·slice·without·checking
2 that·the·string·contains·valid·UTF-8.</p>2 that·the·string·contains·valid·UTF-8.</p>
3 <p>See·the·safe·version,·<a·href="fn.from_utf8.html"·title="fn·alloc::str::from_utf8"><code>from_utf8</code></a>,·for·more·information.</p>3 <p>See·the·safe·version,·<a·href="fn.from_utf8.html"·title="fn·alloc::str::from_utf8"><code>from_utf8</code></a>,·for·more·information.</p>
4 <h2·id="safety"><a·class="doc-anchor"·href="#safety">§</a>Safety</h2>4 <h2·id="safety"><a·class="doc-anchor"·href="#safety">§</a>Safety</h2>
5 <p>The·bytes·passed·in·must·be·valid·UTF-8.</p>5 <p>The·bytes·passed·in·must·be·valid·UTF-8.</p>
6 <h2·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h2>6 <h2·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h2>
7 <p>Basic·usage:</p>7 <p>Basic·usage:</p>
  
8.45 KB
./usr/share/doc/rust-doc/html/alloc/str/fn.from_utf8_unchecked_mut.html
    
Offset 1, 8 lines modifiedOffset 1, 8 lines modified
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="Converts·a·slice·of·bytes·to·a·string·slice·without·checking·that·the·string·contains·valid·UTF-8;·mutable·version."><title>from_utf8_unchecked_mut·in·alloc::str·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·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"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»     2025-01-07)»  (built»    from»a»       source» tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">from_<wbr>utf8_<wbr>unchecked_<wbr>mut</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#examples"·title="Examples">Examples</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>str</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">alloc</a>::<wbr><a·href="index.html">str</a></span><h1>Function·<span·class="fn">from_utf8_unchecked_mut</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0,·const·since·1.83.0">1.36.0·(const:·1.83.0)</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/str/converts.rs.html#199">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·const·unsafe·fn·from_utf8_unchecked_mut(v:·&amp;mut·[<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitiv[·...·truncated·by·diffoscope;·len:·94,·SHA:·93604eb3cfc846f941052395bf121c01b194830180635383e09f81b9a0083d22·...·]/core/primitive.str.html">str</a></code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Converts·a·slice·of·bytes·to·a·string·slice·without·checking1 <!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="Converts·a·slice·of·bytes·to·a·string·slice·without·checking·that·the·string·contains·valid·UTF-8;·mutable·version."><title>from_utf8_unchecked_mut·in·alloc::str·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·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"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»     2025-01-07)»  (built»    from»a»       source» tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">from_<wbr>utf8_<wbr>unchecked_<wbr>mut</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#examples"·title="Examples">Examples</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>str</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">alloc</a>::<wbr><a·href="index.html">str</a></span><h1>Function·<span·class="fn">from_utf8_unchecked_mut</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0,·const·since·1.83.0">1.36.0·(const:·1.83.0)</span>···<a·class="src"·href="../../src/core/str/converts.rs.html#199">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·const·unsafe·fn·from_utf8_unchecked_mut(v:·&amp;mut·[<a·class="primitive"·href="../../core/primitive.u8.html">u8</a>])·-&gt;·&amp;mut·<a·class="primitive[·...·truncated·by·diffoscope;·len:·13,·SHA:·4c623a41901d1363245e53ae89ca408849a4b4ef7b9d06b1c1afed5923b2cf49·...·]/core/primitive.str.html">str</a></code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Converts·a·slice·of·bytes·to·a·string·slice·without·checking
2 that·the·string·contains·valid·UTF-8;·mutable·version.</p>2 that·the·string·contains·valid·UTF-8;·mutable·version.</p>
3 <p>See·the·immutable·version,·<a·href="fn.from_utf8_unchecked.html"·title="fn·alloc::str::from_utf8_unchecked"><code>from_utf8_unchecked()</code></a>·for·more·information.</p>3 <p>See·the·immutable·version,·<a·href="fn.from_utf8_unchecked.html"·title="fn·alloc::str::from_utf8_unchecked"><code>from_utf8_unchecked()</code></a>·for·more·information.</p>
4 <h2·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h2>4 <h2·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h2>
5 <p>Basic·usage:</p>5 <p>Basic·usage:</p>
  
6 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::str;6 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::str;
  
23.6 KB
./usr/share/doc/rust-doc/html/alloc/str/index.html
    
Offset 1, 13 lines modifiedOffset 1, 13 lines modified
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="Utilities·for·the·`str`·primitive·type."><title>alloc::str·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="../sidebar-items1.84.0.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"><!--[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><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312» 2025-01-07)»      (built»from»    a»   source»     tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Module·str</a></h2><h3><a·href="#modules">Module·Items</a></h3><ul·class="block"><li><a·href="#modules"·title="Modules">Modules</a></li><li><a·href="#structs"·title="Structs">Structs</a></li><li><a·href="#traits"·title="Traits">Traits</a></li><li><a·href="#functions"·title="Functions">Functions</a></li></ul></section><div·id="rustdoc-modnav"><h2·class="in-crate"><a·href="../index.html">In·crate·alloc</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">alloc</a></span><h1>Module·<span>str</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../src/alloc/str.rs.html#1-716">Source</a>·</span></div><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Utilities·for·the·<code>str</code>·primitive·type.</p>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="Utilities·for·the·`str`·primitive·type."><title>alloc::str·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="../sidebar-items1.84.0.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"><!--[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><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312» 2025-01-07)»      (built»from»    a»   source»     tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Module·str</a></h2><h3><a·href="#modules">Module·Items</a></h3><ul·class="block"><li><a·href="#modules"·title="Modules">Modules</a></li><li><a·href="#structs"·title="Structs">Structs</a></li><li><a·href="#traits"·title="Traits">Traits</a></li><li><a·href="#functions"·title="Functions">Functions</a></li></ul></section><div·id="rustdoc-modnav"><h2·class="in-crate"><a·href="../index.html">In·crate·alloc</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">alloc</a></span><h1>Module·<span>str</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../src/alloc/str.rs.html#1-716">Source</a>·</span></div><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Utilities·for·the·<code>str</code>·primitive·type.</p>
2 <p><em><a·href="https://doc.rust-lang.org/1.84.0/core/primitive.str.html"·title="primitive·str">See·also·the·<code>str</code>·primitive·type</a>.</em></p>2 <p><em><a·href="../../core/primitive.str.html"·title="primitive·str">See·also·the·<code>str</code>·primitive·type</a>.</em></p>
3 </div></details><h2·id="modules"·class="section-header">Modules<a·href="#modules"·class="anchor">§</a></h2><ul·class="item-table"><li><div·class="item-name"><a·class="mod"·href="pattern/index.html"·title="mod·alloc::str::pattern">pattern</a><wbr><span·class="stab·unstable"·title="">Experimental</span></div><div·class="desc·docblock-short">The·string·Pattern·API.</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.Bytes.html"·title="struct·alloc::str::Bytes">Bytes</a></div><div·class="desc·docblock-short">An·iterator·over·the·bytes·of·a·string·slice.</div></li><li><div·class="item-name"><a·class="struct"·href="struct.CharIndices.html"·title="struct·alloc::str::CharIndices">Char<wbr>Indices</a></div><div·class="desc·docblock-short">An·iterator·over·the·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.char.html"·title="primitive·char"><code>char</code></a>s·of·a·string·slice,·and·their·positions.</div></li><li><div·class="item-name"><a·class="struct"·href="struct.Chars.html"·title="struct·alloc::str::Chars[·...·truncated·by·diffoscope;·len:·5321,·SHA:·84f2b807b571805d48713cae506120e48806f1351fe510cf79295739adc1312a·...·]/core/primitive.str.html#method.split"·title="method·str::split"><code>split</code></a>.</div></li><li><div·class="item-name"><a·class="struct"·href="struct.SplitAsciiWhitespace.html"·title="struct·alloc::str::SplitAsciiWhitespace">Split<wbr>Ascii<wbr>Whitespace</a></div><div·class="desc·docblock-short">An·iterator·over·the·non-ASCII-whitespace·substrings·of·a·string,3 </div></details><h2·id="modules"·class="section-header">Modules<a·href="#modules"·class="anchor">§</a></h2><ul·class="item-table"><li><div·class="item-name"><a·class="mod"·href="pattern/index.html"·title="mod·alloc::str::pattern">pattern</a><wbr><span·class="stab·unstable"·title="">Experimental</span></div><div·class="desc·docblock-short">The·string·Pattern·API.</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.Bytes.html"·title="struct·alloc::str::Bytes">Bytes</a></div><div·class="desc·docblock-short">An·iterator·over·the·bytes·of·a·string·slice.</div></li><li><div·class="item-name"><a·class="struct"·href="struct.CharIndices.html"·title="struct·alloc::str::CharIndices">Char<wbr>Indices</a></div><div·class="desc·docblock-short">An·iterator·over·the·<a·href="../../core/primitive.char.html"·title="primitive·char"><code>char</code></a>s·of·a·string·slice,·and·their·positions.</div></li><li><div·class="item-name"><a·class="struct"·href="struct.Chars.html"·title="struct·alloc::str::Chars">Chars</a></div><div·class[·...·truncated·by·diffoscope;·len:·4916,·SHA:·4e6a552e7ca45da1dffd64a86699e691fa9a5922fe2222356d7478d1c00e96e3·...·]/core/primitive.str.html#method.split"·title="method·str::split"><code>split</code></a>.</div></li><li><div·class="item-name"><a·class="struct"·href="struct.SplitAsciiWhitespace.html"·title="struct·alloc::str::SplitAsciiWhitespace">Split<wbr>Ascii<wbr>Whitespace</a></div><div·class="desc·docblock-short">An·iterator·over·the·non-ASCII-whitespace·substrings·of·a·string,
4 separated·by·any·amount·of·ASCII·whitespace.</div></li><li><div·class="item-name"><a·class="struct"·href="struct.SplitInclusive.html"·title="struct·alloc::str::SplitInclusive">Split<wbr>Inclusive</a></div><div·class="desc·docblock-short">An·iterator·over·the·substrings·of·a·string,4 separated·by·any·amount·of·ASCII·whitespace.</div></li><li><div·class="item-name"><a·class="struct"·href="struct.SplitInclusive.html"·title="struct·alloc::str::SplitInclusive">Split<wbr>Inclusive</a></div><div·class="desc·docblock-short">An·iterator·over·the·substrings·of·a·string,
5 terminated·by·a·substring·matching·to·a·predicate·function5 terminated·by·a·substring·matching·to·a·predicate·function
6 Unlike·<code>Split</code>,·it·contains·the·matched·part·as·a·terminator6 Unlike·<code>Split</code>,·it·contains·the·matched·part·as·a·terminator
7 of·the·subslice.</div></li><li><div·class="item-name"><a·class="struct"·href="struct.SplitN.html"·title="struct·alloc::str::SplitN">SplitN</a></div><div·class="desc·docblock-short">Created·with·the·method·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.str.html#method.splitn"·title="method·str::splitn"><code>splitn</code></a>.</div></li><li><div·class="item-name"><a·class="struct"·href="struct.SplitTerminator.html"·title="struct·alloc::str::SplitTerminator"[·...·truncated·by·diffoscope;·len:·129,·SHA:·84bed9564382b128f7350e87a3f226199313be7a41e9cbdefbbb2ecd1dc8ab57·...·]/core/primitive.str.html#method.split_terminator"·title="method·str::split_terminator"><code>split_terminator</code></a>.</div></li><li><div·class="item-name"><a·class="struct"·href="struct.SplitWhitespace.html"·title="struct·alloc::str::SplitWhitespace">Split<wbr>Whitespace</a></div><div·class="desc·docblock-short">An·iterator·over·the·non-whitespace·substrings·of·a·string,7 of·the·subslice.</div></li><li><div·class="item-name"><a·class="struct"·href="struct.SplitN.html"·title="struct·alloc::str::SplitN">SplitN</a></div><div·class="desc·docblock-short">Created·with·the·method·<a·href="../../core/primitive.str.html#method.splitn"·title="method·str::splitn"><code>splitn</code></a>.</div></li><li><div·class="item-name"><a·class="struct"·href="struct.SplitTerminator.html"·title="struct·alloc::str::SplitTerminator">Split<wbr>Terminator</a></[·...·truncated·by·diffoscope;·len:·75,·SHA:·e12aa46ad68dff028bcedd0d01439666cd204e1de532c17c2fbb58ff51766e4c·...·]/core/primitive.str.html#method.split_terminator"·title="method·str::split_terminator"><code>split_terminator</code></a>.</div></li><li><div·class="item-name"><a·class="struct"·href="struct.SplitWhitespace.html"·title="struct·alloc::str::SplitWhitespace">Split<wbr>Whitespace</a></div><div·class="desc·docblock-short">An·iterator·over·the·non-whitespace·substrings·of·a·string,
8 separated·by·any·amount·of·whitespace.</div></li><li><div·class="item-name"><a·class="struct"·href="struct.Utf8Chunk.html"·title="struct·alloc::str::Utf8Chunk">Utf8<wbr>Chunk</a></div><div·class="desc·docblock-short">An·item·returned·by·the·<a·href="struct.Utf8Chunks.html"·title="struct·alloc::str::Utf8Chunks"><code>Utf8Chunks</code></a>·iterator.</div></li><li><div·class="item-name"><a·class="struct"·href="struct.Utf8Chunks.html"·title="struct·alloc::str::Utf8Chunks">Utf8<wbr>Chunks</a></div><div·class="desc·docblock-short">An·iterator·used·to·decode·a·slice·of·mostly·UTF-8·bytes·to·string·slices8 separated·by·any·amount·of·whitespace.</div></li><li><div·class="item-name"><a·class="struct"·href="struct.Utf8Chunk.html"·title="struct·alloc::str::Utf8Chunk">Utf8<wbr>Chunk</a></div><div·class="desc·docblock-short">An·item·returned·by·the·<a·href="struct.Utf8Chunks.html"·title="struct·alloc::str::Utf8Chunks"><code>Utf8Chunks</code></a>·iterator.</div></li><li><div·class="item-name"><a·class="struct"·href="struct.Utf8Chunks.html"·title="struct·alloc::str::Utf8Chunks">Utf8<wbr>Chunks</a></div><div·class="desc·docblock-short">An·iterator·used·to·decode·a·slice·of·mostly·UTF-8·bytes·to·string·slices
9 (<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.str.html"·title="primitive·str"><code>&amp;str</code></a>)·and·byte·slices·(<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html"·title="primitive·slice"><code>&amp;[u8]</code></a>).</div></li>[·...·truncated·by·diffoscope;·len:·275,·SHA:·2d451ac577d9ffda471020965424582875e9477a6705b58c06f2442a8b733ea2·...·]/core/primitive.u8.html"·title="primitive·u8"><code>u8</code></a>9 (<a·href="../../core/primitive.str.html"·title="primitive·str"><code>&amp;str</code></a>)·and·byte·slices·(<a·href="../../core/primitive.slice.html"·title="primitive·slice"><code>&amp;[u8]</code></a>).</div></li><li><div·class="item-name"><a·class="struct"·href="str[·...·truncated·by·diffoscope;·len:·194,·SHA:·822031598b1be4040122de61fabe12a21d750c44da4f41598dfb1507e6a294aa·...·]/core/primitive.u8.html"·title="primitive·u8"><code>u8</code></a>
10 as·a·string.</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.FromStr.html"·title="trait·alloc::str::FromStr">FromStr</a></div><div·class="desc·docblock-short">Parse·a·value·from·a·string</div></li></ul><h2·id="functions"·class="section-header">Functions<a·href="#functions"·class="anchor">§</a></h2><ul·class="item-table"><li><div·class="item-name"><a·class="fn"·href="fn.from_boxed_utf8_unchecked.html"·title="fn·alloc::str::from_boxed_utf8_unchecked">from_<wbr>boxed_<wbr>utf8_<wbr>unchecked</a><sup·title="unsafe·function">⚠</sup></div><div·class="desc·docblock-short">Converts·a·boxed·slice·of·bytes·to·a·boxed·string·slice·without·checking10 as·a·string.</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.FromStr.html"·title="trait·alloc::str::FromStr">FromStr</a></div><div·class="desc·docblock-short">Parse·a·value·from·a·string</div></li></ul><h2·id="functions"·class="section-header">Functions<a·href="#functions"·class="anchor">§</a></h2><ul·class="item-table"><li><div·class="item-name"><a·class="fn"·href="fn.from_boxed_utf8_unchecked.html"·title="fn·alloc::str::from_boxed_utf8_unchecked">from_<wbr>boxed_<wbr>utf8_<wbr>unchecked</a><sup·title="unsafe·function">⚠</sup></div><div·class="desc·docblock-short">Converts·a·boxed·slice·of·bytes·to·a·boxed·string·slice·without·checking
11 that·the·string·contains·valid·UTF-8.</div></li><li><div·class="item-name"><a·class="fn"·href="fn.from_utf8.html"·title="fn·alloc::str::from_utf8">from_<wbr>utf8</a></div><div·class="desc·docblock-short">Converts·a·slice·of·bytes·to·a·string·slice.</div></li><li><div·class="item-name"><a·class="fn"·href="fn.from_utf8_mut.html"·title="fn·alloc::str::from_utf8_mut">from_<wbr>utf8_<wbr>mut</a></div><div·class="desc·docblock-short">Converts·a·mutable·slice·of·bytes·to·a·mutable·string·slice.</div></li><li><div·class="item-name"><a·class="fn"·href="fn.from_utf8_unchecked.html"·title="fn·alloc::str::from_utf8_unchecked">from_<wbr>utf8_<wbr>unchecked</a><sup·title="unsafe·function">⚠</sup></div><div·class="desc·docblock-short">Converts·a·slice·of·bytes·to·a·string·slice·without·checking11 that·the·string·contains·valid·UTF-8.</div></li><li><div·class="item-name"><a·class="fn"·href="fn.from_utf8.html"·title="fn·alloc::str::from_utf8">from_<wbr>utf8</a></div><div·class="desc·docblock-short">Converts·a·slice·of·bytes·to·a·string·slice.</div></li><li><div·class="item-name"><a·class="fn"·href="fn.from_utf8_mut.html"·title="fn·alloc::str::from_utf8_mut">from_<wbr>utf8_<wbr>mut</a></div><div·class="desc·docblock-short">Converts·a·mutable·slice·of·bytes·to·a·mutable·string·slice.</div></li><li><div·class="item-name"><a·class="fn"·href="fn.from_utf8_unchecked.html"·title="fn·alloc::str::from_utf8_unchecked">from_<wbr>utf8_<wbr>unchecked</a><sup·title="unsafe·function">⚠</sup></div><div·class="desc·docblock-short">Converts·a·slice·of·bytes·to·a·string·slice·without·checking
12 that·the·string·contains·valid·UTF-8.</div></li><li><div·class="item-name"><a·class="fn"·href="fn.from_utf8_unchecked_mut.html"·title="fn·alloc::str::from_utf8_unchecked_mut">from_<wbr>utf8_<wbr>unchecked_<wbr>mut</a><sup·title="unsafe·function">⚠</sup></div><div·class="desc·docblock-short">Converts·a·slice·of·bytes·to·a·string·slice·without·checking12 that·the·string·contains·valid·UTF-8.</div></li><li><div·class="item-name"><a·class="fn"·href="fn.from_utf8_unchecked_mut.html"·title="fn·alloc::str::from_utf8_unchecked_mut">from_<wbr>utf8_<wbr>unchecked_<wbr>mut</a><sup·title="unsafe·function">⚠</sup></div><div·class="desc·docblock-short">Converts·a·slice·of·bytes·to·a·string·slice·without·checking
13 that·the·string·contains·valid·UTF-8;·mutable·version.</div></li><li><div·class="item-name"><a·class="fn"·href="fn.from_raw_parts.html"·title="fn·alloc::str::from_raw_parts">from_<wbr>raw_<wbr>parts</a><sup·title="unsafe·function">⚠</sup><wbr><span·class="stab·unstable"·title="">Experimental</span></div><div·class="desc·docblock-short">Creates·a·<code>&amp;str</code>·from·a·pointer·and·a·length.</div></li><li><div·class="item-name"><a·class="fn"·href="fn.from_raw_parts_mut.html"·title="fn·alloc::str::from_raw_parts_mut">from_<wbr>raw_<wbr>parts_<wbr>mut</a><sup·title="unsafe·function">⚠</sup><wbr><span·class="stab·unstable"·title="">Experimental</span></div><div·class="desc·docblock-short">Creates·a·<code>&amp;mut·str</code>·from·a·pointer·and·a·length.</div></li></ul></section></div></main></body></html>13 that·the·string·contains·valid·UTF-8;·mutable·version.</div></li><li><div·class="item-name"><a·class="fn"·href="fn.from_raw_parts.html"·title="fn·alloc::str::from_raw_parts">from_<wbr>raw_<wbr>parts</a><sup·title="unsafe·function">⚠</sup><wbr><span·class="stab·unstable"·title="">Experimental</span></div><div·class="desc·docblock-short">Creates·a·<code>&amp;str</code>·from·a·pointer·and·a·length.</div></li><li><div·class="item-name"><a·class="fn"·href="fn.from_raw_parts_mut.html"·title="fn·alloc::str::from_raw_parts_mut">from_<wbr>raw_<wbr>parts_<wbr>mut</a><sup·title="unsafe·function">⚠</sup><wbr><span·class="stab·unstable"·title="">Experimental</span></div><div·class="desc·docblock-short">Creates·a·<code>&amp;mut·str</code>·from·a·pointer·and·a·length.</div></li></ul></section></div></main></body></html>
64.5 KB
./usr/share/doc/rust-doc/html/alloc/str/pattern/enum.SearchStep.html
    
Offset 1, 27 lines modifiedOffset 1, 27 lines modified
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="Result·of·calling·`Searcher::next()`·or·`ReverseSearcher::next_back()`."><title>SearchStep·in·alloc::str::pattern·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·enum"><!--[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><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312» 2025-01-07)»      (built»from»    a»   source»     tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Search<wbr>Step</a></h2><h3><a·href="#variants">Variants</a></h3><ul·class="block·variant"><li><a·href="#variant.Done"·title="Done">Done</a></li><li><a·href="#variant.Match"·title="Match">Match</a></li><li><a·href="#variant.Reject"·title="Reject">Reject</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-SearchStep"·title="Clone">Clone</a></li><li><a·href="#impl-Copy-for-SearchStep"·title="Copy">Copy</a></li><li><a·href="#impl-Debug-for-SearchStep"·title="Debug">Debug</a></li><li><a·href="#impl-Eq-for-SearchStep"·title="Eq">Eq</a></li><li><a·href="#impl-PartialEq-for-SearchStep"·title="PartialEq">PartialEq</a></li><li><a·href="#impl-StructuralPartialEq-for-SearchStep"·title="StructuralPartialEq">StructuralPartialEq</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-SearchStep"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-SearchStep"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-SearchStep"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-SearchStep"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-SearchStep"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-SearchStep"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>str::<wbr>pattern</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">alloc</a>::<wbr><a·href="../index.html">str</a>::<wbr><a·href="index.html">pattern</a></span><h1>Enum·<span·class="enum">SearchStep</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="https://doc.rust-lang.org/1.84.0/src/core/str/pattern.rs.html#184">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·enum·SearchStep·{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="Result·of·calling·`Searcher::next()`·or·`ReverseSearcher::next_back()`."><title>SearchStep·in·alloc::str::pattern·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·enum"><!--[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><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312» 2025-01-07)»      (built»from»    a»   source»     tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Search<wbr>Step</a></h2><h3><a·href="#variants">Variants</a></h3><ul·class="block·variant"><li><a·href="#variant.Done"·title="Done">Done</a></li><li><a·href="#variant.Match"·title="Match">Match</a></li><li><a·href="#variant.Reject"·title="Reject">Reject</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-SearchStep"·title="Clone">Clone</a></li><li><a·href="#impl-Copy-for-SearchStep"·title="Copy">Copy</a></li><li><a·href="#impl-Debug-for-SearchStep"·title="Debug">Debug</a></li><li><a·href="#impl-Eq-for-SearchStep"·title="Eq">Eq</a></li><li><a·href="#impl-PartialEq-for-SearchStep"·title="PartialEq">PartialEq</a></li><li><a·href="#impl-StructuralPartialEq-for-SearchStep"·title="StructuralPartialEq">StructuralPartialEq</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-SearchStep"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-SearchStep"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-SearchStep"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-SearchStep"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-SearchStep"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-SearchStep"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>str::<wbr>pattern</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">alloc</a>::<wbr><a·href="../index.html">str</a>::<wbr><a·href="index.html">pattern</a></span><h1>Enum·<span·class="enum">SearchStep</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/core/str/pattern.rs.html#184">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·enum·SearchStep·{
2 ····Match(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.usize.html">usize</a>,·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.usize.html">usize</a>),2 ····Match(<a·class="primitive"·href="../../../core/primitive.usize.html">usize</a>,·<a·class="primitive"·href="../../../core/primitive.usize.html">usize</a>),
3 ····Reject(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.usize.html">usize</a>,·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.usize.html">usize</a>),3 ····Reject(<a·class="primitive"·href="../../../core/primitive.usize.html">usize</a>,·<a·class="primitive"·href="../../../core/primitive.usize.html">usize</a>),
4 ····Done,4 ····Done,
5 }</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Result·of·calling·<a·href="trait.Searcher.html#tymethod.next"·title="method·alloc::str::pattern::Searcher::next"><code>Searcher::next()</code></a>·or·<a·href="trait.ReverseSearcher.html#tymethod.next_back"·title="method·alloc::str::pattern::ReverseSearcher::next_back"><code>ReverseSearcher::next_back()</code></a>.</p>5 }</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Result·of·calling·<a·href="trait.Searcher.html#tymethod.next"·title="method·alloc::str::pattern::Searcher::next"><code>Searcher::next()</code></a>·or·<a·href="trait.ReverseSearcher.html#tymethod.next_back"·title="method·alloc::str::pattern::ReverseSearcher::next_back"><code>ReverseSearcher::next_back()</code></a>.</p>
6 </div></details><h2·id="variants"·class="variants·section-header">Variants<a·href="#variants"·class="anchor">§</a></h2><div·class="variants"><section·id="variant.Match"·class="variant"><a·href="#variant.Match"·class="anchor">§</a><h3·class="code-header">Match(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.usize.html">usize</a>,·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.usize.html">usize</a>)</h3></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span><div·class="docblock"><p>Expresses·that·a·match·of·the·pattern·has·been·found·at6 </div></details><h2·id="variants"·class="variants·section-header">Variants<a·href="#variants"·class="anchor">§</a></h2><div·class="variants"><section·id="variant.Match"·class="variant"><a·href="#variant.Match"·class="anchor">§</a><h3·class="code-header">Match(<a·class="primitive"·href="../../../core/primitive.usize.html">usize</a>,·<a·class="primitive"·href="../../../core/primitive.usize.html">usize</a>)</h3></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span><div·class="docblock"><p>Expresses·that·a·match·of·the·pattern·has·been·found·at
7 <code>haystack[a..b]</code>.</p>7 <code>haystack[a..b]</code>.</p>
8 </div><section·id="variant.Reject"·class="variant"><a·href="#variant.Reject"·class="anchor">§</a><h3·class="code-header">Reject(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.usize.html">usize</a>,·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.usize.html">usize</a>)</h3></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span><div·class="docblock"><p>Expresses·that·<code>haystack[a..b]</code>·has·been·rejected·as·a·possible·match8 </div><section·id="variant.Reject"·class="variant"><a·href="#variant.Reject"·class="anchor">§</a><h3·class="code-header">Reject(<a·class="primitive"·href="../../../core/primitive.usize.html">usize</a>,·<a·class="primitive"·href="../../../core/primitive.usize.html">usize</a>)</h3></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span><div·class="docblock"><p>Expresses·that·<code>haystack[a..b]</code>·has·been·rejected·as·a·possible·match
9 of·the·pattern.</p>9 of·the·pattern.</p>
10 <p>Note·that·there·might·be·more·than·one·<code>Reject</code>·between·two·<code>Match</code>es,10 <p>Note·that·there·might·be·more·than·one·<code>Reject</code>·between·two·<code>Match</code>es,
11 there·is·no·requirement·for·them·to·be·combined·into·one.</p>11 there·is·no·requirement·for·them·to·be·combined·into·one.</p>
12 </div><section·id="variant.Done"·class="variant"><a·href="#variant.Done"·class="anchor">§</a><h3·class="code-header">Done</h3></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span><div·class="docblock"><p>Expresses·that·every·byte·of·the·haystack·has·been·visited,·ending12 </div><section·id="variant.Done"·class="variant"><a·href="#variant.Done"·class="anchor">§</a><h3·class="code-header">Done</h3></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span><div·class="docblock"><p>Expresses·that·every·byte·of·the·haystack·has·been·visited,·ending
13 the·iteration.</p>13 the·iteration.</p>
14 </div></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-SearchStep"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/str/pattern.rs.html#183">Source</a><a·href="#impl-Clone-for-SearchStep"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="t[·...·truncated·by·diffoscope;·len:·5255,·SHA:·dfa78647862dbbf158eac78b771b47b890aa708bca39f23a055324012e8020dd·...·]/core/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>!=</code>.·The·default·implementation·is·almost·always·sufficient,14 </div></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-SearchStep"·class="impl"><a·class="src·rightside"·href="../../../src/core/str/pattern.rs.html#183">Source</a><a·href="#impl-Clone-for-SearchStep"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class=[·...·truncated·by·diffoscope;·len:·4751,·SHA:·d57f5cd0d2eba4298cfd3b4c990f18f94e098de3f8493c590888580cc834016f·...·]/core/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>!=</code>.·The·default·implementation·is·almost·always·sufficient,
15 and·should·not·be·overridden·without·very·good·reason.</div></details></div></details><section·id="impl-Copy-for-SearchStep"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/str/pattern.rs.html#183">Source</a><a·href="#impl-Copy-for-SearchStep"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Copy.html"·title="tr[·...·truncated·by·diffoscope;·len:·4365,·SHA:·ecdad1fa88f8eecb8cbcc4ea7b0e0cb791e4b627f130e00256bd05ced46bc409·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where15 and·should·not·be·overridden·without·very·good·reason.</div></details></div></details><section·id="impl-Copy-for-SearchStep"·class="impl"><a·class="src·rightside"·href="../../../src/core/str/pattern.rs.html#183">Source</a><a·href="#impl-Copy-for-SearchStep"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../../core/marker/trait.Copy.html"·title="trait·core::marker::Copy">Copy</a>·for·<a·class="e[·...·truncated·by·diffoscope;·len:·4029,·SHA:·1e6b2d979fc37b291f627620eda1c61525930c440c4d9ef89cd1b05cb0477b2c·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where
16 ····T:·'static·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method[·...·truncated·by·diffoscope;·len:·834,·SHA:·47dfc2aa0101a4103e2a94c1f971c559790d87a62d58631fd2bfed98e6616a34·...·]/src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where16 ····T:·'static·+·?<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="s[·...·truncated·by·diffoscope;·len:·690,·SHA:·5140301cd9ff79a41eb9c4e21645354b7b39f4611f9b3646b7c859a62ac61067·...·]/src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where
17 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·[·...·truncated·by·diffoscope;·len:·743,·SHA:·b1db3ba49d399b0b1340fa997418ee1ae0ece93cc3579963c53bf7040ec0ded6·...·]/src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.BorrowMut.html"·title="trait·alloc::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where17 ····T:·?<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="sr[·...·truncated·by·diffoscope;·len:·647,·SHA:·eced384f314b303c18919389c5abe4a96aec1091fccffab1a095e21ec4389338·...·]/src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.BorrowMut.html"·title="trait·alloc::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where
18 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="met[·...·truncated·by·diffoscope;·len:·960,·SHA:·c6354ea8fcf3b570a130235df299ddea9063b0fb7e35c91d7c9308744705dcad·...·]/core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where18 ····T:·?<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class[·...·truncated·by·diffoscope;·len:·840,·SHA:·65730076d1351b96bbc7870dcc45245c8046decde9b269779ff691512c7b6cda·...·]/core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where
19 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="[·...·truncated·by·diffoscope;·len:·1883,·SHA:·e07301fb9e28f950d7450480a6b68014ffcdcc3be12b1adda27936cb1244377e·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>19 ····T:·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·cl[·...·truncated·by·diffoscope;·len:·1643,·SHA:·1eae2ed9452ffcbbe8b3cb569c26d9b61c935793fb647d6b79fd502b505ae03b·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>
20 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where20 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where
21 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="m[·...·truncated·by·diffoscope;·len:·237,·SHA:·98603c35860102b3af9b5cf27aeabf39e3c03236551986a6ec030817f108d919·...·]/core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>21 ····U:·<a·class="trait"·href="../../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·cla[·...·truncated·by·diffoscope;·len:·165,·SHA:·423a04a226f49c7f9a948f8c413dc8519f4a9a96a55914b6e6a694710d81c0f7·...·]/core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>
22 <p>That·is,·this·conversion·is·whatever·the·implementation·of22 <p>That·is,·this·conversion·is·whatever·the·implementation·of
23 <code><a·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>23 <code><a·href="../../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>
24 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/borrow.rs.html#82-94">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where24 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/borrow.rs.html#82-94">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where
25 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·t[·...·truncated·by·diffoscope;·len:·2003,·SHA:·ecb61562e7a62580c9ad7b3f8856e4e317eddb7fa8d5eb388664331cf5eb31c0·...·]/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where25 ····T:·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src[·...·truncated·by·diffoscope;·len:·1907,·SHA:·a3ba85d2ecc25713cf37fd24854d68ee7f0f59359c2678ed0204a7cdb8c27a28·...·]/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where
26 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="asso[·...·truncated·by·diffoscope;·len:·1973,·SHA:·db4b8407e8e20581ad139aef25a6221a11da0f5f18d6aa35aa33eb843f4e1b9f·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where26 ····U:·<a·class="trait"·href="../../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><[·...·truncated·by·diffoscope;·len:·1709,·SHA:·e896b9bb1c9fd7d11ed5b2485b9a6fcb8a8eedc15783c2750df398ecae6b320e·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where
27 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·clas[·...·truncated·by·diffoscope;·len:·1578,·SHA:·998d5af10fd889567cd999d1306bfd16c91134d2238a3c172f1e7fa8ed138c18·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>27 ····U:·<a·class="trait"·href="../../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-[·...·truncated·by·diffoscope;·len:·1338,·SHA:·bf7fc0d673df53e1a193a897ac1592a2d85070ae590f9624c2e5404df56f3bb0·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>
64.6 KB
./usr/share/doc/rust-doc/html/alloc/str/pattern/enum.Utf8Pattern.html
    
Offset 1, 22 lines modifiedOffset 1, 22 lines modified
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="Result·of·calling·`Pattern::as_utf8_pattern()`.·Can·be·used·for·inspecting·the·contents·of·a·`Pattern`·in·cases·where·the·underlying·representation·can·be·represented·as·UTF-8."><title>Utf8Pattern·in·alloc::str::pattern·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·enum"><!--[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><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»  2025-01-07)»       (built» from»     a»    source»      tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Utf8<wbr>Pattern</a></h2><h3><a·href="#variants">Variants</a></h3><ul·class="block·variant"><li><a·href="#variant.CharPattern"·title="CharPattern">CharPattern</a></li><li><a·href="#variant.StringPattern"·title="StringPattern">StringPattern</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-Utf8Pattern%3C'a%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Copy-for-Utf8Pattern%3C'a%3E"·title="Copy">Copy</a></li><li><a·href="#impl-Debug-for-Utf8Pattern%3C'a%3E"·title="Debug">Debug</a></li><li><a·href="#impl-Eq-for-Utf8Pattern%3C'a%3E"·title="Eq">Eq</a></li><li><a·href="#impl-PartialEq-for-Utf8Pattern%3C'a%3E"·title="PartialEq">PartialEq</a></li><li><a·href="#impl-StructuralPartialEq-for-Utf8Pattern%3C'a%3E"·title="StructuralPartialEq">StructuralPartialEq</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-Utf8Pattern%3C'a%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Utf8Pattern%3C'a%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Utf8Pattern%3C'a%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-Utf8Pattern%3C'a%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-Utf8Pattern%3C'a%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Utf8Pattern%3C'a%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>str::<wbr>pattern</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">alloc</a>::<wbr><a·href="../index.html">str</a>::<wbr><a·href="index.html">pattern</a></span><h1>Enum·<span·class="enum">Utf8Pattern</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="https://doc.rust-lang.org/1.84.0/src/core/str/pattern.rs.html#173">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·enum·Utf8Pattern&lt;'a&gt;·{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="Result·of·calling·`Pattern::as_utf8_pattern()`.·Can·be·used·for·inspecting·the·contents·of·a·`Pattern`·in·cases·where·the·underlying·representation·can·be·represented·as·UTF-8."><title>Utf8Pattern·in·alloc::str::pattern·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·enum"><!--[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><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»  2025-01-07)»       (built» from»     a»    source»      tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Utf8<wbr>Pattern</a></h2><h3><a·href="#variants">Variants</a></h3><ul·class="block·variant"><li><a·href="#variant.CharPattern"·title="CharPattern">CharPattern</a></li><li><a·href="#variant.StringPattern"·title="StringPattern">StringPattern</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-Utf8Pattern%3C'a%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Copy-for-Utf8Pattern%3C'a%3E"·title="Copy">Copy</a></li><li><a·href="#impl-Debug-for-Utf8Pattern%3C'a%3E"·title="Debug">Debug</a></li><li><a·href="#impl-Eq-for-Utf8Pattern%3C'a%3E"·title="Eq">Eq</a></li><li><a·href="#impl-PartialEq-for-Utf8Pattern%3C'a%3E"·title="PartialEq">PartialEq</a></li><li><a·href="#impl-StructuralPartialEq-for-Utf8Pattern%3C'a%3E"·title="StructuralPartialEq">StructuralPartialEq</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-Utf8Pattern%3C'a%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Utf8Pattern%3C'a%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Utf8Pattern%3C'a%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-Utf8Pattern%3C'a%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-Utf8Pattern%3C'a%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Utf8Pattern%3C'a%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>str::<wbr>pattern</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">alloc</a>::<wbr><a·href="../index.html">str</a>::<wbr><a·href="index.html">pattern</a></span><h1>Enum·<span·class="enum">Utf8Pattern</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/core/str/pattern.rs.html#173">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·enum·Utf8Pattern&lt;'a&gt;·{
2 ····StringPattern(&amp;'a·[<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.u8.html">u8</a>]),2 ····StringPattern(&amp;'a·[<a·class="primitive"·href="../../../core/primitive.u8.html">u8</a>]),
3 ····CharPattern(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.char.html">char</a>),3 ····CharPattern(<a·class="primitive"·href="../../../core/primitive.char.html">char</a>),
4 }</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Result·of·calling·<a·href="trait.Pattern.html#method.as_utf8_pattern"·title="method·alloc::str::pattern::Pattern::as_utf8_pattern"><code>Pattern::as_utf8_pattern()</code></a>.4 }</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Result·of·calling·<a·href="trait.Pattern.html#method.as_utf8_pattern"·title="method·alloc::str::pattern::Pattern::as_utf8_pattern"><code>Pattern::as_utf8_pattern()</code></a>.
5 Can·be·used·for·inspecting·the·contents·of·a·<a·href="trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern"><code>Pattern</code></a>·in·cases5 Can·be·used·for·inspecting·the·contents·of·a·<a·href="trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern"><code>Pattern</code></a>·in·cases
6 where·the·underlying·representation·can·be·represented·as·UTF-8.</p>6 where·the·underlying·representation·can·be·represented·as·UTF-8.</p>
7 </div></details><h2·id="variants"·class="variants·section-header">Variants<a·href="#variants"·class="anchor">§</a></h2><div·class="variants"><section·id="variant.StringPattern"·class="variant"><a·href="#variant.StringPattern"·class="anchor">§</a><h3·class="code-header">StringPattern(&amp;'a·[<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.u8.html">u8</a>])</h3></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span><div·class="docblock"><p>Type·returned·by·String·and·str·types.</p>7 </div></details><h2·id="variants"·class="variants·section-header">Variants<a·href="#variants"·class="anchor">§</a></h2><div·class="variants"><section·id="variant.StringPattern"·class="variant"><a·href="#variant.StringPattern"·class="anchor">§</a><h3·class="code-header">StringPattern(&amp;'a·[<a·class="primitive"·href="../../../core/primitive.u8.html">u8</a>])</h3></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span><div·class="docblock"><p>Type·returned·by·String·and·str·types.</p>
8 </div><section·id="variant.CharPattern"·class="variant"><a·href="#variant.CharPattern"·class="anchor">§</a><h3·class="code-header">CharPattern(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.char.html">char</a>)</h3></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span><div·class="docblock"><p>Type·returned·by·char·types.</p>8 </div><section·id="variant.CharPattern"·class="variant"><a·href="#variant.CharPattern"·class="anchor">§</a><h3·class="code-header">CharPattern(<a·class="primitive"·href="../../../core/primitive.char.html">char</a>)</h3></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span><div·class="docblock"><p>Type·returned·by·char·types.</p>
9 </div></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-Utf8Pattern%3C'a%3E"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/str/pattern.rs.html#172">Source</a><a·href="#impl-Clone-for-Utf8Pattern%3C'a%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.C[·...·truncated·by·diffoscope;·len:·5395,·SHA:·c3ce859fef02198ea1e0de90fec93816b5e4cd3c1e2a502ee65d923af655432c·...·]/core/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>!=</code>.·The·default·implementation·is·almost·always·sufficient,9 </div></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-Utf8Pattern%3C'a%3E"·class="impl"><a·class="src·rightside"·href="../../../src/core/str/pattern.rs.html#172">Source</a><a·href="#impl-Clone-for-Utf8Pattern%3C'a%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a&gt;·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clon[·...·truncated·by·diffoscope;·len:·4891,·SHA:·595f94423a4142626703ad03d9a109396cdc54c6d5f9e203fb7957e84f454fd8·...·]/core/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>!=</code>.·The·default·implementation·is·almost·always·sufficient,
10 and·should·not·be·overridden·without·very·good·reason.</div></details></div></details><section·id="impl-Copy-for-Utf8Pattern%3C'a%3E"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/str/pattern.rs.html#172">Source</a><a·href="#impl-Copy-for-Utf8Pattern%3C'a%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.C[·...·truncated·by·diffoscope;·len:·4725,·SHA:·a805ca3ec42e09ddb5366302bff33df038dc1f2a0b172c8f400b3bb852ee9438·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where10 and·should·not·be·overridden·without·very·good·reason.</div></details></div></details><section·id="impl-Copy-for-Utf8Pattern%3C'a%3E"·class="impl"><a·class="src·rightside"·href="../../../src/core/str/pattern.rs.html#172">Source</a><a·href="#impl-Copy-for-Utf8Pattern%3C'a%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a&gt;·<a·class="trait"·href="../../../core/marker/trait.Copy.html"·title="trait·core::marker::Copy">Copy<[·...·truncated·by·diffoscope;·len:·4389,·SHA:·0441abbbc5d31ef5a44d8e61a2d1ec0eeb613e1ac90f76680c0f1a6e29cea5fc·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where
11 ····T:·'static·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method[·...·truncated·by·diffoscope;·len:·834,·SHA:·47dfc2aa0101a4103e2a94c1f971c559790d87a62d58631fd2bfed98e6616a34·...·]/src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where11 ····T:·'static·+·?<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="s[·...·truncated·by·diffoscope;·len:·690,·SHA:·5140301cd9ff79a41eb9c4e21645354b7b39f4611f9b3646b7c859a62ac61067·...·]/src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where
12 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·[·...·truncated·by·diffoscope;·len:·743,·SHA:·b1db3ba49d399b0b1340fa997418ee1ae0ece93cc3579963c53bf7040ec0ded6·...·]/src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.BorrowMut.html"·title="trait·alloc::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where12 ····T:·?<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="sr[·...·truncated·by·diffoscope;·len:·647,·SHA:·eced384f314b303c18919389c5abe4a96aec1091fccffab1a095e21ec4389338·...·]/src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.BorrowMut.html"·title="trait·alloc::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where
13 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="met[·...·truncated·by·diffoscope;·len:·960,·SHA:·c6354ea8fcf3b570a130235df299ddea9063b0fb7e35c91d7c9308744705dcad·...·]/core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where13 ····T:·?<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class[·...·truncated·by·diffoscope;·len:·840,·SHA:·65730076d1351b96bbc7870dcc45245c8046decde9b269779ff691512c7b6cda·...·]/core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where
14 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="[·...·truncated·by·diffoscope;·len:·1883,·SHA:·e07301fb9e28f950d7450480a6b68014ffcdcc3be12b1adda27936cb1244377e·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>14 ····T:·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·cl[·...·truncated·by·diffoscope;·len:·1643,·SHA:·1eae2ed9452ffcbbe8b3cb569c26d9b61c935793fb647d6b79fd502b505ae03b·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>
15 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where15 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where
16 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="m[·...·truncated·by·diffoscope;·len:·237,·SHA:·98603c35860102b3af9b5cf27aeabf39e3c03236551986a6ec030817f108d919·...·]/core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>16 ····U:·<a·class="trait"·href="../../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·cla[·...·truncated·by·diffoscope;·len:·165,·SHA:·423a04a226f49c7f9a948f8c413dc8519f4a9a96a55914b6e6a694710d81c0f7·...·]/core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>
17 <p>That·is,·this·conversion·is·whatever·the·implementation·of17 <p>That·is,·this·conversion·is·whatever·the·implementation·of
18 <code><a·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>18 <code><a·href="../../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>
19 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/borrow.rs.html#82-94">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where19 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/borrow.rs.html#82-94">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where
20 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·t[·...·truncated·by·diffoscope;·len:·2003,·SHA:·ecb61562e7a62580c9ad7b3f8856e4e317eddb7fa8d5eb388664331cf5eb31c0·...·]/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where20 ····T:·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src[·...·truncated·by·diffoscope;·len:·1907,·SHA:·a3ba85d2ecc25713cf37fd24854d68ee7f0f59359c2678ed0204a7cdb8c27a28·...·]/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where
21 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="asso[·...·truncated·by·diffoscope;·len:·1973,·SHA:·db4b8407e8e20581ad139aef25a6221a11da0f5f18d6aa35aa33eb843f4e1b9f·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where21 ····U:·<a·class="trait"·href="../../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><[·...·truncated·by·diffoscope;·len:·1709,·SHA:·e896b9bb1c9fd7d11ed5b2485b9a6fcb8a8eedc15783c2750df398ecae6b320e·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where
22 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·clas[·...·truncated·by·diffoscope;·len:·1578,·SHA:·998d5af10fd889567cd999d1306bfd16c91134d2238a3c172f1e7fa8ed138c18·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>22 ····U:·<a·class="trait"·href="../../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-[·...·truncated·by·diffoscope;·len:·1338,·SHA:·bf7fc0d673df53e1a193a897ac1592a2d85070ae590f9624c2e5404df56f3bb0·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>
17.6 KB
./usr/share/doc/rust-doc/html/alloc/str/pattern/index.html
    
Offset 1, 17 lines modifiedOffset 1, 17 lines modified
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="The·string·Pattern·API."><title>alloc::str::pattern·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../../static.files/storage-59e33391.js"></script><script·defer·src="../sidebar-items1.84.0.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"><!--[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><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312» 2025-01-07)»      (built»from»    a»   source»     tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Module·pattern</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#examples"·title="Examples">Examples</a></li></ul><h3><a·href="#structs">Module·Items</a></h3><ul·class="block"><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"><h2><a·href="../index.html">In·alloc::<wbr>str</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">alloc</a>::<wbr><a·href="../index.html">str</a></span><h1>Module·<span>pattern</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="https://doc.rust-lang.org/1.84.0/src/core/str/mod.rs.html#22">Source</a>·</span></div><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>The·string·Pattern·API.</p>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="The·string·Pattern·API."><title>alloc::str::pattern·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../../static.files/storage-59e33391.js"></script><script·defer·src="../sidebar-items1.84.0.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"><!--[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><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312» 2025-01-07)»      (built»from»    a»   source»     tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Module·pattern</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#examples"·title="Examples">Examples</a></li></ul><h3><a·href="#structs">Module·Items</a></h3><ul·class="block"><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"><h2><a·href="../index.html">In·alloc::<wbr>str</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">alloc</a>::<wbr><a·href="../index.html">str</a></span><h1>Module·<span>pattern</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/core/str/mod.rs.html#22">Source</a>·</span></div><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>The·string·Pattern·API.</p>
2 <p>The·Pattern·API·provides·a·generic·mechanism·for·using·different·pattern2 <p>The·Pattern·API·provides·a·generic·mechanism·for·using·different·pattern
3 types·when·searching·through·a·string.</p>3 types·when·searching·through·a·string.</p>
4 <p>For·more·details,·see·the·traits·<a·href="trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern"><code>Pattern</code></a>,·<a·href="trait.Searcher.html"·title="trait·alloc::str::pattern::Searcher"><code>Searcher</code></a>,4 <p>For·more·details,·see·the·traits·<a·href="trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern"><code>Pattern</code></a>,·<a·href="trait.Searcher.html"·title="trait·alloc::str::pattern::Searcher"><code>Searcher</code></a>,
5 <a·href="trait.ReverseSearcher.html"·title="trait·alloc::str::pattern::ReverseSearcher"><code>ReverseSearcher</code></a>,·and·<a·href="trait.DoubleEndedSearcher.html"·title="trait·alloc::str::pattern::DoubleEndedSearcher"><code>DoubleEndedSearcher</code></a>.</p>5 <a·href="trait.ReverseSearcher.html"·title="trait·alloc::str::pattern::ReverseSearcher"><code>ReverseSearcher</code></a>,·and·<a·href="trait.DoubleEndedSearcher.html"·title="trait·alloc::str::pattern::DoubleEndedSearcher"><code>DoubleEndedSearcher</code></a>.</p>
6 <p>Although·this·API·is·unstable,·it·is·exposed·via·stable·APIs·on·the6 <p>Although·this·API·is·unstable,·it·is·exposed·via·stable·APIs·on·the
7 <a·href="https://doc.rust-lang.org/1.84.0/core/primitive.str.html"·title="primitive·str"><code>str</code></a>·type.</p>7 <a·href="../../../core/primitive.str.html"·title="primitive·str"><code>str</code></a>·type.</p>
8 <h2·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h2>8 <h2·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h2>
9 <p><a·href="trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern"><code>Pattern</code></a>·is·<a·href="trait.Pattern.html#implementors"·title="trait·alloc::str::pattern::Pattern">implemented</a>·in·the·stable·API·for9 <p><a·href="trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern"><code>Pattern</code></a>·is·<a·href="trait.Pattern.html#implementors"·title="trait·alloc::str::pattern::Pattern">implemented</a>·in·the·stable·API·for
10 <a·href="https://doc.rust-lang.org/1.84.0/core/primitive.str.html"·title="primitive·str"><code>&amp;str</code></a>,·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.char.html"·title="primitive·char"><code>char</code></a>,·slices·of·<a·href="https://doc.rust[·...·truncated·by·diffoscope;·len:·16,·SHA:·b6410d5f9b70e2f15d4fcf955309cc89520b8c9f6df22834a985b670a393db91·...·]/core/primitive.char.html"·title="primitive·char"><code>char</code></a>,·and·functions·and·closures10 <a·href="../../../core/primitive.str.html"·title="primitive·str"><code>&amp;str</code></a>,·<a·href="../../../core/primitive.char.html"·title="primitive·char"><code>char</code></a>,·slices·of·<a·href="../../../core/primitive.char.html"·title="primitive·char"><code>char</code></a>,·and·functions·and·closures
11 implementing·<code>FnMut(char)·-&gt;·bool</code>.</p>11 implementing·<code>FnMut(char)·-&gt;·bool</code>.</p>
  
12 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span>s·=·<span·class="string">"Can·you·find·a·needle·in·a·haystack?"</span>;12 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span>s·=·<span·class="string">"Can·you·find·a·needle·in·a·haystack?"</span>;
  
13 <span·class="comment">//·&amp;str·pattern13 <span·class="comment">//·&amp;str·pattern
14 </span><span·class="macro">assert_eq!</span>(s.find(<span·class="string">"you"</span>),·<span·class="prelude-val">Some</span>(<span·class="number">4</span>));14 </span><span·class="macro">assert_eq!</span>(s.find(<span·class="string">"you"</span>),·<span·class="prelude-val">Some</span>(<span·class="number">4</span>));
15 <span·class="comment">//·char·pattern15 <span·class="comment">//·char·pattern
Offset 21, 8 lines modifiedOffset 21, 8 lines modified
21 <span·class="comment">//·slice·of·chars·pattern21 <span·class="comment">//·slice·of·chars·pattern
22 </span><span·class="macro">assert_eq!</span>(s.find(<span·class="kw-2">&amp;</span>[<span·class="string">'a'</span>,·<span·class="string">'e'</span>,·<span·class="string">'i'</span>,·<span·class="string">'o'</span>,·<span·class="string">'u'</span>][..]),·<span·class="prelude-val">Some</span>(<span·class="number">1</span>));22 </span><span·class="macro">assert_eq!</span>(s.find(<span·class="kw-2">&amp;</span>[<span·class="string">'a'</span>,·<span·class="string">'e'</span>,·<span·class="string">'i'</span>,·<span·class="string">'o'</span>,·<span·class="string">'u'</span>][..]),·<span·class="prelude-val">Some</span>(<span·class="number">1</span>));
23 <span·class="comment">//·closure·pattern23 <span·class="comment">//·closure·pattern
24 </span><span·class="macro">assert_eq!</span>(s.find(|c:·char|·c.is_ascii_punctuation()),·<span·class="prelude-val">Some</span>(<span·class="number">35</span>));</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++let+s+=+%22Can+you+find+a+needle+in+a+haystack?%22;%0A++++%0A++++//+%26str+pattern%0A++++assert_eq!(s.find(%22you%22),+Some(4));%0A++++//+char+pattern%0A++++assert_eq!(s.find('n'),+Some(2));%0A++++//+array+of+chars+pattern%0A++++assert_eq!(s.find(%26%5B'a',+'e',+'i',+'o',+'u'%5D),+Some(1));%0A++++//+slice+of+chars+pattern%0A++++assert_eq!(s.find(%26%5B'a',+'e',+'i',+'o',+'u'%5D%5B..%5D),+Some(1));%0A++++//+closure+pattern%0A++++assert_eq!(s.find(%7Cc:+char%7C+c.is_ascii_punctuation()),+Some(35));%0A%7D&amp;edition=2021"></a></div>24 </span><span·class="macro">assert_eq!</span>(s.find(|c:·char|·c.is_ascii_punctuation()),·<span·class="prelude-val">Some</span>(<span·class="number">35</span>));</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++let+s+=+%22Can+you+find+a+needle+in+a+haystack?%22;%0A++++%0A++++//+%26str+pattern%0A++++assert_eq!(s.find(%22you%22),+Some(4));%0A++++//+char+pattern%0A++++assert_eq!(s.find('n'),+Some(2));%0A++++//+array+of+chars+pattern%0A++++assert_eq!(s.find(%26%5B'a',+'e',+'i',+'o',+'u'%5D),+Some(1));%0A++++//+slice+of+chars+pattern%0A++++assert_eq!(s.find(%26%5B'a',+'e',+'i',+'o',+'u'%5D%5B..%5D),+Some(1));%0A++++//+closure+pattern%0A++++assert_eq!(s.find(%7Cc:+char%7C+c.is_ascii_punctuation()),+Some(35));%0A%7D&amp;edition=2021"></a></div>
25 </div></details><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.CharArrayRefSearcher.html"·title="struct·alloc::str::pattern::CharArrayRefSearcher">Char<wbr>Array<wbr>RefSearcher</a><wbr><span·class="stab·unstable"·title="">Experimental</span></div><div·class="desc·docblock-short">Associated·type·for·<code>&lt;&amp;[char;·N]·as·Pattern&gt;::Searcher&lt;'a&gt;</code>.</div></li><li><div·class="item-name"><a·class="struct"·href="struct.CharArraySearcher.html"·title="struct·alloc::str::pattern::CharArraySearcher">Char<wbr>Array<wbr>Searcher</a><wbr><span·class="stab·unstable"·title="">Experimental</span></div><div·class="desc·docblock-short">Associated·type·for·<code>&lt;[char;·N]·as·Pattern&gt;::Searcher&lt;'a&gt;</code>.</div></li><li><div·class="item-name"><a·class="struct"·href="struct.CharPredicateSearcher.html"·title="struct·alloc::str::pattern::CharPredicateSearcher">Char<wbr>Predicate<wbr>Searcher</a><wbr><span·class="stab·unstable"·title="">Experimental</span></div><div·class="desc·docblock-short">Associated·type·for·<code>&lt;F·as·Pattern&gt;::Searcher&lt;'a&gt;</code>.</div></li><li><div·class="item-name"><a·class="struct"·href="struct.CharSearcher.html"·title="struct·alloc::str::pattern::CharSearcher">Char<wbr>Searcher</a><wbr><span·class="stab·unstable"·title="">Experimental</span></div><div·class="desc·docblock-short">Associated·type·for·<code>&lt;char·as·Pattern&gt;::Searcher&lt;'a&gt;</code>.</div></li><li><div·class="item-name"><a·class="struct"·href="struct.CharSliceSearcher.html"·title="struct·alloc::str::pattern::CharSliceSearcher">Char<wbr>Slice<wbr>Searcher</a><wbr><span·class="stab·unstable"·title="">Experimental</span></div><div·class="desc·docblock-short">Associated·type·for·<code>&lt;&amp;[char]·as·Pattern&gt;::Searcher&lt;'a&gt;</code>.</div></li><li><div·class="item-name"><a·class="struct"·href="struct.StrSearcher.html"·title="struct·alloc::str::pattern::StrSearcher">StrSearcher</a><wbr><span·class="stab·unstable"·title="">Experimental</span></div><div·class="desc·docblock-short">Associated·type·for·<code>&lt;&amp;str·as·Pattern&gt;::Searcher&lt;'a&gt;</code>.</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.SearchStep.html"·title="enum·alloc::str::pattern::SearchStep">Search<wbr>Step</a><wbr><span·class="stab·unstable"·title="">Experimental</span></div><div·class="desc·docblock-short">Result·of·calling·<a·href="trait.Searcher.html#tymethod.next"·title="method·alloc::str::pattern::Searcher::next"><code>Searcher::next()</code></a>·or·<a·href="trait.ReverseSearcher.html#tymethod.next_back"·title="method·alloc::str::pattern::ReverseSearcher::next_back"><code>ReverseSearcher::next_back()</code></a>.</div></li><li><div·class="item-name"><a·class="enum"·href="enum.Utf8Pattern.html"·title="enum·alloc::str::pattern::Utf8Pattern">Utf8<wbr>Pattern</a><wbr><span·class="stab·unstable"·title="">Experimental</span></div><div·class="desc·docblock-short">Result·of·calling·<a·href="trait.Pattern.html#method.as_utf8_pattern"·title="method·alloc::str::pattern::Pattern::as_utf8_pattern"><code>Pattern::as_utf8_pattern()</code></a>.25 </div></details><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.CharArrayRefSearcher.html"·title="struct·alloc::str::pattern::CharArrayRefSearcher">Char<wbr>Array<wbr>RefSearcher</a><wbr><span·class="stab·unstable"·title="">Experimental</span></div><div·class="desc·docblock-short">Associated·type·for·<code>&lt;&amp;[char;·N]·as·Pattern&gt;::Searcher&lt;'a&gt;</code>.</div></li><li><div·class="item-name"><a·class="struct"·href="struct.CharArraySearcher.html"·title="struct·alloc::str::pattern::CharArraySearcher">Char<wbr>Array<wbr>Searcher</a><wbr><span·class="stab·unstable"·title="">Experimental</span></div><div·class="desc·docblock-short">Associated·type·for·<code>&lt;[char;·N]·as·Pattern&gt;::Searcher&lt;'a&gt;</code>.</div></li><li><div·class="item-name"><a·class="struct"·href="struct.CharPredicateSearcher.html"·title="struct·alloc::str::pattern::CharPredicateSearcher">Char<wbr>Predicate<wbr>Searcher</a><wbr><span·class="stab·unstable"·title="">Experimental</span></div><div·class="desc·docblock-short">Associated·type·for·<code>&lt;F·as·Pattern&gt;::Searcher&lt;'a&gt;</code>.</div></li><li><div·class="item-name"><a·class="struct"·href="struct.CharSearcher.html"·title="struct·alloc::str::pattern::CharSearcher">Char<wbr>Searcher</a><wbr><span·class="stab·unstable"·title="">Experimental</span></div><div·class="desc·docblock-short">Associated·type·for·<code>&lt;char·as·Pattern&gt;::Searcher&lt;'a&gt;</code>.</div></li><li><div·class="item-name"><a·class="struct"·href="struct.CharSliceSearcher.html"·title="struct·alloc::str::pattern::CharSliceSearcher">Char<wbr>Slice<wbr>Searcher</a><wbr><span·class="stab·unstable"·title="">Experimental</span></div><div·class="desc·docblock-short">Associated·type·for·<code>&lt;&amp;[char]·as·Pattern&gt;::Searcher&lt;'a&gt;</code>.</div></li><li><div·class="item-name"><a·class="struct"·href="struct.StrSearcher.html"·title="struct·alloc::str::pattern::StrSearcher">StrSearcher</a><wbr><span·class="stab·unstable"·title="">Experimental</span></div><div·class="desc·docblock-short">Associated·type·for·<code>&lt;&amp;str·as·Pattern&gt;::Searcher&lt;'a&gt;</code>.</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.SearchStep.html"·title="enum·alloc::str::pattern::SearchStep">Search<wbr>Step</a><wbr><span·class="stab·unstable"·title="">Experimental</span></div><div·class="desc·docblock-short">Result·of·calling·<a·href="trait.Searcher.html#tymethod.next"·title="method·alloc::str::pattern::Searcher::next"><code>Searcher::next()</code></a>·or·<a·href="trait.ReverseSearcher.html#tymethod.next_back"·title="method·alloc::str::pattern::ReverseSearcher::next_back"><code>ReverseSearcher::next_back()</code></a>.</div></li><li><div·class="item-name"><a·class="enum"·href="enum.Utf8Pattern.html"·title="enum·alloc::str::pattern::Utf8Pattern">Utf8<wbr>Pattern</a><wbr><span·class="stab·unstable"·title="">Experimental</span></div><div·class="desc·docblock-short">Result·of·calling·<a·href="trait.Pattern.html#method.as_utf8_pattern"·title="method·alloc::str::pattern::Pattern::as_utf8_pattern"><code>Pattern::as_utf8_pattern()</code></a>.
26 Can·be·used·for·inspecting·the·contents·of·a·<a·href="trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern"><code>Pattern</code></a>·in·cases26 Can·be·used·for·inspecting·the·contents·of·a·<a·href="trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern"><code>Pattern</code></a>·in·cases
27 where·the·underlying·representation·can·be·represented·as·UTF-8.</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.DoubleEndedSearcher.html"·title="trait·alloc::str::pattern::DoubleEndedSearcher">Double<wbr>Ended<wbr>Searcher</a><wbr><span·class="stab·unstable"·title="">Experimental</span></div><div·class="desc·docblock-short">A·marker·trait·to·express·that·a·<a·href="trait.ReverseSearcher.html"·title="trait·alloc::str::pattern::ReverseSearcher"><code>ReverseSearcher</code></a>27 where·the·underlying·representation·can·be·represented·as·UTF-8.</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.DoubleEndedSearcher.html"·title="trait·alloc::str::pattern::DoubleEndedSearcher">Double<wbr>Ended<wbr>Searcher</a><wbr><span·class="stab·unstable"·title="">Experimental</span></div><div·class="desc·docblock-short">A·marker·trait·to·express·that·a·<a·href="trait.ReverseSearcher.html"·title="trait·alloc::str::pattern::ReverseSearcher"><code>ReverseSearcher</code></a>
28 can·be·used·for·a·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator"><code>DoubleEndedIterator</code></a>·implementation.</div></li><li><div·class="item-name"><a·class="trait"·href="trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a><wbr><span·class="stab·unstable"·title="">Experimental</span></div><div·class="desc·docblock-short">A·string·pattern.</div></li><li><div·class="item-name"><a·class="trait"·href="trait.ReverseSearcher.html"·title="trait·alloc::str::pattern::ReverseSearcher">Reverse<wbr>Searcher</a><wbr><span·class="stab·unstable"·title="">Experimental</span></div><div·class="desc·docblock-short">A·reverse·searcher·for·a·string·pattern.</div></li><li><div·class="item-name"><a·class="trait"·href="trait.Searcher.html"·title="trait·alloc::str::pattern::Searcher">Searcher</a><wbr><span·class="stab·unstable"·title="">Experimental</span></div><div·class="desc·docblock-short">A·searcher·for·a·string·pattern.</div></li></ul></section></div></main></body></html>28 can·be·used·for·a·<a·href="../../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator"><code>DoubleEndedIterator</code></a>·implementation.</div></li><li><div·class="item-name"><a·class="trait"·href="trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a><wbr><span·class="stab·unstable"·title="">Experimental</span></div><div·class="desc·docblock-short">A·string·pattern.</div></li><li><div·class="item-name"><a·class="trait"·href="trait.ReverseSearcher.html"·title="trait·alloc::str::pattern::ReverseSearcher">Reverse<wbr>Searcher</a><wbr><span·class="stab·unstable"·title="">Experimental</span></div><div·class="desc·docblock-short">A·reverse·searcher·for·a·string·pattern.</div></li><li><div·class="item-name"><a·class="trait"·href="trait.Searcher.html"·title="trait·alloc::str::pattern::Searcher">Searcher</a><wbr><span·class="stab·unstable"·title="">Experimental</span></div><div·class="desc·docblock-short">A·searcher·for·a·string·pattern.</div></li></ul></section></div></main></body></html>
77.9 KB
./usr/share/doc/rust-doc/html/alloc/str/pattern/struct.CharArrayRefSearcher.html
    
Offset 1, 17 lines modifiedOffset 1, 17 lines modified
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="Associated·type·for·`&#60;&#38;[char;·N]·as·Pattern&#62;::Searcher&#60;&#39;a&#62;`."><title>CharArrayRefSearcher·in·alloc::str::pattern·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312» 2025-01-07)»      (built»from»    a»   source»     tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Char<wbr>Array<wbr>RefSearcher</a></h2><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-CharArrayRefSearcher%3C'a,+'b,+N%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-CharArrayRefSearcher%3C'a,+'b,+N%3E"·title="Debug">Debug</a></li><li><a·href="#impl-DoubleEndedSearcher%3C'a%3E-for-CharArrayRefSearcher%3C'a,+'b,+N%3E"·title="DoubleEndedSearcher&#60;&#39;a&#62;">DoubleEndedSearcher&#60;&#39;a&#62;</a></li><li><a·href="#impl-ReverseSearcher%3C'a%3E-for-CharArrayRefSearcher%3C'a,+'b,+N%3E"·title="ReverseSearcher&#60;&#39;a&#62;">ReverseSearcher&#60;&#39;a&#62;</a></li><li><a·href="#impl-Searcher%3C'a%3E-for-CharArrayRefSearcher%3C'a,+'b,+N%3E"·title="Searcher&#60;&#39;a&#62;">Searcher&#60;&#39;a&#62;</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-CharArrayRefSearcher%3C'a,+'b,+N%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-CharArrayRefSearcher%3C'a,+'b,+N%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-CharArrayRefSearcher%3C'a,+'b,+N%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-CharArrayRefSearcher%3C'a,+'b,+N%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-CharArrayRefSearcher%3C'a,+'b,+N%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-CharArrayRefSearcher%3C'a,+'b,+N%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>str::<wbr>pattern</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">alloc</a>::<wbr><a·href="../index.html">str</a>::<wbr><a·href="index.html">pattern</a></span><h1>Struct·<span·class="struct">CharArrayRefSearcher</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="https://doc.rust-lang.org/1.84.0/src/core/str/pattern.rs.html#816">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·CharArrayRefSearcher&lt;'a,·'b,·const·N:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.usize.html">usize</a>&gt;(<span·class="comment">/*·private·fields·*/</span>);</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Associated·type·for·<code>&lt;&amp;[char;·N]·as·Pattern&gt;::Searcher&lt;'a&gt;</code>.</p>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="Associated·type·for·`&#60;&#38;[char;·N]·as·Pattern&#62;::Searcher&#60;&#39;a&#62;`."><title>CharArrayRefSearcher·in·alloc::str::pattern·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312» 2025-01-07)»      (built»from»    a»   source»     tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Char<wbr>Array<wbr>RefSearcher</a></h2><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-CharArrayRefSearcher%3C'a,+'b,+N%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-CharArrayRefSearcher%3C'a,+'b,+N%3E"·title="Debug">Debug</a></li><li><a·href="#impl-DoubleEndedSearcher%3C'a%3E-for-CharArrayRefSearcher%3C'a,+'b,+N%3E"·title="DoubleEndedSearcher&#60;&#39;a&#62;">DoubleEndedSearcher&#60;&#39;a&#62;</a></li><li><a·href="#impl-ReverseSearcher%3C'a%3E-for-CharArrayRefSearcher%3C'a,+'b,+N%3E"·title="ReverseSearcher&#60;&#39;a&#62;">ReverseSearcher&#60;&#39;a&#62;</a></li><li><a·href="#impl-Searcher%3C'a%3E-for-CharArrayRefSearcher%3C'a,+'b,+N%3E"·title="Searcher&#60;&#39;a&#62;">Searcher&#60;&#39;a&#62;</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-CharArrayRefSearcher%3C'a,+'b,+N%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-CharArrayRefSearcher%3C'a,+'b,+N%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-CharArrayRefSearcher%3C'a,+'b,+N%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-CharArrayRefSearcher%3C'a,+'b,+N%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-CharArrayRefSearcher%3C'a,+'b,+N%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-CharArrayRefSearcher%3C'a,+'b,+N%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>str::<wbr>pattern</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">alloc</a>::<wbr><a·href="../index.html">str</a>::<wbr><a·href="index.html">pattern</a></span><h1>Struct·<span·class="struct">CharArrayRefSearcher</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/core/str/pattern.rs.html#816">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·CharArrayRefSearcher&lt;'a,·'b,·const·N:·<a·class="primitive"·href="../../../core/primitive.usize.html">usize</a>&gt;(<span·class="comment">/*·private·fields·*/</span>);</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Associated·type·for·<code>&lt;&amp;[char;·N]·as·Pattern&gt;::Searcher&lt;'a&gt;</code>.</p>
2 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-CharArrayRefSearcher%3C'a,+'b,+N%3E"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/str/pattern.rs.html#815">Source</a><a·href="#impl-Clone-for-CharArrayRefSearcher%3C'a,+'b,+N%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·'b,·const·N:·<a·class="primitive"·href="https://doc.rust-lang[·...·truncated·by·diffoscope;·len:·6181,·SHA:·f0541e7b4a370da4e8fa03dd837fd6765fe60f44f5763e40da7c9c84431d1869·...·]/core/primitive.usize.html">usize</a>)&gt;</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span><div·class='docblock'>Finds·the·next·<a·href="enum.SearchStep.html#variant.Match"·title="variant·alloc::str::pattern::SearchStep::Match"><code>Match</code></a>·result.2 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-CharArrayRefSearcher%3C'a,+'b,+N%3E"·class="impl"><a·class="src·rightside"·href="../../../src/core/str/pattern.rs.html#815">Source</a><a·href="#impl-Clone-for-CharArrayRefSearcher%3C'a,+'b,+N%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·'b,·const·N:·<a·class="primitive"·href="../../../core/primitive.usize.html">usize</a>[·...·truncated·by·diffoscope;·len:·5677,·SHA:·8fbd929ffefc70f18d28d8ad803417aec3439381ee2a5b6c66a9cb1c8cb8d0bb·...·]/core/primitive.usize.html">usize</a>)&gt;</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span><div·class='docblock'>Finds·the·next·<a·href="enum.SearchStep.html#variant.Match"·title="variant·alloc::str::pattern::SearchStep::Match"><code>Match</code></a>·result.
3 See·<a·href="trait.ReverseSearcher.html#tymethod.next_back"·title="method·alloc::str::pattern::ReverseSearcher::next_back"><code>next_back()</code></a>.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.next_reject_back"·class="method·trait-impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/str/pattern.rs.html#859">Source</a><a·href="#method.next_reject_back"·class="anchor">§</a><h4·class="code-header">fn·<a·href="trait.ReverseSearcher.html#method.next_reject_back"·class="fn">next_reject_back</a>(&amp[·...·truncated·by·diffoscope;·len:·308,·SHA:·d77fe21f64f9d2dd4a6e4c177dae427237dfad2133c91eb2cef2b4366b51ff3b·...·]/core/primitive.usize.html">usize</a>)&gt;</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span><div·class='docblock'>Finds·the·next·<a·href="enum.SearchStep.html#variant.Reject"·title="variant·alloc::str::pattern::SearchStep::Reject"><code>Reject</code></a>·result.3 See·<a·href="trait.ReverseSearcher.html#tymethod.next_back"·title="method·alloc::str::pattern::ReverseSearcher::next_back"><code>next_back()</code></a>.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.next_reject_back"·class="method·trait-impl"><a·class="src·rightside"·href="../../../src/core/str/pattern.rs.html#859">Source</a><a·href="#method.next_reject_back"·class="anchor">§</a><h4·class="code-header">fn·<a·href="trait.ReverseSearcher.html#method.next_reject_back"·class="fn">next_reject_back</a>(&amp;mut·self)·-&gt;·<a·clas[·...·truncated·by·diffoscope;·len:·212,·SHA:·733cec62a658dddf3516ef2b08370fb57ba406e95793e29806105ca588e120c5·...·]/core/primitive.usize.html">usize</a>)&gt;</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span><div·class='docblock'>Finds·the·next·<a·href="enum.SearchStep.html#variant.Reject"·title="variant·alloc::str::pattern::SearchStep::Reject"><code>Reject</code></a>·result.
4 See·<a·href="trait.ReverseSearcher.html#tymethod.next_back"·title="method·alloc::str::pattern::ReverseSearcher::next_back"><code>next_back()</code></a>.</div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Searcher%3C'a%3E-for-CharArrayRefSearcher%3C'a,+'b,+N%3E"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/str/pattern.rs.html#854">Source</a><a·href="#impl-Searcher%3C'a%3E-for-CharArrayRefSearcher%3C'a,+'b,+N%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·'b,·const·N:·<a·class="primitive"·href="https://do[·...·truncated·by·diffoscope;·len:·4206,·SHA:·d0b6ec1ca34dd1ae6aad7ed2d2ad0b7cf0365bf5bdca7f8e8016ae4a845dcf6a·...·]/core/primitive.usize.html">usize</a>)&gt;</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span><div·class='docblock'>Finds·the·next·<a·href="enum.SearchStep.html#variant.Reject"·title="variant·alloc::str::pattern::SearchStep::Reject"><code>Reject</code></a>·result.·See·<a·href="trait.Searcher.html#tymethod.next"·title="method·alloc::str::pattern::Searcher::next"><code>next()</code></a>4 See·<a·href="trait.ReverseSearcher.html#tymethod.next_back"·title="method·alloc::str::pattern::ReverseSearcher::next_back"><code>next_back()</code></a>.</div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Searcher%3C'a%3E-for-CharArrayRefSearcher%3C'a,+'b,+N%3E"·class="impl"><a·class="src·rightside"·href="../../../src/core/str/pattern.rs.html#854">Source</a><a·href="#impl-Searcher%3C'a%3E-for-CharArrayRefSearcher%3C'a,+'b,+N%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·'b,·const·N:·<a·class="primitive"·href="../../../core/primitive.usize.html[·...·truncated·by·diffoscope;·len:·3894,·SHA:·b582077cb509bf4b3ccec75b9706e7ee46bd323fa1845a898b24b4b02569d0a6·...·]/core/primitive.usize.html">usize</a>)&gt;</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span><div·class='docblock'>Finds·the·next·<a·href="enum.SearchStep.html#variant.Reject"·title="variant·alloc::str::pattern::SearchStep::Reject"><code>Reject</code></a>·result.·See·<a·href="trait.Searcher.html#tymethod.next"·title="method·alloc::str::pattern::Searcher::next"><code>next()</code></a>
5 and·<a·href="trait.Searcher.html#method.next_match"·title="method·alloc::str::pattern::Searcher::next_match"><code>next_match()</code></a>.·<a·href="trait.Searcher.html#method.next_reject">Read·more</a></div></details></div></details><section·id="impl-DoubleEndedSearcher%3C'a%3E-for-CharArrayRefSearcher%3C'a,+'b,+N%3E"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/str/pattern.rs.html#862">Source</a><a·href="#impl-DoubleEndedSearcher%3C'a%3E-for-CharArrayRefSearcher%3C'a,+'b,+N%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·'b,·const·N:·<a·class="primitive"·href=[·...·truncated·by·diffoscope;·len:·4901,·SHA:·0935664c1e3d56bbd69e367c8197bcafaf100a4cd699bf1ebff2d7685cd38327·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where5 and·<a·href="trait.Searcher.html#method.next_match"·title="method·alloc::str::pattern::Searcher::next_match"><code>next_match()</code></a>.·<a·href="trait.Searcher.html#method.next_reject">Read·more</a></div></details></div></details><section·id="impl-DoubleEndedSearcher%3C'a%3E-for-CharArrayRefSearcher%3C'a,+'b,+N%3E"·class="impl"><a·class="src·rightside"·href="../../../src/core/str/pattern.rs.html#862">Source</a><a·href="#impl-DoubleEndedSearcher%3C'a%3E-for-CharArrayRefSearcher%3C'a,+'b,+N%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·'b,·const·N:·<a·class="primitive"·href="../../../core/primitive[·...·truncated·by·diffoscope;·len:·4517,·SHA:·87345bf670109465a7f94279b2b95c3e8c33307ce4deeb2d9cdb38053a8e9c85·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where
6 ····T:·'static·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method[·...·truncated·by·diffoscope;·len:·834,·SHA:·47dfc2aa0101a4103e2a94c1f971c559790d87a62d58631fd2bfed98e6616a34·...·]/src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where6 ····T:·'static·+·?<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="s[·...·truncated·by·diffoscope;·len:·690,·SHA:·5140301cd9ff79a41eb9c4e21645354b7b39f4611f9b3646b7c859a62ac61067·...·]/src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where
7 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·[·...·truncated·by·diffoscope;·len:·743,·SHA:·b1db3ba49d399b0b1340fa997418ee1ae0ece93cc3579963c53bf7040ec0ded6·...·]/src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.BorrowMut.html"·title="trait·alloc::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where7 ····T:·?<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="sr[·...·truncated·by·diffoscope;·len:·647,·SHA:·eced384f314b303c18919389c5abe4a96aec1091fccffab1a095e21ec4389338·...·]/src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.BorrowMut.html"·title="trait·alloc::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where
8 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="met[·...·truncated·by·diffoscope;·len:·960,·SHA:·c6354ea8fcf3b570a130235df299ddea9063b0fb7e35c91d7c9308744705dcad·...·]/core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where8 ····T:·?<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class[·...·truncated·by·diffoscope;·len:·840,·SHA:·65730076d1351b96bbc7870dcc45245c8046decde9b269779ff691512c7b6cda·...·]/core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where
9 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="[·...·truncated·by·diffoscope;·len:·1883,·SHA:·e07301fb9e28f950d7450480a6b68014ffcdcc3be12b1adda27936cb1244377e·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>9 ····T:·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·cl[·...·truncated·by·diffoscope;·len:·1643,·SHA:·1eae2ed9452ffcbbe8b3cb569c26d9b61c935793fb647d6b79fd502b505ae03b·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>
10 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where10 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where
11 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="m[·...·truncated·by·diffoscope;·len:·237,·SHA:·98603c35860102b3af9b5cf27aeabf39e3c03236551986a6ec030817f108d919·...·]/core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>11 ····U:·<a·class="trait"·href="../../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·cla[·...·truncated·by·diffoscope;·len:·165,·SHA:·423a04a226f49c7f9a948f8c413dc8519f4a9a96a55914b6e6a694710d81c0f7·...·]/core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>
12 <p>That·is,·this·conversion·is·whatever·the·implementation·of12 <p>That·is,·this·conversion·is·whatever·the·implementation·of
13 <code><a·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>13 <code><a·href="../../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>
14 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/borrow.rs.html#82-94">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where14 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/borrow.rs.html#82-94">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where
15 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·t[·...·truncated·by·diffoscope;·len:·2003,·SHA:·ecb61562e7a62580c9ad7b3f8856e4e317eddb7fa8d5eb388664331cf5eb31c0·...·]/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where15 ····T:·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src[·...·truncated·by·diffoscope;·len:·1907,·SHA:·a3ba85d2ecc25713cf37fd24854d68ee7f0f59359c2678ed0204a7cdb8c27a28·...·]/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where
16 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="asso[·...·truncated·by·diffoscope;·len:·1973,·SHA:·db4b8407e8e20581ad139aef25a6221a11da0f5f18d6aa35aa33eb843f4e1b9f·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where16 ····U:·<a·class="trait"·href="../../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><[·...·truncated·by·diffoscope;·len:·1709,·SHA:·e896b9bb1c9fd7d11ed5b2485b9a6fcb8a8eedc15783c2750df398ecae6b320e·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where
17 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·clas[·...·truncated·by·diffoscope;·len:·1578,·SHA:·998d5af10fd889567cd999d1306bfd16c91134d2238a3c172f1e7fa8ed138c18·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>17 ····U:·<a·class="trait"·href="../../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-[·...·truncated·by·diffoscope;·len:·1338,·SHA:·bf7fc0d673df53e1a193a897ac1592a2d85070ae590f9624c2e5404df56f3bb0·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>
77.0 KB
./usr/share/doc/rust-doc/html/alloc/str/pattern/struct.CharArraySearcher.html
    
Offset 1, 17 lines modifiedOffset 1, 17 lines modified
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="Associated·type·for·`&#60;[char;·N]·as·Pattern&#62;::Searcher&#60;&#39;a&#62;`."><title>CharArraySearcher·in·alloc::str::pattern·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312» 2025-01-07)»      (built»from»    a»   source»     tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Char<wbr>Array<wbr>Searcher</a></h2><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-CharArraySearcher%3C'a,+N%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-CharArraySearcher%3C'a,+N%3E"·title="Debug">Debug</a></li><li><a·href="#impl-DoubleEndedSearcher%3C'a%3E-for-CharArraySearcher%3C'a,+N%3E"·title="DoubleEndedSearcher&#60;&#39;a&#62;">DoubleEndedSearcher&#60;&#39;a&#62;</a></li><li><a·href="#impl-ReverseSearcher%3C'a%3E-for-CharArraySearcher%3C'a,+N%3E"·title="ReverseSearcher&#60;&#39;a&#62;">ReverseSearcher&#60;&#39;a&#62;</a></li><li><a·href="#impl-Searcher%3C'a%3E-for-CharArraySearcher%3C'a,+N%3E"·title="Searcher&#60;&#39;a&#62;">Searcher&#60;&#39;a&#62;</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-CharArraySearcher%3C'a,+N%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-CharArraySearcher%3C'a,+N%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-CharArraySearcher%3C'a,+N%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-CharArraySearcher%3C'a,+N%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-CharArraySearcher%3C'a,+N%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-CharArraySearcher%3C'a,+N%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>str::<wbr>pattern</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">alloc</a>::<wbr><a·href="../index.html">str</a>::<wbr><a·href="index.html">pattern</a></span><h1>Struct·<span·class="struct">CharArraySearcher</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="https://doc.rust-lang.org/1.84.0/src/core/str/pattern.rs.html#810">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·CharArraySearcher&lt;'a,·const·N:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.usize.html">usize</a>&gt;(<span·class="comment">/*·private·fields·*/</span>);</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Associated·type·for·<code>&lt;[char;·N]·as·Pattern&gt;::Searcher&lt;'a&gt;</code>.</p>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="Associated·type·for·`&#60;[char;·N]·as·Pattern&#62;::Searcher&#60;&#39;a&#62;`."><title>CharArraySearcher·in·alloc::str::pattern·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312» 2025-01-07)»      (built»from»    a»   source»     tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Char<wbr>Array<wbr>Searcher</a></h2><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-CharArraySearcher%3C'a,+N%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-CharArraySearcher%3C'a,+N%3E"·title="Debug">Debug</a></li><li><a·href="#impl-DoubleEndedSearcher%3C'a%3E-for-CharArraySearcher%3C'a,+N%3E"·title="DoubleEndedSearcher&#60;&#39;a&#62;">DoubleEndedSearcher&#60;&#39;a&#62;</a></li><li><a·href="#impl-ReverseSearcher%3C'a%3E-for-CharArraySearcher%3C'a,+N%3E"·title="ReverseSearcher&#60;&#39;a&#62;">ReverseSearcher&#60;&#39;a&#62;</a></li><li><a·href="#impl-Searcher%3C'a%3E-for-CharArraySearcher%3C'a,+N%3E"·title="Searcher&#60;&#39;a&#62;">Searcher&#60;&#39;a&#62;</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-CharArraySearcher%3C'a,+N%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-CharArraySearcher%3C'a,+N%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-CharArraySearcher%3C'a,+N%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-CharArraySearcher%3C'a,+N%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-CharArraySearcher%3C'a,+N%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-CharArraySearcher%3C'a,+N%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>str::<wbr>pattern</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">alloc</a>::<wbr><a·href="../index.html">str</a>::<wbr><a·href="index.html">pattern</a></span><h1>Struct·<span·class="struct">CharArraySearcher</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/core/str/pattern.rs.html#810">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·CharArraySearcher&lt;'a,·const·N:·<a·class="primitive"·href="../../../core/primitive.usize.html">usize</a>&gt;(<span·class="comment">/*·private·fields·*/</span>);</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Associated·type·for·<code>&lt;[char;·N]·as·Pattern&gt;::Searcher&lt;'a&gt;</code>.</p>
2 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-CharArraySearcher%3C'a,+N%3E"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/str/pattern.rs.html#809">Source</a><a·href="#impl-Clone-for-CharArraySearcher%3C'a,+N%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·const·N:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0[·...·truncated·by·diffoscope;·len:·6082,·SHA:·3095ba37595e756b628bfe94441f8b82d64f620a5d289655ff316b8773cbc757·...·]/core/primitive.usize.html">usize</a>)&gt;</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span><div·class='docblock'>Finds·the·next·<a·href="enum.SearchStep.html#variant.Match"·title="variant·alloc::str::pattern::SearchStep::Match"><code>Match</code></a>·result.2 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-CharArraySearcher%3C'a,+N%3E"·class="impl"><a·class="src·rightside"·href="../../../src/core/str/pattern.rs.html#809">Source</a><a·href="#impl-Clone-for-CharArraySearcher%3C'a,+N%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·const·N:·<a·class="primitive"·href="../../../core/primitive.usize.html">usize</a>&gt;·<a·cla[·...·truncated·by·diffoscope;·len:·5578,·SHA:·3b15f845ab5f89e46e145da4b15b143c6d40dd77c33a04cf62a65b7c2e044ccb·...·]/core/primitive.usize.html">usize</a>)&gt;</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span><div·class='docblock'>Finds·the·next·<a·href="enum.SearchStep.html#variant.Match"·title="variant·alloc::str::pattern::SearchStep::Match"><code>Match</code></a>·result.
3 See·<a·href="trait.ReverseSearcher.html#tymethod.next_back"·title="method·alloc::str::pattern::ReverseSearcher::next_back"><code>next_back()</code></a>.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.next_reject_back"·class="method·trait-impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/str/pattern.rs.html#837">Source</a><a·href="#method.next_reject_back"·class="anchor">§</a><h4·class="code-header">fn·<a·href="trait.ReverseSearcher.html#method.next_reject_back"·class="fn">next_reject_back</a>(&amp[·...·truncated·by·diffoscope;·len:·308,·SHA:·d77fe21f64f9d2dd4a6e4c177dae427237dfad2133c91eb2cef2b4366b51ff3b·...·]/core/primitive.usize.html">usize</a>)&gt;</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span><div·class='docblock'>Finds·the·next·<a·href="enum.SearchStep.html#variant.Reject"·title="variant·alloc::str::pattern::SearchStep::Reject"><code>Reject</code></a>·result.3 See·<a·href="trait.ReverseSearcher.html#tymethod.next_back"·title="method·alloc::str::pattern::ReverseSearcher::next_back"><code>next_back()</code></a>.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.next_reject_back"·class="method·trait-impl"><a·class="src·rightside"·href="../../../src/core/str/pattern.rs.html#837">Source</a><a·href="#method.next_reject_back"·class="anchor">§</a><h4·class="code-header">fn·<a·href="trait.ReverseSearcher.html#method.next_reject_back"·class="fn">next_reject_back</a>(&amp;mut·self)·-&gt;·<a·clas[·...·truncated·by·diffoscope;·len:·212,·SHA:·733cec62a658dddf3516ef2b08370fb57ba406e95793e29806105ca588e120c5·...·]/core/primitive.usize.html">usize</a>)&gt;</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span><div·class='docblock'>Finds·the·next·<a·href="enum.SearchStep.html#variant.Reject"·title="variant·alloc::str::pattern::SearchStep::Reject"><code>Reject</code></a>·result.
4 See·<a·href="trait.ReverseSearcher.html#tymethod.next_back"·title="method·alloc::str::pattern::ReverseSearcher::next_back"><code>next_back()</code></a>.</div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Searcher%3C'a%3E-for-CharArraySearcher%3C'a,+N%3E"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/str/pattern.rs.html#832">Source</a><a·href="#impl-Searcher%3C'a%3E-for-CharArraySearcher%3C'a,+N%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·const·N:·<a·class="primitive"·href="https://doc.rust-lang[·...·truncated·by·diffoscope;·len:·4182,·SHA:·2f2c4a797da33232c9c33a314447c201804a5e074a809847da8cf934decccb30·...·]/core/primitive.usize.html">usize</a>)&gt;</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span><div·class='docblock'>Finds·the·next·<a·href="enum.SearchStep.html#variant.Reject"·title="variant·alloc::str::pattern::SearchStep::Reject"><code>Reject</code></a>·result.·See·<a·href="trait.Searcher.html#tymethod.next"·title="method·alloc::str::pattern::Searcher::next"><code>next()</code></a>4 See·<a·href="trait.ReverseSearcher.html#tymethod.next_back"·title="method·alloc::str::pattern::ReverseSearcher::next_back"><code>next_back()</code></a>.</div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Searcher%3C'a%3E-for-CharArraySearcher%3C'a,+N%3E"·class="impl"><a·class="src·rightside"·href="../../../src/core/str/pattern.rs.html#832">Source</a><a·href="#impl-Searcher%3C'a%3E-for-CharArraySearcher%3C'a,+N%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·const·N:·<a·class="primitive"·href="../../../core/primitive.usize.html">usize</a>[·...·truncated·by·diffoscope;·len:·3870,·SHA:·b7051b7154ecb13c27bc5dedb4ed163d61425da0d6ebe229c6476149e15f7289·...·]/core/primitive.usize.html">usize</a>)&gt;</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span><div·class='docblock'>Finds·the·next·<a·href="enum.SearchStep.html#variant.Reject"·title="variant·alloc::str::pattern::SearchStep::Reject"><code>Reject</code></a>·result.·See·<a·href="trait.Searcher.html#tymethod.next"·title="method·alloc::str::pattern::Searcher::next"><code>next()</code></a>
5 and·<a·href="trait.Searcher.html#method.next_match"·title="method·alloc::str::pattern::Searcher::next_match"><code>next_match()</code></a>.·<a·href="trait.Searcher.html#method.next_reject">Read·more</a></div></details></div></details><section·id="impl-DoubleEndedSearcher%3C'a%3E-for-CharArraySearcher%3C'a,+N%3E"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/str/pattern.rs.html#840">Source</a><a·href="#impl-DoubleEndedSearcher%3C'a%3E-for-CharArraySearcher%3C'a,+N%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·const·N:·<a·class="primitive"·href="https://do[·...·truncated·by·diffoscope;·len:·4691,·SHA:·e9db4fe66cd7a25b84e16c8a13cfb3ee9d3dd5e04ebfa11824974d75cdfcedc1·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where5 and·<a·href="trait.Searcher.html#method.next_match"·title="method·alloc::str::pattern::Searcher::next_match"><code>next_match()</code></a>.·<a·href="trait.Searcher.html#method.next_reject">Read·more</a></div></details></div></details><section·id="impl-DoubleEndedSearcher%3C'a%3E-for-CharArraySearcher%3C'a,+N%3E"·class="impl"><a·class="src·rightside"·href="../../../src/core/str/pattern.rs.html#840">Source</a><a·href="#impl-DoubleEndedSearcher%3C'a%3E-for-CharArraySearcher%3C'a,+N%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·const·N:·<a·class="primitive"·href="../../../core/primitive.usize.html[·...·truncated·by·diffoscope;·len:·4307,·SHA:·8607944a505c3e17b00773eb6689e2e7bee661a447797a311b583ab1b7dcb954·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where
6 ····T:·'static·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method[·...·truncated·by·diffoscope;·len:·834,·SHA:·47dfc2aa0101a4103e2a94c1f971c559790d87a62d58631fd2bfed98e6616a34·...·]/src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where6 ····T:·'static·+·?<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="s[·...·truncated·by·diffoscope;·len:·690,·SHA:·5140301cd9ff79a41eb9c4e21645354b7b39f4611f9b3646b7c859a62ac61067·...·]/src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where
7 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·[·...·truncated·by·diffoscope;·len:·743,·SHA:·b1db3ba49d399b0b1340fa997418ee1ae0ece93cc3579963c53bf7040ec0ded6·...·]/src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.BorrowMut.html"·title="trait·alloc::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where7 ····T:·?<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="sr[·...·truncated·by·diffoscope;·len:·647,·SHA:·eced384f314b303c18919389c5abe4a96aec1091fccffab1a095e21ec4389338·...·]/src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.BorrowMut.html"·title="trait·alloc::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where
8 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="met[·...·truncated·by·diffoscope;·len:·960,·SHA:·c6354ea8fcf3b570a130235df299ddea9063b0fb7e35c91d7c9308744705dcad·...·]/core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where8 ····T:·?<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class[·...·truncated·by·diffoscope;·len:·840,·SHA:·65730076d1351b96bbc7870dcc45245c8046decde9b269779ff691512c7b6cda·...·]/core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where
9 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="[·...·truncated·by·diffoscope;·len:·1883,·SHA:·e07301fb9e28f950d7450480a6b68014ffcdcc3be12b1adda27936cb1244377e·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>9 ····T:·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·cl[·...·truncated·by·diffoscope;·len:·1643,·SHA:·1eae2ed9452ffcbbe8b3cb569c26d9b61c935793fb647d6b79fd502b505ae03b·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>
10 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where10 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where
11 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="m[·...·truncated·by·diffoscope;·len:·237,·SHA:·98603c35860102b3af9b5cf27aeabf39e3c03236551986a6ec030817f108d919·...·]/core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>11 ····U:·<a·class="trait"·href="../../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·cla[·...·truncated·by·diffoscope;·len:·165,·SHA:·423a04a226f49c7f9a948f8c413dc8519f4a9a96a55914b6e6a694710d81c0f7·...·]/core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>
12 <p>That·is,·this·conversion·is·whatever·the·implementation·of12 <p>That·is,·this·conversion·is·whatever·the·implementation·of
13 <code><a·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>13 <code><a·href="../../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>
14 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/borrow.rs.html#82-94">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where14 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/borrow.rs.html#82-94">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where
15 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·t[·...·truncated·by·diffoscope;·len:·2003,·SHA:·ecb61562e7a62580c9ad7b3f8856e4e317eddb7fa8d5eb388664331cf5eb31c0·...·]/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where15 ····T:·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src[·...·truncated·by·diffoscope;·len:·1907,·SHA:·a3ba85d2ecc25713cf37fd24854d68ee7f0f59359c2678ed0204a7cdb8c27a28·...·]/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where
16 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="asso[·...·truncated·by·diffoscope;·len:·1973,·SHA:·db4b8407e8e20581ad139aef25a6221a11da0f5f18d6aa35aa33eb843f4e1b9f·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where16 ····U:·<a·class="trait"·href="../../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><[·...·truncated·by·diffoscope;·len:·1709,·SHA:·e896b9bb1c9fd7d11ed5b2485b9a6fcb8a8eedc15783c2750df398ecae6b320e·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where
17 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·clas[·...·truncated·by·diffoscope;·len:·1578,·SHA:·998d5af10fd889567cd999d1306bfd16c91134d2238a3c172f1e7fa8ed138c18·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>17 ····U:·<a·class="trait"·href="../../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-[·...·truncated·by·diffoscope;·len:·1338,·SHA:·bf7fc0d673df53e1a193a897ac1592a2d85070ae590f9624c2e5404df56f3bb0·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>
81.6 KB
./usr/share/doc/rust-doc/html/alloc/str/pattern/struct.CharPredicateSearcher.html
    
Offset 1, 30 lines modifiedOffset 1, 30 lines modified
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="Associated·type·for·`&#60;F·as·Pattern&#62;::Searcher&#60;&#39;a&#62;`."><title>CharPredicateSearcher·in·alloc::str::pattern·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»    2025-01-07)» (built»   from»       a»      source»tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Char<wbr>Predicate<wbr>Searcher</a></h2><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-CharPredicateSearcher%3C'a,+F%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-CharPredicateSearcher%3C'_,+F%3E"·title="Debug">Debug</a></li><li><a·href="#impl-DoubleEndedSearcher%3C'a%3E-for-CharPredicateSearcher%3C'a,+F%3E"·title="DoubleEndedSearcher&#60;&#39;a&#62;">DoubleEndedSearcher&#60;&#39;a&#62;</a></li><li><a·href="#impl-ReverseSearcher%3C'a%3E-for-CharPredicateSearcher%3C'a,+F%3E"·title="ReverseSearcher&#60;&#39;a&#62;">ReverseSearcher&#60;&#39;a&#62;</a></li><li><a·href="#impl-Searcher%3C'a%3E-for-CharPredicateSearcher%3C'a,+F%3E"·title="Searcher&#60;&#39;a&#62;">Searcher&#60;&#39;a&#62;</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-CharPredicateSearcher%3C'a,+F%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-CharPredicateSearcher%3C'a,+F%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-CharPredicateSearcher%3C'a,+F%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-CharPredicateSearcher%3C'a,+F%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-CharPredicateSearcher%3C'a,+F%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-CharPredicateSearcher%3C'a,+F%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>str::<wbr>pattern</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">alloc</a>::<wbr><a·href="../index.html">str</a>::<wbr><a·href="index.html">pattern</a></span><h1>Struct·<span·class="struct">CharPredicateSearcher</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="https://doc.rust-lang.org/1.84.0/src/core/str/pattern.rs.html#902">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·CharPredicateSearcher&lt;'a,·F&gt;(<span·class="comment">/*·private·fields·*/</span>)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="Associated·type·for·`&#60;F·as·Pattern&#62;::Searcher&#60;&#39;a&#62;`."><title>CharPredicateSearcher·in·alloc::str::pattern·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»    2025-01-07)» (built»   from»       a»      source»tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Char<wbr>Predicate<wbr>Searcher</a></h2><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-CharPredicateSearcher%3C'a,+F%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-CharPredicateSearcher%3C'_,+F%3E"·title="Debug">Debug</a></li><li><a·href="#impl-DoubleEndedSearcher%3C'a%3E-for-CharPredicateSearcher%3C'a,+F%3E"·title="DoubleEndedSearcher&#60;&#39;a&#62;">DoubleEndedSearcher&#60;&#39;a&#62;</a></li><li><a·href="#impl-ReverseSearcher%3C'a%3E-for-CharPredicateSearcher%3C'a,+F%3E"·title="ReverseSearcher&#60;&#39;a&#62;">ReverseSearcher&#60;&#39;a&#62;</a></li><li><a·href="#impl-Searcher%3C'a%3E-for-CharPredicateSearcher%3C'a,+F%3E"·title="Searcher&#60;&#39;a&#62;">Searcher&#60;&#39;a&#62;</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-CharPredicateSearcher%3C'a,+F%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-CharPredicateSearcher%3C'a,+F%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-CharPredicateSearcher%3C'a,+F%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-CharPredicateSearcher%3C'a,+F%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-CharPredicateSearcher%3C'a,+F%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-CharPredicateSearcher%3C'a,+F%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>str::<wbr>pattern</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">alloc</a>::<wbr><a·href="../index.html">str</a>::<wbr><a·href="index.html">pattern</a></span><h1>Struct·<span·class="struct">CharPredicateSearcher</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/core/str/pattern.rs.html#902">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·CharPredicateSearcher&lt;'a,·F&gt;(<span·class="comment">/*·private·fields·*/</span>)
2 <span·class="where">where2 <span·class="where">where
3 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.char.html">char</a>)·-&gt;·<a·class="primitive"·href="https:/[·...·truncated·by·diffoscope;·len:·25,·SHA:·47289d74512722892379c9593dc658e766bcd4e4b804d92b4d3102d33df6ae58·...·]/core/primitive.bool.html">bool</a></span>;</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Associated·type·for·<code>&lt;F·as·Pattern&gt;::Searcher&lt;'a&gt;</code>.</p>3 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../../core/primitive.char.html">char</a>)·-&gt;·<a·class="primitive"·href="../../../core/primitive.bool.html">bool</a></span>;</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Associated·type·for·<code>&lt;F·as·Pattern&gt;::Searcher&lt;'a&gt;</code>.</p>
4 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-CharPredicateSearcher%3C'a,+F%3E"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/str/pattern.rs.html#901">Source</a><a·href="#impl-Clone-for-CharPredicateSearcher%3C'a,+F%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·F&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struct"·href="struct.CharPredicateSearcher.html"·title="struct·alloc::str::pattern::CharPredicateSearcher">CharPredicateSearcher</a>&lt;'a,·F&gt;<div·class="where">where4 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-CharPredicateSearcher%3C'a,+F%3E"·class="impl"><a·class="src·rightside"·href="../../../src/core/str/pattern.rs.html#901">Source</a><a·href="#impl-Clone-for-CharPredicateSearcher%3C'a,+F%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·F&gt;·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struct"·href="struct.CharPredicateSearcher.html"·title="struct·alloc::str::pattern::CharPredicateSearcher">CharPredicateSearcher</a>&lt;'a,·F&gt;<div·class="where">where
5 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·cla[·...·truncated·by·diffoscope;·len:·1960,·SHA:·1e9426933d215b5b5d91f5680d73dcd411affd492275eee704a8e863b1fc9e9a·...·]/src/core/str/pattern.rs.html#906-908">Source</a><a·href="#impl-Debug-for-CharPredicateSearcher%3C'_,+F%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;F&gt;·<a·class="trait"·href="../../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.CharPredicateSearcher.html"·title="struct·alloc::str::pattern::CharPredicateSearcher">CharPredicateSearcher</a>&lt;'_,·F&gt;<div·class="where">where5 ····F:·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·+·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../../core/primitive.cha[·...·truncated·by·diffoscope;·len:·1696,·SHA:·2f9803089f1ff1aa602452a0a0b31715f9d5464dccb1a1f489a15f66ce10e52f·...·]/src/core/str/pattern.rs.html#906-908">Source</a><a·href="#impl-Debug-for-CharPredicateSearcher%3C'_,+F%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;F&gt;·<a·class="trait"·href="../../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.CharPredicateSearcher.html"·title="struct·alloc::str::pattern::CharPredicateSearcher">CharPredicateSearcher</a>&lt;'_,·F&gt;<div·class="where">where
6 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.char.html">char</a>)·-&gt;·<a·class="primitive"·href="https:/[·...·truncated·by·diffoscope;·len:·1340,·SHA:·97a826502ef1e3ce7c330e6f4d5aa1dbfb221e6adea6bafea10f25f71b6377c0·...·]/src/core/str/pattern.rs.html#924-926">Source</a><a·href="#impl-ReverseSearcher%3C'a%3E-for-CharPredicateSearcher%3C'a,+F%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·F&gt;·<a·class="trait"·href="trait.ReverseSearcher.html"·title="trait·alloc::str::pattern::ReverseSearcher">ReverseSearcher</a>&lt;'a&gt;·for·<a·class="struct"·href="struct.CharPredicateSearcher.html"·title="struct·alloc::str::pattern::CharPredicateSearcher">CharPredicateSearcher</a>&lt;'a,·F&gt;<div·class="where">where6 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../../core/primitive.char.html">char</a>)·-&gt;·<a·class="primitive"·href="../../../core/primitive.bool.html">bool</a>,</div></h3>[·...·truncated·by·diffoscope;·len:·1172,·SHA:·d0f28965f32e9df3daf86a74384949858c82f44dd9f81f608eaaf016aaa8d482·...·]/src/core/str/pattern.rs.html#924-926">Source</a><a·href="#impl-ReverseSearcher%3C'a%3E-for-CharPredicateSearcher%3C'a,+F%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·F&gt;·<a·class="trait"·href="trait.ReverseSearcher.html"·title="trait·alloc::str::pattern::ReverseSearcher">ReverseSearcher</a>&lt;'a&gt;·for·<a·class="struct"·href="struct.CharPredicateSearcher.html"·title="struct·alloc::str::pattern::CharPredicateSearcher">CharPredicateSearcher</a>&lt;'a,·F&gt;<div·class="where">where
7 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.char.html">char</a>)·-&gt;·<a·class="primitive"·href="https:/[·...·truncated·by·diffoscope;·len:·1747,·SHA:·37115c2e6524bc96b73b9526ea6f218675f967c7fcf0e8befb8dc0f8498f1dd1·...·]/core/primitive.usize.html">usize</a>)&gt;</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span><div·class='docblock'>Finds·the·next·<a·href="enum.SearchStep.html#variant.Match"·title="variant·alloc::str::pattern::SearchStep::Match"><code>Match</code></a>·result.7 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../../core/primitive.char.html">char</a>)·-&gt;·<a·class="primitive"·href="../../../core/primitive.bool.html">bool</a>,</div></h3>[·...·truncated·by·diffoscope;·len:·1555,·SHA:·6f8028850f6103be826f0a6a73432886a5978cf655ab3801976067b63b50889b·...·]/core/primitive.usize.html">usize</a>)&gt;</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span><div·class='docblock'>Finds·the·next·<a·href="enum.SearchStep.html#variant.Match"·title="variant·alloc::str::pattern::SearchStep::Match"><code>Match</code></a>·result.
8 See·<a·href="trait.ReverseSearcher.html#tymethod.next_back"·title="method·alloc::str::pattern::ReverseSearcher::next_back"><code>next_back()</code></a>.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.next_reject_back"·class="method·trait-impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/str/pattern.rs.html#928">Source</a><a·href="#method.next_reject_back"·class="anchor">§</a><h4·class="code-header">fn·<a·href="trait.ReverseSearcher.html#method.next_reject_back"·class="fn">next_reject_back</a>(&amp[·...·truncated·by·diffoscope;·len:·308,·SHA:·d77fe21f64f9d2dd4a6e4c177dae427237dfad2133c91eb2cef2b4366b51ff3b·...·]/core/primitive.usize.html">usize</a>)&gt;</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span><div·class='docblock'>Finds·the·next·<a·href="enum.SearchStep.html#variant.Reject"·title="variant·alloc::str::pattern::SearchStep::Reject"><code>Reject</code></a>·result.8 See·<a·href="trait.ReverseSearcher.html#tymethod.next_back"·title="method·alloc::str::pattern::ReverseSearcher::next_back"><code>next_back()</code></a>.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.next_reject_back"·class="method·trait-impl"><a·class="src·rightside"·href="../../../src/core/str/pattern.rs.html#928">Source</a><a·href="#method.next_reject_back"·class="anchor">§</a><h4·class="code-header">fn·<a·href="trait.ReverseSearcher.html#method.next_reject_back"·class="fn">next_reject_back</a>(&amp;mut·self)·-&gt;·<a·clas[·...·truncated·by·diffoscope;·len:·212,·SHA:·733cec62a658dddf3516ef2b08370fb57ba406e95793e29806105ca588e120c5·...·]/core/primitive.usize.html">usize</a>)&gt;</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span><div·class='docblock'>Finds·the·next·<a·href="enum.SearchStep.html#variant.Reject"·title="variant·alloc::str::pattern::SearchStep::Reject"><code>Reject</code></a>·result.
9 See·<a·href="trait.ReverseSearcher.html#tymethod.next_back"·title="method·alloc::str::pattern::ReverseSearcher::next_back"><code>next_back()</code></a>.</div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Searcher%3C'a%3E-for-CharPredicateSearcher%3C'a,+F%3E"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/str/pattern.rs.html#917-919">Source</a><a·href="#impl-Searcher%3C'a%3E-for-CharPredicateSearcher%3C'a,+F%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·F&gt;·<a·class="trait"·href="trait.Searcher.html"·title="trait·alloc::str::pattern::Searcher">Searcher</a>&lt;'a&gt;·for·<a·class="struct"·href="struct.CharPredicateSearcher.html"·title="struct·alloc::str::pattern::CharPredicateSearcher">CharPredicateSearcher</a>&lt;'a,·F&gt;<div·class="where">where9 See·<a·href="trait.ReverseSearcher.html#tymethod.next_back"·title="method·alloc::str::pattern::ReverseSearcher::next_back"><code>next_back()</code></a>.</div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Searcher%3C'a%3E-for-CharPredicateSearcher%3C'a,+F%3E"·class="impl"><a·class="src·rightside"·href="../../../src/core/str/pattern.rs.html#917-919">Source</a><a·href="#impl-Searcher%3C'a%3E-for-CharPredicateSearcher%3C'a,+F%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·F&gt;·<a·class="trait"·href="trait.Searcher.html"·title="trait·alloc::str::pattern::Searcher">Searcher</a>&lt;'a&gt;·for·<a·class="struct"·href="struct.CharPredicateSearcher.html"·title="struct·alloc::str::pattern::CharPredicateSearcher">CharPredicateSearcher</a>&lt;'a,·F&gt;<div·class="where">where
10 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.char.html">char</a>)·-&gt;·<a·class="primitive"·href="https:/[·...·truncated·by·diffoscope;·len:·3938,·SHA:·996d2360e6759ed29fd62ca9ed1a887efddf7d686d4f4754954531789256397e·...·]/core/primitive.usize.html">usize</a>)&gt;</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span><div·class='docblock'>Finds·the·next·<a·href="enum.SearchStep.html#variant.Reject"·title="variant·alloc::str::pattern::SearchStep::Reject"><code>Reject</code></a>·result.·See·<a·href="trait.Searcher.html#tymethod.next"·title="method·alloc::str::pattern::Searcher::next"><code>next()</code></a>10 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../../core/primitive.char.html">char</a>)·-&gt;·<a·class="primitive"·href="../../../core/primitive.bool.html">bool</a>,</div></h3>[·...·truncated·by·diffoscope;·len:·3602,·SHA:·cc709c506828ea9abf46964e6215d826052da1acc0e88a24425c73560b9d9f1c·...·]/core/primitive.usize.html">usize</a>)&gt;</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span><div·class='docblock'>Finds·the·next·<a·href="enum.SearchStep.html#variant.Reject"·title="variant·alloc::str::pattern::SearchStep::Reject"><code>Reject</code></a>·result.·See·<a·href="trait.Searcher.html#tymethod.next"·title="method·alloc::str::pattern::Searcher::next"><code>next()</code></a>
11 and·<a·href="trait.Searcher.html#method.next_match"·title="method·alloc::str::pattern::Searcher::next_match"><code>next_match()</code></a>.·<a·href="trait.Searcher.html#method.next_reject">Read·more</a></div></details></div></details><section·id="impl-DoubleEndedSearcher%3C'a%3E-for-CharPredicateSearcher%3C'a,+F%3E"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/str/pattern.rs.html#931">Source</a><a·href="#impl-DoubleEndedSearcher%3C'a%3E-for-CharPredicateSearcher%3C'a,+F%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·F&gt;·<a·class="trait"·href="trait.DoubleEndedSearcher.html"·title="trait·alloc::str::pattern::DoubleEndedSearcher">DoubleEndedSearcher</a>&lt;'a&gt;·for·<a·class="struct"·href="struct.CharPredicateSearcher.html"·title="struct·alloc::str::pattern::CharPredicateSearcher">CharPredicateSearcher</a>&lt;'a,·F&gt;<div·class="where">where11 and·<a·href="trait.Searcher.html#method.next_match"·title="method·alloc::str::pattern::Searcher::next_match"><code>next_match()</code></a>.·<a·href="trait.Searcher.html#method.next_reject">Read·more</a></div></details></div></details><section·id="impl-DoubleEndedSearcher%3C'a%3E-for-CharPredicateSearcher%3C'a,+F%3E"·class="impl"><a·class="src·rightside"·href="../../../src/core/str/pattern.rs.html#931">Source</a><a·href="#impl-DoubleEndedSearcher%3C'a%3E-for-CharPredicateSearcher%3C'a,+F%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·F&gt;·<a·class="trait"·href="trait.DoubleEndedSearcher.html"·title="trait·alloc::str::pattern::DoubleEndedSearcher">DoubleEndedSearcher</a>&lt;'a&gt;·for·<a·class="struct"·href="struct.CharPredicateSearcher.html"·title="struct·alloc::str::pattern::CharPredicateSearcher">CharPredicateSearcher</a>&lt;'a,·F&gt;<div·class="where">where
12 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.char.html">char</a>)·-&gt;·<a·class="primitive"·href="https:/[·...·truncated·by·diffoscope;·len:·528,·SHA:·edab5d739f8124489fa68d5baf0aa6dc6ac77170b4881fd428678dcfd50eeae6·...·]/core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="struct"·href="struct.CharPredicateSearcher.html"·title="struct·alloc::str::pattern::CharPredicateSearcher">CharPredicateSearcher</a>&lt;'a,·F&gt;<div·class="where">where12 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../../core/primitive.char.html">char</a>)·-&gt;·<a·class="primitive"·href="../../../core/primitive.bool.html">bool</a>,</div></h3>[·...·truncated·by·diffoscope;·len:·432,·SHA:·8ca62b92fe560e1bde347313780f58f9a701fba92c698cac7e4ee18abc4f1961·...·]/core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="struct"·href="struct.CharPredicateSearcher.html"·title="struct·alloc::str::pattern::CharPredicateSearcher">CharPredicateSearcher</a>&lt;'a,·F&gt;<div·class="where">where
13 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>,</div></h3></section><section·id="impl-RefUnwindSafe-for-CharPredicateSearcher%3C'a,+F%3E"·class="impl"><a·href="#impl-RefUnwindSafe-for-CharPredi[·...·truncated·by·diffoscope;·len:·142,·SHA:·92546fc510c1659b0dc64d7406dd8db77ab6456ced29271f162fba828c9cd528·...·]/core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="struct"·href="struct.CharPredicateSearcher.html"·title="struct·alloc::str::pattern::CharPredicateSearcher">CharPredicateSearcher</a>&lt;'a,·F&gt;<div·class="where">where13 ····F:·<a·class="trait"·href="../../../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>,</div></h3></section><section·id="impl-RefUnwindSafe-for-CharPredicateSearcher%3C'a,+F%3E"·class="impl"><a·href="#impl-RefUnwindSafe-for-CharPredicateSearcher%3C'a,+F%3E"[·...·truncated·by·diffoscope;·len:·94,·SHA:·0dd170bd6d3412b98b984ab70927e17bed293cf850fc5f02417dbac09ba6e073·...·]/core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="struct"·href="struct.CharPredicateSearcher.html"·title="struct·alloc::str::pattern::CharPredicateSearcher">CharPredicateSearcher</a>&lt;'a,·F&gt;<div·class="where">where
14 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,</div></h3></section><section·id="impl-Send-for-CharPredicateSearcher%3C'a,+F%3E"·class="impl"><a·href[·...·truncated·by·diffoscope;·len:·168,·SHA:·21243a5c0d54bd6f748cb5b059cf84a121573c7252f4fdd9bdcd4ec72c131235·...·]/core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="struct"·href="struct.CharPredicateSearcher.html"·title="struct·alloc::str::pattern::CharPredicateSearcher">CharPredicateSearcher</a>&lt;'a,·F&gt;<div·class="where">where14 ····F:·<a·class="trait"·href="../../../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,</div></h3></section><section·id="impl-Send-for-CharPredicateSearcher%3C'a,+F%3E"·class="impl"><a·href="#impl-Send-for-CharPre[·...·truncated·by·diffoscope;·len:·120,·SHA:·57207734d9f8de58c7010fa4ad28d35d4e988336ef923c8420f00bfc01bc04e9·...·]/core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="struct"·href="struct.CharPredicateSearcher.html"·title="struct·alloc::str::pattern::CharPredicateSearcher">CharPredicateSearcher</a>&lt;'a,·F&gt;<div·class="where">where
15 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>,</div></h3></section><section·id="impl-Sync-for-CharPredicateSearcher%3C'a,+F%3E"·class="impl"><a·href="#impl-Sync-for-CharPredicateSearcher%3C'a,+F%3E"[·...·truncated·by·diffoscope;·len:·118,·SHA:·e8070b0a32926730edbee505886d11069ae5fc4564463ea32cfd7dc3d08bcea5·...·]/core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="struct"·href="struct.CharPredicateSearcher.html"·title="struct·alloc::str::pattern::CharPredicateSearcher">CharPredicateSearcher</a>&lt;'a,·F&gt;<div·class="where">where15 ····F:·<a·class="trait"·href="../../../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>,</div></h3></section><section·id="impl-Sync-for-CharPredicateSearcher%3C'a,+F%3E"·class="impl"><a·href="#impl-Sync-for-CharPredicateSearcher%3C'a,+F%3E"·class="anchor">§</a><h3[·...·truncated·by·diffoscope;·len:·70,·SHA:·8b0455cda4e91e5494a468c6083971af04b41b2815f86221690d1f8794b47ace·...·]/core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="struct"·href="struct.CharPredicateSearcher.html"·title="struct·alloc::str::pattern::CharPredicateSearcher">CharPredicateSearcher</a>&lt;'a,·F&gt;<div·class="where">where
16 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>,</div></h3></section><section·id="impl-Unpin-for-CharPredicateSearcher%3C'a,+F%3E"·class="impl"><a·href="#impl-Unpin-for-CharPredicateSearcher%3C'a,+F%3[·...·truncated·by·diffoscope;·len:·120,·SHA:·55dfd356e576b6726cb6f25d27fc68ab86c0b611e8e0a7b2381535856aa67364·...·]/core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="struct"·href="struct.CharPredicateSearcher.html"·title="struct·alloc::str::pattern::CharPredicateSearcher">CharPredicateSearcher</a>&lt;'a,·F&gt;<div·class="where">where16 ····F:·<a·class="trait"·href="../../../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>,</div></h3></section><section·id="impl-Unpin-for-CharPredicateSearcher%3C'a,+F%3E"·class="impl"><a·href="#impl-Unpin-for-CharPredicateSearcher%3C'a,+F%3E"·class="anchor">§</a><[·...·truncated·by·diffoscope;·len:·72,·SHA:·151526eaca5c6c1f32368569cf2ec63af7c92e6bf242c39f4b02287607a1df4b·...·]/core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="struct"·href="struct.CharPredicateSearcher.html"·title="struct·alloc::str::pattern::CharPredicateSearcher">CharPredicateSearcher</a>&lt;'a,·F&gt;<div·class="where">where
17 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>,</div></h3></section><section·id="impl-UnwindSafe-for-CharPredicateSearcher%3C'a,+F%3E"·class="impl"><a·href="#impl-UnwindSafe-for-CharPredicateSearc[·...·truncated·by·diffoscope;·len:·133,·SHA:·36d063b86dd05cf73e8afd22b5813a8ad6a5eb4c39e5c9a871ae5bde234699c2·...·]/core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="struct"·href="struct.CharPredicateSearcher.html"·title="struct·alloc::str::pattern::CharPredicateSearcher">CharPredicateSearcher</a>&lt;'a,·F&gt;<div·class="where">where17 ····F:·<a·class="trait"·href="../../../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>,</div></h3></section><section·id="impl-UnwindSafe-for-CharPredicateSearcher%3C'a,+F%3E"·class="impl"><a·href="#impl-UnwindSafe-for-CharPredicateSearcher%3C'a,+F%3E"·class="a[·...·truncated·by·diffoscope;·len:·85,·SHA:·3f118e5f86a86e9f88b1ddffd273faa42cb527e979126ffeab2a51c0a7742617·...·]/core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="struct"·href="struct.CharPredicateSearcher.html"·title="struct·alloc::str::pattern::CharPredicateSearcher">CharPredicateSearcher</a>&lt;'a,·F&gt;<div·class="where">where
18 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>,</div></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementations<a·hr[·...·truncated·by·diffoscope;·len:·428,·SHA:·b863754b289546c56713212e62f020711611ea9950149ff62e4c50dc876b9e8b·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where18 ····F:·<a·class="trait"·href="../../../core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>,</div></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementations<a·href="#blanket-implementat[·...·truncated·by·diffoscope;·len:·356,·SHA:·edd3eb26dd79ab7411f5ff9bb3ba27bd2a554827f64a15317e7a9214a3f0264f·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where
19 ····T:·'static·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method[·...·truncated·by·diffoscope;·len:·834,·SHA:·47dfc2aa0101a4103e2a94c1f971c559790d87a62d58631fd2bfed98e6616a34·...·]/src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where19 ····T:·'static·+·?<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="s[·...·truncated·by·diffoscope;·len:·690,·SHA:·5140301cd9ff79a41eb9c4e21645354b7b39f4611f9b3646b7c859a62ac61067·...·]/src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where
20 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·[·...·truncated·by·diffoscope;·len:·743,·SHA:·b1db3ba49d399b0b1340fa997418ee1ae0ece93cc3579963c53bf7040ec0ded6·...·]/src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.BorrowMut.html"·title="trait·alloc::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where20 ····T:·?<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="sr[·...·truncated·by·diffoscope;·len:·647,·SHA:·eced384f314b303c18919389c5abe4a96aec1091fccffab1a095e21ec4389338·...·]/src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.BorrowMut.html"·title="trait·alloc::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where
21 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="met[·...·truncated·by·diffoscope;·len:·960,·SHA:·c6354ea8fcf3b570a130235df299ddea9063b0fb7e35c91d7c9308744705dcad·...·]/core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where21 ····T:·?<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class[·...·truncated·by·diffoscope;·len:·840,·SHA:·65730076d1351b96bbc7870dcc45245c8046decde9b269779ff691512c7b6cda·...·]/core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where
22 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="[·...·truncated·by·diffoscope;·len:·1883,·SHA:·e07301fb9e28f950d7450480a6b68014ffcdcc3be12b1adda27936cb1244377e·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>22 ····T:·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·cl[·...·truncated·by·diffoscope;·len:·1643,·SHA:·1eae2ed9452ffcbbe8b3cb569c26d9b61c935793fb647d6b79fd502b505ae03b·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>
23 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where23 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where
24 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="m[·...·truncated·by·diffoscope;·len:·237,·SHA:·98603c35860102b3af9b5cf27aeabf39e3c03236551986a6ec030817f108d919·...·]/core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>24 ····U:·<a·class="trait"·href="../../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·cla[·...·truncated·by·diffoscope;·len:·165,·SHA:·423a04a226f49c7f9a948f8c413dc8519f4a9a96a55914b6e6a694710d81c0f7·...·]/core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>
25 <p>That·is,·this·conversion·is·whatever·the·implementation·of25 <p>That·is,·this·conversion·is·whatever·the·implementation·of
26 <code><a·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>26 <code><a·href="../../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>
27 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/borrow.rs.html#82-94">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where27 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/borrow.rs.html#82-94">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where
28 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·t[·...·truncated·by·diffoscope;·len:·2003,·SHA:·ecb61562e7a62580c9ad7b3f8856e4e317eddb7fa8d5eb388664331cf5eb31c0·...·]/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where28 ····T:·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src[·...·truncated·by·diffoscope;·len:·1907,·SHA:·a3ba85d2ecc25713cf37fd24854d68ee7f0f59359c2678ed0204a7cdb8c27a28·...·]/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where
29 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="asso[·...·truncated·by·diffoscope;·len:·1973,·SHA:·db4b8407e8e20581ad139aef25a6221a11da0f5f18d6aa35aa33eb843f4e1b9f·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where29 ····U:·<a·class="trait"·href="../../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><[·...·truncated·by·diffoscope;·len:·1709,·SHA:·e896b9bb1c9fd7d11ed5b2485b9a6fcb8a8eedc15783c2750df398ecae6b320e·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where
30 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·clas[·...·truncated·by·diffoscope;·len:·1578,·SHA:·998d5af10fd889567cd999d1306bfd16c91134d2238a3c172f1e7fa8ed138c18·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>30 ····U:·<a·class="trait"·href="../../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-[·...·truncated·by·diffoscope;·len:·1338,·SHA:·bf7fc0d673df53e1a193a897ac1592a2d85070ae590f9624c2e5404df56f3bb0·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>
73.8 KB
./usr/share/doc/rust-doc/html/alloc/str/pattern/struct.CharSearcher.html
    
Offset 1, 17 lines modifiedOffset 1, 17 lines modified
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="Associated·type·for·`&#60;char·as·Pattern&#62;::Searcher&#60;&#39;a&#62;`."><title>CharSearcher·in·alloc::str::pattern·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»  2025-01-07)»       (built» from»     a»    source»      tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Char<wbr>Searcher</a></h2><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-CharSearcher%3C'a%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-CharSearcher%3C'a%3E"·title="Debug">Debug</a></li><li><a·href="#impl-DoubleEndedSearcher%3C'a%3E-for-CharSearcher%3C'a%3E"·title="DoubleEndedSearcher&#60;&#39;a&#62;">DoubleEndedSearcher&#60;&#39;a&#62;</a></li><li><a·href="#impl-ReverseSearcher%3C'a%3E-for-CharSearcher%3C'a%3E"·title="ReverseSearcher&#60;&#39;a&#62;">ReverseSearcher&#60;&#39;a&#62;</a></li><li><a·href="#impl-Searcher%3C'a%3E-for-CharSearcher%3C'a%3E"·title="Searcher&#60;&#39;a&#62;">Searcher&#60;&#39;a&#62;</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-CharSearcher%3C'a%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-CharSearcher%3C'a%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-CharSearcher%3C'a%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-CharSearcher%3C'a%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-CharSearcher%3C'a%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-CharSearcher%3C'a%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>str::<wbr>pattern</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">alloc</a>::<wbr><a·href="../index.html">str</a>::<wbr><a·href="index.html">pattern</a></span><h1>Struct·<span·class="struct">CharSearcher</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="https://doc.rust-lang.org/1.84.0/src/core/str/pattern.rs.html#368">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·CharSearcher&lt;'a&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Associated·type·for·<code>&lt;char·as·Pattern&gt;::Searcher&lt;'a&gt;</code>.</p>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="Associated·type·for·`&#60;char·as·Pattern&#62;::Searcher&#60;&#39;a&#62;`."><title>CharSearcher·in·alloc::str::pattern·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»  2025-01-07)»       (built» from»     a»    source»      tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Char<wbr>Searcher</a></h2><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-CharSearcher%3C'a%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-CharSearcher%3C'a%3E"·title="Debug">Debug</a></li><li><a·href="#impl-DoubleEndedSearcher%3C'a%3E-for-CharSearcher%3C'a%3E"·title="DoubleEndedSearcher&#60;&#39;a&#62;">DoubleEndedSearcher&#60;&#39;a&#62;</a></li><li><a·href="#impl-ReverseSearcher%3C'a%3E-for-CharSearcher%3C'a%3E"·title="ReverseSearcher&#60;&#39;a&#62;">ReverseSearcher&#60;&#39;a&#62;</a></li><li><a·href="#impl-Searcher%3C'a%3E-for-CharSearcher%3C'a%3E"·title="Searcher&#60;&#39;a&#62;">Searcher&#60;&#39;a&#62;</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-CharSearcher%3C'a%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-CharSearcher%3C'a%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-CharSearcher%3C'a%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-CharSearcher%3C'a%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-CharSearcher%3C'a%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-CharSearcher%3C'a%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>str::<wbr>pattern</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">alloc</a>::<wbr><a·href="../index.html">str</a>::<wbr><a·href="index.html">pattern</a></span><h1>Struct·<span·class="struct">CharSearcher</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/core/str/pattern.rs.html#368">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·CharSearcher&lt;'a&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Associated·type·for·<code>&lt;char·as·Pattern&gt;::Searcher&lt;'a&gt;</code>.</p>
2 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-CharSearcher%3C'a%3E"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/str/pattern.rs.html#367">Source</a><a·href="#impl-Clone-for-CharSearcher%3C'a%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.[·...·truncated·by·diffoscope;·len:·5649,·SHA:·39bff1aa15b6315b1b46f48a602c9517c7b842ccb340af3c301b4ea81c15fec2·...·]/core/primitive.usize.html">usize</a>)&gt;</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span><div·class='docblock'>Finds·the·next·<a·href="enum.SearchStep.html#variant.Match"·title="variant·alloc::str::pattern::SearchStep::Match"><code>Match</code></a>·result.2 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-CharSearcher%3C'a%3E"·class="impl"><a·class="src·rightside"·href="../../../src/core/str/pattern.rs.html#367">Source</a><a·href="#impl-Clone-for-CharSearcher%3C'a%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a&gt;·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clo[·...·truncated·by·diffoscope;·len:·5217,·SHA:·37e07739aef747c6752e44cc1560c8c17ee56a41f3fd843f7a63391ed44bce58·...·]/core/primitive.usize.html">usize</a>)&gt;</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span><div·class='docblock'>Finds·the·next·<a·href="enum.SearchStep.html#variant.Match"·title="variant·alloc::str::pattern::SearchStep::Match"><code>Match</code></a>·result.
3 See·<a·href="trait.ReverseSearcher.html#tymethod.next_back"·title="method·alloc::str::pattern::ReverseSearcher::next_back"><code>next_back()</code></a>.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.next_reject_back"·class="method·trait-impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/str/pattern.rs.html#328">Source</a><a·href="#method.next_reject_back"·class="anchor">§</a><h4·class="code-header">fn·<a·href="trait.ReverseSearcher.html#method.next_reject_back"·class="fn">next_reject_back</a>(&amp[·...·truncated·by·diffoscope;·len:·308,·SHA:·d77fe21f64f9d2dd4a6e4c177dae427237dfad2133c91eb2cef2b4366b51ff3b·...·]/core/primitive.usize.html">usize</a>)&gt;</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span><div·class='docblock'>Finds·the·next·<a·href="enum.SearchStep.html#variant.Reject"·title="variant·alloc::str::pattern::SearchStep::Reject"><code>Reject</code></a>·result.3 See·<a·href="trait.ReverseSearcher.html#tymethod.next_back"·title="method·alloc::str::pattern::ReverseSearcher::next_back"><code>next_back()</code></a>.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.next_reject_back"·class="method·trait-impl"><a·class="src·rightside"·href="../../../src/core/str/pattern.rs.html#328">Source</a><a·href="#method.next_reject_back"·class="anchor">§</a><h4·class="code-header">fn·<a·href="trait.ReverseSearcher.html#method.next_reject_back"·class="fn">next_reject_back</a>(&amp;mut·self)·-&gt;·<a·clas[·...·truncated·by·diffoscope;·len:·212,·SHA:·733cec62a658dddf3516ef2b08370fb57ba406e95793e29806105ca588e120c5·...·]/core/primitive.usize.html">usize</a>)&gt;</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span><div·class='docblock'>Finds·the·next·<a·href="enum.SearchStep.html#variant.Reject"·title="variant·alloc::str::pattern::SearchStep::Reject"><code>Reject</code></a>·result.
4 See·<a·href="trait.ReverseSearcher.html#tymethod.next_back"·title="method·alloc::str::pattern::ReverseSearcher::next_back"><code>next_back()</code></a>.</div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Searcher%3C'a%3E-for-CharSearcher%3C'a%3E"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/str/pattern.rs.html#399">Source</a><a·href="#impl-Searcher%3C'a%3E-for-CharSearcher%3C'a%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a&gt;·<a·class="trait"·href="trait.Searcher.html"·title="trait·alloc[·...·truncated·by·diffoscope;·len:·4049,·SHA:·1ee76db08217a1c19723baec1e4abedadff1f5d9448e9a39aafc45b76d39bd45·...·]/core/primitive.usize.html">usize</a>)&gt;</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span><div·class='docblock'>Finds·the·next·<a·href="enum.SearchStep.html#variant.Reject"·title="variant·alloc::str::pattern::SearchStep::Reject"><code>Reject</code></a>·result.·See·<a·href="trait.Searcher.html#tymethod.next"·title="method·alloc::str::pattern::Searcher::next"><code>next()</code></a>4 See·<a·href="trait.ReverseSearcher.html#tymethod.next_back"·title="method·alloc::str::pattern::ReverseSearcher::next_back"><code>next_back()</code></a>.</div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Searcher%3C'a%3E-for-CharSearcher%3C'a%3E"·class="impl"><a·class="src·rightside"·href="../../../src/core/str/pattern.rs.html#399">Source</a><a·href="#impl-Searcher%3C'a%3E-for-CharSearcher%3C'a%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a&gt;·<a·class="trait"·href="trait.Searcher.html"·title="trait·alloc::str::pattern::Searcher[·...·truncated·by·diffoscope;·len:·3761,·SHA:·b72f74a94a2feb14b67d80fb5994cb411690300ad2c5c51eeb58d2266473523c·...·]/core/primitive.usize.html">usize</a>)&gt;</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span><div·class='docblock'>Finds·the·next·<a·href="enum.SearchStep.html#variant.Reject"·title="variant·alloc::str::pattern::SearchStep::Reject"><code>Reject</code></a>·result.·See·<a·href="trait.Searcher.html#tymethod.next"·title="method·alloc::str::pattern::Searcher::next"><code>next()</code></a>
5 and·<a·href="trait.Searcher.html#method.next_match"·title="method·alloc::str::pattern::Searcher::next_match"><code>next_match()</code></a>.·<a·href="trait.Searcher.html#method.next_reject">Read·more</a></div></details></div></details><section·id="impl-DoubleEndedSearcher%3C'a%3E-for-CharSearcher%3C'a%3E"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/str/pattern.rs.html#551">Source</a><a·href="#impl-DoubleEndedSearcher%3C'a%3E-for-CharSearcher%3C'a%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a&gt;·<a·class="trait"·href="trait.DoubleEndedSearcher.ht[·...·truncated·by·diffoscope;·len:·3712,·SHA:·40d2387019e28721fa186e198c53caca2ea0d21c8595ccd3e2dc8da70069bff2·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where5 and·<a·href="trait.Searcher.html#method.next_match"·title="method·alloc::str::pattern::Searcher::next_match"><code>next_match()</code></a>.·<a·href="trait.Searcher.html#method.next_reject">Read·more</a></div></details></div></details><section·id="impl-DoubleEndedSearcher%3C'a%3E-for-CharSearcher%3C'a%3E"·class="impl"><a·class="src·rightside"·href="../../../src/core/str/pattern.rs.html#551">Source</a><a·href="#impl-DoubleEndedSearcher%3C'a%3E-for-CharSearcher%3C'a%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a&gt;·<a·class="trait"·href="trait.DoubleEndedSearcher.html"·title="trait·alloc::[·...·truncated·by·diffoscope;·len:·3496,·SHA:·1a671545f61924c7be18e2e1bcd55af7345d65e3586e96fac04983c93a7e3822·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where
6 ····T:·'static·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method[·...·truncated·by·diffoscope;·len:·834,·SHA:·47dfc2aa0101a4103e2a94c1f971c559790d87a62d58631fd2bfed98e6616a34·...·]/src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where6 ····T:·'static·+·?<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="s[·...·truncated·by·diffoscope;·len:·690,·SHA:·5140301cd9ff79a41eb9c4e21645354b7b39f4611f9b3646b7c859a62ac61067·...·]/src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where
7 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·[·...·truncated·by·diffoscope;·len:·743,·SHA:·b1db3ba49d399b0b1340fa997418ee1ae0ece93cc3579963c53bf7040ec0ded6·...·]/src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.BorrowMut.html"·title="trait·alloc::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where7 ····T:·?<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="sr[·...·truncated·by·diffoscope;·len:·647,·SHA:·eced384f314b303c18919389c5abe4a96aec1091fccffab1a095e21ec4389338·...·]/src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.BorrowMut.html"·title="trait·alloc::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where
8 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="met[·...·truncated·by·diffoscope;·len:·960,·SHA:·c6354ea8fcf3b570a130235df299ddea9063b0fb7e35c91d7c9308744705dcad·...·]/core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where8 ····T:·?<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class[·...·truncated·by·diffoscope;·len:·840,·SHA:·65730076d1351b96bbc7870dcc45245c8046decde9b269779ff691512c7b6cda·...·]/core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where
9 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="[·...·truncated·by·diffoscope;·len:·1883,·SHA:·e07301fb9e28f950d7450480a6b68014ffcdcc3be12b1adda27936cb1244377e·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>9 ····T:·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·cl[·...·truncated·by·diffoscope;·len:·1643,·SHA:·1eae2ed9452ffcbbe8b3cb569c26d9b61c935793fb647d6b79fd502b505ae03b·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>
10 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where10 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where
11 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="m[·...·truncated·by·diffoscope;·len:·237,·SHA:·98603c35860102b3af9b5cf27aeabf39e3c03236551986a6ec030817f108d919·...·]/core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>11 ····U:·<a·class="trait"·href="../../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·cla[·...·truncated·by·diffoscope;·len:·165,·SHA:·423a04a226f49c7f9a948f8c413dc8519f4a9a96a55914b6e6a694710d81c0f7·...·]/core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>
12 <p>That·is,·this·conversion·is·whatever·the·implementation·of12 <p>That·is,·this·conversion·is·whatever·the·implementation·of
13 <code><a·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>13 <code><a·href="../../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>
14 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/borrow.rs.html#82-94">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where14 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/borrow.rs.html#82-94">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where
15 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·t[·...·truncated·by·diffoscope;·len:·2003,·SHA:·ecb61562e7a62580c9ad7b3f8856e4e317eddb7fa8d5eb388664331cf5eb31c0·...·]/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where15 ····T:·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src[·...·truncated·by·diffoscope;·len:·1907,·SHA:·a3ba85d2ecc25713cf37fd24854d68ee7f0f59359c2678ed0204a7cdb8c27a28·...·]/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where
16 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="asso[·...·truncated·by·diffoscope;·len:·1973,·SHA:·db4b8407e8e20581ad139aef25a6221a11da0f5f18d6aa35aa33eb843f4e1b9f·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where16 ····U:·<a·class="trait"·href="../../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><[·...·truncated·by·diffoscope;·len:·1709,·SHA:·e896b9bb1c9fd7d11ed5b2485b9a6fcb8a8eedc15783c2750df398ecae6b320e·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where
17 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·clas[·...·truncated·by·diffoscope;·len:·1578,·SHA:·998d5af10fd889567cd999d1306bfd16c91134d2238a3c172f1e7fa8ed138c18·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>17 ····U:·<a·class="trait"·href="../../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-[·...·truncated·by·diffoscope;·len:·1338,·SHA:·bf7fc0d673df53e1a193a897ac1592a2d85070ae590f9624c2e5404df56f3bb0·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>
75.0 KB
./usr/share/doc/rust-doc/html/alloc/str/pattern/struct.CharSliceSearcher.html
    
Offset 1, 17 lines modifiedOffset 1, 17 lines modified
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="Associated·type·for·`&#60;&#38;[char]·as·Pattern&#62;::Searcher&#60;&#39;a&#62;`."><title>CharSliceSearcher·in·alloc::str::pattern·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»      2025-01-07)»   (built»     from» a»source»  tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Char<wbr>Slice<wbr>Searcher</a></h2><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-CharSliceSearcher%3C'a,+'b%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-CharSliceSearcher%3C'a,+'b%3E"·title="Debug">Debug</a></li><li><a·href="#impl-DoubleEndedSearcher%3C'a%3E-for-CharSliceSearcher%3C'a,+'b%3E"·title="DoubleEndedSearcher&#60;&#39;a&#62;">DoubleEndedSearcher&#60;&#39;a&#62;</a></li><li><a·href="#impl-ReverseSearcher%3C'a%3E-for-CharSliceSearcher%3C'a,+'b%3E"·title="ReverseSearcher&#60;&#39;a&#62;">ReverseSearcher&#60;&#39;a&#62;</a></li><li><a·href="#impl-Searcher%3C'a%3E-for-CharSliceSearcher%3C'a,+'b%3E"·title="Searcher&#60;&#39;a&#62;">Searcher&#60;&#39;a&#62;</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-CharSliceSearcher%3C'a,+'b%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-CharSliceSearcher%3C'a,+'b%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-CharSliceSearcher%3C'a,+'b%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-CharSliceSearcher%3C'a,+'b%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-CharSliceSearcher%3C'a,+'b%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-CharSliceSearcher%3C'a,+'b%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>str::<wbr>pattern</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">alloc</a>::<wbr><a·href="../index.html">str</a>::<wbr><a·href="index.html">pattern</a></span><h1>Struct·<span·class="struct">CharSliceSearcher</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="https://doc.rust-lang.org/1.84.0/src/core/str/pattern.rs.html#872">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·CharSliceSearcher&lt;'a,·'b&gt;(<span·class="comment">/*·private·fields·*/</span>);</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Associated·type·for·<code>&lt;&amp;[char]·as·Pattern&gt;::Searcher&lt;'a&gt;</code>.</p>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="Associated·type·for·`&#60;&#38;[char]·as·Pattern&#62;::Searcher&#60;&#39;a&#62;`."><title>CharSliceSearcher·in·alloc::str::pattern·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»      2025-01-07)»   (built»     from» a»source»  tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Char<wbr>Slice<wbr>Searcher</a></h2><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-CharSliceSearcher%3C'a,+'b%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-CharSliceSearcher%3C'a,+'b%3E"·title="Debug">Debug</a></li><li><a·href="#impl-DoubleEndedSearcher%3C'a%3E-for-CharSliceSearcher%3C'a,+'b%3E"·title="DoubleEndedSearcher&#60;&#39;a&#62;">DoubleEndedSearcher&#60;&#39;a&#62;</a></li><li><a·href="#impl-ReverseSearcher%3C'a%3E-for-CharSliceSearcher%3C'a,+'b%3E"·title="ReverseSearcher&#60;&#39;a&#62;">ReverseSearcher&#60;&#39;a&#62;</a></li><li><a·href="#impl-Searcher%3C'a%3E-for-CharSliceSearcher%3C'a,+'b%3E"·title="Searcher&#60;&#39;a&#62;">Searcher&#60;&#39;a&#62;</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-CharSliceSearcher%3C'a,+'b%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-CharSliceSearcher%3C'a,+'b%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-CharSliceSearcher%3C'a,+'b%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-CharSliceSearcher%3C'a,+'b%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-CharSliceSearcher%3C'a,+'b%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-CharSliceSearcher%3C'a,+'b%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>str::<wbr>pattern</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">alloc</a>::<wbr><a·href="../index.html">str</a>::<wbr><a·href="index.html">pattern</a></span><h1>Struct·<span·class="struct">CharSliceSearcher</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/core/str/pattern.rs.html#872">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·CharSliceSearcher&lt;'a,·'b&gt;(<span·class="comment">/*·private·fields·*/</span>);</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Associated·type·for·<code>&lt;&amp;[char]·as·Pattern&gt;::Searcher&lt;'a&gt;</code>.</p>
2 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-CharSliceSearcher%3C'a,+'b%3E"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/str/pattern.rs.html#871">Source</a><a·href="#impl-Clone-for-CharSliceSearcher%3C'a,+'b%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·'b&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core[·...·truncated·by·diffoscope;·len:·5782,·SHA:·4b59a04d6a3b9276b50e2601156384f1eb19040b63aa82c6c243d3f1186258ca·...·]/core/primitive.usize.html">usize</a>)&gt;</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span><div·class='docblock'>Finds·the·next·<a·href="enum.SearchStep.html#variant.Match"·title="variant·alloc::str::pattern::SearchStep::Match"><code>Match</code></a>·result.2 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-CharSliceSearcher%3C'a,+'b%3E"·class="impl"><a·class="src·rightside"·href="../../../src/core/str/pattern.rs.html#871">Source</a><a·href="#impl-Clone-for-CharSliceSearcher%3C'a,+'b%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·'b&gt;·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clon[·...·truncated·by·diffoscope;·len:·5350,·SHA:·3683d200e94673f4973ba421f263b5b9fe9775593bfdf4610a8ce12129b407e9·...·]/core/primitive.usize.html">usize</a>)&gt;</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span><div·class='docblock'>Finds·the·next·<a·href="enum.SearchStep.html#variant.Match"·title="variant·alloc::str::pattern::SearchStep::Match"><code>Match</code></a>·result.
3 See·<a·href="trait.ReverseSearcher.html#tymethod.next_back"·title="method·alloc::str::pattern::ReverseSearcher::next_back"><code>next_back()</code></a>.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.next_reject_back"·class="method·trait-impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/str/pattern.rs.html#879">Source</a><a·href="#method.next_reject_back"·class="anchor">§</a><h4·class="code-header">fn·<a·href="trait.ReverseSearcher.html#method.next_reject_back"·class="fn">next_reject_back</a>(&amp[·...·truncated·by·diffoscope;·len:·308,·SHA:·d77fe21f64f9d2dd4a6e4c177dae427237dfad2133c91eb2cef2b4366b51ff3b·...·]/core/primitive.usize.html">usize</a>)&gt;</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span><div·class='docblock'>Finds·the·next·<a·href="enum.SearchStep.html#variant.Reject"·title="variant·alloc::str::pattern::SearchStep::Reject"><code>Reject</code></a>·result.3 See·<a·href="trait.ReverseSearcher.html#tymethod.next_back"·title="method·alloc::str::pattern::ReverseSearcher::next_back"><code>next_back()</code></a>.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.next_reject_back"·class="method·trait-impl"><a·class="src·rightside"·href="../../../src/core/str/pattern.rs.html#879">Source</a><a·href="#method.next_reject_back"·class="anchor">§</a><h4·class="code-header">fn·<a·href="trait.ReverseSearcher.html#method.next_reject_back"·class="fn">next_reject_back</a>(&amp;mut·self)·-&gt;·<a·clas[·...·truncated·by·diffoscope;·len:·212,·SHA:·733cec62a658dddf3516ef2b08370fb57ba406e95793e29806105ca588e120c5·...·]/core/primitive.usize.html">usize</a>)&gt;</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span><div·class='docblock'>Finds·the·next·<a·href="enum.SearchStep.html#variant.Reject"·title="variant·alloc::str::pattern::SearchStep::Reject"><code>Reject</code></a>·result.
4 See·<a·href="trait.ReverseSearcher.html#tymethod.next_back"·title="method·alloc::str::pattern::ReverseSearcher::next_back"><code>next_back()</code></a>.</div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Searcher%3C'a%3E-for-CharSliceSearcher%3C'a,+'b%3E"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/str/pattern.rs.html#874">Source</a><a·href="#impl-Searcher%3C'a%3E-for-CharSliceSearcher%3C'a,+'b%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·'b&gt;·<a·class="trait"·href="trait.Searcher.html"·title[·...·truncated·by·diffoscope;·len:·4081,·SHA:·2332dc1aeafd93a3d38eed810b92c9f2ce81fdaedef2794417626ca66080946d·...·]/core/primitive.usize.html">usize</a>)&gt;</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span><div·class='docblock'>Finds·the·next·<a·href="enum.SearchStep.html#variant.Reject"·title="variant·alloc::str::pattern::SearchStep::Reject"><code>Reject</code></a>·result.·See·<a·href="trait.Searcher.html#tymethod.next"·title="method·alloc::str::pattern::Searcher::next"><code>next()</code></a>4 See·<a·href="trait.ReverseSearcher.html#tymethod.next_back"·title="method·alloc::str::pattern::ReverseSearcher::next_back"><code>next_back()</code></a>.</div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Searcher%3C'a%3E-for-CharSliceSearcher%3C'a,+'b%3E"·class="impl"><a·class="src·rightside"·href="../../../src/core/str/pattern.rs.html#874">Source</a><a·href="#impl-Searcher%3C'a%3E-for-CharSliceSearcher%3C'a,+'b%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·'b&gt;·<a·class="trait"·href="trait.Searcher.html"·title="trait·alloc::str::patt[·...·truncated·by·diffoscope;·len:·3793,·SHA:·ae1f6203782a2b9d28ee1fa97dc62c783d26061b874171aed0957af8e1583993·...·]/core/primitive.usize.html">usize</a>)&gt;</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span><div·class='docblock'>Finds·the·next·<a·href="enum.SearchStep.html#variant.Reject"·title="variant·alloc::str::pattern::SearchStep::Reject"><code>Reject</code></a>·result.·See·<a·href="trait.Searcher.html#tymethod.next"·title="method·alloc::str::pattern::Searcher::next"><code>next()</code></a>
5 and·<a·href="trait.Searcher.html#method.next_match"·title="method·alloc::str::pattern::Searcher::next_match"><code>next_match()</code></a>.·<a·href="trait.Searcher.html#method.next_reject">Read·more</a></div></details></div></details><section·id="impl-DoubleEndedSearcher%3C'a%3E-for-CharSliceSearcher%3C'a,+'b%3E"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/str/pattern.rs.html#882">Source</a><a·href="#impl-DoubleEndedSearcher%3C'a%3E-for-CharSliceSearcher%3C'a,+'b%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·'b&gt;·<a·class="trait"·href="trait.DoubleEnd[·...·truncated·by·diffoscope;·len:·3990,·SHA:·0cf256cbe7e956ea68ef9c243df2a79a470b12514223d69e67e99f35dae38cf1·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where5 and·<a·href="trait.Searcher.html#method.next_match"·title="method·alloc::str::pattern::Searcher::next_match"><code>next_match()</code></a>.·<a·href="trait.Searcher.html#method.next_reject">Read·more</a></div></details></div></details><section·id="impl-DoubleEndedSearcher%3C'a%3E-for-CharSliceSearcher%3C'a,+'b%3E"·class="impl"><a·class="src·rightside"·href="../../../src/core/str/pattern.rs.html#882">Source</a><a·href="#impl-DoubleEndedSearcher%3C'a%3E-for-CharSliceSearcher%3C'a,+'b%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·'b&gt;·<a·class="trait"·href="trait.DoubleEndedSearcher.html"·title="[·...·truncated·by·diffoscope;·len:·3774,·SHA:·c7898b82e02cca6b1a6397237b7d256a0d1e064cdcf680baeb5cc779df253bc4·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where
6 ····T:·'static·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method[·...·truncated·by·diffoscope;·len:·834,·SHA:·47dfc2aa0101a4103e2a94c1f971c559790d87a62d58631fd2bfed98e6616a34·...·]/src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where6 ····T:·'static·+·?<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="s[·...·truncated·by·diffoscope;·len:·690,·SHA:·5140301cd9ff79a41eb9c4e21645354b7b39f4611f9b3646b7c859a62ac61067·...·]/src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where
7 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·[·...·truncated·by·diffoscope;·len:·743,·SHA:·b1db3ba49d399b0b1340fa997418ee1ae0ece93cc3579963c53bf7040ec0ded6·...·]/src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.BorrowMut.html"·title="trait·alloc::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where7 ····T:·?<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="sr[·...·truncated·by·diffoscope;·len:·647,·SHA:·eced384f314b303c18919389c5abe4a96aec1091fccffab1a095e21ec4389338·...·]/src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.BorrowMut.html"·title="trait·alloc::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where
8 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="met[·...·truncated·by·diffoscope;·len:·960,·SHA:·c6354ea8fcf3b570a130235df299ddea9063b0fb7e35c91d7c9308744705dcad·...·]/core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where8 ····T:·?<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class[·...·truncated·by·diffoscope;·len:·840,·SHA:·65730076d1351b96bbc7870dcc45245c8046decde9b269779ff691512c7b6cda·...·]/core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where
9 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="[·...·truncated·by·diffoscope;·len:·1883,·SHA:·e07301fb9e28f950d7450480a6b68014ffcdcc3be12b1adda27936cb1244377e·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>9 ····T:·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·cl[·...·truncated·by·diffoscope;·len:·1643,·SHA:·1eae2ed9452ffcbbe8b3cb569c26d9b61c935793fb647d6b79fd502b505ae03b·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>
10 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where10 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where
11 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="m[·...·truncated·by·diffoscope;·len:·237,·SHA:·98603c35860102b3af9b5cf27aeabf39e3c03236551986a6ec030817f108d919·...·]/core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>11 ····U:·<a·class="trait"·href="../../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·cla[·...·truncated·by·diffoscope;·len:·165,·SHA:·423a04a226f49c7f9a948f8c413dc8519f4a9a96a55914b6e6a694710d81c0f7·...·]/core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>
12 <p>That·is,·this·conversion·is·whatever·the·implementation·of12 <p>That·is,·this·conversion·is·whatever·the·implementation·of
13 <code><a·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>13 <code><a·href="../../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>
14 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/borrow.rs.html#82-94">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where14 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/borrow.rs.html#82-94">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where
15 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·t[·...·truncated·by·diffoscope;·len:·2003,·SHA:·ecb61562e7a62580c9ad7b3f8856e4e317eddb7fa8d5eb388664331cf5eb31c0·...·]/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where15 ····T:·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src[·...·truncated·by·diffoscope;·len:·1907,·SHA:·a3ba85d2ecc25713cf37fd24854d68ee7f0f59359c2678ed0204a7cdb8c27a28·...·]/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where
16 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="asso[·...·truncated·by·diffoscope;·len:·1973,·SHA:·db4b8407e8e20581ad139aef25a6221a11da0f5f18d6aa35aa33eb843f4e1b9f·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where16 ····U:·<a·class="trait"·href="../../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><[·...·truncated·by·diffoscope;·len:·1709,·SHA:·e896b9bb1c9fd7d11ed5b2485b9a6fcb8a8eedc15783c2750df398ecae6b320e·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where
17 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·clas[·...·truncated·by·diffoscope;·len:·1578,·SHA:·998d5af10fd889567cd999d1306bfd16c91134d2238a3c172f1e7fa8ed138c18·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>17 ····U:·<a·class="trait"·href="../../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-[·...·truncated·by·diffoscope;·len:·1338,·SHA:·bf7fc0d673df53e1a193a897ac1592a2d85070ae590f9624c2e5404df56f3bb0·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>
72.6 KB
./usr/share/doc/rust-doc/html/alloc/str/pattern/struct.StrSearcher.html
    
Offset 1, 17 lines modifiedOffset 1, 17 lines modified
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="Associated·type·for·`&#60;&#38;str·as·Pattern&#62;::Searcher&#60;&#39;a&#62;`."><title>StrSearcher·in·alloc::str::pattern·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»       2025-01-07)»    (built»      from»  a» source»   tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">StrSearcher</a></h2><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-StrSearcher%3C'a,+'b%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-StrSearcher%3C'a,+'b%3E"·title="Debug">Debug</a></li><li><a·href="#impl-ReverseSearcher%3C'a%3E-for-StrSearcher%3C'a,+'b%3E"·title="ReverseSearcher&#60;&#39;a&#62;">ReverseSearcher&#60;&#39;a&#62;</a></li><li><a·href="#impl-Searcher%3C'a%3E-for-StrSearcher%3C'a,+'b%3E"·title="Searcher&#60;&#39;a&#62;">Searcher&#60;&#39;a&#62;</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-StrSearcher%3C'a,+'b%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-StrSearcher%3C'a,+'b%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-StrSearcher%3C'a,+'b%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-StrSearcher%3C'a,+'b%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-StrSearcher%3C'a,+'b%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-StrSearcher%3C'a,+'b%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>str::<wbr>pattern</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">alloc</a>::<wbr><a·href="../index.html">str</a>::<wbr><a·href="index.html">pattern</a></span><h1>Struct·<span·class="struct">StrSearcher</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="https://doc.rust-lang.org/1.84.0/src/core/str/pattern.rs.html#1058">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·StrSearcher&lt;'a,·'b&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Associated·type·for·<code>&lt;&amp;str·as·Pattern&gt;::Searcher&lt;'a&gt;</code>.</p>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="Associated·type·for·`&#60;&#38;str·as·Pattern&#62;::Searcher&#60;&#39;a&#62;`."><title>StrSearcher·in·alloc::str::pattern·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»       2025-01-07)»    (built»      from»  a» source»   tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">StrSearcher</a></h2><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-StrSearcher%3C'a,+'b%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-StrSearcher%3C'a,+'b%3E"·title="Debug">Debug</a></li><li><a·href="#impl-ReverseSearcher%3C'a%3E-for-StrSearcher%3C'a,+'b%3E"·title="ReverseSearcher&#60;&#39;a&#62;">ReverseSearcher&#60;&#39;a&#62;</a></li><li><a·href="#impl-Searcher%3C'a%3E-for-StrSearcher%3C'a,+'b%3E"·title="Searcher&#60;&#39;a&#62;">Searcher&#60;&#39;a&#62;</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-StrSearcher%3C'a,+'b%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-StrSearcher%3C'a,+'b%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-StrSearcher%3C'a,+'b%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-StrSearcher%3C'a,+'b%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-StrSearcher%3C'a,+'b%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-StrSearcher%3C'a,+'b%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>str::<wbr>pattern</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">alloc</a>::<wbr><a·href="../index.html">str</a>::<wbr><a·href="index.html">pattern</a></span><h1>Struct·<span·class="struct">StrSearcher</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/core/str/pattern.rs.html#1058">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·StrSearcher&lt;'a,·'b&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Associated·type·for·<code>&lt;&amp;str·as·Pattern&gt;::Searcher&lt;'a&gt;</code>.</p>
2 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-StrSearcher%3C'a,+'b%3E"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/str/pattern.rs.html#1056">Source</a><a·href="#impl-Clone-for-StrSearcher%3C'a,+'b%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·'b&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clon[·...·truncated·by·diffoscope;·len:·5687,·SHA:·cdfdc1505fbc712e9de64d1c28c04fd29cd6bc05c26290e06a5a9d91431c8191·...·]/core/primitive.usize.html">usize</a>)&gt;</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span><div·class='docblock'>Finds·the·next·<a·href="enum.SearchStep.html#variant.Match"·title="variant·alloc::str::pattern::SearchStep::Match"><code>Match</code></a>·result.2 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-StrSearcher%3C'a,+'b%3E"·class="impl"><a·class="src·rightside"·href="../../../src/core/str/pattern.rs.html#1056">Source</a><a·href="#impl-Clone-for-StrSearcher%3C'a,+'b%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·'b&gt;·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Cl[·...·truncated·by·diffoscope;·len:·5255,·SHA:·21f80895da1104375a2f7d504557648b8263acb64b04c1a6f68ddc7e996ee2f8·...·]/core/primitive.usize.html">usize</a>)&gt;</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span><div·class='docblock'>Finds·the·next·<a·href="enum.SearchStep.html#variant.Match"·title="variant·alloc::str::pattern::SearchStep::Match"><code>Match</code></a>·result.
3 See·<a·href="trait.ReverseSearcher.html#tymethod.next_back"·title="method·alloc::str::pattern::ReverseSearcher::next_back"><code>next_back()</code></a>.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.next_reject_back"·class="method·trait-impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/str/pattern.rs.html#328">Source</a><a·href="#method.next_reject_back"·class="anchor">§</a><h4·class="code-header">fn·<a·href="trait.ReverseSearcher.html#method.next_reject_back"·class="fn">next_reject_back</a>(&amp[·...·truncated·by·diffoscope;·len:·308,·SHA:·d77fe21f64f9d2dd4a6e4c177dae427237dfad2133c91eb2cef2b4366b51ff3b·...·]/core/primitive.usize.html">usize</a>)&gt;</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span><div·class='docblock'>Finds·the·next·<a·href="enum.SearchStep.html#variant.Reject"·title="variant·alloc::str::pattern::SearchStep::Reject"><code>Reject</code></a>·result.3 See·<a·href="trait.ReverseSearcher.html#tymethod.next_back"·title="method·alloc::str::pattern::ReverseSearcher::next_back"><code>next_back()</code></a>.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.next_reject_back"·class="method·trait-impl"><a·class="src·rightside"·href="../../../src/core/str/pattern.rs.html#328">Source</a><a·href="#method.next_reject_back"·class="anchor">§</a><h4·class="code-header">fn·<a·href="trait.ReverseSearcher.html#method.next_reject_back"·class="fn">next_reject_back</a>(&amp;mut·self)·-&gt;·<a·clas[·...·truncated·by·diffoscope;·len:·212,·SHA:·733cec62a658dddf3516ef2b08370fb57ba406e95793e29806105ca588e120c5·...·]/core/primitive.usize.html">usize</a>)&gt;</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span><div·class='docblock'>Finds·the·next·<a·href="enum.SearchStep.html#variant.Reject"·title="variant·alloc::str::pattern::SearchStep::Reject"><code>Reject</code></a>·result.
4 See·<a·href="trait.ReverseSearcher.html#tymethod.next_back"·title="method·alloc::str::pattern::ReverseSearcher::next_back"><code>next_back()</code></a>.</div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Searcher%3C'a%3E-for-StrSearcher%3C'a,+'b%3E"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/str/pattern.rs.html#1108">Source</a><a·href="#impl-Searcher%3C'a%3E-for-StrSearcher%3C'a,+'b%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·'b&gt;·<a·class="trait"·href="trait.Searcher.html"·title="tra[·...·truncated·by·diffoscope;·len:·4061,·SHA:·e113a38c1ed2b714fc829fd426a2ac13fe1d694eaca386c5291e16645e081f84·...·]/core/primitive.usize.html">usize</a>)&gt;</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span><div·class='docblock'>Finds·the·next·<a·href="enum.SearchStep.html#variant.Reject"·title="variant·alloc::str::pattern::SearchStep::Reject"><code>Reject</code></a>·result.·See·<a·href="trait.Searcher.html#tymethod.next"·title="method·alloc::str::pattern::Searcher::next"><code>next()</code></a>4 See·<a·href="trait.ReverseSearcher.html#tymethod.next_back"·title="method·alloc::str::pattern::ReverseSearcher::next_back"><code>next_back()</code></a>.</div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Searcher%3C'a%3E-for-StrSearcher%3C'a,+'b%3E"·class="impl"><a·class="src·rightside"·href="../../../src/core/str/pattern.rs.html#1108">Source</a><a·href="#impl-Searcher%3C'a%3E-for-StrSearcher%3C'a,+'b%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·'b&gt;·<a·class="trait"·href="trait.Searcher.html"·title="trait·alloc::str::pattern::[·...·truncated·by·diffoscope;·len:·3773,·SHA:·1c41a24f70876e0bc0d9cfa68209b3dc0c951b6ddf06b3ad72035f7f6ecd76b9·...·]/core/primitive.usize.html">usize</a>)&gt;</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span><div·class='docblock'>Finds·the·next·<a·href="enum.SearchStep.html#variant.Reject"·title="variant·alloc::str::pattern::SearchStep::Reject"><code>Reject</code></a>·result.·See·<a·href="trait.Searcher.html#tymethod.next"·title="method·alloc::str::pattern::Searcher::next"><code>next()</code></a>
5 and·<a·href="trait.Searcher.html#method.next_match"·title="method·alloc::str::pattern::Searcher::next_match"><code>next_match()</code></a>.·<a·href="trait.Searcher.html#method.next_reject">Read·more</a></div></details></div></details></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-StrSearcher%3C'a,+'b%3E"·class="impl"><a·href="#impl-Freeze-for-StrSearcher%3C'a,+'b%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·'b&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="struct"·href="struct.StrSearcher.html"·title="struct·alloc::str::pattern::StrSearcher">StrSearcher</a>&lt;'a,·'b&gt;</h3></section><[·...·truncated·by·diffoscope;·len:·2888,·SHA:·bb0d4fea3da2c8b3395d666228b88ca838f971d99f2607b013dd2c63e24e1b77·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where5 and·<a·href="trait.Searcher.html#method.next_match"·title="method·alloc::str::pattern::Searcher::next_match"><code>next_match()</code></a>.·<a·href="trait.Searcher.html#method.next_reject">Read·more</a></div></details></div></details></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-StrSearcher%3C'a,+'b%3E"·class="impl"><a·href="#impl-Freeze-for-StrSearcher%3C'a,+'b%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·'b&gt;·<a·class="trait"·href="../../../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="struct"·href="struct.StrSearcher.html"·title="struct·alloc::str::pattern::StrSearcher">StrSearcher</a>&lt;'a,·'b&gt;</h3></section><section·id="impl-RefUnwi[·...·truncated·by·diffoscope;·len:·2696,·SHA:·15a80f6174c340940deb4db3ae176095a7fcb1826f00b6d588f963340d4bf5f0·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where
6 ····T:·'static·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method[·...·truncated·by·diffoscope;·len:·834,·SHA:·47dfc2aa0101a4103e2a94c1f971c559790d87a62d58631fd2bfed98e6616a34·...·]/src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where6 ····T:·'static·+·?<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="s[·...·truncated·by·diffoscope;·len:·690,·SHA:·5140301cd9ff79a41eb9c4e21645354b7b39f4611f9b3646b7c859a62ac61067·...·]/src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where
7 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·[·...·truncated·by·diffoscope;·len:·743,·SHA:·b1db3ba49d399b0b1340fa997418ee1ae0ece93cc3579963c53bf7040ec0ded6·...·]/src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.BorrowMut.html"·title="trait·alloc::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where7 ····T:·?<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="sr[·...·truncated·by·diffoscope;·len:·647,·SHA:·eced384f314b303c18919389c5abe4a96aec1091fccffab1a095e21ec4389338·...·]/src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.BorrowMut.html"·title="trait·alloc::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where
8 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="met[·...·truncated·by·diffoscope;·len:·960,·SHA:·c6354ea8fcf3b570a130235df299ddea9063b0fb7e35c91d7c9308744705dcad·...·]/core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where8 ····T:·?<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class[·...·truncated·by·diffoscope;·len:·840,·SHA:·65730076d1351b96bbc7870dcc45245c8046decde9b269779ff691512c7b6cda·...·]/core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where
9 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="[·...·truncated·by·diffoscope;·len:·1883,·SHA:·e07301fb9e28f950d7450480a6b68014ffcdcc3be12b1adda27936cb1244377e·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>9 ····T:·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·cl[·...·truncated·by·diffoscope;·len:·1643,·SHA:·1eae2ed9452ffcbbe8b3cb569c26d9b61c935793fb647d6b79fd502b505ae03b·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>
10 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where10 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where
11 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="m[·...·truncated·by·diffoscope;·len:·237,·SHA:·98603c35860102b3af9b5cf27aeabf39e3c03236551986a6ec030817f108d919·...·]/core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>11 ····U:·<a·class="trait"·href="../../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·cla[·...·truncated·by·diffoscope;·len:·165,·SHA:·423a04a226f49c7f9a948f8c413dc8519f4a9a96a55914b6e6a694710d81c0f7·...·]/core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>
12 <p>That·is,·this·conversion·is·whatever·the·implementation·of12 <p>That·is,·this·conversion·is·whatever·the·implementation·of
13 <code><a·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>13 <code><a·href="../../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>
14 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/borrow.rs.html#82-94">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where14 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/borrow.rs.html#82-94">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where
15 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·t[·...·truncated·by·diffoscope;·len:·2003,·SHA:·ecb61562e7a62580c9ad7b3f8856e4e317eddb7fa8d5eb388664331cf5eb31c0·...·]/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where15 ····T:·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src[·...·truncated·by·diffoscope;·len:·1907,·SHA:·a3ba85d2ecc25713cf37fd24854d68ee7f0f59359c2678ed0204a7cdb8c27a28·...·]/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where
16 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="asso[·...·truncated·by·diffoscope;·len:·1973,·SHA:·db4b8407e8e20581ad139aef25a6221a11da0f5f18d6aa35aa33eb843f4e1b9f·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where16 ····U:·<a·class="trait"·href="../../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><[·...·truncated·by·diffoscope;·len:·1709,·SHA:·e896b9bb1c9fd7d11ed5b2485b9a6fcb8a8eedc15783c2750df398ecae6b320e·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where
17 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·clas[·...·truncated·by·diffoscope;·len:·1578,·SHA:·998d5af10fd889567cd999d1306bfd16c91134d2238a3c172f1e7fa8ed138c18·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>17 ····U:·<a·class="trait"·href="../../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-[·...·truncated·by·diffoscope;·len:·1338,·SHA:·bf7fc0d673df53e1a193a897ac1592a2d85070ae590f9624c2e5404df56f3bb0·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>
18.3 KB
./usr/share/doc/rust-doc/html/alloc/str/pattern/trait.DoubleEndedSearcher.html
    
Offset 1, 20 lines modifiedOffset 1, 20 lines modified
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="A·marker·trait·to·express·that·a·`ReverseSearcher`·can·be·used·for·a·`DoubleEndedIterator`·implementation."><title>DoubleEndedSearcher·in·alloc::str::pattern·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»     2025-01-07)»  (built»    from»a»       source» tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Double<wbr>Ended<wbr>Searcher</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#examples"·title="Examples">Examples</a></li></ul><h3><a·href="#implementors">Implementors</a></h3></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>str::<wbr>pattern</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">alloc</a>::<wbr><a·href="../index.html">str</a>::<wbr><a·href="index.html">pattern</a></span><h1>Trait·<span·class="trait">DoubleEndedSearcher</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="https://doc.rust-lang.org/1.84.0/src/core/str/pattern.rs.html#360">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·trait·DoubleEndedSearcher&lt;'a&gt;:·<a·class="trait"·href="trait.ReverseSearcher.html"·title="trait·alloc::str::pattern::ReverseSearcher">ReverseSearcher</a>&lt;'a&gt;·{·}</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>A·marker·trait·to·express·that·a·<a·href="trait.ReverseSearcher.html"·title="trait·alloc::str::pattern::ReverseSearcher"><code>ReverseSearcher</code></a>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="A·marker·trait·to·express·that·a·`ReverseSearcher`·can·be·used·for·a·`DoubleEndedIterator`·implementation."><title>DoubleEndedSearcher·in·alloc::str::pattern·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»     2025-01-07)»  (built»    from»a»       source» tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Double<wbr>Ended<wbr>Searcher</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#examples"·title="Examples">Examples</a></li></ul><h3><a·href="#implementors">Implementors</a></h3></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>str::<wbr>pattern</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">alloc</a>::<wbr><a·href="../index.html">str</a>::<wbr><a·href="index.html">pattern</a></span><h1>Trait·<span·class="trait">DoubleEndedSearcher</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/core/str/pattern.rs.html#360">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·trait·DoubleEndedSearcher&lt;'a&gt;:·<a·class="trait"·href="trait.ReverseSearcher.html"·title="trait·alloc::str::pattern::ReverseSearcher">ReverseSearcher</a>&lt;'a&gt;·{·}</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>A·marker·trait·to·express·that·a·<a·href="trait.ReverseSearcher.html"·title="trait·alloc::str::pattern::ReverseSearcher"><code>ReverseSearcher</code></a>
2 can·be·used·for·a·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator"><code>DoubleEndedIterator</code></a>·implementation.</p>2 can·be·used·for·a·<a·href="../../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator"><code>DoubleEndedIterator</code></a>·implementation.</p>
3 <p>For·this,·the·impl·of·<a·href="trait.Searcher.html"·title="trait·alloc::str::pattern::Searcher"><code>Searcher</code></a>·and·<a·href="trait.ReverseSearcher.html"·title="trait·alloc::str::pattern::ReverseSearcher"><code>ReverseSearcher</code></a>·need3 <p>For·this,·the·impl·of·<a·href="trait.Searcher.html"·title="trait·alloc::str::pattern::Searcher"><code>Searcher</code></a>·and·<a·href="trait.ReverseSearcher.html"·title="trait·alloc::str::pattern::ReverseSearcher"><code>ReverseSearcher</code></a>·need
4 to·follow·these·conditions:</p>4 to·follow·these·conditions:</p>
5 <ul>5 <ul>
6 <li>All·results·of·<code>next()</code>·need·to·be·identical6 <li>All·results·of·<code>next()</code>·need·to·be·identical
7 to·the·results·of·<code>next_back()</code>·in·reverse·order.</li>7 to·the·results·of·<code>next_back()</code>·in·reverse·order.</li>
8 <li><code>next()</code>·and·<code>next_back()</code>·need·to·behave·as8 <li><code>next()</code>·and·<code>next_back()</code>·need·to·behave·as
9 the·two·ends·of·a·range·of·values,·that·is·they9 the·two·ends·of·a·range·of·values,·that·is·they
10 can·not·“walk·past·each·other”.</li>10 can·not·“walk·past·each·other”.</li>
11 </ul>11 </ul>
12 <h2·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h2>12 <h2·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h2>
13 <p><code>char::Searcher</code>·is·a·<code>DoubleEndedSearcher</code>·because·searching·for·a13 <p><code>char::Searcher</code>·is·a·<code>DoubleEndedSearcher</code>·because·searching·for·a
14 <a·href="https://doc.rust-lang.org/1.84.0/core/primitive.char.html"·title="primitive·char"><code>char</code></a>·only·requires·looking·at·one·at·a·time,·which·behaves·the·same14 <a·href="../../../core/primitive.char.html"·title="primitive·char"><code>char</code></a>·only·requires·looking·at·one·at·a·time,·which·behaves·the·same
15 from·both·ends.</p>15 from·both·ends.</p>
16 <p><code>(&amp;str)::Searcher</code>·is·not·a·<code>DoubleEndedSearcher</code>·because16 <p><code>(&amp;str)::Searcher</code>·is·not·a·<code>DoubleEndedSearcher</code>·because
17 the·pattern·<code>"aa"</code>·in·the·haystack·<code>"aaa"</code>·matches·as·either17 the·pattern·<code>"aa"</code>·in·the·haystack·<code>"aaa"</code>·matches·as·either
18 <code>"[aa]a"</code>·or·<code>"a[aa]"</code>,·depending·on·which·side·it·is·searched.</p>18 <code>"[aa]a"</code>·or·<code>"a[aa]"</code>,·depending·on·which·side·it·is·searched.</p>
19 </div></details><h2·id="implementors"·class="section-header">Implementors<a·href="#implementors"·class="anchor">§</a></h2><div·id="implementors-list"><section·id="impl-DoubleEndedSearcher%3C'a%3E-for-CharSearcher%3C'a%3E"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/str/pattern.rs.html#551">Source</a><a·href="#impl-DoubleEndedSearcher%3C'a%3E-for-CharSearcher%3C'a%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a&gt;·<a·class="trait"·href="trait.DoubleEndedSearcher.ht[·...·truncated·by·diffoscope;·len:·1828,·SHA:·dbe44706f9ed720b19f3c2447b0d8ba24341cc9934fd0fefa1d3adf75481590c·...·]/src/core/str/pattern.rs.html#931">Source</a><a·href="#impl-DoubleEndedSearcher%3C'a%3E-for-CharPredicateSearcher%3C'a,+F%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·F&gt;·<a·class="trait"·href="trait.DoubleEndedSearcher.html"·title="trait·alloc::str::pattern::DoubleEndedSearcher">DoubleEndedSearcher</a>&lt;'a&gt;·for·<a·class="struct"·href="struct.CharPredicateSearcher.html"·title="struct·alloc::str::pattern::CharPredicateSearcher">CharPredicateSearcher</a>&lt;'a,·F&gt;<div·class="where">where19 </div></details><h2·id="implementors"·class="section-header">Implementors<a·href="#implementors"·class="anchor">§</a></h2><div·id="implementors-list"><section·id="impl-DoubleEndedSearcher%3C'a%3E-for-CharSearcher%3C'a%3E"·class="impl"><a·class="src·rightside"·href="../../../src/core/str/pattern.rs.html#551">Source</a><a·href="#impl-DoubleEndedSearcher%3C'a%3E-for-CharSearcher%3C'a%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a&gt;·<a·class="trait"·href="trait.DoubleEndedSearcher.html"·title="trait·alloc::[·...·truncated·by·diffoscope;·len:·1708,·SHA:·92efd7e8cc3621e1267bf4ee83c8732a8fd3c09c9f9be22f070da2a23e99132f·...·]/src/core/str/pattern.rs.html#931">Source</a><a·href="#impl-DoubleEndedSearcher%3C'a%3E-for-CharPredicateSearcher%3C'a,+F%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·F&gt;·<a·class="trait"·href="trait.DoubleEndedSearcher.html"·title="trait·alloc::str::pattern::DoubleEndedSearcher">DoubleEndedSearcher</a>&lt;'a&gt;·for·<a·class="struct"·href="struct.CharPredicateSearcher.html"·title="struct·alloc::str::pattern::CharPredicateSearcher">CharPredicateSearcher</a>&lt;'a,·F&gt;<div·class="where">where
20 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.char.html">char</a>)·-&gt;·<a·class="primitive"·href="https:/[·...·truncated·by·diffoscope;·len:·484,·SHA:·04170329e4670ddc8b8a5f842660fc08f0fc2e76340d9b2cd63e263552893b97·...·]/core/primitive.usize.html">usize</a>&gt;·<a·class="trait"·href="trait.DoubleEndedSearcher.html"·title="trait·alloc::str::pattern::DoubleEndedSearcher">DoubleEndedSearcher</a>&lt;'a&gt;·for·<a·class="struct"·href="struct.CharArraySearcher.html"·title="struct·alloc::str::pattern::CharArraySearcher">CharArraySearcher</a>&lt;'a,·N&gt;</h3></section></div><script·src="../../../trait.impl/core/str/pattern/trait.DoubleEndedSearcher.js"·data-ignore-extern-crates="core"·async></script></section></div></main></body></html>20 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../../core/primitive.char.html">char</a>)·-&gt;·<a·class="primitive"·href="../../../core/primitive.bool.html">bool</a>,</div></h3>[·...·truncated·by·diffoscope;·len:·364,·SHA:·ceb5efc59349ff0942d7cf70e71ab4d09866d102f000c4185f6872730137d9c8·...·]/core/primitive.usize.html">usize</a>&gt;·<a·class="trait"·href="trait.DoubleEndedSearcher.html"·title="trait·alloc::str::pattern::DoubleEndedSearcher">DoubleEndedSearcher</a>&lt;'a&gt;·for·<a·class="struct"·href="struct.CharArraySearcher.html"·title="struct·alloc::str::pattern::CharArraySearcher">CharArraySearcher</a>&lt;'a,·N&gt;</h3></section></div><script·src="../../../trait.impl/core/str/pattern/trait.DoubleEndedSearcher.js"·data-ignore-extern-crates="core"·async></script></section></div></main></body></html>
61.8 KB
./usr/share/doc/rust-doc/html/alloc/str/pattern/trait.Pattern.html
    
Offset 1, 32 lines modifiedOffset 1, 32 lines modified
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="A·string·pattern."><title>Pattern·in·alloc::str::pattern·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»      2025-01-07)»   (built»     from» a»source»  tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Pattern</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#examples"·title="Examples">Examples</a></li></ul><h3><a·href="#required-associated-types">Required·Associated·Types</a></h3><ul·class="block"><li><a·href="#associatedtype.Searcher"·title="Searcher">Searcher</a></li></ul><h3><a·href="#required-methods">Required·Methods</a></h3><ul·class="block"><li><a·href="#tymethod.into_searcher"·title="into_searcher">into_searcher</a></li></ul><h3><a·href="#provided-methods">Provided·Methods</a></h3><ul·class="block"><li><a·href="#method.as_utf8_pattern"·title="as_utf8_pattern">as_utf8_pattern</a></li><li><a·href="#method.is_contained_in"·title="is_contained_in">is_contained_in</a></li><li><a·href="#method.is_prefix_of"·title="is_prefix_of">is_prefix_of</a></li><li><a·href="#method.is_suffix_of"·title="is_suffix_of">is_suffix_of</a></li><li><a·href="#method.strip_prefix_of"·title="strip_prefix_of">strip_prefix_of</a></li><li><a·href="#method.strip_suffix_of"·title="strip_suffix_of">strip_suffix_of</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><a·href="index.html">In·alloc::<wbr>str::<wbr>pattern</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">alloc</a>::<wbr><a·href="../index.html">str</a>::<wbr><a·href="index.html">pattern</a></span><h1>Trait·<span·class="trait">Pattern</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="https://doc.rust-lang.org/1.84.0/src/core/str/pattern.rs.html#99">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·trait·Pattern:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·{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="A·string·pattern."><title>Pattern·in·alloc::str::pattern·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»      2025-01-07)»   (built»     from» a»source»  tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Pattern</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#examples"·title="Examples">Examples</a></li></ul><h3><a·href="#required-associated-types">Required·Associated·Types</a></h3><ul·class="block"><li><a·href="#associatedtype.Searcher"·title="Searcher">Searcher</a></li></ul><h3><a·href="#required-methods">Required·Methods</a></h3><ul·class="block"><li><a·href="#tymethod.into_searcher"·title="into_searcher">into_searcher</a></li></ul><h3><a·href="#provided-methods">Provided·Methods</a></h3><ul·class="block"><li><a·href="#method.as_utf8_pattern"·title="as_utf8_pattern">as_utf8_pattern</a></li><li><a·href="#method.is_contained_in"·title="is_contained_in">is_contained_in</a></li><li><a·href="#method.is_prefix_of"·title="is_prefix_of">is_prefix_of</a></li><li><a·href="#method.is_suffix_of"·title="is_suffix_of">is_suffix_of</a></li><li><a·href="#method.strip_prefix_of"·title="strip_prefix_of">strip_prefix_of</a></li><li><a·href="#method.strip_suffix_of"·title="strip_suffix_of">strip_suffix_of</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><a·href="index.html">In·alloc::<wbr>str::<wbr>pattern</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">alloc</a>::<wbr><a·href="../index.html">str</a>::<wbr><a·href="index.html">pattern</a></span><h1>Trait·<span·class="trait">Pattern</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/core/str/pattern.rs.html#99">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·trait·Pattern:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·{
2 ····type·<a·href="#associatedtype.Searcher"·class="associatedtype">Searcher</a>&lt;'a&gt;:·<a·class="trait"·href="trait.Searcher.html"·title="trait·alloc::str::pattern::Searcher">Searcher</a>&lt;'a&gt;;2 ····type·<a·href="#associatedtype.Searcher"·class="associatedtype">Searcher</a>&lt;'a&gt;:·<a·class="trait"·href="trait.Searcher.html"·title="trait·alloc::str::pattern::Searcher">Searcher</a>&lt;'a&gt;;
  
3 ····//·Required·method3 ····//·Required·method
4 ····fn·<a·href="#tymethod.into_searcher"·class="fn">into_searcher</a>(self,·haystack:·&amp;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.str.html">str</a>)·-&gt;·Self::<a·class="associatedtype"·href="trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</a>&lt;'_&gt;;4 ····fn·<a·href="#tymethod.into_searcher"·class="fn">into_searcher</a>(self,·haystack:·&amp;<a·class="primitive"·href="../../../core/primitive.str.html">str</a>)·-&gt;·Self::<a·class="associatedtype"·href="trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</a>&lt;'_&gt;;
  
5 ····//·Provided·methods5 ····//·Provided·methods
6 ····fn·<a·href="#method.is_contained_in"·class="fn">is_contained_in</a>(self,·haystack:·&amp;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.str.html">str</a>)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html">bool</a>·{·...·}6 ····fn·<a·href="#method.is_contained_in"·class="fn">is_contained_in</a>(self,·haystack:·&amp;<a·class="primitive"·href="../../../core/primitive.str.html">str</a>)·-&gt;·<a·class="primitive"·href="../../../core/primitive.bool.html">bool</a>·{·...·}
7 <span·class="item-spacer"></span>····fn·<a·href="#method.is_prefix_of"·class="fn">is_prefix_of</a>(self,·haystack:·&amp;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.str.html">str</a>)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html">bool</a>·{·...·}7 <span·class="item-spacer"></span>····fn·<a·href="#method.is_prefix_of"·class="fn">is_prefix_of</a>(self,·haystack:·&amp;<a·class="primitive"·href="../../../core/primitive.str.html">str</a>)·-&gt;·<a·class="primitive"·href="../../../core/primitive.bool.html">bool</a>·{·...·}
8 <span·class="item-spacer"></span>····fn·<a·href="#method.is_suffix_of"·class="fn">is_suffix_of</a>&lt;'a&gt;(self,·haystack:·&amp;'a·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.str.html">str</a>)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html">bool</a>8 <span·class="item-spacer"></span>····fn·<a·href="#method.is_suffix_of"·class="fn">is_suffix_of</a>&lt;'a&gt;(self,·haystack:·&amp;'a·<a·class="primitive"·href="../../../core/primitive.str.html">str</a>)·-&gt;·<a·class="primitive"·href="../../../core/primitive.bool.html">bool</a>
9 ·······<span·class="where">where·Self::<a·class="associatedtype"·href="trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</a>&lt;'a&gt;:·<a·class="trait"·href="trait.ReverseSearcher.html"·title="trait·alloc::str::pattern::ReverseSearcher">ReverseSearcher</a>&lt;'a&gt;</span>·{·...·}9 ·······<span·class="where">where·Self::<a·class="associatedtype"·href="trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</a>&lt;'a&gt;:·<a·class="trait"·href="trait.ReverseSearcher.html"·title="trait·alloc::str::pattern::ReverseSearcher">ReverseSearcher</a>&lt;'a&gt;</span>·{·...·}
10 <span·class="item-spacer"></span>····fn·<a·href="#method.strip_prefix_of"·class="fn">strip_prefix_of</a>(self,·haystack:·&amp;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.str.html">str</a>)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;&amp;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.str.html">str</a>&gt;·{·...·} 
11 <span·class="item-spacer"></span>····fn·<a·href="#method.strip_suffix_of"·class="fn">strip_suffix_of</a>&lt;'a&gt;(self,·haystack:·&amp;'a·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.str.html">str</a>)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.h[·...·truncated·by·diffoscope;·len:·157,·SHA:·d4ad782a68d69726e2641028b45a8e103e17561255ba0cd925ec9f813ce710c6·...·]10 <span·class="item-spacer"></span>····fn·<a·href="#method.strip_prefix_of"·class="fn">strip_prefix_of</a>(self,·haystack:·&amp;<a·class="primitive"·href="../../../core/primitive.str.html">str</a>)·-&gt;·<a·class="enum"·href="../../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;&amp;<a·[·...·truncated·by·diffoscope;·len:·77,·SHA:·17b75d1436c21e5fe12e3f0ea10dcd5906c8deebf00e67b9302fc6b2c4924bf8·...·]
 11 <span·class="item-spacer"></span>····fn·<a·href="#method.strip_suffix_of"·class="fn">strip_suffix_of</a>&lt;'a&gt;(self,·haystack:·&amp;'a·<a·class="primitive"·href="../../../core/primitive.str.html">str</a>)·-&gt;·<a·class="enum"·href="../../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;&amp;'a·<a·class="primitive"·href="../../../core/primitive.str.html">str</a>&gt;
12 ·······<span·class="where">where·Self::<a·class="associatedtype"·href="trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</a>&lt;'a&gt;:·<a·class="trait"·href="trait.ReverseSearcher.html"·title="trait·alloc::str::pattern::ReverseSearcher">ReverseSearcher</a>&lt;'a&gt;</span>·{·...·}12 ·······<span·class="where">where·Self::<a·class="associatedtype"·href="trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</a>&lt;'a&gt;:·<a·class="trait"·href="trait.ReverseSearcher.html"·title="trait·alloc::str::pattern::ReverseSearcher">ReverseSearcher</a>&lt;'a&gt;</span>·{·...·}
13 <span·class="item-spacer"></span>····fn·<a·href="#method.as_utf8_pattern"·class="fn">as_utf8_pattern</a>(&amp;self)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="enum"·href="enum.Utf8Pattern.html"·title="enum·alloc::str::pattern::Utf8Pattern">Utf8Pattern</a>&lt;'_&gt;&gt;·{·...·}13 <span·class="item-spacer"></span>····fn·<a·href="#method.as_utf8_pattern"·class="fn">as_utf8_pattern</a>(&amp;self)·-&gt;·<a·class="enum"·href="../../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="enum"·href="enum.Utf8Pattern.html"·title="enum·alloc::str::pattern::Utf8Pattern">Utf8Pattern</a>&lt;'_&gt;&gt;·{·...·}
14 }</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>A·string·pattern.</p>14 }</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>A·string·pattern.</p>
15 <p>A·<code>Pattern</code>·expresses·that·the·implementing·type15 <p>A·<code>Pattern</code>·expresses·that·the·implementing·type
16 can·be·used·as·a·string·pattern·for·searching·in·a·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.str.html"·title="primitive·str"><code>&amp;str</code></a>.</p>16 can·be·used·as·a·string·pattern·for·searching·in·a·<a·href="../../../core/primitive.str.html"·title="primitive·str"><code>&amp;str</code></a>.</p>
17 <p>For·example,·both·<code>'a'</code>·and·<code>"aa"</code>·are·patterns·that17 <p>For·example,·both·<code>'a'</code>·and·<code>"aa"</code>·are·patterns·that
18 would·match·at·index·<code>1</code>·in·the·string·<code>"baaaab"</code>.</p>18 would·match·at·index·<code>1</code>·in·the·string·<code>"baaaab"</code>.</p>
19 <p>The·trait·itself·acts·as·a·builder·for·an·associated19 <p>The·trait·itself·acts·as·a·builder·for·an·associated
20 <a·href="trait.Searcher.html"·title="trait·alloc::str::pattern::Searcher"><code>Searcher</code></a>·type,·which·does·the·actual·work·of·finding20 <a·href="trait.Searcher.html"·title="trait·alloc::str::pattern::Searcher"><code>Searcher</code></a>·type,·which·does·the·actual·work·of·finding
21 occurrences·of·the·pattern·in·a·string.</p>21 occurrences·of·the·pattern·in·a·string.</p>
22 <p>Depending·on·the·type·of·the·pattern,·the·behavior·of·methods·like22 <p>Depending·on·the·type·of·the·pattern,·the·behavior·of·methods·like
23 <a·href="https://doc.rust-lang.org/1.84.0/core/primitive.str.html#method.find"·title="method·str::find"><code>str::find</code></a>·and·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.str.html#method.contains"·title="method·str::contains"><code>str::contains</code></a>·can·change.·The·table·below·describes23 <a·href="../../../core/primitive.str.html#method.find"·title="method·str::find"><code>str::find</code></a>·and·<a·href="../../../core/primitive.str.html#method.contains"·title="method·str::contains"><code>str::contains</code></a>·can·change.·The·table·below·describes
24 some·of·those·behaviors.</p>24 some·of·those·behaviors.</p>
25 <div><table><thead><tr><th>Pattern·type</th><th>Match·condition</th></tr></thead><tbody>25 <div><table><thead><tr><th>Pattern·type</th><th>Match·condition</th></tr></thead><tbody>
26 <tr><td><code>&amp;str</code></td><td>is·substring</td></tr>26 <tr><td><code>&amp;str</code></td><td>is·substring</td></tr>
27 <tr><td><code>char</code></td><td>is·contained·in·string</td></tr>27 <tr><td><code>char</code></td><td>is·contained·in·string</td></tr>
28 <tr><td><code>&amp;[char]</code></td><td>any·char·in·slice·is·contained·in·string</td></tr>28 <tr><td><code>&amp;[char]</code></td><td>any·char·in·slice·is·contained·in·string</td></tr>
29 <tr><td><code>F:·FnMut(char)·-&gt;·bool</code></td><td><code>F</code>·returns·<code>true</code>·for·a·char·in·string</td></tr>29 <tr><td><code>F:·FnMut(char)·-&gt;·bool</code></td><td><code>F</code>·returns·<code>true</code>·for·a·char·in·string</td></tr>
30 <tr><td><code>&amp;&amp;str</code></td><td>is·substring</td></tr>30 <tr><td><code>&amp;&amp;str</code></td><td>is·substring</td></tr>
Offset 51, 48 lines modifiedOffset 51, 48 lines modified
51 </span><span·class="macro">assert_eq!</span>(<span·class="string">"ab"</span>.find(<span·class="kw-2">&amp;</span>[<span·class="string">'b'</span>,·<span·class="string">'a'</span>][..]),·<span·class="prelude-val">Some</span>(<span·class="number">0</span>));51 </span><span·class="macro">assert_eq!</span>(<span·class="string">"ab"</span>.find(<span·class="kw-2">&amp;</span>[<span·class="string">'b'</span>,·<span·class="string">'a'</span>][..]),·<span·class="prelude-val">Some</span>(<span·class="number">0</span>));
52 <span·class="macro">assert_eq!</span>(<span·class="string">"abaaa"</span>.find(<span·class="kw-2">&amp;</span>[<span·class="string">'a'</span>,·<span·class="string">'z'</span>][..]),·<span·class="prelude-val">Some</span>(<span·class="number">0</span>));52 <span·class="macro">assert_eq!</span>(<span·class="string">"abaaa"</span>.find(<span·class="kw-2">&amp;</span>[<span·class="string">'a'</span>,·<span·class="string">'z'</span>][..]),·<span·class="prelude-val">Some</span>(<span·class="number">0</span>));
53 <span·class="macro">assert_eq!</span>(<span·class="string">"abaaa"</span>.find(<span·class="kw-2">&amp;</span>[<span·class="string">'c'</span>,·<span·class="string">'d'</span>][..]),·<span·class="prelude-val">None</span>);53 <span·class="macro">assert_eq!</span>(<span·class="string">"abaaa"</span>.find(<span·class="kw-2">&amp;</span>[<span·class="string">'c'</span>,·<span·class="string">'d'</span>][..]),·<span·class="prelude-val">None</span>);
  
54 <span·class="comment">//·FnMut(char)·-&gt;·bool54 <span·class="comment">//·FnMut(char)·-&gt;·bool
55 </span><span·class="macro">assert_eq!</span>(<span·class="string">"abcdef_z"</span>.find(|ch|·ch·&gt;·<span·class="string">'d'·</span>&amp;&amp;·ch·&lt;·<span·class="string">'y'</span>),·<span·class="prelude-val">Some</span>(<span·class="number">4</span>));55 </span><span·class="macro">assert_eq!</span>(<span·class="string">"abcdef_z"</span>.find(|ch|·ch·&gt;·<span·class="string">'d'·</span>&amp;&amp;·ch·&lt;·<span·class="string">'y'</span>),·<span·class="prelude-val">Some</span>(<span·class="number">4</span>));
56 <span·class="macro">assert_eq!</span>(<span·class="string">"abcddd_z"</span>.find(|ch|·ch·&gt;·<span·class="string">'d'·</span>&amp;&amp;·ch·&lt;·<span·class="string">'y'</span>),·<span·class="prelude-val">None</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A//+%26str%0Afn+main()+%7B%0A++++assert_eq!(%22abaaa%22.find(%22ba%22),+Some(1));%0A++++assert_eq!(%22abaaa%22.find(%22bac%22),+None);%0A++++%0A++++//+char%0A++++assert_eq!(%22abaaa%22.find('a'),+Some(0));%0A++++assert_eq!(%22abaaa%22.find('b'),+Some(1));%0A++++assert_eq!(%22abaaa%22.find('c'),+None);%0A++++%0A++++//+%26%5Bchar;+N%5D%0A++++assert_eq!(%22ab%22.find(%26%5B'b',+'a'%5D),+Some(0));%0A++++assert_eq!(%22abaaa%22.find(%26%5B'a',+'z'%5D),+Some(0));%0A++++assert_eq!(%22abaaa%22.find(%26%5B'c',+'d'%5D),+None);%0A++++%0A++++//+%26%5Bchar%5D%0A++++assert_eq!(%22ab%22.find(%26%5B'b',+'a'%5D%5B..%5D),+Some(0));%0A++++assert_eq!(%22abaaa%22.find(%26%5B'a',+'z'%5D%5B..%5D),+Some(0));%0A++++assert_eq!(%22abaaa%22.find(%26%5B'c',+'d'%5D%5B..%5D),+None);%0A++++%0A++++//+FnMut(char)+-%3E+bool%0A++++assert_eq!(%22abcdef_z%22.find(%7Cch%7C+ch+%3E+'d'+%26%26+ch+%3C+'y'),+Some(4));%0A++++assert_eq!(%22abcddd_z%22.find(%7Cch%7C+ch+%3E+'d'+%26%26+ch+%3C+'y'),+None);%0A%7D&amp;edition=2021"></a></div>56 <span·class="macro">assert_eq!</span>(<span·class="string">"abcddd_z"</span>.find(|ch|·ch·&gt;·<span·class="string">'d'·</span>&amp;&amp;·ch·&lt;·<span·class="string">'y'</span>),·<span·class="prelude-val">None</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A//+%26str%0Afn+main()+%7B%0A++++assert_eq!(%22abaaa%22.find(%22ba%22),+Some(1));%0A++++assert_eq!(%22abaaa%22.find(%22bac%22),+None);%0A++++%0A++++//+char%0A++++assert_eq!(%22abaaa%22.find('a'),+Some(0));%0A++++assert_eq!(%22abaaa%22.find('b'),+Some(1));%0A++++assert_eq!(%22abaaa%22.find('c'),+None);%0A++++%0A++++//+%26%5Bchar;+N%5D%0A++++assert_eq!(%22ab%22.find(%26%5B'b',+'a'%5D),+Some(0));%0A++++assert_eq!(%22abaaa%22.find(%26%5B'a',+'z'%5D),+Some(0));%0A++++assert_eq!(%22abaaa%22.find(%26%5B'c',+'d'%5D),+None);%0A++++%0A++++//+%26%5Bchar%5D%0A++++assert_eq!(%22ab%22.find(%26%5B'b',+'a'%5D%5B..%5D),+Some(0));%0A++++assert_eq!(%22abaaa%22.find(%26%5B'a',+'z'%5D%5B..%5D),+Some(0));%0A++++assert_eq!(%22abaaa%22.find(%26%5B'c',+'d'%5D%5B..%5D),+None);%0A++++%0A++++//+FnMut(char)+-%3E+bool%0A++++assert_eq!(%22abcdef_z%22.find(%7Cch%7C+ch+%3E+'d'+%26%26+ch+%3C+'y'),+Some(4));%0A++++assert_eq!(%22abcddd_z%22.find(%7Cch%7C+ch+%3E+'d'+%26%26+ch+%3C+'y'),+None);%0A%7D&amp;edition=2021"></a></div>
57 </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.Searcher"·class="method"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/str/pattern.rs.html#101">Source</a><h4·class="code-header">type·<a·href="#associatedtype.Searcher"·class="associatedtype">Searcher</a>&lt;'a&gt;:·<a·class="trait"·href="trait.Searcher.html"·title="trait·alloc::str::pattern::Searcher">Searcher</a>&lt;'a&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span></summary><div·class="docblock"><p>Associated·searcher·for·this·pattern</p>57 </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.Searcher"·class="method"><a·class="src·rightside"·href="../../../src/core/str/pattern.rs.html#101">Source</a><h4·class="code-header">type·<a·href="#associatedtype.Searcher"·class="associatedtype">Searcher</a>&lt;'a&gt;:·<a·class="trait"·href="trait.Searcher.html"·title="trait·alloc::str::pattern::Searcher">Searcher</a>&lt;'a&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span></summary><div·class="docblock"><p>Associated·searcher·for·this·pattern</p>
58 </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.into_searcher"·class="method"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/str/pattern.rs.html#105">Source</a><h4·class="code-header">fn·<a·href="#tymethod.into_searcher"·class="fn">into_searcher</a>(self,·haystack:·&amp;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.str.html">str</a>)·-&gt;·Self::<a·class="associatedtype"·href="trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</a>&lt;'_&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span></summary><div·class="docblock"><p>Constructs·the·associated·searcher·from58 </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.into_searcher"·class="method"><a·class="src·rightside"·href="../../../src/core/str/pattern.rs.html#105">Source</a><h4·class="code-header">fn·<a·href="#tymethod.into_searcher"·class="fn">into_searcher</a>(self,·haystack:·&amp;<a·class="primitive"·href="../../../core/primitive.str.html">str</a>)·-&gt;·Self::<a·class="associatedtype"·href="trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</a>&lt;'_&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span></summary><div·class="docblock"><p>Constructs·the·associated·searcher·from
59 <code>self</code>·and·the·<code>haystack</code>·to·search·in.</p>59 <code>self</code>·and·the·<code>haystack</code>·to·search·in.</p>
60 </div></details></div><h2·id="provided-methods"·class="section-header">Provided·Methods<a·href="#provided-methods"·class="anchor">§</a></h2><div·class="methods"><details·class="toggle·method-toggle"·open><summary><section·id="method.is_contained_in"·class="method"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/str/pattern.rs.html#109">Source</a><h4·class="code-header">fn·<a·href="#method.is_contained_in"·class="fn">is_contained_in</a>(self,·haystack:·&amp;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/p[·...·truncated·by·diffoscope;·len:·93,·SHA:·307186441b78d766addf69de37bf3b433eea27461f51e7bcfa319c1eb58a5f3c·...·]/core/primitive.bool.html">bool</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span></summary><div·class="docblock"><p>Checks·whether·the·pattern·matches·anywhere·in·the·haystack</p>60 </div></details></div><h2·id="provided-methods"·class="section-header">Provided·Methods<a·href="#provided-methods"·class="anchor">§</a></h2><div·class="methods"><details·class="toggle·method-toggle"·open><summary><section·id="method.is_contained_in"·class="method"><a·class="src·rightside"·href="../../../src/core/str/pattern.rs.html#109">Source</a><h4·class="code-header">fn·<a·href="#method.is_contained_in"·class="fn">is_contained_in</a>(self,·haystack:·&amp;<a·class="primitive"·href="../../../core/primitive.str.html">str</a>)·-&gt;·<a·class="prim[·...·truncated·by·diffoscope;·len:·21,·SHA:·6b97e7905fbde03a3290e8cb2fa99b3ddff9c97c235050beb2ee15e19cca7097·...·]/core/primitive.bool.html">bool</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span></summary><div·class="docblock"><p>Checks·whether·the·pattern·matches·anywhere·in·the·haystack</p>
61 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_prefix_of"·class="method"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/str/pattern.rs.html#115">Source</a><h4·class="code-header">fn·<a·href="#method.is_prefix_of"·class="fn">is_prefix_of</a>(self,·haystack:·&amp;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primiti[·...·truncated·by·diffoscope;·len:·87,·SHA:·d2ec55f43a96fb5c000827c5d9865072fe1434c411f63aa8a6bf4e25a265c35d·...·]/core/primitive.bool.html">bool</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span></summary><div·class="docblock"><p>Checks·whether·the·pattern·matches·at·the·front·of·the·haystack</p>61 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_prefix_of"·class="method"><a·class="src·rightside"·href="../../../src/core/str/pattern.rs.html#115">Source</a><h4·class="code-header">fn·<a·href="#method.is_prefix_of"·class="fn">is_prefix_of</a>(self,·haystack:·&amp;<a·class="primitive"·href="../../../core/primitive.str.html">str</a>)·-&gt;·<a·class="primitive"[·...·truncated·by·diffoscope;·len:·15,·SHA:·6e453d23340d3cf3b18e99907e86744ab832fd41fe34ed82f86e8fd90142b8cc·...·]/core/primitive.bool.html">bool</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span></summary><div·class="docblock"><p>Checks·whether·the·pattern·matches·at·the·front·of·the·haystack</p>
62 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_suffix_of"·class="method"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/str/pattern.rs.html#121-123">Source</a><h4·class="code-header">fn·<a·href="#method.is_suffix_of"·class="fn">is_suffix_of</a>&lt;'a&gt;(self,·haystack:·&amp;'a·<a·class="primitive"·href="https://doc.rust-lang.org/1.[·...·truncated·by·diffoscope;·len:·104,·SHA:·1152895de9b744f5b85d19fbbf537a10d917cceeb56ed40fc754058371c58fe0·...·]/core/primitive.bool.html">bool</a><div·class="where">where62 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_suffix_of"·class="method"><a·class="src·rightside"·href="../../../src/core/str/pattern.rs.html#121-123">Source</a><h4·class="code-header">fn·<a·href="#method.is_suffix_of"·class="fn">is_suffix_of</a>&lt;'a&gt;(self,·haystack:·&amp;'a·<a·class="primitive"·href="../../../core/primitive.str.html">str</a>)·-&gt;·<a·[·...·truncated·by·diffoscope;·len:·32,·SHA:·60e480a68f9a3a2a87d93d45a3cd5e057fe7a084e2495dc1e26fb0ae7a0c2530·...·]/core/primitive.bool.html">bool</a><div·class="where">where
63 ····Self::<a·class="associatedtype"·href="trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</a>&lt;'a&gt;:·<a·class="trait"·href="trait.ReverseSearcher.html"·title="trait·alloc::str::pattern::ReverseSearcher">ReverseSearcher</a>&lt;'a&gt;,</div></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span></summary><div·class="docblock"><p>Checks·whether·the·pattern·matches·at·the·back·of·the·haystack</p>63 ····Self::<a·class="associatedtype"·href="trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</a>&lt;'a&gt;:·<a·class="trait"·href="trait.ReverseSearcher.html"·title="trait·alloc::str::pattern::ReverseSearcher">ReverseSearcher</a>&lt;'a&gt;,</div></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span></summary><div·class="docblock"><p>Checks·whether·the·pattern·matches·at·the·back·of·the·haystack</p>
64 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.strip_prefix_of"·class="method"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/str/pattern.rs.html#130">Source</a><h4·class="code-header">fn·<a·href="#method.strip_prefix_of"·class="fn">strip_prefix_of</a>(self,·haystack:·&amp;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/p[·...·truncated·by·diffoscope;·len:·231,·SHA:·0571f08a1c8fb3af6e473df07c8121cc2485fe6159364418ed14691ca21ff7a5·...·]/core/primitive.str.html">str</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span></summary><div·class="docblock"><p>Removes·the·pattern·from·the·front·of·haystack,·if·it·matches.</p>64 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.strip_prefix_of"·class="method"><a·class="src·rightside"·href="../../../src/core/str/pattern.rs.html#130">Source</a><h4·class="code-header">fn·<a·href="#method.strip_prefix_of"·class="fn">strip_prefix_of</a>(self,·haystack:·&amp;<a·class="primitive"·href="../../../core/primitive.str.html">str</a>)·-&gt;·<a·class="enum[·...·truncated·by·diffoscope;·len:·135,·SHA:·da3d9d910fa58153025eee0e18d8968baaa728fcc01fc701d133ccdc79e0344a·...·]/core/primitive.str.html">str</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span></summary><div·class="docblock"><p>Removes·the·pattern·from·the·front·of·haystack,·if·it·matches.</p>
65 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.strip_suffix_of"·class="method"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/str/pattern.rs.html#146-148">Source</a><h4·class="code-header">fn·<a·href="#method.strip_suffix_of"·class="fn">strip_suffix_of</a>&lt;'a&gt;(self,·haystack:·&amp;'a·<a·class="primitive"·href="https://doc.rust-lang.[·...·truncated·by·diffoscope;·len:·251,·SHA:·f3f39a114bb0b1e1c68d9e62b46930de8cf06da789d973994c91da1ecfa6d9e2·...·]/core/primitive.str.html">str</a>&gt;<div·class="where">where65 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.strip_suffix_of"·class="method"><a·class="src·rightside"·href="../../../src/core/str/pattern.rs.html#146-148">Source</a><h4·class="code-header">fn·<a·href="#method.strip_suffix_of"·class="fn">strip_suffix_of</a>&lt;'a&gt;(self,·haystack:·&amp;'a·<a·class="primitive"·href="../../../core/primitive.str.html">str</a>)·-&g[·...·truncated·by·diffoscope;·len:·155,·SHA:·0be148cd052a104d8cb499f46177fea2a44f49d5d845002c73c60aa86b1488f5·...·]/core/primitive.str.html">str</a>&gt;<div·class="where">where
66 ····Self::<a·class="associatedtype"·href="trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</a>&lt;'a&gt;:·<a·class="trait"·href="trait.ReverseSearcher.html"·title="trait·alloc::str::pattern::ReverseSearcher">ReverseSearcher</a>&lt;'a&gt;,</div></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span></summary><div·class="docblock"><p>Removes·the·pattern·from·the·back·of·haystack,·if·it·matches.</p>66 ····Self::<a·class="associatedtype"·href="trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</a>&lt;'a&gt;:·<a·class="trait"·href="trait.ReverseSearcher.html"·title="trait·alloc::str::pattern::ReverseSearcher">ReverseSearcher</a>&lt;'a&gt;,</div></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span></summary><div·class="docblock"><p>Removes·the·pattern·from·the·back·of·haystack,·if·it·matches.</p>
67 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.as_utf8_pattern"·class="method"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/str/pattern.rs.html#165">Source</a><h4·class="code-header">fn·<a·href="#method.as_utf8_pattern"·class="fn">as_utf8_pattern</a>(&amp;self)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="enum"·href="enum.Utf8Pattern.html"·title="enum·alloc::str::pattern::Utf8Pattern">Utf8Pattern</a>&lt;'_&gt;&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span></summary><div·class="docblock"><p>Returns·the·pattern·as·utf-8·bytes·if·possible.</p>67 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.as_utf8_pattern"·class="method"><a·class="src·rightside"·href="../../../src/core/str/pattern.rs.html#165">Source</a><h4·class="code-header">fn·<a·href="#method.as_utf8_pattern"·class="fn">as_utf8_pattern</a>(&amp;self)·-&gt;·<a·class="enum"·href="../../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="enum"·href="enum.Utf8Pattern.html"·title="enum·alloc::str::pattern::Utf8Pattern">Utf8Pattern</a>&lt;'_&gt;&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span></summary><div·class="docblock"><p>Returns·the·pattern·as·utf-8·bytes·if·possible.</p>
68 </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.84.0/reference/items/traits.html#object-safety">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="implementors"·class="section-header">Implementors<a·href="#implementors"·class="anchor">§</a></h2><div·id="implementors-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-Pattern-for-char"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/str/pattern.rs.html#560">Source</a><a·href="#impl-Pattern-for-char"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>[·...·truncated·by·diffoscope;·len:·235,·SHA:·dd69c5af4e1ac3c144742dbfeb9df10a62170920547514e6c76a0a5025a8c922·...·]/core/primitive.char.html"·title="primitive·char"><code>char</code></a>.</p>68 </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.84.0/reference/items/traits.html#object-safety">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="implementors"·class="section-header">Implementors<a·href="#implementors"·class="anchor">§</a></h2><div·id="implementors-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-Pattern-for-char"·class="impl"><a·class="src·rightside"·href="../../../src/core/str/pattern.rs.html#560">Source</a><a·href="#impl-Pattern-for-char"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>·for·<a·class="primitive[·...·truncated·by·diffoscope;·len:·163,·SHA:·c75bf660a6eac9dae7b9691ded29108e67f976518d2e37a74db7e2b197af3f99·...·]/core/primitive.char.html"·title="primitive·char"><code>char</code></a>.</p>
69 <h4·id="examples-1"><a·class="doc-anchor"·href="#examples-1">§</a>Examples</h4>69 <h4·id="examples-1"><a·class="doc-anchor"·href="#examples-1">§</a>Examples</h4>
70 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="macro">assert_eq!</span>(<span·class="string">"Hello·world"</span>.find(<span·class="string">'o'</span>),·<span·class="prelude-val">Some</span>(<span·class="number">4</span>));</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++assert_eq!(%22Hello+world%22.find('o'),+Some(4));%0A%7D&amp;edition=2021"></a></div>70 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="macro">assert_eq!</span>(<span·class="string">"Hello·world"</span>.find(<span·class="string">'o'</span>),·<span·class="prelude-val">Some</span>(<span·class="number">4</span>));</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++assert_eq!(%22Hello+world%22.find('o'),+Some(4));%0A%7D&amp;edition=2021"></a></div>
71 </div><div·class="impl-items"><section·id="associatedtype.Searcher-1"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/str/pattern.rs.html#561">Source</a><a·href="#associatedtype.Searcher-1"·class="anchor">§</a><h4·class="code-header">type·<a·href="#associatedtype.Searcher"·class="associatedtype">Searcher</a>&lt;'a&gt;·=·<a·class="[·...·truncated·by·diffoscope;·len:·621,·SHA:·6f22121d1b6aade6dfc39db0bfd593cd46954d86fcdc343a219219fe4db3e7e0·...·]/core/primitive.str.html">str</a></h3></section></summary><div·class="docblock"><p>Non-allocating·substring·search.</p>71 </div><div·class="impl-items"><section·id="associatedtype.Searcher-1"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../../src/core/str/pattern.rs.html#561">Source</a><a·href="#associatedtype.Searcher-1"·class="anchor">§</a><h4·class="code-header">type·<a·href="#associatedtype.Searcher"·class="associatedtype">Searcher</a>&lt;'a&gt;·=·<a·class="struct"·href="struct.Cha[·...·truncated·by·diffoscope;·len:·549,·SHA:·c91dd9d58383041c97c94d0cfe64c3ccbaf22808e80e2057ec742b2d85a40cfe·...·]/core/primitive.str.html">str</a></h3></section></summary><div·class="docblock"><p>Non-allocating·substring·search.</p>
72 <p>Will·handle·the·pattern·<code>""</code>·as·returning·empty·matches·at·each·character72 <p>Will·handle·the·pattern·<code>""</code>·as·returning·empty·matches·at·each·character
73 boundary.</p>73 boundary.</p>
74 <h4·id="examples-2"><a·class="doc-anchor"·href="#examples-2">§</a>Examples</h4>74 <h4·id="examples-2"><a·class="doc-anchor"·href="#examples-2">§</a>Examples</h4>
75 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="macro">assert_eq!</span>(<span·class="string">"Hello·world"</span>.find(<span·class="string">"world"</span>),·<span·class="prelude-val">Some</span>(<span·class="number">6</span>));</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++assert_eq!(%22Hello+world%22.find(%22world%22),+Some(6));%0A%7D&amp;edition=2021"></a></div>75 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="macro">assert_eq!</span>(<span·class="string">"Hello·world"</span>.find(<span·class="string">"world"</span>),·<span·class="prelude-val">Some</span>(<span·class="number">6</span>));</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++assert_eq!(%22Hello+world%22.find(%22world%22),+Some(6));%0A%7D&amp;edition=2021"></a></div>
76 </div><div·class="impl-items"><section·id="associatedtype.Searcher-2"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/str/pattern.rs.html#972">Source</a><a·href="#associatedtype.Searcher-2"·class="anchor">§</a><h4·class="code-header">type·<a·href="#associatedtype.Searcher"·class="associatedtype">Searcher</a>&lt;'a&gt;·=·<a·class="struct"·href="struct.StrSearcher.html"·title="struct·alloc::str::pattern::StrSearcher">StrSearcher</a>&lt;'a,·'b&gt;</h4></section></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Pattern-for-%26String"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/string.rs.html#2402-2444">Source</a><a·href="#impl-Pattern-for-%26String"·class="anchor">§</a><h3·class="code-header">impl&lt;'b&gt;·<a·class="trait"·href="trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>·for·&amp;'b·<a·class="struct"·href="../../string/struct.String.html"·title="struct·alloc::string::String">String</a></h3></section></summary><div·class="docblock"><p>A·convenience·impl·that·delegates·to·the·impl·for·<code>&amp;str</code>.</p>76 </div><div·class="impl-items"><section·id="associatedtype.Searcher-2"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../../src/core/str/pattern.rs.html#972">Source</a><a·href="#associatedtype.Searcher-2"·class="anchor">§</a><h4·class="code-header">type·<a·href="#associatedtype.Searcher"·class="associatedtype">Searcher</a>&lt;'a&gt;·=·<a·class="struct"·href="struct.StrSearcher.html"·title="struct·alloc::str::pattern::StrSearcher">StrSearcher</a>&lt;'a,·'b&gt;</h4></section></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Pattern-for-%26String"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/string.rs.html#2402-2444">Source</a><a·href="#impl-Pattern-for-%26String"·class="anchor">§</a><h3·class="code-header">impl&lt;'b&gt;·<a·class="trait"·href="trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>·for·&amp;'b·<a·class="struct"·href="../../string/struct.String.html"·title="struct·alloc::string::String">String</a></h3></section></summary><div·class="docblock"><p>A·convenience·impl·that·delegates·to·the·impl·for·<code>&amp;str</code>.</p>
77 <h4·id="examples-3"><a·class="doc-anchor"·href="#examples-3">§</a>Examples</h4>77 <h4·id="examples-3"><a·class="doc-anchor"·href="#examples-3">§</a>Examples</h4>
78 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="macro">assert_eq!</span>(String::from(<span·class="string">"Hello·world"</span>).find(<span·class="string">"world"</span>),·<span·class="prelude-val">Some</span>(<span·class="number">6</span>));</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++assert_eq!(String::from(%22Hello+world%22).find(%22world%22),+Some(6));%0A%7D&amp;edition=2021"></a></div>78 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="macro">assert_eq!</span>(String::from(<span·class="string">"Hello·world"</span>).find(<span·class="string">"world"</span>),·<span·class="prelude-val">Some</span>(<span·class="number">6</span>));</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++assert_eq!(String::from(%22Hello+world%22).find(%22world%22),+Some(6));%0A%7D&amp;edition=2021"></a></div>
79 </div><div·class="impl-items"><section·id="associatedtype.Searcher-3"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../../src/alloc/string.rs.html#2403">Source</a><a·href="#associatedtype.Searcher-3"·class="anchor">§</a><h4·class="code-header">type·<a·href="#associatedtype.Searcher"·class="associatedtype">Searcher</a>&lt;'a&gt;·=·&lt;&amp;'b·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.str.html">str</a>·as·<a·class="trait"·href="trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&gt;::<a·class="associatedtype"·href="trait.Pattern.html#associatedtype.Searcher"·title="t[·...·truncated·by·diffoscope;·len:·762,·SHA:·71475933d127a9c7ceb8c55fb52be4fb8f03f842d3edb0fc39d522674b402573·...·]/core/primitive.char.html"·title="primitive·char"><code>char</code></a>s·in·the·slice.</p>79 </div><div·class="impl-items"><section·id="associatedtype.Searcher-3"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../../src/alloc/string.rs.html#2403">Source</a><a·href="#associatedtype.Searcher-3"·class="anchor">§</a><h4·class="code-header">type·<a·href="#associatedtype.Searcher"·class="associatedtype">Searcher</a>&lt;'a&gt;·=·&lt;&amp;'b·<a·class="primitive"·href="../../../core/primitive.str.html">str</a>·as·<a·class="trait"·href="trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&gt;::<a·class="associatedtype"·href="trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern:[·...·truncated·by·diffoscope;·len:·666,·SHA:·3390039f1a128e098de049c034fc2f6e595b15f75b26d6c7d90a34c362fda2e4·...·]/core/primitive.char.html"·title="primitive·char"><code>char</code></a>s·in·the·slice.</p>
80 <h4·id="examples-4"><a·class="doc-anchor"·href="#examples-4">§</a>Examples</h4>80 <h4·id="examples-4"><a·class="doc-anchor"·href="#examples-4">§</a>Examples</h4>
81 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="macro">assert_eq!</span>(<span·class="string">"Hello·world"</span>.find(<span·class="kw-2">&amp;</span>[<span·class="string">'o'</span>,·<span·class="string">'l'</span>][..]),·<span·class="prelude-val">Some</span>(<span·class="number">2</span>));81 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="macro">assert_eq!</span>(<span·class="string">"Hello·world"</span>.find(<span·class="kw-2">&amp;</span>[<span·class="string">'o'</span>,·<span·class="string">'l'</span>][..]),·<span·class="prelude-val">Some</span>(<span·class="number">2</span>));
82 <span·class="macro">assert_eq!</span>(<span·class="string">"Hello·world"</span>.find(<span·class="kw-2">&amp;</span>[<span·class="string">'h'</span>,·<span·class="string">'w'</span>][..]),·<span·class="prelude-val">Some</span>(<span·class="number">6</span>));</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++assert_eq!(%22Hello+world%22.find(%26%5B'o',+'l'%5D%5B..%5D),+Some(2));%0A++++assert_eq!(%22Hello+world%22.find(%26%5B'h',+'w'%5D%5B..%5D),+Some(6));%0A%7D&amp;edition=2021"></a></div>82 <span·class="macro">assert_eq!</span>(<span·class="string">"Hello·world"</span>.find(<span·class="kw-2">&amp;</span>[<span·class="string">'h'</span>,·<span·class="string">'w'</span>][..]),·<span·class="prelude-val">Some</span>(<span·class="number">6</span>));</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++assert_eq!(%22Hello+world%22.find(%26%5B'o',+'l'%5D%5B..%5D),+Some(2));%0A++++assert_eq!(%22Hello+world%22.find(%26%5B'h',+'w'%5D%5B..%5D),+Some(6));%0A%7D&amp;edition=2021"></a></div>
83 </div><div·class="impl-items"><section·id="associatedtype.Searcher-4"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/str/pattern.rs.html#893">Source</a><a·href="#associatedtype.Searcher-4"·class="anchor">§</a><h4·class="code-header">type·<a·href="#associatedtype.Searcher"·class="associatedtype">Searcher</a>&lt;'a&gt;·=·<a·class="[·...·truncated·by·diffoscope;·len:·658,·SHA:·5bb3800f46f10c8005cc10c155e5ae52a18bd2f304c9ef38ac67728284a2a807·...·]/core/primitive.str.html">str</a></h3></section></summary><div·class="docblock"><p>Delegates·to·the·<code>&amp;str</code>·impl.</p>83 </div><div·class="impl-items"><section·id="associatedtype.Searcher-4"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../../src/core/str/pattern.rs.html#893">Source</a><a·href="#associatedtype.Searcher-4"·class="anchor">§</a><h4·class="code-header">type·<a·href="#associatedtype.Searcher"·class="associatedtype">Searcher</a>&lt;'a&gt;·=·<a·class="struct"·href="struct.Cha[·...·truncated·by·diffoscope;·len:·586,·SHA:·d8e9d006a26d22a74982ab61f88c048bb4f2be3afb50c58bf991ca4c07f09f05·...·]/core/primitive.str.html">str</a></h3></section></summary><div·class="docblock"><p>Delegates·to·the·<code>&amp;str</code>·impl.</p>
84 </div><div·class="impl-items"><section·id="associatedtype.Searcher-5"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/str/pattern.rs.html#954">Source</a><a·href="#associatedtype.Searcher-5"·class="anchor">§</a><h4·class="code-header">type·<a·href="#associatedtype.Searcher"·class="associatedtype">Searcher</a>&lt;'a&gt;·=·<a·class="[·...·truncated·by·diffoscope;·len:·1019,·SHA:·009ed2190e5c344cdbf4122e693800b059dc7022bd875d919d37c7bbbb30e12e·...·]/core/primitive.char.html"·title="primitive·char"><code>char</code></a>s·in·the·array.</p>84 </div><div·class="impl-items"><section·id="associatedtype.Searcher-5"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../../src/core/str/pattern.rs.html#954">Source</a><a·href="#associatedtype.Searcher-5"·class="anchor">§</a><h4·class="code-header">type·<a·href="#associatedtype.Searcher"·class="associatedtype">Searcher</a>&lt;'a&gt;·=·<a·class="struct"·href="struct.Str[·...·truncated·by·diffoscope;·len:·875,·SHA:·5952d265399cb77d2c75503c7ee10cd5b2dafd40655b706b0267f1bbd8cfd669·...·]/core/primitive.char.html"·title="primitive·char"><code>char</code></a>s·in·the·array.</p>
85 <h4·id="examples-5"><a·class="doc-anchor"·href="#examples-5">§</a>Examples</h4>85 <h4·id="examples-5"><a·class="doc-anchor"·href="#examples-5">§</a>Examples</h4>
86 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="macro">assert_eq!</span>(<span·class="string">"Hello·world"</span>.find(<span·class="kw-2">&amp;</span>[<span·class="string">'o'</span>,·<span·class="string">'l'</span>]),·<span·class="prelude-val">Some</span>(<span·class="number">2</span>));86 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="macro">assert_eq!</span>(<span·class="string">"Hello·world"</span>.find(<span·class="kw-2">&amp;</span>[<span·class="string">'o'</span>,·<span·class="string">'l'</span>]),·<span·class="prelude-val">Some</span>(<span·class="number">2</span>));
87 <span·class="macro">assert_eq!</span>(<span·class="string">"Hello·world"</span>.find(<span·class="kw-2">&amp;</span>[<span·class="string">'h'</span>,·<span·class="string">'w'</span>]),·<span·class="prelude-val">Some</span>(<span·class="number">6</span>));</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++assert_eq!(%22Hello+world%22.find(%26%5B'o',+'l'%5D),+Some(2));%0A++++assert_eq!(%22Hello+world%22.find(%26%5B'h',+'w'%5D),+Some(6));%0A%7D&amp;edition=2021"></a></div>87 <span·class="macro">assert_eq!</span>(<span·class="string">"Hello·world"</span>.find(<span·class="kw-2">&amp;</span>[<span·class="string">'h'</span>,·<span·class="string">'w'</span>]),·<span·class="prelude-val">Some</span>(<span·class="number">6</span>));</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++assert_eq!(%22Hello+world%22.find(%26%5B'o',+'l'%5D),+Some(2));%0A++++assert_eq!(%22Hello+world%22.find(%26%5B'h',+'w'%5D),+Some(6));%0A%7D&amp;edition=2021"></a></div>
88 </div><div·class="impl-items"><section·id="associatedtype.Searcher-6"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/str/pattern.rs.html#851">Source</a><a·href="#associatedtype.Searcher-6"·class="anchor">§</a><h4·class="code-header">type·<a·href="#associatedtype.Searcher"·class="associatedtype">Searcher</a>&lt;'a&gt;·=·<a·class="[·...·truncated·by·diffoscope;·len:·339,·SHA:·4c47e82c5448b7da9edbc1dc8e9e57a11fe8ac93ffc3588b3c06466625e51d39·...·]/src/core/str/pattern.rs.html#941-943">Source</a><a·href="#impl-Pattern-for-F"·class="anchor">§</a><h3·class="code-header">impl&lt;F&gt;·<a·class="trait"·href="trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>·for·F<div·class="where">where88 </div><div·class="impl-items"><section·id="associatedtype.Searcher-6"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../../src/core/str/pattern.rs.html#851">Source</a><a·href="#associatedtype.Searcher-6"·class="anchor">§</a><h4·class="code-header">type·<a·href="#associatedtype.Searcher"·class="associatedtype">Searcher</a>&lt;'a&gt;·=·<a·class="struct"·href="struct.Cha[·...·truncated·by·diffoscope;·len:·291,·SHA:·905bf625037a3fc7a9e0e086076c24a632dada4a54156230a5595f0636d755d5·...·]/src/core/str/pattern.rs.html#941-943">Source</a><a·href="#impl-Pattern-for-F"·class="anchor">§</a><h3·class="code-header">impl&lt;F&gt;·<a·class="trait"·href="trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>·for·F<div·class="where">where
89 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.char.html">char</a>)·-&gt;·<a·class="primitive"·href="https:/[·...·truncated·by·diffoscope;·len:·171,·SHA:·b1544863908550880f99658eb3bd365ecafc9a41fb8514b3301a54f11c417e5c·...·]/core/primitive.char.html"·title="primitive·char"><code>char</code></a>s·that·match·the·given·predicate.</p>89 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../../core/primitive.char.html">char</a>)·-&gt;·<a·class="primitive"·href="../../../core/primitive.bool.html">bool</a>,</div></h3>[·...·truncated·by·diffoscope;·len:·75,·SHA:·d45319a162998ed87fbb396c70347848bb1cdbc8b1f2736a22a56333a5bbcb8d·...·]/core/primitive.char.html"·title="primitive·char"><code>char</code></a>s·that·match·the·given·predicate.</p>
90 <h4·id="examples-6"><a·class="doc-anchor"·href="#examples-6">§</a>Examples</h4>90 <h4·id="examples-6"><a·class="doc-anchor"·href="#examples-6">§</a>Examples</h4>
91 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="macro">assert_eq!</span>(<span·class="string">"Hello·world"</span>.find(char::is_uppercase),·<span·class="prelude-val">Some</span>(<span·class="number">0</span>));91 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="macro">assert_eq!</span>(<span·class="string">"Hello·world"</span>.find(char::is_uppercase),·<span·class="prelude-val">Some</span>(<span·class="number">0</span>));
92 <span·class="macro">assert_eq!</span>(<span·class="string">"Hello·world"</span>.find(|c|·<span·class="string">"aeiou"</span>.contains(c)),·<span·class="prelude-val">Some</span>(<span·class="number">1</span>));</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++assert_eq!(%22Hello+world%22.find(char::is_uppercase),+Some(0));%0A++++assert_eq!(%22Hello+world%22.find(%7Cc%7C+%22aeiou%22.contains(c)),+Some(1));%0A%7D&amp;edition=2021"></a></div>92 <span·class="macro">assert_eq!</span>(<span·class="string">"Hello·world"</span>.find(|c|·<span·class="string">"aeiou"</span>.contains(c)),·<span·class="prelude-val">Some</span>(<span·class="number">1</span>));</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++assert_eq!(%22Hello+world%22.find(char::is_uppercase),+Some(0));%0A++++assert_eq!(%22Hello+world%22.find(%7Cc%7C+%22aeiou%22.contains(c)),+Some(1));%0A%7D&amp;edition=2021"></a></div>
93 </div><div·class="impl-items"><section·id="associatedtype.Searcher-7"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/str/pattern.rs.html#945">Source</a><a·href="#associatedtype.Searcher-7"·class="anchor">§</a><h4·class="code-header">type·<a·href="#associatedtype.Searcher"·class="associatedtype">Searcher</a>&lt;'a&gt;·=·<a·class="[·...·truncated·by·diffoscope;·len:·1030,·SHA:·bf8c1a3c38420bac164570f69f5f2fab439a7a3608a4c65f6df9b844bf670606·...·]/core/primitive.char.html"·title="primitive·char"><code>char</code></a>s·in·the·array.</p>93 </div><div·class="impl-items"><section·id="associatedtype.Searcher-7"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../../src/core/str/pattern.rs.html#945">Source</a><a·href="#associatedtype.Searcher-7"·class="anchor">§</a><h4·class="code-header">type·<a·href="#associatedtype.Searcher"·class="associatedtype">Searcher</a>&lt;'a&gt;·=·<a·class="struct"·href="struct.Cha[·...·truncated·by·diffoscope;·len:·886,·SHA:·f4cbc3de3a9d7314054273172f5ff5bbfde8a2065498f32d9ca2cb559decc2a4·...·]/core/primitive.char.html"·title="primitive·char"><code>char</code></a>s·in·the·array.</p>
94 <h4·id="examples-7"><a·class="doc-anchor"·href="#examples-7">§</a>Examples</h4>94 <h4·id="examples-7"><a·class="doc-anchor"·href="#examples-7">§</a>Examples</h4>
95 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="macro">assert_eq!</span>(<span·class="string">"Hello·world"</span>.find([<span·class="string">'o'</span>,·<span·class="string">'l'</span>]),·<span·class="prelude-val">Some</span>(<span·class="number">2</span>));95 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="macro">assert_eq!</span>(<span·class="string">"Hello·world"</span>.find([<span·class="string">'o'</span>,·<span·class="string">'l'</span>]),·<span·class="prelude-val">Some</span>(<span·class="number">2</span>));
96 <span·class="macro">assert_eq!</span>(<span·class="string">"Hello·world"</span>.find([<span·class="string">'h'</span>,·<span·class="string">'w'</span>]),·<span·class="prelude-val">Some</span>(<span·class="number">6</span>));</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++assert_eq!(%22Hello+world%22.find(%5B'o',+'l'%5D),+Some(2));%0A++++assert_eq!(%22Hello+world%22.find(%5B'h',+'w'%5D),+Some(6));%0A%7D&amp;edition=2021"></a></div>96 <span·class="macro">assert_eq!</span>(<span·class="string">"Hello·world"</span>.find([<span·class="string">'h'</span>,·<span·class="string">'w'</span>]),·<span·class="prelude-val">Some</span>(<span·class="number">6</span>));</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++assert_eq!(%22Hello+world%22.find(%5B'o',+'l'%5D),+Some(2));%0A++++assert_eq!(%22Hello+world%22.find(%5B'h',+'w'%5D),+Some(6));%0A%7D&amp;edition=2021"></a></div>
97 </div><div·class="impl-items"><section·id="associatedtype.Searcher-8"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/str/pattern.rs.html#829">Source</a><a·href="#associatedtype.Searcher-8"·class="anchor">§</a><h4·class="code-header">type·<a·href="#associatedtype.Searcher"·class="associatedtype">Searcher</a>&lt;'a&gt;·=·<a·class="struct"·href="struct.CharArraySearcher.html"·title="struct·alloc::str::pattern::CharArraySearcher">CharArraySearcher</a>&lt;'a,·N&gt;</h4></section></div></details></div><script·src="../../../trait.impl/core/str/pattern/trait.Pattern.js"·data-ignore-extern-crates="core"·async></script></section></div></main></body></html>97 </div><div·class="impl-items"><section·id="associatedtype.Searcher-8"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../../src/core/str/pattern.rs.html#829">Source</a><a·href="#associatedtype.Searcher-8"·class="anchor">§</a><h4·class="code-header">type·<a·href="#associatedtype.Searcher"·class="associatedtype">Searcher</a>&lt;'a&gt;·=·<a·class="struct"·href="struct.CharArraySearcher.html"·title="struct·alloc::str::pattern::CharArraySearcher">CharArraySearcher</a>&lt;'a,·N&gt;</h4></section></div></details></div><script·src="../../../trait.impl/core/str/pattern/trait.Pattern.js"·data-ignore-extern-crates="core"·async></script></section></div></main></body></html>
27.6 KB
./usr/share/doc/rust-doc/html/alloc/str/pattern/trait.ReverseSearcher.html
    
Offset 1, 25 lines modifiedOffset 1, 25 lines modified
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="A·reverse·searcher·for·a·string·pattern."><title>ReverseSearcher·in·alloc::str::pattern·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»   2025-01-07)»(built»  from»      a»     source»       tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Reverse<wbr>Searcher</a></h2><h3><a·href="#required-methods">Required·Methods</a></h3><ul·class="block"><li><a·href="#tymethod.next_back"·title="next_back">next_back</a></li></ul><h3><a·href="#provided-methods">Provided·Methods</a></h3><ul·class="block"><li><a·href="#method.next_match_back"·title="next_match_back">next_match_back</a></li><li><a·href="#method.next_reject_back"·title="next_reject_back">next_reject_back</a></li></ul><h3><a·href="#implementors">Implementors</a></h3></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>str::<wbr>pattern</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">alloc</a>::<wbr><a·href="../index.html">str</a>::<wbr><a·href="index.html">pattern</a></span><h1>Trait·<span·class="trait">ReverseSearcher</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="https://doc.rust-lang.org/1.84.0/src/core/str/pattern.rs.html#288">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·unsafe·trait·ReverseSearcher&lt;'a&gt;:·<a·class="trait"·href="trait.Searcher.html"·title="trait·alloc::str::pattern::Searcher">Searcher</a>&lt;'a&gt;·{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="A·reverse·searcher·for·a·string·pattern."><title>ReverseSearcher·in·alloc::str::pattern·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»   2025-01-07)»(built»  from»      a»     source»       tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Reverse<wbr>Searcher</a></h2><h3><a·href="#required-methods">Required·Methods</a></h3><ul·class="block"><li><a·href="#tymethod.next_back"·title="next_back">next_back</a></li></ul><h3><a·href="#provided-methods">Provided·Methods</a></h3><ul·class="block"><li><a·href="#method.next_match_back"·title="next_match_back">next_match_back</a></li><li><a·href="#method.next_reject_back"·title="next_reject_back">next_reject_back</a></li></ul><h3><a·href="#implementors">Implementors</a></h3></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>str::<wbr>pattern</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">alloc</a>::<wbr><a·href="../index.html">str</a>::<wbr><a·href="index.html">pattern</a></span><h1>Trait·<span·class="trait">ReverseSearcher</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/core/str/pattern.rs.html#288">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·unsafe·trait·ReverseSearcher&lt;'a&gt;:·<a·class="trait"·href="trait.Searcher.html"·title="trait·alloc::str::pattern::Searcher">Searcher</a>&lt;'a&gt;·{
2 ····//·Required·method2 ····//·Required·method
3 ····fn·<a·href="#tymethod.next_back"·class="fn">next_back</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="enum.SearchStep.html"·title="enum·alloc::str::pattern::SearchStep">SearchStep</a>;3 ····fn·<a·href="#tymethod.next_back"·class="fn">next_back</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="enum.SearchStep.html"·title="enum·alloc::str::pattern::SearchStep">SearchStep</a>;
  
4 ····//·Provided·methods4 ····//·Provided·methods
5 ····fn·<a·href="#method.next_match_back"·class="fn">next_match_back</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.usize.html">usize</a>,·<a·class="primitive"·href="https://doc.rust-la[·...·truncated·by·diffoscope;·len:·13,·SHA:·aaedfc5b86b9874d823cbfe8740eb3c70445e78747978958dcfaac30cd4e36f9·...·]/core/primitive.usize.html">usize</a>)&gt;·{·...·}5 ····fn·<a·href="#method.next_match_back"·class="fn">next_match_back</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="../../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;(<a·class="primitive"·href="../../../core/primitive.usize.html">usize</a>,·<a·class="primitive"·href="../../../core/primitive.usize.html">usize</a>)&gt;·{·...·}
6 <span·class="item-spacer"></span>····fn·<a·href="#method.next_reject_back"·class="fn">next_reject_back</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.usize.html">usize</a>,·<a·class="primitive"·href="https://doc.rust-la[·...·truncated·by·diffoscope;·len:·13,·SHA:·aaedfc5b86b9874d823cbfe8740eb3c70445e78747978958dcfaac30cd4e36f9·...·]/core/primitive.usize.html">usize</a>)&gt;·{·...·}6 <span·class="item-spacer"></span>····fn·<a·href="#method.next_reject_back"·class="fn">next_reject_back</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="../../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;(<a·class="primitive"·href="../../../core/primitive.usize.html">usize</a>,·<a·class="primitive"·href="../../../core/primitive.usize.html">usize</a>)&gt;·{·...·}
7 }</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>A·reverse·searcher·for·a·string·pattern.</p>7 }</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>A·reverse·searcher·for·a·string·pattern.</p>
8 <p>This·trait·provides·methods·for·searching·for·non-overlapping8 <p>This·trait·provides·methods·for·searching·for·non-overlapping
9 matches·of·a·pattern·starting·from·the·back·(right)·of·a·string.</p>9 matches·of·a·pattern·starting·from·the·back·(right)·of·a·string.</p>
10 <p>It·will·be·implemented·by·associated·<a·href="trait.Searcher.html"·title="trait·alloc::str::pattern::Searcher"><code>Searcher</code></a>10 <p>It·will·be·implemented·by·associated·<a·href="trait.Searcher.html"·title="trait·alloc::str::pattern::Searcher"><code>Searcher</code></a>
11 types·of·the·<a·href="trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern"><code>Pattern</code></a>·trait·if·the·pattern·supports·searching11 types·of·the·<a·href="trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern"><code>Pattern</code></a>·trait·if·the·pattern·supports·searching
12 for·it·from·the·back.</p>12 for·it·from·the·back.</p>
13 <p>The·index·ranges·returned·by·this·trait·are·not·required13 <p>The·index·ranges·returned·by·this·trait·are·not·required
14 to·exactly·match·those·of·the·forward·search·in·reverse.</p>14 to·exactly·match·those·of·the·forward·search·in·reverse.</p>
15 <p>For·the·reason·why·this·trait·is·marked·unsafe,·see·the15 <p>For·the·reason·why·this·trait·is·marked·unsafe,·see·the
16 parent·trait·<a·href="trait.Searcher.html"·title="trait·alloc::str::pattern::Searcher"><code>Searcher</code></a>.</p>16 parent·trait·<a·href="trait.Searcher.html"·title="trait·alloc::str::pattern::Searcher"><code>Searcher</code></a>.</p>
17 </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.next_back"·class="method"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/str/pattern.rs.html#310">Source</a><h4·class="code-header">fn·<a·href="#tymethod.next_back"·class="fn">next_back</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="enum.SearchStep.html"·title="enum·alloc::str::pattern::SearchStep">SearchStep</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span></summary><div·class="docblock"><p>Performs·the·next·search·step·starting·from·the·back.</p>17 </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.next_back"·class="method"><a·class="src·rightside"·href="../../../src/core/str/pattern.rs.html#310">Source</a><h4·class="code-header">fn·<a·href="#tymethod.next_back"·class="fn">next_back</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="enum.SearchStep.html"·title="enum·alloc::str::pattern::SearchStep">SearchStep</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span></summary><div·class="docblock"><p>Performs·the·next·search·step·starting·from·the·back.</p>
18 <ul>18 <ul>
19 <li>Returns·<a·href="enum.SearchStep.html#variant.Match"·title="variant·alloc::str::pattern::SearchStep::Match"><code>Match(a,·b)</code></a>·if·<code>haystack[a..b]</code>19 <li>Returns·<a·href="enum.SearchStep.html#variant.Match"·title="variant·alloc::str::pattern::SearchStep::Match"><code>Match(a,·b)</code></a>·if·<code>haystack[a..b]</code>
20 matches·the·pattern.</li>20 matches·the·pattern.</li>
21 <li>Returns·<a·href="enum.SearchStep.html#variant.Reject"·title="variant·alloc::str::pattern::SearchStep::Reject"><code>Reject(a,·b)</code></a>·if·<code>haystack[a..b]</code>21 <li>Returns·<a·href="enum.SearchStep.html#variant.Reject"·title="variant·alloc::str::pattern::SearchStep::Reject"><code>Reject(a,·b)</code></a>·if·<code>haystack[a..b]</code>
22 can·not·match·the·pattern,·even·partially.</li>22 can·not·match·the·pattern,·even·partially.</li>
23 <li>Returns·<a·href="enum.SearchStep.html#variant.Done"·title="variant·alloc::str::pattern::SearchStep::Done"><code>Done</code></a>·if·every·byte·of·the·haystack23 <li>Returns·<a·href="enum.SearchStep.html#variant.Done"·title="variant·alloc::str::pattern::SearchStep::Done"><code>Done</code></a>·if·every·byte·of·the·haystack
24 has·been·visited</li>24 has·been·visited</li>
Offset 30, 13 lines modifiedOffset 30, 13 lines modified
30 covering·the·whole·haystack,·and·laying·on·utf8·boundaries.</p>30 covering·the·whole·haystack,·and·laying·on·utf8·boundaries.</p>
31 <p>A·<a·href="enum.SearchStep.html#variant.Match"·title="variant·alloc::str::pattern::SearchStep::Match"><code>Match</code></a>·result·needs·to·contain·the·whole·matched31 <p>A·<a·href="enum.SearchStep.html#variant.Match"·title="variant·alloc::str::pattern::SearchStep::Match"><code>Match</code></a>·result·needs·to·contain·the·whole·matched
32 pattern,·however·<a·href="enum.SearchStep.html#variant.Reject"·title="variant·alloc::str::pattern::SearchStep::Reject"><code>Reject</code></a>·results·may·be·split·up32 pattern,·however·<a·href="enum.SearchStep.html#variant.Reject"·title="variant·alloc::str::pattern::SearchStep::Reject"><code>Reject</code></a>·results·may·be·split·up
33 into·arbitrary·many·adjacent·fragments.·Both·ranges·may·have·zero·length.</p>33 into·arbitrary·many·adjacent·fragments.·Both·ranges·may·have·zero·length.</p>
34 <p>As·an·example,·the·pattern·<code>"aaa"</code>·and·the·haystack·<code>"cbaaaaab"</code>34 <p>As·an·example,·the·pattern·<code>"aaa"</code>·and·the·haystack·<code>"cbaaaaab"</code>
35 might·produce·the·stream35 might·produce·the·stream
36 <code>[Reject(7,·8),·Match(4,·7),·Reject(1,·4),·Reject(0,·1)]</code>.</p>36 <code>[Reject(7,·8),·Match(4,·7),·Reject(1,·4),·Reject(0,·1)]</code>.</p>
37 </div></details></div><h2·id="provided-methods"·class="section-header">Provided·Methods<a·href="#provided-methods"·class="anchor">§</a></h2><div·class="methods"><details·class="toggle·method-toggle"·open><summary><section·id="method.next_match_back"·class="method"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/str/pattern.rs.html#315">Source</a><h4·class="code-header">fn·<a·href="#method.next_match_back"·class="fn">next_match_back</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/option[·...·truncated·by·diffoscope;·len:·225,·SHA:·24e5212fb29e0b11e811c6a30c47b55fd7f5c3eacd3e2abb37d8769e308c44e2·...·]/core/primitive.usize.html">usize</a>)&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span></summary><div·class="docblock"><p>Finds·the·next·<a·href="enum.SearchStep.html#variant.Match"·title="variant·alloc::str::pattern::SearchStep::Match"><code>Match</code></a>·result.37 </div></details></div><h2·id="provided-methods"·class="section-header">Provided·Methods<a·href="#provided-methods"·class="anchor">§</a></h2><div·class="methods"><details·class="toggle·method-toggle"·open><summary><section·id="method.next_match_back"·class="method"><a·class="src·rightside"·href="../../../src/core/str/pattern.rs.html#315">Source</a><h4·class="code-header">fn·<a·href="#method.next_match_back"·class="fn">next_match_back</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="../../../core/option/enum.Option.html"·title="enum·core::option::Opt[·...·truncated·by·diffoscope;·len:·129,·SHA:·c67ef3b39b688364517b9a7d154c053594de1ae8cd9bd41b7ce23583108d0f5d·...·]/core/primitive.usize.html">usize</a>)&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span></summary><div·class="docblock"><p>Finds·the·next·<a·href="enum.SearchStep.html#variant.Match"·title="variant·alloc::str::pattern::SearchStep::Match"><code>Match</code></a>·result.
38 See·<a·href="trait.ReverseSearcher.html#tymethod.next_back"·title="method·alloc::str::pattern::ReverseSearcher::next_back"><code>next_back()</code></a>.</p>38 See·<a·href="trait.ReverseSearcher.html#tymethod.next_back"·title="method·alloc::str::pattern::ReverseSearcher::next_back"><code>next_back()</code></a>.</p>
39 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.next_reject_back"·class="method"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/str/pattern.rs.html#328">Source</a><h4·class="code-header">fn·<a·href="#method.next_reject_back"·class="fn">next_reject_back</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/opti[·...·truncated·by·diffoscope;·len:·227,·SHA:·b6e316c3077d7c715a31de59dcac54b5f999548e620885cecb424e471dfa43d7·...·]/core/primitive.usize.html">usize</a>)&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span></summary><div·class="docblock"><p>Finds·the·next·<a·href="enum.SearchStep.html#variant.Reject"·title="variant·alloc::str::pattern::SearchStep::Reject"><code>Reject</code></a>·result.39 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.next_reject_back"·class="method"><a·class="src·rightside"·href="../../../src/core/str/pattern.rs.html#328">Source</a><h4·class="code-header">fn·<a·href="#method.next_reject_back"·class="fn">next_reject_back</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="../../../core/option/enum.Option.html"·title="enum·core::option::O[·...·truncated·by·diffoscope;·len:·131,·SHA:·233c4f5eb0acb2b11900bd9eedcb2a511fecf016874034faf4f50bdce54abf57·...·]/core/primitive.usize.html">usize</a>)&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span></summary><div·class="docblock"><p>Finds·the·next·<a·href="enum.SearchStep.html#variant.Reject"·title="variant·alloc::str::pattern::SearchStep::Reject"><code>Reject</code></a>·result.
40 See·<a·href="trait.ReverseSearcher.html#tymethod.next_back"·title="method·alloc::str::pattern::ReverseSearcher::next_back"><code>next_back()</code></a>.</p>40 See·<a·href="trait.ReverseSearcher.html#tymethod.next_back"·title="method·alloc::str::pattern::ReverseSearcher::next_back"><code>next_back()</code></a>.</p>
41 </div></details></div><h2·id="implementors"·class="section-header">Implementors<a·href="#implementors"·class="anchor">§</a></h2><div·id="implementors-list"><section·id="impl-ReverseSearcher%3C'a%3E-for-CharSearcher%3C'a%3E"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/str/pattern.rs.html#477">Source</a><a·href="#impl-ReverseSearcher%3C'a%3E-for-CharSearcher%3C'a%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a&gt;·<a·class="trait"·href="trait.ReverseSearcher.html"·titl[·...·truncated·by·diffoscope;·len:·2369,·SHA:·c706fd78a4990b8674e440385efd87a90723888df3e86fde62ba9db994d51fc7·...·]/src/core/str/pattern.rs.html#924-926">Source</a><a·href="#impl-ReverseSearcher%3C'a%3E-for-CharPredicateSearcher%3C'a,+F%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·F&gt;·<a·class="trait"·href="trait.ReverseSearcher.html"·title="trait·alloc::str::pattern::ReverseSearcher">ReverseSearcher</a>&lt;'a&gt;·for·<a·class="struct"·href="struct.CharPredicateSearcher.html"·title="struct·alloc::str::pattern::CharPredicateSearcher">CharPredicateSearcher</a>&lt;'a,·F&gt;<div·class="where">where41 </div></details></div><h2·id="implementors"·class="section-header">Implementors<a·href="#implementors"·class="anchor">§</a></h2><div·id="implementors-list"><section·id="impl-ReverseSearcher%3C'a%3E-for-CharSearcher%3C'a%3E"·class="impl"><a·class="src·rightside"·href="../../../src/core/str/pattern.rs.html#477">Source</a><a·href="#impl-ReverseSearcher%3C'a%3E-for-CharSearcher%3C'a%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a&gt;·<a·class="trait"·href="trait.ReverseSearcher.html"·title="trait·alloc::str::pat[·...·truncated·by·diffoscope;·len:·2225,·SHA:·fc2f72690fc5d16c373c6d5d7439bbf389da98b0068380d6384c50f7218c674c·...·]/src/core/str/pattern.rs.html#924-926">Source</a><a·href="#impl-ReverseSearcher%3C'a%3E-for-CharPredicateSearcher%3C'a,+F%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·F&gt;·<a·class="trait"·href="trait.ReverseSearcher.html"·title="trait·alloc::str::pattern::ReverseSearcher">ReverseSearcher</a>&lt;'a&gt;·for·<a·class="struct"·href="struct.CharPredicateSearcher.html"·title="struct·alloc::str::pattern::CharPredicateSearcher">CharPredicateSearcher</a>&lt;'a,·F&gt;<div·class="where">where
42 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.char.html">char</a>)·-&gt;·<a·class="primitive"·href="https:/[·...·truncated·by·diffoscope;·len:·476,·SHA:·70e340480547a04525f98ff55233f8ca36b0fb8817180492c057f540d5ffce22·...·]/core/primitive.usize.html">usize</a>&gt;·<a·class="trait"·href="trait.ReverseSearcher.html"·title="trait·alloc::str::pattern::ReverseSearcher">ReverseSearcher</a>&lt;'a&gt;·for·<a·class="struct"·href="struct.CharArraySearcher.html"·title="struct·alloc::str::pattern::CharArraySearcher">CharArraySearcher</a>&lt;'a,·N&gt;</h3></section></div><script·src="../../../trait.impl/core/str/pattern/trait.ReverseSearcher.js"·data-ignore-extern-crates="core"·async></script></section></div></main></body></html>42 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../../core/primitive.char.html">char</a>)·-&gt;·<a·class="primitive"·href="../../../core/primitive.bool.html">bool</a>,</div></h3>[·...·truncated·by·diffoscope;·len:·356,·SHA:·ce29f64a8cb47b378b14ab9c88bdfeb56b18f3bcfc035b0bc71cc9a2112e2180·...·]/core/primitive.usize.html">usize</a>&gt;·<a·class="trait"·href="trait.ReverseSearcher.html"·title="trait·alloc::str::pattern::ReverseSearcher">ReverseSearcher</a>&lt;'a&gt;·for·<a·class="struct"·href="struct.CharArraySearcher.html"·title="struct·alloc::str::pattern::CharArraySearcher">CharArraySearcher</a>&lt;'a,·N&gt;</h3></section></div><script·src="../../../trait.impl/core/str/pattern/trait.ReverseSearcher.js"·data-ignore-extern-crates="core"·async></script></section></div></main></body></html>
29.9 KB
./usr/share/doc/rust-doc/html/alloc/str/pattern/trait.Searcher.html
    
Offset 1, 27 lines modifiedOffset 1, 27 lines modified
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="A·searcher·for·a·string·pattern."><title>Searcher·in·alloc::str::pattern·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312» 2025-01-07)»      (built»from»    a»   source»     tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Searcher</a></h2><h3><a·href="#required-methods">Required·Methods</a></h3><ul·class="block"><li><a·href="#tymethod.haystack"·title="haystack">haystack</a></li><li><a·href="#tymethod.next"·title="next">next</a></li></ul><h3><a·href="#provided-methods">Provided·Methods</a></h3><ul·class="block"><li><a·href="#method.next_match"·title="next_match">next_match</a></li><li><a·href="#method.next_reject"·title="next_reject">next_reject</a></li></ul><h3><a·href="#implementors">Implementors</a></h3></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>str::<wbr>pattern</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">alloc</a>::<wbr><a·href="../index.html">str</a>::<wbr><a·href="index.html">pattern</a></span><h1>Trait·<span·class="trait">Searcher</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="https://doc.rust-lang.org/1.84.0/src/core/str/pattern.rs.html#211">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·unsafe·trait·Searcher&lt;'a&gt;·{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="A·searcher·for·a·string·pattern."><title>Searcher·in·alloc::str::pattern·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312» 2025-01-07)»      (built»from»    a»   source»     tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Searcher</a></h2><h3><a·href="#required-methods">Required·Methods</a></h3><ul·class="block"><li><a·href="#tymethod.haystack"·title="haystack">haystack</a></li><li><a·href="#tymethod.next"·title="next">next</a></li></ul><h3><a·href="#provided-methods">Provided·Methods</a></h3><ul·class="block"><li><a·href="#method.next_match"·title="next_match">next_match</a></li><li><a·href="#method.next_reject"·title="next_reject">next_reject</a></li></ul><h3><a·href="#implementors">Implementors</a></h3></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>str::<wbr>pattern</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">alloc</a>::<wbr><a·href="../index.html">str</a>::<wbr><a·href="index.html">pattern</a></span><h1>Trait·<span·class="trait">Searcher</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/core/str/pattern.rs.html#211">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·unsafe·trait·Searcher&lt;'a&gt;·{
2 ····//·Required·methods2 ····//·Required·methods
3 ····fn·<a·href="#tymethod.haystack"·class="fn">haystack</a>(&amp;self)·-&gt;·&amp;'a·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.str.html">str</a>;3 ····fn·<a·href="#tymethod.haystack"·class="fn">haystack</a>(&amp;self)·-&gt;·&amp;'a·<a·class="primitive"·href="../../../core/primitive.str.html">str</a>;
4 <span·class="item-spacer"></span>····fn·<a·href="#tymethod.next"·class="fn">next</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="enum.SearchStep.html"·title="enum·alloc::str::pattern::SearchStep">SearchStep</a>;4 <span·class="item-spacer"></span>····fn·<a·href="#tymethod.next"·class="fn">next</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="enum.SearchStep.html"·title="enum·alloc::str::pattern::SearchStep">SearchStep</a>;
  
5 ····//·Provided·methods5 ····//·Provided·methods
6 ····fn·<a·href="#method.next_match"·class="fn">next_match</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.usize.html">usize</a>,·<a·class="primitive"·href="https://doc.rust-la[·...·truncated·by·diffoscope;·len:·13,·SHA:·aaedfc5b86b9874d823cbfe8740eb3c70445e78747978958dcfaac30cd4e36f9·...·]/core/primitive.usize.html">usize</a>)&gt;·{·...·}6 ····fn·<a·href="#method.next_match"·class="fn">next_match</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="../../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;(<a·class="primitive"·href="../../../core/primitive.usize.html">usize</a>,·<a·class="primitive"·href="../../../core/primitive.usize.html">usize</a>)&gt;·{·...·}
7 <span·class="item-spacer"></span>····fn·<a·href="#method.next_reject"·class="fn">next_reject</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.usize.html">usize</a>,·<a·class="primitive"·href="https://doc.rust-la[·...·truncated·by·diffoscope;·len:·13,·SHA:·aaedfc5b86b9874d823cbfe8740eb3c70445e78747978958dcfaac30cd4e36f9·...·]/core/primitive.usize.html">usize</a>)&gt;·{·...·}7 <span·class="item-spacer"></span>····fn·<a·href="#method.next_reject"·class="fn">next_reject</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="../../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;(<a·class="primitive"·href="../../../core/primitive.usize.html">usize</a>,·<a·class="primitive"·href="../../../core/primitive.usize.html">usize</a>)&gt;·{·...·}
8 }</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>A·searcher·for·a·string·pattern.</p>8 }</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>A·searcher·for·a·string·pattern.</p>
9 <p>This·trait·provides·methods·for·searching·for·non-overlapping9 <p>This·trait·provides·methods·for·searching·for·non-overlapping
10 matches·of·a·pattern·starting·from·the·front·(left)·of·a·string.</p>10 matches·of·a·pattern·starting·from·the·front·(left)·of·a·string.</p>
11 <p>It·will·be·implemented·by·associated·<code>Searcher</code>11 <p>It·will·be·implemented·by·associated·<code>Searcher</code>
12 types·of·the·<a·href="trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern"><code>Pattern</code></a>·trait.</p>12 types·of·the·<a·href="trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern"><code>Pattern</code></a>·trait.</p>
13 <p>The·trait·is·marked·unsafe·because·the·indices·returned·by·the13 <p>The·trait·is·marked·unsafe·because·the·indices·returned·by·the
14 <a·href="trait.Searcher.html#tymethod.next"·title="method·alloc::str::pattern::Searcher::next"><code>next()</code></a>·methods·are·required·to·lie·on·valid·utf814 <a·href="trait.Searcher.html#tymethod.next"·title="method·alloc::str::pattern::Searcher::next"><code>next()</code></a>·methods·are·required·to·lie·on·valid·utf8
15 boundaries·in·the·haystack.·This·enables·consumers·of·this·trait·to15 boundaries·in·the·haystack.·This·enables·consumers·of·this·trait·to
16 slice·the·haystack·without·additional·runtime·checks.</p>16 slice·the·haystack·without·additional·runtime·checks.</p>
17 </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.haystack"·class="method"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/str/pattern.rs.html#215">Source</a><h4·class="code-header">fn·<a·href="#tymethod.haystack"·class="fn">haystack</a>(&amp;self)·-&gt;·&amp;'a·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.str.html">str</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span></summary><div·class="docblock"><p>Getter·for·the·underlying·string·to·be·searched·in</p>17 </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.haystack"·class="method"><a·class="src·rightside"·href="../../../src/core/str/pattern.rs.html#215">Source</a><h4·class="code-header">fn·<a·href="#tymethod.haystack"·class="fn">haystack</a>(&amp;self)·-&gt;·&amp;'a·<a·class="primitive"·href="../../../core/primitive.str.html">str</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span></summary><div·class="docblock"><p>Getter·for·the·underlying·string·to·be·searched·in</p>
18 <p>Will·always·return·the·same·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.str.html"·title="primitive·str"><code>&amp;str</code></a>.</p>18 <p>Will·always·return·the·same·<a·href="../../../core/primitive.str.html"·title="primitive·str"><code>&amp;str</code></a>.</p>
19 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="tymethod.next"·class="method"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/str/pattern.rs.html#238">Source</a><h4·class="code-header">fn·<a·href="#tymethod.next"·class="fn">next</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="enum.SearchStep.html"·title="enum·alloc::str::pattern::SearchStep">SearchStep</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span></summary><div·class="docblock"><p>Performs·the·next·search·step·starting·from·the·front.</p>19 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="tymethod.next"·class="method"><a·class="src·rightside"·href="../../../src/core/str/pattern.rs.html#238">Source</a><h4·class="code-header">fn·<a·href="#tymethod.next"·class="fn">next</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="enum.SearchStep.html"·title="enum·alloc::str::pattern::SearchStep">SearchStep</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span></summary><div·class="docblock"><p>Performs·the·next·search·step·starting·from·the·front.</p>
20 <ul>20 <ul>
21 <li>Returns·<a·href="enum.SearchStep.html#variant.Match"·title="variant·alloc::str::pattern::SearchStep::Match"><code>Match(a,·b)</code></a>·if·<code>haystack[a..b]</code>·matches21 <li>Returns·<a·href="enum.SearchStep.html#variant.Match"·title="variant·alloc::str::pattern::SearchStep::Match"><code>Match(a,·b)</code></a>·if·<code>haystack[a..b]</code>·matches
22 the·pattern.</li>22 the·pattern.</li>
23 <li>Returns·<a·href="enum.SearchStep.html#variant.Reject"·title="variant·alloc::str::pattern::SearchStep::Reject"><code>Reject(a,·b)</code></a>·if·<code>haystack[a..b]</code>·can23 <li>Returns·<a·href="enum.SearchStep.html#variant.Reject"·title="variant·alloc::str::pattern::SearchStep::Reject"><code>Reject(a,·b)</code></a>·if·<code>haystack[a..b]</code>·can
24 not·match·the·pattern,·even·partially.</li>24 not·match·the·pattern,·even·partially.</li>
25 <li>Returns·<a·href="enum.SearchStep.html#variant.Done"·title="variant·alloc::str::pattern::SearchStep::Done"><code>Done</code></a>·if·every·byte·of·the·haystack·has25 <li>Returns·<a·href="enum.SearchStep.html#variant.Done"·title="variant·alloc::str::pattern::SearchStep::Done"><code>Done</code></a>·if·every·byte·of·the·haystack·has
26 been·visited.</li>26 been·visited.</li>
Offset 32, 18 lines modifiedOffset 32, 18 lines modified
32 covering·the·whole·haystack,·and·laying·on·utf8·boundaries.</p>32 covering·the·whole·haystack,·and·laying·on·utf8·boundaries.</p>
33 <p>A·<a·href="enum.SearchStep.html#variant.Match"·title="variant·alloc::str::pattern::SearchStep::Match"><code>Match</code></a>·result·needs·to·contain·the·whole·matched33 <p>A·<a·href="enum.SearchStep.html#variant.Match"·title="variant·alloc::str::pattern::SearchStep::Match"><code>Match</code></a>·result·needs·to·contain·the·whole·matched
34 pattern,·however·<a·href="enum.SearchStep.html#variant.Reject"·title="variant·alloc::str::pattern::SearchStep::Reject"><code>Reject</code></a>·results·may·be·split·up34 pattern,·however·<a·href="enum.SearchStep.html#variant.Reject"·title="variant·alloc::str::pattern::SearchStep::Reject"><code>Reject</code></a>·results·may·be·split·up
35 into·arbitrary·many·adjacent·fragments.·Both·ranges·may·have·zero·length.</p>35 into·arbitrary·many·adjacent·fragments.·Both·ranges·may·have·zero·length.</p>
36 <p>As·an·example,·the·pattern·<code>"aaa"</code>·and·the·haystack·<code>"cbaaaaab"</code>36 <p>As·an·example,·the·pattern·<code>"aaa"</code>·and·the·haystack·<code>"cbaaaaab"</code>
37 might·produce·the·stream37 might·produce·the·stream
38 <code>[Reject(0,·1),·Reject(1,·2),·Match(2,·5),·Reject(5,·8)]</code></p>38 <code>[Reject(0,·1),·Reject(1,·2),·Match(2,·5),·Reject(5,·8)]</code></p>
39 </div></details></div><h2·id="provided-methods"·class="section-header">Provided·Methods<a·href="#provided-methods"·class="anchor">§</a></h2><div·class="methods"><details·class="toggle·method-toggle"·open><summary><section·id="method.next_match"·class="method"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/str/pattern.rs.html#247">Source</a><h4·class="code-header">fn·<a·href="#method.next_match"·class="fn">next_match</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/option/enum.Opti[·...·truncated·by·diffoscope;·len:·215,·SHA:·fc9df6a76602b6cbdb73a1fdd05785cc3c444938745f22d84958724d45ba5b92·...·]/core/primitive.usize.html">usize</a>)&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span></summary><div·class="docblock"><p>Finds·the·next·<a·href="enum.SearchStep.html#variant.Match"·title="variant·alloc::str::pattern::SearchStep::Match"><code>Match</code></a>·result.·See·<a·href="trait.Searcher.html#tymethod.next"·title="method·alloc::str::pattern::Searcher::next"><code>next()</code></a>.</p>39 </div></details></div><h2·id="provided-methods"·class="section-header">Provided·Methods<a·href="#provided-methods"·class="anchor">§</a></h2><div·class="methods"><details·class="toggle·method-toggle"·open><summary><section·id="method.next_match"·class="method"><a·class="src·rightside"·href="../../../src/core/str/pattern.rs.html#247">Source</a><h4·class="code-header">fn·<a·href="#method.next_match"·class="fn">next_match</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="../../../core/option/enum.Option.html"·title="enum·core::option::Option">Optio[·...·truncated·by·diffoscope;·len:·119,·SHA:·e90d4c1e4c238c253c7487007646324dfb009fda8f4831af44bca00044168196·...·]/core/primitive.usize.html">usize</a>)&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span></summary><div·class="docblock"><p>Finds·the·next·<a·href="enum.SearchStep.html#variant.Match"·title="variant·alloc::str::pattern::SearchStep::Match"><code>Match</code></a>·result.·See·<a·href="trait.Searcher.html#tymethod.next"·title="method·alloc::str::pattern::Searcher::next"><code>next()</code></a>.</p>
40 <p>Unlike·<a·href="trait.Searcher.html#tymethod.next"·title="method·alloc::str::pattern::Searcher::next"><code>next()</code></a>,·there·is·no·guarantee·that·the·returned·ranges40 <p>Unlike·<a·href="trait.Searcher.html#tymethod.next"·title="method·alloc::str::pattern::Searcher::next"><code>next()</code></a>,·there·is·no·guarantee·that·the·returned·ranges
41 of·this·and·<a·href="trait.Searcher.html#method.next_reject"·title="method·alloc::str::pattern::Searcher::next_reject"><code>next_reject</code></a>·will·overlap.·This·will·return41 of·this·and·<a·href="trait.Searcher.html#method.next_reject"·title="method·alloc::str::pattern::Searcher::next_reject"><code>next_reject</code></a>·will·overlap.·This·will·return
42 <code>(start_match,·end_match)</code>,·where·start_match·is·the·index·of·where42 <code>(start_match,·end_match)</code>,·where·start_match·is·the·index·of·where
43 the·match·begins,·and·end_match·is·the·index·after·the·end·of·the·match.</p>43 the·match·begins,·and·end_match·is·the·index·after·the·end·of·the·match.</p>
44 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.next_reject"·class="method"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/str/pattern.rs.html#263">Source</a><h4·class="code-header">fn·<a·href="#method.next_reject"·class="fn">next_reject</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/option/enum.Op[·...·truncated·by·diffoscope;·len:·217,·SHA:·716df90a9b58ed91b26bbb051ab0e230a28c1eb71d84a363ab84524e919768ab·...·]/core/primitive.usize.html">usize</a>)&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span></summary><div·class="docblock"><p>Finds·the·next·<a·href="enum.SearchStep.html#variant.Reject"·title="variant·alloc::str::pattern::SearchStep::Reject"><code>Reject</code></a>·result.·See·<a·href="trait.Searcher.html#tymethod.next"·title="method·alloc::str::pattern::Searcher::next"><code>next()</code></a>44 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.next_reject"·class="method"><a·class="src·rightside"·href="../../../src/core/str/pattern.rs.html#263">Source</a><h4·class="code-header">fn·<a·href="#method.next_reject"·class="fn">next_reject</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="../../../core/option/enum.Option.html"·title="enum·core::option::Option">Opt[·...·truncated·by·diffoscope;·len:·121,·SHA:·b91984ff610c78c894d92fe627e9a199d506888b8bfcdad41cdb58bf21a58d45·...·]/core/primitive.usize.html">usize</a>)&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span></summary><div·class="docblock"><p>Finds·the·next·<a·href="enum.SearchStep.html#variant.Reject"·title="variant·alloc::str::pattern::SearchStep::Reject"><code>Reject</code></a>·result.·See·<a·href="trait.Searcher.html#tymethod.next"·title="method·alloc::str::pattern::Searcher::next"><code>next()</code></a>
45 and·<a·href="trait.Searcher.html#method.next_match"·title="method·alloc::str::pattern::Searcher::next_match"><code>next_match()</code></a>.</p>45 and·<a·href="trait.Searcher.html#method.next_match"·title="method·alloc::str::pattern::Searcher::next_match"><code>next_match()</code></a>.</p>
46 <p>Unlike·<a·href="trait.Searcher.html#tymethod.next"·title="method·alloc::str::pattern::Searcher::next"><code>next()</code></a>,·there·is·no·guarantee·that·the·returned·ranges46 <p>Unlike·<a·href="trait.Searcher.html#tymethod.next"·title="method·alloc::str::pattern::Searcher::next"><code>next()</code></a>,·there·is·no·guarantee·that·the·returned·ranges
47 of·this·and·<a·href="trait.Searcher.html#method.next_match"·title="method·alloc::str::pattern::Searcher::next_match"><code>next_match</code></a>·will·overlap.</p>47 of·this·and·<a·href="trait.Searcher.html#method.next_match"·title="method·alloc::str::pattern::Searcher::next_match"><code>next_match</code></a>·will·overlap.</p>
48 </div></details></div><h2·id="implementors"·class="section-header">Implementors<a·href="#implementors"·class="anchor">§</a></h2><div·id="implementors-list"><section·id="impl-Searcher%3C'a%3E-for-CharSearcher%3C'a%3E"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/str/pattern.rs.html#399">Source</a><a·href="#impl-Searcher%3C'a%3E-for-CharSearcher%3C'a%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a&gt;·<a·class="trait"·href="trait.Searcher.html"·title="trait·alloc[·...·truncated·by·diffoscope;·len:·2229,·SHA:·0fe03063a3c865bc404bfb706788987d3990e1395b6a5639c60e7120d13fbee0·...·]/src/core/str/pattern.rs.html#917-919">Source</a><a·href="#impl-Searcher%3C'a%3E-for-CharPredicateSearcher%3C'a,+F%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·F&gt;·<a·class="trait"·href="trait.Searcher.html"·title="trait·alloc::str::pattern::Searcher">Searcher</a>&lt;'a&gt;·for·<a·class="struct"·href="struct.CharPredicateSearcher.html"·title="struct·alloc::str::pattern::CharPredicateSearcher">CharPredicateSearcher</a>&lt;'a,·F&gt;<div·class="where">where48 </div></details></div><h2·id="implementors"·class="section-header">Implementors<a·href="#implementors"·class="anchor">§</a></h2><div·id="implementors-list"><section·id="impl-Searcher%3C'a%3E-for-CharSearcher%3C'a%3E"·class="impl"><a·class="src·rightside"·href="../../../src/core/str/pattern.rs.html#399">Source</a><a·href="#impl-Searcher%3C'a%3E-for-CharSearcher%3C'a%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a&gt;·<a·class="trait"·href="trait.Searcher.html"·title="trait·alloc::str::pattern::Searcher[·...·truncated·by·diffoscope;·len:·2085,·SHA:·151bc1fdf171b72dc432625eabaa3a5edf255eabf6406e1e03cf7394dfaff236·...·]/src/core/str/pattern.rs.html#917-919">Source</a><a·href="#impl-Searcher%3C'a%3E-for-CharPredicateSearcher%3C'a,+F%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·F&gt;·<a·class="trait"·href="trait.Searcher.html"·title="trait·alloc::str::pattern::Searcher">Searcher</a>&lt;'a&gt;·for·<a·class="struct"·href="struct.CharPredicateSearcher.html"·title="struct·alloc::str::pattern::CharPredicateSearcher">CharPredicateSearcher</a>&lt;'a,·F&gt;<div·class="where">where
49 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.char.html">char</a>)·-&gt;·<a·class="primitive"·href="https:/[·...·truncated·by·diffoscope;·len:·462,·SHA:·2c2603269f044207ecd0286c97ca6214d3a5a30ad8f5d9d19fe3946fedce3659·...·]/core/primitive.usize.html">usize</a>&gt;·<a·class="trait"·href="trait.Searcher.html"·title="trait·alloc::str::pattern::Searcher">Searcher</a>&lt;'a&gt;·for·<a·class="struct"·href="struct.CharArraySearcher.html"·title="struct·alloc::str::pattern::CharArraySearcher">CharArraySearcher</a>&lt;'a,·N&gt;</h3></section></div><script·src="../../../trait.impl/core/str/pattern/trait.Searcher.js"·data-ignore-extern-crates="core"·async></script></section></div></main></body></html>49 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../../core/primitive.char.html">char</a>)·-&gt;·<a·class="primitive"·href="../../../core/primitive.bool.html">bool</a>,</div></h3>[·...·truncated·by·diffoscope;·len:·342,·SHA:·9929ff053f06486d5122db95c1a2e8af77c6088161b048f593a7deb318797875·...·]/core/primitive.usize.html">usize</a>&gt;·<a·class="trait"·href="trait.Searcher.html"·title="trait·alloc::str::pattern::Searcher">Searcher</a>&lt;'a&gt;·for·<a·class="struct"·href="struct.CharArraySearcher.html"·title="struct·alloc::str::pattern::CharArraySearcher">CharArraySearcher</a>&lt;'a,·N&gt;</h3></section></div><script·src="../../../trait.impl/core/str/pattern/trait.Searcher.js"·data-ignore-extern-crates="core"·async></script></section></div></main></body></html>
340 KB
./usr/share/doc/rust-doc/html/alloc/str/struct.Bytes.html
    
Offset 1, 225 lines modifiedOffset 1, 225 lines modified
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="An·iterator·over·the·bytes·of·a·string·slice."><title>Bytes·in·alloc::str·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»       2025-01-07)»    (built»      from»  a» source»   tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Bytes</a></h2><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-Bytes%3C'a%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-Bytes%3C'a%3E"·title="Debug">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-Bytes%3C'_%3E"·title="DoubleEndedIterator">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-Bytes%3C'_%3E"·title="ExactSizeIterator">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-Bytes%3C'_%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-Bytes%3C'_%3E"·title="Iterator">Iterator</a></li><li><a·href="#impl-TrustedLen-for-Bytes%3C'_%3E"·title="TrustedLen">TrustedLen</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-Bytes%3C'a%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Bytes%3C'a%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Bytes%3C'a%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-Bytes%3C'a%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-Bytes%3C'a%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Bytes%3C'a%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>str</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">alloc</a>::<wbr><a·href="index.html">str</a></span><h1>Struct·<span·class="struct">Bytes</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/str/iter.rs.html#287">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·Bytes&lt;'a&gt;(<span·class="comment">/*·private·fields·*/</span>);</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>An·iterator·over·the·bytes·of·a·string·slice.</p>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="An·iterator·over·the·bytes·of·a·string·slice."><title>Bytes·in·alloc::str·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»       2025-01-07)»    (built»      from»  a» source»   tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Bytes</a></h2><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-Bytes%3C'a%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-Bytes%3C'a%3E"·title="Debug">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-Bytes%3C'_%3E"·title="DoubleEndedIterator">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-Bytes%3C'_%3E"·title="ExactSizeIterator">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-Bytes%3C'_%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-Bytes%3C'_%3E"·title="Iterator">Iterator</a></li><li><a·href="#impl-TrustedLen-for-Bytes%3C'_%3E"·title="TrustedLen">TrustedLen</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-Bytes%3C'a%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Bytes%3C'a%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Bytes%3C'a%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-Bytes%3C'a%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-Bytes%3C'a%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Bytes%3C'a%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>str</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">alloc</a>::<wbr><a·href="index.html">str</a></span><h1>Struct·<span·class="struct">Bytes</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../src/core/str/iter.rs.html#287">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·Bytes&lt;'a&gt;(<span·class="comment">/*·private·fields·*/</span>);</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>An·iterator·over·the·bytes·of·a·string·slice.</p>
2 <p>This·struct·is·created·by·the·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.str.html#method.bytes"·title="method·str::bytes"><code>bytes</code></a>·method·on·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.str.html"·title="primitive·str"><code>str</code></a>.2 <p>This·struct·is·created·by·the·<a·href="../../core/primitive.str.html#method.bytes"·title="method·str::bytes"><code>bytes</code></a>·method·on·<a·href="../../core/primitive.str.html"·title="primitive·str"><code>str</code></a>.
3 See·its·documentation·for·more.</p>3 See·its·documentation·for·more.</p>
4 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-Bytes%3C'a%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/str/iter.rs.html#286">Source</a></span><a·href="#impl-Clone-for-Bytes%3C'a%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clo[·...·truncated·by·diffoscope;·len:·7478,·SHA:·e9980299aab8e484ad3b572535ba4aec884c5bd7bc94c8ff181a389ee9d9a700·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where4 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-Bytes%3C'a%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/str/iter.rs.html#286">Source</a></span><a·href="#impl-Clone-for-Bytes%3C'a%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a&gt;·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·fo[·...·truncated·by·diffoscope;·len:·6641,·SHA:·b13573ccc78ad78507cbfcaa511ab35b2e2e804842978c43408b157f1aefd9d6·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
5 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;&lt;<a·class="struct"·href="struct.Bytes.html"·title="struct·alloc::str::Bytes">Bytes</a>&lt;'_&gt;·as·<a·class="trait"·href="https[·...·truncated·by·diffoscope;·len:·2772,·SHA:·f95a037e6a541962d888b786429ff0872e404e3a378387a77f8f4fd5fd1ac2ed·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold"·class="fn">try_rfold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where5 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;&lt;<a·class="struct"·href="struct.Bytes.html"·title="struct·alloc::str::Bytes">Bytes</a>&lt;'_&gt;·as·<a·class="trait"·href="../../core/iter/traits/iterator/[·...·truncated·by·diffoscope;·len:·2367,·SHA:·eedd06306a09aa93006cf626686d99c199e94549d0e09c52308bb6e44218a11a·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold"·class="fn">try_rfold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where
6 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,6 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
7 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,7 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
8 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>This·is·the·reverse·version·of·<a·href="https://doc.rust-lang.org/1.8[·...·truncated·by·diffoscope;·len:·3,·SHA:·fbd04e1aae9ce0b11a8946e2c9ac2619f7428a64d32d01eff61d809dcb70ee8e·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·title="method·core::iter::traits::iterator::Iterator::try_fold"><code>Iterator::try_fold()</code></a>:·it·takes8 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>This·is·the·reverse·version·of·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·title="method·core::iter::traits::iterator::Iterator::try_fold"><code>Iterator::try_fold()</code></a>:·it·takes
9 elements·starting·from·the·back·of·the·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfold"·class="method·trait-impl"><span·clas[·...·truncated·by·diffoscope;·len:·325,·SHA:·7ffdb06a8ab3810207a1c974783822231eaf1d82fd94bcf810dd7b3181149b7b·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold"·class="fn">rfold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where9 elements·starting·from·the·back·of·the·iterator.·<a·href="../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfold"·class="method·trait-impl"><span·class="rightside"><span·class="[·...·truncated·by·diffoscope;·len:·244,·SHA:·6c4fe3f75fed1f00ec73ae6acd6efe929fb891f07f47293eec1013d32fc0fbe1·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold"·class="fn">rfold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where
10 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,10 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
11 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·reduces·the·iterator’s·elements·to·a·single,11 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·reduces·the·iterator’s·elements·to·a·single,
12 final·value,·starting·from·the·back.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-ExactSizeIterator-for-Bytes[·...·truncated·by·diffoscope;·len:·9605,·SHA:·1d14e503de35b1a0177780d278e5924205589eb9901b8bc87ab312ea1d2d4c58·...·]/core/primitive.bool.html">bool</a><div·class="where">where12 final·value,·starting·from·the·back.·<a·href="../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-ExactSizeIterator-for-Bytes%3C'_%3E"·class="impl"><spa[·...·truncated·by·diffoscope;·len:·8336,·SHA:·16e6bc6990a1a2686c0bf20efd9f07c7348756d26ef8c21c1e34a09432b2514c·...·]/core/primitive.bool.html">bool</a><div·class="where">where
13 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&lt;<a·class="struct"·href="struct.Bytes.html"·title="struct·alloc::str::Bytes">Bytes</a>&lt;'_&gt;·as·<a·class="trait"·href="https://do[·...·truncated·by·diffoscope;·len:·1179,·SHA:·a635e580017bd6ecd97326c8d3f37be3f5c4a4491e17456b696ca3f78e76a304·...·]/core/primitive.bool.html">bool</a><div·class="where">where13 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&lt;<a·class="struct"·href="struct.Bytes.html"·title="struct·alloc::str::Bytes">Bytes</a>&lt;'_&gt;·as·<a·class="trait"·href="../../core/iter/traits/iterator/trait[·...·truncated·by·diffoscope;·len:·963,·SHA:·437ed95ae24424af864a6db75b65fe0fa14385dd7e188990a680634cf11ad672·...·]/core/primitive.bool.html">bool</a><div·class="where">where
14 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&lt;<a·class="struct"·href="struct.Bytes.html"·title="struct·alloc::str::Bytes">Bytes</a>&lt;'_&gt;·as·<a·class="trait"·href="https://do[·...·truncated·by·diffoscope;·len:·1604,·SHA:·196f0e9b38f2fd9b2c61acece18efc65efff01cbc726bbdaf12c18a3a0e9cc47·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where14 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&lt;<a·class="struct"·href="struct.Bytes.html"·title="struct·alloc::str::Bytes">Bytes</a>&lt;'_&gt;·as·<a·class="trait"·href="../../core/iter/traits/iterator/trait[·...·truncated·by·diffoscope;·len:·1334,·SHA:·9f135dfb426cb3fe6549cf120e9e0b463e588ed13186b0f065f3df29d4a4abf3·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
15 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;&lt;<a·class="struct"·href="struct.Bytes.html"·title="struct·alloc::str::Bytes">Bytes</a>&lt;'_&gt;·as·<a·class="trait"·href="https[·...·truncated·by·diffoscope;·len:·1353,·SHA:·6543e7ea62d74a09b05a5cdb4d8387bd73d613ea052597760c6e822361ad19da·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where15 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;&lt;<a·class="struct"·href="struct.Bytes.html"·title="struct·alloc::str::Bytes">Bytes</a>&lt;'_&gt;·as·<a·class="trait"·href="../../core/iter/traits/iterator/[·...·truncated·by·diffoscope;·len:·1110,·SHA:·615e4f23f6a839cdadd78f9906d3a949a5104fef2957d7fc834606d8407759ac·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
16 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&lt;<a·class="struct"·href="struct.Bytes.html"·title="struct·alloc::str::Bytes">Bytes</a>&lt;'_&gt;·as·<a·class="trait"·href="https://do[·...·truncated·by·diffoscope;·len:·1350,·SHA:·b6752988669227fdbfa75ca8019536c322cfc9c1a5c220e825ece180d9448a08·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where16 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&lt;<a·class="struct"·href="struct.Bytes.html"·title="struct·alloc::str::Bytes">Bytes</a>&lt;'_&gt;·as·<a·class="trait"·href="../../core/iter/traits/iterator/trait[·...·truncated·by·diffoscope;·len:·1107,·SHA:·0d9e1bf15431af35bc4bf94ee682ec17a49e63ce0948a89aafad3ad6ee6d1d13·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
17 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&lt;<a·class="struct"·href="struct.Bytes.html"·title="struct·alloc::str::Bytes">Bytes</a>&lt;'_&gt;·as·<a·class="trait"·href="https://do[·...·truncated·by·diffoscope;·len:·406,·SHA:·6f3dbf8eae1bb4ecf34dfbda0f9e4cb9aadccec3512cdab7d2d8e29ed7e2b894·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Searches·for·an·element·in·an·iterator·from·the·right,·returning·its17 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&lt;<a·class="struct"·href="struct.Bytes.html"·title="struct·alloc::str::Bytes">Bytes</a>&lt;'_&gt;·as·<a·class="trait"·href="../../core/iter/traits/iterator/trait[·...·truncated·by·diffoscope;·len:·298,·SHA:·9cf17e6af254783fc62b831713a7874c65090eefc7b41148836113b6feee90b8·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Searches·for·an·element·in·an·iterator·from·the·right,·returning·its
18 index.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.rposition">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.next_chunk"·class="method·trait-impl"><a·class="src·rights[·...·truncated·by·diffoscope;·len:·381,·SHA:·4e278b50565c33c4dc269b57d72c1b330c8b83787aeb9d4998ceb6e9a18da9ee·...·]/core/primitive.usize.html">usize</a>&gt;(18 index.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.rposition">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.next_chunk"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/i[·...·truncated·by·diffoscope;·len:·273,·SHA:·465dd8697200bb6ba569da614642deab3953415ee246910fd17c98023b2b7644·...·]/core/primitive.usize.html">usize</a>&gt;(
19 ····&amp;mut·self,19 ····&amp;mut·self,
20 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·4f557a9b49151e0be8c52ffd68f1def4469c08164239dc8bef8df2040551c5ef·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where20 )·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">It[·...·truncated·by·diffoscope;·len:·246,·SHA:·baf6c8e6f3d5dbac69324111240b1587dbb858d42149cae1ee895a165289ff4f·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where
21 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·2597,·SHA:·e43e149acfa6ad1816c364b2828c60b6adfdffe814c9ef8b9f9b56e35c4e44a7·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where21 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_next_ch[·...·truncated·by·diffoscope;·len:·2219,·SHA:·92e912ee585db2c097b6d1cf2aef0139e2a927527f301ab7da0bc73758cc2d6b·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where
22 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by22 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by
23 the·given·amount·at·each·iteration.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><sp[·...·truncated·by·diffoscope;·len:·842,·SHA:·945c4509a8daf2f8fbccc5c6e5089e225955911e03a3e411f047f96d52d16862·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where23 the·given·amount·at·each·iteration.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Sta[·...·truncated·by·diffoscope;·len:·680,·SHA:·77241b5118fcbc984cb791fa9f75077307e18056b66492741335faf440cbdabc·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
24 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,24 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
25 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·3b5ce32f9d564c3aa7cf2adc7130e674758d0c0f4f1275b4c3b46a74aa802cb3·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where25 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·1113,·SHA:·ccf22d19f49a25daffdcc6d9226d5107457a8bfd16beccfeff5020d151bdb8bb·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
26 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,26 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
27 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·[·...·truncated·by·diffoscope;·len:·868,·SHA:·abdbf27ccc84063c7040d8fa3da9d0bda5ee310a470ef576e15554aee4bd5d21·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where27 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·of·pairs.·<a·href="../../co[·...·truncated·by·diffoscope;·len:·706,·SHA:·f32c568f049122021445a983654582d97ac74064a3e99c3361b348bd7708c1b2·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where
28 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,28 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
29 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent29 ····Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent
30 items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="sr[·...·truncated·by·diffoscope;·len:·427,·SHA:·6e82ad4aad49c2165d869fe30d20a968580a973cdb3a7f4c77f49e16dd59393e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where30 items·of·the·original·iterator.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="src·rightside"·href="../../sr[·...·truncated·by·diffoscope;·len:·319,·SHA:·8babc469a22056fc5a02684b52f9f93ba9c27a3dd2e8443ddc060797054e211e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where
31 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,31 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
32 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>32 ····G:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>
33 between·adjacent·items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightsi[·...·truncated·by·diffoscope;·len:·471,·SHA:·ed10488b7b2ccc3e4cc84a9a57a9695a74c1c964962e8d753cbace12f3318a66·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where33 between·adjacent·items·of·the·original·iterator.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·tit[·...·truncated·by·diffoscope;·len:·363,·SHA:·09aee21fa4172b743a714e2cb5915129575ce0224df49c7343dec38f43b7ecfd·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where
34 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,34 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
35 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each35 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each
36 element.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><spa[·...·truncated·by·diffoscope;·len:·306,·SHA:·61c87c39b177830189b0e4c036d97c40d8b9649d76432c90afb88de59498e8b2·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where36 element.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stab[·...·truncated·by·diffoscope;·len:·225,·SHA:·a0f2490a1a5fd6b44e0ab01199cbbbd6e5463251405d11eaf6798c9b50bbd683·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where
37 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,37 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
38 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·a65da32c5f5ef8335cb607d3b4ab3f8a25877bc2c2e8b44ca9d575caecd5c8a5·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where38 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·754,·SHA:·421e55a5747cab3df1dad40b747b4633f241bdc13a1546bb19b1370788dea27d·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where
39 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,39 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
40 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·6d69c85c69fa789be551ea42d95c33c237d12a04ef157f9ddaaead1177f7771e·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element40 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·59,·SHA:·76969e34965f1923de668a65a9f5c33f73266468c9b96650bcc5fd498e606a6b·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element
41 should·be·yielded.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·489,·SHA:·9bdc636899f4e4e5a26a3a21c9603f72b3fb972865d2f459c38b7e2ac8fed7f1·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where41 should·be·yielded.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·cf812944678f6755720896cf32b330946303afe59f1b1c11adeb6a7f33454c8d·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where
42 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,42 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
43 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·46dbf841c7aecd3f06bd4c944af21650faeac98c46c515dcfe643302618b1ecd·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where43 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·863,·SHA:·c2bab87fa2a70713bd2d34b3dcae8f4ff2341917103b43a1dd505317f15d6cff·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where
44 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as44 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as
45 the·next·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside[·...·truncated·by·diffoscope;·len:·468,·SHA:·52f7ff7f264284c3acc4429ca34d057ded9afa2e3d9d6e07571e252db9a48977·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where45 the·next·value.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title[·...·truncated·by·diffoscope;·len:·360,·SHA:·688416dc1aaaa0be069177270ba9e74b3d1b92521285a109dc7ba86b58c1f22a·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where
46 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·c0180fefce4346b0b4089e5c642521d7716108241c0ce6ec3e910c7a2c7364b4·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods46 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="../../core/iter/adapters/peekable/struct.Peekable.html#method.peek"·title="m[·...·truncated·by·diffoscope;·len:·94,·SHA:·78aeab33f83c647dfe680c1050358c95977e3af17eabde4a04880721ea1a619d·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods
47 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See47 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See
48 their·documentation·for·more·information.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightsid[·...·truncated·by·diffoscope;·len:·498,·SHA:·e4a68861585faec6a5032b3b69d6dfb0f2799b5f387a527d9a1365571ed02069·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where48 their·documentation·for·more·information.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightside"><span·class="since"·titl[·...·truncated·by·diffoscope;·len:·390,·SHA:·5da622ae0e4d00b47239007520070e22568156d6c5b1662db8b80b465934b18c·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where
49 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,49 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
50 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·93281c1f6402743fd61110c11cf676f0f67eddceda801b4eb35e5fe9f85870fd·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where50 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·1018,·SHA:·732548acff5239e9a7b904f32790c90ab3b63522635334128f35e01d37ceaeb6·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where
51 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,51 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
52 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·f1cdbb1ec64f98fabbe1d89c88b03824310926cd7eaa160953ce2452fc3abb77·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where52 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·869,·SHA:·8ec7e525848424d5104dbdd10928d17cfee4e5aee63cdda7ecdbe323b30b59d3·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where
53 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,53 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
54 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·f94a0b2c1396b13b89aca7830197ebf19e2c0e5ba536a9cc25b325a481799510·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where54 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·947,·SHA:·fdd074315a0bfb226f815b1b6ea114c7367886338ffffff233d7f6fc3108769a·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where
55 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="https://doc.rust-lang[·...·truncated·by·diffoscope;·len:·783,·SHA:·c14217b89e3292a50a09192a8857485891fc769f861e1d1fc4322d04295c86ef·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where55 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="../../core/iter/traits/iterator/trait.Iterator.h[·...·truncated·by·diffoscope;·len:·621,·SHA:·484df7f946e7f2f69c3acad8964421c0db8ac5bb40032d11bbd862e20e67704c·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where
56 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer56 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer
57 if·the·underlying·iterator·ends·sooner.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·c[·...·truncated·by·diffoscope;·len:·488,·SHA:·76f753d5a273a09a73127631acaa0ee947326a929f33be291018188793e1af56·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where57 if·the·underlying·iterator·ends·sooner.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·[·...·truncated·by·diffoscope;·len:·380,·SHA:·fa258c7e0b5d583304a69e2d4e19f3d4cc9a9ed830bdf3796eaa0968bdf590b4·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where
58 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,58 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
59 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·07d303586c8ad4e0082d5b44bff8eeda03cdb8f4bdbe46489f9232bca5a43ec6·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but59 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterat[·...·truncated·by·diffoscope;·len:·314,·SHA:·299331ff47adaff3ebc292c53557ad34da957aef932f87ec0444c7f856820410·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but
60 unlike·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·2b20882d9583cee50e0c8b3cf362b27ce0d524db387d4aa4093d622b9370dada·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where60 unlike·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.scan">Read·more[·...·truncated·by·diffoscope;·len:·555,·SHA:·77279e392f259f6d4859f5a7747ee4b4d5315f3af0ac3baebf1d53be3461b312·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where
61 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,61 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
62 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,62 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
63 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·933,·SHA:·4af94b75ba5c1e03d2d70590d2fd0706f13b3080fbff0f5b98e7b109048c403d·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where63 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·771,·SHA:·a1a50c8ca4c13151c7b22ce05c74c449231e1ffe44225beee67ff212fc1d3859·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where
64 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,64 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
65 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.I[·...·truncated·by·diffoscope;·len:·968,·SHA:·e5572ed2f3bdf5970d038da608f2f592d945541207c483c257fe5789efba168a·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where65 ····Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::col[·...·truncated·by·diffoscope;·len:·779,·SHA:·a4e524bd8aa8a1e0a66409d1b462b88093ab51a1f901ff1a788d7ee63d597f4c·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where
66 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,66 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
67 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·3013c0e49b0dade37f8ca096eccc5ceeb03fc79b9d320a4c92486d23b88d1009·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over67 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·54,·SHA:·6acee514e4d8df8979b4bba687b7e0d5dbb0ea4f98a7019e2fb03f3a8058df0f·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over
68 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,68 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="../../core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,
69 the·windows·during·mapping·overlap·as·well.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside">[·...·truncated·by·diffoscope;·len:·454,·SHA:·040991f3914479bcc92615de2b81df7363656323622e5aadc964e1a61917d23e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where69 the·windows·during·mapping·overlap·as·well.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="[·...·truncated·by·diffoscope;·len:·346,·SHA:·b1244a5f92e0573c29e04e883cf8212ba2586013b3687af07b63c29d2e611530·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where
70 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="https://doc.rust-lang.org/1.84.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·0e0294a45242d5ce9a3ab8f95d6d410756415291d92baa7d12283ef1b3ecc3a0·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where70 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="../../core/option/enum.Option.html#variant.None"·title="variant·cor[·...·truncated·by·diffoscope;·len:·679,·SHA:·ec753d6ecf7b9fe81cb270d78e45e053f2702fff74c7a63c2ab8da22b97fea86·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where
71 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,71 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
72 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·a8b562f71802a421f4745f7d1fadf4f70d98030c829e70f27b692e7915267027·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where72 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·635,·SHA:·ee3a5bcc3544c3f17985966634fef69b1708d641ddb7e62aaac76933935c5ef7·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where
73 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="https://doc.rust-lang.org/1.84.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·b3db7d84f203bbc139b1c52912705d19c664dac762898205fce452c9dc3a5318·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where73 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.by_ref">[·...·truncated·by·diffoscope;·len:·415,·SHA:·7e0e075470d2db380bcf0838446659654c982aa2ca7831ed7d0317877855be2a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where
74 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,74 ····B:·<a·class="trait"·href="../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
75 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·431,·SHA:·a705a23f6d810357e7dcac670743884665ffcccfb9b780d0aa03720be8ca5625·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(75 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.collect">Read[·...·truncated·by·diffoscope;·len:·323,·SHA:·80e0dde3814a6e7cf4e30949627abc841ab4e98e2a920efb248777e22708682d·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(
76 ····&amp;mut·self,76 ····&amp;mut·self,
77 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.h[·...·truncated·by·diffoscope;·len:·479,·SHA:·fa749442d890055f86ceb34f411c84fd7ea08302b336d786d1ca36fe5868b020·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where77 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&g[·...·truncated·by·diffoscope;·len:·344,·SHA:·c06c6401df0a7150633e94cc973521da42e09819b07be80ba18d6acb696860a9·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
78 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,78 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
79 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>,79 ····Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>,
80 ····&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.h[·...·truncated·by·diffoscope;·len:·300,·SHA:·3bff089180bac38df7f42b87556fae7641185b89a949c284f53e3ac718a6decb·...·]/core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;B&gt;,80 ····&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&g[·...·truncated·by·diffoscope;·len:·192,·SHA:·039ceb6ce31fc6b1871e3e366efbd0f164f4a6cc1bc25554bba598b0ee820cca·...·]/core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;B&gt;,
81 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/itera[·...·truncated·by·diffoscope;·len:·323,·SHA:·b5c51f161dc9d77fd81d1fd23cc71fbf42ac00f3168cf9e41ebaaa2b6eb25363·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if81 ····B:·<a·class="trait"·href="../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="ty[·...·truncated·by·diffoscope;·len:·215,·SHA:·ddb8fbd12147eecef1697edd4c63187cc514ab4b851290335adfcccc3fa429ba·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if
82 a·failure·is·encountered.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·ri[·...·truncated·by·diffoscope;·len:·521,·SHA:·6a54376815dab985ec8cc35604d035e98e3003b1563c9b41e70966084505542b·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where82 a·failure·is·encountered.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/co[·...·truncated·by·diffoscope;·len:·386,·SHA:·d46a776c329de4f757930edda252586c2cdd85c6956b7b2f68448da33ee0625e·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
83 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,83 ····E:·<a·class="trait"·href="../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
84 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·975,·SHA:·94f7f970236ba59ba5f1415764a0e3ab2f3093c6b79e76c25c797ac24a3c4d09·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where84 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_collect[·...·truncated·by·diffoscope;·len:·840,·SHA:·1ee6fbe4deb3d959e9ade58fb7ed3efa79d09721ed02fbb5f5f82aae6aa1425d·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
85 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,85 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
86 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·b480ec650ba000fe7cb67df58fc0351299638ee3e8f00db18f74ca24d69f9894·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,86 ····B:·<a·class="trait"·href="../../core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtyp[·...·truncated·by·diffoscope;·len:·14,·SHA:·4105980ca4887a52797067761af25a11e3de6069cd8d7c8ce82cd885bb798fe8·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
87 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·fdf5a1845f070855ba2cfd0c8c85460ea5cb646c4d3b42a8431bf21489c73701·...·]/core/primitive.usize.html">usize</a><div·class="where">where87 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·806,·SHA:·4d554b733db12e71a31ec2477a31408041941b0e2b0dc910904ecf2fced9f65b·...·]/core/primitive.usize.html">usize</a><div·class="where">where
88 ····T:·'a,88 ····T:·'a,
89 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·1fc250e258e9e42e4fa3e22f86ecd57057e9ff23e47af1aec778076a7a891134·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,89 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIter[·...·truncated·by·diffoscope;·len:·51,·SHA:·c9be73bbed9d11ecac2a179f480a640f51d6255f26712667ffdabc72c1fc7fb0·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,
90 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·5846407374f20f525a4a0663ad4488141eafe64513ef82581dc5df5c2d200745·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_partition_in_place</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62543">#62543</a>)</span></div></span><div·class='docblock'>Reorders·the·elements·of·this·iterator·<em>in-place</em>·according·to·the·given·predicate,90 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="../../core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_partition_in_place</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62543">#62543</a>)</span></div></span><div·class='docblock'>Reorders·the·elements·of·this·iterator·<em>in-place</em>·according·to·the·given·predicate,
91 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.91 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.
92 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.partition_in_place">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_partitioned"·class="method·trait-impl"><a·clas[·...·truncated·by·diffoscope;·len:·431,·SHA:·4aa7d028146c72d45794efc19a376d4bee3b75eda61ff46d969e440b3dbfa1b0·...·]/core/primitive.bool.html">bool</a><div·class="where">where92 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.partition_in_place">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_partitioned"·class="method·trait-impl"><a·class="src·rightside"·href="../[·...·truncated·by·diffoscope;·len:·323,·SHA:·bfc44418fa28079222aab80e2baccdaffb2d067bbe5d1b5162202d268ad628d7·...·]/core/primitive.bool.html">bool</a><div·class="where">where
93 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,93 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
94 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·fcd03e71f79faad6d9b9a12045d59f4dfabc78e5aefebcabc9c1a5be45e31125·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,94 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·54,·SHA:·d5ac304cc26edf57442227b641dd21c427d0f9cb322b79986f5b15fc49f867b0·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,
95 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><span·class="righ[·...·truncated·by·diffoscope;·len:·319,·SHA:·9b9df13f2f4e5b4dde3908515766e1a474fa30bcb7edc98c15665a016e677c2a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where95 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><span·class="rightside"><span·class="since"·[·...·truncated·by·diffoscope;·len:·238,·SHA:·af6ab768457e0afa1532b80c4296ae18061dac4c765922889b13eead3e5492db·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where
96 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,96 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
97 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,97 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
98 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns98 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns
99 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rights[·...·truncated·by·diffoscope;·len:·321,·SHA:·619fd774190944998148325de99aaa75de66ce4b7e26579fd342c564923a5652·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where99 successfully,·producing·a·single,·final·value.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"·ti[·...·truncated·by·diffoscope;·len:·240,·SHA:·125e84deea747ccbe139725d028362287beed6a89ab9da3a3aabd7df537abc59·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where
100 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,100 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
101 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,101 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
102 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the102 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="../../core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the
103 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·307,·SHA:·5975144fd8566efa93ad1ccec09297e280924b7372e08681d2103702124e2c52·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where103 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title=[·...·truncated·by·diffoscope;·len:·226,·SHA:·a7510e9271e68887d9e2681c6bc28312cec9ac38883128845f52742935a160a9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where
104 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,104 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
105 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,105 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,
106 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span[·...·truncated·by·diffoscope;·len:·619,·SHA:·8813f54846438870310d5f5dfabd2335a9dbf51e9da2e4cd681bcb6077d39628·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where106 returning·the·final·result.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stabl[·...·truncated·by·diffoscope;·len:·484,·SHA:·5f42e8d5ff08f4c76870e6cb9165e054f9a0d99051d9886ccd43d5c8a91e1fbc·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
107 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,107 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
108 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·084691f7fc4e7f4da7db385127d0ce8d2d52f6740757129a65910c4db0dc180d·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing108 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·244,·SHA:·f09ac7e818239538c3f3208cb5c76076c24a0153797eb762821d5bf2a382d83b·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing
109 operation.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·217,·SHA:·447ae00256be3de069c602a6c04889808c883eae6fa349d023f53bdd5570ecae·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(109 operation.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/iter[·...·truncated·by·diffoscope;·len:·136,·SHA:·97e3ee132585582ec7077e3bbd86406d8a2dcfc97dce7fd52b49af3ec1b58622·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(
110 ····&amp;mut·self,110 ····&amp;mut·self,
111 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R, 
112 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.T[·...·truncated·by·diffoscope;·len:·950,·SHA:·817376e71f7a0d170bfbd4b7264c15d324f49c65106c49349d11a077842aa533·...·]111 ····f:·impl·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core:[·...·truncated·by·diffoscope;·len:·238,·SHA:·a52edc1a1ce1db5dd6e620dbfe5acb58fdc6d84f2320cef02845988aa54e5c55·...·]
 112 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;&gt;&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
113 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,113 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
114 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,114 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
115 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·764ea8f08626b05426a76738d54ebb2d640042494d76cba8c20d868bfdc07a73·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the115 ····&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>:·<a[·...·truncated·by·diffoscope;·len:·277,·SHA:·0dd064909226a9691486376740de1e17aa133a7ae2f635bee3feaa9b19d7b580·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the
116 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.find_map"·class="method·trait-impl"><span·class="rightsid[·...·truncated·by·diffoscope;·len:·496,·SHA:·3067cb922449afa032c6b546e4578715561103b59faab5e443261fe107b83aeb·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where116 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.find_map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·titl[·...·truncated·by·diffoscope;·len:·388,·SHA:·c27fe2009d37471d70f2bd12829392fd70a6c2b2babd1f74f9d727d2344fe68a·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where
117 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,117 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
118 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·1bd732dff19021a1586bb486282683f5c1bc65d5d514f9e13cc9232b4e94955b·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;,</div></h4></section></summary><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns118 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·49,·SHA:·819211b646a21318a22e9d295452cdf890d5288a631a50261ca1a5b2bac9f748·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;,</div></h4></section></summary><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns
119 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.find_map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_find"·class="method·trait-impl"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·215,·SHA:·4d59a011c8881794ce6367c1e816f11a813db02e37c71800ed6d47056f157573·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(119 the·first·non-none·result.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.find_map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_find"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/iter[·...·truncated·by·diffoscope;·len:·134,·SHA:·f9a67b0520c850053a598ecaa24d4c1a006e7174ac499ec1e09451cd90ea548e·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(
120 ····&amp;mut·self,120 ····&amp;mut·self,
121 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,121 ····f:·impl·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
122 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·efb03e5c706e0947c6a4490b17f1efb0f1944a7d81f2640b5933212334dd255a·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where122 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>·as·[·...·truncated·by·diffoscope;·len:·464,·SHA:·38b1d27bdc6fd93a0d7e942386ffe94e909033d34def03ec6236baba6643ee81·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
123 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,123 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
124 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html">bool</a>&gt;,124 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="../../core/primitive.bool.html">bool</a>&gt;,
125 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·764ea8f08626b05426a76738d54ebb2d640042494d76cba8c20d868bfdc07a73·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>try_find</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/63178">#63178</a>)</span></div></span><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns125 ····&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>:·<a[·...·truncated·by·diffoscope;·len:·277,·SHA:·0dd064909226a9691486376740de1e17aa133a7ae2f635bee3feaa9b19d7b580·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>try_find</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/63178">#63178</a>)</span></div></span><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns
126 the·first·true·result·or·the·first·error.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_find">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.max"·class="method·trait-impl"><span·class="rightside"><spa[·...·truncated·by·diffoscope;·len:·594,·SHA:·5430a9c67a475de6711406ebf4e85ee9d9872fdfe89005d2292d61a951b1fa49·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where126 the·first·true·result·or·the·first·error.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_find">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.max"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stab[·...·truncated·by·diffoscope;·len:·459,·SHA:·d5192682f956958d05e63dc4da4a4e99d1a8599a448d5249abecf091b6640f3a·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
Max diff block lines reached; 89574/348376 bytes (25.71%) of diff not shown.
341 KB
./usr/share/doc/rust-doc/html/alloc/str/struct.CharIndices.html
    
Offset 1, 14 lines modifiedOffset 1, 14 lines modified
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="An·iterator·over·the·`char`s·of·a·string·slice,·and·their·positions."><title>CharIndices·in·alloc::str·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»     2025-01-07)»  (built»    from»a»       source» tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Char<wbr>Indices</a></h2><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.as_str"·title="as_str">as_str</a></li><li><a·href="#method.offset"·title="offset">offset</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-CharIndices%3C'a%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-CharIndices%3C'a%3E"·title="Debug">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-CharIndices%3C'a%3E"·title="DoubleEndedIterator">DoubleEndedIterator</a></li><li><a·href="#impl-FusedIterator-for-CharIndices%3C'_%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-CharIndices%3C'a%3E"·title="Iterator">Iterator</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-CharIndices%3C'a%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-CharIndices%3C'a%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-CharIndices%3C'a%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-CharIndices%3C'a%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-CharIndices%3C'a%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-CharIndices%3C'a%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>str</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">alloc</a>::<wbr><a·href="index.html">str</a></span><h1>Struct·<span·class="struct">CharIndices</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/str/iter.rs.html#175">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·CharIndices&lt;'a&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·ope[·...·truncated·by·diffoscope;·len:·154,·SHA:·8e9a42875d33d29dcfd56bba2582d682639b7d2f67bddeec671089b76b955abd·...·]/core/primitive.char.html"·title="primitive·char"><code>char</code></a>s·of·a·string·slice,·and·their·positions.</p>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="An·iterator·over·the·`char`s·of·a·string·slice,·and·their·positions."><title>CharIndices·in·alloc::str·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»     2025-01-07)»  (built»    from»a»       source» tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Char<wbr>Indices</a></h2><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.as_str"·title="as_str">as_str</a></li><li><a·href="#method.offset"·title="offset">offset</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-CharIndices%3C'a%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-CharIndices%3C'a%3E"·title="Debug">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-CharIndices%3C'a%3E"·title="DoubleEndedIterator">DoubleEndedIterator</a></li><li><a·href="#impl-FusedIterator-for-CharIndices%3C'_%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-CharIndices%3C'a%3E"·title="Iterator">Iterator</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-CharIndices%3C'a%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-CharIndices%3C'a%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-CharIndices%3C'a%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-CharIndices%3C'a%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-CharIndices%3C'a%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-CharIndices%3C'a%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>str</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">alloc</a>::<wbr><a·href="index.html">str</a></span><h1>Struct·<span·class="struct">CharIndices</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../src/core/str/iter.rs.html#175">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·CharIndices&lt;'a&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><[·...·truncated·by·diffoscope;·len:·100,·SHA:·79dd0480913d383f402c7e978a4b969cd0c1b128e4facfc6782ee8e7737e9c42·...·]/core/primitive.char.html"·title="primitive·char"><code>char</code></a>s·of·a·string·slice,·and·their·positions.</p>
2 <p>This·struct·is·created·by·the·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.str.html#method.char_indices"·title="method·str::char_indices"><code>char_indices</code></a>·method·on·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.str.html"·title="primitive·str"><code>str</code></a>.2 <p>This·struct·is·created·by·the·<a·href="../../core/primitive.str.html#method.char_indices"·title="method·str::char_indices"><code>char_indices</code></a>·method·on·<a·href="../../core/primitive.str.html"·title="primitive·str"><code>str</code></a>.
3 See·its·documentation·for·more.</p>3 See·its·documentation·for·more.</p>
4 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-CharIndices%3C'a%3E"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/str/iter.rs.html#229">Source</a><a·href="#impl-CharIndices%3C'a%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a&gt;·<a·class="struct"·href="struct.CharIndices.html"·title="struct·alloc::str::CharIndices"[·...·truncated·by·diffoscope;·len:·533,·SHA:·562013171946ef15eb416d239801d34cc928e5fa08e47bc3930a90932a1adda4·...·]/core/primitive.str.html">str</a></h4></section></summary><div·class="docblock"><p>Views·the·underlying·data·as·a·subslice·of·the·original·data.</p>4 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-CharIndices%3C'a%3E"·class="impl"><a·class="src·rightside"·href="../../src/core/str/iter.rs.html#229">Source</a><a·href="#impl-CharIndices%3C'a%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a&gt;·<a·class="struct"·href="struct.CharIndices.html"·title="struct·alloc::str::CharIndices">CharIndices</a>&lt;'a&gt;<[·...·truncated·by·diffoscope;·len:·452,·SHA:·c1f6f6e6f4482a9b9cf16a1dac4d9371ce8f2e1d27f0bee53f27c0bed97948ba·...·]/core/primitive.str.html">str</a></h4></section></summary><div·class="docblock"><p>Views·the·underlying·data·as·a·subslice·of·the·original·data.</p>
5 <p>This·has·the·same·lifetime·as·the·original·slice,·and·so·the5 <p>This·has·the·same·lifetime·as·the·original·slice,·and·so·the
6 iterator·can·continue·to·be·used·while·this·exists.</p>6 iterator·can·continue·to·be·used·while·this·exists.</p>
7 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.offset"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.82.0">1.82.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/str/iter.rs.html#273">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.offset"·class="fn">offset</a>(&amp;self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.usize.html">usize</a></h4></section></summary><div·class="docblock"><p>Returns·the·byte·position·of·the·next·character,·or·the·length7 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.offset"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.82.0">1.82.0</span>···<a·class="src"·href="../../src/core/str/iter.rs.html#273">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.offset"·class="fn">offset</a>(&amp;self)·-&gt;·<a·class="primitive"·href="../../core/primitive.usize.html">usize</a></h4></section></summary><div·class="docblock"><p>Returns·the·byte·position·of·the·next·character,·or·the·length
8 of·the·underlying·string·if·there·are·no·more·characters.</p>8 of·the·underlying·string·if·there·are·no·more·characters.</p>
9 <p>This·means·that,·when·the·iterator·has·not·been·fully·consumed,9 <p>This·means·that,·when·the·iterator·has·not·been·fully·consumed,
10 the·returned·value·will·match·the·index·that·will·be·returned10 the·returned·value·will·match·the·index·that·will·be·returned
11 by·the·next·call·to·<a·href="struct.CharIndices.html#method.next"·title="method·alloc::str::CharIndices::next"><code>next()</code></a>.</p>11 by·the·next·call·to·<a·href="struct.CharIndices.html#method.next"·title="method·alloc::str::CharIndices::next"><code>next()</code></a>.</p>
12 <h5·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h5>12 <h5·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h5>
13 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span><span·class="kw-2">mut·</span>chars·=·<span·class="string">"a楽"</span>.char_indices();13 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span><span·class="kw-2">mut·</span>chars·=·<span·class="string">"a楽"</span>.char_indices();
  
Offset 24, 235 lines modifiedOffset 24, 235 lines modified
24 <span·class="comment">//·...·which·matches·the·index·returned·by·the·next·call·to·`next()`.24 <span·class="comment">//·...·which·matches·the·index·returned·by·the·next·call·to·`next()`.
25 </span><span·class="macro">assert_eq!</span>(chars.next(),·<span·class="prelude-val">Some</span>((<span·class="number">1</span>,·<span·class="string">'楽'</span>)));25 </span><span·class="macro">assert_eq!</span>(chars.next(),·<span·class="prelude-val">Some</span>((<span·class="number">1</span>,·<span·class="string">'楽'</span>)));
  
26 <span·class="comment">//·Once·the·iterator·has·been·consumed,·`offset()`·returns·the·length26 <span·class="comment">//·Once·the·iterator·has·been·consumed,·`offset()`·returns·the·length
27 //·in·bytes·of·the·string.27 //·in·bytes·of·the·string.
28 </span><span·class="macro">assert_eq!</span>(chars.offset(),·<span·class="number">4</span>);28 </span><span·class="macro">assert_eq!</span>(chars.offset(),·<span·class="number">4</span>);
29 <span·class="macro">assert_eq!</span>(chars.next(),·<span·class="prelude-val">None</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++let+mut+chars+=+%22a%E6%A5%BD%22.char_indices();%0A++++%0A++++//+%60next()%60+has+not+been+called+yet,+so+%60offset()%60+returns+the+byte%0A++++//+index+of+the+first+character+of+the+string,+which+is+always+0.%0A++++assert_eq!(chars.offset(),+0);%0A++++//+As+expected,+the+first+call+to+%60next()%60+also+returns+0+as+index.%0A++++assert_eq!(chars.next(),+Some((0,+'a')));%0A++++%0A++++//+%60next()%60+has+been+called+once,+so+%60offset()%60+returns+the+byte+index%0A++++//+of+the+second+character+...%0A++++assert_eq!(chars.offset(),+1);%0A++++//+...+which+matches+the+index+returned+by+the+next+call+to+%60next()%60.%0A++++assert_eq!(chars.next(),+Some((1,+'%E6%A5%BD')));%0A++++%0A++++//+Once+the+iterator+has+been+consumed,+%60offset()%60+returns+the+length%0A++++//+in+bytes+of+the+string.%0A++++assert_eq!(chars.offset(),+4);%0A++++assert_eq!(chars.next(),+None);%0A%7D&amp;edition=2021"></a></div>29 <span·class="macro">assert_eq!</span>(chars.next(),·<span·class="prelude-val">None</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++let+mut+chars+=+%22a%E6%A5%BD%22.char_indices();%0A++++%0A++++//+%60next()%60+has+not+been+called+yet,+so+%60offset()%60+returns+the+byte%0A++++//+index+of+the+first+character+of+the+string,+which+is+always+0.%0A++++assert_eq!(chars.offset(),+0);%0A++++//+As+expected,+the+first+call+to+%60next()%60+also+returns+0+as+index.%0A++++assert_eq!(chars.next(),+Some((0,+'a')));%0A++++%0A++++//+%60next()%60+has+been+called+once,+so+%60offset()%60+returns+the+byte+index%0A++++//+of+the+second+character+...%0A++++assert_eq!(chars.offset(),+1);%0A++++//+...+which+matches+the+index+returned+by+the+next+call+to+%60next()%60.%0A++++assert_eq!(chars.next(),+Some((1,+'%E6%A5%BD')));%0A++++%0A++++//+Once+the+iterator+has+been+consumed,+%60offset()%60+returns+the+length%0A++++//+in+bytes+of+the+string.%0A++++assert_eq!(chars.offset(),+4);%0A++++assert_eq!(chars.next(),+None);%0A%7D&amp;edition=2021"></a></div>
30 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-CharIndices%3C'a%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/str/iter.rs.html#172">Source</a></span><a·href="#impl-Clone-for-CharIndices%3C'a%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/tra[·...·truncated·by·diffoscope;·len:·8647,·SHA:·dbfd00095f44d6e777d3ea3b685fadfde86a9582221c97db590e52f7317c587e·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold"·class="fn">try_rfold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where30 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-CharIndices%3C'a%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/str/iter.rs.html#172">Source</a></span><a·href="#impl-Clone-for-CharIndices%3C'a%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a&gt;·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone<[·...·truncated·by·diffoscope;·len:·7675,·SHA:·7aab1683d72884636bccfd0ddfaa3dadad3fa743a073271c3e576d9240d62663·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold"·class="fn">try_rfold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where
31 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,31 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
32 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,32 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
33 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>This·is·the·reverse·version·of·<a·href="https://doc.rust-lang.org/1.8[·...·truncated·by·diffoscope;·len:·3,·SHA:·fbd04e1aae9ce0b11a8946e2c9ac2619f7428a64d32d01eff61d809dcb70ee8e·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·title="method·core::iter::traits::iterator::Iterator::try_fold"><code>Iterator::try_fold()</code></a>:·it·takes33 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>This·is·the·reverse·version·of·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·title="method·core::iter::traits::iterator::Iterator::try_fold"><code>Iterator::try_fold()</code></a>:·it·takes
34 elements·starting·from·the·back·of·the·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfold"·class="method·trait-impl"><span·clas[·...·truncated·by·diffoscope;·len:·325,·SHA:·7ffdb06a8ab3810207a1c974783822231eaf1d82fd94bcf810dd7b3181149b7b·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold"·class="fn">rfold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where34 elements·starting·from·the·back·of·the·iterator.·<a·href="../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfold"·class="method·trait-impl"><span·class="rightside"><span·class="[·...·truncated·by·diffoscope;·len:·244,·SHA:·6c4fe3f75fed1f00ec73ae6acd6efe929fb891f07f47293eec1013d32fc0fbe1·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold"·class="fn">rfold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where
35 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,35 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
36 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·reduces·the·iterator’s·elements·to·a·single,36 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·reduces·the·iterator’s·elements·to·a·single,
37 final·value,·starting·from·the·back.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfind"·class="method·trait-impl"><span·class="r[·...·truncated·by·diffoscope;·len:·665,·SHA:·fde89feb7c0e70eefa34d688476ca36a70115bec8150dbf9b1a3c359f72dd28d·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where37 final·value,·starting·from·the·back.·<a·href="../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfind"·class="method·trait-impl"><span·class="rightside"><span·class="sinc[·...·truncated·by·diffoscope;·len:·530,·SHA:·75a595bf6f9813abee32ae86d68f5de961884ee60e7080e18fb9c73b8e22c5f0·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
38 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,38 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
39 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·6217,·SHA:·dc1cea89b100dda342a4e5bfff6d0032ca4a103b97121a5e43ba2bd6d7b2a568·...·]/core/primitive.usize.html">usize</a>&gt;(39 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·5272,·SHA:·a1ced75e9d4c90441bda944c54d608ec4c9366dc6807b60ab68e4fef021424ec·...·]/core/primitive.usize.html">usize</a>&gt;(
40 ····&amp;mut·self,40 ····&amp;mut·self,
41 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·4f557a9b49151e0be8c52ffd68f1def4469c08164239dc8bef8df2040551c5ef·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where41 )·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">It[·...·truncated·by·diffoscope;·len:·246,·SHA:·baf6c8e6f3d5dbac69324111240b1587dbb858d42149cae1ee895a165289ff4f·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where
42 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·3794,·SHA:·37f2ee17b84447865adda9b527b630defc5c9ca7f924716dd3ef0c8d346542dc·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where42 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_next_ch[·...·truncated·by·diffoscope;·len:·3254,·SHA:·a0e0d7a3fda59c9ae5226408748f4008e705816f366af1c3980a6adccb56a404·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where
43 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by43 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by
44 the·given·amount·at·each·iteration.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><sp[·...·truncated·by·diffoscope;·len:·842,·SHA:·945c4509a8daf2f8fbccc5c6e5089e225955911e03a3e411f047f96d52d16862·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where44 the·given·amount·at·each·iteration.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Sta[·...·truncated·by·diffoscope;·len:·680,·SHA:·77241b5118fcbc984cb791fa9f75077307e18056b66492741335faf440cbdabc·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
45 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,45 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
46 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·3b5ce32f9d564c3aa7cf2adc7130e674758d0c0f4f1275b4c3b46a74aa802cb3·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where46 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·1113,·SHA:·ccf22d19f49a25daffdcc6d9226d5107457a8bfd16beccfeff5020d151bdb8bb·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
47 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,47 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
48 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·[·...·truncated·by·diffoscope;·len:·868,·SHA:·abdbf27ccc84063c7040d8fa3da9d0bda5ee310a470ef576e15554aee4bd5d21·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where48 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·of·pairs.·<a·href="../../co[·...·truncated·by·diffoscope;·len:·706,·SHA:·f32c568f049122021445a983654582d97ac74064a3e99c3361b348bd7708c1b2·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where
49 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,49 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
50 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent50 ····Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent
51 items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="sr[·...·truncated·by·diffoscope;·len:·427,·SHA:·6e82ad4aad49c2165d869fe30d20a968580a973cdb3a7f4c77f49e16dd59393e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where51 items·of·the·original·iterator.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="src·rightside"·href="../../sr[·...·truncated·by·diffoscope;·len:·319,·SHA:·8babc469a22056fc5a02684b52f9f93ba9c27a3dd2e8443ddc060797054e211e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where
52 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,52 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
53 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>53 ····G:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>
54 between·adjacent·items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightsi[·...·truncated·by·diffoscope;·len:·471,·SHA:·ed10488b7b2ccc3e4cc84a9a57a9695a74c1c964962e8d753cbace12f3318a66·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where54 between·adjacent·items·of·the·original·iterator.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·tit[·...·truncated·by·diffoscope;·len:·363,·SHA:·09aee21fa4172b743a714e2cb5915129575ce0224df49c7343dec38f43b7ecfd·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where
55 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,55 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
56 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each56 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each
57 element.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><spa[·...·truncated·by·diffoscope;·len:·306,·SHA:·61c87c39b177830189b0e4c036d97c40d8b9649d76432c90afb88de59498e8b2·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where57 element.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stab[·...·truncated·by·diffoscope;·len:·225,·SHA:·a0f2490a1a5fd6b44e0ab01199cbbbd6e5463251405d11eaf6798c9b50bbd683·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where
58 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,58 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
59 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·a65da32c5f5ef8335cb607d3b4ab3f8a25877bc2c2e8b44ca9d575caecd5c8a5·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where59 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·754,·SHA:·421e55a5747cab3df1dad40b747b4633f241bdc13a1546bb19b1370788dea27d·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where
60 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,60 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
61 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·6d69c85c69fa789be551ea42d95c33c237d12a04ef157f9ddaaead1177f7771e·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element61 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·59,·SHA:·76969e34965f1923de668a65a9f5c33f73266468c9b96650bcc5fd498e606a6b·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element
62 should·be·yielded.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·489,·SHA:·9bdc636899f4e4e5a26a3a21c9603f72b3fb972865d2f459c38b7e2ac8fed7f1·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where62 should·be·yielded.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·cf812944678f6755720896cf32b330946303afe59f1b1c11adeb6a7f33454c8d·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where
63 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,63 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
64 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·46dbf841c7aecd3f06bd4c944af21650faeac98c46c515dcfe643302618b1ecd·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where64 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·863,·SHA:·c2bab87fa2a70713bd2d34b3dcae8f4ff2341917103b43a1dd505317f15d6cff·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where
65 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as65 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as
66 the·next·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside[·...·truncated·by·diffoscope;·len:·468,·SHA:·52f7ff7f264284c3acc4429ca34d057ded9afa2e3d9d6e07571e252db9a48977·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where66 the·next·value.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title[·...·truncated·by·diffoscope;·len:·360,·SHA:·688416dc1aaaa0be069177270ba9e74b3d1b92521285a109dc7ba86b58c1f22a·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where
67 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·c0180fefce4346b0b4089e5c642521d7716108241c0ce6ec3e910c7a2c7364b4·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods67 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="../../core/iter/adapters/peekable/struct.Peekable.html#method.peek"·title="m[·...·truncated·by·diffoscope;·len:·94,·SHA:·78aeab33f83c647dfe680c1050358c95977e3af17eabde4a04880721ea1a619d·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods
68 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See68 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See
69 their·documentation·for·more·information.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightsid[·...·truncated·by·diffoscope;·len:·498,·SHA:·e4a68861585faec6a5032b3b69d6dfb0f2799b5f387a527d9a1365571ed02069·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where69 their·documentation·for·more·information.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightside"><span·class="since"·titl[·...·truncated·by·diffoscope;·len:·390,·SHA:·5da622ae0e4d00b47239007520070e22568156d6c5b1662db8b80b465934b18c·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where
70 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,70 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
71 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·93281c1f6402743fd61110c11cf676f0f67eddceda801b4eb35e5fe9f85870fd·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where71 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·1018,·SHA:·732548acff5239e9a7b904f32790c90ab3b63522635334128f35e01d37ceaeb6·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where
72 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,72 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
73 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·f1cdbb1ec64f98fabbe1d89c88b03824310926cd7eaa160953ce2452fc3abb77·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where73 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·869,·SHA:·8ec7e525848424d5104dbdd10928d17cfee4e5aee63cdda7ecdbe323b30b59d3·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where
74 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,74 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
75 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·f94a0b2c1396b13b89aca7830197ebf19e2c0e5ba536a9cc25b325a481799510·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where75 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·947,·SHA:·fdd074315a0bfb226f815b1b6ea114c7367886338ffffff233d7f6fc3108769a·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where
76 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="https://doc.rust-lang[·...·truncated·by·diffoscope;·len:·783,·SHA:·c14217b89e3292a50a09192a8857485891fc769f861e1d1fc4322d04295c86ef·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where76 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="../../core/iter/traits/iterator/trait.Iterator.h[·...·truncated·by·diffoscope;·len:·621,·SHA:·484df7f946e7f2f69c3acad8964421c0db8ac5bb40032d11bbd862e20e67704c·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where
77 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer77 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer
78 if·the·underlying·iterator·ends·sooner.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·c[·...·truncated·by·diffoscope;·len:·488,·SHA:·76f753d5a273a09a73127631acaa0ee947326a929f33be291018188793e1af56·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where78 if·the·underlying·iterator·ends·sooner.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·[·...·truncated·by·diffoscope;·len:·380,·SHA:·fa258c7e0b5d583304a69e2d4e19f3d4cc9a9ed830bdf3796eaa0968bdf590b4·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where
79 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,79 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
80 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·07d303586c8ad4e0082d5b44bff8eeda03cdb8f4bdbe46489f9232bca5a43ec6·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but80 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterat[·...·truncated·by·diffoscope;·len:·314,·SHA:·299331ff47adaff3ebc292c53557ad34da957aef932f87ec0444c7f856820410·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but
81 unlike·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·2b20882d9583cee50e0c8b3cf362b27ce0d524db387d4aa4093d622b9370dada·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where81 unlike·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.scan">Read·more[·...·truncated·by·diffoscope;·len:·555,·SHA:·77279e392f259f6d4859f5a7747ee4b4d5315f3af0ac3baebf1d53be3461b312·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where
82 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,82 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
83 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,83 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
84 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·933,·SHA:·4af94b75ba5c1e03d2d70590d2fd0706f13b3080fbff0f5b98e7b109048c403d·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where84 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·771,·SHA:·a1a50c8ca4c13151c7b22ce05c74c449231e1ffe44225beee67ff212fc1d3859·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where
85 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,85 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
86 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.I[·...·truncated·by·diffoscope;·len:·968,·SHA:·e5572ed2f3bdf5970d038da608f2f592d945541207c483c257fe5789efba168a·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where86 ····Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::col[·...·truncated·by·diffoscope;·len:·779,·SHA:·a4e524bd8aa8a1e0a66409d1b462b88093ab51a1f901ff1a788d7ee63d597f4c·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where
87 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,87 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
88 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·3013c0e49b0dade37f8ca096eccc5ceeb03fc79b9d320a4c92486d23b88d1009·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over88 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·54,·SHA:·6acee514e4d8df8979b4bba687b7e0d5dbb0ea4f98a7019e2fb03f3a8058df0f·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over
89 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,89 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="../../core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,
90 the·windows·during·mapping·overlap·as·well.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside">[·...·truncated·by·diffoscope;·len:·454,·SHA:·040991f3914479bcc92615de2b81df7363656323622e5aadc964e1a61917d23e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where90 the·windows·during·mapping·overlap·as·well.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="[·...·truncated·by·diffoscope;·len:·346,·SHA:·b1244a5f92e0573c29e04e883cf8212ba2586013b3687af07b63c29d2e611530·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where
91 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="https://doc.rust-lang.org/1.84.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·0e0294a45242d5ce9a3ab8f95d6d410756415291d92baa7d12283ef1b3ecc3a0·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where91 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="../../core/option/enum.Option.html#variant.None"·title="variant·cor[·...·truncated·by·diffoscope;·len:·679,·SHA:·ec753d6ecf7b9fe81cb270d78e45e053f2702fff74c7a63c2ab8da22b97fea86·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where
92 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,92 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
93 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·a8b562f71802a421f4745f7d1fadf4f70d98030c829e70f27b692e7915267027·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where93 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·635,·SHA:·ee3a5bcc3544c3f17985966634fef69b1708d641ddb7e62aaac76933935c5ef7·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where
94 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="https://doc.rust-lang.org/1.84.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·b3db7d84f203bbc139b1c52912705d19c664dac762898205fce452c9dc3a5318·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where94 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.by_ref">[·...·truncated·by·diffoscope;·len:·415,·SHA:·7e0e075470d2db380bcf0838446659654c982aa2ca7831ed7d0317877855be2a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where
95 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,95 ····B:·<a·class="trait"·href="../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
96 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·431,·SHA:·a705a23f6d810357e7dcac670743884665ffcccfb9b780d0aa03720be8ca5625·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(96 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.collect">Read[·...·truncated·by·diffoscope;·len:·323,·SHA:·80e0dde3814a6e7cf4e30949627abc841ab4e98e2a920efb248777e22708682d·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(
97 ····&amp;mut·self,97 ····&amp;mut·self,
98 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.h[·...·truncated·by·diffoscope;·len:·479,·SHA:·fa749442d890055f86ceb34f411c84fd7ea08302b336d786d1ca36fe5868b020·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where98 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&g[·...·truncated·by·diffoscope;·len:·344,·SHA:·c06c6401df0a7150633e94cc973521da42e09819b07be80ba18d6acb696860a9·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
99 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,99 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
100 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>,100 ····Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>,
101 ····&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.h[·...·truncated·by·diffoscope;·len:·300,·SHA:·3bff089180bac38df7f42b87556fae7641185b89a949c284f53e3ac718a6decb·...·]/core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;B&gt;,101 ····&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&g[·...·truncated·by·diffoscope;·len:·192,·SHA:·039ceb6ce31fc6b1871e3e366efbd0f164f4a6cc1bc25554bba598b0ee820cca·...·]/core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;B&gt;,
102 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/itera[·...·truncated·by·diffoscope;·len:·323,·SHA:·b5c51f161dc9d77fd81d1fd23cc71fbf42ac00f3168cf9e41ebaaa2b6eb25363·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if102 ····B:·<a·class="trait"·href="../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="ty[·...·truncated·by·diffoscope;·len:·215,·SHA:·ddb8fbd12147eecef1697edd4c63187cc514ab4b851290335adfcccc3fa429ba·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if
103 a·failure·is·encountered.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·ri[·...·truncated·by·diffoscope;·len:·521,·SHA:·6a54376815dab985ec8cc35604d035e98e3003b1563c9b41e70966084505542b·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where103 a·failure·is·encountered.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/co[·...·truncated·by·diffoscope;·len:·386,·SHA:·d46a776c329de4f757930edda252586c2cdd85c6956b7b2f68448da33ee0625e·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
104 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,104 ····E:·<a·class="trait"·href="../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
105 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·975,·SHA:·94f7f970236ba59ba5f1415764a0e3ab2f3093c6b79e76c25c797ac24a3c4d09·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where105 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_collect[·...·truncated·by·diffoscope;·len:·840,·SHA:·1ee6fbe4deb3d959e9ade58fb7ed3efa79d09721ed02fbb5f5f82aae6aa1425d·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
106 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,106 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
107 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·b480ec650ba000fe7cb67df58fc0351299638ee3e8f00db18f74ca24d69f9894·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,107 ····B:·<a·class="trait"·href="../../core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtyp[·...·truncated·by·diffoscope;·len:·14,·SHA:·4105980ca4887a52797067761af25a11e3de6069cd8d7c8ce82cd885bb798fe8·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
108 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·fdf5a1845f070855ba2cfd0c8c85460ea5cb646c4d3b42a8431bf21489c73701·...·]/core/primitive.usize.html">usize</a><div·class="where">where108 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·806,·SHA:·4d554b733db12e71a31ec2477a31408041941b0e2b0dc910904ecf2fced9f65b·...·]/core/primitive.usize.html">usize</a><div·class="where">where
109 ····T:·'a,109 ····T:·'a,
110 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·1fc250e258e9e42e4fa3e22f86ecd57057e9ff23e47af1aec778076a7a891134·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,110 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIter[·...·truncated·by·diffoscope;·len:·51,·SHA:·c9be73bbed9d11ecac2a179f480a640f51d6255f26712667ffdabc72c1fc7fb0·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,
111 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·5846407374f20f525a4a0663ad4488141eafe64513ef82581dc5df5c2d200745·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_partition_in_place</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62543">#62543</a>)</span></div></span><div·class='docblock'>Reorders·the·elements·of·this·iterator·<em>in-place</em>·according·to·the·given·predicate,111 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="../../core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_partition_in_place</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62543">#62543</a>)</span></div></span><div·class='docblock'>Reorders·the·elements·of·this·iterator·<em>in-place</em>·according·to·the·given·predicate,
112 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.112 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.
113 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.partition_in_place">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_partitioned"·class="method·trait-impl"><a·clas[·...·truncated·by·diffoscope;·len:·431,·SHA:·4aa7d028146c72d45794efc19a376d4bee3b75eda61ff46d969e440b3dbfa1b0·...·]/core/primitive.bool.html">bool</a><div·class="where">where113 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.partition_in_place">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_partitioned"·class="method·trait-impl"><a·class="src·rightside"·href="../[·...·truncated·by·diffoscope;·len:·323,·SHA:·bfc44418fa28079222aab80e2baccdaffb2d067bbe5d1b5162202d268ad628d7·...·]/core/primitive.bool.html">bool</a><div·class="where">where
114 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,114 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
115 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·fcd03e71f79faad6d9b9a12045d59f4dfabc78e5aefebcabc9c1a5be45e31125·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,115 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·54,·SHA:·d5ac304cc26edf57442227b641dd21c427d0f9cb322b79986f5b15fc49f867b0·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,
116 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><span·class="righ[·...·truncated·by·diffoscope;·len:·319,·SHA:·9b9df13f2f4e5b4dde3908515766e1a474fa30bcb7edc98c15665a016e677c2a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where116 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><span·class="rightside"><span·class="since"·[·...·truncated·by·diffoscope;·len:·238,·SHA:·af6ab768457e0afa1532b80c4296ae18061dac4c765922889b13eead3e5492db·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where
117 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,117 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
118 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,118 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
119 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns119 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns
120 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rights[·...·truncated·by·diffoscope;·len:·321,·SHA:·619fd774190944998148325de99aaa75de66ce4b7e26579fd342c564923a5652·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where120 successfully,·producing·a·single,·final·value.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"·ti[·...·truncated·by·diffoscope;·len:·240,·SHA:·125e84deea747ccbe139725d028362287beed6a89ab9da3a3aabd7df537abc59·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where
121 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,121 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
122 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,122 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
123 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the123 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="../../core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the
124 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·307,·SHA:·5975144fd8566efa93ad1ccec09297e280924b7372e08681d2103702124e2c52·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where124 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title=[·...·truncated·by·diffoscope;·len:·226,·SHA:·a7510e9271e68887d9e2681c6bc28312cec9ac38883128845f52742935a160a9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where
125 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,125 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
126 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,126 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,
127 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span[·...·truncated·by·diffoscope;·len:·619,·SHA:·8813f54846438870310d5f5dfabd2335a9dbf51e9da2e4cd681bcb6077d39628·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where127 returning·the·final·result.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stabl[·...·truncated·by·diffoscope;·len:·484,·SHA:·5f42e8d5ff08f4c76870e6cb9165e054f9a0d99051d9886ccd43d5c8a91e1fbc·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
128 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,128 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
129 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·084691f7fc4e7f4da7db385127d0ce8d2d52f6740757129a65910c4db0dc180d·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing129 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·244,·SHA:·f09ac7e818239538c3f3208cb5c76076c24a0153797eb762821d5bf2a382d83b·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing
130 operation.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·217,·SHA:·447ae00256be3de069c602a6c04889808c883eae6fa349d023f53bdd5570ecae·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(130 operation.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/iter[·...·truncated·by·diffoscope;·len:·136,·SHA:·97e3ee132585582ec7077e3bbd86406d8a2dcfc97dce7fd52b49af3ec1b58622·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(
131 ····&amp;mut·self,131 ····&amp;mut·self,
132 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R, 
133 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.T[·...·truncated·by·diffoscope;·len:·950,·SHA:·817376e71f7a0d170bfbd4b7264c15d324f49c65106c49349d11a077842aa533·...·]132 ····f:·impl·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core:[·...·truncated·by·diffoscope;·len:·238,·SHA:·a52edc1a1ce1db5dd6e620dbfe5acb58fdc6d84f2320cef02845988aa54e5c55·...·]
 133 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;&gt;&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
Max diff block lines reached; 158739/348912 bytes (45.50%) of diff not shown.
336 KB
./usr/share/doc/rust-doc/html/alloc/str/struct.Chars.html
    
Offset 1, 243 lines modifiedOffset 1, 243 lines modified
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="An·iterator·over·the·`char`s·of·a·string·slice."><title>Chars·in·alloc::str·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»     2025-01-07)»  (built»    from»a»       source» tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Chars</a></h2><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.as_str"·title="as_str">as_str</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-Chars%3C'a%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-Chars%3C'_%3E"·title="Debug">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-Chars%3C'a%3E"·title="DoubleEndedIterator">DoubleEndedIterator</a></li><li><a·href="#impl-FusedIterator-for-Chars%3C'_%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-Chars%3C'a%3E"·title="Iterator">Iterator</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-Chars%3C'a%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Chars%3C'a%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Chars%3C'a%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-Chars%3C'a%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-Chars%3C'a%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Chars%3C'a%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>str</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">alloc</a>::<wbr><a·href="index.html">str</a></span><h1>Struct·<span·class="struct">Chars</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/str/iter.rs.html#30">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·Chars&lt;'a&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summ[·...·truncated·by·diffoscope;·len:·147,·SHA:·b5137935b907701f048191a528b08a262711ecbf628151b1d783954894890bb9·...·]/core/primitive.char.html"·title="primitive·char"><code>char</code></a>s·of·a·string·slice.</p>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="An·iterator·over·the·`char`s·of·a·string·slice."><title>Chars·in·alloc::str·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»     2025-01-07)»  (built»    from»a»       source» tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Chars</a></h2><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.as_str"·title="as_str">as_str</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-Chars%3C'a%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-Chars%3C'_%3E"·title="Debug">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-Chars%3C'a%3E"·title="DoubleEndedIterator">DoubleEndedIterator</a></li><li><a·href="#impl-FusedIterator-for-Chars%3C'_%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-Chars%3C'a%3E"·title="Iterator">Iterator</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-Chars%3C'a%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Chars%3C'a%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Chars%3C'a%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-Chars%3C'a%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-Chars%3C'a%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Chars%3C'a%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>str</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">alloc</a>::<wbr><a·href="index.html">str</a></span><h1>Struct·<span·class="struct">Chars</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../src/core/str/iter.rs.html#30">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·Chars&lt;'a&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Ex[·...·truncated·by·diffoscope;·len:·93,·SHA:·82f6edfeb99ca1c34fb0fdd80f3e9c5fac18a7f6a36783000495d1ef4f92f0ce·...·]/core/primitive.char.html"·title="primitive·char"><code>char</code></a>s·of·a·string·slice.</p>
2 <p>This·struct·is·created·by·the·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.str.html#method.chars"·title="method·str::chars"><code>chars</code></a>·method·on·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.str.html"·title="primitive·str"><code>str</code></a>.2 <p>This·struct·is·created·by·the·<a·href="../../core/primitive.str.html#method.chars"·title="method·str::chars"><code>chars</code></a>·method·on·<a·href="../../core/primitive.str.html"·title="primitive·str"><code>str</code></a>.
3 See·its·documentation·for·more.</p>3 See·its·documentation·for·more.</p>
4 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Chars%3C'a%3E"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/str/iter.rs.html#138">Source</a><a·href="#impl-Chars%3C'a%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a&gt;·<a·class="struct"·href="struct.Chars.html"·title="struct·alloc::str::Chars">Chars</a>&lt;'a&g[·...·truncated·by·diffoscope;·len:·509,·SHA:·59dcad5fd3bb7aa3c31d67d6823345c764f9d441a676202ebb6890f21bab2edc·...·]/core/primitive.str.html">str</a></h4></section></summary><div·class="docblock"><p>Views·the·underlying·data·as·a·subslice·of·the·original·data.</p>4 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Chars%3C'a%3E"·class="impl"><a·class="src·rightside"·href="../../src/core/str/iter.rs.html#138">Source</a><a·href="#impl-Chars%3C'a%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a&gt;·<a·class="struct"·href="struct.Chars.html"·title="struct·alloc::str::Chars">Chars</a>&lt;'a&gt;</h3></section></summary>[·...·truncated·by·diffoscope;·len:·428,·SHA:·acb6d6c5c4e66067893153f43d657b5ddf4cf2b58a75a49e8b7567baa109194f·...·]/core/primitive.str.html">str</a></h4></section></summary><div·class="docblock"><p>Views·the·underlying·data·as·a·subslice·of·the·original·data.</p>
5 <p>This·has·the·same·lifetime·as·the·original·slice,·and·so·the5 <p>This·has·the·same·lifetime·as·the·original·slice,·and·so·the
6 iterator·can·continue·to·be·used·while·this·exists.</p>6 iterator·can·continue·to·be·used·while·this·exists.</p>
7 <h5·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h5>7 <h5·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h5>
8 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span><span·class="kw-2">mut·</span>chars·=·<span·class="string">"abc"</span>.chars();8 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span><span·class="kw-2">mut·</span>chars·=·<span·class="string">"abc"</span>.chars();
  
9 <span·class="macro">assert_eq!</span>(chars.as_str(),·<span·class="string">"abc"</span>);9 <span·class="macro">assert_eq!</span>(chars.as_str(),·<span·class="string">"abc"</span>);
10 chars.next();10 chars.next();
11 <span·class="macro">assert_eq!</span>(chars.as_str(),·<span·class="string">"bc"</span>);11 <span·class="macro">assert_eq!</span>(chars.as_str(),·<span·class="string">"bc"</span>);
12 chars.next();12 chars.next();
13 chars.next();13 chars.next();
14 <span·class="macro">assert_eq!</span>(chars.as_str(),·<span·class="string">""</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++let+mut+chars+=+%22abc%22.chars();%0A++++%0A++++assert_eq!(chars.as_str(),+%22abc%22);%0A++++chars.next();%0A++++assert_eq!(chars.as_str(),+%22bc%22);%0A++++chars.next();%0A++++chars.next();%0A++++assert_eq!(chars.as_str(),+%22%22);%0A%7D&amp;edition=2021"></a></div>14 <span·class="macro">assert_eq!</span>(chars.as_str(),·<span·class="string">""</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++let+mut+chars+=+%22abc%22.chars();%0A++++%0A++++assert_eq!(chars.as_str(),+%22abc%22);%0A++++chars.next();%0A++++assert_eq!(chars.as_str(),+%22bc%22);%0A++++chars.next();%0A++++chars.next();%0A++++assert_eq!(chars.as_str(),+%22%22);%0A%7D&amp;edition=2021"></a></div>
15 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-Chars%3C'a%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/str/iter.rs.html#27">Source</a></span><a·href="#impl-Clone-for-Chars%3C'a%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clon[·...·truncated·by·diffoscope;·len:·8429,·SHA:·e76c740253bbd94b0ca21a515964c4f57a0b0cdf72b411896caba997868e3d12·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold"·class="fn">try_rfold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where15 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-Chars%3C'a%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/str/iter.rs.html#27">Source</a></span><a·href="#impl-Clone-for-Chars%3C'a%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a&gt;·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for[·...·truncated·by·diffoscope;·len:·7484,·SHA:·bfd60a7f91f9ea8f8b2cf0769c4aef26aaf2d4f430f9390c0e04825ee49bb21a·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold"·class="fn">try_rfold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where
16 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,16 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
17 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,17 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
18 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>This·is·the·reverse·version·of·<a·href="https://doc.rust-lang.org/1.8[·...·truncated·by·diffoscope;·len:·3,·SHA:·fbd04e1aae9ce0b11a8946e2c9ac2619f7428a64d32d01eff61d809dcb70ee8e·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·title="method·core::iter::traits::iterator::Iterator::try_fold"><code>Iterator::try_fold()</code></a>:·it·takes18 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>This·is·the·reverse·version·of·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·title="method·core::iter::traits::iterator::Iterator::try_fold"><code>Iterator::try_fold()</code></a>:·it·takes
19 elements·starting·from·the·back·of·the·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfold"·class="method·trait-impl"><span·clas[·...·truncated·by·diffoscope;·len:·325,·SHA:·7ffdb06a8ab3810207a1c974783822231eaf1d82fd94bcf810dd7b3181149b7b·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold"·class="fn">rfold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where19 elements·starting·from·the·back·of·the·iterator.·<a·href="../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfold"·class="method·trait-impl"><span·class="rightside"><span·class="[·...·truncated·by·diffoscope;·len:·244,·SHA:·6c4fe3f75fed1f00ec73ae6acd6efe929fb891f07f47293eec1013d32fc0fbe1·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold"·class="fn">rfold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where
20 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,20 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
21 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·reduces·the·iterator’s·elements·to·a·single,21 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·reduces·the·iterator’s·elements·to·a·single,
22 final·value,·starting·from·the·back.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfind"·class="method·trait-impl"><span·class="r[·...·truncated·by·diffoscope;·len:·665,·SHA:·fde89feb7c0e70eefa34d688476ca36a70115bec8150dbf9b1a3c359f72dd28d·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where22 final·value,·starting·from·the·back.·<a·href="../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfind"·class="method·trait-impl"><span·class="rightside"><span·class="sinc[·...·truncated·by·diffoscope;·len:·530,·SHA:·75a595bf6f9813abee32ae86d68f5de961884ee60e7080e18fb9c73b8e22c5f0·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
23 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,23 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
24 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·7402,·SHA:·1407317b6c8f49b97ec9c4af21258df6a547a67c3967a4daedff4f1db1f5a11b·...·]/core/primitive.usize.html">usize</a>&gt;(24 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·6322,·SHA:·f41f63759d4e4aa1c246ec1640458b902a75d48f06e163532b28a8ea8b7f1a59·...·]/core/primitive.usize.html">usize</a>&gt;(
25 ····&amp;mut·self,25 ····&amp;mut·self,
26 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·4f557a9b49151e0be8c52ffd68f1def4469c08164239dc8bef8df2040551c5ef·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where26 )·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">It[·...·truncated·by·diffoscope;·len:·246,·SHA:·baf6c8e6f3d5dbac69324111240b1587dbb858d42149cae1ee895a165289ff4f·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where
27 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·2270,·SHA:·24b2031246c2f647bb412b52371a88439a058d5f1726d9b0617d6b3a550bc558·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where27 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_next_ch[·...·truncated·by·diffoscope;·len:·1946,·SHA:·2072731122a9a8c878543834a923c58f4fcc3504ed619178d550a66870180dee·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where
28 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by28 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by
29 the·given·amount·at·each·iteration.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><sp[·...·truncated·by·diffoscope;·len:·842,·SHA:·945c4509a8daf2f8fbccc5c6e5089e225955911e03a3e411f047f96d52d16862·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where29 the·given·amount·at·each·iteration.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Sta[·...·truncated·by·diffoscope;·len:·680,·SHA:·77241b5118fcbc984cb791fa9f75077307e18056b66492741335faf440cbdabc·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
30 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,30 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
31 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·3b5ce32f9d564c3aa7cf2adc7130e674758d0c0f4f1275b4c3b46a74aa802cb3·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where31 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·1113,·SHA:·ccf22d19f49a25daffdcc6d9226d5107457a8bfd16beccfeff5020d151bdb8bb·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
32 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,32 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
33 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·[·...·truncated·by·diffoscope;·len:·868,·SHA:·abdbf27ccc84063c7040d8fa3da9d0bda5ee310a470ef576e15554aee4bd5d21·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where33 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·of·pairs.·<a·href="../../co[·...·truncated·by·diffoscope;·len:·706,·SHA:·f32c568f049122021445a983654582d97ac74064a3e99c3361b348bd7708c1b2·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where
34 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,34 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
35 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent35 ····Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent
36 items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="sr[·...·truncated·by·diffoscope;·len:·427,·SHA:·6e82ad4aad49c2165d869fe30d20a968580a973cdb3a7f4c77f49e16dd59393e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where36 items·of·the·original·iterator.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="src·rightside"·href="../../sr[·...·truncated·by·diffoscope;·len:·319,·SHA:·8babc469a22056fc5a02684b52f9f93ba9c27a3dd2e8443ddc060797054e211e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where
37 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,37 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
38 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>38 ····G:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>
39 between·adjacent·items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightsi[·...·truncated·by·diffoscope;·len:·471,·SHA:·ed10488b7b2ccc3e4cc84a9a57a9695a74c1c964962e8d753cbace12f3318a66·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where39 between·adjacent·items·of·the·original·iterator.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·tit[·...·truncated·by·diffoscope;·len:·363,·SHA:·09aee21fa4172b743a714e2cb5915129575ce0224df49c7343dec38f43b7ecfd·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where
40 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,40 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
41 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each41 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each
42 element.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><spa[·...·truncated·by·diffoscope;·len:·306,·SHA:·61c87c39b177830189b0e4c036d97c40d8b9649d76432c90afb88de59498e8b2·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where42 element.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stab[·...·truncated·by·diffoscope;·len:·225,·SHA:·a0f2490a1a5fd6b44e0ab01199cbbbd6e5463251405d11eaf6798c9b50bbd683·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where
43 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,43 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
44 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·a65da32c5f5ef8335cb607d3b4ab3f8a25877bc2c2e8b44ca9d575caecd5c8a5·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where44 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·754,·SHA:·421e55a5747cab3df1dad40b747b4633f241bdc13a1546bb19b1370788dea27d·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where
45 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,45 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
46 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·6d69c85c69fa789be551ea42d95c33c237d12a04ef157f9ddaaead1177f7771e·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element46 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·59,·SHA:·76969e34965f1923de668a65a9f5c33f73266468c9b96650bcc5fd498e606a6b·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element
47 should·be·yielded.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·489,·SHA:·9bdc636899f4e4e5a26a3a21c9603f72b3fb972865d2f459c38b7e2ac8fed7f1·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where47 should·be·yielded.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·cf812944678f6755720896cf32b330946303afe59f1b1c11adeb6a7f33454c8d·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where
48 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,48 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
49 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·46dbf841c7aecd3f06bd4c944af21650faeac98c46c515dcfe643302618b1ecd·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where49 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·863,·SHA:·c2bab87fa2a70713bd2d34b3dcae8f4ff2341917103b43a1dd505317f15d6cff·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where
50 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as50 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as
51 the·next·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside[·...·truncated·by·diffoscope;·len:·468,·SHA:·52f7ff7f264284c3acc4429ca34d057ded9afa2e3d9d6e07571e252db9a48977·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where51 the·next·value.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title[·...·truncated·by·diffoscope;·len:·360,·SHA:·688416dc1aaaa0be069177270ba9e74b3d1b92521285a109dc7ba86b58c1f22a·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where
52 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·c0180fefce4346b0b4089e5c642521d7716108241c0ce6ec3e910c7a2c7364b4·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods52 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="../../core/iter/adapters/peekable/struct.Peekable.html#method.peek"·title="m[·...·truncated·by·diffoscope;·len:·94,·SHA:·78aeab33f83c647dfe680c1050358c95977e3af17eabde4a04880721ea1a619d·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods
53 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See53 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See
54 their·documentation·for·more·information.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightsid[·...·truncated·by·diffoscope;·len:·498,·SHA:·e4a68861585faec6a5032b3b69d6dfb0f2799b5f387a527d9a1365571ed02069·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where54 their·documentation·for·more·information.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightside"><span·class="since"·titl[·...·truncated·by·diffoscope;·len:·390,·SHA:·5da622ae0e4d00b47239007520070e22568156d6c5b1662db8b80b465934b18c·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where
55 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,55 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
56 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·93281c1f6402743fd61110c11cf676f0f67eddceda801b4eb35e5fe9f85870fd·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where56 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·1018,·SHA:·732548acff5239e9a7b904f32790c90ab3b63522635334128f35e01d37ceaeb6·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where
57 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,57 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
58 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·f1cdbb1ec64f98fabbe1d89c88b03824310926cd7eaa160953ce2452fc3abb77·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where58 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·869,·SHA:·8ec7e525848424d5104dbdd10928d17cfee4e5aee63cdda7ecdbe323b30b59d3·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where
59 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,59 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
60 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·f94a0b2c1396b13b89aca7830197ebf19e2c0e5ba536a9cc25b325a481799510·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where60 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·947,·SHA:·fdd074315a0bfb226f815b1b6ea114c7367886338ffffff233d7f6fc3108769a·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where
61 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="https://doc.rust-lang[·...·truncated·by·diffoscope;·len:·783,·SHA:·c14217b89e3292a50a09192a8857485891fc769f861e1d1fc4322d04295c86ef·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where61 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="../../core/iter/traits/iterator/trait.Iterator.h[·...·truncated·by·diffoscope;·len:·621,·SHA:·484df7f946e7f2f69c3acad8964421c0db8ac5bb40032d11bbd862e20e67704c·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where
62 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer62 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer
63 if·the·underlying·iterator·ends·sooner.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·c[·...·truncated·by·diffoscope;·len:·488,·SHA:·76f753d5a273a09a73127631acaa0ee947326a929f33be291018188793e1af56·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where63 if·the·underlying·iterator·ends·sooner.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·[·...·truncated·by·diffoscope;·len:·380,·SHA:·fa258c7e0b5d583304a69e2d4e19f3d4cc9a9ed830bdf3796eaa0968bdf590b4·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where
64 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,64 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
65 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·07d303586c8ad4e0082d5b44bff8eeda03cdb8f4bdbe46489f9232bca5a43ec6·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but65 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterat[·...·truncated·by·diffoscope;·len:·314,·SHA:·299331ff47adaff3ebc292c53557ad34da957aef932f87ec0444c7f856820410·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but
66 unlike·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·2b20882d9583cee50e0c8b3cf362b27ce0d524db387d4aa4093d622b9370dada·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where66 unlike·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.scan">Read·more[·...·truncated·by·diffoscope;·len:·555,·SHA:·77279e392f259f6d4859f5a7747ee4b4d5315f3af0ac3baebf1d53be3461b312·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where
67 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,67 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
68 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,68 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
69 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·933,·SHA:·4af94b75ba5c1e03d2d70590d2fd0706f13b3080fbff0f5b98e7b109048c403d·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where69 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·771,·SHA:·a1a50c8ca4c13151c7b22ce05c74c449231e1ffe44225beee67ff212fc1d3859·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where
70 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,70 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
71 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.I[·...·truncated·by·diffoscope;·len:·968,·SHA:·e5572ed2f3bdf5970d038da608f2f592d945541207c483c257fe5789efba168a·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where71 ····Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::col[·...·truncated·by·diffoscope;·len:·779,·SHA:·a4e524bd8aa8a1e0a66409d1b462b88093ab51a1f901ff1a788d7ee63d597f4c·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where
72 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,72 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
73 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·3013c0e49b0dade37f8ca096eccc5ceeb03fc79b9d320a4c92486d23b88d1009·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over73 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·54,·SHA:·6acee514e4d8df8979b4bba687b7e0d5dbb0ea4f98a7019e2fb03f3a8058df0f·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over
74 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,74 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="../../core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,
75 the·windows·during·mapping·overlap·as·well.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside">[·...·truncated·by·diffoscope;·len:·454,·SHA:·040991f3914479bcc92615de2b81df7363656323622e5aadc964e1a61917d23e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where75 the·windows·during·mapping·overlap·as·well.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="[·...·truncated·by·diffoscope;·len:·346,·SHA:·b1244a5f92e0573c29e04e883cf8212ba2586013b3687af07b63c29d2e611530·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where
76 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="https://doc.rust-lang.org/1.84.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·0e0294a45242d5ce9a3ab8f95d6d410756415291d92baa7d12283ef1b3ecc3a0·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where76 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="../../core/option/enum.Option.html#variant.None"·title="variant·cor[·...·truncated·by·diffoscope;·len:·679,·SHA:·ec753d6ecf7b9fe81cb270d78e45e053f2702fff74c7a63c2ab8da22b97fea86·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where
77 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,77 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
78 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·a8b562f71802a421f4745f7d1fadf4f70d98030c829e70f27b692e7915267027·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where78 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·635,·SHA:·ee3a5bcc3544c3f17985966634fef69b1708d641ddb7e62aaac76933935c5ef7·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where
79 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="https://doc.rust-lang.org/1.84.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·b3db7d84f203bbc139b1c52912705d19c664dac762898205fce452c9dc3a5318·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where79 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.by_ref">[·...·truncated·by·diffoscope;·len:·415,·SHA:·7e0e075470d2db380bcf0838446659654c982aa2ca7831ed7d0317877855be2a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where
80 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,80 ····B:·<a·class="trait"·href="../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
81 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·431,·SHA:·a705a23f6d810357e7dcac670743884665ffcccfb9b780d0aa03720be8ca5625·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(81 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.collect">Read[·...·truncated·by·diffoscope;·len:·323,·SHA:·80e0dde3814a6e7cf4e30949627abc841ab4e98e2a920efb248777e22708682d·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(
82 ····&amp;mut·self,82 ····&amp;mut·self,
83 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.h[·...·truncated·by·diffoscope;·len:·479,·SHA:·fa749442d890055f86ceb34f411c84fd7ea08302b336d786d1ca36fe5868b020·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where83 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&g[·...·truncated·by·diffoscope;·len:·344,·SHA:·c06c6401df0a7150633e94cc973521da42e09819b07be80ba18d6acb696860a9·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
84 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,84 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
85 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>,85 ····Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>,
86 ····&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.h[·...·truncated·by·diffoscope;·len:·300,·SHA:·3bff089180bac38df7f42b87556fae7641185b89a949c284f53e3ac718a6decb·...·]/core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;B&gt;,86 ····&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&g[·...·truncated·by·diffoscope;·len:·192,·SHA:·039ceb6ce31fc6b1871e3e366efbd0f164f4a6cc1bc25554bba598b0ee820cca·...·]/core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;B&gt;,
87 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/itera[·...·truncated·by·diffoscope;·len:·323,·SHA:·b5c51f161dc9d77fd81d1fd23cc71fbf42ac00f3168cf9e41ebaaa2b6eb25363·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if87 ····B:·<a·class="trait"·href="../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="ty[·...·truncated·by·diffoscope;·len:·215,·SHA:·ddb8fbd12147eecef1697edd4c63187cc514ab4b851290335adfcccc3fa429ba·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if
88 a·failure·is·encountered.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·ri[·...·truncated·by·diffoscope;·len:·521,·SHA:·6a54376815dab985ec8cc35604d035e98e3003b1563c9b41e70966084505542b·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where88 a·failure·is·encountered.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/co[·...·truncated·by·diffoscope;·len:·386,·SHA:·d46a776c329de4f757930edda252586c2cdd85c6956b7b2f68448da33ee0625e·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
89 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,89 ····E:·<a·class="trait"·href="../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
90 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·975,·SHA:·94f7f970236ba59ba5f1415764a0e3ab2f3093c6b79e76c25c797ac24a3c4d09·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where90 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_collect[·...·truncated·by·diffoscope;·len:·840,·SHA:·1ee6fbe4deb3d959e9ade58fb7ed3efa79d09721ed02fbb5f5f82aae6aa1425d·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
91 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,91 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
92 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·b480ec650ba000fe7cb67df58fc0351299638ee3e8f00db18f74ca24d69f9894·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,92 ····B:·<a·class="trait"·href="../../core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtyp[·...·truncated·by·diffoscope;·len:·14,·SHA:·4105980ca4887a52797067761af25a11e3de6069cd8d7c8ce82cd885bb798fe8·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
93 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·fdf5a1845f070855ba2cfd0c8c85460ea5cb646c4d3b42a8431bf21489c73701·...·]/core/primitive.usize.html">usize</a><div·class="where">where93 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·806,·SHA:·4d554b733db12e71a31ec2477a31408041941b0e2b0dc910904ecf2fced9f65b·...·]/core/primitive.usize.html">usize</a><div·class="where">where
94 ····T:·'a,94 ····T:·'a,
95 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·1fc250e258e9e42e4fa3e22f86ecd57057e9ff23e47af1aec778076a7a891134·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,95 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIter[·...·truncated·by·diffoscope;·len:·51,·SHA:·c9be73bbed9d11ecac2a179f480a640f51d6255f26712667ffdabc72c1fc7fb0·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,
96 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·5846407374f20f525a4a0663ad4488141eafe64513ef82581dc5df5c2d200745·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_partition_in_place</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62543">#62543</a>)</span></div></span><div·class='docblock'>Reorders·the·elements·of·this·iterator·<em>in-place</em>·according·to·the·given·predicate,96 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="../../core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_partition_in_place</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62543">#62543</a>)</span></div></span><div·class='docblock'>Reorders·the·elements·of·this·iterator·<em>in-place</em>·according·to·the·given·predicate,
97 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.97 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.
98 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.partition_in_place">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_partitioned"·class="method·trait-impl"><a·clas[·...·truncated·by·diffoscope;·len:·431,·SHA:·4aa7d028146c72d45794efc19a376d4bee3b75eda61ff46d969e440b3dbfa1b0·...·]/core/primitive.bool.html">bool</a><div·class="where">where98 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.partition_in_place">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_partitioned"·class="method·trait-impl"><a·class="src·rightside"·href="../[·...·truncated·by·diffoscope;·len:·323,·SHA:·bfc44418fa28079222aab80e2baccdaffb2d067bbe5d1b5162202d268ad628d7·...·]/core/primitive.bool.html">bool</a><div·class="where">where
99 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,99 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
100 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·fcd03e71f79faad6d9b9a12045d59f4dfabc78e5aefebcabc9c1a5be45e31125·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,100 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·54,·SHA:·d5ac304cc26edf57442227b641dd21c427d0f9cb322b79986f5b15fc49f867b0·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,
101 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><span·class="righ[·...·truncated·by·diffoscope;·len:·319,·SHA:·9b9df13f2f4e5b4dde3908515766e1a474fa30bcb7edc98c15665a016e677c2a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where101 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><span·class="rightside"><span·class="since"·[·...·truncated·by·diffoscope;·len:·238,·SHA:·af6ab768457e0afa1532b80c4296ae18061dac4c765922889b13eead3e5492db·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where
102 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,102 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
103 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,103 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
104 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns104 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns
105 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rights[·...·truncated·by·diffoscope;·len:·321,·SHA:·619fd774190944998148325de99aaa75de66ce4b7e26579fd342c564923a5652·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where105 successfully,·producing·a·single,·final·value.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"·ti[·...·truncated·by·diffoscope;·len:·240,·SHA:·125e84deea747ccbe139725d028362287beed6a89ab9da3a3aabd7df537abc59·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where
106 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,106 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
107 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,107 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
108 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the108 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="../../core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the
109 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·307,·SHA:·5975144fd8566efa93ad1ccec09297e280924b7372e08681d2103702124e2c52·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where109 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title=[·...·truncated·by·diffoscope;·len:·226,·SHA:·a7510e9271e68887d9e2681c6bc28312cec9ac38883128845f52742935a160a9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where
110 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,110 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
111 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,111 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,
112 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span[·...·truncated·by·diffoscope;·len:·619,·SHA:·8813f54846438870310d5f5dfabd2335a9dbf51e9da2e4cd681bcb6077d39628·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where112 returning·the·final·result.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stabl[·...·truncated·by·diffoscope;·len:·484,·SHA:·5f42e8d5ff08f4c76870e6cb9165e054f9a0d99051d9886ccd43d5c8a91e1fbc·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
113 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,113 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
114 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·084691f7fc4e7f4da7db385127d0ce8d2d52f6740757129a65910c4db0dc180d·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing114 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·244,·SHA:·f09ac7e818239538c3f3208cb5c76076c24a0153797eb762821d5bf2a382d83b·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing
115 operation.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·217,·SHA:·447ae00256be3de069c602a6c04889808c883eae6fa349d023f53bdd5570ecae·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(115 operation.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/iter[·...·truncated·by·diffoscope;·len:·136,·SHA:·97e3ee132585582ec7077e3bbd86406d8a2dcfc97dce7fd52b49af3ec1b58622·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(
116 ····&amp;mut·self,116 ····&amp;mut·self,
117 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R, 
118 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.T[·...·truncated·by·diffoscope;·len:·950,·SHA:·817376e71f7a0d170bfbd4b7264c15d324f49c65106c49349d11a077842aa533·...·]117 ····f:·impl·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core:[·...·truncated·by·diffoscope;·len:·238,·SHA:·a52edc1a1ce1db5dd6e620dbfe5acb58fdc6d84f2320cef02845988aa54e5c55·...·]
 118 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;&gt;&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
119 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,119 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
120 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,120 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
121 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·764ea8f08626b05426a76738d54ebb2d640042494d76cba8c20d868bfdc07a73·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the121 ····&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>:·<a[·...·truncated·by·diffoscope;·len:·277,·SHA:·0dd064909226a9691486376740de1e17aa133a7ae2f635bee3feaa9b19d7b580·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the
122 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><span·class="rightside"><s[·...·truncated·by·diffoscope;·len:·476,·SHA:·aef721c14147dea2fbec70dcfa76916b3f1273bed8304f4c9db310ca23d1e4b1·...·]/core/primitive.bool.html">bool</a><div·class="where">where122 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="St[·...·truncated·by·diffoscope;·len:·368,·SHA:·6dbfbc90b7cfda9017074212ce0beeb560c8f9ba918ba7b00292e34daa531cc2·...·]/core/primitive.bool.html">bool</a><div·class="where">where
123 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,123 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
124 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·7c48e62c73a40a5cb5ebbf4a22cd789b342a88ad3d855022191f2bae33c736c6·...·]/core/primitive.bool.html">bool</a><div·class="where">where124 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·829,·SHA:·c413d95d1072acd820201f12ffb54d04a6c7f3b732f7de46115ba40b4eb1bd3f·...·]/core/primitive.bool.html">bool</a><div·class="where">where
125 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,125 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
Max diff block lines reached; 158054/344276 bytes (45.91%) of diff not shown.
317 KB
./usr/share/doc/rust-doc/html/alloc/str/struct.EncodeUtf16.html
    
Offset 1, 224 lines modifiedOffset 1, 224 lines modified
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="An·iterator·of·`u16`·over·the·string·encoded·as·UTF-16."><title>EncodeUtf16·in·alloc::str·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»2025-01-07)»     (built»       from»   a»  source»    tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Encode<wbr>Utf16</a></h2><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-EncodeUtf16%3C'a%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-EncodeUtf16%3C'_%3E"·title="Debug">Debug</a></li><li><a·href="#impl-FusedIterator-for-EncodeUtf16%3C'_%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-EncodeUtf16%3C'a%3E"·title="Iterator">Iterator</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-EncodeUtf16%3C'a%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-EncodeUtf16%3C'a%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-EncodeUtf16%3C'a%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-EncodeUtf16%3C'a%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-EncodeUtf16%3C'a%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-EncodeUtf16%3C'a%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>str</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">alloc</a>::<wbr><a·href="index.html">str</a></span><h1>Struct·<span·class="struct">EncodeUtf16</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/str/iter.rs.html#1489">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·EncodeUtf16&lt;'a&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·op[·...·truncated·by·diffoscope;·len:·149,·SHA:·00c2534a694443e98b719d45fe05ef91c4a7574d752dac790fe02827c7350372·...·]/core/primitive.u16.html"·title="primitive·u16"><code>u16</code></a>·over·the·string·encoded·as·UTF-16.</p>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="An·iterator·of·`u16`·over·the·string·encoded·as·UTF-16."><title>EncodeUtf16·in·alloc::str·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»2025-01-07)»     (built»       from»   a»  source»    tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Encode<wbr>Utf16</a></h2><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-EncodeUtf16%3C'a%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-EncodeUtf16%3C'_%3E"·title="Debug">Debug</a></li><li><a·href="#impl-FusedIterator-for-EncodeUtf16%3C'_%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-EncodeUtf16%3C'a%3E"·title="Iterator">Iterator</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-EncodeUtf16%3C'a%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-EncodeUtf16%3C'a%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-EncodeUtf16%3C'a%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-EncodeUtf16%3C'a%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-EncodeUtf16%3C'a%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-EncodeUtf16%3C'a%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>str</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">alloc</a>::<wbr><a·href="index.html">str</a></span><h1>Struct·<span·class="struct">EncodeUtf16</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../src/core/str/iter.rs.html#1489">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·EncodeUtf16&lt;'a&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme">[·...·truncated·by·diffoscope;·len:·95,·SHA:·e2e8527396f10b035f1d8e7cccb23ea2be7c823bc5cd9de4408069121d1643a3·...·]/core/primitive.u16.html"·title="primitive·u16"><code>u16</code></a>·over·the·string·encoded·as·UTF-16.</p>
2 <p>This·struct·is·created·by·the·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.str.html#method.encode_utf16"·title="method·str::encode_utf16"><code>encode_utf16</code></a>·method·on·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.str.html"·title="primitive·str"><code>str</code></a>.2 <p>This·struct·is·created·by·the·<a·href="../../core/primitive.str.html#method.encode_utf16"·title="method·str::encode_utf16"><code>encode_utf16</code></a>·method·on·<a·href="../../core/primitive.str.html"·title="primitive·str"><code>str</code></a>.
3 See·its·documentation·for·more.</p>3 See·its·documentation·for·more.</p>
4 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-EncodeUtf16%3C'a%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.8.0">1.8.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/str/iter.rs.html#1487">Source</a></span><a·href="#impl-Clone-for-EncodeUtf16%3C'a%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/tr[·...·truncated·by·diffoscope;·len:·7257,·SHA:·539677a7e5c6f643ae426d0ed6508184897acd84828731c279114e75bee50a84·...·]/core/primitive.usize.html">usize</a>&gt;(4 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-EncodeUtf16%3C'a%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.8.0">1.8.0</span>···<a·class="src"·href="../../src/core/str/iter.rs.html#1487">Source</a></span><a·href="#impl-Clone-for-EncodeUtf16%3C'a%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a&gt;·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone[·...·truncated·by·diffoscope;·len:·6420,·SHA:·7057ce405fba8d31ab8cca76e5b2f8e1129c36a1fc612a243cf469a4be8f63a9·...·]/core/primitive.usize.html">usize</a>&gt;(
5 ····&amp;mut·self,5 ····&amp;mut·self,
6 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·4f557a9b49151e0be8c52ffd68f1def4469c08164239dc8bef8df2040551c5ef·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where6 )·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">It[·...·truncated·by·diffoscope;·len:·246,·SHA:·baf6c8e6f3d5dbac69324111240b1587dbb858d42149cae1ee895a165289ff4f·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where
7 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·962,·SHA:·116e4ec2ae3d9655c3d115eaf50f435f5323b4e48b84de734c79d2a09b3c02f2·...·]/core/primitive.usize.html">usize</a><div·class="where">where7 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_next_ch[·...·truncated·by·diffoscope;·len:·827,·SHA:·2479cde9ab5aa3e18f76cf74cf7889a3de87c66e1745f27cf29bd34c4d30dbdf·...·]/core/primitive.usize.html">usize</a><div·class="where">where
8 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·counting·the·number·of·iterations·and·returning·it.·<a·href="https://doc.[·...·truncated·by·diffoscope;·len:·837,·SHA:·47e25b6f9687bcc1d1fcdf9842fb085e6aba767d70531028f948636b80563dfc·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where8 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·counting·the·number·of·iterations·and·returning·it.·<a·href="../../core/iter/traits/iterator/trait.I[·...·truncated·by·diffoscope;·len:·675,·SHA:·1ce62884794ba87e19a0c96720594ee19d36bf34d9a84160028eeff78b648fa9·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
9 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·returning·the·last·element.·<a·href="https://doc.rust-lang.org/1.84.0/cor[·...·truncated·by·diffoscope;·len:·3504,·SHA:·ec43d0f6d8d2a1e0fb7a684c382b9934abe1250844e53cce08bdfc6017ecb276·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where9 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·returning·the·last·element.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.last[·...·truncated·by·diffoscope;·len:·2964,·SHA:·db62f7c0fcc4ed24f8d8d5c90b4eb970e1ba2f576e1c200c74164f961b4de28e·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where
10 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by10 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by
11 the·given·amount·at·each·iteration.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><sp[·...·truncated·by·diffoscope;·len:·842,·SHA:·945c4509a8daf2f8fbccc5c6e5089e225955911e03a3e411f047f96d52d16862·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where11 the·given·amount·at·each·iteration.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Sta[·...·truncated·by·diffoscope;·len:·680,·SHA:·77241b5118fcbc984cb791fa9f75077307e18056b66492741335faf440cbdabc·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
12 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,12 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
13 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·3b5ce32f9d564c3aa7cf2adc7130e674758d0c0f4f1275b4c3b46a74aa802cb3·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where13 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·1113,·SHA:·ccf22d19f49a25daffdcc6d9226d5107457a8bfd16beccfeff5020d151bdb8bb·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
14 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,14 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
15 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·[·...·truncated·by·diffoscope;·len:·868,·SHA:·abdbf27ccc84063c7040d8fa3da9d0bda5ee310a470ef576e15554aee4bd5d21·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where15 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·of·pairs.·<a·href="../../co[·...·truncated·by·diffoscope;·len:·706,·SHA:·f32c568f049122021445a983654582d97ac74064a3e99c3361b348bd7708c1b2·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where
16 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,16 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
17 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent17 ····Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent
18 items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="sr[·...·truncated·by·diffoscope;·len:·427,·SHA:·6e82ad4aad49c2165d869fe30d20a968580a973cdb3a7f4c77f49e16dd59393e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where18 items·of·the·original·iterator.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="src·rightside"·href="../../sr[·...·truncated·by·diffoscope;·len:·319,·SHA:·8babc469a22056fc5a02684b52f9f93ba9c27a3dd2e8443ddc060797054e211e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where
19 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,19 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
20 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>20 ····G:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>
21 between·adjacent·items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightsi[·...·truncated·by·diffoscope;·len:·471,·SHA:·ed10488b7b2ccc3e4cc84a9a57a9695a74c1c964962e8d753cbace12f3318a66·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where21 between·adjacent·items·of·the·original·iterator.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·tit[·...·truncated·by·diffoscope;·len:·363,·SHA:·09aee21fa4172b743a714e2cb5915129575ce0224df49c7343dec38f43b7ecfd·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where
22 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,22 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
23 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each23 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each
24 element.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><spa[·...·truncated·by·diffoscope;·len:·306,·SHA:·61c87c39b177830189b0e4c036d97c40d8b9649d76432c90afb88de59498e8b2·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where24 element.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stab[·...·truncated·by·diffoscope;·len:·225,·SHA:·a0f2490a1a5fd6b44e0ab01199cbbbd6e5463251405d11eaf6798c9b50bbd683·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where
25 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,25 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
26 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·a65da32c5f5ef8335cb607d3b4ab3f8a25877bc2c2e8b44ca9d575caecd5c8a5·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where26 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·754,·SHA:·421e55a5747cab3df1dad40b747b4633f241bdc13a1546bb19b1370788dea27d·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where
27 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,27 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
28 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·6d69c85c69fa789be551ea42d95c33c237d12a04ef157f9ddaaead1177f7771e·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element28 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·59,·SHA:·76969e34965f1923de668a65a9f5c33f73266468c9b96650bcc5fd498e606a6b·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element
29 should·be·yielded.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·489,·SHA:·9bdc636899f4e4e5a26a3a21c9603f72b3fb972865d2f459c38b7e2ac8fed7f1·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where29 should·be·yielded.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·cf812944678f6755720896cf32b330946303afe59f1b1c11adeb6a7f33454c8d·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where
30 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,30 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
31 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·46dbf841c7aecd3f06bd4c944af21650faeac98c46c515dcfe643302618b1ecd·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where31 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·863,·SHA:·c2bab87fa2a70713bd2d34b3dcae8f4ff2341917103b43a1dd505317f15d6cff·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where
32 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as32 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as
33 the·next·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside[·...·truncated·by·diffoscope;·len:·468,·SHA:·52f7ff7f264284c3acc4429ca34d057ded9afa2e3d9d6e07571e252db9a48977·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where33 the·next·value.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title[·...·truncated·by·diffoscope;·len:·360,·SHA:·688416dc1aaaa0be069177270ba9e74b3d1b92521285a109dc7ba86b58c1f22a·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where
34 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·c0180fefce4346b0b4089e5c642521d7716108241c0ce6ec3e910c7a2c7364b4·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods34 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="../../core/iter/adapters/peekable/struct.Peekable.html#method.peek"·title="m[·...·truncated·by·diffoscope;·len:·94,·SHA:·78aeab33f83c647dfe680c1050358c95977e3af17eabde4a04880721ea1a619d·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods
35 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See35 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See
36 their·documentation·for·more·information.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightsid[·...·truncated·by·diffoscope;·len:·498,·SHA:·e4a68861585faec6a5032b3b69d6dfb0f2799b5f387a527d9a1365571ed02069·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where36 their·documentation·for·more·information.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightside"><span·class="since"·titl[·...·truncated·by·diffoscope;·len:·390,·SHA:·5da622ae0e4d00b47239007520070e22568156d6c5b1662db8b80b465934b18c·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where
37 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,37 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
38 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·93281c1f6402743fd61110c11cf676f0f67eddceda801b4eb35e5fe9f85870fd·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where38 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·1018,·SHA:·732548acff5239e9a7b904f32790c90ab3b63522635334128f35e01d37ceaeb6·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where
39 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,39 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
40 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·f1cdbb1ec64f98fabbe1d89c88b03824310926cd7eaa160953ce2452fc3abb77·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where40 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·869,·SHA:·8ec7e525848424d5104dbdd10928d17cfee4e5aee63cdda7ecdbe323b30b59d3·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where
41 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,41 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
42 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·f94a0b2c1396b13b89aca7830197ebf19e2c0e5ba536a9cc25b325a481799510·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where42 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·947,·SHA:·fdd074315a0bfb226f815b1b6ea114c7367886338ffffff233d7f6fc3108769a·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where
43 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="https://doc.rust-lang[·...·truncated·by·diffoscope;·len:·783,·SHA:·c14217b89e3292a50a09192a8857485891fc769f861e1d1fc4322d04295c86ef·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where43 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="../../core/iter/traits/iterator/trait.Iterator.h[·...·truncated·by·diffoscope;·len:·621,·SHA:·484df7f946e7f2f69c3acad8964421c0db8ac5bb40032d11bbd862e20e67704c·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where
44 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer44 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer
45 if·the·underlying·iterator·ends·sooner.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·c[·...·truncated·by·diffoscope;·len:·488,·SHA:·76f753d5a273a09a73127631acaa0ee947326a929f33be291018188793e1af56·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where45 if·the·underlying·iterator·ends·sooner.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·[·...·truncated·by·diffoscope;·len:·380,·SHA:·fa258c7e0b5d583304a69e2d4e19f3d4cc9a9ed830bdf3796eaa0968bdf590b4·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where
46 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,46 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
47 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·07d303586c8ad4e0082d5b44bff8eeda03cdb8f4bdbe46489f9232bca5a43ec6·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but47 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterat[·...·truncated·by·diffoscope;·len:·314,·SHA:·299331ff47adaff3ebc292c53557ad34da957aef932f87ec0444c7f856820410·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but
48 unlike·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·2b20882d9583cee50e0c8b3cf362b27ce0d524db387d4aa4093d622b9370dada·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where48 unlike·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.scan">Read·more[·...·truncated·by·diffoscope;·len:·555,·SHA:·77279e392f259f6d4859f5a7747ee4b4d5315f3af0ac3baebf1d53be3461b312·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where
49 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,49 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
50 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,50 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
51 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·933,·SHA:·4af94b75ba5c1e03d2d70590d2fd0706f13b3080fbff0f5b98e7b109048c403d·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where51 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·771,·SHA:·a1a50c8ca4c13151c7b22ce05c74c449231e1ffe44225beee67ff212fc1d3859·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where
52 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,52 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
53 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.I[·...·truncated·by·diffoscope;·len:·968,·SHA:·e5572ed2f3bdf5970d038da608f2f592d945541207c483c257fe5789efba168a·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where53 ····Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::col[·...·truncated·by·diffoscope;·len:·779,·SHA:·a4e524bd8aa8a1e0a66409d1b462b88093ab51a1f901ff1a788d7ee63d597f4c·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where
54 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,54 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
55 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·3013c0e49b0dade37f8ca096eccc5ceeb03fc79b9d320a4c92486d23b88d1009·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over55 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·54,·SHA:·6acee514e4d8df8979b4bba687b7e0d5dbb0ea4f98a7019e2fb03f3a8058df0f·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over
56 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,56 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="../../core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,
57 the·windows·during·mapping·overlap·as·well.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside">[·...·truncated·by·diffoscope;·len:·454,·SHA:·040991f3914479bcc92615de2b81df7363656323622e5aadc964e1a61917d23e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where57 the·windows·during·mapping·overlap·as·well.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="[·...·truncated·by·diffoscope;·len:·346,·SHA:·b1244a5f92e0573c29e04e883cf8212ba2586013b3687af07b63c29d2e611530·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where
58 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="https://doc.rust-lang.org/1.84.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·0e0294a45242d5ce9a3ab8f95d6d410756415291d92baa7d12283ef1b3ecc3a0·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where58 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="../../core/option/enum.Option.html#variant.None"·title="variant·cor[·...·truncated·by·diffoscope;·len:·679,·SHA:·ec753d6ecf7b9fe81cb270d78e45e053f2702fff74c7a63c2ab8da22b97fea86·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where
59 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,59 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
60 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·a8b562f71802a421f4745f7d1fadf4f70d98030c829e70f27b692e7915267027·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where60 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·635,·SHA:·ee3a5bcc3544c3f17985966634fef69b1708d641ddb7e62aaac76933935c5ef7·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where
61 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="https://doc.rust-lang.org/1.84.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·b3db7d84f203bbc139b1c52912705d19c664dac762898205fce452c9dc3a5318·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where61 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.by_ref">[·...·truncated·by·diffoscope;·len:·415,·SHA:·7e0e075470d2db380bcf0838446659654c982aa2ca7831ed7d0317877855be2a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where
62 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,62 ····B:·<a·class="trait"·href="../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
63 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·431,·SHA:·a705a23f6d810357e7dcac670743884665ffcccfb9b780d0aa03720be8ca5625·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(63 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.collect">Read[·...·truncated·by·diffoscope;·len:·323,·SHA:·80e0dde3814a6e7cf4e30949627abc841ab4e98e2a920efb248777e22708682d·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(
64 ····&amp;mut·self,64 ····&amp;mut·self,
65 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.h[·...·truncated·by·diffoscope;·len:·479,·SHA:·fa749442d890055f86ceb34f411c84fd7ea08302b336d786d1ca36fe5868b020·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where65 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&g[·...·truncated·by·diffoscope;·len:·344,·SHA:·c06c6401df0a7150633e94cc973521da42e09819b07be80ba18d6acb696860a9·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
66 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,66 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
67 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>,67 ····Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>,
68 ····&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.h[·...·truncated·by·diffoscope;·len:·300,·SHA:·3bff089180bac38df7f42b87556fae7641185b89a949c284f53e3ac718a6decb·...·]/core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;B&gt;,68 ····&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&g[·...·truncated·by·diffoscope;·len:·192,·SHA:·039ceb6ce31fc6b1871e3e366efbd0f164f4a6cc1bc25554bba598b0ee820cca·...·]/core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;B&gt;,
69 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/itera[·...·truncated·by·diffoscope;·len:·323,·SHA:·b5c51f161dc9d77fd81d1fd23cc71fbf42ac00f3168cf9e41ebaaa2b6eb25363·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if69 ····B:·<a·class="trait"·href="../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="ty[·...·truncated·by·diffoscope;·len:·215,·SHA:·ddb8fbd12147eecef1697edd4c63187cc514ab4b851290335adfcccc3fa429ba·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if
70 a·failure·is·encountered.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·ri[·...·truncated·by·diffoscope;·len:·521,·SHA:·6a54376815dab985ec8cc35604d035e98e3003b1563c9b41e70966084505542b·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where70 a·failure·is·encountered.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/co[·...·truncated·by·diffoscope;·len:·386,·SHA:·d46a776c329de4f757930edda252586c2cdd85c6956b7b2f68448da33ee0625e·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
71 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,71 ····E:·<a·class="trait"·href="../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
72 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·975,·SHA:·94f7f970236ba59ba5f1415764a0e3ab2f3093c6b79e76c25c797ac24a3c4d09·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where72 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_collect[·...·truncated·by·diffoscope;·len:·840,·SHA:·1ee6fbe4deb3d959e9ade58fb7ed3efa79d09721ed02fbb5f5f82aae6aa1425d·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
73 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,73 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
74 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·b480ec650ba000fe7cb67df58fc0351299638ee3e8f00db18f74ca24d69f9894·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,74 ····B:·<a·class="trait"·href="../../core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtyp[·...·truncated·by·diffoscope;·len:·14,·SHA:·4105980ca4887a52797067761af25a11e3de6069cd8d7c8ce82cd885bb798fe8·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
75 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·fdf5a1845f070855ba2cfd0c8c85460ea5cb646c4d3b42a8431bf21489c73701·...·]/core/primitive.usize.html">usize</a><div·class="where">where75 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·806,·SHA:·4d554b733db12e71a31ec2477a31408041941b0e2b0dc910904ecf2fced9f65b·...·]/core/primitive.usize.html">usize</a><div·class="where">where
76 ····T:·'a,76 ····T:·'a,
77 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·1fc250e258e9e42e4fa3e22f86ecd57057e9ff23e47af1aec778076a7a891134·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,77 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIter[·...·truncated·by·diffoscope;·len:·51,·SHA:·c9be73bbed9d11ecac2a179f480a640f51d6255f26712667ffdabc72c1fc7fb0·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,
78 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·5846407374f20f525a4a0663ad4488141eafe64513ef82581dc5df5c2d200745·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_partition_in_place</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62543">#62543</a>)</span></div></span><div·class='docblock'>Reorders·the·elements·of·this·iterator·<em>in-place</em>·according·to·the·given·predicate,78 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="../../core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_partition_in_place</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62543">#62543</a>)</span></div></span><div·class='docblock'>Reorders·the·elements·of·this·iterator·<em>in-place</em>·according·to·the·given·predicate,
79 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.79 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.
80 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.partition_in_place">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_partitioned"·class="method·trait-impl"><a·clas[·...·truncated·by·diffoscope;·len:·431,·SHA:·4aa7d028146c72d45794efc19a376d4bee3b75eda61ff46d969e440b3dbfa1b0·...·]/core/primitive.bool.html">bool</a><div·class="where">where80 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.partition_in_place">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_partitioned"·class="method·trait-impl"><a·class="src·rightside"·href="../[·...·truncated·by·diffoscope;·len:·323,·SHA:·bfc44418fa28079222aab80e2baccdaffb2d067bbe5d1b5162202d268ad628d7·...·]/core/primitive.bool.html">bool</a><div·class="where">where
81 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,81 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
82 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·fcd03e71f79faad6d9b9a12045d59f4dfabc78e5aefebcabc9c1a5be45e31125·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,82 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·54,·SHA:·d5ac304cc26edf57442227b641dd21c427d0f9cb322b79986f5b15fc49f867b0·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,
83 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><span·class="righ[·...·truncated·by·diffoscope;·len:·319,·SHA:·9b9df13f2f4e5b4dde3908515766e1a474fa30bcb7edc98c15665a016e677c2a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where83 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><span·class="rightside"><span·class="since"·[·...·truncated·by·diffoscope;·len:·238,·SHA:·af6ab768457e0afa1532b80c4296ae18061dac4c765922889b13eead3e5492db·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where
84 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,84 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
85 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,85 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
86 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns86 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns
87 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rights[·...·truncated·by·diffoscope;·len:·321,·SHA:·619fd774190944998148325de99aaa75de66ce4b7e26579fd342c564923a5652·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where87 successfully,·producing·a·single,·final·value.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"·ti[·...·truncated·by·diffoscope;·len:·240,·SHA:·125e84deea747ccbe139725d028362287beed6a89ab9da3a3aabd7df537abc59·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where
88 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,88 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
89 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,89 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
90 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the90 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="../../core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the
91 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·307,·SHA:·5975144fd8566efa93ad1ccec09297e280924b7372e08681d2103702124e2c52·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where91 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title=[·...·truncated·by·diffoscope;·len:·226,·SHA:·a7510e9271e68887d9e2681c6bc28312cec9ac38883128845f52742935a160a9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where
92 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,92 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
93 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,93 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,
94 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span[·...·truncated·by·diffoscope;·len:·619,·SHA:·8813f54846438870310d5f5dfabd2335a9dbf51e9da2e4cd681bcb6077d39628·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where94 returning·the·final·result.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stabl[·...·truncated·by·diffoscope;·len:·484,·SHA:·5f42e8d5ff08f4c76870e6cb9165e054f9a0d99051d9886ccd43d5c8a91e1fbc·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
95 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,95 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
96 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·084691f7fc4e7f4da7db385127d0ce8d2d52f6740757129a65910c4db0dc180d·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing96 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·244,·SHA:·f09ac7e818239538c3f3208cb5c76076c24a0153797eb762821d5bf2a382d83b·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing
97 operation.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·217,·SHA:·447ae00256be3de069c602a6c04889808c883eae6fa349d023f53bdd5570ecae·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(97 operation.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/iter[·...·truncated·by·diffoscope;·len:·136,·SHA:·97e3ee132585582ec7077e3bbd86406d8a2dcfc97dce7fd52b49af3ec1b58622·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(
98 ····&amp;mut·self,98 ····&amp;mut·self,
99 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R, 
100 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.T[·...·truncated·by·diffoscope;·len:·950,·SHA:·817376e71f7a0d170bfbd4b7264c15d324f49c65106c49349d11a077842aa533·...·]99 ····f:·impl·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core:[·...·truncated·by·diffoscope;·len:·238,·SHA:·a52edc1a1ce1db5dd6e620dbfe5acb58fdc6d84f2320cef02845988aa54e5c55·...·]
 100 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;&gt;&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
101 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,101 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
102 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,102 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
103 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·764ea8f08626b05426a76738d54ebb2d640042494d76cba8c20d868bfdc07a73·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the103 ····&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>:·<a[·...·truncated·by·diffoscope;·len:·277,·SHA:·0dd064909226a9691486376740de1e17aa133a7ae2f635bee3feaa9b19d7b580·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the
104 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><span·class="rightside"><s[·...·truncated·by·diffoscope;·len:·476,·SHA:·aef721c14147dea2fbec70dcfa76916b3f1273bed8304f4c9db310ca23d1e4b1·...·]/core/primitive.bool.html">bool</a><div·class="where">where104 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="St[·...·truncated·by·diffoscope;·len:·368,·SHA:·6dbfbc90b7cfda9017074212ce0beeb560c8f9ba918ba7b00292e34daa531cc2·...·]/core/primitive.bool.html">bool</a><div·class="where">where
105 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,105 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
106 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·7c48e62c73a40a5cb5ebbf4a22cd789b342a88ad3d855022191f2bae33c736c6·...·]/core/primitive.bool.html">bool</a><div·class="where">where106 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·829,·SHA:·c413d95d1072acd820201f12ffb54d04a6c7f3b732f7de46115ba40b4eb1bd3f·...·]/core/primitive.bool.html">bool</a><div·class="where">where
107 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,107 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
108 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·673d69ce0c23e24b2546127c463e67cd2a4c0f7be792712e2b42e75427161b75·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where108 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·956,·SHA:·105c7ff05d33bc9219febe8c9633cf1c1a8d88c32e47e44793d403a428174c66·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
109 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,109 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
110 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·aa5078ff77f5638746395497f8ce92c1b684d342dea851990104d5e9981ab6b0·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where110 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·862,·SHA:·ab608da827ec12779180206da5bfe43676627c19288c1fe674060a00ba44a595·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where
111 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,111 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
112 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·1bd732dff19021a1586bb486282683f5c1bc65d5d514f9e13cc9232b4e94955b·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;,</div></h4></section></summary><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns112 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·49,·SHA:·819211b646a21318a22e9d295452cdf890d5288a631a50261ca1a5b2bac9f748·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;,</div></h4></section></summary><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns
113 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.find_map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_find"·class="method·trait-impl"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·215,·SHA:·4d59a011c8881794ce6367c1e816f11a813db02e37c71800ed6d47056f157573·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(113 the·first·non-none·result.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.find_map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_find"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/iter[·...·truncated·by·diffoscope;·len:·134,·SHA:·f9a67b0520c850053a598ecaa24d4c1a006e7174ac499ec1e09451cd90ea548e·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(
114 ····&amp;mut·self,114 ····&amp;mut·self,
115 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,115 ····f:·impl·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
116 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·efb03e5c706e0947c6a4490b17f1efb0f1944a7d81f2640b5933212334dd255a·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where116 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>·as·[·...·truncated·by·diffoscope;·len:·464,·SHA:·38b1d27bdc6fd93a0d7e942386ffe94e909033d34def03ec6236baba6643ee81·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
117 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,117 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
118 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html">bool</a>&gt;,118 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="../../core/primitive.bool.html">bool</a>&gt;,
119 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·764ea8f08626b05426a76738d54ebb2d640042494d76cba8c20d868bfdc07a73·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>try_find</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/63178">#63178</a>)</span></div></span><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns119 ····&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>:·<a[·...·truncated·by·diffoscope;·len:·277,·SHA:·0dd064909226a9691486376740de1e17aa133a7ae2f635bee3feaa9b19d7b580·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>try_find</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/63178">#63178</a>)</span></div></span><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns
120 the·first·true·result·or·the·first·error.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_find">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.position"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·635,·SHA:·348891c2a01ad4ba1f5ccca4c270bd2cefaf47e6b8194dc69d227209558119ff·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where120 the·first·true·result·or·the·first·error.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_find">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.position"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title=[·...·truncated·by·diffoscope;·len:·500,·SHA:·005fbbf80a1954a9c056f5ea1c5ad1868c1657316a1b4be45b5d494a4ecbdf59·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
121 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,121 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
122 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1189,·SHA:·4360ca57800771c35ace077798534aad7ac95777a9346afa743da53c39cd8341·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where122 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·973,·SHA:·ad7c68dc1d491d819df018ab62e4c4e3528246b340f23b31a24e291397947c97·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
123 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·fcd03e71f79faad6d9b9a12045d59f4dfabc78e5aefebcabc9c1a5be45e31125·...·]/core/primitive.bool.html">bool</a>,123 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·54,·SHA:·d5ac304cc26edf57442227b641dd21c427d0f9cb322b79986f5b15fc49f867b0·...·]/core/primitive.bool.html">bool</a>,
124 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/exact_size/trait.ExactSizeIterator.html"·title="trait·core::iter::traits::[·...·truncated·by·diffoscope;·len:·110,·SHA:·0820928829289d98a1966be462f362db3ccaddf5fdad8e605000a126e2801bc6·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIterator</a>,</div></h4></section></summary><div·class='docblock'>Searches·for·an·element·in·an·iterator·from·the·right,·returning·its124 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="../../core/iter/traits/exact_size/trait.ExactSizeIterator.html"·title="trait·core::iter::traits::exact_size::ExactSizeIterator">ExactSizeIterator</a>·+[·...·truncated·by·diffoscope;·len:·29,·SHA:·bb680b2f3f9e36fe30fed1aa5786c6f75aedb70f567a681c27cc4d159f52a43f·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIterator</a>,</div></h4></section></summary><div·class='docblock'>Searches·for·an·element·in·an·iterator·from·the·right,·returning·its
125 index.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.rposition">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.max"·class="method·trait-impl"><span·class="rightside"><sp[·...·truncated·by·diffoscope;·len:·595,·SHA:·9e95397fd76d907f00ba159c12d4771eeeaf6c20410150a0a587dbe9ea54d338·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where125 index.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.rposition">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.max"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Sta[·...·truncated·by·diffoscope;·len:·460,·SHA:·39534b643752093e918790d73fe6d8cf3dec96b7b0a77aee2dcad8c2b5281f6f·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
126 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,126 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
Max diff block lines reached; 89068/324394 bytes (27.46%) of diff not shown.
323 KB
./usr/share/doc/rust-doc/html/alloc/str/struct.EscapeDebug.html
    
Offset 1, 222 lines modifiedOffset 1, 222 lines modified
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="The·return·type·of·`str::escape_debug`."><title>EscapeDebug·in·alloc::str·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»   2025-01-07)»(built»  from»      a»     source»       tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Escape<wbr>Debug</a></h2><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-EscapeDebug%3C'a%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-EscapeDebug%3C'a%3E"·title="Debug">Debug</a></li><li><a·href="#impl-Display-for-EscapeDebug%3C'a%3E"·title="Display">Display</a></li><li><a·href="#impl-FusedIterator-for-EscapeDebug%3C'a%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-EscapeDebug%3C'a%3E"·title="Iterator">Iterator</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-EscapeDebug%3C'a%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-EscapeDebug%3C'a%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-EscapeDebug%3C'a%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-EscapeDebug%3C'a%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-EscapeDebug%3C'a%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-EscapeDebug%3C'a%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-ToString-for-T"·title="ToString">ToString</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>str</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">alloc</a>::<wbr><a·href="index.html">str</a></span><h1>Struct·<span·class="struct">EscapeDebug</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/str/iter.rs.html#1550">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·EscapeDebug&lt;'a&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·op[·...·truncated·by·diffoscope;·len:·153,·SHA:·81354dc53bb8185c51724bfe8a5a1b272d29e215f6904310ee46b6e31c5ac51c·...·]/core/primitive.str.html#method.escape_debug"·title="method·str::escape_debug"><code>str::escape_debug</code></a>.</p>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="The·return·type·of·`str::escape_debug`."><title>EscapeDebug·in·alloc::str·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»   2025-01-07)»(built»  from»      a»     source»       tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Escape<wbr>Debug</a></h2><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-EscapeDebug%3C'a%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-EscapeDebug%3C'a%3E"·title="Debug">Debug</a></li><li><a·href="#impl-Display-for-EscapeDebug%3C'a%3E"·title="Display">Display</a></li><li><a·href="#impl-FusedIterator-for-EscapeDebug%3C'a%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-EscapeDebug%3C'a%3E"·title="Iterator">Iterator</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-EscapeDebug%3C'a%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-EscapeDebug%3C'a%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-EscapeDebug%3C'a%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-EscapeDebug%3C'a%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-EscapeDebug%3C'a%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-EscapeDebug%3C'a%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-ToString-for-T"·title="ToString">ToString</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>str</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">alloc</a>::<wbr><a·href="index.html">str</a></span><h1>Struct·<span·class="struct">EscapeDebug</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../src/core/str/iter.rs.html#1550">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·EscapeDebug&lt;'a&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme">[·...·truncated·by·diffoscope;·len:·99,·SHA:·d9806bb0543773c2208970211514007b4e6b80972aa2473d2324b1fcb380d421·...·]/core/primitive.str.html#method.escape_debug"·title="method·str::escape_debug"><code>str::escape_debug</code></a>.</p>
2 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-EscapeDebug%3C'a%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.34.0">1.34.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/str/iter.rs.html#1549">Source</a></span><a·href="#impl-Clone-for-EscapeDebug%3C'a%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/tr[·...·truncated·by·diffoscope;·len:·8790,·SHA:·c9c37c22673b3a86b553898950fe5bddab24db47b8b2810e9dc4693324c4da6e·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;Acc,·Fold,·R&gt;(&amp;mut·self,·init:·Acc,·fold:·Fold)·-&gt;·R<div·class="where">where2 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-EscapeDebug%3C'a%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.34.0">1.34.0</span>···<a·class="src"·href="../../src/core/str/iter.rs.html#1549">Source</a></span><a·href="#impl-Clone-for-EscapeDebug%3C'a%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a&gt;·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone[·...·truncated·by·diffoscope;·len:·7872,·SHA:·a5e55e21f142b9e64a46ad35b23e3258fac1117486bdbfee68d779727a9d3e1c·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;Acc,·Fold,·R&gt;(&amp;mut·self,·init:·Acc,·fold:·Fold)·-&gt;·R<div·class="where">where
3 ····<a·class="struct"·href="struct.EscapeDebug.html"·title="struct·alloc::str::EscapeDebug">EscapeDebug</a>&lt;'a&gt;:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,3 ····<a·class="struct"·href="struct.EscapeDebug.html"·title="struct·alloc::str::EscapeDebug">EscapeDebug</a>&lt;'a&gt;:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
4 ····Fold:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Acc,·&lt;<a·class="struct"·href="struct.EscapeDebug.html"·title="struct·alloc::str::EscapeDebug">EscapeDebug</a>&lt;'a&gt;·as·<a·class="[·...·truncated·by·diffoscope;·len:·228,·SHA:·abeaa3f45cd48abacb65c4b9fac99bcad5319496c3b2df24c1c90b05c26d9ce2·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,4 ····Fold:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Acc,·&lt;<a·class="struct"·href="struct.EscapeDebug.html"·title="struct·alloc::str::EscapeDebug">EscapeDebug</a>&lt;'a&gt;·as·<a·class="trait"·href="../../core/ite[·...·truncated·by·diffoscope;·len:·147,·SHA:·51c8a5a93e355d5300a6d26358bfb363dcf513d8c374649e3a582d9815f36a5c·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
5 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Acc&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns5 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Acc&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns
6 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><a·class="src·rightside"·hr[·...·truncated·by·diffoscope;·len:·190,·SHA:·2494f89eaa52495c416e99f33a736de10030f5eac05c948c9b15e8f0ba5fd493·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;Acc,·Fold&gt;(self,·init:·Acc,·fold:·Fold)·-&gt;·Acc<div·class="where">where6 successfully,·producing·a·single,·final·value.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/str/iter[·...·truncated·by·diffoscope;·len:·109,·SHA:·f87300298eae9b50b0b799e504bdbe3c11b6c48cbade98dbe3fd43ce760d166a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;Acc,·Fold&gt;(self,·init:·Acc,·fold:·Fold)·-&gt;·Acc<div·class="where">where
7 ····Fold:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Acc,·&lt;<a·class="struct"·href="struct.EscapeDebug.html"·title="struct·alloc::str::EscapeDebug">EscapeDebug</a>&lt;'a&gt;·as·<a·class="[·...·truncated·by·diffoscope;·len:·228,·SHA:·abeaa3f45cd48abacb65c4b9fac99bcad5319496c3b2df24c1c90b05c26d9ce2·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·Acc,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,7 ····Fold:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Acc,·&lt;<a·class="struct"·href="struct.EscapeDebug.html"·title="struct·alloc::str::EscapeDebug">EscapeDebug</a>&lt;'a&gt;·as·<a·class="trait"·href="../../core/ite[·...·truncated·by·diffoscope;·len:·147,·SHA:·51c8a5a93e355d5300a6d26358bfb363dcf513d8c374649e3a582d9815f36a5c·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·Acc,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,
8 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.next_chunk"·class="method·trait-impl"><a·class="src·rightside"·[·...·truncated·by·diffoscope;·len:·376,·SHA:·bffcb5e89bc8c1f543b013560504c6ce40da533b96afd33f3d818685e8ae24dd·...·]/core/primitive.usize.html">usize</a>&gt;(8 returning·the·final·result.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.next_chunk"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/iter/t[·...·truncated·by·diffoscope;·len:·268,·SHA:·f304ba3828777d2fb56897e8c1850880bfcb1d2e98d1f0a61ce62c222e0b3ecf·...·]/core/primitive.usize.html">usize</a>&gt;(
9 ····&amp;mut·self,9 ····&amp;mut·self,
10 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·4f557a9b49151e0be8c52ffd68f1def4469c08164239dc8bef8df2040551c5ef·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where10 )·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">It[·...·truncated·by·diffoscope;·len:·246,·SHA:·baf6c8e6f3d5dbac69324111240b1587dbb858d42149cae1ee895a165289ff4f·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where
11 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·962,·SHA:·116e4ec2ae3d9655c3d115eaf50f435f5323b4e48b84de734c79d2a09b3c02f2·...·]/core/primitive.usize.html">usize</a><div·class="where">where11 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_next_ch[·...·truncated·by·diffoscope;·len:·827,·SHA:·2479cde9ab5aa3e18f76cf74cf7889a3de87c66e1745f27cf29bd34c4d30dbdf·...·]/core/primitive.usize.html">usize</a><div·class="where">where
12 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·counting·the·number·of·iterations·and·returning·it.·<a·href="https://doc.[·...·truncated·by·diffoscope;·len:·837,·SHA:·47e25b6f9687bcc1d1fcdf9842fb085e6aba767d70531028f948636b80563dfc·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where12 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·counting·the·number·of·iterations·and·returning·it.·<a·href="../../core/iter/traits/iterator/trait.I[·...·truncated·by·diffoscope;·len:·675,·SHA:·1ce62884794ba87e19a0c96720594ee19d36bf34d9a84160028eeff78b648fa9·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
13 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·returning·the·last·element.·<a·href="https://doc.rust-lang.org/1.84.0/cor[·...·truncated·by·diffoscope;·len:·3504,·SHA:·ec43d0f6d8d2a1e0fb7a684c382b9934abe1250844e53cce08bdfc6017ecb276·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where13 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·returning·the·last·element.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.last[·...·truncated·by·diffoscope;·len:·2964,·SHA:·db62f7c0fcc4ed24f8d8d5c90b4eb970e1ba2f576e1c200c74164f961b4de28e·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where
14 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by14 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by
15 the·given·amount·at·each·iteration.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><sp[·...·truncated·by·diffoscope;·len:·842,·SHA:·945c4509a8daf2f8fbccc5c6e5089e225955911e03a3e411f047f96d52d16862·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where15 the·given·amount·at·each·iteration.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Sta[·...·truncated·by·diffoscope;·len:·680,·SHA:·77241b5118fcbc984cb791fa9f75077307e18056b66492741335faf440cbdabc·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
16 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,16 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
17 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·3b5ce32f9d564c3aa7cf2adc7130e674758d0c0f4f1275b4c3b46a74aa802cb3·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where17 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·1113,·SHA:·ccf22d19f49a25daffdcc6d9226d5107457a8bfd16beccfeff5020d151bdb8bb·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
18 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,18 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
19 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·[·...·truncated·by·diffoscope;·len:·868,·SHA:·abdbf27ccc84063c7040d8fa3da9d0bda5ee310a470ef576e15554aee4bd5d21·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where19 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·of·pairs.·<a·href="../../co[·...·truncated·by·diffoscope;·len:·706,·SHA:·f32c568f049122021445a983654582d97ac74064a3e99c3361b348bd7708c1b2·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where
20 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,20 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
21 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent21 ····Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent
22 items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="sr[·...·truncated·by·diffoscope;·len:·427,·SHA:·6e82ad4aad49c2165d869fe30d20a968580a973cdb3a7f4c77f49e16dd59393e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where22 items·of·the·original·iterator.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="src·rightside"·href="../../sr[·...·truncated·by·diffoscope;·len:·319,·SHA:·8babc469a22056fc5a02684b52f9f93ba9c27a3dd2e8443ddc060797054e211e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where
23 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,23 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
24 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>24 ····G:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>
25 between·adjacent·items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightsi[·...·truncated·by·diffoscope;·len:·471,·SHA:·ed10488b7b2ccc3e4cc84a9a57a9695a74c1c964962e8d753cbace12f3318a66·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where25 between·adjacent·items·of·the·original·iterator.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·tit[·...·truncated·by·diffoscope;·len:·363,·SHA:·09aee21fa4172b743a714e2cb5915129575ce0224df49c7343dec38f43b7ecfd·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where
26 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,26 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
27 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each27 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each
28 element.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><spa[·...·truncated·by·diffoscope;·len:·306,·SHA:·61c87c39b177830189b0e4c036d97c40d8b9649d76432c90afb88de59498e8b2·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where28 element.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stab[·...·truncated·by·diffoscope;·len:·225,·SHA:·a0f2490a1a5fd6b44e0ab01199cbbbd6e5463251405d11eaf6798c9b50bbd683·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where
29 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,29 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
30 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·a65da32c5f5ef8335cb607d3b4ab3f8a25877bc2c2e8b44ca9d575caecd5c8a5·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where30 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·754,·SHA:·421e55a5747cab3df1dad40b747b4633f241bdc13a1546bb19b1370788dea27d·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where
31 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,31 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
32 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·6d69c85c69fa789be551ea42d95c33c237d12a04ef157f9ddaaead1177f7771e·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element32 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·59,·SHA:·76969e34965f1923de668a65a9f5c33f73266468c9b96650bcc5fd498e606a6b·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element
33 should·be·yielded.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·489,·SHA:·9bdc636899f4e4e5a26a3a21c9603f72b3fb972865d2f459c38b7e2ac8fed7f1·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where33 should·be·yielded.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·cf812944678f6755720896cf32b330946303afe59f1b1c11adeb6a7f33454c8d·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where
34 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,34 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
35 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·46dbf841c7aecd3f06bd4c944af21650faeac98c46c515dcfe643302618b1ecd·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where35 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·863,·SHA:·c2bab87fa2a70713bd2d34b3dcae8f4ff2341917103b43a1dd505317f15d6cff·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where
36 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as36 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as
37 the·next·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside[·...·truncated·by·diffoscope;·len:·468,·SHA:·52f7ff7f264284c3acc4429ca34d057ded9afa2e3d9d6e07571e252db9a48977·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where37 the·next·value.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title[·...·truncated·by·diffoscope;·len:·360,·SHA:·688416dc1aaaa0be069177270ba9e74b3d1b92521285a109dc7ba86b58c1f22a·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where
38 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·c0180fefce4346b0b4089e5c642521d7716108241c0ce6ec3e910c7a2c7364b4·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods38 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="../../core/iter/adapters/peekable/struct.Peekable.html#method.peek"·title="m[·...·truncated·by·diffoscope;·len:·94,·SHA:·78aeab33f83c647dfe680c1050358c95977e3af17eabde4a04880721ea1a619d·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods
39 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See39 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See
40 their·documentation·for·more·information.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightsid[·...·truncated·by·diffoscope;·len:·498,·SHA:·e4a68861585faec6a5032b3b69d6dfb0f2799b5f387a527d9a1365571ed02069·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where40 their·documentation·for·more·information.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightside"><span·class="since"·titl[·...·truncated·by·diffoscope;·len:·390,·SHA:·5da622ae0e4d00b47239007520070e22568156d6c5b1662db8b80b465934b18c·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where
41 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,41 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
42 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·93281c1f6402743fd61110c11cf676f0f67eddceda801b4eb35e5fe9f85870fd·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where42 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·1018,·SHA:·732548acff5239e9a7b904f32790c90ab3b63522635334128f35e01d37ceaeb6·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where
43 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,43 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
44 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·f1cdbb1ec64f98fabbe1d89c88b03824310926cd7eaa160953ce2452fc3abb77·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where44 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·869,·SHA:·8ec7e525848424d5104dbdd10928d17cfee4e5aee63cdda7ecdbe323b30b59d3·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where
45 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,45 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
46 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·f94a0b2c1396b13b89aca7830197ebf19e2c0e5ba536a9cc25b325a481799510·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where46 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·947,·SHA:·fdd074315a0bfb226f815b1b6ea114c7367886338ffffff233d7f6fc3108769a·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where
47 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="https://doc.rust-lang[·...·truncated·by·diffoscope;·len:·783,·SHA:·c14217b89e3292a50a09192a8857485891fc769f861e1d1fc4322d04295c86ef·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where47 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="../../core/iter/traits/iterator/trait.Iterator.h[·...·truncated·by·diffoscope;·len:·621,·SHA:·484df7f946e7f2f69c3acad8964421c0db8ac5bb40032d11bbd862e20e67704c·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where
48 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer48 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer
49 if·the·underlying·iterator·ends·sooner.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·c[·...·truncated·by·diffoscope;·len:·488,·SHA:·76f753d5a273a09a73127631acaa0ee947326a929f33be291018188793e1af56·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where49 if·the·underlying·iterator·ends·sooner.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·[·...·truncated·by·diffoscope;·len:·380,·SHA:·fa258c7e0b5d583304a69e2d4e19f3d4cc9a9ed830bdf3796eaa0968bdf590b4·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where
50 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,50 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
51 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·07d303586c8ad4e0082d5b44bff8eeda03cdb8f4bdbe46489f9232bca5a43ec6·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but51 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterat[·...·truncated·by·diffoscope;·len:·314,·SHA:·299331ff47adaff3ebc292c53557ad34da957aef932f87ec0444c7f856820410·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but
52 unlike·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·2b20882d9583cee50e0c8b3cf362b27ce0d524db387d4aa4093d622b9370dada·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where52 unlike·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.scan">Read·more[·...·truncated·by·diffoscope;·len:·555,·SHA:·77279e392f259f6d4859f5a7747ee4b4d5315f3af0ac3baebf1d53be3461b312·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where
53 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,53 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
54 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,54 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
55 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·933,·SHA:·4af94b75ba5c1e03d2d70590d2fd0706f13b3080fbff0f5b98e7b109048c403d·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where55 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·771,·SHA:·a1a50c8ca4c13151c7b22ce05c74c449231e1ffe44225beee67ff212fc1d3859·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where
56 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,56 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
57 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.I[·...·truncated·by·diffoscope;·len:·968,·SHA:·e5572ed2f3bdf5970d038da608f2f592d945541207c483c257fe5789efba168a·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where57 ····Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::col[·...·truncated·by·diffoscope;·len:·779,·SHA:·a4e524bd8aa8a1e0a66409d1b462b88093ab51a1f901ff1a788d7ee63d597f4c·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where
58 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,58 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
59 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·3013c0e49b0dade37f8ca096eccc5ceeb03fc79b9d320a4c92486d23b88d1009·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over59 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·54,·SHA:·6acee514e4d8df8979b4bba687b7e0d5dbb0ea4f98a7019e2fb03f3a8058df0f·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over
60 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,60 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="../../core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,
61 the·windows·during·mapping·overlap·as·well.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside">[·...·truncated·by·diffoscope;·len:·454,·SHA:·040991f3914479bcc92615de2b81df7363656323622e5aadc964e1a61917d23e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where61 the·windows·during·mapping·overlap·as·well.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="[·...·truncated·by·diffoscope;·len:·346,·SHA:·b1244a5f92e0573c29e04e883cf8212ba2586013b3687af07b63c29d2e611530·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where
62 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="https://doc.rust-lang.org/1.84.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·0e0294a45242d5ce9a3ab8f95d6d410756415291d92baa7d12283ef1b3ecc3a0·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where62 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="../../core/option/enum.Option.html#variant.None"·title="variant·cor[·...·truncated·by·diffoscope;·len:·679,·SHA:·ec753d6ecf7b9fe81cb270d78e45e053f2702fff74c7a63c2ab8da22b97fea86·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where
63 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,63 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
64 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·a8b562f71802a421f4745f7d1fadf4f70d98030c829e70f27b692e7915267027·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where64 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·635,·SHA:·ee3a5bcc3544c3f17985966634fef69b1708d641ddb7e62aaac76933935c5ef7·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where
65 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="https://doc.rust-lang.org/1.84.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·b3db7d84f203bbc139b1c52912705d19c664dac762898205fce452c9dc3a5318·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where65 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.by_ref">[·...·truncated·by·diffoscope;·len:·415,·SHA:·7e0e075470d2db380bcf0838446659654c982aa2ca7831ed7d0317877855be2a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where
66 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,66 ····B:·<a·class="trait"·href="../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
67 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·431,·SHA:·a705a23f6d810357e7dcac670743884665ffcccfb9b780d0aa03720be8ca5625·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(67 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.collect">Read[·...·truncated·by·diffoscope;·len:·323,·SHA:·80e0dde3814a6e7cf4e30949627abc841ab4e98e2a920efb248777e22708682d·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(
68 ····&amp;mut·self,68 ····&amp;mut·self,
69 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.h[·...·truncated·by·diffoscope;·len:·479,·SHA:·fa749442d890055f86ceb34f411c84fd7ea08302b336d786d1ca36fe5868b020·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where69 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&g[·...·truncated·by·diffoscope;·len:·344,·SHA:·c06c6401df0a7150633e94cc973521da42e09819b07be80ba18d6acb696860a9·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
70 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,70 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
71 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>,71 ····Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>,
72 ····&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.h[·...·truncated·by·diffoscope;·len:·300,·SHA:·3bff089180bac38df7f42b87556fae7641185b89a949c284f53e3ac718a6decb·...·]/core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;B&gt;,72 ····&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&g[·...·truncated·by·diffoscope;·len:·192,·SHA:·039ceb6ce31fc6b1871e3e366efbd0f164f4a6cc1bc25554bba598b0ee820cca·...·]/core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;B&gt;,
73 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/itera[·...·truncated·by·diffoscope;·len:·323,·SHA:·b5c51f161dc9d77fd81d1fd23cc71fbf42ac00f3168cf9e41ebaaa2b6eb25363·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if73 ····B:·<a·class="trait"·href="../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="ty[·...·truncated·by·diffoscope;·len:·215,·SHA:·ddb8fbd12147eecef1697edd4c63187cc514ab4b851290335adfcccc3fa429ba·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if
74 a·failure·is·encountered.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·ri[·...·truncated·by·diffoscope;·len:·521,·SHA:·6a54376815dab985ec8cc35604d035e98e3003b1563c9b41e70966084505542b·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where74 a·failure·is·encountered.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/co[·...·truncated·by·diffoscope;·len:·386,·SHA:·d46a776c329de4f757930edda252586c2cdd85c6956b7b2f68448da33ee0625e·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
75 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,75 ····E:·<a·class="trait"·href="../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
76 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·975,·SHA:·94f7f970236ba59ba5f1415764a0e3ab2f3093c6b79e76c25c797ac24a3c4d09·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where76 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_collect[·...·truncated·by·diffoscope;·len:·840,·SHA:·1ee6fbe4deb3d959e9ade58fb7ed3efa79d09721ed02fbb5f5f82aae6aa1425d·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
77 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,77 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
78 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·b480ec650ba000fe7cb67df58fc0351299638ee3e8f00db18f74ca24d69f9894·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,78 ····B:·<a·class="trait"·href="../../core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtyp[·...·truncated·by·diffoscope;·len:·14,·SHA:·4105980ca4887a52797067761af25a11e3de6069cd8d7c8ce82cd885bb798fe8·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
79 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·fdf5a1845f070855ba2cfd0c8c85460ea5cb646c4d3b42a8431bf21489c73701·...·]/core/primitive.usize.html">usize</a><div·class="where">where79 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·806,·SHA:·4d554b733db12e71a31ec2477a31408041941b0e2b0dc910904ecf2fced9f65b·...·]/core/primitive.usize.html">usize</a><div·class="where">where
80 ····T:·'a,80 ····T:·'a,
81 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·1fc250e258e9e42e4fa3e22f86ecd57057e9ff23e47af1aec778076a7a891134·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,81 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIter[·...·truncated·by·diffoscope;·len:·51,·SHA:·c9be73bbed9d11ecac2a179f480a640f51d6255f26712667ffdabc72c1fc7fb0·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,
82 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·5846407374f20f525a4a0663ad4488141eafe64513ef82581dc5df5c2d200745·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_partition_in_place</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62543">#62543</a>)</span></div></span><div·class='docblock'>Reorders·the·elements·of·this·iterator·<em>in-place</em>·according·to·the·given·predicate,82 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="../../core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_partition_in_place</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62543">#62543</a>)</span></div></span><div·class='docblock'>Reorders·the·elements·of·this·iterator·<em>in-place</em>·according·to·the·given·predicate,
83 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.83 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.
84 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.partition_in_place">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_partitioned"·class="method·trait-impl"><a·clas[·...·truncated·by·diffoscope;·len:·431,·SHA:·4aa7d028146c72d45794efc19a376d4bee3b75eda61ff46d969e440b3dbfa1b0·...·]/core/primitive.bool.html">bool</a><div·class="where">where84 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.partition_in_place">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_partitioned"·class="method·trait-impl"><a·class="src·rightside"·href="../[·...·truncated·by·diffoscope;·len:·323,·SHA:·bfc44418fa28079222aab80e2baccdaffb2d067bbe5d1b5162202d268ad628d7·...·]/core/primitive.bool.html">bool</a><div·class="where">where
85 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,85 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
86 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·fcd03e71f79faad6d9b9a12045d59f4dfabc78e5aefebcabc9c1a5be45e31125·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,86 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·54,·SHA:·d5ac304cc26edf57442227b641dd21c427d0f9cb322b79986f5b15fc49f867b0·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,
87 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="[·...·truncated·by·diffoscope;·len:·327,·SHA:·6a5e1fb3d277395b79208a4b9226a3f67079855ea8ea2a966f794f23ed6151ba·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where87 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rightside"><span·class="sin[·...·truncated·by·diffoscope;·len:·246,·SHA:·e0390f91275ada2fcba1a4ca0ab0ddd5749e0d816895bb6c572dba762e92a4b6·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where
88 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,88 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
89 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,89 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
90 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the90 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="../../core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the
91 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightsid[·...·truncated·by·diffoscope;·len:·627,·SHA:·6a5bb11fcfdaae1b3149efa5eb584c4da7964c86ed0f5313c3ee12e94ad8d787·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where91 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span·class="since"·titl[·...·truncated·by·diffoscope;·len:·492,·SHA:·2537bf5a16d74ea3547b1bb9ec43123e549bd2f9060163c344770cbe8ea1375c·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
92 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,92 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
93 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·084691f7fc4e7f4da7db385127d0ce8d2d52f6740757129a65910c4db0dc180d·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing93 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·244,·SHA:·f09ac7e818239538c3f3208cb5c76076c24a0153797eb762821d5bf2a382d83b·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing
94 operation.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·217,·SHA:·447ae00256be3de069c602a6c04889808c883eae6fa349d023f53bdd5570ecae·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(94 operation.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/iter[·...·truncated·by·diffoscope;·len:·136,·SHA:·97e3ee132585582ec7077e3bbd86406d8a2dcfc97dce7fd52b49af3ec1b58622·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(
95 ····&amp;mut·self,95 ····&amp;mut·self,
96 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R, 
97 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.T[·...·truncated·by·diffoscope;·len:·950,·SHA:·817376e71f7a0d170bfbd4b7264c15d324f49c65106c49349d11a077842aa533·...·]96 ····f:·impl·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core:[·...·truncated·by·diffoscope;·len:·238,·SHA:·a52edc1a1ce1db5dd6e620dbfe5acb58fdc6d84f2320cef02845988aa54e5c55·...·]
 97 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;&gt;&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
98 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,98 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
99 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,99 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
100 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·764ea8f08626b05426a76738d54ebb2d640042494d76cba8c20d868bfdc07a73·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the100 ····&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>:·<a[·...·truncated·by·diffoscope;·len:·277,·SHA:·0dd064909226a9691486376740de1e17aa133a7ae2f635bee3feaa9b19d7b580·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the
101 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><span·class="rightside"><s[·...·truncated·by·diffoscope;·len:·476,·SHA:·aef721c14147dea2fbec70dcfa76916b3f1273bed8304f4c9db310ca23d1e4b1·...·]/core/primitive.bool.html">bool</a><div·class="where">where101 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="St[·...·truncated·by·diffoscope;·len:·368,·SHA:·6dbfbc90b7cfda9017074212ce0beeb560c8f9ba918ba7b00292e34daa531cc2·...·]/core/primitive.bool.html">bool</a><div·class="where">where
102 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,102 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
103 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·7c48e62c73a40a5cb5ebbf4a22cd789b342a88ad3d855022191f2bae33c736c6·...·]/core/primitive.bool.html">bool</a><div·class="where">where103 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·829,·SHA:·c413d95d1072acd820201f12ffb54d04a6c7f3b732f7de46115ba40b4eb1bd3f·...·]/core/primitive.bool.html">bool</a><div·class="where">where
104 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,104 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
105 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·673d69ce0c23e24b2546127c463e67cd2a4c0f7be792712e2b42e75427161b75·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where105 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·956,·SHA:·105c7ff05d33bc9219febe8c9633cf1c1a8d88c32e47e44793d403a428174c66·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
106 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,106 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
107 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·aa5078ff77f5638746395497f8ce92c1b684d342dea851990104d5e9981ab6b0·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where107 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·862,·SHA:·ab608da827ec12779180206da5bfe43676627c19288c1fe674060a00ba44a595·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where
108 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,108 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
109 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·1bd732dff19021a1586bb486282683f5c1bc65d5d514f9e13cc9232b4e94955b·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;,</div></h4></section></summary><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns109 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·49,·SHA:·819211b646a21318a22e9d295452cdf890d5288a631a50261ca1a5b2bac9f748·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;,</div></h4></section></summary><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns
110 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.find_map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_find"·class="method·trait-impl"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·215,·SHA:·4d59a011c8881794ce6367c1e816f11a813db02e37c71800ed6d47056f157573·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(110 the·first·non-none·result.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.find_map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_find"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/iter[·...·truncated·by·diffoscope;·len:·134,·SHA:·f9a67b0520c850053a598ecaa24d4c1a006e7174ac499ec1e09451cd90ea548e·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(
111 ····&amp;mut·self,111 ····&amp;mut·self,
112 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,112 ····f:·impl·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
113 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·efb03e5c706e0947c6a4490b17f1efb0f1944a7d81f2640b5933212334dd255a·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where113 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>·as·[·...·truncated·by·diffoscope;·len:·464,·SHA:·38b1d27bdc6fd93a0d7e942386ffe94e909033d34def03ec6236baba6643ee81·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
114 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,114 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
115 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html">bool</a>&gt;,115 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="../../core/primitive.bool.html">bool</a>&gt;,
116 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·764ea8f08626b05426a76738d54ebb2d640042494d76cba8c20d868bfdc07a73·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>try_find</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/63178">#63178</a>)</span></div></span><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns116 ····&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>:·<a[·...·truncated·by·diffoscope;·len:·277,·SHA:·0dd064909226a9691486376740de1e17aa133a7ae2f635bee3feaa9b19d7b580·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>try_find</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/63178">#63178</a>)</span></div></span><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns
117 the·first·true·result·or·the·first·error.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_find">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.position"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·635,·SHA:·348891c2a01ad4ba1f5ccca4c270bd2cefaf47e6b8194dc69d227209558119ff·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where117 the·first·true·result·or·the·first·error.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_find">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.position"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title=[·...·truncated·by·diffoscope;·len:·500,·SHA:·005fbbf80a1954a9c056f5ea1c5ad1868c1657316a1b4be45b5d494a4ecbdf59·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
118 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,118 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
119 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1189,·SHA:·4360ca57800771c35ace077798534aad7ac95777a9346afa743da53c39cd8341·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where119 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·973,·SHA:·ad7c68dc1d491d819df018ab62e4c4e3528246b340f23b31a24e291397947c97·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
120 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·fcd03e71f79faad6d9b9a12045d59f4dfabc78e5aefebcabc9c1a5be45e31125·...·]/core/primitive.bool.html">bool</a>,120 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·54,·SHA:·d5ac304cc26edf57442227b641dd21c427d0f9cb322b79986f5b15fc49f867b0·...·]/core/primitive.bool.html">bool</a>,
121 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/exact_size/trait.ExactSizeIterator.html"·title="trait·core::iter::traits::[·...·truncated·by·diffoscope;·len:·110,·SHA:·0820928829289d98a1966be462f362db3ccaddf5fdad8e605000a126e2801bc6·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIterator</a>,</div></h4></section></summary><div·class='docblock'>Searches·for·an·element·in·an·iterator·from·the·right,·returning·its121 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="../../core/iter/traits/exact_size/trait.ExactSizeIterator.html"·title="trait·core::iter::traits::exact_size::ExactSizeIterator">ExactSizeIterator</a>·+[·...·truncated·by·diffoscope;·len:·29,·SHA:·bb680b2f3f9e36fe30fed1aa5786c6f75aedb70f567a681c27cc4d159f52a43f·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIterator</a>,</div></h4></section></summary><div·class='docblock'>Searches·for·an·element·in·an·iterator·from·the·right,·returning·its
122 index.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.rposition">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.max"·class="method·trait-impl"><span·class="rightside"><sp[·...·truncated·by·diffoscope;·len:·595,·SHA:·9e95397fd76d907f00ba159c12d4771eeeaf6c20410150a0a587dbe9ea54d338·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where122 index.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.rposition">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.max"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Sta[·...·truncated·by·diffoscope;·len:·460,·SHA:·39534b643752093e918790d73fe6d8cf3dec96b7b0a77aee2dcad8c2b5281f6f·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
123 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,123 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
124 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.Ord.html"·title="[·...·truncated·by·diffoscope;·len:·981,·SHA:·98dce65e46bcafc96c419533e0f8c95c11436175b878a43b5be30d98cc9d33a9·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where124 ····Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,</div></h4></section></s[·...·truncated·by·diffoscope;·len:·792,·SHA:·1bb93cd8ddecc60bf1ff5020cb6d1411b5c3734922a720f802f028b7605837d8·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
125 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,125 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
126 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.Ord.html"·title="[·...·truncated·by·diffoscope;·len:·1027,·SHA:·b928182faf179ccb90df08564d70ae31d5dcbcdfc0c8037cf6b7f6a22530a7a1·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where126 ····Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,</div></h4></section></s[·...·truncated·by·diffoscope;·len:·838,·SHA:·56637061e6271f6a6bc0f3046a4c734f8a55cc5718ce48146cdf4c7588146444·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
Max diff block lines reached; 91821/330875 bytes (27.75%) of diff not shown.
324 KB
./usr/share/doc/rust-doc/html/alloc/str/struct.EscapeDefault.html
    
Offset 1, 222 lines modifiedOffset 1, 222 lines modified
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="The·return·type·of·`str::escape_default`."><title>EscapeDefault·in·alloc::str·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»       2025-01-07)»    (built»      from»  a» source»   tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Escape<wbr>Default</a></h2><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-EscapeDefault%3C'a%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-EscapeDefault%3C'a%3E"·title="Debug">Debug</a></li><li><a·href="#impl-Display-for-EscapeDefault%3C'a%3E"·title="Display">Display</a></li><li><a·href="#impl-FusedIterator-for-EscapeDefault%3C'a%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-EscapeDefault%3C'a%3E"·title="Iterator">Iterator</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-EscapeDefault%3C'a%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-EscapeDefault%3C'a%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-EscapeDefault%3C'a%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-EscapeDefault%3C'a%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-EscapeDefault%3C'a%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-EscapeDefault%3C'a%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-ToString-for-T"·title="ToString">ToString</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>str</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">alloc</a>::<wbr><a·href="index.html">str</a></span><h1>Struct·<span·class="struct">EscapeDefault</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/str/iter.rs.html#1560">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·EscapeDefault&lt;'a&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·[·...·truncated·by·diffoscope;·len:·155,·SHA:·9c0939d2c3eabbc4009756103b4b01672a9160ca1478a7e5f5d4f1a9ff8e8102·...·]/core/primitive.str.html#method.escape_default"·title="method·str::escape_default"><code>str::escape_default</code></a>.</p>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="The·return·type·of·`str::escape_default`."><title>EscapeDefault·in·alloc::str·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»       2025-01-07)»    (built»      from»  a» source»   tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Escape<wbr>Default</a></h2><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-EscapeDefault%3C'a%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-EscapeDefault%3C'a%3E"·title="Debug">Debug</a></li><li><a·href="#impl-Display-for-EscapeDefault%3C'a%3E"·title="Display">Display</a></li><li><a·href="#impl-FusedIterator-for-EscapeDefault%3C'a%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-EscapeDefault%3C'a%3E"·title="Iterator">Iterator</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-EscapeDefault%3C'a%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-EscapeDefault%3C'a%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-EscapeDefault%3C'a%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-EscapeDefault%3C'a%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-EscapeDefault%3C'a%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-EscapeDefault%3C'a%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-ToString-for-T"·title="ToString">ToString</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>str</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">alloc</a>::<wbr><a·href="index.html">str</a></span><h1>Struct·<span·class="struct">EscapeDefault</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../src/core/str/iter.rs.html#1560">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·EscapeDefault&lt;'a&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme[·...·truncated·by·diffoscope;·len:·101,·SHA:·978c74a73c11de83d23db48602056ff6712848db52439042cb2cb25f73153b9a·...·]/core/primitive.str.html#method.escape_default"·title="method·str::escape_default"><code>str::escape_default</code></a>.</p>
2 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-EscapeDefault%3C'a%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.34.0">1.34.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/str/iter.rs.html#1559">Source</a></span><a·href="#impl-Clone-for-EscapeDefault%3C'a%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/[·...·truncated·by·diffoscope;·len:·8836,·SHA:·f752444b097390d156a808365d8e1d8b234e588a73a1fdde9d88c88beded846d·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;Acc,·Fold,·R&gt;(&amp;mut·self,·init:·Acc,·fold:·Fold)·-&gt;·R<div·class="where">where2 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-EscapeDefault%3C'a%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.34.0">1.34.0</span>···<a·class="src"·href="../../src/core/str/iter.rs.html#1559">Source</a></span><a·href="#impl-Clone-for-EscapeDefault%3C'a%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a&gt;·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clo[·...·truncated·by·diffoscope;·len:·7918,·SHA:·ac0c8170e2a0b9944548a284332e19d4124596b1f256ed89141e1485e1674f78·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;Acc,·Fold,·R&gt;(&amp;mut·self,·init:·Acc,·fold:·Fold)·-&gt;·R<div·class="where">where
3 ····<a·class="struct"·href="struct.EscapeDefault.html"·title="struct·alloc::str::EscapeDefault">EscapeDefault</a>&lt;'a&gt;:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,3 ····<a·class="struct"·href="struct.EscapeDefault.html"·title="struct·alloc::str::EscapeDefault">EscapeDefault</a>&lt;'a&gt;:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
4 ····Fold:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Acc,·&lt;<a·class="struct"·href="struct.EscapeDefault.html"·title="struct·alloc::str::EscapeDefault">EscapeDefault</a>&lt;'a&gt;·as·<a·c[·...·truncated·by·diffoscope;·len:·234,·SHA:·6f718c49e7de3ead47f6daf762c8a6cc8b7782de7c8e61a1de10e78767547abe·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,4 ····Fold:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Acc,·&lt;<a·class="struct"·href="struct.EscapeDefault.html"·title="struct·alloc::str::EscapeDefault">EscapeDefault</a>&lt;'a&gt;·as·<a·class="trait"·href="../../co[·...·truncated·by·diffoscope;·len:·153,·SHA:·5647c32617d282adc9da074a8c6ab8a8afc82618fce53847fed3578ea2f9c448·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
5 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Acc&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns5 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Acc&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns
6 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><a·class="src·rightside"·hr[·...·truncated·by·diffoscope;·len:·190,·SHA:·2494f89eaa52495c416e99f33a736de10030f5eac05c948c9b15e8f0ba5fd493·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;Acc,·Fold&gt;(self,·init:·Acc,·fold:·Fold)·-&gt;·Acc<div·class="where">where6 successfully,·producing·a·single,·final·value.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/str/iter[·...·truncated·by·diffoscope;·len:·109,·SHA:·f87300298eae9b50b0b799e504bdbe3c11b6c48cbade98dbe3fd43ce760d166a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;Acc,·Fold&gt;(self,·init:·Acc,·fold:·Fold)·-&gt;·Acc<div·class="where">where
7 ····Fold:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Acc,·&lt;<a·class="struct"·href="struct.EscapeDefault.html"·title="struct·alloc::str::EscapeDefault">EscapeDefault</a>&lt;'a&gt;·as·<a·c[·...·truncated·by·diffoscope;·len:·234,·SHA:·6f718c49e7de3ead47f6daf762c8a6cc8b7782de7c8e61a1de10e78767547abe·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·Acc,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,7 ····Fold:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Acc,·&lt;<a·class="struct"·href="struct.EscapeDefault.html"·title="struct·alloc::str::EscapeDefault">EscapeDefault</a>&lt;'a&gt;·as·<a·class="trait"·href="../../co[·...·truncated·by·diffoscope;·len:·153,·SHA:·5647c32617d282adc9da074a8c6ab8a8afc82618fce53847fed3578ea2f9c448·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·Acc,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,
8 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.next_chunk"·class="method·trait-impl"><a·class="src·rightside"·[·...·truncated·by·diffoscope;·len:·376,·SHA:·bffcb5e89bc8c1f543b013560504c6ce40da533b96afd33f3d818685e8ae24dd·...·]/core/primitive.usize.html">usize</a>&gt;(8 returning·the·final·result.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.next_chunk"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/iter/t[·...·truncated·by·diffoscope;·len:·268,·SHA:·f304ba3828777d2fb56897e8c1850880bfcb1d2e98d1f0a61ce62c222e0b3ecf·...·]/core/primitive.usize.html">usize</a>&gt;(
9 ····&amp;mut·self,9 ····&amp;mut·self,
10 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·4f557a9b49151e0be8c52ffd68f1def4469c08164239dc8bef8df2040551c5ef·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where10 )·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">It[·...·truncated·by·diffoscope;·len:·246,·SHA:·baf6c8e6f3d5dbac69324111240b1587dbb858d42149cae1ee895a165289ff4f·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where
11 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·962,·SHA:·116e4ec2ae3d9655c3d115eaf50f435f5323b4e48b84de734c79d2a09b3c02f2·...·]/core/primitive.usize.html">usize</a><div·class="where">where11 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_next_ch[·...·truncated·by·diffoscope;·len:·827,·SHA:·2479cde9ab5aa3e18f76cf74cf7889a3de87c66e1745f27cf29bd34c4d30dbdf·...·]/core/primitive.usize.html">usize</a><div·class="where">where
12 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·counting·the·number·of·iterations·and·returning·it.·<a·href="https://doc.[·...·truncated·by·diffoscope;·len:·837,·SHA:·47e25b6f9687bcc1d1fcdf9842fb085e6aba767d70531028f948636b80563dfc·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where12 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·counting·the·number·of·iterations·and·returning·it.·<a·href="../../core/iter/traits/iterator/trait.I[·...·truncated·by·diffoscope;·len:·675,·SHA:·1ce62884794ba87e19a0c96720594ee19d36bf34d9a84160028eeff78b648fa9·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
13 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·returning·the·last·element.·<a·href="https://doc.rust-lang.org/1.84.0/cor[·...·truncated·by·diffoscope;·len:·3504,·SHA:·ec43d0f6d8d2a1e0fb7a684c382b9934abe1250844e53cce08bdfc6017ecb276·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where13 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·returning·the·last·element.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.last[·...·truncated·by·diffoscope;·len:·2964,·SHA:·db62f7c0fcc4ed24f8d8d5c90b4eb970e1ba2f576e1c200c74164f961b4de28e·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where
14 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by14 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by
15 the·given·amount·at·each·iteration.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><sp[·...·truncated·by·diffoscope;·len:·842,·SHA:·945c4509a8daf2f8fbccc5c6e5089e225955911e03a3e411f047f96d52d16862·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where15 the·given·amount·at·each·iteration.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Sta[·...·truncated·by·diffoscope;·len:·680,·SHA:·77241b5118fcbc984cb791fa9f75077307e18056b66492741335faf440cbdabc·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
16 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,16 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
17 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·3b5ce32f9d564c3aa7cf2adc7130e674758d0c0f4f1275b4c3b46a74aa802cb3·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where17 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·1113,·SHA:·ccf22d19f49a25daffdcc6d9226d5107457a8bfd16beccfeff5020d151bdb8bb·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
18 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,18 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
19 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·[·...·truncated·by·diffoscope;·len:·868,·SHA:·abdbf27ccc84063c7040d8fa3da9d0bda5ee310a470ef576e15554aee4bd5d21·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where19 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·of·pairs.·<a·href="../../co[·...·truncated·by·diffoscope;·len:·706,·SHA:·f32c568f049122021445a983654582d97ac74064a3e99c3361b348bd7708c1b2·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where
20 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,20 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
21 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent21 ····Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent
22 items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="sr[·...·truncated·by·diffoscope;·len:·427,·SHA:·6e82ad4aad49c2165d869fe30d20a968580a973cdb3a7f4c77f49e16dd59393e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where22 items·of·the·original·iterator.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="src·rightside"·href="../../sr[·...·truncated·by·diffoscope;·len:·319,·SHA:·8babc469a22056fc5a02684b52f9f93ba9c27a3dd2e8443ddc060797054e211e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where
23 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,23 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
24 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>24 ····G:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>
25 between·adjacent·items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightsi[·...·truncated·by·diffoscope;·len:·471,·SHA:·ed10488b7b2ccc3e4cc84a9a57a9695a74c1c964962e8d753cbace12f3318a66·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where25 between·adjacent·items·of·the·original·iterator.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·tit[·...·truncated·by·diffoscope;·len:·363,·SHA:·09aee21fa4172b743a714e2cb5915129575ce0224df49c7343dec38f43b7ecfd·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where
26 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,26 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
27 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each27 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each
28 element.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><spa[·...·truncated·by·diffoscope;·len:·306,·SHA:·61c87c39b177830189b0e4c036d97c40d8b9649d76432c90afb88de59498e8b2·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where28 element.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stab[·...·truncated·by·diffoscope;·len:·225,·SHA:·a0f2490a1a5fd6b44e0ab01199cbbbd6e5463251405d11eaf6798c9b50bbd683·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where
29 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,29 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
30 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·a65da32c5f5ef8335cb607d3b4ab3f8a25877bc2c2e8b44ca9d575caecd5c8a5·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where30 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·754,·SHA:·421e55a5747cab3df1dad40b747b4633f241bdc13a1546bb19b1370788dea27d·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where
31 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,31 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
32 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·6d69c85c69fa789be551ea42d95c33c237d12a04ef157f9ddaaead1177f7771e·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element32 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·59,·SHA:·76969e34965f1923de668a65a9f5c33f73266468c9b96650bcc5fd498e606a6b·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element
33 should·be·yielded.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·489,·SHA:·9bdc636899f4e4e5a26a3a21c9603f72b3fb972865d2f459c38b7e2ac8fed7f1·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where33 should·be·yielded.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·cf812944678f6755720896cf32b330946303afe59f1b1c11adeb6a7f33454c8d·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where
34 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,34 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
35 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·46dbf841c7aecd3f06bd4c944af21650faeac98c46c515dcfe643302618b1ecd·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where35 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·863,·SHA:·c2bab87fa2a70713bd2d34b3dcae8f4ff2341917103b43a1dd505317f15d6cff·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where
36 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as36 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as
37 the·next·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside[·...·truncated·by·diffoscope;·len:·468,·SHA:·52f7ff7f264284c3acc4429ca34d057ded9afa2e3d9d6e07571e252db9a48977·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where37 the·next·value.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title[·...·truncated·by·diffoscope;·len:·360,·SHA:·688416dc1aaaa0be069177270ba9e74b3d1b92521285a109dc7ba86b58c1f22a·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where
38 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·c0180fefce4346b0b4089e5c642521d7716108241c0ce6ec3e910c7a2c7364b4·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods38 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="../../core/iter/adapters/peekable/struct.Peekable.html#method.peek"·title="m[·...·truncated·by·diffoscope;·len:·94,·SHA:·78aeab33f83c647dfe680c1050358c95977e3af17eabde4a04880721ea1a619d·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods
39 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See39 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See
40 their·documentation·for·more·information.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightsid[·...·truncated·by·diffoscope;·len:·498,·SHA:·e4a68861585faec6a5032b3b69d6dfb0f2799b5f387a527d9a1365571ed02069·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where40 their·documentation·for·more·information.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightside"><span·class="since"·titl[·...·truncated·by·diffoscope;·len:·390,·SHA:·5da622ae0e4d00b47239007520070e22568156d6c5b1662db8b80b465934b18c·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where
41 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,41 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
42 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·93281c1f6402743fd61110c11cf676f0f67eddceda801b4eb35e5fe9f85870fd·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where42 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·1018,·SHA:·732548acff5239e9a7b904f32790c90ab3b63522635334128f35e01d37ceaeb6·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where
43 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,43 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
44 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·f1cdbb1ec64f98fabbe1d89c88b03824310926cd7eaa160953ce2452fc3abb77·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where44 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·869,·SHA:·8ec7e525848424d5104dbdd10928d17cfee4e5aee63cdda7ecdbe323b30b59d3·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where
45 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,45 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
46 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·f94a0b2c1396b13b89aca7830197ebf19e2c0e5ba536a9cc25b325a481799510·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where46 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·947,·SHA:·fdd074315a0bfb226f815b1b6ea114c7367886338ffffff233d7f6fc3108769a·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where
47 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="https://doc.rust-lang[·...·truncated·by·diffoscope;·len:·783,·SHA:·c14217b89e3292a50a09192a8857485891fc769f861e1d1fc4322d04295c86ef·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where47 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="../../core/iter/traits/iterator/trait.Iterator.h[·...·truncated·by·diffoscope;·len:·621,·SHA:·484df7f946e7f2f69c3acad8964421c0db8ac5bb40032d11bbd862e20e67704c·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where
48 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer48 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer
49 if·the·underlying·iterator·ends·sooner.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·c[·...·truncated·by·diffoscope;·len:·488,·SHA:·76f753d5a273a09a73127631acaa0ee947326a929f33be291018188793e1af56·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where49 if·the·underlying·iterator·ends·sooner.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·[·...·truncated·by·diffoscope;·len:·380,·SHA:·fa258c7e0b5d583304a69e2d4e19f3d4cc9a9ed830bdf3796eaa0968bdf590b4·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where
50 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,50 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
51 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·07d303586c8ad4e0082d5b44bff8eeda03cdb8f4bdbe46489f9232bca5a43ec6·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but51 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterat[·...·truncated·by·diffoscope;·len:·314,·SHA:·299331ff47adaff3ebc292c53557ad34da957aef932f87ec0444c7f856820410·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but
52 unlike·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·2b20882d9583cee50e0c8b3cf362b27ce0d524db387d4aa4093d622b9370dada·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where52 unlike·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.scan">Read·more[·...·truncated·by·diffoscope;·len:·555,·SHA:·77279e392f259f6d4859f5a7747ee4b4d5315f3af0ac3baebf1d53be3461b312·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where
53 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,53 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
54 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,54 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
55 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·933,·SHA:·4af94b75ba5c1e03d2d70590d2fd0706f13b3080fbff0f5b98e7b109048c403d·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where55 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·771,·SHA:·a1a50c8ca4c13151c7b22ce05c74c449231e1ffe44225beee67ff212fc1d3859·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where
56 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,56 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
57 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.I[·...·truncated·by·diffoscope;·len:·968,·SHA:·e5572ed2f3bdf5970d038da608f2f592d945541207c483c257fe5789efba168a·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where57 ····Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::col[·...·truncated·by·diffoscope;·len:·779,·SHA:·a4e524bd8aa8a1e0a66409d1b462b88093ab51a1f901ff1a788d7ee63d597f4c·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where
58 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,58 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
59 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·3013c0e49b0dade37f8ca096eccc5ceeb03fc79b9d320a4c92486d23b88d1009·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over59 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·54,·SHA:·6acee514e4d8df8979b4bba687b7e0d5dbb0ea4f98a7019e2fb03f3a8058df0f·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over
60 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,60 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="../../core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,
61 the·windows·during·mapping·overlap·as·well.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside">[·...·truncated·by·diffoscope;·len:·454,·SHA:·040991f3914479bcc92615de2b81df7363656323622e5aadc964e1a61917d23e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where61 the·windows·during·mapping·overlap·as·well.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="[·...·truncated·by·diffoscope;·len:·346,·SHA:·b1244a5f92e0573c29e04e883cf8212ba2586013b3687af07b63c29d2e611530·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where
62 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="https://doc.rust-lang.org/1.84.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·0e0294a45242d5ce9a3ab8f95d6d410756415291d92baa7d12283ef1b3ecc3a0·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where62 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="../../core/option/enum.Option.html#variant.None"·title="variant·cor[·...·truncated·by·diffoscope;·len:·679,·SHA:·ec753d6ecf7b9fe81cb270d78e45e053f2702fff74c7a63c2ab8da22b97fea86·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where
63 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,63 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
64 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·a8b562f71802a421f4745f7d1fadf4f70d98030c829e70f27b692e7915267027·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where64 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·635,·SHA:·ee3a5bcc3544c3f17985966634fef69b1708d641ddb7e62aaac76933935c5ef7·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where
65 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="https://doc.rust-lang.org/1.84.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·b3db7d84f203bbc139b1c52912705d19c664dac762898205fce452c9dc3a5318·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where65 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.by_ref">[·...·truncated·by·diffoscope;·len:·415,·SHA:·7e0e075470d2db380bcf0838446659654c982aa2ca7831ed7d0317877855be2a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where
66 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,66 ····B:·<a·class="trait"·href="../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
67 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·431,·SHA:·a705a23f6d810357e7dcac670743884665ffcccfb9b780d0aa03720be8ca5625·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(67 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.collect">Read[·...·truncated·by·diffoscope;·len:·323,·SHA:·80e0dde3814a6e7cf4e30949627abc841ab4e98e2a920efb248777e22708682d·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(
68 ····&amp;mut·self,68 ····&amp;mut·self,
69 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.h[·...·truncated·by·diffoscope;·len:·479,·SHA:·fa749442d890055f86ceb34f411c84fd7ea08302b336d786d1ca36fe5868b020·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where69 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&g[·...·truncated·by·diffoscope;·len:·344,·SHA:·c06c6401df0a7150633e94cc973521da42e09819b07be80ba18d6acb696860a9·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
70 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,70 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
71 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>,71 ····Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>,
72 ····&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.h[·...·truncated·by·diffoscope;·len:·300,·SHA:·3bff089180bac38df7f42b87556fae7641185b89a949c284f53e3ac718a6decb·...·]/core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;B&gt;,72 ····&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&g[·...·truncated·by·diffoscope;·len:·192,·SHA:·039ceb6ce31fc6b1871e3e366efbd0f164f4a6cc1bc25554bba598b0ee820cca·...·]/core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;B&gt;,
73 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/itera[·...·truncated·by·diffoscope;·len:·323,·SHA:·b5c51f161dc9d77fd81d1fd23cc71fbf42ac00f3168cf9e41ebaaa2b6eb25363·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if73 ····B:·<a·class="trait"·href="../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="ty[·...·truncated·by·diffoscope;·len:·215,·SHA:·ddb8fbd12147eecef1697edd4c63187cc514ab4b851290335adfcccc3fa429ba·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if
74 a·failure·is·encountered.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·ri[·...·truncated·by·diffoscope;·len:·521,·SHA:·6a54376815dab985ec8cc35604d035e98e3003b1563c9b41e70966084505542b·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where74 a·failure·is·encountered.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/co[·...·truncated·by·diffoscope;·len:·386,·SHA:·d46a776c329de4f757930edda252586c2cdd85c6956b7b2f68448da33ee0625e·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
75 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,75 ····E:·<a·class="trait"·href="../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
76 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·975,·SHA:·94f7f970236ba59ba5f1415764a0e3ab2f3093c6b79e76c25c797ac24a3c4d09·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where76 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_collect[·...·truncated·by·diffoscope;·len:·840,·SHA:·1ee6fbe4deb3d959e9ade58fb7ed3efa79d09721ed02fbb5f5f82aae6aa1425d·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
77 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,77 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
78 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·b480ec650ba000fe7cb67df58fc0351299638ee3e8f00db18f74ca24d69f9894·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,78 ····B:·<a·class="trait"·href="../../core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtyp[·...·truncated·by·diffoscope;·len:·14,·SHA:·4105980ca4887a52797067761af25a11e3de6069cd8d7c8ce82cd885bb798fe8·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
79 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·fdf5a1845f070855ba2cfd0c8c85460ea5cb646c4d3b42a8431bf21489c73701·...·]/core/primitive.usize.html">usize</a><div·class="where">where79 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·806,·SHA:·4d554b733db12e71a31ec2477a31408041941b0e2b0dc910904ecf2fced9f65b·...·]/core/primitive.usize.html">usize</a><div·class="where">where
80 ····T:·'a,80 ····T:·'a,
81 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·1fc250e258e9e42e4fa3e22f86ecd57057e9ff23e47af1aec778076a7a891134·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,81 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIter[·...·truncated·by·diffoscope;·len:·51,·SHA:·c9be73bbed9d11ecac2a179f480a640f51d6255f26712667ffdabc72c1fc7fb0·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,
82 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·5846407374f20f525a4a0663ad4488141eafe64513ef82581dc5df5c2d200745·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_partition_in_place</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62543">#62543</a>)</span></div></span><div·class='docblock'>Reorders·the·elements·of·this·iterator·<em>in-place</em>·according·to·the·given·predicate,82 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="../../core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_partition_in_place</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62543">#62543</a>)</span></div></span><div·class='docblock'>Reorders·the·elements·of·this·iterator·<em>in-place</em>·according·to·the·given·predicate,
83 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.83 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.
84 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.partition_in_place">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_partitioned"·class="method·trait-impl"><a·clas[·...·truncated·by·diffoscope;·len:·431,·SHA:·4aa7d028146c72d45794efc19a376d4bee3b75eda61ff46d969e440b3dbfa1b0·...·]/core/primitive.bool.html">bool</a><div·class="where">where84 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.partition_in_place">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_partitioned"·class="method·trait-impl"><a·class="src·rightside"·href="../[·...·truncated·by·diffoscope;·len:·323,·SHA:·bfc44418fa28079222aab80e2baccdaffb2d067bbe5d1b5162202d268ad628d7·...·]/core/primitive.bool.html">bool</a><div·class="where">where
85 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,85 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
86 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·fcd03e71f79faad6d9b9a12045d59f4dfabc78e5aefebcabc9c1a5be45e31125·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,86 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·54,·SHA:·d5ac304cc26edf57442227b641dd21c427d0f9cb322b79986f5b15fc49f867b0·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,
87 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="[·...·truncated·by·diffoscope;·len:·327,·SHA:·6a5e1fb3d277395b79208a4b9226a3f67079855ea8ea2a966f794f23ed6151ba·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where87 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rightside"><span·class="sin[·...·truncated·by·diffoscope;·len:·246,·SHA:·e0390f91275ada2fcba1a4ca0ab0ddd5749e0d816895bb6c572dba762e92a4b6·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where
88 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,88 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
89 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,89 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
90 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the90 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="../../core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the
91 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightsid[·...·truncated·by·diffoscope;·len:·627,·SHA:·6a5bb11fcfdaae1b3149efa5eb584c4da7964c86ed0f5313c3ee12e94ad8d787·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where91 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span·class="since"·titl[·...·truncated·by·diffoscope;·len:·492,·SHA:·2537bf5a16d74ea3547b1bb9ec43123e549bd2f9060163c344770cbe8ea1375c·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
92 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,92 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
93 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·084691f7fc4e7f4da7db385127d0ce8d2d52f6740757129a65910c4db0dc180d·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing93 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·244,·SHA:·f09ac7e818239538c3f3208cb5c76076c24a0153797eb762821d5bf2a382d83b·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing
94 operation.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·217,·SHA:·447ae00256be3de069c602a6c04889808c883eae6fa349d023f53bdd5570ecae·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(94 operation.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/iter[·...·truncated·by·diffoscope;·len:·136,·SHA:·97e3ee132585582ec7077e3bbd86406d8a2dcfc97dce7fd52b49af3ec1b58622·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(
95 ····&amp;mut·self,95 ····&amp;mut·self,
96 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R, 
97 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.T[·...·truncated·by·diffoscope;·len:·950,·SHA:·817376e71f7a0d170bfbd4b7264c15d324f49c65106c49349d11a077842aa533·...·]96 ····f:·impl·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core:[·...·truncated·by·diffoscope;·len:·238,·SHA:·a52edc1a1ce1db5dd6e620dbfe5acb58fdc6d84f2320cef02845988aa54e5c55·...·]
 97 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;&gt;&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
98 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,98 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
99 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,99 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
100 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·764ea8f08626b05426a76738d54ebb2d640042494d76cba8c20d868bfdc07a73·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the100 ····&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>:·<a[·...·truncated·by·diffoscope;·len:·277,·SHA:·0dd064909226a9691486376740de1e17aa133a7ae2f635bee3feaa9b19d7b580·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the
101 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><span·class="rightside"><s[·...·truncated·by·diffoscope;·len:·476,·SHA:·aef721c14147dea2fbec70dcfa76916b3f1273bed8304f4c9db310ca23d1e4b1·...·]/core/primitive.bool.html">bool</a><div·class="where">where101 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="St[·...·truncated·by·diffoscope;·len:·368,·SHA:·6dbfbc90b7cfda9017074212ce0beeb560c8f9ba918ba7b00292e34daa531cc2·...·]/core/primitive.bool.html">bool</a><div·class="where">where
102 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,102 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
103 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·7c48e62c73a40a5cb5ebbf4a22cd789b342a88ad3d855022191f2bae33c736c6·...·]/core/primitive.bool.html">bool</a><div·class="where">where103 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·829,·SHA:·c413d95d1072acd820201f12ffb54d04a6c7f3b732f7de46115ba40b4eb1bd3f·...·]/core/primitive.bool.html">bool</a><div·class="where">where
104 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,104 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
105 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·673d69ce0c23e24b2546127c463e67cd2a4c0f7be792712e2b42e75427161b75·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where105 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·956,·SHA:·105c7ff05d33bc9219febe8c9633cf1c1a8d88c32e47e44793d403a428174c66·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
106 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,106 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
107 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·aa5078ff77f5638746395497f8ce92c1b684d342dea851990104d5e9981ab6b0·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where107 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·862,·SHA:·ab608da827ec12779180206da5bfe43676627c19288c1fe674060a00ba44a595·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where
108 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,108 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
109 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·1bd732dff19021a1586bb486282683f5c1bc65d5d514f9e13cc9232b4e94955b·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;,</div></h4></section></summary><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns109 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·49,·SHA:·819211b646a21318a22e9d295452cdf890d5288a631a50261ca1a5b2bac9f748·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;,</div></h4></section></summary><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns
110 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.find_map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_find"·class="method·trait-impl"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·215,·SHA:·4d59a011c8881794ce6367c1e816f11a813db02e37c71800ed6d47056f157573·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(110 the·first·non-none·result.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.find_map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_find"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/iter[·...·truncated·by·diffoscope;·len:·134,·SHA:·f9a67b0520c850053a598ecaa24d4c1a006e7174ac499ec1e09451cd90ea548e·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(
111 ····&amp;mut·self,111 ····&amp;mut·self,
112 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,112 ····f:·impl·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
113 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·efb03e5c706e0947c6a4490b17f1efb0f1944a7d81f2640b5933212334dd255a·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where113 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>·as·[·...·truncated·by·diffoscope;·len:·464,·SHA:·38b1d27bdc6fd93a0d7e942386ffe94e909033d34def03ec6236baba6643ee81·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
114 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,114 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
115 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html">bool</a>&gt;,115 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="../../core/primitive.bool.html">bool</a>&gt;,
116 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·764ea8f08626b05426a76738d54ebb2d640042494d76cba8c20d868bfdc07a73·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>try_find</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/63178">#63178</a>)</span></div></span><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns116 ····&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>:·<a[·...·truncated·by·diffoscope;·len:·277,·SHA:·0dd064909226a9691486376740de1e17aa133a7ae2f635bee3feaa9b19d7b580·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>try_find</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/63178">#63178</a>)</span></div></span><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns
117 the·first·true·result·or·the·first·error.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_find">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.position"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·635,·SHA:·348891c2a01ad4ba1f5ccca4c270bd2cefaf47e6b8194dc69d227209558119ff·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where117 the·first·true·result·or·the·first·error.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_find">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.position"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title=[·...·truncated·by·diffoscope;·len:·500,·SHA:·005fbbf80a1954a9c056f5ea1c5ad1868c1657316a1b4be45b5d494a4ecbdf59·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
118 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,118 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
119 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1189,·SHA:·4360ca57800771c35ace077798534aad7ac95777a9346afa743da53c39cd8341·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where119 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·973,·SHA:·ad7c68dc1d491d819df018ab62e4c4e3528246b340f23b31a24e291397947c97·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
120 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·fcd03e71f79faad6d9b9a12045d59f4dfabc78e5aefebcabc9c1a5be45e31125·...·]/core/primitive.bool.html">bool</a>,120 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·54,·SHA:·d5ac304cc26edf57442227b641dd21c427d0f9cb322b79986f5b15fc49f867b0·...·]/core/primitive.bool.html">bool</a>,
121 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/exact_size/trait.ExactSizeIterator.html"·title="trait·core::iter::traits::[·...·truncated·by·diffoscope;·len:·110,·SHA:·0820928829289d98a1966be462f362db3ccaddf5fdad8e605000a126e2801bc6·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIterator</a>,</div></h4></section></summary><div·class='docblock'>Searches·for·an·element·in·an·iterator·from·the·right,·returning·its121 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="../../core/iter/traits/exact_size/trait.ExactSizeIterator.html"·title="trait·core::iter::traits::exact_size::ExactSizeIterator">ExactSizeIterator</a>·+[·...·truncated·by·diffoscope;·len:·29,·SHA:·bb680b2f3f9e36fe30fed1aa5786c6f75aedb70f567a681c27cc4d159f52a43f·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIterator</a>,</div></h4></section></summary><div·class='docblock'>Searches·for·an·element·in·an·iterator·from·the·right,·returning·its
122 index.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.rposition">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.max"·class="method·trait-impl"><span·class="rightside"><sp[·...·truncated·by·diffoscope;·len:·595,·SHA:·9e95397fd76d907f00ba159c12d4771eeeaf6c20410150a0a587dbe9ea54d338·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where122 index.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.rposition">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.max"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Sta[·...·truncated·by·diffoscope;·len:·460,·SHA:·39534b643752093e918790d73fe6d8cf3dec96b7b0a77aee2dcad8c2b5281f6f·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
123 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,123 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
124 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.Ord.html"·title="[·...·truncated·by·diffoscope;·len:·981,·SHA:·98dce65e46bcafc96c419533e0f8c95c11436175b878a43b5be30d98cc9d33a9·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where124 ····Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,</div></h4></section></s[·...·truncated·by·diffoscope;·len:·792,·SHA:·1bb93cd8ddecc60bf1ff5020cb6d1411b5c3734922a720f802f028b7605837d8·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
125 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,125 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
126 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.Ord.html"·title="[·...·truncated·by·diffoscope;·len:·1027,·SHA:·b928182faf179ccb90df08564d70ae31d5dcbcdfc0c8037cf6b7f6a22530a7a1·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where126 ····Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,</div></h4></section></s[·...·truncated·by·diffoscope;·len:·838,·SHA:·56637061e6271f6a6bc0f3046a4c734f8a55cc5718ce48146cdf4c7588146444·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
Max diff block lines reached; 91989/331251 bytes (27.77%) of diff not shown.
324 KB
./usr/share/doc/rust-doc/html/alloc/str/struct.EscapeUnicode.html
    
Offset 1, 222 lines modifiedOffset 1, 222 lines modified
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="The·return·type·of·`str::escape_unicode`."><title>EscapeUnicode·in·alloc::str·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»       2025-01-07)»    (built»      from»  a» source»   tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Escape<wbr>Unicode</a></h2><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-EscapeUnicode%3C'a%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-EscapeUnicode%3C'a%3E"·title="Debug">Debug</a></li><li><a·href="#impl-Display-for-EscapeUnicode%3C'a%3E"·title="Display">Display</a></li><li><a·href="#impl-FusedIterator-for-EscapeUnicode%3C'a%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-EscapeUnicode%3C'a%3E"·title="Iterator">Iterator</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-EscapeUnicode%3C'a%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-EscapeUnicode%3C'a%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-EscapeUnicode%3C'a%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-EscapeUnicode%3C'a%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-EscapeUnicode%3C'a%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-EscapeUnicode%3C'a%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-ToString-for-T"·title="ToString">ToString</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>str</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">alloc</a>::<wbr><a·href="index.html">str</a></span><h1>Struct·<span·class="struct">EscapeUnicode</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/str/iter.rs.html#1567">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·EscapeUnicode&lt;'a&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·[·...·truncated·by·diffoscope;·len:·155,·SHA:·9c0939d2c3eabbc4009756103b4b01672a9160ca1478a7e5f5d4f1a9ff8e8102·...·]/core/primitive.str.html#method.escape_unicode"·title="method·str::escape_unicode"><code>str::escape_unicode</code></a>.</p>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="The·return·type·of·`str::escape_unicode`."><title>EscapeUnicode·in·alloc::str·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»       2025-01-07)»    (built»      from»  a» source»   tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Escape<wbr>Unicode</a></h2><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-EscapeUnicode%3C'a%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-EscapeUnicode%3C'a%3E"·title="Debug">Debug</a></li><li><a·href="#impl-Display-for-EscapeUnicode%3C'a%3E"·title="Display">Display</a></li><li><a·href="#impl-FusedIterator-for-EscapeUnicode%3C'a%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-EscapeUnicode%3C'a%3E"·title="Iterator">Iterator</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-EscapeUnicode%3C'a%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-EscapeUnicode%3C'a%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-EscapeUnicode%3C'a%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-EscapeUnicode%3C'a%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-EscapeUnicode%3C'a%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-EscapeUnicode%3C'a%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-ToString-for-T"·title="ToString">ToString</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>str</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">alloc</a>::<wbr><a·href="index.html">str</a></span><h1>Struct·<span·class="struct">EscapeUnicode</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../src/core/str/iter.rs.html#1567">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·EscapeUnicode&lt;'a&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme[·...·truncated·by·diffoscope;·len:·101,·SHA:·978c74a73c11de83d23db48602056ff6712848db52439042cb2cb25f73153b9a·...·]/core/primitive.str.html#method.escape_unicode"·title="method·str::escape_unicode"><code>str::escape_unicode</code></a>.</p>
2 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-EscapeUnicode%3C'a%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.34.0">1.34.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/str/iter.rs.html#1566">Source</a></span><a·href="#impl-Clone-for-EscapeUnicode%3C'a%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/[·...·truncated·by·diffoscope;·len:·8836,·SHA:·bbbf2048f98f3a2647aae6a18bab6c704e6b7d2d1339f941f9becb99a98ac5f0·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;Acc,·Fold,·R&gt;(&amp;mut·self,·init:·Acc,·fold:·Fold)·-&gt;·R<div·class="where">where2 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-EscapeUnicode%3C'a%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.34.0">1.34.0</span>···<a·class="src"·href="../../src/core/str/iter.rs.html#1566">Source</a></span><a·href="#impl-Clone-for-EscapeUnicode%3C'a%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a&gt;·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clo[·...·truncated·by·diffoscope;·len:·7918,·SHA:·8c6cfcd0cf2907f35bc4b49bd8e3fd43a7094f4fd16b1a8a9314d497dfb4324e·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;Acc,·Fold,·R&gt;(&amp;mut·self,·init:·Acc,·fold:·Fold)·-&gt;·R<div·class="where">where
3 ····<a·class="struct"·href="struct.EscapeUnicode.html"·title="struct·alloc::str::EscapeUnicode">EscapeUnicode</a>&lt;'a&gt;:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,3 ····<a·class="struct"·href="struct.EscapeUnicode.html"·title="struct·alloc::str::EscapeUnicode">EscapeUnicode</a>&lt;'a&gt;:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
4 ····Fold:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Acc,·&lt;<a·class="struct"·href="struct.EscapeUnicode.html"·title="struct·alloc::str::EscapeUnicode">EscapeUnicode</a>&lt;'a&gt;·as·<a·c[·...·truncated·by·diffoscope;·len:·234,·SHA:·6f718c49e7de3ead47f6daf762c8a6cc8b7782de7c8e61a1de10e78767547abe·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,4 ····Fold:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Acc,·&lt;<a·class="struct"·href="struct.EscapeUnicode.html"·title="struct·alloc::str::EscapeUnicode">EscapeUnicode</a>&lt;'a&gt;·as·<a·class="trait"·href="../../co[·...·truncated·by·diffoscope;·len:·153,·SHA:·5647c32617d282adc9da074a8c6ab8a8afc82618fce53847fed3578ea2f9c448·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
5 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Acc&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns5 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Acc&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns
6 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><a·class="src·rightside"·hr[·...·truncated·by·diffoscope;·len:·190,·SHA:·2494f89eaa52495c416e99f33a736de10030f5eac05c948c9b15e8f0ba5fd493·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;Acc,·Fold&gt;(self,·init:·Acc,·fold:·Fold)·-&gt;·Acc<div·class="where">where6 successfully,·producing·a·single,·final·value.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/str/iter[·...·truncated·by·diffoscope;·len:·109,·SHA:·f87300298eae9b50b0b799e504bdbe3c11b6c48cbade98dbe3fd43ce760d166a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;Acc,·Fold&gt;(self,·init:·Acc,·fold:·Fold)·-&gt;·Acc<div·class="where">where
7 ····Fold:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Acc,·&lt;<a·class="struct"·href="struct.EscapeUnicode.html"·title="struct·alloc::str::EscapeUnicode">EscapeUnicode</a>&lt;'a&gt;·as·<a·c[·...·truncated·by·diffoscope;·len:·234,·SHA:·6f718c49e7de3ead47f6daf762c8a6cc8b7782de7c8e61a1de10e78767547abe·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·Acc,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,7 ····Fold:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Acc,·&lt;<a·class="struct"·href="struct.EscapeUnicode.html"·title="struct·alloc::str::EscapeUnicode">EscapeUnicode</a>&lt;'a&gt;·as·<a·class="trait"·href="../../co[·...·truncated·by·diffoscope;·len:·153,·SHA:·5647c32617d282adc9da074a8c6ab8a8afc82618fce53847fed3578ea2f9c448·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·Acc,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,
8 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.next_chunk"·class="method·trait-impl"><a·class="src·rightside"·[·...·truncated·by·diffoscope;·len:·376,·SHA:·bffcb5e89bc8c1f543b013560504c6ce40da533b96afd33f3d818685e8ae24dd·...·]/core/primitive.usize.html">usize</a>&gt;(8 returning·the·final·result.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.next_chunk"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/iter/t[·...·truncated·by·diffoscope;·len:·268,·SHA:·f304ba3828777d2fb56897e8c1850880bfcb1d2e98d1f0a61ce62c222e0b3ecf·...·]/core/primitive.usize.html">usize</a>&gt;(
9 ····&amp;mut·self,9 ····&amp;mut·self,
10 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·4f557a9b49151e0be8c52ffd68f1def4469c08164239dc8bef8df2040551c5ef·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where10 )·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">It[·...·truncated·by·diffoscope;·len:·246,·SHA:·baf6c8e6f3d5dbac69324111240b1587dbb858d42149cae1ee895a165289ff4f·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where
11 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·962,·SHA:·116e4ec2ae3d9655c3d115eaf50f435f5323b4e48b84de734c79d2a09b3c02f2·...·]/core/primitive.usize.html">usize</a><div·class="where">where11 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_next_ch[·...·truncated·by·diffoscope;·len:·827,·SHA:·2479cde9ab5aa3e18f76cf74cf7889a3de87c66e1745f27cf29bd34c4d30dbdf·...·]/core/primitive.usize.html">usize</a><div·class="where">where
12 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·counting·the·number·of·iterations·and·returning·it.·<a·href="https://doc.[·...·truncated·by·diffoscope;·len:·837,·SHA:·47e25b6f9687bcc1d1fcdf9842fb085e6aba767d70531028f948636b80563dfc·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where12 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·counting·the·number·of·iterations·and·returning·it.·<a·href="../../core/iter/traits/iterator/trait.I[·...·truncated·by·diffoscope;·len:·675,·SHA:·1ce62884794ba87e19a0c96720594ee19d36bf34d9a84160028eeff78b648fa9·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
13 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·returning·the·last·element.·<a·href="https://doc.rust-lang.org/1.84.0/cor[·...·truncated·by·diffoscope;·len:·3504,·SHA:·ec43d0f6d8d2a1e0fb7a684c382b9934abe1250844e53cce08bdfc6017ecb276·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where13 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·returning·the·last·element.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.last[·...·truncated·by·diffoscope;·len:·2964,·SHA:·db62f7c0fcc4ed24f8d8d5c90b4eb970e1ba2f576e1c200c74164f961b4de28e·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where
14 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by14 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by
15 the·given·amount·at·each·iteration.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><sp[·...·truncated·by·diffoscope;·len:·842,·SHA:·945c4509a8daf2f8fbccc5c6e5089e225955911e03a3e411f047f96d52d16862·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where15 the·given·amount·at·each·iteration.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Sta[·...·truncated·by·diffoscope;·len:·680,·SHA:·77241b5118fcbc984cb791fa9f75077307e18056b66492741335faf440cbdabc·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
16 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,16 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
17 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·3b5ce32f9d564c3aa7cf2adc7130e674758d0c0f4f1275b4c3b46a74aa802cb3·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where17 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·1113,·SHA:·ccf22d19f49a25daffdcc6d9226d5107457a8bfd16beccfeff5020d151bdb8bb·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
18 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,18 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
19 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·[·...·truncated·by·diffoscope;·len:·868,·SHA:·abdbf27ccc84063c7040d8fa3da9d0bda5ee310a470ef576e15554aee4bd5d21·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where19 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·of·pairs.·<a·href="../../co[·...·truncated·by·diffoscope;·len:·706,·SHA:·f32c568f049122021445a983654582d97ac74064a3e99c3361b348bd7708c1b2·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where
20 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,20 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
21 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent21 ····Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent
22 items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="sr[·...·truncated·by·diffoscope;·len:·427,·SHA:·6e82ad4aad49c2165d869fe30d20a968580a973cdb3a7f4c77f49e16dd59393e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where22 items·of·the·original·iterator.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="src·rightside"·href="../../sr[·...·truncated·by·diffoscope;·len:·319,·SHA:·8babc469a22056fc5a02684b52f9f93ba9c27a3dd2e8443ddc060797054e211e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where
23 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,23 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
24 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>24 ····G:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>
25 between·adjacent·items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightsi[·...·truncated·by·diffoscope;·len:·471,·SHA:·ed10488b7b2ccc3e4cc84a9a57a9695a74c1c964962e8d753cbace12f3318a66·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where25 between·adjacent·items·of·the·original·iterator.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·tit[·...·truncated·by·diffoscope;·len:·363,·SHA:·09aee21fa4172b743a714e2cb5915129575ce0224df49c7343dec38f43b7ecfd·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where
26 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,26 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
27 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each27 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each
28 element.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><spa[·...·truncated·by·diffoscope;·len:·306,·SHA:·61c87c39b177830189b0e4c036d97c40d8b9649d76432c90afb88de59498e8b2·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where28 element.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stab[·...·truncated·by·diffoscope;·len:·225,·SHA:·a0f2490a1a5fd6b44e0ab01199cbbbd6e5463251405d11eaf6798c9b50bbd683·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where
29 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,29 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
30 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·a65da32c5f5ef8335cb607d3b4ab3f8a25877bc2c2e8b44ca9d575caecd5c8a5·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where30 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·754,·SHA:·421e55a5747cab3df1dad40b747b4633f241bdc13a1546bb19b1370788dea27d·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where
31 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,31 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
32 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·6d69c85c69fa789be551ea42d95c33c237d12a04ef157f9ddaaead1177f7771e·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element32 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·59,·SHA:·76969e34965f1923de668a65a9f5c33f73266468c9b96650bcc5fd498e606a6b·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element
33 should·be·yielded.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·489,·SHA:·9bdc636899f4e4e5a26a3a21c9603f72b3fb972865d2f459c38b7e2ac8fed7f1·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where33 should·be·yielded.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·cf812944678f6755720896cf32b330946303afe59f1b1c11adeb6a7f33454c8d·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where
34 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,34 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
35 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·46dbf841c7aecd3f06bd4c944af21650faeac98c46c515dcfe643302618b1ecd·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where35 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·863,·SHA:·c2bab87fa2a70713bd2d34b3dcae8f4ff2341917103b43a1dd505317f15d6cff·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where
36 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as36 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as
37 the·next·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside[·...·truncated·by·diffoscope;·len:·468,·SHA:·52f7ff7f264284c3acc4429ca34d057ded9afa2e3d9d6e07571e252db9a48977·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where37 the·next·value.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title[·...·truncated·by·diffoscope;·len:·360,·SHA:·688416dc1aaaa0be069177270ba9e74b3d1b92521285a109dc7ba86b58c1f22a·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where
38 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·c0180fefce4346b0b4089e5c642521d7716108241c0ce6ec3e910c7a2c7364b4·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods38 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="../../core/iter/adapters/peekable/struct.Peekable.html#method.peek"·title="m[·...·truncated·by·diffoscope;·len:·94,·SHA:·78aeab33f83c647dfe680c1050358c95977e3af17eabde4a04880721ea1a619d·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods
39 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See39 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See
40 their·documentation·for·more·information.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightsid[·...·truncated·by·diffoscope;·len:·498,·SHA:·e4a68861585faec6a5032b3b69d6dfb0f2799b5f387a527d9a1365571ed02069·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where40 their·documentation·for·more·information.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightside"><span·class="since"·titl[·...·truncated·by·diffoscope;·len:·390,·SHA:·5da622ae0e4d00b47239007520070e22568156d6c5b1662db8b80b465934b18c·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where
41 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,41 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
42 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·93281c1f6402743fd61110c11cf676f0f67eddceda801b4eb35e5fe9f85870fd·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where42 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·1018,·SHA:·732548acff5239e9a7b904f32790c90ab3b63522635334128f35e01d37ceaeb6·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where
43 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,43 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
44 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·f1cdbb1ec64f98fabbe1d89c88b03824310926cd7eaa160953ce2452fc3abb77·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where44 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·869,·SHA:·8ec7e525848424d5104dbdd10928d17cfee4e5aee63cdda7ecdbe323b30b59d3·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where
45 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,45 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
46 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·f94a0b2c1396b13b89aca7830197ebf19e2c0e5ba536a9cc25b325a481799510·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where46 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·947,·SHA:·fdd074315a0bfb226f815b1b6ea114c7367886338ffffff233d7f6fc3108769a·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where
47 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="https://doc.rust-lang[·...·truncated·by·diffoscope;·len:·783,·SHA:·c14217b89e3292a50a09192a8857485891fc769f861e1d1fc4322d04295c86ef·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where47 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="../../core/iter/traits/iterator/trait.Iterator.h[·...·truncated·by·diffoscope;·len:·621,·SHA:·484df7f946e7f2f69c3acad8964421c0db8ac5bb40032d11bbd862e20e67704c·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where
48 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer48 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer
49 if·the·underlying·iterator·ends·sooner.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·c[·...·truncated·by·diffoscope;·len:·488,·SHA:·76f753d5a273a09a73127631acaa0ee947326a929f33be291018188793e1af56·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where49 if·the·underlying·iterator·ends·sooner.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·[·...·truncated·by·diffoscope;·len:·380,·SHA:·fa258c7e0b5d583304a69e2d4e19f3d4cc9a9ed830bdf3796eaa0968bdf590b4·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where
50 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,50 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
51 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·07d303586c8ad4e0082d5b44bff8eeda03cdb8f4bdbe46489f9232bca5a43ec6·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but51 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterat[·...·truncated·by·diffoscope;·len:·314,·SHA:·299331ff47adaff3ebc292c53557ad34da957aef932f87ec0444c7f856820410·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but
52 unlike·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·2b20882d9583cee50e0c8b3cf362b27ce0d524db387d4aa4093d622b9370dada·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where52 unlike·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.scan">Read·more[·...·truncated·by·diffoscope;·len:·555,·SHA:·77279e392f259f6d4859f5a7747ee4b4d5315f3af0ac3baebf1d53be3461b312·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where
53 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,53 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
54 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,54 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
55 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·933,·SHA:·4af94b75ba5c1e03d2d70590d2fd0706f13b3080fbff0f5b98e7b109048c403d·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where55 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·771,·SHA:·a1a50c8ca4c13151c7b22ce05c74c449231e1ffe44225beee67ff212fc1d3859·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where
56 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,56 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
57 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.I[·...·truncated·by·diffoscope;·len:·968,·SHA:·e5572ed2f3bdf5970d038da608f2f592d945541207c483c257fe5789efba168a·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where57 ····Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::col[·...·truncated·by·diffoscope;·len:·779,·SHA:·a4e524bd8aa8a1e0a66409d1b462b88093ab51a1f901ff1a788d7ee63d597f4c·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where
58 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,58 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
59 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·3013c0e49b0dade37f8ca096eccc5ceeb03fc79b9d320a4c92486d23b88d1009·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over59 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·54,·SHA:·6acee514e4d8df8979b4bba687b7e0d5dbb0ea4f98a7019e2fb03f3a8058df0f·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over
60 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,60 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="../../core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,
61 the·windows·during·mapping·overlap·as·well.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside">[·...·truncated·by·diffoscope;·len:·454,·SHA:·040991f3914479bcc92615de2b81df7363656323622e5aadc964e1a61917d23e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where61 the·windows·during·mapping·overlap·as·well.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="[·...·truncated·by·diffoscope;·len:·346,·SHA:·b1244a5f92e0573c29e04e883cf8212ba2586013b3687af07b63c29d2e611530·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where
62 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="https://doc.rust-lang.org/1.84.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·0e0294a45242d5ce9a3ab8f95d6d410756415291d92baa7d12283ef1b3ecc3a0·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where62 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="../../core/option/enum.Option.html#variant.None"·title="variant·cor[·...·truncated·by·diffoscope;·len:·679,·SHA:·ec753d6ecf7b9fe81cb270d78e45e053f2702fff74c7a63c2ab8da22b97fea86·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where
63 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,63 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
64 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·a8b562f71802a421f4745f7d1fadf4f70d98030c829e70f27b692e7915267027·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where64 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·635,·SHA:·ee3a5bcc3544c3f17985966634fef69b1708d641ddb7e62aaac76933935c5ef7·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where
65 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="https://doc.rust-lang.org/1.84.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·b3db7d84f203bbc139b1c52912705d19c664dac762898205fce452c9dc3a5318·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where65 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.by_ref">[·...·truncated·by·diffoscope;·len:·415,·SHA:·7e0e075470d2db380bcf0838446659654c982aa2ca7831ed7d0317877855be2a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where
66 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,66 ····B:·<a·class="trait"·href="../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
67 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·431,·SHA:·a705a23f6d810357e7dcac670743884665ffcccfb9b780d0aa03720be8ca5625·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(67 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.collect">Read[·...·truncated·by·diffoscope;·len:·323,·SHA:·80e0dde3814a6e7cf4e30949627abc841ab4e98e2a920efb248777e22708682d·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(
68 ····&amp;mut·self,68 ····&amp;mut·self,
69 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.h[·...·truncated·by·diffoscope;·len:·479,·SHA:·fa749442d890055f86ceb34f411c84fd7ea08302b336d786d1ca36fe5868b020·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where69 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&g[·...·truncated·by·diffoscope;·len:·344,·SHA:·c06c6401df0a7150633e94cc973521da42e09819b07be80ba18d6acb696860a9·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
70 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,70 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
71 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>,71 ····Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>,
72 ····&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.h[·...·truncated·by·diffoscope;·len:·300,·SHA:·3bff089180bac38df7f42b87556fae7641185b89a949c284f53e3ac718a6decb·...·]/core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;B&gt;,72 ····&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&g[·...·truncated·by·diffoscope;·len:·192,·SHA:·039ceb6ce31fc6b1871e3e366efbd0f164f4a6cc1bc25554bba598b0ee820cca·...·]/core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;B&gt;,
73 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/itera[·...·truncated·by·diffoscope;·len:·323,·SHA:·b5c51f161dc9d77fd81d1fd23cc71fbf42ac00f3168cf9e41ebaaa2b6eb25363·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if73 ····B:·<a·class="trait"·href="../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="ty[·...·truncated·by·diffoscope;·len:·215,·SHA:·ddb8fbd12147eecef1697edd4c63187cc514ab4b851290335adfcccc3fa429ba·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if
74 a·failure·is·encountered.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·ri[·...·truncated·by·diffoscope;·len:·521,·SHA:·6a54376815dab985ec8cc35604d035e98e3003b1563c9b41e70966084505542b·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where74 a·failure·is·encountered.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/co[·...·truncated·by·diffoscope;·len:·386,·SHA:·d46a776c329de4f757930edda252586c2cdd85c6956b7b2f68448da33ee0625e·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
75 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,75 ····E:·<a·class="trait"·href="../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
76 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·975,·SHA:·94f7f970236ba59ba5f1415764a0e3ab2f3093c6b79e76c25c797ac24a3c4d09·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where76 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_collect[·...·truncated·by·diffoscope;·len:·840,·SHA:·1ee6fbe4deb3d959e9ade58fb7ed3efa79d09721ed02fbb5f5f82aae6aa1425d·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
77 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,77 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
78 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·b480ec650ba000fe7cb67df58fc0351299638ee3e8f00db18f74ca24d69f9894·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,78 ····B:·<a·class="trait"·href="../../core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtyp[·...·truncated·by·diffoscope;·len:·14,·SHA:·4105980ca4887a52797067761af25a11e3de6069cd8d7c8ce82cd885bb798fe8·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
79 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·fdf5a1845f070855ba2cfd0c8c85460ea5cb646c4d3b42a8431bf21489c73701·...·]/core/primitive.usize.html">usize</a><div·class="where">where79 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·806,·SHA:·4d554b733db12e71a31ec2477a31408041941b0e2b0dc910904ecf2fced9f65b·...·]/core/primitive.usize.html">usize</a><div·class="where">where
80 ····T:·'a,80 ····T:·'a,
81 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·1fc250e258e9e42e4fa3e22f86ecd57057e9ff23e47af1aec778076a7a891134·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,81 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIter[·...·truncated·by·diffoscope;·len:·51,·SHA:·c9be73bbed9d11ecac2a179f480a640f51d6255f26712667ffdabc72c1fc7fb0·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,
82 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·5846407374f20f525a4a0663ad4488141eafe64513ef82581dc5df5c2d200745·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_partition_in_place</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62543">#62543</a>)</span></div></span><div·class='docblock'>Reorders·the·elements·of·this·iterator·<em>in-place</em>·according·to·the·given·predicate,82 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="../../core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_partition_in_place</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62543">#62543</a>)</span></div></span><div·class='docblock'>Reorders·the·elements·of·this·iterator·<em>in-place</em>·according·to·the·given·predicate,
83 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.83 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.
84 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.partition_in_place">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_partitioned"·class="method·trait-impl"><a·clas[·...·truncated·by·diffoscope;·len:·431,·SHA:·4aa7d028146c72d45794efc19a376d4bee3b75eda61ff46d969e440b3dbfa1b0·...·]/core/primitive.bool.html">bool</a><div·class="where">where84 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.partition_in_place">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_partitioned"·class="method·trait-impl"><a·class="src·rightside"·href="../[·...·truncated·by·diffoscope;·len:·323,·SHA:·bfc44418fa28079222aab80e2baccdaffb2d067bbe5d1b5162202d268ad628d7·...·]/core/primitive.bool.html">bool</a><div·class="where">where
85 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,85 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
86 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·fcd03e71f79faad6d9b9a12045d59f4dfabc78e5aefebcabc9c1a5be45e31125·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,86 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·54,·SHA:·d5ac304cc26edf57442227b641dd21c427d0f9cb322b79986f5b15fc49f867b0·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,
87 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="[·...·truncated·by·diffoscope;·len:·327,·SHA:·6a5e1fb3d277395b79208a4b9226a3f67079855ea8ea2a966f794f23ed6151ba·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where87 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rightside"><span·class="sin[·...·truncated·by·diffoscope;·len:·246,·SHA:·e0390f91275ada2fcba1a4ca0ab0ddd5749e0d816895bb6c572dba762e92a4b6·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where
88 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,88 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
89 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,89 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
90 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the90 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="../../core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the
91 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightsid[·...·truncated·by·diffoscope;·len:·627,·SHA:·6a5bb11fcfdaae1b3149efa5eb584c4da7964c86ed0f5313c3ee12e94ad8d787·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where91 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span·class="since"·titl[·...·truncated·by·diffoscope;·len:·492,·SHA:·2537bf5a16d74ea3547b1bb9ec43123e549bd2f9060163c344770cbe8ea1375c·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
92 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,92 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
93 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·084691f7fc4e7f4da7db385127d0ce8d2d52f6740757129a65910c4db0dc180d·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing93 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·244,·SHA:·f09ac7e818239538c3f3208cb5c76076c24a0153797eb762821d5bf2a382d83b·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing
94 operation.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·217,·SHA:·447ae00256be3de069c602a6c04889808c883eae6fa349d023f53bdd5570ecae·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(94 operation.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/iter[·...·truncated·by·diffoscope;·len:·136,·SHA:·97e3ee132585582ec7077e3bbd86406d8a2dcfc97dce7fd52b49af3ec1b58622·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(
95 ····&amp;mut·self,95 ····&amp;mut·self,
96 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R, 
97 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.T[·...·truncated·by·diffoscope;·len:·950,·SHA:·817376e71f7a0d170bfbd4b7264c15d324f49c65106c49349d11a077842aa533·...·]96 ····f:·impl·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core:[·...·truncated·by·diffoscope;·len:·238,·SHA:·a52edc1a1ce1db5dd6e620dbfe5acb58fdc6d84f2320cef02845988aa54e5c55·...·]
 97 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;&gt;&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
98 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,98 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
99 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,99 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
100 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·764ea8f08626b05426a76738d54ebb2d640042494d76cba8c20d868bfdc07a73·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the100 ····&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>:·<a[·...·truncated·by·diffoscope;·len:·277,·SHA:·0dd064909226a9691486376740de1e17aa133a7ae2f635bee3feaa9b19d7b580·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the
101 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><span·class="rightside"><s[·...·truncated·by·diffoscope;·len:·476,·SHA:·aef721c14147dea2fbec70dcfa76916b3f1273bed8304f4c9db310ca23d1e4b1·...·]/core/primitive.bool.html">bool</a><div·class="where">where101 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="St[·...·truncated·by·diffoscope;·len:·368,·SHA:·6dbfbc90b7cfda9017074212ce0beeb560c8f9ba918ba7b00292e34daa531cc2·...·]/core/primitive.bool.html">bool</a><div·class="where">where
102 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,102 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
103 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·7c48e62c73a40a5cb5ebbf4a22cd789b342a88ad3d855022191f2bae33c736c6·...·]/core/primitive.bool.html">bool</a><div·class="where">where103 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·829,·SHA:·c413d95d1072acd820201f12ffb54d04a6c7f3b732f7de46115ba40b4eb1bd3f·...·]/core/primitive.bool.html">bool</a><div·class="where">where
104 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,104 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
105 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·673d69ce0c23e24b2546127c463e67cd2a4c0f7be792712e2b42e75427161b75·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where105 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·956,·SHA:·105c7ff05d33bc9219febe8c9633cf1c1a8d88c32e47e44793d403a428174c66·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
106 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,106 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
107 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·aa5078ff77f5638746395497f8ce92c1b684d342dea851990104d5e9981ab6b0·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where107 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·862,·SHA:·ab608da827ec12779180206da5bfe43676627c19288c1fe674060a00ba44a595·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where
108 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,108 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
109 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·1bd732dff19021a1586bb486282683f5c1bc65d5d514f9e13cc9232b4e94955b·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;,</div></h4></section></summary><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns109 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·49,·SHA:·819211b646a21318a22e9d295452cdf890d5288a631a50261ca1a5b2bac9f748·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;,</div></h4></section></summary><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns
110 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.find_map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_find"·class="method·trait-impl"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·215,·SHA:·4d59a011c8881794ce6367c1e816f11a813db02e37c71800ed6d47056f157573·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(110 the·first·non-none·result.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.find_map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_find"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/iter[·...·truncated·by·diffoscope;·len:·134,·SHA:·f9a67b0520c850053a598ecaa24d4c1a006e7174ac499ec1e09451cd90ea548e·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(
111 ····&amp;mut·self,111 ····&amp;mut·self,
112 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,112 ····f:·impl·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
113 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·efb03e5c706e0947c6a4490b17f1efb0f1944a7d81f2640b5933212334dd255a·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where113 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>·as·[·...·truncated·by·diffoscope;·len:·464,·SHA:·38b1d27bdc6fd93a0d7e942386ffe94e909033d34def03ec6236baba6643ee81·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
114 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,114 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
115 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html">bool</a>&gt;,115 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="../../core/primitive.bool.html">bool</a>&gt;,
116 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·764ea8f08626b05426a76738d54ebb2d640042494d76cba8c20d868bfdc07a73·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>try_find</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/63178">#63178</a>)</span></div></span><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns116 ····&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>:·<a[·...·truncated·by·diffoscope;·len:·277,·SHA:·0dd064909226a9691486376740de1e17aa133a7ae2f635bee3feaa9b19d7b580·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>try_find</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/63178">#63178</a>)</span></div></span><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns
117 the·first·true·result·or·the·first·error.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_find">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.position"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·635,·SHA:·348891c2a01ad4ba1f5ccca4c270bd2cefaf47e6b8194dc69d227209558119ff·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where117 the·first·true·result·or·the·first·error.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_find">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.position"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title=[·...·truncated·by·diffoscope;·len:·500,·SHA:·005fbbf80a1954a9c056f5ea1c5ad1868c1657316a1b4be45b5d494a4ecbdf59·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
118 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,118 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
119 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1189,·SHA:·4360ca57800771c35ace077798534aad7ac95777a9346afa743da53c39cd8341·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where119 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·973,·SHA:·ad7c68dc1d491d819df018ab62e4c4e3528246b340f23b31a24e291397947c97·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
120 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·fcd03e71f79faad6d9b9a12045d59f4dfabc78e5aefebcabc9c1a5be45e31125·...·]/core/primitive.bool.html">bool</a>,120 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·54,·SHA:·d5ac304cc26edf57442227b641dd21c427d0f9cb322b79986f5b15fc49f867b0·...·]/core/primitive.bool.html">bool</a>,
121 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/exact_size/trait.ExactSizeIterator.html"·title="trait·core::iter::traits::[·...·truncated·by·diffoscope;·len:·110,·SHA:·0820928829289d98a1966be462f362db3ccaddf5fdad8e605000a126e2801bc6·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIterator</a>,</div></h4></section></summary><div·class='docblock'>Searches·for·an·element·in·an·iterator·from·the·right,·returning·its121 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="../../core/iter/traits/exact_size/trait.ExactSizeIterator.html"·title="trait·core::iter::traits::exact_size::ExactSizeIterator">ExactSizeIterator</a>·+[·...·truncated·by·diffoscope;·len:·29,·SHA:·bb680b2f3f9e36fe30fed1aa5786c6f75aedb70f567a681c27cc4d159f52a43f·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIterator</a>,</div></h4></section></summary><div·class='docblock'>Searches·for·an·element·in·an·iterator·from·the·right,·returning·its
122 index.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.rposition">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.max"·class="method·trait-impl"><span·class="rightside"><sp[·...·truncated·by·diffoscope;·len:·595,·SHA:·9e95397fd76d907f00ba159c12d4771eeeaf6c20410150a0a587dbe9ea54d338·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where122 index.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.rposition">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.max"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Sta[·...·truncated·by·diffoscope;·len:·460,·SHA:·39534b643752093e918790d73fe6d8cf3dec96b7b0a77aee2dcad8c2b5281f6f·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
123 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,123 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
124 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.Ord.html"·title="[·...·truncated·by·diffoscope;·len:·981,·SHA:·98dce65e46bcafc96c419533e0f8c95c11436175b878a43b5be30d98cc9d33a9·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where124 ····Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,</div></h4></section></s[·...·truncated·by·diffoscope;·len:·792,·SHA:·1bb93cd8ddecc60bf1ff5020cb6d1411b5c3734922a720f802f028b7605837d8·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
125 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,125 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
126 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.Ord.html"·title="[·...·truncated·by·diffoscope;·len:·1027,·SHA:·b928182faf179ccb90df08564d70ae31d5dcbcdfc0c8037cf6b7f6a22530a7a1·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where126 ····Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,</div></h4></section></s[·...·truncated·by·diffoscope;·len:·838,·SHA:·56637061e6271f6a6bc0f3046a4c734f8a55cc5718ce48146cdf4c7588146444·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
Max diff block lines reached; 91989/331251 bytes (27.77%) of diff not shown.
338 KB
./usr/share/doc/rust-doc/html/alloc/str/struct.Lines.html
    
Offset 1, 244 lines modifiedOffset 1, 244 lines modified
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="An·iterator·over·the·lines·of·a·string,·as·string·slices."><title>Lines·in·alloc::str·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»     2025-01-07)»  (built»    from»a»       source» tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Lines</a></h2><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.remainder"·title="remainder">remainder</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-Lines%3C'a%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-Lines%3C'a%3E"·title="Debug">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-Lines%3C'a%3E"·title="DoubleEndedIterator">DoubleEndedIterator</a></li><li><a·href="#impl-FusedIterator-for-Lines%3C'_%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-Lines%3C'a%3E"·title="Iterator">Iterator</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-Lines%3C'a%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Lines%3C'a%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Lines%3C'a%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-Lines%3C'a%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-Lines%3C'a%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Lines%3C'a%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>str</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">alloc</a>::<wbr><a·href="index.html">str</a></span><h1>Struct·<span·class="struct">Lines</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/str/iter.rs.html#1165">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·Lines&lt;'a&gt;(<span·class="comment">/*·private·fields·*/</span>);</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>An·iterator·over·the·lines·of·a·string,·as·string·slices.</p>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="An·iterator·over·the·lines·of·a·string,·as·string·slices."><title>Lines·in·alloc::str·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»     2025-01-07)»  (built»    from»a»       source» tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Lines</a></h2><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.remainder"·title="remainder">remainder</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-Lines%3C'a%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-Lines%3C'a%3E"·title="Debug">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-Lines%3C'a%3E"·title="DoubleEndedIterator">DoubleEndedIterator</a></li><li><a·href="#impl-FusedIterator-for-Lines%3C'_%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-Lines%3C'a%3E"·title="Iterator">Iterator</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-Lines%3C'a%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Lines%3C'a%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Lines%3C'a%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-Lines%3C'a%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-Lines%3C'a%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Lines%3C'a%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>str</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">alloc</a>::<wbr><a·href="index.html">str</a></span><h1>Struct·<span·class="struct">Lines</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../src/core/str/iter.rs.html#1165">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·Lines&lt;'a&gt;(<span·class="comment">/*·private·fields·*/</span>);</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>An·iterator·over·the·lines·of·a·string,·as·string·slices.</p>
2 <p>This·struct·is·created·with·the·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.str.html#method.lines"·title="method·str::lines"><code>lines</code></a>·method·on·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.str.html"·title="primitive·str"><code>str</code></a>.2 <p>This·struct·is·created·with·the·<a·href="../../core/primitive.str.html#method.lines"·title="method·str::lines"><code>lines</code></a>·method·on·<a·href="../../core/primitive.str.html"·title="primitive·str"><code>str</code></a>.
3 See·its·documentation·for·more.</p>3 See·its·documentation·for·more.</p>
4 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Lines%3C'a%3E"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/str/iter.rs.html#1198">Source</a><a·href="#impl-Lines%3C'a%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a&gt;·<a·class="struct"·href="struct.Lines.html"·title="struct·alloc::str::Lines">Lines</a>&lt;'a&[·...·truncated·by·diffoscope;·len:·557,·SHA:·1b1ad606a5a73d9eb63a593149e8479559010fe1cfc6c54b059c545b72614e2e·...·]/core/primitive.str.html">str</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>str_lines_remainder</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/77998">#77998</a>)</span></div></span></summary><div·class="docblock"><p>Returns·the·remaining·lines·of·the·split·string.</p>4 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Lines%3C'a%3E"·class="impl"><a·class="src·rightside"·href="../../src/core/str/iter.rs.html#1198">Source</a><a·href="#impl-Lines%3C'a%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a&gt;·<a·class="struct"·href="struct.Lines.html"·title="struct·alloc::str::Lines">Lines</a>&lt;'a&gt;</h3></section></summary[·...·truncated·by·diffoscope;·len:·449,·SHA:·e0ff70f8fe3bfe23b08f89a23cf7af19bf147e9c092e1fb739221ee3156df4c5·...·]/core/primitive.str.html">str</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>str_lines_remainder</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/77998">#77998</a>)</span></div></span></summary><div·class="docblock"><p>Returns·the·remaining·lines·of·the·split·string.</p>
5 <h5·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h5>5 <h5·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h5>
6 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(str_lines_remainder)]6 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(str_lines_remainder)]
  
7 </span><span·class="kw">let·</span><span·class="kw-2">mut·</span>lines·=·<span·class="string">"a\nb\nc\nd"</span>.lines();7 </span><span·class="kw">let·</span><span·class="kw-2">mut·</span>lines·=·<span·class="string">"a\nb\nc\nd"</span>.lines();
8 <span·class="macro">assert_eq!</span>(lines.remainder(),·<span·class="prelude-val">Some</span>(<span·class="string">"a\nb\nc\nd"</span>));8 <span·class="macro">assert_eq!</span>(lines.remainder(),·<span·class="prelude-val">Some</span>(<span·class="string">"a\nb\nc\nd"</span>));
  
9 lines.next();9 lines.next();
10 <span·class="macro">assert_eq!</span>(lines.remainder(),·<span·class="prelude-val">Some</span>(<span·class="string">"b\nc\nd"</span>));10 <span·class="macro">assert_eq!</span>(lines.remainder(),·<span·class="prelude-val">Some</span>(<span·class="string">"b\nc\nd"</span>));
  
11 lines.by_ref().for_each(drop);11 lines.by_ref().for_each(drop);
12 <span·class="macro">assert_eq!</span>(lines.remainder(),·<span·class="prelude-val">None</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Bfeature(str_lines_remainder)%5D%0A%0Afn+main()+%7B%0A++++let+mut+lines+=+%22a%5Cnb%5Cnc%5Cnd%22.lines();%0A++++assert_eq!(lines.remainder(),+Some(%22a%5Cnb%5Cnc%5Cnd%22));%0A++++%0A++++lines.next();%0A++++assert_eq!(lines.remainder(),+Some(%22b%5Cnc%5Cnd%22));%0A++++%0A++++lines.by_ref().for_each(drop);%0A++++assert_eq!(lines.remainder(),+None);%0A%7D&amp;version=nightly&amp;edition=2021"></a></div>12 <span·class="macro">assert_eq!</span>(lines.remainder(),·<span·class="prelude-val">None</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Bfeature(str_lines_remainder)%5D%0A%0Afn+main()+%7B%0A++++let+mut+lines+=+%22a%5Cnb%5Cnc%5Cnd%22.lines();%0A++++assert_eq!(lines.remainder(),+Some(%22a%5Cnb%5Cnc%5Cnd%22));%0A++++%0A++++lines.next();%0A++++assert_eq!(lines.remainder(),+Some(%22b%5Cnc%5Cnd%22));%0A++++%0A++++lines.by_ref().for_each(drop);%0A++++assert_eq!(lines.remainder(),+None);%0A%7D&amp;version=nightly&amp;edition=2021"></a></div>
13 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-Lines%3C'a%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/str/iter.rs.html#1164">Source</a></span><a·href="#impl-Clone-for-Lines%3C'a%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Cl[·...·truncated·by·diffoscope;·len:·8451,·SHA:·098d7cc01ab136861c97735c834d441fac214b14d7b567fb8108b2e7e130ecb4·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold"·class="fn">try_rfold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where13 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-Lines%3C'a%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/str/iter.rs.html#1164">Source</a></span><a·href="#impl-Clone-for-Lines%3C'a%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a&gt;·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·f[·...·truncated·by·diffoscope;·len:·7506,·SHA:·c3f2166b1c708d82a2f4af41eff77f60f36a3db8a76057fe2fd1a8c51fbf252f·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold"·class="fn">try_rfold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where
14 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,14 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
15 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,15 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
16 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>This·is·the·reverse·version·of·<a·href="https://doc.rust-lang.org/1.8[·...·truncated·by·diffoscope;·len:·3,·SHA:·fbd04e1aae9ce0b11a8946e2c9ac2619f7428a64d32d01eff61d809dcb70ee8e·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·title="method·core::iter::traits::iterator::Iterator::try_fold"><code>Iterator::try_fold()</code></a>:·it·takes16 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>This·is·the·reverse·version·of·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·title="method·core::iter::traits::iterator::Iterator::try_fold"><code>Iterator::try_fold()</code></a>:·it·takes
17 elements·starting·from·the·back·of·the·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfold"·class="method·trait-impl"><span·clas[·...·truncated·by·diffoscope;·len:·325,·SHA:·7ffdb06a8ab3810207a1c974783822231eaf1d82fd94bcf810dd7b3181149b7b·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold"·class="fn">rfold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where17 elements·starting·from·the·back·of·the·iterator.·<a·href="../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfold"·class="method·trait-impl"><span·class="rightside"><span·class="[·...·truncated·by·diffoscope;·len:·244,·SHA:·6c4fe3f75fed1f00ec73ae6acd6efe929fb891f07f47293eec1013d32fc0fbe1·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold"·class="fn">rfold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where
18 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,18 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
19 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·reduces·the·iterator’s·elements·to·a·single,19 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·reduces·the·iterator’s·elements·to·a·single,
20 final·value,·starting·from·the·back.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfind"·class="method·trait-impl"><span·class="r[·...·truncated·by·diffoscope;·len:·665,·SHA:·fde89feb7c0e70eefa34d688476ca36a70115bec8150dbf9b1a3c359f72dd28d·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where20 final·value,·starting·from·the·back.·<a·href="../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfind"·class="method·trait-impl"><span·class="rightside"><span·class="sinc[·...·truncated·by·diffoscope;·len:·530,·SHA:·75a595bf6f9813abee32ae86d68f5de961884ee60e7080e18fb9c73b8e22c5f0·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
21 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,21 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
22 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·5145,·SHA:·6f7d53ba564ee4a4f29d103c9de61ee63e2e0aceeeb8f8abcd9026def449400f·...·]/core/primitive.usize.html">usize</a>&gt;(22 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·4389,·SHA:·c0e858fa3fa0626d1db7ab538c1533bdefed4003c90a86db671709db4f504419·...·]/core/primitive.usize.html">usize</a>&gt;(
23 ····&amp;mut·self,23 ····&amp;mut·self,
24 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·4f557a9b49151e0be8c52ffd68f1def4469c08164239dc8bef8df2040551c5ef·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where24 )·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">It[·...·truncated·by·diffoscope;·len:·246,·SHA:·baf6c8e6f3d5dbac69324111240b1587dbb858d42149cae1ee895a165289ff4f·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where
25 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·962,·SHA:·116e4ec2ae3d9655c3d115eaf50f435f5323b4e48b84de734c79d2a09b3c02f2·...·]/core/primitive.usize.html">usize</a><div·class="where">where25 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_next_ch[·...·truncated·by·diffoscope;·len:·827,·SHA:·2479cde9ab5aa3e18f76cf74cf7889a3de87c66e1745f27cf29bd34c4d30dbdf·...·]/core/primitive.usize.html">usize</a><div·class="where">where
26 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·counting·the·number·of·iterations·and·returning·it.·<a·href="https://doc.[·...·truncated·by·diffoscope;·len:·3529,·SHA:·36685e4ebfba7d155142dce71eec5dabe5f32dacb8a458b62987f15496f31675·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where26 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·counting·the·number·of·iterations·and·returning·it.·<a·href="../../core/iter/traits/iterator/trait.I[·...·truncated·by·diffoscope;·len:·2989,·SHA:·52662d0d84351ee66fd08cf83fe69d664777396d635c71dc09e542292824ef32·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where
27 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by27 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by
28 the·given·amount·at·each·iteration.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><sp[·...·truncated·by·diffoscope;·len:·842,·SHA:·945c4509a8daf2f8fbccc5c6e5089e225955911e03a3e411f047f96d52d16862·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where28 the·given·amount·at·each·iteration.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Sta[·...·truncated·by·diffoscope;·len:·680,·SHA:·77241b5118fcbc984cb791fa9f75077307e18056b66492741335faf440cbdabc·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
29 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,29 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
30 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·3b5ce32f9d564c3aa7cf2adc7130e674758d0c0f4f1275b4c3b46a74aa802cb3·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where30 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·1113,·SHA:·ccf22d19f49a25daffdcc6d9226d5107457a8bfd16beccfeff5020d151bdb8bb·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
31 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,31 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
32 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·[·...·truncated·by·diffoscope;·len:·868,·SHA:·abdbf27ccc84063c7040d8fa3da9d0bda5ee310a470ef576e15554aee4bd5d21·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where32 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·of·pairs.·<a·href="../../co[·...·truncated·by·diffoscope;·len:·706,·SHA:·f32c568f049122021445a983654582d97ac74064a3e99c3361b348bd7708c1b2·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where
33 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,33 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
34 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent34 ····Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent
35 items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="sr[·...·truncated·by·diffoscope;·len:·427,·SHA:·6e82ad4aad49c2165d869fe30d20a968580a973cdb3a7f4c77f49e16dd59393e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where35 items·of·the·original·iterator.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="src·rightside"·href="../../sr[·...·truncated·by·diffoscope;·len:·319,·SHA:·8babc469a22056fc5a02684b52f9f93ba9c27a3dd2e8443ddc060797054e211e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where
36 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,36 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
37 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>37 ····G:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>
38 between·adjacent·items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightsi[·...·truncated·by·diffoscope;·len:·471,·SHA:·ed10488b7b2ccc3e4cc84a9a57a9695a74c1c964962e8d753cbace12f3318a66·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where38 between·adjacent·items·of·the·original·iterator.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·tit[·...·truncated·by·diffoscope;·len:·363,·SHA:·09aee21fa4172b743a714e2cb5915129575ce0224df49c7343dec38f43b7ecfd·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where
39 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,39 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
40 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each40 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each
41 element.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><spa[·...·truncated·by·diffoscope;·len:·306,·SHA:·61c87c39b177830189b0e4c036d97c40d8b9649d76432c90afb88de59498e8b2·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where41 element.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stab[·...·truncated·by·diffoscope;·len:·225,·SHA:·a0f2490a1a5fd6b44e0ab01199cbbbd6e5463251405d11eaf6798c9b50bbd683·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where
42 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,42 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
43 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·a65da32c5f5ef8335cb607d3b4ab3f8a25877bc2c2e8b44ca9d575caecd5c8a5·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where43 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·754,·SHA:·421e55a5747cab3df1dad40b747b4633f241bdc13a1546bb19b1370788dea27d·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where
44 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,44 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
45 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·6d69c85c69fa789be551ea42d95c33c237d12a04ef157f9ddaaead1177f7771e·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element45 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·59,·SHA:·76969e34965f1923de668a65a9f5c33f73266468c9b96650bcc5fd498e606a6b·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element
46 should·be·yielded.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·489,·SHA:·9bdc636899f4e4e5a26a3a21c9603f72b3fb972865d2f459c38b7e2ac8fed7f1·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where46 should·be·yielded.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·cf812944678f6755720896cf32b330946303afe59f1b1c11adeb6a7f33454c8d·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where
47 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,47 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
48 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·46dbf841c7aecd3f06bd4c944af21650faeac98c46c515dcfe643302618b1ecd·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where48 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·863,·SHA:·c2bab87fa2a70713bd2d34b3dcae8f4ff2341917103b43a1dd505317f15d6cff·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where
49 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as49 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as
50 the·next·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside[·...·truncated·by·diffoscope;·len:·468,·SHA:·52f7ff7f264284c3acc4429ca34d057ded9afa2e3d9d6e07571e252db9a48977·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where50 the·next·value.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title[·...·truncated·by·diffoscope;·len:·360,·SHA:·688416dc1aaaa0be069177270ba9e74b3d1b92521285a109dc7ba86b58c1f22a·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where
51 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·c0180fefce4346b0b4089e5c642521d7716108241c0ce6ec3e910c7a2c7364b4·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods51 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="../../core/iter/adapters/peekable/struct.Peekable.html#method.peek"·title="m[·...·truncated·by·diffoscope;·len:·94,·SHA:·78aeab33f83c647dfe680c1050358c95977e3af17eabde4a04880721ea1a619d·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods
52 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See52 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See
53 their·documentation·for·more·information.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightsid[·...·truncated·by·diffoscope;·len:·498,·SHA:·e4a68861585faec6a5032b3b69d6dfb0f2799b5f387a527d9a1365571ed02069·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where53 their·documentation·for·more·information.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightside"><span·class="since"·titl[·...·truncated·by·diffoscope;·len:·390,·SHA:·5da622ae0e4d00b47239007520070e22568156d6c5b1662db8b80b465934b18c·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where
54 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,54 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
55 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·93281c1f6402743fd61110c11cf676f0f67eddceda801b4eb35e5fe9f85870fd·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where55 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·1018,·SHA:·732548acff5239e9a7b904f32790c90ab3b63522635334128f35e01d37ceaeb6·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where
56 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,56 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
57 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·f1cdbb1ec64f98fabbe1d89c88b03824310926cd7eaa160953ce2452fc3abb77·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where57 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·869,·SHA:·8ec7e525848424d5104dbdd10928d17cfee4e5aee63cdda7ecdbe323b30b59d3·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where
58 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,58 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
59 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·f94a0b2c1396b13b89aca7830197ebf19e2c0e5ba536a9cc25b325a481799510·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where59 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·947,·SHA:·fdd074315a0bfb226f815b1b6ea114c7367886338ffffff233d7f6fc3108769a·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where
60 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="https://doc.rust-lang[·...·truncated·by·diffoscope;·len:·783,·SHA:·c14217b89e3292a50a09192a8857485891fc769f861e1d1fc4322d04295c86ef·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where60 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="../../core/iter/traits/iterator/trait.Iterator.h[·...·truncated·by·diffoscope;·len:·621,·SHA:·484df7f946e7f2f69c3acad8964421c0db8ac5bb40032d11bbd862e20e67704c·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where
61 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer61 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer
62 if·the·underlying·iterator·ends·sooner.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·c[·...·truncated·by·diffoscope;·len:·488,·SHA:·76f753d5a273a09a73127631acaa0ee947326a929f33be291018188793e1af56·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where62 if·the·underlying·iterator·ends·sooner.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·[·...·truncated·by·diffoscope;·len:·380,·SHA:·fa258c7e0b5d583304a69e2d4e19f3d4cc9a9ed830bdf3796eaa0968bdf590b4·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where
63 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,63 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
64 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·07d303586c8ad4e0082d5b44bff8eeda03cdb8f4bdbe46489f9232bca5a43ec6·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but64 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterat[·...·truncated·by·diffoscope;·len:·314,·SHA:·299331ff47adaff3ebc292c53557ad34da957aef932f87ec0444c7f856820410·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but
65 unlike·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·2b20882d9583cee50e0c8b3cf362b27ce0d524db387d4aa4093d622b9370dada·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where65 unlike·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.scan">Read·more[·...·truncated·by·diffoscope;·len:·555,·SHA:·77279e392f259f6d4859f5a7747ee4b4d5315f3af0ac3baebf1d53be3461b312·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where
66 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,66 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
67 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,67 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
68 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·933,·SHA:·4af94b75ba5c1e03d2d70590d2fd0706f13b3080fbff0f5b98e7b109048c403d·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where68 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·771,·SHA:·a1a50c8ca4c13151c7b22ce05c74c449231e1ffe44225beee67ff212fc1d3859·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where
69 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,69 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
70 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.I[·...·truncated·by·diffoscope;·len:·968,·SHA:·e5572ed2f3bdf5970d038da608f2f592d945541207c483c257fe5789efba168a·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where70 ····Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::col[·...·truncated·by·diffoscope;·len:·779,·SHA:·a4e524bd8aa8a1e0a66409d1b462b88093ab51a1f901ff1a788d7ee63d597f4c·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where
71 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,71 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
72 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·3013c0e49b0dade37f8ca096eccc5ceeb03fc79b9d320a4c92486d23b88d1009·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over72 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·54,·SHA:·6acee514e4d8df8979b4bba687b7e0d5dbb0ea4f98a7019e2fb03f3a8058df0f·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over
73 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,73 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="../../core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,
74 the·windows·during·mapping·overlap·as·well.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside">[·...·truncated·by·diffoscope;·len:·454,·SHA:·040991f3914479bcc92615de2b81df7363656323622e5aadc964e1a61917d23e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where74 the·windows·during·mapping·overlap·as·well.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="[·...·truncated·by·diffoscope;·len:·346,·SHA:·b1244a5f92e0573c29e04e883cf8212ba2586013b3687af07b63c29d2e611530·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where
75 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="https://doc.rust-lang.org/1.84.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·0e0294a45242d5ce9a3ab8f95d6d410756415291d92baa7d12283ef1b3ecc3a0·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where75 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="../../core/option/enum.Option.html#variant.None"·title="variant·cor[·...·truncated·by·diffoscope;·len:·679,·SHA:·ec753d6ecf7b9fe81cb270d78e45e053f2702fff74c7a63c2ab8da22b97fea86·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where
76 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,76 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
77 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·a8b562f71802a421f4745f7d1fadf4f70d98030c829e70f27b692e7915267027·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where77 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·635,·SHA:·ee3a5bcc3544c3f17985966634fef69b1708d641ddb7e62aaac76933935c5ef7·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where
78 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="https://doc.rust-lang.org/1.84.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·b3db7d84f203bbc139b1c52912705d19c664dac762898205fce452c9dc3a5318·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where78 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.by_ref">[·...·truncated·by·diffoscope;·len:·415,·SHA:·7e0e075470d2db380bcf0838446659654c982aa2ca7831ed7d0317877855be2a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where
79 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,79 ····B:·<a·class="trait"·href="../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
80 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·431,·SHA:·a705a23f6d810357e7dcac670743884665ffcccfb9b780d0aa03720be8ca5625·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(80 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.collect">Read[·...·truncated·by·diffoscope;·len:·323,·SHA:·80e0dde3814a6e7cf4e30949627abc841ab4e98e2a920efb248777e22708682d·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(
81 ····&amp;mut·self,81 ····&amp;mut·self,
82 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.h[·...·truncated·by·diffoscope;·len:·479,·SHA:·fa749442d890055f86ceb34f411c84fd7ea08302b336d786d1ca36fe5868b020·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where82 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&g[·...·truncated·by·diffoscope;·len:·344,·SHA:·c06c6401df0a7150633e94cc973521da42e09819b07be80ba18d6acb696860a9·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
83 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,83 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
84 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>,84 ····Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>,
85 ····&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.h[·...·truncated·by·diffoscope;·len:·300,·SHA:·3bff089180bac38df7f42b87556fae7641185b89a949c284f53e3ac718a6decb·...·]/core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;B&gt;,85 ····&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&g[·...·truncated·by·diffoscope;·len:·192,·SHA:·039ceb6ce31fc6b1871e3e366efbd0f164f4a6cc1bc25554bba598b0ee820cca·...·]/core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;B&gt;,
86 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/itera[·...·truncated·by·diffoscope;·len:·323,·SHA:·b5c51f161dc9d77fd81d1fd23cc71fbf42ac00f3168cf9e41ebaaa2b6eb25363·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if86 ····B:·<a·class="trait"·href="../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="ty[·...·truncated·by·diffoscope;·len:·215,·SHA:·ddb8fbd12147eecef1697edd4c63187cc514ab4b851290335adfcccc3fa429ba·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if
87 a·failure·is·encountered.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·ri[·...·truncated·by·diffoscope;·len:·521,·SHA:·6a54376815dab985ec8cc35604d035e98e3003b1563c9b41e70966084505542b·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where87 a·failure·is·encountered.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/co[·...·truncated·by·diffoscope;·len:·386,·SHA:·d46a776c329de4f757930edda252586c2cdd85c6956b7b2f68448da33ee0625e·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
88 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,88 ····E:·<a·class="trait"·href="../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
89 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·975,·SHA:·94f7f970236ba59ba5f1415764a0e3ab2f3093c6b79e76c25c797ac24a3c4d09·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where89 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_collect[·...·truncated·by·diffoscope;·len:·840,·SHA:·1ee6fbe4deb3d959e9ade58fb7ed3efa79d09721ed02fbb5f5f82aae6aa1425d·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
90 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,90 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
91 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·b480ec650ba000fe7cb67df58fc0351299638ee3e8f00db18f74ca24d69f9894·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,91 ····B:·<a·class="trait"·href="../../core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtyp[·...·truncated·by·diffoscope;·len:·14,·SHA:·4105980ca4887a52797067761af25a11e3de6069cd8d7c8ce82cd885bb798fe8·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
92 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·fdf5a1845f070855ba2cfd0c8c85460ea5cb646c4d3b42a8431bf21489c73701·...·]/core/primitive.usize.html">usize</a><div·class="where">where92 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·806,·SHA:·4d554b733db12e71a31ec2477a31408041941b0e2b0dc910904ecf2fced9f65b·...·]/core/primitive.usize.html">usize</a><div·class="where">where
93 ····T:·'a,93 ····T:·'a,
94 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·1fc250e258e9e42e4fa3e22f86ecd57057e9ff23e47af1aec778076a7a891134·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,94 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIter[·...·truncated·by·diffoscope;·len:·51,·SHA:·c9be73bbed9d11ecac2a179f480a640f51d6255f26712667ffdabc72c1fc7fb0·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,
95 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·5846407374f20f525a4a0663ad4488141eafe64513ef82581dc5df5c2d200745·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_partition_in_place</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62543">#62543</a>)</span></div></span><div·class='docblock'>Reorders·the·elements·of·this·iterator·<em>in-place</em>·according·to·the·given·predicate,95 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="../../core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_partition_in_place</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62543">#62543</a>)</span></div></span><div·class='docblock'>Reorders·the·elements·of·this·iterator·<em>in-place</em>·according·to·the·given·predicate,
96 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.96 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.
97 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.partition_in_place">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_partitioned"·class="method·trait-impl"><a·clas[·...·truncated·by·diffoscope;·len:·431,·SHA:·4aa7d028146c72d45794efc19a376d4bee3b75eda61ff46d969e440b3dbfa1b0·...·]/core/primitive.bool.html">bool</a><div·class="where">where97 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.partition_in_place">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_partitioned"·class="method·trait-impl"><a·class="src·rightside"·href="../[·...·truncated·by·diffoscope;·len:·323,·SHA:·bfc44418fa28079222aab80e2baccdaffb2d067bbe5d1b5162202d268ad628d7·...·]/core/primitive.bool.html">bool</a><div·class="where">where
98 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,98 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
99 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·fcd03e71f79faad6d9b9a12045d59f4dfabc78e5aefebcabc9c1a5be45e31125·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,99 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·54,·SHA:·d5ac304cc26edf57442227b641dd21c427d0f9cb322b79986f5b15fc49f867b0·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,
100 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><span·class="righ[·...·truncated·by·diffoscope;·len:·319,·SHA:·9b9df13f2f4e5b4dde3908515766e1a474fa30bcb7edc98c15665a016e677c2a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where100 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><span·class="rightside"><span·class="since"·[·...·truncated·by·diffoscope;·len:·238,·SHA:·af6ab768457e0afa1532b80c4296ae18061dac4c765922889b13eead3e5492db·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where
101 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,101 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
102 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,102 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
103 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns103 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns
104 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rights[·...·truncated·by·diffoscope;·len:·321,·SHA:·619fd774190944998148325de99aaa75de66ce4b7e26579fd342c564923a5652·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where104 successfully,·producing·a·single,·final·value.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"·ti[·...·truncated·by·diffoscope;·len:·240,·SHA:·125e84deea747ccbe139725d028362287beed6a89ab9da3a3aabd7df537abc59·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where
105 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,105 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
106 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,106 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
107 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the107 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="../../core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the
108 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·307,·SHA:·5975144fd8566efa93ad1ccec09297e280924b7372e08681d2103702124e2c52·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where108 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title=[·...·truncated·by·diffoscope;·len:·226,·SHA:·a7510e9271e68887d9e2681c6bc28312cec9ac38883128845f52742935a160a9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where
109 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,109 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
110 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,110 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,
111 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span[·...·truncated·by·diffoscope;·len:·619,·SHA:·8813f54846438870310d5f5dfabd2335a9dbf51e9da2e4cd681bcb6077d39628·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where111 returning·the·final·result.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stabl[·...·truncated·by·diffoscope;·len:·484,·SHA:·5f42e8d5ff08f4c76870e6cb9165e054f9a0d99051d9886ccd43d5c8a91e1fbc·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
112 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,112 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
113 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·084691f7fc4e7f4da7db385127d0ce8d2d52f6740757129a65910c4db0dc180d·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing113 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·244,·SHA:·f09ac7e818239538c3f3208cb5c76076c24a0153797eb762821d5bf2a382d83b·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing
114 operation.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·217,·SHA:·447ae00256be3de069c602a6c04889808c883eae6fa349d023f53bdd5570ecae·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(114 operation.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/iter[·...·truncated·by·diffoscope;·len:·136,·SHA:·97e3ee132585582ec7077e3bbd86406d8a2dcfc97dce7fd52b49af3ec1b58622·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(
115 ····&amp;mut·self,115 ····&amp;mut·self,
116 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R, 
117 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.T[·...·truncated·by·diffoscope;·len:·950,·SHA:·817376e71f7a0d170bfbd4b7264c15d324f49c65106c49349d11a077842aa533·...·]116 ····f:·impl·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core:[·...·truncated·by·diffoscope;·len:·238,·SHA:·a52edc1a1ce1db5dd6e620dbfe5acb58fdc6d84f2320cef02845988aa54e5c55·...·]
 117 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;&gt;&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
118 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,118 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
119 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,119 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
120 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·764ea8f08626b05426a76738d54ebb2d640042494d76cba8c20d868bfdc07a73·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the120 ····&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>:·<a[·...·truncated·by·diffoscope;·len:·277,·SHA:·0dd064909226a9691486376740de1e17aa133a7ae2f635bee3feaa9b19d7b580·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the
121 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><span·class="rightside"><s[·...·truncated·by·diffoscope;·len:·476,·SHA:·aef721c14147dea2fbec70dcfa76916b3f1273bed8304f4c9db310ca23d1e4b1·...·]/core/primitive.bool.html">bool</a><div·class="where">where121 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="St[·...·truncated·by·diffoscope;·len:·368,·SHA:·6dbfbc90b7cfda9017074212ce0beeb560c8f9ba918ba7b00292e34daa531cc2·...·]/core/primitive.bool.html">bool</a><div·class="where">where
122 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,122 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
123 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·7c48e62c73a40a5cb5ebbf4a22cd789b342a88ad3d855022191f2bae33c736c6·...·]/core/primitive.bool.html">bool</a><div·class="where">where123 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·829,·SHA:·c413d95d1072acd820201f12ffb54d04a6c7f3b732f7de46115ba40b4eb1bd3f·...·]/core/primitive.bool.html">bool</a><div·class="where">where
Max diff block lines reached; 158068/345552 bytes (45.74%) of diff not shown.
334 KB
./usr/share/doc/rust-doc/html/alloc/str/struct.LinesAny.html
    
Offset 1, 231 lines modifiedOffset 1, 231 lines modified
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="Created·with·the·method·`lines_any`."><title>LinesAny·in·alloc::str·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312» 2025-01-07)»      (built»from»    a»   source»     tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Lines<wbr>Any</a></h2><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-LinesAny%3C'a%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-LinesAny%3C'a%3E"·title="Debug">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-LinesAny%3C'a%3E"·title="DoubleEndedIterator">DoubleEndedIterator</a></li><li><a·href="#impl-FusedIterator-for-LinesAny%3C'_%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-LinesAny%3C'a%3E"·title="Iterator">Iterator</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-LinesAny%3C'a%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-LinesAny%3C'a%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-LinesAny%3C'a%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-LinesAny%3C'a%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-LinesAny%3C'a%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-LinesAny%3C'a%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>str</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">alloc</a>::<wbr><a·href="index.html">str</a></span><h1>Struct·<span·class="struct">LinesAny</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/str/iter.rs.html#1231">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·LinesAny&lt;'a&gt;(<span·class="comment">/*·private·fields·*/</span>);</code></pre><span·class="item-info"><div·class="sta[·...·truncated·by·diffoscope;·len:·313,·SHA:·1a20062cc4526268cfc13d616fab051af5375d8ae3133339e5d25ba19ea152d7·...·]/core/primitive.str.html#method.lines_any"·title="method·str::lines_any"><code>lines_any</code></a>.</p>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="Created·with·the·method·`lines_any`."><title>LinesAny·in·alloc::str·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312» 2025-01-07)»      (built»from»    a»   source»     tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Lines<wbr>Any</a></h2><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-LinesAny%3C'a%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-LinesAny%3C'a%3E"·title="Debug">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-LinesAny%3C'a%3E"·title="DoubleEndedIterator">DoubleEndedIterator</a></li><li><a·href="#impl-FusedIterator-for-LinesAny%3C'_%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-LinesAny%3C'a%3E"·title="Iterator">Iterator</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-LinesAny%3C'a%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-LinesAny%3C'a%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-LinesAny%3C'a%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-LinesAny%3C'a%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-LinesAny%3C'a%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-LinesAny%3C'a%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>str</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">alloc</a>::<wbr><a·href="index.html">str</a></span><h1>Struct·<span·class="struct">LinesAny</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../src/core/str/iter.rs.html#1231">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·LinesAny&lt;'a&gt;(<span·class="comment">/*·private·fields·*/</span>);</code></pre><span·class="item-info"><div·class="stab·deprecated"><span·class="[·...·truncated·by·diffoscope;·len:·259,·SHA:·932076bcb208d1df5440c64ab31292670ac05b7a1eb9db4efda0691256d62cc9·...·]/core/primitive.str.html#method.lines_any"·title="method·str::lines_any"><code>lines_any</code></a>.</p>
2 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-LinesAny%3C'a%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/str/iter.rs.html#1229">Source</a></span><a·href="#impl-Clone-for-LinesAny%3C'a%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait[·...·truncated·by·diffoscope;·len:·8505,·SHA:·a3cbdb94ff10071d50b24f12a4a62075052aea4b25332f65bb42e9a34a37db75·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold"·class="fn">try_rfold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where2 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-LinesAny%3C'a%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/str/iter.rs.html#1229">Source</a></span><a·href="#impl-Clone-for-LinesAny%3C'a%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a&gt;·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a[·...·truncated·by·diffoscope;·len:·7560,·SHA:·f4489fcb6603b9527aa4ff8e8ee19590d6c8c6475577d923a4e02c208754b53f·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold"·class="fn">try_rfold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where
3 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,3 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
4 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,4 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
5 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>This·is·the·reverse·version·of·<a·href="https://doc.rust-lang.org/1.8[·...·truncated·by·diffoscope;·len:·3,·SHA:·fbd04e1aae9ce0b11a8946e2c9ac2619f7428a64d32d01eff61d809dcb70ee8e·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·title="method·core::iter::traits::iterator::Iterator::try_fold"><code>Iterator::try_fold()</code></a>:·it·takes5 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>This·is·the·reverse·version·of·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·title="method·core::iter::traits::iterator::Iterator::try_fold"><code>Iterator::try_fold()</code></a>:·it·takes
6 elements·starting·from·the·back·of·the·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfold"·class="method·trait-impl"><span·clas[·...·truncated·by·diffoscope;·len:·325,·SHA:·7ffdb06a8ab3810207a1c974783822231eaf1d82fd94bcf810dd7b3181149b7b·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold"·class="fn">rfold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where6 elements·starting·from·the·back·of·the·iterator.·<a·href="../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfold"·class="method·trait-impl"><span·class="rightside"><span·class="[·...·truncated·by·diffoscope;·len:·244,·SHA:·6c4fe3f75fed1f00ec73ae6acd6efe929fb891f07f47293eec1013d32fc0fbe1·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold"·class="fn">rfold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where
7 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,7 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
8 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·reduces·the·iterator’s·elements·to·a·single,8 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·reduces·the·iterator’s·elements·to·a·single,
9 final·value,·starting·from·the·back.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfind"·class="method·trait-impl"><span·class="r[·...·truncated·by·diffoscope;·len:·665,·SHA:·fde89feb7c0e70eefa34d688476ca36a70115bec8150dbf9b1a3c359f72dd28d·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where9 final·value,·starting·from·the·back.·<a·href="../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfind"·class="method·trait-impl"><span·class="rightside"><span·class="sinc[·...·truncated·by·diffoscope;·len:·530,·SHA:·75a595bf6f9813abee32ae86d68f5de961884ee60e7080e18fb9c73b8e22c5f0·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
10 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,10 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
11 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·4282,·SHA:·7b4cfdc5ac8337806278ded6f9f8a213663608a677344a9979b8598f6b681e76·...·]/core/primitive.usize.html">usize</a>&gt;(11 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·3661,·SHA:·010e21794014a760f8b0aede9a95e8dcbcf2e494690d13963b51a04cb9e37717·...·]/core/primitive.usize.html">usize</a>&gt;(
12 ····&amp;mut·self,12 ····&amp;mut·self,
13 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·4f557a9b49151e0be8c52ffd68f1def4469c08164239dc8bef8df2040551c5ef·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where13 )·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">It[·...·truncated·by·diffoscope;·len:·246,·SHA:·baf6c8e6f3d5dbac69324111240b1587dbb858d42149cae1ee895a165289ff4f·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where
14 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·962,·SHA:·116e4ec2ae3d9655c3d115eaf50f435f5323b4e48b84de734c79d2a09b3c02f2·...·]/core/primitive.usize.html">usize</a><div·class="where">where14 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_next_ch[·...·truncated·by·diffoscope;·len:·827,·SHA:·2479cde9ab5aa3e18f76cf74cf7889a3de87c66e1745f27cf29bd34c4d30dbdf·...·]/core/primitive.usize.html">usize</a><div·class="where">where
15 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·counting·the·number·of·iterations·and·returning·it.·<a·href="https://doc.[·...·truncated·by·diffoscope;·len:·837,·SHA:·47e25b6f9687bcc1d1fcdf9842fb085e6aba767d70531028f948636b80563dfc·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where15 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·counting·the·number·of·iterations·and·returning·it.·<a·href="../../core/iter/traits/iterator/trait.I[·...·truncated·by·diffoscope;·len:·675,·SHA:·1ce62884794ba87e19a0c96720594ee19d36bf34d9a84160028eeff78b648fa9·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
16 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·returning·the·last·element.·<a·href="https://doc.rust-lang.org/1.84.0/cor[·...·truncated·by·diffoscope;·len:·3504,·SHA:·ec43d0f6d8d2a1e0fb7a684c382b9934abe1250844e53cce08bdfc6017ecb276·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where16 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·returning·the·last·element.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.last[·...·truncated·by·diffoscope;·len:·2964,·SHA:·db62f7c0fcc4ed24f8d8d5c90b4eb970e1ba2f576e1c200c74164f961b4de28e·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where
17 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by17 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by
18 the·given·amount·at·each·iteration.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><sp[·...·truncated·by·diffoscope;·len:·842,·SHA:·945c4509a8daf2f8fbccc5c6e5089e225955911e03a3e411f047f96d52d16862·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where18 the·given·amount·at·each·iteration.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Sta[·...·truncated·by·diffoscope;·len:·680,·SHA:·77241b5118fcbc984cb791fa9f75077307e18056b66492741335faf440cbdabc·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
19 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,19 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
20 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·3b5ce32f9d564c3aa7cf2adc7130e674758d0c0f4f1275b4c3b46a74aa802cb3·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where20 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·1113,·SHA:·ccf22d19f49a25daffdcc6d9226d5107457a8bfd16beccfeff5020d151bdb8bb·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
21 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,21 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
22 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·[·...·truncated·by·diffoscope;·len:·868,·SHA:·abdbf27ccc84063c7040d8fa3da9d0bda5ee310a470ef576e15554aee4bd5d21·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where22 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·of·pairs.·<a·href="../../co[·...·truncated·by·diffoscope;·len:·706,·SHA:·f32c568f049122021445a983654582d97ac74064a3e99c3361b348bd7708c1b2·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where
23 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,23 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
24 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent24 ····Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent
25 items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="sr[·...·truncated·by·diffoscope;·len:·427,·SHA:·6e82ad4aad49c2165d869fe30d20a968580a973cdb3a7f4c77f49e16dd59393e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where25 items·of·the·original·iterator.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="src·rightside"·href="../../sr[·...·truncated·by·diffoscope;·len:·319,·SHA:·8babc469a22056fc5a02684b52f9f93ba9c27a3dd2e8443ddc060797054e211e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where
26 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,26 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
27 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>27 ····G:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>
28 between·adjacent·items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightsi[·...·truncated·by·diffoscope;·len:·471,·SHA:·ed10488b7b2ccc3e4cc84a9a57a9695a74c1c964962e8d753cbace12f3318a66·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where28 between·adjacent·items·of·the·original·iterator.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·tit[·...·truncated·by·diffoscope;·len:·363,·SHA:·09aee21fa4172b743a714e2cb5915129575ce0224df49c7343dec38f43b7ecfd·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where
29 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,29 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
30 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each30 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each
31 element.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><spa[·...·truncated·by·diffoscope;·len:·306,·SHA:·61c87c39b177830189b0e4c036d97c40d8b9649d76432c90afb88de59498e8b2·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where31 element.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stab[·...·truncated·by·diffoscope;·len:·225,·SHA:·a0f2490a1a5fd6b44e0ab01199cbbbd6e5463251405d11eaf6798c9b50bbd683·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where
32 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,32 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
33 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·a65da32c5f5ef8335cb607d3b4ab3f8a25877bc2c2e8b44ca9d575caecd5c8a5·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where33 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·754,·SHA:·421e55a5747cab3df1dad40b747b4633f241bdc13a1546bb19b1370788dea27d·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where
34 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,34 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
35 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·6d69c85c69fa789be551ea42d95c33c237d12a04ef157f9ddaaead1177f7771e·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element35 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·59,·SHA:·76969e34965f1923de668a65a9f5c33f73266468c9b96650bcc5fd498e606a6b·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element
36 should·be·yielded.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·489,·SHA:·9bdc636899f4e4e5a26a3a21c9603f72b3fb972865d2f459c38b7e2ac8fed7f1·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where36 should·be·yielded.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·cf812944678f6755720896cf32b330946303afe59f1b1c11adeb6a7f33454c8d·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where
37 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,37 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
38 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·46dbf841c7aecd3f06bd4c944af21650faeac98c46c515dcfe643302618b1ecd·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where38 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·863,·SHA:·c2bab87fa2a70713bd2d34b3dcae8f4ff2341917103b43a1dd505317f15d6cff·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where
39 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as39 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as
40 the·next·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside[·...·truncated·by·diffoscope;·len:·468,·SHA:·52f7ff7f264284c3acc4429ca34d057ded9afa2e3d9d6e07571e252db9a48977·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where40 the·next·value.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title[·...·truncated·by·diffoscope;·len:·360,·SHA:·688416dc1aaaa0be069177270ba9e74b3d1b92521285a109dc7ba86b58c1f22a·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where
41 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·c0180fefce4346b0b4089e5c642521d7716108241c0ce6ec3e910c7a2c7364b4·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods41 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="../../core/iter/adapters/peekable/struct.Peekable.html#method.peek"·title="m[·...·truncated·by·diffoscope;·len:·94,·SHA:·78aeab33f83c647dfe680c1050358c95977e3af17eabde4a04880721ea1a619d·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods
42 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See42 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See
43 their·documentation·for·more·information.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightsid[·...·truncated·by·diffoscope;·len:·498,·SHA:·e4a68861585faec6a5032b3b69d6dfb0f2799b5f387a527d9a1365571ed02069·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where43 their·documentation·for·more·information.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightside"><span·class="since"·titl[·...·truncated·by·diffoscope;·len:·390,·SHA:·5da622ae0e4d00b47239007520070e22568156d6c5b1662db8b80b465934b18c·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where
44 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,44 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
45 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·93281c1f6402743fd61110c11cf676f0f67eddceda801b4eb35e5fe9f85870fd·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where45 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·1018,·SHA:·732548acff5239e9a7b904f32790c90ab3b63522635334128f35e01d37ceaeb6·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where
46 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,46 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
47 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·f1cdbb1ec64f98fabbe1d89c88b03824310926cd7eaa160953ce2452fc3abb77·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where47 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·869,·SHA:·8ec7e525848424d5104dbdd10928d17cfee4e5aee63cdda7ecdbe323b30b59d3·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where
48 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,48 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
49 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·f94a0b2c1396b13b89aca7830197ebf19e2c0e5ba536a9cc25b325a481799510·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where49 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·947,·SHA:·fdd074315a0bfb226f815b1b6ea114c7367886338ffffff233d7f6fc3108769a·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where
50 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="https://doc.rust-lang[·...·truncated·by·diffoscope;·len:·783,·SHA:·c14217b89e3292a50a09192a8857485891fc769f861e1d1fc4322d04295c86ef·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where50 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="../../core/iter/traits/iterator/trait.Iterator.h[·...·truncated·by·diffoscope;·len:·621,·SHA:·484df7f946e7f2f69c3acad8964421c0db8ac5bb40032d11bbd862e20e67704c·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where
51 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer51 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer
52 if·the·underlying·iterator·ends·sooner.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·c[·...·truncated·by·diffoscope;·len:·488,·SHA:·76f753d5a273a09a73127631acaa0ee947326a929f33be291018188793e1af56·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where52 if·the·underlying·iterator·ends·sooner.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·[·...·truncated·by·diffoscope;·len:·380,·SHA:·fa258c7e0b5d583304a69e2d4e19f3d4cc9a9ed830bdf3796eaa0968bdf590b4·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where
53 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,53 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
54 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·07d303586c8ad4e0082d5b44bff8eeda03cdb8f4bdbe46489f9232bca5a43ec6·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but54 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterat[·...·truncated·by·diffoscope;·len:·314,·SHA:·299331ff47adaff3ebc292c53557ad34da957aef932f87ec0444c7f856820410·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but
55 unlike·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·2b20882d9583cee50e0c8b3cf362b27ce0d524db387d4aa4093d622b9370dada·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where55 unlike·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.scan">Read·more[·...·truncated·by·diffoscope;·len:·555,·SHA:·77279e392f259f6d4859f5a7747ee4b4d5315f3af0ac3baebf1d53be3461b312·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where
56 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,56 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
57 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,57 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
58 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·933,·SHA:·4af94b75ba5c1e03d2d70590d2fd0706f13b3080fbff0f5b98e7b109048c403d·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where58 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·771,·SHA:·a1a50c8ca4c13151c7b22ce05c74c449231e1ffe44225beee67ff212fc1d3859·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where
59 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,59 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
60 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.I[·...·truncated·by·diffoscope;·len:·968,·SHA:·e5572ed2f3bdf5970d038da608f2f592d945541207c483c257fe5789efba168a·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where60 ····Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::col[·...·truncated·by·diffoscope;·len:·779,·SHA:·a4e524bd8aa8a1e0a66409d1b462b88093ab51a1f901ff1a788d7ee63d597f4c·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where
61 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,61 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
62 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·3013c0e49b0dade37f8ca096eccc5ceeb03fc79b9d320a4c92486d23b88d1009·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over62 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·54,·SHA:·6acee514e4d8df8979b4bba687b7e0d5dbb0ea4f98a7019e2fb03f3a8058df0f·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over
63 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,63 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="../../core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,
64 the·windows·during·mapping·overlap·as·well.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside">[·...·truncated·by·diffoscope;·len:·454,·SHA:·040991f3914479bcc92615de2b81df7363656323622e5aadc964e1a61917d23e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where64 the·windows·during·mapping·overlap·as·well.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="[·...·truncated·by·diffoscope;·len:·346,·SHA:·b1244a5f92e0573c29e04e883cf8212ba2586013b3687af07b63c29d2e611530·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where
65 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="https://doc.rust-lang.org/1.84.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·0e0294a45242d5ce9a3ab8f95d6d410756415291d92baa7d12283ef1b3ecc3a0·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where65 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="../../core/option/enum.Option.html#variant.None"·title="variant·cor[·...·truncated·by·diffoscope;·len:·679,·SHA:·ec753d6ecf7b9fe81cb270d78e45e053f2702fff74c7a63c2ab8da22b97fea86·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where
66 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,66 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
67 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·a8b562f71802a421f4745f7d1fadf4f70d98030c829e70f27b692e7915267027·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where67 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·635,·SHA:·ee3a5bcc3544c3f17985966634fef69b1708d641ddb7e62aaac76933935c5ef7·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where
68 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="https://doc.rust-lang.org/1.84.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·b3db7d84f203bbc139b1c52912705d19c664dac762898205fce452c9dc3a5318·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where68 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.by_ref">[·...·truncated·by·diffoscope;·len:·415,·SHA:·7e0e075470d2db380bcf0838446659654c982aa2ca7831ed7d0317877855be2a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where
69 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,69 ····B:·<a·class="trait"·href="../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
70 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·431,·SHA:·a705a23f6d810357e7dcac670743884665ffcccfb9b780d0aa03720be8ca5625·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(70 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.collect">Read[·...·truncated·by·diffoscope;·len:·323,·SHA:·80e0dde3814a6e7cf4e30949627abc841ab4e98e2a920efb248777e22708682d·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(
71 ····&amp;mut·self,71 ····&amp;mut·self,
72 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.h[·...·truncated·by·diffoscope;·len:·479,·SHA:·fa749442d890055f86ceb34f411c84fd7ea08302b336d786d1ca36fe5868b020·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where72 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&g[·...·truncated·by·diffoscope;·len:·344,·SHA:·c06c6401df0a7150633e94cc973521da42e09819b07be80ba18d6acb696860a9·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
73 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,73 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
74 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>,74 ····Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>,
75 ····&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.h[·...·truncated·by·diffoscope;·len:·300,·SHA:·3bff089180bac38df7f42b87556fae7641185b89a949c284f53e3ac718a6decb·...·]/core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;B&gt;,75 ····&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&g[·...·truncated·by·diffoscope;·len:·192,·SHA:·039ceb6ce31fc6b1871e3e366efbd0f164f4a6cc1bc25554bba598b0ee820cca·...·]/core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;B&gt;,
76 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/itera[·...·truncated·by·diffoscope;·len:·323,·SHA:·b5c51f161dc9d77fd81d1fd23cc71fbf42ac00f3168cf9e41ebaaa2b6eb25363·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if76 ····B:·<a·class="trait"·href="../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="ty[·...·truncated·by·diffoscope;·len:·215,·SHA:·ddb8fbd12147eecef1697edd4c63187cc514ab4b851290335adfcccc3fa429ba·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if
77 a·failure·is·encountered.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·ri[·...·truncated·by·diffoscope;·len:·521,·SHA:·6a54376815dab985ec8cc35604d035e98e3003b1563c9b41e70966084505542b·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where77 a·failure·is·encountered.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/co[·...·truncated·by·diffoscope;·len:·386,·SHA:·d46a776c329de4f757930edda252586c2cdd85c6956b7b2f68448da33ee0625e·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
78 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,78 ····E:·<a·class="trait"·href="../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
79 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·975,·SHA:·94f7f970236ba59ba5f1415764a0e3ab2f3093c6b79e76c25c797ac24a3c4d09·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where79 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_collect[·...·truncated·by·diffoscope;·len:·840,·SHA:·1ee6fbe4deb3d959e9ade58fb7ed3efa79d09721ed02fbb5f5f82aae6aa1425d·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
80 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,80 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
81 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·b480ec650ba000fe7cb67df58fc0351299638ee3e8f00db18f74ca24d69f9894·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,81 ····B:·<a·class="trait"·href="../../core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtyp[·...·truncated·by·diffoscope;·len:·14,·SHA:·4105980ca4887a52797067761af25a11e3de6069cd8d7c8ce82cd885bb798fe8·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
82 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·fdf5a1845f070855ba2cfd0c8c85460ea5cb646c4d3b42a8431bf21489c73701·...·]/core/primitive.usize.html">usize</a><div·class="where">where82 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·806,·SHA:·4d554b733db12e71a31ec2477a31408041941b0e2b0dc910904ecf2fced9f65b·...·]/core/primitive.usize.html">usize</a><div·class="where">where
83 ····T:·'a,83 ····T:·'a,
84 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·1fc250e258e9e42e4fa3e22f86ecd57057e9ff23e47af1aec778076a7a891134·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,84 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIter[·...·truncated·by·diffoscope;·len:·51,·SHA:·c9be73bbed9d11ecac2a179f480a640f51d6255f26712667ffdabc72c1fc7fb0·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,
85 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·5846407374f20f525a4a0663ad4488141eafe64513ef82581dc5df5c2d200745·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_partition_in_place</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62543">#62543</a>)</span></div></span><div·class='docblock'>Reorders·the·elements·of·this·iterator·<em>in-place</em>·according·to·the·given·predicate,85 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="../../core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_partition_in_place</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62543">#62543</a>)</span></div></span><div·class='docblock'>Reorders·the·elements·of·this·iterator·<em>in-place</em>·according·to·the·given·predicate,
86 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.86 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.
87 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.partition_in_place">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_partitioned"·class="method·trait-impl"><a·clas[·...·truncated·by·diffoscope;·len:·431,·SHA:·4aa7d028146c72d45794efc19a376d4bee3b75eda61ff46d969e440b3dbfa1b0·...·]/core/primitive.bool.html">bool</a><div·class="where">where87 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.partition_in_place">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_partitioned"·class="method·trait-impl"><a·class="src·rightside"·href="../[·...·truncated·by·diffoscope;·len:·323,·SHA:·bfc44418fa28079222aab80e2baccdaffb2d067bbe5d1b5162202d268ad628d7·...·]/core/primitive.bool.html">bool</a><div·class="where">where
88 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,88 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
89 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·fcd03e71f79faad6d9b9a12045d59f4dfabc78e5aefebcabc9c1a5be45e31125·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,89 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·54,·SHA:·d5ac304cc26edf57442227b641dd21c427d0f9cb322b79986f5b15fc49f867b0·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,
90 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><span·class="righ[·...·truncated·by·diffoscope;·len:·319,·SHA:·9b9df13f2f4e5b4dde3908515766e1a474fa30bcb7edc98c15665a016e677c2a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where90 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><span·class="rightside"><span·class="since"·[·...·truncated·by·diffoscope;·len:·238,·SHA:·af6ab768457e0afa1532b80c4296ae18061dac4c765922889b13eead3e5492db·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where
91 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,91 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
92 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,92 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
93 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns93 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns
94 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rights[·...·truncated·by·diffoscope;·len:·321,·SHA:·619fd774190944998148325de99aaa75de66ce4b7e26579fd342c564923a5652·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where94 successfully,·producing·a·single,·final·value.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"·ti[·...·truncated·by·diffoscope;·len:·240,·SHA:·125e84deea747ccbe139725d028362287beed6a89ab9da3a3aabd7df537abc59·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where
95 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,95 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
96 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,96 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
97 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the97 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="../../core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the
98 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·307,·SHA:·5975144fd8566efa93ad1ccec09297e280924b7372e08681d2103702124e2c52·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where98 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title=[·...·truncated·by·diffoscope;·len:·226,·SHA:·a7510e9271e68887d9e2681c6bc28312cec9ac38883128845f52742935a160a9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where
99 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,99 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
100 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,100 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,
101 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span[·...·truncated·by·diffoscope;·len:·619,·SHA:·8813f54846438870310d5f5dfabd2335a9dbf51e9da2e4cd681bcb6077d39628·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where101 returning·the·final·result.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stabl[·...·truncated·by·diffoscope;·len:·484,·SHA:·5f42e8d5ff08f4c76870e6cb9165e054f9a0d99051d9886ccd43d5c8a91e1fbc·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
102 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,102 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
103 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·084691f7fc4e7f4da7db385127d0ce8d2d52f6740757129a65910c4db0dc180d·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing103 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·244,·SHA:·f09ac7e818239538c3f3208cb5c76076c24a0153797eb762821d5bf2a382d83b·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing
104 operation.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·217,·SHA:·447ae00256be3de069c602a6c04889808c883eae6fa349d023f53bdd5570ecae·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(104 operation.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/iter[·...·truncated·by·diffoscope;·len:·136,·SHA:·97e3ee132585582ec7077e3bbd86406d8a2dcfc97dce7fd52b49af3ec1b58622·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(
105 ····&amp;mut·self,105 ····&amp;mut·self,
106 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R, 
107 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.T[·...·truncated·by·diffoscope;·len:·950,·SHA:·817376e71f7a0d170bfbd4b7264c15d324f49c65106c49349d11a077842aa533·...·]106 ····f:·impl·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core:[·...·truncated·by·diffoscope;·len:·238,·SHA:·a52edc1a1ce1db5dd6e620dbfe5acb58fdc6d84f2320cef02845988aa54e5c55·...·]
 107 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;&gt;&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
108 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,108 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
109 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,109 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
110 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·764ea8f08626b05426a76738d54ebb2d640042494d76cba8c20d868bfdc07a73·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the110 ····&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>:·<a[·...·truncated·by·diffoscope;·len:·277,·SHA:·0dd064909226a9691486376740de1e17aa133a7ae2f635bee3feaa9b19d7b580·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the
111 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><span·class="rightside"><s[·...·truncated·by·diffoscope;·len:·476,·SHA:·aef721c14147dea2fbec70dcfa76916b3f1273bed8304f4c9db310ca23d1e4b1·...·]/core/primitive.bool.html">bool</a><div·class="where">where111 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="St[·...·truncated·by·diffoscope;·len:·368,·SHA:·6dbfbc90b7cfda9017074212ce0beeb560c8f9ba918ba7b00292e34daa531cc2·...·]/core/primitive.bool.html">bool</a><div·class="where">where
112 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,112 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
113 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·7c48e62c73a40a5cb5ebbf4a22cd789b342a88ad3d855022191f2bae33c736c6·...·]/core/primitive.bool.html">bool</a><div·class="where">where113 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·829,·SHA:·c413d95d1072acd820201f12ffb54d04a6c7f3b732f7de46115ba40b4eb1bd3f·...·]/core/primitive.bool.html">bool</a><div·class="where">where
114 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,114 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
115 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·673d69ce0c23e24b2546127c463e67cd2a4c0f7be792712e2b42e75427161b75·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where115 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·956,·SHA:·105c7ff05d33bc9219febe8c9633cf1c1a8d88c32e47e44793d403a428174c66·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
116 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,116 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
117 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·aa5078ff77f5638746395497f8ce92c1b684d342dea851990104d5e9981ab6b0·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where117 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·862,·SHA:·ab608da827ec12779180206da5bfe43676627c19288c1fe674060a00ba44a595·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where
118 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,118 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
119 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·1bd732dff19021a1586bb486282683f5c1bc65d5d514f9e13cc9232b4e94955b·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;,</div></h4></section></summary><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns119 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·49,·SHA:·819211b646a21318a22e9d295452cdf890d5288a631a50261ca1a5b2bac9f748·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;,</div></h4></section></summary><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns
120 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.find_map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_find"·class="method·trait-impl"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·215,·SHA:·4d59a011c8881794ce6367c1e816f11a813db02e37c71800ed6d47056f157573·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(120 the·first·non-none·result.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.find_map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_find"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/iter[·...·truncated·by·diffoscope;·len:·134,·SHA:·f9a67b0520c850053a598ecaa24d4c1a006e7174ac499ec1e09451cd90ea548e·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(
121 ····&amp;mut·self,121 ····&amp;mut·self,
122 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,122 ····f:·impl·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
123 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·efb03e5c706e0947c6a4490b17f1efb0f1944a7d81f2640b5933212334dd255a·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where123 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>·as·[·...·truncated·by·diffoscope;·len:·464,·SHA:·38b1d27bdc6fd93a0d7e942386ffe94e909033d34def03ec6236baba6643ee81·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
124 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,124 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
125 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html">bool</a>&gt;,125 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="../../core/primitive.bool.html">bool</a>&gt;,
126 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·764ea8f08626b05426a76738d54ebb2d640042494d76cba8c20d868bfdc07a73·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>try_find</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/63178">#63178</a>)</span></div></span><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns126 ····&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>:·<a[·...·truncated·by·diffoscope;·len:·277,·SHA:·0dd064909226a9691486376740de1e17aa133a7ae2f635bee3feaa9b19d7b580·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>try_find</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/63178">#63178</a>)</span></div></span><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns
Max diff block lines reached; 88832/342177 bytes (25.96%) of diff not shown.
345 KB
./usr/share/doc/rust-doc/html/alloc/str/struct.MatchIndices.html
Max HTML report size reached
344 KB
./usr/share/doc/rust-doc/html/alloc/str/struct.Matches.html
    
Offset 1, 247 lines modifiedOffset 1, 247 lines modified
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="Created·with·the·method·`matches`."><title>Matches·in·alloc::str·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»    2025-01-07)» (built»   from»       a»      source»tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Matches</a></h2><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-Matches%3C'a,+P%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-Matches%3C'a,+P%3E"·title="Debug">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-Matches%3C'a,+P%3E"·title="DoubleEndedIterator">DoubleEndedIterator</a></li><li><a·href="#impl-FusedIterator-for-Matches%3C'a,+P%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-Matches%3C'a,+P%3E"·title="Iterator">Iterator</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-Matches%3C'a,+P%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Matches%3C'a,+P%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Matches%3C'a,+P%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-Matches%3C'a,+P%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-Matches%3C'a,+P%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Matches%3C'a,+P%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>str</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">alloc</a>::<wbr><a·href="index.html">str</a></span><h1>Struct·<span·class="struct">Matches</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/str/iter.rs.html#1138-1154">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·Matches&lt;'a,·P&gt;(<span·class="comment">/*·private·fields·*/</span>)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="Created·with·the·method·`matches`."><title>Matches·in·alloc::str·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»    2025-01-07)» (built»   from»       a»      source»tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Matches</a></h2><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-Matches%3C'a,+P%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-Matches%3C'a,+P%3E"·title="Debug">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-Matches%3C'a,+P%3E"·title="DoubleEndedIterator">DoubleEndedIterator</a></li><li><a·href="#impl-FusedIterator-for-Matches%3C'a,+P%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-Matches%3C'a,+P%3E"·title="Iterator">Iterator</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-Matches%3C'a,+P%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Matches%3C'a,+P%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Matches%3C'a,+P%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-Matches%3C'a,+P%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-Matches%3C'a,+P%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Matches%3C'a,+P%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>str</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">alloc</a>::<wbr><a·href="index.html">str</a></span><h1>Struct·<span·class="struct">Matches</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../src/core/str/iter.rs.html#1138-1154">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·Matches&lt;'a,·P&gt;(<span·class="comment">/*·private·fields·*/</span>)
2 <span·class="where">where2 <span·class="where">where
3 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a></span>;</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Created·with·the·method·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.str.html#method.matches"·title="method·str::matches"><code>matches</code></a>.</p>3 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a></span>;</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Created·with·the·method·<a·href="../../core/primitive.str.html#method.matches"·title="method·str::matches"><code>matches</code></a>.</p>
4 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-Matches%3C'a,+P%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.2.0">1.2.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/str/iter.rs.html#1138-1154">Source</a></span><a·href="#impl-Clone-for-Matches%3C'a,+P%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·P&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struct"·href="struct.Matches.html"·title="struct·alloc::str::Matches">Matches</a>&lt;'a,·P&gt;<div·class="where">where4 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-Matches%3C'a,+P%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.2.0">1.2.0</span>···<a·class="src"·href="../../src/core/str/iter.rs.html#1138-1154">Source</a></span><a·href="#impl-Clone-for-Matches%3C'a,+P%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·P&gt;·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struct"·href="struct.Matches.html"·title="struct·alloc::str::Matches">Matches</a>&lt;'a,·P&gt;<div·class="where">where
5 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>,5 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>,
6 ····&lt;P·as·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&gt;::<a·class="associatedtype"·href="pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</a>&lt;'a&gt;:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone"·class="method·tra[·...·truncated·by·diffoscope;·len:·1722,·SHA:·3e6e1dbd7cc41f1397a72efe539301198cbfbc29fcf145a29285ad5fb6ad0246·...·]/src/core/str/iter.rs.html#1138-1154">Source</a></span><a·href="#impl-Debug-for-Matches%3C'a,+P%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·P&gt;·<a·class="trait"·href="../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.Matches.html"·title="struct·alloc::str::Matches">Matches</a>&lt;'a,·P&gt;<div·class="where">where6 ····&lt;P·as·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&gt;::<a·class="associatedtype"·href="pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</a>&lt;'a&gt;:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone"·class="method·trait-impl"><a·class="src·righ[·...·truncated·by·diffoscope;·len:·1506,·SHA:·af1cc80b35dac61e5c93449f7874d5851d43bad6671665a9c65f1aa98d79e54c·...·]/src/core/str/iter.rs.html#1138-1154">Source</a></span><a·href="#impl-Debug-for-Matches%3C'a,+P%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·P&gt;·<a·class="trait"·href="../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.Matches.html"·title="struct·alloc::str::Matches">Matches</a>&lt;'a,·P&gt;<div·class="where">where
7 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>,7 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>,
8 ····&lt;P·as·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&gt;::<a·class="associatedtype"·href="pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</a>&lt;'a&gt;:·<a·class="trait"·href="../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/str/iter.rs.html#1138-1154">Source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·[·...·truncated·by·diffoscope;·len:·1127,·SHA:·a7fdaf6abf6f7ae546a7fc0965ccb6cae36768c847579c525ffe89df422b0388·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIterator</a>·for·<a·class="struct"·href="struct.Matches.html"·title="struct·alloc::str::Matches">Matches</a>&lt;'a,·P&gt;<div·class="where">where8 ····&lt;P·as·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&gt;::<a·class="associatedtype"·href="pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</a>&lt;'a&gt;:·<a·class="trait"·href="../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/str/iter.rs.html#1138-1154">Source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="../fmt/struct.Formatt[·...·truncated·by·diffoscope;·len:·992,·SHA:·97d20769a387b34cc6f5b0ffddf1185d29a182563de08b7ca662e1badf69c98b·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIterator</a>·for·<a·class="struct"·href="struct.Matches.html"·title="struct·alloc::str::Matches">Matches</a>&lt;'a,·P&gt;<div·class="where">where
9 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>,9 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>,
10 ····&lt;P·as·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&gt;::<a·class="associatedtype"·href="pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</a>&lt;'a&gt;:·<a·class="trait"·href="pattern/trait.DoubleEndedSearcher.html"·title="trait·alloc::str::pattern::DoubleEndedSearcher">DoubleEndedSearcher</a>&lt;'a&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.next_back"·class="method·trait-impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/str/iter.rs.html#1138-1154">Source</a><a·href="#method.next_back"·class="anchor">§</a><h4·class="code-header">fn·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.htm[·...·truncated·by·diffoscope;·len:·3881,·SHA:·bbfc99ed28ef509a0e4b8f1760bbb07882fd931df63b92419dabacf689351798·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold"·class="fn">try_rfold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where10 ····&lt;P·as·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&gt;::<a·class="associatedtype"·href="pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</a>&lt;'a&gt;:·<a·class="trait"·href="pattern/trait.DoubleEndedSearcher.html"·title="trait·alloc::str::pattern::DoubleEndedSearcher">DoubleEndedSearcher</a>&lt;'a&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.next_back"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/str/iter.rs.html#1138-1154">Source</a><a·href="#method.next_back"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html#tymethod.next_back"·class="fn">next_back</a>(&amp;mu[·...·truncated·by·diffoscope;·len:·3314,·SHA:·627b99678996efb590137440a9136b5dba903e9d39b9c2b3065fac6a2243cf91·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold"·class="fn">try_rfold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where
11 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,11 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
12 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,12 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
13 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>This·is·the·reverse·version·of·<a·href="https://doc.rust-lang.org/1.8[·...·truncated·by·diffoscope;·len:·3,·SHA:·fbd04e1aae9ce0b11a8946e2c9ac2619f7428a64d32d01eff61d809dcb70ee8e·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·title="method·core::iter::traits::iterator::Iterator::try_fold"><code>Iterator::try_fold()</code></a>:·it·takes13 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>This·is·the·reverse·version·of·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·title="method·core::iter::traits::iterator::Iterator::try_fold"><code>Iterator::try_fold()</code></a>:·it·takes
14 elements·starting·from·the·back·of·the·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfold"·class="method·trait-impl"><span·clas[·...·truncated·by·diffoscope;·len:·325,·SHA:·7ffdb06a8ab3810207a1c974783822231eaf1d82fd94bcf810dd7b3181149b7b·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold"·class="fn">rfold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where14 elements·starting·from·the·back·of·the·iterator.·<a·href="../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfold"·class="method·trait-impl"><span·class="rightside"><span·class="[·...·truncated·by·diffoscope;·len:·244,·SHA:·6c4fe3f75fed1f00ec73ae6acd6efe929fb891f07f47293eec1013d32fc0fbe1·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold"·class="fn">rfold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where
15 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,15 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
16 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·reduces·the·iterator’s·elements·to·a·single,16 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·reduces·the·iterator’s·elements·to·a·single,
17 final·value,·starting·from·the·back.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfind"·class="method·trait-impl"><span·class="r[·...·truncated·by·diffoscope;·len:·665,·SHA:·fde89feb7c0e70eefa34d688476ca36a70115bec8150dbf9b1a3c359f72dd28d·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where17 final·value,·starting·from·the·back.·<a·href="../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfind"·class="method·trait-impl"><span·class="rightside"><span·class="sinc[·...·truncated·by·diffoscope;·len:·530,·SHA:·75a595bf6f9813abee32ae86d68f5de961884ee60e7080e18fb9c73b8e22c5f0·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
18 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,18 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
19 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·966,·SHA:·33f3c66f35b9336b8cf1bd76a7becc20e38fa05c643db0be2b443fc0935113fe·...·]/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::Iterator">Iterator</a>·for·<a·class="struct"·href="struct.Matches.html"·title="struct·alloc::str::Matches">Matches</a>&lt;'a,·P&gt;<div·class="where">where19 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·804,·SHA:·f92e24b38e25455cadb8bca2e387ec3bc816064b9ef63e778d500da720e4eee0·...·]/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::Iterator">Iterator</a>·for·<a·class="struct"·href="struct.Matches.html"·title="struct·alloc::str::Matches">Matches</a>&lt;'a,·P&gt;<div·class="where">where
20 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Item"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/str/iter.rs.html#1138-1154">Source</a><a·href="#associatedtype.Item"·class="anchor">§</a><h4·class="code-header">type·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associat[·...·truncated·by·diffoscope;·len:·1661,·SHA:·1455216d02227c6d5d1a571e2b5495a17a274bad1f3825d4e0013979ae77e310·...·]/core/primitive.usize.html">usize</a>&gt;(20 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Item"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/core/str/iter.rs.html#1138-1154">Source</a><a·href="#associatedtype.Item"·class="anchor">§</a><h4·class="code-header">type·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·class="associatedtype">Item</a>·=·&amp;'a[·...·truncated·by·diffoscope;·len:·1364,·SHA:·7a6ca9788a1f4b2c99a5bef9e7c04c7383b386a866449ef46ea4617f8431e5a1·...·]/core/primitive.usize.html">usize</a>&gt;(
21 ····&amp;mut·self,21 ····&amp;mut·self,
22 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·4f557a9b49151e0be8c52ffd68f1def4469c08164239dc8bef8df2040551c5ef·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where22 )·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">It[·...·truncated·by·diffoscope;·len:·246,·SHA:·baf6c8e6f3d5dbac69324111240b1587dbb858d42149cae1ee895a165289ff4f·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where
23 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·2082,·SHA:·a83a032e1004fe4c3d3b7e56fd0b204c97eb443397e8e7afb9497dc56a12f3d1·...·]/core/primitive.usize.html">usize</a><div·class="where">where23 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_next_ch[·...·truncated·by·diffoscope;·len:·1785,·SHA:·2b1767ea9838432dd0ad4b6ebbd7624f7df5deec47bd49c03bb84f50f19d65ab·...·]/core/primitive.usize.html">usize</a><div·class="where">where
24 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·counting·the·number·of·iterations·and·returning·it.·<a·href="https://doc.[·...·truncated·by·diffoscope;·len:·837,·SHA:·47e25b6f9687bcc1d1fcdf9842fb085e6aba767d70531028f948636b80563dfc·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where24 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·counting·the·number·of·iterations·and·returning·it.·<a·href="../../core/iter/traits/iterator/trait.I[·...·truncated·by·diffoscope;·len:·675,·SHA:·1ce62884794ba87e19a0c96720594ee19d36bf34d9a84160028eeff78b648fa9·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
25 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·returning·the·last·element.·<a·href="https://doc.rust-lang.org/1.84.0/cor[·...·truncated·by·diffoscope;·len:·3504,·SHA:·ec43d0f6d8d2a1e0fb7a684c382b9934abe1250844e53cce08bdfc6017ecb276·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where25 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·returning·the·last·element.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.last[·...·truncated·by·diffoscope;·len:·2964,·SHA:·db62f7c0fcc4ed24f8d8d5c90b4eb970e1ba2f576e1c200c74164f961b4de28e·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where
26 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by26 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by
27 the·given·amount·at·each·iteration.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><sp[·...·truncated·by·diffoscope;·len:·842,·SHA:·945c4509a8daf2f8fbccc5c6e5089e225955911e03a3e411f047f96d52d16862·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where27 the·given·amount·at·each·iteration.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Sta[·...·truncated·by·diffoscope;·len:·680,·SHA:·77241b5118fcbc984cb791fa9f75077307e18056b66492741335faf440cbdabc·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
28 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,28 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
29 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·3b5ce32f9d564c3aa7cf2adc7130e674758d0c0f4f1275b4c3b46a74aa802cb3·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where29 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·1113,·SHA:·ccf22d19f49a25daffdcc6d9226d5107457a8bfd16beccfeff5020d151bdb8bb·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
30 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,30 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
31 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·[·...·truncated·by·diffoscope;·len:·868,·SHA:·abdbf27ccc84063c7040d8fa3da9d0bda5ee310a470ef576e15554aee4bd5d21·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where31 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·of·pairs.·<a·href="../../co[·...·truncated·by·diffoscope;·len:·706,·SHA:·f32c568f049122021445a983654582d97ac74064a3e99c3361b348bd7708c1b2·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where
32 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,32 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
33 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent33 ····Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent
34 items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="sr[·...·truncated·by·diffoscope;·len:·427,·SHA:·6e82ad4aad49c2165d869fe30d20a968580a973cdb3a7f4c77f49e16dd59393e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where34 items·of·the·original·iterator.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="src·rightside"·href="../../sr[·...·truncated·by·diffoscope;·len:·319,·SHA:·8babc469a22056fc5a02684b52f9f93ba9c27a3dd2e8443ddc060797054e211e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where
35 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,35 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
36 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>36 ····G:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>
37 between·adjacent·items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightsi[·...·truncated·by·diffoscope;·len:·471,·SHA:·ed10488b7b2ccc3e4cc84a9a57a9695a74c1c964962e8d753cbace12f3318a66·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where37 between·adjacent·items·of·the·original·iterator.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·tit[·...·truncated·by·diffoscope;·len:·363,·SHA:·09aee21fa4172b743a714e2cb5915129575ce0224df49c7343dec38f43b7ecfd·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where
38 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,38 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
39 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each39 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each
40 element.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><spa[·...·truncated·by·diffoscope;·len:·306,·SHA:·61c87c39b177830189b0e4c036d97c40d8b9649d76432c90afb88de59498e8b2·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where40 element.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stab[·...·truncated·by·diffoscope;·len:·225,·SHA:·a0f2490a1a5fd6b44e0ab01199cbbbd6e5463251405d11eaf6798c9b50bbd683·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where
41 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,41 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
42 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·a65da32c5f5ef8335cb607d3b4ab3f8a25877bc2c2e8b44ca9d575caecd5c8a5·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where42 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·754,·SHA:·421e55a5747cab3df1dad40b747b4633f241bdc13a1546bb19b1370788dea27d·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where
43 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,43 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
44 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·6d69c85c69fa789be551ea42d95c33c237d12a04ef157f9ddaaead1177f7771e·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element44 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·59,·SHA:·76969e34965f1923de668a65a9f5c33f73266468c9b96650bcc5fd498e606a6b·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element
45 should·be·yielded.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·489,·SHA:·9bdc636899f4e4e5a26a3a21c9603f72b3fb972865d2f459c38b7e2ac8fed7f1·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where45 should·be·yielded.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·cf812944678f6755720896cf32b330946303afe59f1b1c11adeb6a7f33454c8d·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where
46 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,46 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
47 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·46dbf841c7aecd3f06bd4c944af21650faeac98c46c515dcfe643302618b1ecd·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where47 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·863,·SHA:·c2bab87fa2a70713bd2d34b3dcae8f4ff2341917103b43a1dd505317f15d6cff·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where
48 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as48 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as
49 the·next·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside[·...·truncated·by·diffoscope;·len:·468,·SHA:·52f7ff7f264284c3acc4429ca34d057ded9afa2e3d9d6e07571e252db9a48977·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where49 the·next·value.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title[·...·truncated·by·diffoscope;·len:·360,·SHA:·688416dc1aaaa0be069177270ba9e74b3d1b92521285a109dc7ba86b58c1f22a·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where
50 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·c0180fefce4346b0b4089e5c642521d7716108241c0ce6ec3e910c7a2c7364b4·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods50 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="../../core/iter/adapters/peekable/struct.Peekable.html#method.peek"·title="m[·...·truncated·by·diffoscope;·len:·94,·SHA:·78aeab33f83c647dfe680c1050358c95977e3af17eabde4a04880721ea1a619d·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods
51 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See51 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See
52 their·documentation·for·more·information.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightsid[·...·truncated·by·diffoscope;·len:·498,·SHA:·e4a68861585faec6a5032b3b69d6dfb0f2799b5f387a527d9a1365571ed02069·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where52 their·documentation·for·more·information.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightside"><span·class="since"·titl[·...·truncated·by·diffoscope;·len:·390,·SHA:·5da622ae0e4d00b47239007520070e22568156d6c5b1662db8b80b465934b18c·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where
53 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,53 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
54 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·93281c1f6402743fd61110c11cf676f0f67eddceda801b4eb35e5fe9f85870fd·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where54 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·1018,·SHA:·732548acff5239e9a7b904f32790c90ab3b63522635334128f35e01d37ceaeb6·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where
55 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,55 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
56 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·f1cdbb1ec64f98fabbe1d89c88b03824310926cd7eaa160953ce2452fc3abb77·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where56 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·869,·SHA:·8ec7e525848424d5104dbdd10928d17cfee4e5aee63cdda7ecdbe323b30b59d3·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where
57 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,57 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
58 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·f94a0b2c1396b13b89aca7830197ebf19e2c0e5ba536a9cc25b325a481799510·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where58 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·947,·SHA:·fdd074315a0bfb226f815b1b6ea114c7367886338ffffff233d7f6fc3108769a·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where
59 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="https://doc.rust-lang[·...·truncated·by·diffoscope;·len:·783,·SHA:·c14217b89e3292a50a09192a8857485891fc769f861e1d1fc4322d04295c86ef·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where59 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="../../core/iter/traits/iterator/trait.Iterator.h[·...·truncated·by·diffoscope;·len:·621,·SHA:·484df7f946e7f2f69c3acad8964421c0db8ac5bb40032d11bbd862e20e67704c·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where
60 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer60 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer
61 if·the·underlying·iterator·ends·sooner.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·c[·...·truncated·by·diffoscope;·len:·488,·SHA:·76f753d5a273a09a73127631acaa0ee947326a929f33be291018188793e1af56·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where61 if·the·underlying·iterator·ends·sooner.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·[·...·truncated·by·diffoscope;·len:·380,·SHA:·fa258c7e0b5d583304a69e2d4e19f3d4cc9a9ed830bdf3796eaa0968bdf590b4·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where
62 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,62 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
63 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·07d303586c8ad4e0082d5b44bff8eeda03cdb8f4bdbe46489f9232bca5a43ec6·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but63 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterat[·...·truncated·by·diffoscope;·len:·314,·SHA:·299331ff47adaff3ebc292c53557ad34da957aef932f87ec0444c7f856820410·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but
64 unlike·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·2b20882d9583cee50e0c8b3cf362b27ce0d524db387d4aa4093d622b9370dada·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where64 unlike·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.scan">Read·more[·...·truncated·by·diffoscope;·len:·555,·SHA:·77279e392f259f6d4859f5a7747ee4b4d5315f3af0ac3baebf1d53be3461b312·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where
65 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,65 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
66 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,66 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
67 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·933,·SHA:·4af94b75ba5c1e03d2d70590d2fd0706f13b3080fbff0f5b98e7b109048c403d·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where67 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·771,·SHA:·a1a50c8ca4c13151c7b22ce05c74c449231e1ffe44225beee67ff212fc1d3859·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where
68 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,68 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
69 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.I[·...·truncated·by·diffoscope;·len:·968,·SHA:·e5572ed2f3bdf5970d038da608f2f592d945541207c483c257fe5789efba168a·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where69 ····Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::col[·...·truncated·by·diffoscope;·len:·779,·SHA:·a4e524bd8aa8a1e0a66409d1b462b88093ab51a1f901ff1a788d7ee63d597f4c·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where
70 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,70 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
71 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·3013c0e49b0dade37f8ca096eccc5ceeb03fc79b9d320a4c92486d23b88d1009·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over71 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·54,·SHA:·6acee514e4d8df8979b4bba687b7e0d5dbb0ea4f98a7019e2fb03f3a8058df0f·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over
72 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,72 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="../../core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,
73 the·windows·during·mapping·overlap·as·well.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside">[·...·truncated·by·diffoscope;·len:·454,·SHA:·040991f3914479bcc92615de2b81df7363656323622e5aadc964e1a61917d23e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where73 the·windows·during·mapping·overlap·as·well.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="[·...·truncated·by·diffoscope;·len:·346,·SHA:·b1244a5f92e0573c29e04e883cf8212ba2586013b3687af07b63c29d2e611530·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where
74 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="https://doc.rust-lang.org/1.84.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·0e0294a45242d5ce9a3ab8f95d6d410756415291d92baa7d12283ef1b3ecc3a0·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where74 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="../../core/option/enum.Option.html#variant.None"·title="variant·cor[·...·truncated·by·diffoscope;·len:·679,·SHA:·ec753d6ecf7b9fe81cb270d78e45e053f2702fff74c7a63c2ab8da22b97fea86·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where
75 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,75 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
76 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·a8b562f71802a421f4745f7d1fadf4f70d98030c829e70f27b692e7915267027·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where76 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·635,·SHA:·ee3a5bcc3544c3f17985966634fef69b1708d641ddb7e62aaac76933935c5ef7·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where
77 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="https://doc.rust-lang.org/1.84.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·b3db7d84f203bbc139b1c52912705d19c664dac762898205fce452c9dc3a5318·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where77 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.by_ref">[·...·truncated·by·diffoscope;·len:·415,·SHA:·7e0e075470d2db380bcf0838446659654c982aa2ca7831ed7d0317877855be2a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where
78 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,78 ····B:·<a·class="trait"·href="../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
79 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·431,·SHA:·a705a23f6d810357e7dcac670743884665ffcccfb9b780d0aa03720be8ca5625·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(79 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.collect">Read[·...·truncated·by·diffoscope;·len:·323,·SHA:·80e0dde3814a6e7cf4e30949627abc841ab4e98e2a920efb248777e22708682d·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(
80 ····&amp;mut·self,80 ····&amp;mut·self,
81 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.h[·...·truncated·by·diffoscope;·len:·479,·SHA:·fa749442d890055f86ceb34f411c84fd7ea08302b336d786d1ca36fe5868b020·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where81 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&g[·...·truncated·by·diffoscope;·len:·344,·SHA:·c06c6401df0a7150633e94cc973521da42e09819b07be80ba18d6acb696860a9·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
82 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,82 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
83 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>,83 ····Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>,
84 ····&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.h[·...·truncated·by·diffoscope;·len:·300,·SHA:·3bff089180bac38df7f42b87556fae7641185b89a949c284f53e3ac718a6decb·...·]/core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;B&gt;,84 ····&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&g[·...·truncated·by·diffoscope;·len:·192,·SHA:·039ceb6ce31fc6b1871e3e366efbd0f164f4a6cc1bc25554bba598b0ee820cca·...·]/core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;B&gt;,
85 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/itera[·...·truncated·by·diffoscope;·len:·323,·SHA:·b5c51f161dc9d77fd81d1fd23cc71fbf42ac00f3168cf9e41ebaaa2b6eb25363·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if85 ····B:·<a·class="trait"·href="../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="ty[·...·truncated·by·diffoscope;·len:·215,·SHA:·ddb8fbd12147eecef1697edd4c63187cc514ab4b851290335adfcccc3fa429ba·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if
86 a·failure·is·encountered.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·ri[·...·truncated·by·diffoscope;·len:·521,·SHA:·6a54376815dab985ec8cc35604d035e98e3003b1563c9b41e70966084505542b·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where86 a·failure·is·encountered.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/co[·...·truncated·by·diffoscope;·len:·386,·SHA:·d46a776c329de4f757930edda252586c2cdd85c6956b7b2f68448da33ee0625e·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
87 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,87 ····E:·<a·class="trait"·href="../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
88 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·975,·SHA:·94f7f970236ba59ba5f1415764a0e3ab2f3093c6b79e76c25c797ac24a3c4d09·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where88 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_collect[·...·truncated·by·diffoscope;·len:·840,·SHA:·1ee6fbe4deb3d959e9ade58fb7ed3efa79d09721ed02fbb5f5f82aae6aa1425d·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
89 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,89 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
90 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·b480ec650ba000fe7cb67df58fc0351299638ee3e8f00db18f74ca24d69f9894·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,90 ····B:·<a·class="trait"·href="../../core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtyp[·...·truncated·by·diffoscope;·len:·14,·SHA:·4105980ca4887a52797067761af25a11e3de6069cd8d7c8ce82cd885bb798fe8·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
91 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·fdf5a1845f070855ba2cfd0c8c85460ea5cb646c4d3b42a8431bf21489c73701·...·]/core/primitive.usize.html">usize</a><div·class="where">where91 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·806,·SHA:·4d554b733db12e71a31ec2477a31408041941b0e2b0dc910904ecf2fced9f65b·...·]/core/primitive.usize.html">usize</a><div·class="where">where
92 ····T:·'a,92 ····T:·'a,
93 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·1fc250e258e9e42e4fa3e22f86ecd57057e9ff23e47af1aec778076a7a891134·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,93 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIter[·...·truncated·by·diffoscope;·len:·51,·SHA:·c9be73bbed9d11ecac2a179f480a640f51d6255f26712667ffdabc72c1fc7fb0·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,
94 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·5846407374f20f525a4a0663ad4488141eafe64513ef82581dc5df5c2d200745·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_partition_in_place</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62543">#62543</a>)</span></div></span><div·class='docblock'>Reorders·the·elements·of·this·iterator·<em>in-place</em>·according·to·the·given·predicate,94 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="../../core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_partition_in_place</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62543">#62543</a>)</span></div></span><div·class='docblock'>Reorders·the·elements·of·this·iterator·<em>in-place</em>·according·to·the·given·predicate,
95 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.95 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.
96 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.partition_in_place">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_partitioned"·class="method·trait-impl"><a·clas[·...·truncated·by·diffoscope;·len:·431,·SHA:·4aa7d028146c72d45794efc19a376d4bee3b75eda61ff46d969e440b3dbfa1b0·...·]/core/primitive.bool.html">bool</a><div·class="where">where96 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.partition_in_place">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_partitioned"·class="method·trait-impl"><a·class="src·rightside"·href="../[·...·truncated·by·diffoscope;·len:·323,·SHA:·bfc44418fa28079222aab80e2baccdaffb2d067bbe5d1b5162202d268ad628d7·...·]/core/primitive.bool.html">bool</a><div·class="where">where
97 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,97 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
98 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·fcd03e71f79faad6d9b9a12045d59f4dfabc78e5aefebcabc9c1a5be45e31125·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,98 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·54,·SHA:·d5ac304cc26edf57442227b641dd21c427d0f9cb322b79986f5b15fc49f867b0·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,
99 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><span·class="righ[·...·truncated·by·diffoscope;·len:·319,·SHA:·9b9df13f2f4e5b4dde3908515766e1a474fa30bcb7edc98c15665a016e677c2a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where99 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><span·class="rightside"><span·class="since"·[·...·truncated·by·diffoscope;·len:·238,·SHA:·af6ab768457e0afa1532b80c4296ae18061dac4c765922889b13eead3e5492db·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where
100 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,100 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
101 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,101 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
102 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns102 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns
103 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rights[·...·truncated·by·diffoscope;·len:·321,·SHA:·619fd774190944998148325de99aaa75de66ce4b7e26579fd342c564923a5652·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where103 successfully,·producing·a·single,·final·value.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"·ti[·...·truncated·by·diffoscope;·len:·240,·SHA:·125e84deea747ccbe139725d028362287beed6a89ab9da3a3aabd7df537abc59·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where
104 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,104 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
105 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,105 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
106 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the106 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="../../core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the
107 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·307,·SHA:·5975144fd8566efa93ad1ccec09297e280924b7372e08681d2103702124e2c52·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where107 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title=[·...·truncated·by·diffoscope;·len:·226,·SHA:·a7510e9271e68887d9e2681c6bc28312cec9ac38883128845f52742935a160a9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where
108 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,108 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
109 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,109 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,
110 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span[·...·truncated·by·diffoscope;·len:·619,·SHA:·8813f54846438870310d5f5dfabd2335a9dbf51e9da2e4cd681bcb6077d39628·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where110 returning·the·final·result.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stabl[·...·truncated·by·diffoscope;·len:·484,·SHA:·5f42e8d5ff08f4c76870e6cb9165e054f9a0d99051d9886ccd43d5c8a91e1fbc·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
111 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,111 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
112 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·084691f7fc4e7f4da7db385127d0ce8d2d52f6740757129a65910c4db0dc180d·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing112 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·244,·SHA:·f09ac7e818239538c3f3208cb5c76076c24a0153797eb762821d5bf2a382d83b·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing
113 operation.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·217,·SHA:·447ae00256be3de069c602a6c04889808c883eae6fa349d023f53bdd5570ecae·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(113 operation.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/iter[·...·truncated·by·diffoscope;·len:·136,·SHA:·97e3ee132585582ec7077e3bbd86406d8a2dcfc97dce7fd52b49af3ec1b58622·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(
114 ····&amp;mut·self,114 ····&amp;mut·self,
115 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R, 
116 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.T[·...·truncated·by·diffoscope;·len:·950,·SHA:·817376e71f7a0d170bfbd4b7264c15d324f49c65106c49349d11a077842aa533·...·]115 ····f:·impl·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core:[·...·truncated·by·diffoscope;·len:·238,·SHA:·a52edc1a1ce1db5dd6e620dbfe5acb58fdc6d84f2320cef02845988aa54e5c55·...·]
 116 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;&gt;&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
117 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,117 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
118 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,118 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
119 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·764ea8f08626b05426a76738d54ebb2d640042494d76cba8c20d868bfdc07a73·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the119 ····&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>:·<a[·...·truncated·by·diffoscope;·len:·277,·SHA:·0dd064909226a9691486376740de1e17aa133a7ae2f635bee3feaa9b19d7b580·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the
120 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><span·class="rightside"><s[·...·truncated·by·diffoscope;·len:·476,·SHA:·aef721c14147dea2fbec70dcfa76916b3f1273bed8304f4c9db310ca23d1e4b1·...·]/core/primitive.bool.html">bool</a><div·class="where">where120 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="St[·...·truncated·by·diffoscope;·len:·368,·SHA:·6dbfbc90b7cfda9017074212ce0beeb560c8f9ba918ba7b00292e34daa531cc2·...·]/core/primitive.bool.html">bool</a><div·class="where">where
121 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,121 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
122 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·7c48e62c73a40a5cb5ebbf4a22cd789b342a88ad3d855022191f2bae33c736c6·...·]/core/primitive.bool.html">bool</a><div·class="where">where122 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·829,·SHA:·c413d95d1072acd820201f12ffb54d04a6c7f3b732f7de46115ba40b4eb1bd3f·...·]/core/primitive.bool.html">bool</a><div·class="where">where
123 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,123 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
124 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·673d69ce0c23e24b2546127c463e67cd2a4c0f7be792712e2b42e75427161b75·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where124 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·956,·SHA:·105c7ff05d33bc9219febe8c9633cf1c1a8d88c32e47e44793d403a428174c66·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
125 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,125 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
126 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·aa5078ff77f5638746395497f8ce92c1b684d342dea851990104d5e9981ab6b0·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where126 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·862,·SHA:·ab608da827ec12779180206da5bfe43676627c19288c1fe674060a00ba44a595·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where
Max diff block lines reached; 164408/351848 bytes (46.73%) of diff not shown.
74.6 KB
./usr/share/doc/rust-doc/html/alloc/str/struct.ParseBoolError.html
    
Offset 1, 16 lines modifiedOffset 1, 16 lines modified
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="An·error·returned·when·parsing·a·`bool`·using·`from_str`·fails"><title>ParseBoolError·in·alloc::str·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»      2025-01-07)»   (built»     from» a»source»  tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Parse<wbr>Bool<wbr>Error</a></h2><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-ParseBoolError"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-ParseBoolError"·title="Debug">Debug</a></li><li><a·href="#impl-Display-for-ParseBoolError"·title="Display">Display</a></li><li><a·href="#impl-Eq-for-ParseBoolError"·title="Eq">Eq</a></li><li><a·href="#impl-Error-for-ParseBoolError"·title="Error">Error</a></li><li><a·href="#impl-PartialEq-for-ParseBoolError"·title="PartialEq">PartialEq</a></li><li><a·href="#impl-StructuralPartialEq-for-ParseBoolError"·title="StructuralPartialEq">StructuralPartialEq</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-ParseBoolError"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-ParseBoolError"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-ParseBoolError"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-ParseBoolError"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-ParseBoolError"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-ParseBoolError"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-ToString-for-T"·title="ToString">ToString</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>str</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">alloc</a>::<wbr><a·href="index.html">str</a></span><h1>Struct·<span·class="struct">ParseBoolError</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/str/error.rs.html#140">Source</a>·</span></div><pre·class="rust·item-decl"><code><div·class="code-attribute">#[non_exhaustive]</div>pub·struct·ParseBoolError;</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>An·error·returned·when·parsing·a·<code>bool</code>·using·<a·href="trait.FromStr.html#tymethod.from_str"·title="associated·function·alloc::str::FromStr::from_str"><code>from_str</code></a>·fails</p>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="An·error·returned·when·parsing·a·`bool`·using·`from_str`·fails"><title>ParseBoolError·in·alloc::str·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»      2025-01-07)»   (built»     from» a»source»  tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Parse<wbr>Bool<wbr>Error</a></h2><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-ParseBoolError"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-ParseBoolError"·title="Debug">Debug</a></li><li><a·href="#impl-Display-for-ParseBoolError"·title="Display">Display</a></li><li><a·href="#impl-Eq-for-ParseBoolError"·title="Eq">Eq</a></li><li><a·href="#impl-Error-for-ParseBoolError"·title="Error">Error</a></li><li><a·href="#impl-PartialEq-for-ParseBoolError"·title="PartialEq">PartialEq</a></li><li><a·href="#impl-StructuralPartialEq-for-ParseBoolError"·title="StructuralPartialEq">StructuralPartialEq</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-ParseBoolError"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-ParseBoolError"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-ParseBoolError"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-ParseBoolError"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-ParseBoolError"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-ParseBoolError"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-ToString-for-T"·title="ToString">ToString</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>str</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">alloc</a>::<wbr><a·href="index.html">str</a></span><h1>Struct·<span·class="struct">ParseBoolError</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../src/core/str/error.rs.html#140">Source</a>·</span></div><pre·class="rust·item-decl"><code><div·class="code-attribute">#[non_exhaustive]</div>pub·struct·ParseBoolError;</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>An·error·returned·when·parsing·a·<code>bool</code>·using·<a·href="trait.FromStr.html#tymethod.from_str"·title="associated·function·alloc::str::FromStr::from_str"><code>from_str</code></a>·fails</p>
2 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-ParseBoolError"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/str/error.rs.html#137">Source</a></span><a·href="#impl-Clone-for-ParseBoolError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"[·...·truncated·by·diffoscope;·len:·11805,·SHA:·99c0fa9c7951a3902e403249bebca64cdb7ccde60e45ddac71ebf8ff088828ef·...·]/core/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>!=</code>.·The·default·implementation·is·almost·always·sufficient,2 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-ParseBoolError"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/str/error.rs.html#137">Source</a></span><a·href="#impl-Clone-for-ParseBoolError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·cla[·...·truncated·by·diffoscope;·len:·10617,·SHA:·21c56e862f78aa08fb6f38e4dbaccb15424cee3ab56c55db4bf9f08303d782d1·...·]/core/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>!=</code>.·The·default·implementation·is·almost·always·sufficient,
3 and·should·not·be·overridden·without·very·good·reason.</div></details></div></details><section·id="impl-Eq-for-ParseBoolError"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/str/error.rs.html#137">Source</a></span><a·href="#impl-Eq-for-ParseBoolError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.Eq.html"·title="[·...·truncated·by·diffoscope;·len:·4104,·SHA:·7757c6222efc32e9a919b88092fa78be3da9739f702bd7d2386d2f39e0bfb0db·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where3 and·should·not·be·overridden·without·very·good·reason.</div></details></div></details><section·id="impl-Eq-for-ParseBoolError"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/str/error.rs.html#137">Source</a></span><a·href="#impl-Eq-for-ParseBoolError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/cmp/trait.Eq.html"·title="trait·core::cmp::Eq">Eq</a>·for·<a·class="struct"·href[·...·truncated·by·diffoscope;·len:·3780,·SHA:·e8f718dbb523520a62ca2b64f49eeae642eff4e64dbe5a60f2abf8ae5fd567b1·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where
4 ····T:·'static·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method[·...·truncated·by·diffoscope;·len:·834,·SHA:·47dfc2aa0101a4103e2a94c1f971c559790d87a62d58631fd2bfed98e6616a34·...·]/src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where4 ····T:·'static·+·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·[·...·truncated·by·diffoscope;·len:·672,·SHA:·ace7a059971745d739c5abd9821e5d1d485cc233fd42150ceb251bdea1ce6bf7·...·]/src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where
5 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·[·...·truncated·by·diffoscope;·len:·737,·SHA:·9e65370662e77fc5c56c98c66a5dfda3c1d1244574dc8806ab91a8967514da78·...·]/src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.BorrowMut.html"·title="trait·alloc::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where5 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·r[·...·truncated·by·diffoscope;·len:·629,·SHA:·8e6f5d2e4a2830729c5d495459113ca6f54993696d7dc71c1f46e5691f5108ed·...·]/src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.BorrowMut.html"·title="trait·alloc::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where
6 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="met[·...·truncated·by·diffoscope;·len:·954,·SHA:·5ca69698d4bb8de1849b64ae87544dc0ec2bdd1a4d8dc75ba8d58b2c6c6a9ae6·...·]/core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where6 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="s[·...·truncated·by·diffoscope;·len:·819,·SHA:·3ca215d87d373be29774fff31d75c216034e4aa910e49de0e3fc5b88c46bc387·...·]/core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where
7 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="[·...·truncated·by·diffoscope;·len:·1883,·SHA:·e07301fb9e28f950d7450480a6b68014ffcdcc3be12b1adda27936cb1244377e·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>7 ····T:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·class[·...·truncated·by·diffoscope;·len:·1613,·SHA:·fde0dd5e9bb3fa078effcc98999e7fcc8b1aa390c8b7a3b6a3d8fd02f0c83e78·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>
8 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where8 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where
9 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="m[·...·truncated·by·diffoscope;·len:·237,·SHA:·98603c35860102b3af9b5cf27aeabf39e3c03236551986a6ec030817f108d919·...·]/core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>9 ····U:·<a·class="trait"·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class=[·...·truncated·by·diffoscope;·len:·156,·SHA:·79561c49c77b14346871935198fc061d00c9e84705db975b0451f5fb4f6af9a0·...·]/core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>
10 <p>That·is,·this·conversion·is·whatever·the·implementation·of10 <p>That·is,·this·conversion·is·whatever·the·implementation·of
11 <code><a·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>11 <code><a·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>
12 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#82-94">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where12 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#82-94">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where
13 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·t[·...·truncated·by·diffoscope;·len:·1350,·SHA:·06ff485c70db27d96df4529c9aabc3407488a0d8b3f238ea19fe87222f3c0e93·...·]/core/primitive.reference.html">&amp;mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToString-for-T"·class="impl"><a·class="src·rightside"·href="../../src/alloc/string.rs.html#2677-2691">Source</a><a·href="#impl-ToString-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../string/trait.ToString.html"·title="trait·alloc::string::ToString">ToString</a>·for·T<div·class="where">where13 ····T:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src·ri[·...·truncated·by·diffoscope;·len:·1296,·SHA:·88285bd52e5f5ad6b3e1b6d101339ab4047bdbd5b9d568c1e216b159cf17296e·...·]/core/primitive.reference.html">&amp;mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToString-for-T"·class="impl"><a·class="src·rightside"·href="../../src/alloc/string.rs.html#2677-2691">Source</a><a·href="#impl-ToString-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../string/trait.ToString.html"·title="trait·alloc::string::ToString">ToString</a>·for·T<div·class="where">where
14 ····T:·<a·class="trait"·href="../fmt/trait.Display.html"·title="trait·alloc::fmt::Display">Display</a>·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.to_string"·class="meth[·...·truncated·by·diffoscope;·len:·956,·SHA:·5fb3fa997a6fe164f1c04c1d4cb696121571b376241266dc87e8079ebdfed810·...·]/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where14 ····T:·<a·class="trait"·href="../fmt/trait.Display.html"·title="trait·alloc::fmt::Display">Display</a>·+·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.to_string"·class="method·trait-impl"><a·class="sr[·...·truncated·by·diffoscope;·len:·875,·SHA:·e58967f6ca4eee938a4135856f0af0adfcd5abe0b4e62c194e5c506c603bfcf1·...·]/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where
15 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="asso[·...·truncated·by·diffoscope;·len:·1973,·SHA:·db4b8407e8e20581ad139aef25a6221a11da0f5f18d6aa35aa33eb843f4e1b9f·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where15 ····U:·<a·class="trait"·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·c[·...·truncated·by·diffoscope;·len:·1676,·SHA:·4c73b68f4fb433b5f24fbcd660156381e5dd9f46425d075b558b9b6ca0705f88·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where
16 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·clas[·...·truncated·by·diffoscope;·len:·1578,·SHA:·998d5af10fd889567cd999d1306bfd16c91134d2238a3c172f1e7fa8ed138c18·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>16 ····U:·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-imp[·...·truncated·by·diffoscope;·len:·1308,·SHA:·6741e462a0e1b36010204263b7580305663bb27f362987d14303068592f9f358·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>
348 KB
./usr/share/doc/rust-doc/html/alloc/str/struct.RMatchIndices.html
Max HTML report size reached
346 KB
./usr/share/doc/rust-doc/html/alloc/str/struct.RMatches.html
Max HTML report size reached
351 KB
./usr/share/doc/rust-doc/html/alloc/str/struct.RSplit.html
Max HTML report size reached
332 KB
./usr/share/doc/rust-doc/html/alloc/str/struct.RSplitN.html
    
Offset 1, 249 lines modifiedOffset 1, 249 lines modified
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="Created·with·the·method·`rsplitn`."><title>RSplitN·in·alloc::str·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»    2025-01-07)» (built»   from»       a»      source»tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">RSplitN</a></h2><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.remainder"·title="remainder">remainder</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-RSplitN%3C'a,+P%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-RSplitN%3C'a,+P%3E"·title="Debug">Debug</a></li><li><a·href="#impl-FusedIterator-for-RSplitN%3C'a,+P%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-RSplitN%3C'a,+P%3E"·title="Iterator">Iterator</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-RSplitN%3C'a,+P%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-RSplitN%3C'a,+P%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-RSplitN%3C'a,+P%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-RSplitN%3C'a,+P%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-RSplitN%3C'a,+P%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-RSplitN%3C'a,+P%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>str</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">alloc</a>::<wbr><a·href="index.html">str</a></span><h1>Struct·<span·class="struct">RSplitN</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/str/iter.rs.html#980-996">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·RSplitN&lt;'a,·P&gt;(<span·class="comment">/*·private·fields·*/</span>)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="Created·with·the·method·`rsplitn`."><title>RSplitN·in·alloc::str·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»    2025-01-07)» (built»   from»       a»      source»tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">RSplitN</a></h2><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.remainder"·title="remainder">remainder</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-RSplitN%3C'a,+P%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-RSplitN%3C'a,+P%3E"·title="Debug">Debug</a></li><li><a·href="#impl-FusedIterator-for-RSplitN%3C'a,+P%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-RSplitN%3C'a,+P%3E"·title="Iterator">Iterator</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-RSplitN%3C'a,+P%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-RSplitN%3C'a,+P%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-RSplitN%3C'a,+P%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-RSplitN%3C'a,+P%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-RSplitN%3C'a,+P%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-RSplitN%3C'a,+P%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>str</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">alloc</a>::<wbr><a·href="index.html">str</a></span><h1>Struct·<span·class="struct">RSplitN</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../src/core/str/iter.rs.html#980-996">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·RSplitN&lt;'a,·P&gt;(<span·class="comment">/*·private·fields·*/</span>)
2 <span·class="where">where2 <span·class="where">where
3 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a></span>;</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Created·with·the·method·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.str.html#method.rsplitn"·title="method·str::rsplitn"><code>rsplitn</code></a>.</p>3 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a></span>;</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Created·with·the·method·<a·href="../../core/primitive.str.html#method.rsplitn"·title="method·str::rsplitn"><code>rsplitn</code></a>.</p>
4 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-RSplitN%3C'a,+P%3E"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/str/iter.rs.html#1021">Source</a><a·href="#impl-RSplitN%3C'a,+P%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·P&gt;·<a·class="struct"·href="struct.RSplitN.html"·title="struct·alloc::str::RSplitN">RSplitN</a>&lt;'a,·P&gt;<div·class="where">where4 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-RSplitN%3C'a,+P%3E"·class="impl"><a·class="src·rightside"·href="../../src/core/str/iter.rs.html#1021">Source</a><a·href="#impl-RSplitN%3C'a,+P%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·P&gt;·<a·class="struct"·href="struct.RSplitN.html"·title="struct·alloc::str::RSplitN">RSplitN</a>&lt;'a,·P&gt;<div·class="where">where
5 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.remainder"·class="method"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/str/iter.rs.html#1039">Source</a><h4·class="code-header">pub·fn·<a·href="#method.remainder"·class="fn">remainder</a>(&amp;self)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.h[·...·truncated·by·diffoscope;·len:·120,·SHA:·aca9a85427c8d394bc174e62981933dbca08536bdf71d85d186958e0e8aae8f7·...·]/core/primitive.str.html">str</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>str_split_remainder</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/77998">#77998</a>)</span></div></span></summary><div·class="docblock"><p>Returns·remainder·of·the·split·string.</p>5 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.remainder"·class="method"><a·class="src·rightside"·href="../../src/core/str/iter.rs.html#1039">Source</a><h4·class="code-header">pub·fn·<a·href="#method.remainder"·class="fn">remainder</a>(&amp;self)·-&gt;·<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;&[·...·truncated·by·diffoscope;·len:·39,·SHA:·41bc7c8805f528ad91e84bb44389035feda1ffcf00c9068bb255ec8aab508c79·...·]/core/primitive.str.html">str</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>str_split_remainder</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/77998">#77998</a>)</span></div></span></summary><div·class="docblock"><p>Returns·remainder·of·the·split·string.</p>
6 <p>If·the·iterator·is·empty,·returns·<code>None</code>.</p>6 <p>If·the·iterator·is·empty,·returns·<code>None</code>.</p>
7 <h5·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h5>7 <h5·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h5>
8 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(str_split_remainder)]8 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(str_split_remainder)]
9 </span><span·class="kw">let·</span><span·class="kw-2">mut·</span>split·=·<span·class="string">"Mary·had·a·little·lamb"</span>.rsplitn(<span·class="number">3</span>,·<span·class="string">'·'</span>);9 </span><span·class="kw">let·</span><span·class="kw-2">mut·</span>split·=·<span·class="string">"Mary·had·a·little·lamb"</span>.rsplitn(<span·class="number">3</span>,·<span·class="string">'·'</span>);
10 <span·class="macro">assert_eq!</span>(split.remainder(),·<span·class="prelude-val">Some</span>(<span·class="string">"Mary·had·a·little·lamb"</span>));10 <span·class="macro">assert_eq!</span>(split.remainder(),·<span·class="prelude-val">Some</span>(<span·class="string">"Mary·had·a·little·lamb"</span>));
11 split.next();11 split.next();
12 <span·class="macro">assert_eq!</span>(split.remainder(),·<span·class="prelude-val">Some</span>(<span·class="string">"Mary·had·a·little"</span>));12 <span·class="macro">assert_eq!</span>(split.remainder(),·<span·class="prelude-val">Some</span>(<span·class="string">"Mary·had·a·little"</span>));
13 split.by_ref().for_each(drop);13 split.by_ref().for_each(drop);
14 <span·class="macro">assert_eq!</span>(split.remainder(),·<span·class="prelude-val">None</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Bfeature(str_split_remainder)%5D%0Afn+main()+%7B%0A++++let+mut+split+=+%22Mary+had+a+little+lamb%22.rsplitn(3,+'+');%0A++++assert_eq!(split.remainder(),+Some(%22Mary+had+a+little+lamb%22));%0A++++split.next();%0A++++assert_eq!(split.remainder(),+Some(%22Mary+had+a+little%22));%0A++++split.by_ref().for_each(drop);%0A++++assert_eq!(split.remainder(),+None);%0A%7D&amp;version=nightly&amp;edition=2021"></a></div>14 <span·class="macro">assert_eq!</span>(split.remainder(),·<span·class="prelude-val">None</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Bfeature(str_split_remainder)%5D%0Afn+main()+%7B%0A++++let+mut+split+=+%22Mary+had+a+little+lamb%22.rsplitn(3,+'+');%0A++++assert_eq!(split.remainder(),+Some(%22Mary+had+a+little+lamb%22));%0A++++split.next();%0A++++assert_eq!(split.remainder(),+Some(%22Mary+had+a+little%22));%0A++++split.by_ref().for_each(drop);%0A++++assert_eq!(split.remainder(),+None);%0A%7D&amp;version=nightly&amp;edition=2021"></a></div>
15 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-RSplitN%3C'a,+P%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/str/iter.rs.html#980-996">Source</a></span><a·href="#impl-Clone-for-RSplitN%3C'a,+P%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·P&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struct"·href="struct.RSplitN.html"·title="struct·alloc::str::RSplitN">RSplitN</a>&lt;'a,·P&gt;<div·class="where">where15 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-RSplitN%3C'a,+P%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/str/iter.rs.html#980-996">Source</a></span><a·href="#impl-Clone-for-RSplitN%3C'a,+P%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·P&gt;·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struct"·href="struct.RSplitN.html"·title="struct·alloc::str::RSplitN">RSplitN</a>&lt;'a,·P&gt;<div·class="where">where
16 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>,16 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>,
17 ····&lt;P·as·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&gt;::<a·class="associatedtype"·href="pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</a>&lt;'a&gt;:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone"·class="method·tra[·...·truncated·by·diffoscope;·len:·1720,·SHA:·c1291e0753fadf47e46619279a272f58fc0051d9178e2974063cc652db048905·...·]/src/core/str/iter.rs.html#980-996">Source</a></span><a·href="#impl-Debug-for-RSplitN%3C'a,+P%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·P&gt;·<a·class="trait"·href="../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.RSplitN.html"·title="struct·alloc::str::RSplitN">RSplitN</a>&lt;'a,·P&gt;<div·class="where">where17 ····&lt;P·as·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&gt;::<a·class="associatedtype"·href="pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</a>&lt;'a&gt;:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone"·class="method·trait-impl"><a·class="src·righ[·...·truncated·by·diffoscope;·len:·1504,·SHA:·f67e500247bb3e7197a04eaceef1be226f76bcbd4a76a3ea3ef18ef95de3e8d6·...·]/src/core/str/iter.rs.html#980-996">Source</a></span><a·href="#impl-Debug-for-RSplitN%3C'a,+P%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·P&gt;·<a·class="trait"·href="../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.RSplitN.html"·title="struct·alloc::str::RSplitN">RSplitN</a>&lt;'a,·P&gt;<div·class="where">where
18 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>,18 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>,
19 ····&lt;P·as·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&gt;::<a·class="associatedtype"·href="pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</a>&lt;'a&gt;:·<a·class="trait"·href="../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/str/iter.rs.html#980-996">Source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·hr[·...·truncated·by·diffoscope;·len:·1101,·SHA:·7806b8e9cd4683ca9762260b37ceb5d0b88e1976691e9ee14080cd8ca7d30087·...·]/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::Iterator">Iterator</a>·for·<a·class="struct"·href="struct.RSplitN.html"·title="struct·alloc::str::RSplitN">RSplitN</a>&lt;'a,·P&gt;<div·class="where">where19 ····&lt;P·as·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&gt;::<a·class="associatedtype"·href="pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</a>&lt;'a&gt;:·<a·class="trait"·href="../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/str/iter.rs.html#980-996">Source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="../fmt/struct.Formatter[·...·truncated·by·diffoscope;·len:·966,·SHA:·e720f44f6c2be8ecaa36d191876313a162bf1305ced04b0be2f4c8270743f609·...·]/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::Iterator">Iterator</a>·for·<a·class="struct"·href="struct.RSplitN.html"·title="struct·alloc::str::RSplitN">RSplitN</a>&lt;'a,·P&gt;<div·class="where">where
20 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>,20 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>,
21 ····&lt;P·as·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&gt;::<a·class="associatedtype"·href="pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</a>&lt;'a&gt;:·<a·class="trait"·href="pattern/trait.ReverseSearcher.html"·title="trait·alloc::str::pattern::ReverseSearcher">ReverseSearcher</a>&lt;'a&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Item"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/str/iter.rs.html#980-996">Source</a><a·href="#associatedtype.Item"·class="anchor">§</a><h4·class="code-header">type·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associated[·...·truncated·by·diffoscope;·len:·1657,·SHA:·5ac0dba02f3797c75d2207658041a1e3d48daca85c5e7598af3da315a6e05678·...·]/core/primitive.usize.html">usize</a>&gt;(21 ····&lt;P·as·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&gt;::<a·class="associatedtype"·href="pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</a>&lt;'a&gt;:·<a·class="trait"·href="pattern/trait.ReverseSearcher.html"·title="trait·alloc::str::pattern::ReverseSearcher">ReverseSearcher</a>&lt;'a&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Item"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/core/str/iter.rs.html#980-996">Source</a><a·href="#associatedtype.Item"·class="anchor">§</a><h4·class="code-header">type·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·class="associatedtype">Item</a>·=·&amp;'a·<[·...·truncated·by·diffoscope;·len:·1360,·SHA:·d7ee89c3e8116b71236da9b085a90e76a1dbfd26774a88434bf993c0363e1c2e·...·]/core/primitive.usize.html">usize</a>&gt;(
22 ····&amp;mut·self,22 ····&amp;mut·self,
23 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·4f557a9b49151e0be8c52ffd68f1def4469c08164239dc8bef8df2040551c5ef·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where23 )·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">It[·...·truncated·by·diffoscope;·len:·246,·SHA:·baf6c8e6f3d5dbac69324111240b1587dbb858d42149cae1ee895a165289ff4f·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where
24 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·2082,·SHA:·a83a032e1004fe4c3d3b7e56fd0b204c97eb443397e8e7afb9497dc56a12f3d1·...·]/core/primitive.usize.html">usize</a><div·class="where">where24 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_next_ch[·...·truncated·by·diffoscope;·len:·1785,·SHA:·2b1767ea9838432dd0ad4b6ebbd7624f7df5deec47bd49c03bb84f50f19d65ab·...·]/core/primitive.usize.html">usize</a><div·class="where">where
25 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·counting·the·number·of·iterations·and·returning·it.·<a·href="https://doc.[·...·truncated·by·diffoscope;·len:·837,·SHA:·47e25b6f9687bcc1d1fcdf9842fb085e6aba767d70531028f948636b80563dfc·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where25 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·counting·the·number·of·iterations·and·returning·it.·<a·href="../../core/iter/traits/iterator/trait.I[·...·truncated·by·diffoscope;·len:·675,·SHA:·1ce62884794ba87e19a0c96720594ee19d36bf34d9a84160028eeff78b648fa9·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
26 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·returning·the·last·element.·<a·href="https://doc.rust-lang.org/1.84.0/cor[·...·truncated·by·diffoscope;·len:·3504,·SHA:·ec43d0f6d8d2a1e0fb7a684c382b9934abe1250844e53cce08bdfc6017ecb276·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where26 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·returning·the·last·element.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.last[·...·truncated·by·diffoscope;·len:·2964,·SHA:·db62f7c0fcc4ed24f8d8d5c90b4eb970e1ba2f576e1c200c74164f961b4de28e·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where
27 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by27 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by
28 the·given·amount·at·each·iteration.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><sp[·...·truncated·by·diffoscope;·len:·842,·SHA:·945c4509a8daf2f8fbccc5c6e5089e225955911e03a3e411f047f96d52d16862·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where28 the·given·amount·at·each·iteration.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Sta[·...·truncated·by·diffoscope;·len:·680,·SHA:·77241b5118fcbc984cb791fa9f75077307e18056b66492741335faf440cbdabc·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
29 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,29 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
30 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·3b5ce32f9d564c3aa7cf2adc7130e674758d0c0f4f1275b4c3b46a74aa802cb3·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where30 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·1113,·SHA:·ccf22d19f49a25daffdcc6d9226d5107457a8bfd16beccfeff5020d151bdb8bb·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
31 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,31 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
32 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·[·...·truncated·by·diffoscope;·len:·868,·SHA:·abdbf27ccc84063c7040d8fa3da9d0bda5ee310a470ef576e15554aee4bd5d21·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where32 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·of·pairs.·<a·href="../../co[·...·truncated·by·diffoscope;·len:·706,·SHA:·f32c568f049122021445a983654582d97ac74064a3e99c3361b348bd7708c1b2·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where
33 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,33 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
34 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent34 ····Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent
35 items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="sr[·...·truncated·by·diffoscope;·len:·427,·SHA:·6e82ad4aad49c2165d869fe30d20a968580a973cdb3a7f4c77f49e16dd59393e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where35 items·of·the·original·iterator.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="src·rightside"·href="../../sr[·...·truncated·by·diffoscope;·len:·319,·SHA:·8babc469a22056fc5a02684b52f9f93ba9c27a3dd2e8443ddc060797054e211e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where
36 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,36 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
37 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>37 ····G:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>
38 between·adjacent·items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightsi[·...·truncated·by·diffoscope;·len:·471,·SHA:·ed10488b7b2ccc3e4cc84a9a57a9695a74c1c964962e8d753cbace12f3318a66·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where38 between·adjacent·items·of·the·original·iterator.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·tit[·...·truncated·by·diffoscope;·len:·363,·SHA:·09aee21fa4172b743a714e2cb5915129575ce0224df49c7343dec38f43b7ecfd·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where
39 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,39 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
40 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each40 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each
41 element.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><spa[·...·truncated·by·diffoscope;·len:·306,·SHA:·61c87c39b177830189b0e4c036d97c40d8b9649d76432c90afb88de59498e8b2·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where41 element.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stab[·...·truncated·by·diffoscope;·len:·225,·SHA:·a0f2490a1a5fd6b44e0ab01199cbbbd6e5463251405d11eaf6798c9b50bbd683·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where
42 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,42 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
43 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·a65da32c5f5ef8335cb607d3b4ab3f8a25877bc2c2e8b44ca9d575caecd5c8a5·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where43 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·754,·SHA:·421e55a5747cab3df1dad40b747b4633f241bdc13a1546bb19b1370788dea27d·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where
44 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,44 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
45 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·6d69c85c69fa789be551ea42d95c33c237d12a04ef157f9ddaaead1177f7771e·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element45 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·59,·SHA:·76969e34965f1923de668a65a9f5c33f73266468c9b96650bcc5fd498e606a6b·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element
46 should·be·yielded.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·489,·SHA:·9bdc636899f4e4e5a26a3a21c9603f72b3fb972865d2f459c38b7e2ac8fed7f1·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where46 should·be·yielded.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·cf812944678f6755720896cf32b330946303afe59f1b1c11adeb6a7f33454c8d·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where
47 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,47 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
48 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·46dbf841c7aecd3f06bd4c944af21650faeac98c46c515dcfe643302618b1ecd·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where48 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·863,·SHA:·c2bab87fa2a70713bd2d34b3dcae8f4ff2341917103b43a1dd505317f15d6cff·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where
49 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as49 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as
50 the·next·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside[·...·truncated·by·diffoscope;·len:·468,·SHA:·52f7ff7f264284c3acc4429ca34d057ded9afa2e3d9d6e07571e252db9a48977·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where50 the·next·value.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title[·...·truncated·by·diffoscope;·len:·360,·SHA:·688416dc1aaaa0be069177270ba9e74b3d1b92521285a109dc7ba86b58c1f22a·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where
51 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·c0180fefce4346b0b4089e5c642521d7716108241c0ce6ec3e910c7a2c7364b4·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods51 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="../../core/iter/adapters/peekable/struct.Peekable.html#method.peek"·title="m[·...·truncated·by·diffoscope;·len:·94,·SHA:·78aeab33f83c647dfe680c1050358c95977e3af17eabde4a04880721ea1a619d·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods
52 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See52 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See
53 their·documentation·for·more·information.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightsid[·...·truncated·by·diffoscope;·len:·498,·SHA:·e4a68861585faec6a5032b3b69d6dfb0f2799b5f387a527d9a1365571ed02069·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where53 their·documentation·for·more·information.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightside"><span·class="since"·titl[·...·truncated·by·diffoscope;·len:·390,·SHA:·5da622ae0e4d00b47239007520070e22568156d6c5b1662db8b80b465934b18c·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where
54 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,54 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
55 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·93281c1f6402743fd61110c11cf676f0f67eddceda801b4eb35e5fe9f85870fd·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where55 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·1018,·SHA:·732548acff5239e9a7b904f32790c90ab3b63522635334128f35e01d37ceaeb6·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where
56 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,56 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
57 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·f1cdbb1ec64f98fabbe1d89c88b03824310926cd7eaa160953ce2452fc3abb77·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where57 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·869,·SHA:·8ec7e525848424d5104dbdd10928d17cfee4e5aee63cdda7ecdbe323b30b59d3·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where
58 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,58 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
59 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·f94a0b2c1396b13b89aca7830197ebf19e2c0e5ba536a9cc25b325a481799510·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where59 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·947,·SHA:·fdd074315a0bfb226f815b1b6ea114c7367886338ffffff233d7f6fc3108769a·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where
60 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="https://doc.rust-lang[·...·truncated·by·diffoscope;·len:·783,·SHA:·c14217b89e3292a50a09192a8857485891fc769f861e1d1fc4322d04295c86ef·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where60 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="../../core/iter/traits/iterator/trait.Iterator.h[·...·truncated·by·diffoscope;·len:·621,·SHA:·484df7f946e7f2f69c3acad8964421c0db8ac5bb40032d11bbd862e20e67704c·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where
61 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer61 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer
62 if·the·underlying·iterator·ends·sooner.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·c[·...·truncated·by·diffoscope;·len:·488,·SHA:·76f753d5a273a09a73127631acaa0ee947326a929f33be291018188793e1af56·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where62 if·the·underlying·iterator·ends·sooner.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·[·...·truncated·by·diffoscope;·len:·380,·SHA:·fa258c7e0b5d583304a69e2d4e19f3d4cc9a9ed830bdf3796eaa0968bdf590b4·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where
63 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,63 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
64 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·07d303586c8ad4e0082d5b44bff8eeda03cdb8f4bdbe46489f9232bca5a43ec6·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but64 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterat[·...·truncated·by·diffoscope;·len:·314,·SHA:·299331ff47adaff3ebc292c53557ad34da957aef932f87ec0444c7f856820410·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but
65 unlike·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·2b20882d9583cee50e0c8b3cf362b27ce0d524db387d4aa4093d622b9370dada·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where65 unlike·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.scan">Read·more[·...·truncated·by·diffoscope;·len:·555,·SHA:·77279e392f259f6d4859f5a7747ee4b4d5315f3af0ac3baebf1d53be3461b312·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where
66 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,66 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
67 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,67 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
68 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·933,·SHA:·4af94b75ba5c1e03d2d70590d2fd0706f13b3080fbff0f5b98e7b109048c403d·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where68 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·771,·SHA:·a1a50c8ca4c13151c7b22ce05c74c449231e1ffe44225beee67ff212fc1d3859·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where
69 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,69 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
70 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.I[·...·truncated·by·diffoscope;·len:·968,·SHA:·e5572ed2f3bdf5970d038da608f2f592d945541207c483c257fe5789efba168a·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where70 ····Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::col[·...·truncated·by·diffoscope;·len:·779,·SHA:·a4e524bd8aa8a1e0a66409d1b462b88093ab51a1f901ff1a788d7ee63d597f4c·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where
71 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,71 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
72 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·3013c0e49b0dade37f8ca096eccc5ceeb03fc79b9d320a4c92486d23b88d1009·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over72 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·54,·SHA:·6acee514e4d8df8979b4bba687b7e0d5dbb0ea4f98a7019e2fb03f3a8058df0f·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over
73 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,73 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="../../core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,
74 the·windows·during·mapping·overlap·as·well.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside">[·...·truncated·by·diffoscope;·len:·454,·SHA:·040991f3914479bcc92615de2b81df7363656323622e5aadc964e1a61917d23e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where74 the·windows·during·mapping·overlap·as·well.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="[·...·truncated·by·diffoscope;·len:·346,·SHA:·b1244a5f92e0573c29e04e883cf8212ba2586013b3687af07b63c29d2e611530·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where
75 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="https://doc.rust-lang.org/1.84.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·0e0294a45242d5ce9a3ab8f95d6d410756415291d92baa7d12283ef1b3ecc3a0·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where75 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="../../core/option/enum.Option.html#variant.None"·title="variant·cor[·...·truncated·by·diffoscope;·len:·679,·SHA:·ec753d6ecf7b9fe81cb270d78e45e053f2702fff74c7a63c2ab8da22b97fea86·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where
76 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,76 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
77 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·a8b562f71802a421f4745f7d1fadf4f70d98030c829e70f27b692e7915267027·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where77 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·635,·SHA:·ee3a5bcc3544c3f17985966634fef69b1708d641ddb7e62aaac76933935c5ef7·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where
78 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="https://doc.rust-lang.org/1.84.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·b3db7d84f203bbc139b1c52912705d19c664dac762898205fce452c9dc3a5318·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where78 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.by_ref">[·...·truncated·by·diffoscope;·len:·415,·SHA:·7e0e075470d2db380bcf0838446659654c982aa2ca7831ed7d0317877855be2a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where
79 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,79 ····B:·<a·class="trait"·href="../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
80 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·431,·SHA:·a705a23f6d810357e7dcac670743884665ffcccfb9b780d0aa03720be8ca5625·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(80 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.collect">Read[·...·truncated·by·diffoscope;·len:·323,·SHA:·80e0dde3814a6e7cf4e30949627abc841ab4e98e2a920efb248777e22708682d·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(
81 ····&amp;mut·self,81 ····&amp;mut·self,
82 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.h[·...·truncated·by·diffoscope;·len:·479,·SHA:·fa749442d890055f86ceb34f411c84fd7ea08302b336d786d1ca36fe5868b020·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where82 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&g[·...·truncated·by·diffoscope;·len:·344,·SHA:·c06c6401df0a7150633e94cc973521da42e09819b07be80ba18d6acb696860a9·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
83 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,83 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
84 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>,84 ····Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>,
85 ····&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.h[·...·truncated·by·diffoscope;·len:·300,·SHA:·3bff089180bac38df7f42b87556fae7641185b89a949c284f53e3ac718a6decb·...·]/core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;B&gt;,85 ····&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&g[·...·truncated·by·diffoscope;·len:·192,·SHA:·039ceb6ce31fc6b1871e3e366efbd0f164f4a6cc1bc25554bba598b0ee820cca·...·]/core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;B&gt;,
86 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/itera[·...·truncated·by·diffoscope;·len:·323,·SHA:·b5c51f161dc9d77fd81d1fd23cc71fbf42ac00f3168cf9e41ebaaa2b6eb25363·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if86 ····B:·<a·class="trait"·href="../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="ty[·...·truncated·by·diffoscope;·len:·215,·SHA:·ddb8fbd12147eecef1697edd4c63187cc514ab4b851290335adfcccc3fa429ba·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if
87 a·failure·is·encountered.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·ri[·...·truncated·by·diffoscope;·len:·521,·SHA:·6a54376815dab985ec8cc35604d035e98e3003b1563c9b41e70966084505542b·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where87 a·failure·is·encountered.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/co[·...·truncated·by·diffoscope;·len:·386,·SHA:·d46a776c329de4f757930edda252586c2cdd85c6956b7b2f68448da33ee0625e·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
88 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,88 ····E:·<a·class="trait"·href="../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
89 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·975,·SHA:·94f7f970236ba59ba5f1415764a0e3ab2f3093c6b79e76c25c797ac24a3c4d09·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where89 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_collect[·...·truncated·by·diffoscope;·len:·840,·SHA:·1ee6fbe4deb3d959e9ade58fb7ed3efa79d09721ed02fbb5f5f82aae6aa1425d·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
90 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,90 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
91 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·b480ec650ba000fe7cb67df58fc0351299638ee3e8f00db18f74ca24d69f9894·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,91 ····B:·<a·class="trait"·href="../../core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtyp[·...·truncated·by·diffoscope;·len:·14,·SHA:·4105980ca4887a52797067761af25a11e3de6069cd8d7c8ce82cd885bb798fe8·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
92 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·fdf5a1845f070855ba2cfd0c8c85460ea5cb646c4d3b42a8431bf21489c73701·...·]/core/primitive.usize.html">usize</a><div·class="where">where92 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·806,·SHA:·4d554b733db12e71a31ec2477a31408041941b0e2b0dc910904ecf2fced9f65b·...·]/core/primitive.usize.html">usize</a><div·class="where">where
93 ····T:·'a,93 ····T:·'a,
94 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·1fc250e258e9e42e4fa3e22f86ecd57057e9ff23e47af1aec778076a7a891134·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,94 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIter[·...·truncated·by·diffoscope;·len:·51,·SHA:·c9be73bbed9d11ecac2a179f480a640f51d6255f26712667ffdabc72c1fc7fb0·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,
95 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·5846407374f20f525a4a0663ad4488141eafe64513ef82581dc5df5c2d200745·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_partition_in_place</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62543">#62543</a>)</span></div></span><div·class='docblock'>Reorders·the·elements·of·this·iterator·<em>in-place</em>·according·to·the·given·predicate,95 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="../../core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_partition_in_place</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62543">#62543</a>)</span></div></span><div·class='docblock'>Reorders·the·elements·of·this·iterator·<em>in-place</em>·according·to·the·given·predicate,
96 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.96 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.
97 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.partition_in_place">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_partitioned"·class="method·trait-impl"><a·clas[·...·truncated·by·diffoscope;·len:·431,·SHA:·4aa7d028146c72d45794efc19a376d4bee3b75eda61ff46d969e440b3dbfa1b0·...·]/core/primitive.bool.html">bool</a><div·class="where">where97 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.partition_in_place">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_partitioned"·class="method·trait-impl"><a·class="src·rightside"·href="../[·...·truncated·by·diffoscope;·len:·323,·SHA:·bfc44418fa28079222aab80e2baccdaffb2d067bbe5d1b5162202d268ad628d7·...·]/core/primitive.bool.html">bool</a><div·class="where">where
98 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,98 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
99 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·fcd03e71f79faad6d9b9a12045d59f4dfabc78e5aefebcabc9c1a5be45e31125·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,99 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·54,·SHA:·d5ac304cc26edf57442227b641dd21c427d0f9cb322b79986f5b15fc49f867b0·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,
100 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><span·class="righ[·...·truncated·by·diffoscope;·len:·319,·SHA:·9b9df13f2f4e5b4dde3908515766e1a474fa30bcb7edc98c15665a016e677c2a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where100 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><span·class="rightside"><span·class="since"·[·...·truncated·by·diffoscope;·len:·238,·SHA:·af6ab768457e0afa1532b80c4296ae18061dac4c765922889b13eead3e5492db·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where
101 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,101 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
102 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,102 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
103 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns103 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns
104 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rights[·...·truncated·by·diffoscope;·len:·321,·SHA:·619fd774190944998148325de99aaa75de66ce4b7e26579fd342c564923a5652·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where104 successfully,·producing·a·single,·final·value.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"·ti[·...·truncated·by·diffoscope;·len:·240,·SHA:·125e84deea747ccbe139725d028362287beed6a89ab9da3a3aabd7df537abc59·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where
105 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,105 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
106 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,106 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
107 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the107 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="../../core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the
108 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·307,·SHA:·5975144fd8566efa93ad1ccec09297e280924b7372e08681d2103702124e2c52·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where108 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title=[·...·truncated·by·diffoscope;·len:·226,·SHA:·a7510e9271e68887d9e2681c6bc28312cec9ac38883128845f52742935a160a9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where
109 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,109 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
110 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,110 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,
111 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span[·...·truncated·by·diffoscope;·len:·619,·SHA:·8813f54846438870310d5f5dfabd2335a9dbf51e9da2e4cd681bcb6077d39628·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where111 returning·the·final·result.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stabl[·...·truncated·by·diffoscope;·len:·484,·SHA:·5f42e8d5ff08f4c76870e6cb9165e054f9a0d99051d9886ccd43d5c8a91e1fbc·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
112 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,112 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
113 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·084691f7fc4e7f4da7db385127d0ce8d2d52f6740757129a65910c4db0dc180d·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing113 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·244,·SHA:·f09ac7e818239538c3f3208cb5c76076c24a0153797eb762821d5bf2a382d83b·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing
114 operation.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·217,·SHA:·447ae00256be3de069c602a6c04889808c883eae6fa349d023f53bdd5570ecae·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(114 operation.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/iter[·...·truncated·by·diffoscope;·len:·136,·SHA:·97e3ee132585582ec7077e3bbd86406d8a2dcfc97dce7fd52b49af3ec1b58622·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(
115 ····&amp;mut·self,115 ····&amp;mut·self,
116 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R, 
117 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.T[·...·truncated·by·diffoscope;·len:·950,·SHA:·817376e71f7a0d170bfbd4b7264c15d324f49c65106c49349d11a077842aa533·...·]116 ····f:·impl·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core:[·...·truncated·by·diffoscope;·len:·238,·SHA:·a52edc1a1ce1db5dd6e620dbfe5acb58fdc6d84f2320cef02845988aa54e5c55·...·]
 117 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;&gt;&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
118 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,118 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
119 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,119 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
120 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·764ea8f08626b05426a76738d54ebb2d640042494d76cba8c20d868bfdc07a73·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the120 ····&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>:·<a[·...·truncated·by·diffoscope;·len:·277,·SHA:·0dd064909226a9691486376740de1e17aa133a7ae2f635bee3feaa9b19d7b580·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the
121 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><span·class="rightside"><s[·...·truncated·by·diffoscope;·len:·476,·SHA:·aef721c14147dea2fbec70dcfa76916b3f1273bed8304f4c9db310ca23d1e4b1·...·]/core/primitive.bool.html">bool</a><div·class="where">where121 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="St[·...·truncated·by·diffoscope;·len:·368,·SHA:·6dbfbc90b7cfda9017074212ce0beeb560c8f9ba918ba7b00292e34daa531cc2·...·]/core/primitive.bool.html">bool</a><div·class="where">where
122 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,122 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
123 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·7c48e62c73a40a5cb5ebbf4a22cd789b342a88ad3d855022191f2bae33c736c6·...·]/core/primitive.bool.html">bool</a><div·class="where">where123 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·829,·SHA:·c413d95d1072acd820201f12ffb54d04a6c7f3b732f7de46115ba40b4eb1bd3f·...·]/core/primitive.bool.html">bool</a><div·class="where">where
124 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,124 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
125 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·673d69ce0c23e24b2546127c463e67cd2a4c0f7be792712e2b42e75427161b75·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where125 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·956,·SHA:·105c7ff05d33bc9219febe8c9633cf1c1a8d88c32e47e44793d403a428174c66·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
126 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,126 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
Max diff block lines reached; 166029/339619 bytes (48.89%) of diff not shown.
352 KB
./usr/share/doc/rust-doc/html/alloc/str/struct.RSplitTerminator.html
Max HTML report size reached
348 KB
./usr/share/doc/rust-doc/html/alloc/str/struct.Split.html
Max HTML report size reached
341 KB
./usr/share/doc/rust-doc/html/alloc/str/struct.SplitAsciiWhitespace.html
    
Offset 1, 246 lines modifiedOffset 1, 246 lines modified
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="An·iterator·over·the·non-ASCII-whitespace·substrings·of·a·string,·separated·by·any·amount·of·ASCII·whitespace."><title>SplitAsciiWhitespace·in·alloc::str·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»      2025-01-07)»   (built»     from» a»source»  tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Split<wbr>Ascii<wbr>Whitespace</a></h2><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.remainder"·title="remainder">remainder</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-SplitAsciiWhitespace%3C'a%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-SplitAsciiWhitespace%3C'a%3E"·title="Debug">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-SplitAsciiWhitespace%3C'a%3E"·title="DoubleEndedIterator">DoubleEndedIterator</a></li><li><a·href="#impl-FusedIterator-for-SplitAsciiWhitespace%3C'_%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-SplitAsciiWhitespace%3C'a%3E"·title="Iterator">Iterator</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-SplitAsciiWhitespace%3C'a%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-SplitAsciiWhitespace%3C'a%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-SplitAsciiWhitespace%3C'a%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-SplitAsciiWhitespace%3C'a%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-SplitAsciiWhitespace%3C'a%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-SplitAsciiWhitespace%3C'a%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>str</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">alloc</a>::<wbr><a·href="index.html">str</a></span><h1>Struct·<span·class="struct">SplitAsciiWhitespace</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/str/iter.rs.html#1284">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·SplitAsciiWhitespace&lt;'a&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>An·iterator·over·the·non-ASCII-whitespace·substrings·of·a·string,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="An·iterator·over·the·non-ASCII-whitespace·substrings·of·a·string,·separated·by·any·amount·of·ASCII·whitespace."><title>SplitAsciiWhitespace·in·alloc::str·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»      2025-01-07)»   (built»     from» a»source»  tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Split<wbr>Ascii<wbr>Whitespace</a></h2><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.remainder"·title="remainder">remainder</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-SplitAsciiWhitespace%3C'a%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-SplitAsciiWhitespace%3C'a%3E"·title="Debug">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-SplitAsciiWhitespace%3C'a%3E"·title="DoubleEndedIterator">DoubleEndedIterator</a></li><li><a·href="#impl-FusedIterator-for-SplitAsciiWhitespace%3C'_%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-SplitAsciiWhitespace%3C'a%3E"·title="Iterator">Iterator</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-SplitAsciiWhitespace%3C'a%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-SplitAsciiWhitespace%3C'a%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-SplitAsciiWhitespace%3C'a%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-SplitAsciiWhitespace%3C'a%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-SplitAsciiWhitespace%3C'a%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-SplitAsciiWhitespace%3C'a%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>str</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">alloc</a>::<wbr><a·href="index.html">str</a></span><h1>Struct·<span·class="struct">SplitAsciiWhitespace</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../src/core/str/iter.rs.html#1284">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·SplitAsciiWhitespace&lt;'a&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>An·iterator·over·the·non-ASCII-whitespace·substrings·of·a·string,
2 separated·by·any·amount·of·ASCII·whitespace.</p>2 separated·by·any·amount·of·ASCII·whitespace.</p>
3 <p>This·struct·is·created·by·the·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.str.html#method.split_ascii_whitespace"·title="method·str::split_ascii_whitespace"><code>split_ascii_whitespace</code></a>·method·on·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.str.html"·title="primitive·str"><code>str</code></a>.3 <p>This·struct·is·created·by·the·<a·href="../../core/primitive.str.html#method.split_ascii_whitespace"·title="method·str::split_ascii_whitespace"><code>split_ascii_whitespace</code></a>·method·on·<a·href="../../core/primitive.str.html"·title="primitive·str"><code>str</code></a>.
4 See·its·documentation·for·more.</p>4 See·its·documentation·for·more.</p>
5 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-SplitAsciiWhitespace%3C'a%3E"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/str/iter.rs.html#1388">Source</a><a·href="#impl-SplitAsciiWhitespace%3C'a%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a&gt;·<a·class="struct"·href="struct.SplitAsciiWhitespace.html"·title="struct·alloc[·...·truncated·by·diffoscope;·len:·617,·SHA:·c4309c54a14f23d4cc34a55b130797e4d42df3f4f5536bebdbbd8de641d61747·...·]/core/primitive.str.html">str</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>str_split_whitespace_remainder</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/77998">#77998</a>)</span></div></span></summary><div·class="docblock"><p>Returns·remainder·of·the·split·string.</p>5 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-SplitAsciiWhitespace%3C'a%3E"·class="impl"><a·class="src·rightside"·href="../../src/core/str/iter.rs.html#1388">Source</a><a·href="#impl-SplitAsciiWhitespace%3C'a%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a&gt;·<a·class="struct"·href="struct.SplitAsciiWhitespace.html"·title="struct·alloc::str::SplitAsciiWhitespace[·...·truncated·by·diffoscope;·len:·509,·SHA:·63331514873c29457b1c6f5c94f8a08fec1567e00522772b081900bb77149eae·...·]/core/primitive.str.html">str</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>str_split_whitespace_remainder</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/77998">#77998</a>)</span></div></span></summary><div·class="docblock"><p>Returns·remainder·of·the·split·string.</p>
6 <p>If·the·iterator·is·empty,·returns·<code>None</code>.</p>6 <p>If·the·iterator·is·empty,·returns·<code>None</code>.</p>
7 <h5·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h5>7 <h5·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h5>
8 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(str_split_whitespace_remainder)]8 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(str_split_whitespace_remainder)]
  
9 </span><span·class="kw">let·</span><span·class="kw-2">mut·</span>split·=·<span·class="string">"Mary·had·a·little·lamb"</span>.split_ascii_whitespace();9 </span><span·class="kw">let·</span><span·class="kw-2">mut·</span>split·=·<span·class="string">"Mary·had·a·little·lamb"</span>.split_ascii_whitespace();
10 <span·class="macro">assert_eq!</span>(split.remainder(),·<span·class="prelude-val">Some</span>(<span·class="string">"Mary·had·a·little·lamb"</span>));10 <span·class="macro">assert_eq!</span>(split.remainder(),·<span·class="prelude-val">Some</span>(<span·class="string">"Mary·had·a·little·lamb"</span>));
  
11 split.next();11 split.next();
12 <span·class="macro">assert_eq!</span>(split.remainder(),·<span·class="prelude-val">Some</span>(<span·class="string">"had·a·little·lamb"</span>));12 <span·class="macro">assert_eq!</span>(split.remainder(),·<span·class="prelude-val">Some</span>(<span·class="string">"had·a·little·lamb"</span>));
  
13 split.by_ref().for_each(drop);13 split.by_ref().for_each(drop);
14 <span·class="macro">assert_eq!</span>(split.remainder(),·<span·class="prelude-val">None</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Bfeature(str_split_whitespace_remainder)%5D%0A%0Afn+main()+%7B%0A++++let+mut+split+=+%22Mary+had+a+little+lamb%22.split_ascii_whitespace();%0A++++assert_eq!(split.remainder(),+Some(%22Mary+had+a+little+lamb%22));%0A++++%0A++++split.next();%0A++++assert_eq!(split.remainder(),+Some(%22had+a+little+lamb%22));%0A++++%0A++++split.by_ref().for_each(drop);%0A++++assert_eq!(split.remainder(),+None);%0A%7D&amp;version=nightly&amp;edition=2021"></a></div>14 <span·class="macro">assert_eq!</span>(split.remainder(),·<span·class="prelude-val">None</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Bfeature(str_split_whitespace_remainder)%5D%0A%0Afn+main()+%7B%0A++++let+mut+split+=+%22Mary+had+a+little+lamb%22.split_ascii_whitespace();%0A++++assert_eq!(split.remainder(),+Some(%22Mary+had+a+little+lamb%22));%0A++++%0A++++split.next();%0A++++assert_eq!(split.remainder(),+Some(%22had+a+little+lamb%22));%0A++++%0A++++split.by_ref().for_each(drop);%0A++++assert_eq!(split.remainder(),+None);%0A%7D&amp;version=nightly&amp;edition=2021"></a></div>
15 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-SplitAsciiWhitespace%3C'a%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.34.0">1.34.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/str/iter.rs.html#1283">Source</a></span><a·href="#impl-Clone-for-SplitAsciiWhitespace%3C'a%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core[·...·truncated·by·diffoscope;·len:·8725,·SHA:·c95ce8bf7f4801aad4e0f7d3d1a4048f661f275042aee4b503761bdc4d4d5db4·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold"·class="fn">try_rfold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where15 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-SplitAsciiWhitespace%3C'a%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.34.0">1.34.0</span>···<a·class="src"·href="../../src/core/str/iter.rs.html#1283">Source</a></span><a·href="#impl-Clone-for-SplitAsciiWhitespace%3C'a%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a&gt;·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clo[·...·truncated·by·diffoscope;·len:·7780,·SHA:·27dd2cfad677660c0e14fc3cb803e29db30ac2835babd32b4f12aa908995dd79·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold"·class="fn">try_rfold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where
16 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,16 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
17 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,17 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
18 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>This·is·the·reverse·version·of·<a·href="https://doc.rust-lang.org/1.8[·...·truncated·by·diffoscope;·len:·3,·SHA:·fbd04e1aae9ce0b11a8946e2c9ac2619f7428a64d32d01eff61d809dcb70ee8e·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·title="method·core::iter::traits::iterator::Iterator::try_fold"><code>Iterator::try_fold()</code></a>:·it·takes18 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>This·is·the·reverse·version·of·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·title="method·core::iter::traits::iterator::Iterator::try_fold"><code>Iterator::try_fold()</code></a>:·it·takes
19 elements·starting·from·the·back·of·the·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfold"·class="method·trait-impl"><span·clas[·...·truncated·by·diffoscope;·len:·325,·SHA:·7ffdb06a8ab3810207a1c974783822231eaf1d82fd94bcf810dd7b3181149b7b·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold"·class="fn">rfold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where19 elements·starting·from·the·back·of·the·iterator.·<a·href="../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfold"·class="method·trait-impl"><span·class="rightside"><span·class="[·...·truncated·by·diffoscope;·len:·244,·SHA:·6c4fe3f75fed1f00ec73ae6acd6efe929fb891f07f47293eec1013d32fc0fbe1·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold"·class="fn">rfold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where
20 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,20 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
21 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·reduces·the·iterator’s·elements·to·a·single,21 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·reduces·the·iterator’s·elements·to·a·single,
22 final·value,·starting·from·the·back.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfind"·class="method·trait-impl"><span·class="r[·...·truncated·by·diffoscope;·len:·665,·SHA:·fde89feb7c0e70eefa34d688476ca36a70115bec8150dbf9b1a3c359f72dd28d·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where22 final·value,·starting·from·the·back.·<a·href="../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfind"·class="method·trait-impl"><span·class="rightside"><span·class="sinc[·...·truncated·by·diffoscope;·len:·530,·SHA:·75a595bf6f9813abee32ae86d68f5de961884ee60e7080e18fb9c73b8e22c5f0·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
23 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,23 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
24 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·5222,·SHA:·4ee65f0fdb452d4e3c741457df8772f3e501b6eb6aa834f045785e7396a764a0·...·]/core/primitive.usize.html">usize</a>&gt;(24 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·4466,·SHA:·04ca8b72ddbe2e22d89fca27145f64c4b7a6964c74cb650a7823e0e4c5abcebc·...·]/core/primitive.usize.html">usize</a>&gt;(
25 ····&amp;mut·self,25 ····&amp;mut·self,
26 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·4f557a9b49151e0be8c52ffd68f1def4469c08164239dc8bef8df2040551c5ef·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where26 )·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">It[·...·truncated·by·diffoscope;·len:·246,·SHA:·baf6c8e6f3d5dbac69324111240b1587dbb858d42149cae1ee895a165289ff4f·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where
27 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·962,·SHA:·116e4ec2ae3d9655c3d115eaf50f435f5323b4e48b84de734c79d2a09b3c02f2·...·]/core/primitive.usize.html">usize</a><div·class="where">where27 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_next_ch[·...·truncated·by·diffoscope;·len:·827,·SHA:·2479cde9ab5aa3e18f76cf74cf7889a3de87c66e1745f27cf29bd34c4d30dbdf·...·]/core/primitive.usize.html">usize</a><div·class="where">where
28 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·counting·the·number·of·iterations·and·returning·it.·<a·href="https://doc.[·...·truncated·by·diffoscope;·len:·3529,·SHA:·36685e4ebfba7d155142dce71eec5dabe5f32dacb8a458b62987f15496f31675·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where28 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·counting·the·number·of·iterations·and·returning·it.·<a·href="../../core/iter/traits/iterator/trait.I[·...·truncated·by·diffoscope;·len:·2989,·SHA:·52662d0d84351ee66fd08cf83fe69d664777396d635c71dc09e542292824ef32·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where
29 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by29 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by
30 the·given·amount·at·each·iteration.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><sp[·...·truncated·by·diffoscope;·len:·842,·SHA:·945c4509a8daf2f8fbccc5c6e5089e225955911e03a3e411f047f96d52d16862·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where30 the·given·amount·at·each·iteration.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Sta[·...·truncated·by·diffoscope;·len:·680,·SHA:·77241b5118fcbc984cb791fa9f75077307e18056b66492741335faf440cbdabc·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
31 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,31 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
32 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·3b5ce32f9d564c3aa7cf2adc7130e674758d0c0f4f1275b4c3b46a74aa802cb3·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where32 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·1113,·SHA:·ccf22d19f49a25daffdcc6d9226d5107457a8bfd16beccfeff5020d151bdb8bb·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
33 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,33 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
34 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·[·...·truncated·by·diffoscope;·len:·868,·SHA:·abdbf27ccc84063c7040d8fa3da9d0bda5ee310a470ef576e15554aee4bd5d21·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where34 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·of·pairs.·<a·href="../../co[·...·truncated·by·diffoscope;·len:·706,·SHA:·f32c568f049122021445a983654582d97ac74064a3e99c3361b348bd7708c1b2·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where
35 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,35 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
36 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent36 ····Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent
37 items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="sr[·...·truncated·by·diffoscope;·len:·427,·SHA:·6e82ad4aad49c2165d869fe30d20a968580a973cdb3a7f4c77f49e16dd59393e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where37 items·of·the·original·iterator.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="src·rightside"·href="../../sr[·...·truncated·by·diffoscope;·len:·319,·SHA:·8babc469a22056fc5a02684b52f9f93ba9c27a3dd2e8443ddc060797054e211e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where
38 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,38 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
39 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>39 ····G:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>
40 between·adjacent·items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightsi[·...·truncated·by·diffoscope;·len:·471,·SHA:·ed10488b7b2ccc3e4cc84a9a57a9695a74c1c964962e8d753cbace12f3318a66·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where40 between·adjacent·items·of·the·original·iterator.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·tit[·...·truncated·by·diffoscope;·len:·363,·SHA:·09aee21fa4172b743a714e2cb5915129575ce0224df49c7343dec38f43b7ecfd·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where
41 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,41 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
42 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each42 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each
43 element.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><spa[·...·truncated·by·diffoscope;·len:·306,·SHA:·61c87c39b177830189b0e4c036d97c40d8b9649d76432c90afb88de59498e8b2·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where43 element.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stab[·...·truncated·by·diffoscope;·len:·225,·SHA:·a0f2490a1a5fd6b44e0ab01199cbbbd6e5463251405d11eaf6798c9b50bbd683·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where
44 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,44 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
45 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·a65da32c5f5ef8335cb607d3b4ab3f8a25877bc2c2e8b44ca9d575caecd5c8a5·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where45 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·754,·SHA:·421e55a5747cab3df1dad40b747b4633f241bdc13a1546bb19b1370788dea27d·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where
46 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,46 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
47 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·6d69c85c69fa789be551ea42d95c33c237d12a04ef157f9ddaaead1177f7771e·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element47 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·59,·SHA:·76969e34965f1923de668a65a9f5c33f73266468c9b96650bcc5fd498e606a6b·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element
48 should·be·yielded.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·489,·SHA:·9bdc636899f4e4e5a26a3a21c9603f72b3fb972865d2f459c38b7e2ac8fed7f1·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where48 should·be·yielded.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·cf812944678f6755720896cf32b330946303afe59f1b1c11adeb6a7f33454c8d·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where
49 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,49 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
50 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·46dbf841c7aecd3f06bd4c944af21650faeac98c46c515dcfe643302618b1ecd·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where50 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·863,·SHA:·c2bab87fa2a70713bd2d34b3dcae8f4ff2341917103b43a1dd505317f15d6cff·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where
51 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as51 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as
52 the·next·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside[·...·truncated·by·diffoscope;·len:·468,·SHA:·52f7ff7f264284c3acc4429ca34d057ded9afa2e3d9d6e07571e252db9a48977·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where52 the·next·value.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title[·...·truncated·by·diffoscope;·len:·360,·SHA:·688416dc1aaaa0be069177270ba9e74b3d1b92521285a109dc7ba86b58c1f22a·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where
53 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·c0180fefce4346b0b4089e5c642521d7716108241c0ce6ec3e910c7a2c7364b4·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods53 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="../../core/iter/adapters/peekable/struct.Peekable.html#method.peek"·title="m[·...·truncated·by·diffoscope;·len:·94,·SHA:·78aeab33f83c647dfe680c1050358c95977e3af17eabde4a04880721ea1a619d·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods
54 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See54 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See
55 their·documentation·for·more·information.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightsid[·...·truncated·by·diffoscope;·len:·498,·SHA:·e4a68861585faec6a5032b3b69d6dfb0f2799b5f387a527d9a1365571ed02069·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where55 their·documentation·for·more·information.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightside"><span·class="since"·titl[·...·truncated·by·diffoscope;·len:·390,·SHA:·5da622ae0e4d00b47239007520070e22568156d6c5b1662db8b80b465934b18c·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where
56 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,56 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
57 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·93281c1f6402743fd61110c11cf676f0f67eddceda801b4eb35e5fe9f85870fd·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where57 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·1018,·SHA:·732548acff5239e9a7b904f32790c90ab3b63522635334128f35e01d37ceaeb6·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where
58 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,58 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
59 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·f1cdbb1ec64f98fabbe1d89c88b03824310926cd7eaa160953ce2452fc3abb77·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where59 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·869,·SHA:·8ec7e525848424d5104dbdd10928d17cfee4e5aee63cdda7ecdbe323b30b59d3·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where
60 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,60 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
61 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·f94a0b2c1396b13b89aca7830197ebf19e2c0e5ba536a9cc25b325a481799510·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where61 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·947,·SHA:·fdd074315a0bfb226f815b1b6ea114c7367886338ffffff233d7f6fc3108769a·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where
62 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="https://doc.rust-lang[·...·truncated·by·diffoscope;·len:·783,·SHA:·c14217b89e3292a50a09192a8857485891fc769f861e1d1fc4322d04295c86ef·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where62 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="../../core/iter/traits/iterator/trait.Iterator.h[·...·truncated·by·diffoscope;·len:·621,·SHA:·484df7f946e7f2f69c3acad8964421c0db8ac5bb40032d11bbd862e20e67704c·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where
63 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer63 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer
64 if·the·underlying·iterator·ends·sooner.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·c[·...·truncated·by·diffoscope;·len:·488,·SHA:·76f753d5a273a09a73127631acaa0ee947326a929f33be291018188793e1af56·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where64 if·the·underlying·iterator·ends·sooner.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·[·...·truncated·by·diffoscope;·len:·380,·SHA:·fa258c7e0b5d583304a69e2d4e19f3d4cc9a9ed830bdf3796eaa0968bdf590b4·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where
65 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,65 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
66 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·07d303586c8ad4e0082d5b44bff8eeda03cdb8f4bdbe46489f9232bca5a43ec6·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but66 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterat[·...·truncated·by·diffoscope;·len:·314,·SHA:·299331ff47adaff3ebc292c53557ad34da957aef932f87ec0444c7f856820410·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but
67 unlike·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·2b20882d9583cee50e0c8b3cf362b27ce0d524db387d4aa4093d622b9370dada·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where67 unlike·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.scan">Read·more[·...·truncated·by·diffoscope;·len:·555,·SHA:·77279e392f259f6d4859f5a7747ee4b4d5315f3af0ac3baebf1d53be3461b312·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where
68 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,68 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
69 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,69 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
70 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·933,·SHA:·4af94b75ba5c1e03d2d70590d2fd0706f13b3080fbff0f5b98e7b109048c403d·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where70 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·771,·SHA:·a1a50c8ca4c13151c7b22ce05c74c449231e1ffe44225beee67ff212fc1d3859·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where
71 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,71 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
72 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.I[·...·truncated·by·diffoscope;·len:·968,·SHA:·e5572ed2f3bdf5970d038da608f2f592d945541207c483c257fe5789efba168a·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where72 ····Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::col[·...·truncated·by·diffoscope;·len:·779,·SHA:·a4e524bd8aa8a1e0a66409d1b462b88093ab51a1f901ff1a788d7ee63d597f4c·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where
73 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,73 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
74 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·3013c0e49b0dade37f8ca096eccc5ceeb03fc79b9d320a4c92486d23b88d1009·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over74 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·54,·SHA:·6acee514e4d8df8979b4bba687b7e0d5dbb0ea4f98a7019e2fb03f3a8058df0f·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over
75 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,75 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="../../core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,
76 the·windows·during·mapping·overlap·as·well.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside">[·...·truncated·by·diffoscope;·len:·454,·SHA:·040991f3914479bcc92615de2b81df7363656323622e5aadc964e1a61917d23e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where76 the·windows·during·mapping·overlap·as·well.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="[·...·truncated·by·diffoscope;·len:·346,·SHA:·b1244a5f92e0573c29e04e883cf8212ba2586013b3687af07b63c29d2e611530·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where
77 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="https://doc.rust-lang.org/1.84.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·0e0294a45242d5ce9a3ab8f95d6d410756415291d92baa7d12283ef1b3ecc3a0·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where77 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="../../core/option/enum.Option.html#variant.None"·title="variant·cor[·...·truncated·by·diffoscope;·len:·679,·SHA:·ec753d6ecf7b9fe81cb270d78e45e053f2702fff74c7a63c2ab8da22b97fea86·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where
78 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,78 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
79 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·a8b562f71802a421f4745f7d1fadf4f70d98030c829e70f27b692e7915267027·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where79 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·635,·SHA:·ee3a5bcc3544c3f17985966634fef69b1708d641ddb7e62aaac76933935c5ef7·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where
80 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="https://doc.rust-lang.org/1.84.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·b3db7d84f203bbc139b1c52912705d19c664dac762898205fce452c9dc3a5318·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where80 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.by_ref">[·...·truncated·by·diffoscope;·len:·415,·SHA:·7e0e075470d2db380bcf0838446659654c982aa2ca7831ed7d0317877855be2a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where
81 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,81 ····B:·<a·class="trait"·href="../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
82 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·431,·SHA:·a705a23f6d810357e7dcac670743884665ffcccfb9b780d0aa03720be8ca5625·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(82 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.collect">Read[·...·truncated·by·diffoscope;·len:·323,·SHA:·80e0dde3814a6e7cf4e30949627abc841ab4e98e2a920efb248777e22708682d·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(
83 ····&amp;mut·self,83 ····&amp;mut·self,
84 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.h[·...·truncated·by·diffoscope;·len:·479,·SHA:·fa749442d890055f86ceb34f411c84fd7ea08302b336d786d1ca36fe5868b020·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where84 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&g[·...·truncated·by·diffoscope;·len:·344,·SHA:·c06c6401df0a7150633e94cc973521da42e09819b07be80ba18d6acb696860a9·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
85 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,85 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
86 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>,86 ····Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>,
87 ····&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.h[·...·truncated·by·diffoscope;·len:·300,·SHA:·3bff089180bac38df7f42b87556fae7641185b89a949c284f53e3ac718a6decb·...·]/core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;B&gt;,87 ····&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&g[·...·truncated·by·diffoscope;·len:·192,·SHA:·039ceb6ce31fc6b1871e3e366efbd0f164f4a6cc1bc25554bba598b0ee820cca·...·]/core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;B&gt;,
88 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/itera[·...·truncated·by·diffoscope;·len:·323,·SHA:·b5c51f161dc9d77fd81d1fd23cc71fbf42ac00f3168cf9e41ebaaa2b6eb25363·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if88 ····B:·<a·class="trait"·href="../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="ty[·...·truncated·by·diffoscope;·len:·215,·SHA:·ddb8fbd12147eecef1697edd4c63187cc514ab4b851290335adfcccc3fa429ba·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if
89 a·failure·is·encountered.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·ri[·...·truncated·by·diffoscope;·len:·521,·SHA:·6a54376815dab985ec8cc35604d035e98e3003b1563c9b41e70966084505542b·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where89 a·failure·is·encountered.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/co[·...·truncated·by·diffoscope;·len:·386,·SHA:·d46a776c329de4f757930edda252586c2cdd85c6956b7b2f68448da33ee0625e·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
90 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,90 ····E:·<a·class="trait"·href="../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
91 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·975,·SHA:·94f7f970236ba59ba5f1415764a0e3ab2f3093c6b79e76c25c797ac24a3c4d09·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where91 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_collect[·...·truncated·by·diffoscope;·len:·840,·SHA:·1ee6fbe4deb3d959e9ade58fb7ed3efa79d09721ed02fbb5f5f82aae6aa1425d·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
92 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,92 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
93 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·b480ec650ba000fe7cb67df58fc0351299638ee3e8f00db18f74ca24d69f9894·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,93 ····B:·<a·class="trait"·href="../../core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtyp[·...·truncated·by·diffoscope;·len:·14,·SHA:·4105980ca4887a52797067761af25a11e3de6069cd8d7c8ce82cd885bb798fe8·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
94 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·fdf5a1845f070855ba2cfd0c8c85460ea5cb646c4d3b42a8431bf21489c73701·...·]/core/primitive.usize.html">usize</a><div·class="where">where94 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·806,·SHA:·4d554b733db12e71a31ec2477a31408041941b0e2b0dc910904ecf2fced9f65b·...·]/core/primitive.usize.html">usize</a><div·class="where">where
95 ····T:·'a,95 ····T:·'a,
96 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·1fc250e258e9e42e4fa3e22f86ecd57057e9ff23e47af1aec778076a7a891134·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,96 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIter[·...·truncated·by·diffoscope;·len:·51,·SHA:·c9be73bbed9d11ecac2a179f480a640f51d6255f26712667ffdabc72c1fc7fb0·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,
97 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·5846407374f20f525a4a0663ad4488141eafe64513ef82581dc5df5c2d200745·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_partition_in_place</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62543">#62543</a>)</span></div></span><div·class='docblock'>Reorders·the·elements·of·this·iterator·<em>in-place</em>·according·to·the·given·predicate,97 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="../../core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_partition_in_place</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62543">#62543</a>)</span></div></span><div·class='docblock'>Reorders·the·elements·of·this·iterator·<em>in-place</em>·according·to·the·given·predicate,
98 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.98 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.
99 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.partition_in_place">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_partitioned"·class="method·trait-impl"><a·clas[·...·truncated·by·diffoscope;·len:·431,·SHA:·4aa7d028146c72d45794efc19a376d4bee3b75eda61ff46d969e440b3dbfa1b0·...·]/core/primitive.bool.html">bool</a><div·class="where">where99 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.partition_in_place">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_partitioned"·class="method·trait-impl"><a·class="src·rightside"·href="../[·...·truncated·by·diffoscope;·len:·323,·SHA:·bfc44418fa28079222aab80e2baccdaffb2d067bbe5d1b5162202d268ad628d7·...·]/core/primitive.bool.html">bool</a><div·class="where">where
100 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,100 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
101 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·fcd03e71f79faad6d9b9a12045d59f4dfabc78e5aefebcabc9c1a5be45e31125·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,101 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·54,·SHA:·d5ac304cc26edf57442227b641dd21c427d0f9cb322b79986f5b15fc49f867b0·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,
102 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><span·class="righ[·...·truncated·by·diffoscope;·len:·319,·SHA:·9b9df13f2f4e5b4dde3908515766e1a474fa30bcb7edc98c15665a016e677c2a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where102 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><span·class="rightside"><span·class="since"·[·...·truncated·by·diffoscope;·len:·238,·SHA:·af6ab768457e0afa1532b80c4296ae18061dac4c765922889b13eead3e5492db·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where
103 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,103 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
104 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,104 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
105 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns105 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns
106 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rights[·...·truncated·by·diffoscope;·len:·321,·SHA:·619fd774190944998148325de99aaa75de66ce4b7e26579fd342c564923a5652·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where106 successfully,·producing·a·single,·final·value.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"·ti[·...·truncated·by·diffoscope;·len:·240,·SHA:·125e84deea747ccbe139725d028362287beed6a89ab9da3a3aabd7df537abc59·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where
107 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,107 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
108 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,108 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
109 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the109 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="../../core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the
110 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·307,·SHA:·5975144fd8566efa93ad1ccec09297e280924b7372e08681d2103702124e2c52·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where110 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title=[·...·truncated·by·diffoscope;·len:·226,·SHA:·a7510e9271e68887d9e2681c6bc28312cec9ac38883128845f52742935a160a9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where
111 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,111 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
112 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,112 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,
113 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span[·...·truncated·by·diffoscope;·len:·619,·SHA:·8813f54846438870310d5f5dfabd2335a9dbf51e9da2e4cd681bcb6077d39628·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where113 returning·the·final·result.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stabl[·...·truncated·by·diffoscope;·len:·484,·SHA:·5f42e8d5ff08f4c76870e6cb9165e054f9a0d99051d9886ccd43d5c8a91e1fbc·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
114 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,114 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
115 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·084691f7fc4e7f4da7db385127d0ce8d2d52f6740757129a65910c4db0dc180d·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing115 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·244,·SHA:·f09ac7e818239538c3f3208cb5c76076c24a0153797eb762821d5bf2a382d83b·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing
116 operation.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·217,·SHA:·447ae00256be3de069c602a6c04889808c883eae6fa349d023f53bdd5570ecae·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(116 operation.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/iter[·...·truncated·by·diffoscope;·len:·136,·SHA:·97e3ee132585582ec7077e3bbd86406d8a2dcfc97dce7fd52b49af3ec1b58622·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(
117 ····&amp;mut·self,117 ····&amp;mut·self,
118 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R, 
119 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.T[·...·truncated·by·diffoscope;·len:·950,·SHA:·817376e71f7a0d170bfbd4b7264c15d324f49c65106c49349d11a077842aa533·...·]118 ····f:·impl·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core:[·...·truncated·by·diffoscope;·len:·238,·SHA:·a52edc1a1ce1db5dd6e620dbfe5acb58fdc6d84f2320cef02845988aa54e5c55·...·]
 119 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;&gt;&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
120 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,120 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
121 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,121 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
122 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·764ea8f08626b05426a76738d54ebb2d640042494d76cba8c20d868bfdc07a73·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the122 ····&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>:·<a[·...·truncated·by·diffoscope;·len:·277,·SHA:·0dd064909226a9691486376740de1e17aa133a7ae2f635bee3feaa9b19d7b580·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the
123 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><span·class="rightside"><s[·...·truncated·by·diffoscope;·len:·476,·SHA:·aef721c14147dea2fbec70dcfa76916b3f1273bed8304f4c9db310ca23d1e4b1·...·]/core/primitive.bool.html">bool</a><div·class="where">where123 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="St[·...·truncated·by·diffoscope;·len:·368,·SHA:·6dbfbc90b7cfda9017074212ce0beeb560c8f9ba918ba7b00292e34daa531cc2·...·]/core/primitive.bool.html">bool</a><div·class="where">where
Max diff block lines reached; 159328/348605 bytes (45.70%) of diff not shown.
350 KB
./usr/share/doc/rust-doc/html/alloc/str/struct.SplitInclusive.html
Max HTML report size reached
329 KB
./usr/share/doc/rust-doc/html/alloc/str/struct.SplitN.html
    
Offset 1, 247 lines modifiedOffset 1, 247 lines modified
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="Created·with·the·method·`splitn`."><title>SplitN·in·alloc::str·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»      2025-01-07)»   (built»     from» a»source»  tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">SplitN</a></h2><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.remainder"·title="remainder">remainder</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-SplitN%3C'a,+P%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-SplitN%3C'a,+P%3E"·title="Debug">Debug</a></li><li><a·href="#impl-FusedIterator-for-SplitN%3C'a,+P%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-SplitN%3C'a,+P%3E"·title="Iterator">Iterator</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-SplitN%3C'a,+P%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-SplitN%3C'a,+P%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-SplitN%3C'a,+P%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-SplitN%3C'a,+P%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-SplitN%3C'a,+P%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-SplitN%3C'a,+P%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>str</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">alloc</a>::<wbr><a·href="index.html">str</a></span><h1>Struct·<span·class="struct">SplitN</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/str/iter.rs.html#980-996">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·SplitN&lt;'a,·P&gt;(<span·class="comment">/*·private·fields·*/</span>)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="Created·with·the·method·`splitn`."><title>SplitN·in·alloc::str·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»      2025-01-07)»   (built»     from» a»source»  tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">SplitN</a></h2><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.remainder"·title="remainder">remainder</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-SplitN%3C'a,+P%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-SplitN%3C'a,+P%3E"·title="Debug">Debug</a></li><li><a·href="#impl-FusedIterator-for-SplitN%3C'a,+P%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-SplitN%3C'a,+P%3E"·title="Iterator">Iterator</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-SplitN%3C'a,+P%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-SplitN%3C'a,+P%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-SplitN%3C'a,+P%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-SplitN%3C'a,+P%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-SplitN%3C'a,+P%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-SplitN%3C'a,+P%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>str</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">alloc</a>::<wbr><a·href="index.html">str</a></span><h1>Struct·<span·class="struct">SplitN</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../src/core/str/iter.rs.html#980-996">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·SplitN&lt;'a,·P&gt;(<span·class="comment">/*·private·fields·*/</span>)
2 <span·class="where">where2 <span·class="where">where
3 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a></span>;</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Created·with·the·method·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.str.html#method.splitn"·title="method·str::splitn"><code>splitn</code></a>.</p>3 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a></span>;</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Created·with·the·method·<a·href="../../core/primitive.str.html#method.splitn"·title="method·str::splitn"><code>splitn</code></a>.</p>
4 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-SplitN%3C'a,+P%3E"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/str/iter.rs.html#998">Source</a><a·href="#impl-SplitN%3C'a,+P%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·P&gt;·<a·class="struct"·href="struct.SplitN.html"·title="struct·alloc::str::SplitN">SplitN</a>&lt;'a,·P&gt;<div·class="where">where4 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-SplitN%3C'a,+P%3E"·class="impl"><a·class="src·rightside"·href="../../src/core/str/iter.rs.html#998">Source</a><a·href="#impl-SplitN%3C'a,+P%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·P&gt;·<a·class="struct"·href="struct.SplitN.html"·title="struct·alloc::str::SplitN">SplitN</a>&lt;'a,·P&gt;<div·class="where">where
5 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.remainder"·class="method"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/str/iter.rs.html#1016">Source</a><h4·class="code-header">pub·fn·<a·href="#method.remainder"·class="fn">remainder</a>(&amp;self)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.h[·...·truncated·by·diffoscope;·len:·120,·SHA:·aca9a85427c8d394bc174e62981933dbca08536bdf71d85d186958e0e8aae8f7·...·]/core/primitive.str.html">str</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>str_split_remainder</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/77998">#77998</a>)</span></div></span></summary><div·class="docblock"><p>Returns·remainder·of·the·split·string.</p>5 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.remainder"·class="method"><a·class="src·rightside"·href="../../src/core/str/iter.rs.html#1016">Source</a><h4·class="code-header">pub·fn·<a·href="#method.remainder"·class="fn">remainder</a>(&amp;self)·-&gt;·<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;&[·...·truncated·by·diffoscope;·len:·39,·SHA:·41bc7c8805f528ad91e84bb44389035feda1ffcf00c9068bb255ec8aab508c79·...·]/core/primitive.str.html">str</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>str_split_remainder</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/77998">#77998</a>)</span></div></span></summary><div·class="docblock"><p>Returns·remainder·of·the·split·string.</p>
6 <p>If·the·iterator·is·empty,·returns·<code>None</code>.</p>6 <p>If·the·iterator·is·empty,·returns·<code>None</code>.</p>
7 <h5·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h5>7 <h5·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h5>
8 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(str_split_remainder)]8 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(str_split_remainder)]
9 </span><span·class="kw">let·</span><span·class="kw-2">mut·</span>split·=·<span·class="string">"Mary·had·a·little·lamb"</span>.splitn(<span·class="number">3</span>,·<span·class="string">'·'</span>);9 </span><span·class="kw">let·</span><span·class="kw-2">mut·</span>split·=·<span·class="string">"Mary·had·a·little·lamb"</span>.splitn(<span·class="number">3</span>,·<span·class="string">'·'</span>);
10 <span·class="macro">assert_eq!</span>(split.remainder(),·<span·class="prelude-val">Some</span>(<span·class="string">"Mary·had·a·little·lamb"</span>));10 <span·class="macro">assert_eq!</span>(split.remainder(),·<span·class="prelude-val">Some</span>(<span·class="string">"Mary·had·a·little·lamb"</span>));
11 split.next();11 split.next();
12 <span·class="macro">assert_eq!</span>(split.remainder(),·<span·class="prelude-val">Some</span>(<span·class="string">"had·a·little·lamb"</span>));12 <span·class="macro">assert_eq!</span>(split.remainder(),·<span·class="prelude-val">Some</span>(<span·class="string">"had·a·little·lamb"</span>));
13 split.by_ref().for_each(drop);13 split.by_ref().for_each(drop);
14 <span·class="macro">assert_eq!</span>(split.remainder(),·<span·class="prelude-val">None</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Bfeature(str_split_remainder)%5D%0Afn+main()+%7B%0A++++let+mut+split+=+%22Mary+had+a+little+lamb%22.splitn(3,+'+');%0A++++assert_eq!(split.remainder(),+Some(%22Mary+had+a+little+lamb%22));%0A++++split.next();%0A++++assert_eq!(split.remainder(),+Some(%22had+a+little+lamb%22));%0A++++split.by_ref().for_each(drop);%0A++++assert_eq!(split.remainder(),+None);%0A%7D&amp;version=nightly&amp;edition=2021"></a></div>14 <span·class="macro">assert_eq!</span>(split.remainder(),·<span·class="prelude-val">None</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Bfeature(str_split_remainder)%5D%0Afn+main()+%7B%0A++++let+mut+split+=+%22Mary+had+a+little+lamb%22.splitn(3,+'+');%0A++++assert_eq!(split.remainder(),+Some(%22Mary+had+a+little+lamb%22));%0A++++split.next();%0A++++assert_eq!(split.remainder(),+Some(%22had+a+little+lamb%22));%0A++++split.by_ref().for_each(drop);%0A++++assert_eq!(split.remainder(),+None);%0A%7D&amp;version=nightly&amp;edition=2021"></a></div>
15 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-SplitN%3C'a,+P%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/str/iter.rs.html#980-996">Source</a></span><a·href="#impl-Clone-for-SplitN%3C'a,+P%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·P&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struct"·href="struct.SplitN.html"·title="struct·alloc::str::SplitN">SplitN</a>&lt;'a,·P&gt;<div·class="where">where15 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-SplitN%3C'a,+P%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/str/iter.rs.html#980-996">Source</a></span><a·href="#impl-Clone-for-SplitN%3C'a,+P%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·P&gt;·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struct"·href="struct.SplitN.html"·title="struct·alloc::str::SplitN">SplitN</a>&lt;'a,·P&gt;<div·class="where">where
16 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>,16 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>,
17 ····&lt;P·as·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&gt;::<a·class="associatedtype"·href="pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</a>&lt;'a&gt;:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone"·class="method·tra[·...·truncated·by·diffoscope;·len:·1715,·SHA:·c3a36dd62449b5cebf1176e56f62e6327122f48d6465aa4b29ae1a691118193c·...·]/src/core/str/iter.rs.html#980-996">Source</a></span><a·href="#impl-Debug-for-SplitN%3C'a,+P%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·P&gt;·<a·class="trait"·href="../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.SplitN.html"·title="struct·alloc::str::SplitN">SplitN</a>&lt;'a,·P&gt;<div·class="where">where17 ····&lt;P·as·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&gt;::<a·class="associatedtype"·href="pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</a>&lt;'a&gt;:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone"·class="method·trait-impl"><a·class="src·righ[·...·truncated·by·diffoscope;·len:·1499,·SHA:·f6f4a4c0d5acac863be3cfb31cce9acbc31354fb65e1a38c15fa7d1364944c93·...·]/src/core/str/iter.rs.html#980-996">Source</a></span><a·href="#impl-Debug-for-SplitN%3C'a,+P%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·P&gt;·<a·class="trait"·href="../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.SplitN.html"·title="struct·alloc::str::SplitN">SplitN</a>&lt;'a,·P&gt;<div·class="where">where
18 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>,18 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>,
19 ····&lt;P·as·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&gt;::<a·class="associatedtype"·href="pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</a>&lt;'a&gt;:·<a·class="trait"·href="../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/str/iter.rs.html#980-996">Source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·hr[·...·truncated·by·diffoscope;·len:·1099,·SHA:·7df027be12039c37fad36222f31ccceae53187bc15330a28103fc8c0ebfb039b·...·]/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::Iterator">Iterator</a>·for·<a·class="struct"·href="struct.SplitN.html"·title="struct·alloc::str::SplitN">SplitN</a>&lt;'a,·P&gt;<div·class="where">where19 ····&lt;P·as·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&gt;::<a·class="associatedtype"·href="pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</a>&lt;'a&gt;:·<a·class="trait"·href="../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/str/iter.rs.html#980-996">Source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="../fmt/struct.Formatter[·...·truncated·by·diffoscope;·len:·964,·SHA:·3cb92507616764905825bdecee57414f23748dc3024ad4f565f5aea6504b2bf1·...·]/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::Iterator">Iterator</a>·for·<a·class="struct"·href="struct.SplitN.html"·title="struct·alloc::str::SplitN">SplitN</a>&lt;'a,·P&gt;<div·class="where">where
20 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Item"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/str/iter.rs.html#980-996">Source</a><a·href="#associatedtype.Item"·class="anchor">§</a><h4·class="code-header">type·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associated[·...·truncated·by·diffoscope;·len:·1657,·SHA:·5ac0dba02f3797c75d2207658041a1e3d48daca85c5e7598af3da315a6e05678·...·]/core/primitive.usize.html">usize</a>&gt;(20 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Item"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/core/str/iter.rs.html#980-996">Source</a><a·href="#associatedtype.Item"·class="anchor">§</a><h4·class="code-header">type·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·class="associatedtype">Item</a>·=·&amp;'a·<[·...·truncated·by·diffoscope;·len:·1360,·SHA:·d7ee89c3e8116b71236da9b085a90e76a1dbfd26774a88434bf993c0363e1c2e·...·]/core/primitive.usize.html">usize</a>&gt;(
21 ····&amp;mut·self,21 ····&amp;mut·self,
22 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·4f557a9b49151e0be8c52ffd68f1def4469c08164239dc8bef8df2040551c5ef·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where22 )·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">It[·...·truncated·by·diffoscope;·len:·246,·SHA:·baf6c8e6f3d5dbac69324111240b1587dbb858d42149cae1ee895a165289ff4f·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where
23 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·2082,·SHA:·a83a032e1004fe4c3d3b7e56fd0b204c97eb443397e8e7afb9497dc56a12f3d1·...·]/core/primitive.usize.html">usize</a><div·class="where">where23 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_next_ch[·...·truncated·by·diffoscope;·len:·1785,·SHA:·2b1767ea9838432dd0ad4b6ebbd7624f7df5deec47bd49c03bb84f50f19d65ab·...·]/core/primitive.usize.html">usize</a><div·class="where">where
24 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·counting·the·number·of·iterations·and·returning·it.·<a·href="https://doc.[·...·truncated·by·diffoscope;·len:·837,·SHA:·47e25b6f9687bcc1d1fcdf9842fb085e6aba767d70531028f948636b80563dfc·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where24 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·counting·the·number·of·iterations·and·returning·it.·<a·href="../../core/iter/traits/iterator/trait.I[·...·truncated·by·diffoscope;·len:·675,·SHA:·1ce62884794ba87e19a0c96720594ee19d36bf34d9a84160028eeff78b648fa9·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
25 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·returning·the·last·element.·<a·href="https://doc.rust-lang.org/1.84.0/cor[·...·truncated·by·diffoscope;·len:·3504,·SHA:·ec43d0f6d8d2a1e0fb7a684c382b9934abe1250844e53cce08bdfc6017ecb276·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where25 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·returning·the·last·element.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.last[·...·truncated·by·diffoscope;·len:·2964,·SHA:·db62f7c0fcc4ed24f8d8d5c90b4eb970e1ba2f576e1c200c74164f961b4de28e·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where
26 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by26 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by
27 the·given·amount·at·each·iteration.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><sp[·...·truncated·by·diffoscope;·len:·842,·SHA:·945c4509a8daf2f8fbccc5c6e5089e225955911e03a3e411f047f96d52d16862·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where27 the·given·amount·at·each·iteration.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Sta[·...·truncated·by·diffoscope;·len:·680,·SHA:·77241b5118fcbc984cb791fa9f75077307e18056b66492741335faf440cbdabc·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
28 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,28 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
29 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·3b5ce32f9d564c3aa7cf2adc7130e674758d0c0f4f1275b4c3b46a74aa802cb3·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where29 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·1113,·SHA:·ccf22d19f49a25daffdcc6d9226d5107457a8bfd16beccfeff5020d151bdb8bb·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
30 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,30 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
31 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·[·...·truncated·by·diffoscope;·len:·868,·SHA:·abdbf27ccc84063c7040d8fa3da9d0bda5ee310a470ef576e15554aee4bd5d21·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where31 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·of·pairs.·<a·href="../../co[·...·truncated·by·diffoscope;·len:·706,·SHA:·f32c568f049122021445a983654582d97ac74064a3e99c3361b348bd7708c1b2·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where
32 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,32 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
33 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent33 ····Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent
34 items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="sr[·...·truncated·by·diffoscope;·len:·427,·SHA:·6e82ad4aad49c2165d869fe30d20a968580a973cdb3a7f4c77f49e16dd59393e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where34 items·of·the·original·iterator.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="src·rightside"·href="../../sr[·...·truncated·by·diffoscope;·len:·319,·SHA:·8babc469a22056fc5a02684b52f9f93ba9c27a3dd2e8443ddc060797054e211e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where
35 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,35 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
36 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>36 ····G:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>
37 between·adjacent·items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightsi[·...·truncated·by·diffoscope;·len:·471,·SHA:·ed10488b7b2ccc3e4cc84a9a57a9695a74c1c964962e8d753cbace12f3318a66·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where37 between·adjacent·items·of·the·original·iterator.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·tit[·...·truncated·by·diffoscope;·len:·363,·SHA:·09aee21fa4172b743a714e2cb5915129575ce0224df49c7343dec38f43b7ecfd·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where
38 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,38 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
39 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each39 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each
40 element.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><spa[·...·truncated·by·diffoscope;·len:·306,·SHA:·61c87c39b177830189b0e4c036d97c40d8b9649d76432c90afb88de59498e8b2·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where40 element.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stab[·...·truncated·by·diffoscope;·len:·225,·SHA:·a0f2490a1a5fd6b44e0ab01199cbbbd6e5463251405d11eaf6798c9b50bbd683·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where
41 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,41 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
42 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·a65da32c5f5ef8335cb607d3b4ab3f8a25877bc2c2e8b44ca9d575caecd5c8a5·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where42 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·754,·SHA:·421e55a5747cab3df1dad40b747b4633f241bdc13a1546bb19b1370788dea27d·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where
43 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,43 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
44 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·6d69c85c69fa789be551ea42d95c33c237d12a04ef157f9ddaaead1177f7771e·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element44 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·59,·SHA:·76969e34965f1923de668a65a9f5c33f73266468c9b96650bcc5fd498e606a6b·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element
45 should·be·yielded.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·489,·SHA:·9bdc636899f4e4e5a26a3a21c9603f72b3fb972865d2f459c38b7e2ac8fed7f1·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where45 should·be·yielded.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·cf812944678f6755720896cf32b330946303afe59f1b1c11adeb6a7f33454c8d·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where
46 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,46 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
47 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·46dbf841c7aecd3f06bd4c944af21650faeac98c46c515dcfe643302618b1ecd·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where47 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·863,·SHA:·c2bab87fa2a70713bd2d34b3dcae8f4ff2341917103b43a1dd505317f15d6cff·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where
48 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as48 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as
49 the·next·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside[·...·truncated·by·diffoscope;·len:·468,·SHA:·52f7ff7f264284c3acc4429ca34d057ded9afa2e3d9d6e07571e252db9a48977·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where49 the·next·value.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title[·...·truncated·by·diffoscope;·len:·360,·SHA:·688416dc1aaaa0be069177270ba9e74b3d1b92521285a109dc7ba86b58c1f22a·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where
50 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·c0180fefce4346b0b4089e5c642521d7716108241c0ce6ec3e910c7a2c7364b4·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods50 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="../../core/iter/adapters/peekable/struct.Peekable.html#method.peek"·title="m[·...·truncated·by·diffoscope;·len:·94,·SHA:·78aeab33f83c647dfe680c1050358c95977e3af17eabde4a04880721ea1a619d·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods
51 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See51 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See
52 their·documentation·for·more·information.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightsid[·...·truncated·by·diffoscope;·len:·498,·SHA:·e4a68861585faec6a5032b3b69d6dfb0f2799b5f387a527d9a1365571ed02069·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where52 their·documentation·for·more·information.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightside"><span·class="since"·titl[·...·truncated·by·diffoscope;·len:·390,·SHA:·5da622ae0e4d00b47239007520070e22568156d6c5b1662db8b80b465934b18c·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where
53 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,53 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
54 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·93281c1f6402743fd61110c11cf676f0f67eddceda801b4eb35e5fe9f85870fd·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where54 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·1018,·SHA:·732548acff5239e9a7b904f32790c90ab3b63522635334128f35e01d37ceaeb6·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where
55 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,55 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
56 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·f1cdbb1ec64f98fabbe1d89c88b03824310926cd7eaa160953ce2452fc3abb77·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where56 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·869,·SHA:·8ec7e525848424d5104dbdd10928d17cfee4e5aee63cdda7ecdbe323b30b59d3·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where
57 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,57 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
58 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·f94a0b2c1396b13b89aca7830197ebf19e2c0e5ba536a9cc25b325a481799510·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where58 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·947,·SHA:·fdd074315a0bfb226f815b1b6ea114c7367886338ffffff233d7f6fc3108769a·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where
59 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="https://doc.rust-lang[·...·truncated·by·diffoscope;·len:·783,·SHA:·c14217b89e3292a50a09192a8857485891fc769f861e1d1fc4322d04295c86ef·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where59 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="../../core/iter/traits/iterator/trait.Iterator.h[·...·truncated·by·diffoscope;·len:·621,·SHA:·484df7f946e7f2f69c3acad8964421c0db8ac5bb40032d11bbd862e20e67704c·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where
60 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer60 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer
61 if·the·underlying·iterator·ends·sooner.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·c[·...·truncated·by·diffoscope;·len:·488,·SHA:·76f753d5a273a09a73127631acaa0ee947326a929f33be291018188793e1af56·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where61 if·the·underlying·iterator·ends·sooner.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·[·...·truncated·by·diffoscope;·len:·380,·SHA:·fa258c7e0b5d583304a69e2d4e19f3d4cc9a9ed830bdf3796eaa0968bdf590b4·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where
62 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,62 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
63 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·07d303586c8ad4e0082d5b44bff8eeda03cdb8f4bdbe46489f9232bca5a43ec6·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but63 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterat[·...·truncated·by·diffoscope;·len:·314,·SHA:·299331ff47adaff3ebc292c53557ad34da957aef932f87ec0444c7f856820410·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but
64 unlike·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·2b20882d9583cee50e0c8b3cf362b27ce0d524db387d4aa4093d622b9370dada·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where64 unlike·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.scan">Read·more[·...·truncated·by·diffoscope;·len:·555,·SHA:·77279e392f259f6d4859f5a7747ee4b4d5315f3af0ac3baebf1d53be3461b312·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where
65 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,65 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
66 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,66 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
67 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·933,·SHA:·4af94b75ba5c1e03d2d70590d2fd0706f13b3080fbff0f5b98e7b109048c403d·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where67 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·771,·SHA:·a1a50c8ca4c13151c7b22ce05c74c449231e1ffe44225beee67ff212fc1d3859·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where
68 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,68 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
69 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.I[·...·truncated·by·diffoscope;·len:·968,·SHA:·e5572ed2f3bdf5970d038da608f2f592d945541207c483c257fe5789efba168a·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where69 ····Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::col[·...·truncated·by·diffoscope;·len:·779,·SHA:·a4e524bd8aa8a1e0a66409d1b462b88093ab51a1f901ff1a788d7ee63d597f4c·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where
70 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,70 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
71 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·3013c0e49b0dade37f8ca096eccc5ceeb03fc79b9d320a4c92486d23b88d1009·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over71 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·54,·SHA:·6acee514e4d8df8979b4bba687b7e0d5dbb0ea4f98a7019e2fb03f3a8058df0f·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over
72 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,72 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="../../core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,
73 the·windows·during·mapping·overlap·as·well.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside">[·...·truncated·by·diffoscope;·len:·454,·SHA:·040991f3914479bcc92615de2b81df7363656323622e5aadc964e1a61917d23e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where73 the·windows·during·mapping·overlap·as·well.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="[·...·truncated·by·diffoscope;·len:·346,·SHA:·b1244a5f92e0573c29e04e883cf8212ba2586013b3687af07b63c29d2e611530·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where
74 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="https://doc.rust-lang.org/1.84.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·0e0294a45242d5ce9a3ab8f95d6d410756415291d92baa7d12283ef1b3ecc3a0·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where74 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="../../core/option/enum.Option.html#variant.None"·title="variant·cor[·...·truncated·by·diffoscope;·len:·679,·SHA:·ec753d6ecf7b9fe81cb270d78e45e053f2702fff74c7a63c2ab8da22b97fea86·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where
75 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,75 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
76 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·a8b562f71802a421f4745f7d1fadf4f70d98030c829e70f27b692e7915267027·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where76 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·635,·SHA:·ee3a5bcc3544c3f17985966634fef69b1708d641ddb7e62aaac76933935c5ef7·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where
77 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="https://doc.rust-lang.org/1.84.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·b3db7d84f203bbc139b1c52912705d19c664dac762898205fce452c9dc3a5318·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where77 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.by_ref">[·...·truncated·by·diffoscope;·len:·415,·SHA:·7e0e075470d2db380bcf0838446659654c982aa2ca7831ed7d0317877855be2a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where
78 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,78 ····B:·<a·class="trait"·href="../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
79 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·431,·SHA:·a705a23f6d810357e7dcac670743884665ffcccfb9b780d0aa03720be8ca5625·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(79 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.collect">Read[·...·truncated·by·diffoscope;·len:·323,·SHA:·80e0dde3814a6e7cf4e30949627abc841ab4e98e2a920efb248777e22708682d·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(
80 ····&amp;mut·self,80 ····&amp;mut·self,
81 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.h[·...·truncated·by·diffoscope;·len:·479,·SHA:·fa749442d890055f86ceb34f411c84fd7ea08302b336d786d1ca36fe5868b020·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where81 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&g[·...·truncated·by·diffoscope;·len:·344,·SHA:·c06c6401df0a7150633e94cc973521da42e09819b07be80ba18d6acb696860a9·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
82 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,82 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
83 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>,83 ····Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>,
84 ····&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.h[·...·truncated·by·diffoscope;·len:·300,·SHA:·3bff089180bac38df7f42b87556fae7641185b89a949c284f53e3ac718a6decb·...·]/core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;B&gt;,84 ····&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&g[·...·truncated·by·diffoscope;·len:·192,·SHA:·039ceb6ce31fc6b1871e3e366efbd0f164f4a6cc1bc25554bba598b0ee820cca·...·]/core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;B&gt;,
85 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/itera[·...·truncated·by·diffoscope;·len:·323,·SHA:·b5c51f161dc9d77fd81d1fd23cc71fbf42ac00f3168cf9e41ebaaa2b6eb25363·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if85 ····B:·<a·class="trait"·href="../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="ty[·...·truncated·by·diffoscope;·len:·215,·SHA:·ddb8fbd12147eecef1697edd4c63187cc514ab4b851290335adfcccc3fa429ba·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if
86 a·failure·is·encountered.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·ri[·...·truncated·by·diffoscope;·len:·521,·SHA:·6a54376815dab985ec8cc35604d035e98e3003b1563c9b41e70966084505542b·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where86 a·failure·is·encountered.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/co[·...·truncated·by·diffoscope;·len:·386,·SHA:·d46a776c329de4f757930edda252586c2cdd85c6956b7b2f68448da33ee0625e·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
87 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,87 ····E:·<a·class="trait"·href="../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
88 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·975,·SHA:·94f7f970236ba59ba5f1415764a0e3ab2f3093c6b79e76c25c797ac24a3c4d09·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where88 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_collect[·...·truncated·by·diffoscope;·len:·840,·SHA:·1ee6fbe4deb3d959e9ade58fb7ed3efa79d09721ed02fbb5f5f82aae6aa1425d·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
89 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,89 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
90 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·b480ec650ba000fe7cb67df58fc0351299638ee3e8f00db18f74ca24d69f9894·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,90 ····B:·<a·class="trait"·href="../../core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtyp[·...·truncated·by·diffoscope;·len:·14,·SHA:·4105980ca4887a52797067761af25a11e3de6069cd8d7c8ce82cd885bb798fe8·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
91 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·fdf5a1845f070855ba2cfd0c8c85460ea5cb646c4d3b42a8431bf21489c73701·...·]/core/primitive.usize.html">usize</a><div·class="where">where91 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·806,·SHA:·4d554b733db12e71a31ec2477a31408041941b0e2b0dc910904ecf2fced9f65b·...·]/core/primitive.usize.html">usize</a><div·class="where">where
92 ····T:·'a,92 ····T:·'a,
93 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·1fc250e258e9e42e4fa3e22f86ecd57057e9ff23e47af1aec778076a7a891134·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,93 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIter[·...·truncated·by·diffoscope;·len:·51,·SHA:·c9be73bbed9d11ecac2a179f480a640f51d6255f26712667ffdabc72c1fc7fb0·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,
94 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·5846407374f20f525a4a0663ad4488141eafe64513ef82581dc5df5c2d200745·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_partition_in_place</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62543">#62543</a>)</span></div></span><div·class='docblock'>Reorders·the·elements·of·this·iterator·<em>in-place</em>·according·to·the·given·predicate,94 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="../../core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_partition_in_place</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62543">#62543</a>)</span></div></span><div·class='docblock'>Reorders·the·elements·of·this·iterator·<em>in-place</em>·according·to·the·given·predicate,
95 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.95 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.
96 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.partition_in_place">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_partitioned"·class="method·trait-impl"><a·clas[·...·truncated·by·diffoscope;·len:·431,·SHA:·4aa7d028146c72d45794efc19a376d4bee3b75eda61ff46d969e440b3dbfa1b0·...·]/core/primitive.bool.html">bool</a><div·class="where">where96 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.partition_in_place">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_partitioned"·class="method·trait-impl"><a·class="src·rightside"·href="../[·...·truncated·by·diffoscope;·len:·323,·SHA:·bfc44418fa28079222aab80e2baccdaffb2d067bbe5d1b5162202d268ad628d7·...·]/core/primitive.bool.html">bool</a><div·class="where">where
97 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,97 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
98 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·fcd03e71f79faad6d9b9a12045d59f4dfabc78e5aefebcabc9c1a5be45e31125·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,98 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·54,·SHA:·d5ac304cc26edf57442227b641dd21c427d0f9cb322b79986f5b15fc49f867b0·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,
99 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><span·class="righ[·...·truncated·by·diffoscope;·len:·319,·SHA:·9b9df13f2f4e5b4dde3908515766e1a474fa30bcb7edc98c15665a016e677c2a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where99 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><span·class="rightside"><span·class="since"·[·...·truncated·by·diffoscope;·len:·238,·SHA:·af6ab768457e0afa1532b80c4296ae18061dac4c765922889b13eead3e5492db·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where
100 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,100 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
101 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,101 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
102 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns102 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns
103 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rights[·...·truncated·by·diffoscope;·len:·321,·SHA:·619fd774190944998148325de99aaa75de66ce4b7e26579fd342c564923a5652·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where103 successfully,·producing·a·single,·final·value.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"·ti[·...·truncated·by·diffoscope;·len:·240,·SHA:·125e84deea747ccbe139725d028362287beed6a89ab9da3a3aabd7df537abc59·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where
104 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,104 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
105 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,105 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
106 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the106 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="../../core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the
107 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·307,·SHA:·5975144fd8566efa93ad1ccec09297e280924b7372e08681d2103702124e2c52·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where107 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title=[·...·truncated·by·diffoscope;·len:·226,·SHA:·a7510e9271e68887d9e2681c6bc28312cec9ac38883128845f52742935a160a9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where
108 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,108 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
109 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,109 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,
110 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span[·...·truncated·by·diffoscope;·len:·619,·SHA:·8813f54846438870310d5f5dfabd2335a9dbf51e9da2e4cd681bcb6077d39628·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where110 returning·the·final·result.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stabl[·...·truncated·by·diffoscope;·len:·484,·SHA:·5f42e8d5ff08f4c76870e6cb9165e054f9a0d99051d9886ccd43d5c8a91e1fbc·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
111 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,111 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
112 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·084691f7fc4e7f4da7db385127d0ce8d2d52f6740757129a65910c4db0dc180d·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing112 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·244,·SHA:·f09ac7e818239538c3f3208cb5c76076c24a0153797eb762821d5bf2a382d83b·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing
113 operation.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·217,·SHA:·447ae00256be3de069c602a6c04889808c883eae6fa349d023f53bdd5570ecae·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(113 operation.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/iter[·...·truncated·by·diffoscope;·len:·136,·SHA:·97e3ee132585582ec7077e3bbd86406d8a2dcfc97dce7fd52b49af3ec1b58622·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(
114 ····&amp;mut·self,114 ····&amp;mut·self,
115 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R, 
116 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.T[·...·truncated·by·diffoscope;·len:·950,·SHA:·817376e71f7a0d170bfbd4b7264c15d324f49c65106c49349d11a077842aa533·...·]115 ····f:·impl·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core:[·...·truncated·by·diffoscope;·len:·238,·SHA:·a52edc1a1ce1db5dd6e620dbfe5acb58fdc6d84f2320cef02845988aa54e5c55·...·]
 116 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;&gt;&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
117 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,117 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
118 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,118 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
119 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·764ea8f08626b05426a76738d54ebb2d640042494d76cba8c20d868bfdc07a73·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the119 ····&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>:·<a[·...·truncated·by·diffoscope;·len:·277,·SHA:·0dd064909226a9691486376740de1e17aa133a7ae2f635bee3feaa9b19d7b580·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the
120 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><span·class="rightside"><s[·...·truncated·by·diffoscope;·len:·476,·SHA:·aef721c14147dea2fbec70dcfa76916b3f1273bed8304f4c9db310ca23d1e4b1·...·]/core/primitive.bool.html">bool</a><div·class="where">where120 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="St[·...·truncated·by·diffoscope;·len:·368,·SHA:·6dbfbc90b7cfda9017074212ce0beeb560c8f9ba918ba7b00292e34daa531cc2·...·]/core/primitive.bool.html">bool</a><div·class="where">where
121 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,121 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
122 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·7c48e62c73a40a5cb5ebbf4a22cd789b342a88ad3d855022191f2bae33c736c6·...·]/core/primitive.bool.html">bool</a><div·class="where">where122 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·829,·SHA:·c413d95d1072acd820201f12ffb54d04a6c7f3b732f7de46115ba40b4eb1bd3f·...·]/core/primitive.bool.html">bool</a><div·class="where">where
123 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,123 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
124 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·673d69ce0c23e24b2546127c463e67cd2a4c0f7be792712e2b42e75427161b75·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where124 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·956,·SHA:·105c7ff05d33bc9219febe8c9633cf1c1a8d88c32e47e44793d403a428174c66·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
125 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,125 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
126 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·aa5078ff77f5638746395497f8ce92c1b684d342dea851990104d5e9981ab6b0·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where126 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·862,·SHA:·ab608da827ec12779180206da5bfe43676627c19288c1fe674060a00ba44a595·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where
Max diff block lines reached; 164320/337085 bytes (48.75%) of diff not shown.
350 KB
./usr/share/doc/rust-doc/html/alloc/str/struct.SplitTerminator.html
Max HTML report size reached
340 KB
./usr/share/doc/rust-doc/html/alloc/str/struct.SplitWhitespace.html
    
Offset 1, 245 lines modifiedOffset 1, 245 lines modified
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="An·iterator·over·the·non-whitespace·substrings·of·a·string,·separated·by·any·amount·of·whitespace."><title>SplitWhitespace·in·alloc::str·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»      2025-01-07)»   (built»     from» a»source»  tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Split<wbr>Whitespace</a></h2><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.remainder"·title="remainder">remainder</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-SplitWhitespace%3C'a%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-SplitWhitespace%3C'a%3E"·title="Debug">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-SplitWhitespace%3C'a%3E"·title="DoubleEndedIterator">DoubleEndedIterator</a></li><li><a·href="#impl-FusedIterator-for-SplitWhitespace%3C'_%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-SplitWhitespace%3C'a%3E"·title="Iterator">Iterator</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-SplitWhitespace%3C'a%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-SplitWhitespace%3C'a%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-SplitWhitespace%3C'a%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-SplitWhitespace%3C'a%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-SplitWhitespace%3C'a%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-SplitWhitespace%3C'a%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>str</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">alloc</a>::<wbr><a·href="index.html">str</a></span><h1>Struct·<span·class="struct">SplitWhitespace</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/str/iter.rs.html#1271">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·SplitWhitespace&lt;'a&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>An·iterator·over·the·non-whitespace·substrings·of·a·string,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="An·iterator·over·the·non-whitespace·substrings·of·a·string,·separated·by·any·amount·of·whitespace."><title>SplitWhitespace·in·alloc::str·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»      2025-01-07)»   (built»     from» a»source»  tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Split<wbr>Whitespace</a></h2><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.remainder"·title="remainder">remainder</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-SplitWhitespace%3C'a%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-SplitWhitespace%3C'a%3E"·title="Debug">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-SplitWhitespace%3C'a%3E"·title="DoubleEndedIterator">DoubleEndedIterator</a></li><li><a·href="#impl-FusedIterator-for-SplitWhitespace%3C'_%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-SplitWhitespace%3C'a%3E"·title="Iterator">Iterator</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-SplitWhitespace%3C'a%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-SplitWhitespace%3C'a%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-SplitWhitespace%3C'a%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-SplitWhitespace%3C'a%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-SplitWhitespace%3C'a%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-SplitWhitespace%3C'a%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>str</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">alloc</a>::<wbr><a·href="index.html">str</a></span><h1>Struct·<span·class="struct">SplitWhitespace</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../src/core/str/iter.rs.html#1271">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·SplitWhitespace&lt;'a&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>An·iterator·over·the·non-whitespace·substrings·of·a·string,
2 separated·by·any·amount·of·whitespace.</p>2 separated·by·any·amount·of·whitespace.</p>
3 <p>This·struct·is·created·by·the·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.str.html#method.split_whitespace"·title="method·str::split_whitespace"><code>split_whitespace</code></a>·method·on·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.str.html"·title="primitive·str"><code>str</code></a>.3 <p>This·struct·is·created·by·the·<a·href="../../core/primitive.str.html#method.split_whitespace"·title="method·str::split_whitespace"><code>split_whitespace</code></a>·method·on·<a·href="../../core/primitive.str.html"·title="primitive·str"><code>str</code></a>.
4 See·its·documentation·for·more.</p>4 See·its·documentation·for·more.</p>
5 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-SplitWhitespace%3C'a%3E"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/str/iter.rs.html#1332">Source</a><a·href="#impl-SplitWhitespace%3C'a%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a&gt;·<a·class="struct"·href="struct.SplitWhitespace.html"·title="struct·alloc::str::Spl[·...·truncated·by·diffoscope;·len:·597,·SHA:·536191b9858b7adb7a39c3e2e4323506b468a1417663cb8eccf4531ea6850d43·...·]/core/primitive.str.html">str</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>str_split_whitespace_remainder</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/77998">#77998</a>)</span></div></span></summary><div·class="docblock"><p>Returns·remainder·of·the·split·string</p>5 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-SplitWhitespace%3C'a%3E"·class="impl"><a·class="src·rightside"·href="../../src/core/str/iter.rs.html#1332">Source</a><a·href="#impl-SplitWhitespace%3C'a%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a&gt;·<a·class="struct"·href="struct.SplitWhitespace.html"·title="struct·alloc::str::SplitWhitespace">SplitWhitespa[·...·truncated·by·diffoscope;·len:·489,·SHA:·09ef9e3195b7ad55c518aa5b383861753f4b5480fce4fe30c932d065513a4a11·...·]/core/primitive.str.html">str</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>str_split_whitespace_remainder</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/77998">#77998</a>)</span></div></span></summary><div·class="docblock"><p>Returns·remainder·of·the·split·string</p>
6 <h5·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h5>6 <h5·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h5>
7 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(str_split_whitespace_remainder)]7 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(str_split_whitespace_remainder)]
  
8 </span><span·class="kw">let·</span><span·class="kw-2">mut·</span>split·=·<span·class="string">"Mary·had·a·little·lamb"</span>.split_whitespace();8 </span><span·class="kw">let·</span><span·class="kw-2">mut·</span>split·=·<span·class="string">"Mary·had·a·little·lamb"</span>.split_whitespace();
9 <span·class="macro">assert_eq!</span>(split.remainder(),·<span·class="prelude-val">Some</span>(<span·class="string">"Mary·had·a·little·lamb"</span>));9 <span·class="macro">assert_eq!</span>(split.remainder(),·<span·class="prelude-val">Some</span>(<span·class="string">"Mary·had·a·little·lamb"</span>));
  
10 split.next();10 split.next();
11 <span·class="macro">assert_eq!</span>(split.remainder(),·<span·class="prelude-val">Some</span>(<span·class="string">"had·a·little·lamb"</span>));11 <span·class="macro">assert_eq!</span>(split.remainder(),·<span·class="prelude-val">Some</span>(<span·class="string">"had·a·little·lamb"</span>));
  
12 split.by_ref().for_each(drop);12 split.by_ref().for_each(drop);
13 <span·class="macro">assert_eq!</span>(split.remainder(),·<span·class="prelude-val">None</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Bfeature(str_split_whitespace_remainder)%5D%0A%0Afn+main()+%7B%0A++++let+mut+split+=+%22Mary+had+a+little+lamb%22.split_whitespace();%0A++++assert_eq!(split.remainder(),+Some(%22Mary+had+a+little+lamb%22));%0A++++%0A++++split.next();%0A++++assert_eq!(split.remainder(),+Some(%22had+a+little+lamb%22));%0A++++%0A++++split.by_ref().for_each(drop);%0A++++assert_eq!(split.remainder(),+None);%0A%7D&amp;version=nightly&amp;edition=2021"></a></div>13 <span·class="macro">assert_eq!</span>(split.remainder(),·<span·class="prelude-val">None</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Bfeature(str_split_whitespace_remainder)%5D%0A%0Afn+main()+%7B%0A++++let+mut+split+=+%22Mary+had+a+little+lamb%22.split_whitespace();%0A++++assert_eq!(split.remainder(),+Some(%22Mary+had+a+little+lamb%22));%0A++++%0A++++split.next();%0A++++assert_eq!(split.remainder(),+Some(%22had+a+little+lamb%22));%0A++++%0A++++split.by_ref().for_each(drop);%0A++++assert_eq!(split.remainder(),+None);%0A%7D&amp;version=nightly&amp;edition=2021"></a></div>
14 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-SplitWhitespace%3C'a%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.1.0">1.1.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/str/iter.rs.html#1270">Source</a></span><a·href="#impl-Clone-for-SplitWhitespace%3C'a%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clon[·...·truncated·by·diffoscope;·len:·8631,·SHA:·267f175975038fb050c7eda70fd2f3af2d7c11e07deef3f49943fa276331aa3a·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold"·class="fn">try_rfold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where14 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-SplitWhitespace%3C'a%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.1.0">1.1.0</span>···<a·class="src"·href="../../src/core/str/iter.rs.html#1270">Source</a></span><a·href="#impl-Clone-for-SplitWhitespace%3C'a%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a&gt;·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">C[·...·truncated·by·diffoscope;·len:·7686,·SHA:·60907a2f289c46a82e634fd12b218651fb1cb64d8da8d600c0eadc99c34ac151·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold"·class="fn">try_rfold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where
15 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,15 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
16 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,16 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
17 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>This·is·the·reverse·version·of·<a·href="https://doc.rust-lang.org/1.8[·...·truncated·by·diffoscope;·len:·3,·SHA:·fbd04e1aae9ce0b11a8946e2c9ac2619f7428a64d32d01eff61d809dcb70ee8e·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·title="method·core::iter::traits::iterator::Iterator::try_fold"><code>Iterator::try_fold()</code></a>:·it·takes17 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>This·is·the·reverse·version·of·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·title="method·core::iter::traits::iterator::Iterator::try_fold"><code>Iterator::try_fold()</code></a>:·it·takes
18 elements·starting·from·the·back·of·the·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfold"·class="method·trait-impl"><span·clas[·...·truncated·by·diffoscope;·len:·325,·SHA:·7ffdb06a8ab3810207a1c974783822231eaf1d82fd94bcf810dd7b3181149b7b·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold"·class="fn">rfold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where18 elements·starting·from·the·back·of·the·iterator.·<a·href="../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfold"·class="method·trait-impl"><span·class="rightside"><span·class="[·...·truncated·by·diffoscope;·len:·244,·SHA:·6c4fe3f75fed1f00ec73ae6acd6efe929fb891f07f47293eec1013d32fc0fbe1·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold"·class="fn">rfold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where
19 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,19 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
20 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·reduces·the·iterator’s·elements·to·a·single,20 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·reduces·the·iterator’s·elements·to·a·single,
21 final·value,·starting·from·the·back.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfind"·class="method·trait-impl"><span·class="r[·...·truncated·by·diffoscope;·len:·665,·SHA:·fde89feb7c0e70eefa34d688476ca36a70115bec8150dbf9b1a3c359f72dd28d·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where21 final·value,·starting·from·the·back.·<a·href="../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfind"·class="method·trait-impl"><span·class="rightside"><span·class="sinc[·...·truncated·by·diffoscope;·len:·530,·SHA:·75a595bf6f9813abee32ae86d68f5de961884ee60e7080e18fb9c73b8e22c5f0·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
22 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,22 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
23 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·5195,·SHA:·7688ef0863d1f8e08cec2ab6771fe15355352299f9de216642ba1b563c9328aa·...·]/core/primitive.usize.html">usize</a>&gt;(23 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·4439,·SHA:·1ce200a233065f50d6637244f326260589d666a3c78de578d847f650fe909f59·...·]/core/primitive.usize.html">usize</a>&gt;(
24 ····&amp;mut·self,24 ····&amp;mut·self,
25 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·4f557a9b49151e0be8c52ffd68f1def4469c08164239dc8bef8df2040551c5ef·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where25 )·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">It[·...·truncated·by·diffoscope;·len:·246,·SHA:·baf6c8e6f3d5dbac69324111240b1587dbb858d42149cae1ee895a165289ff4f·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where
26 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·962,·SHA:·116e4ec2ae3d9655c3d115eaf50f435f5323b4e48b84de734c79d2a09b3c02f2·...·]/core/primitive.usize.html">usize</a><div·class="where">where26 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_next_ch[·...·truncated·by·diffoscope;·len:·827,·SHA:·2479cde9ab5aa3e18f76cf74cf7889a3de87c66e1745f27cf29bd34c4d30dbdf·...·]/core/primitive.usize.html">usize</a><div·class="where">where
27 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·counting·the·number·of·iterations·and·returning·it.·<a·href="https://doc.[·...·truncated·by·diffoscope;·len:·3529,·SHA:·36685e4ebfba7d155142dce71eec5dabe5f32dacb8a458b62987f15496f31675·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where27 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·counting·the·number·of·iterations·and·returning·it.·<a·href="../../core/iter/traits/iterator/trait.I[·...·truncated·by·diffoscope;·len:·2989,·SHA:·52662d0d84351ee66fd08cf83fe69d664777396d635c71dc09e542292824ef32·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where
28 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by28 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by
29 the·given·amount·at·each·iteration.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><sp[·...·truncated·by·diffoscope;·len:·842,·SHA:·945c4509a8daf2f8fbccc5c6e5089e225955911e03a3e411f047f96d52d16862·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where29 the·given·amount·at·each·iteration.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Sta[·...·truncated·by·diffoscope;·len:·680,·SHA:·77241b5118fcbc984cb791fa9f75077307e18056b66492741335faf440cbdabc·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
30 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,30 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
31 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·3b5ce32f9d564c3aa7cf2adc7130e674758d0c0f4f1275b4c3b46a74aa802cb3·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where31 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·1113,·SHA:·ccf22d19f49a25daffdcc6d9226d5107457a8bfd16beccfeff5020d151bdb8bb·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
32 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,32 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
33 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·[·...·truncated·by·diffoscope;·len:·868,·SHA:·abdbf27ccc84063c7040d8fa3da9d0bda5ee310a470ef576e15554aee4bd5d21·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where33 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·of·pairs.·<a·href="../../co[·...·truncated·by·diffoscope;·len:·706,·SHA:·f32c568f049122021445a983654582d97ac74064a3e99c3361b348bd7708c1b2·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where
34 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,34 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
35 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent35 ····Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent
36 items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="sr[·...·truncated·by·diffoscope;·len:·427,·SHA:·6e82ad4aad49c2165d869fe30d20a968580a973cdb3a7f4c77f49e16dd59393e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where36 items·of·the·original·iterator.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="src·rightside"·href="../../sr[·...·truncated·by·diffoscope;·len:·319,·SHA:·8babc469a22056fc5a02684b52f9f93ba9c27a3dd2e8443ddc060797054e211e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where
37 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,37 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
38 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>38 ····G:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>
39 between·adjacent·items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightsi[·...·truncated·by·diffoscope;·len:·471,·SHA:·ed10488b7b2ccc3e4cc84a9a57a9695a74c1c964962e8d753cbace12f3318a66·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where39 between·adjacent·items·of·the·original·iterator.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·tit[·...·truncated·by·diffoscope;·len:·363,·SHA:·09aee21fa4172b743a714e2cb5915129575ce0224df49c7343dec38f43b7ecfd·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where
40 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,40 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
41 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each41 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each
42 element.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><spa[·...·truncated·by·diffoscope;·len:·306,·SHA:·61c87c39b177830189b0e4c036d97c40d8b9649d76432c90afb88de59498e8b2·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where42 element.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stab[·...·truncated·by·diffoscope;·len:·225,·SHA:·a0f2490a1a5fd6b44e0ab01199cbbbd6e5463251405d11eaf6798c9b50bbd683·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where
43 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,43 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
44 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·a65da32c5f5ef8335cb607d3b4ab3f8a25877bc2c2e8b44ca9d575caecd5c8a5·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where44 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·754,·SHA:·421e55a5747cab3df1dad40b747b4633f241bdc13a1546bb19b1370788dea27d·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where
45 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,45 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
46 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·6d69c85c69fa789be551ea42d95c33c237d12a04ef157f9ddaaead1177f7771e·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element46 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·59,·SHA:·76969e34965f1923de668a65a9f5c33f73266468c9b96650bcc5fd498e606a6b·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element
47 should·be·yielded.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·489,·SHA:·9bdc636899f4e4e5a26a3a21c9603f72b3fb972865d2f459c38b7e2ac8fed7f1·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where47 should·be·yielded.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·cf812944678f6755720896cf32b330946303afe59f1b1c11adeb6a7f33454c8d·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where
48 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,48 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
49 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·46dbf841c7aecd3f06bd4c944af21650faeac98c46c515dcfe643302618b1ecd·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where49 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·863,·SHA:·c2bab87fa2a70713bd2d34b3dcae8f4ff2341917103b43a1dd505317f15d6cff·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where
50 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as50 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as
51 the·next·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside[·...·truncated·by·diffoscope;·len:·468,·SHA:·52f7ff7f264284c3acc4429ca34d057ded9afa2e3d9d6e07571e252db9a48977·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where51 the·next·value.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title[·...·truncated·by·diffoscope;·len:·360,·SHA:·688416dc1aaaa0be069177270ba9e74b3d1b92521285a109dc7ba86b58c1f22a·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where
52 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·c0180fefce4346b0b4089e5c642521d7716108241c0ce6ec3e910c7a2c7364b4·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods52 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="../../core/iter/adapters/peekable/struct.Peekable.html#method.peek"·title="m[·...·truncated·by·diffoscope;·len:·94,·SHA:·78aeab33f83c647dfe680c1050358c95977e3af17eabde4a04880721ea1a619d·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods
53 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See53 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See
54 their·documentation·for·more·information.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightsid[·...·truncated·by·diffoscope;·len:·498,·SHA:·e4a68861585faec6a5032b3b69d6dfb0f2799b5f387a527d9a1365571ed02069·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where54 their·documentation·for·more·information.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightside"><span·class="since"·titl[·...·truncated·by·diffoscope;·len:·390,·SHA:·5da622ae0e4d00b47239007520070e22568156d6c5b1662db8b80b465934b18c·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where
55 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,55 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
56 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·93281c1f6402743fd61110c11cf676f0f67eddceda801b4eb35e5fe9f85870fd·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where56 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·1018,·SHA:·732548acff5239e9a7b904f32790c90ab3b63522635334128f35e01d37ceaeb6·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where
57 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,57 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
58 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·f1cdbb1ec64f98fabbe1d89c88b03824310926cd7eaa160953ce2452fc3abb77·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where58 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·869,·SHA:·8ec7e525848424d5104dbdd10928d17cfee4e5aee63cdda7ecdbe323b30b59d3·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where
59 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,59 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
60 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·f94a0b2c1396b13b89aca7830197ebf19e2c0e5ba536a9cc25b325a481799510·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where60 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·947,·SHA:·fdd074315a0bfb226f815b1b6ea114c7367886338ffffff233d7f6fc3108769a·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where
61 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="https://doc.rust-lang[·...·truncated·by·diffoscope;·len:·783,·SHA:·c14217b89e3292a50a09192a8857485891fc769f861e1d1fc4322d04295c86ef·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where61 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="../../core/iter/traits/iterator/trait.Iterator.h[·...·truncated·by·diffoscope;·len:·621,·SHA:·484df7f946e7f2f69c3acad8964421c0db8ac5bb40032d11bbd862e20e67704c·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where
62 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer62 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer
63 if·the·underlying·iterator·ends·sooner.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·c[·...·truncated·by·diffoscope;·len:·488,·SHA:·76f753d5a273a09a73127631acaa0ee947326a929f33be291018188793e1af56·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where63 if·the·underlying·iterator·ends·sooner.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·[·...·truncated·by·diffoscope;·len:·380,·SHA:·fa258c7e0b5d583304a69e2d4e19f3d4cc9a9ed830bdf3796eaa0968bdf590b4·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where
64 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,64 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
65 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·07d303586c8ad4e0082d5b44bff8eeda03cdb8f4bdbe46489f9232bca5a43ec6·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but65 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterat[·...·truncated·by·diffoscope;·len:·314,·SHA:·299331ff47adaff3ebc292c53557ad34da957aef932f87ec0444c7f856820410·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but
66 unlike·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·2b20882d9583cee50e0c8b3cf362b27ce0d524db387d4aa4093d622b9370dada·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where66 unlike·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.scan">Read·more[·...·truncated·by·diffoscope;·len:·555,·SHA:·77279e392f259f6d4859f5a7747ee4b4d5315f3af0ac3baebf1d53be3461b312·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where
67 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,67 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
68 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,68 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
69 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·933,·SHA:·4af94b75ba5c1e03d2d70590d2fd0706f13b3080fbff0f5b98e7b109048c403d·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where69 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·771,·SHA:·a1a50c8ca4c13151c7b22ce05c74c449231e1ffe44225beee67ff212fc1d3859·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where
70 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,70 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
71 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.I[·...·truncated·by·diffoscope;·len:·968,·SHA:·e5572ed2f3bdf5970d038da608f2f592d945541207c483c257fe5789efba168a·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where71 ····Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::col[·...·truncated·by·diffoscope;·len:·779,·SHA:·a4e524bd8aa8a1e0a66409d1b462b88093ab51a1f901ff1a788d7ee63d597f4c·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where
72 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,72 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
73 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·3013c0e49b0dade37f8ca096eccc5ceeb03fc79b9d320a4c92486d23b88d1009·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over73 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·54,·SHA:·6acee514e4d8df8979b4bba687b7e0d5dbb0ea4f98a7019e2fb03f3a8058df0f·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over
74 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,74 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="../../core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,
75 the·windows·during·mapping·overlap·as·well.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside">[·...·truncated·by·diffoscope;·len:·454,·SHA:·040991f3914479bcc92615de2b81df7363656323622e5aadc964e1a61917d23e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where75 the·windows·during·mapping·overlap·as·well.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="[·...·truncated·by·diffoscope;·len:·346,·SHA:·b1244a5f92e0573c29e04e883cf8212ba2586013b3687af07b63c29d2e611530·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where
76 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="https://doc.rust-lang.org/1.84.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·0e0294a45242d5ce9a3ab8f95d6d410756415291d92baa7d12283ef1b3ecc3a0·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where76 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="../../core/option/enum.Option.html#variant.None"·title="variant·cor[·...·truncated·by·diffoscope;·len:·679,·SHA:·ec753d6ecf7b9fe81cb270d78e45e053f2702fff74c7a63c2ab8da22b97fea86·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where
77 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,77 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
78 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·a8b562f71802a421f4745f7d1fadf4f70d98030c829e70f27b692e7915267027·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where78 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·635,·SHA:·ee3a5bcc3544c3f17985966634fef69b1708d641ddb7e62aaac76933935c5ef7·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where
79 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="https://doc.rust-lang.org/1.84.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·b3db7d84f203bbc139b1c52912705d19c664dac762898205fce452c9dc3a5318·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where79 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.by_ref">[·...·truncated·by·diffoscope;·len:·415,·SHA:·7e0e075470d2db380bcf0838446659654c982aa2ca7831ed7d0317877855be2a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where
80 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,80 ····B:·<a·class="trait"·href="../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
81 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·431,·SHA:·a705a23f6d810357e7dcac670743884665ffcccfb9b780d0aa03720be8ca5625·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(81 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.collect">Read[·...·truncated·by·diffoscope;·len:·323,·SHA:·80e0dde3814a6e7cf4e30949627abc841ab4e98e2a920efb248777e22708682d·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(
82 ····&amp;mut·self,82 ····&amp;mut·self,
83 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.h[·...·truncated·by·diffoscope;·len:·479,·SHA:·fa749442d890055f86ceb34f411c84fd7ea08302b336d786d1ca36fe5868b020·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where83 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&g[·...·truncated·by·diffoscope;·len:·344,·SHA:·c06c6401df0a7150633e94cc973521da42e09819b07be80ba18d6acb696860a9·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
84 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,84 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
85 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>,85 ····Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>,
86 ····&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.h[·...·truncated·by·diffoscope;·len:·300,·SHA:·3bff089180bac38df7f42b87556fae7641185b89a949c284f53e3ac718a6decb·...·]/core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;B&gt;,86 ····&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&g[·...·truncated·by·diffoscope;·len:·192,·SHA:·039ceb6ce31fc6b1871e3e366efbd0f164f4a6cc1bc25554bba598b0ee820cca·...·]/core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;B&gt;,
87 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/itera[·...·truncated·by·diffoscope;·len:·323,·SHA:·b5c51f161dc9d77fd81d1fd23cc71fbf42ac00f3168cf9e41ebaaa2b6eb25363·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if87 ····B:·<a·class="trait"·href="../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="ty[·...·truncated·by·diffoscope;·len:·215,·SHA:·ddb8fbd12147eecef1697edd4c63187cc514ab4b851290335adfcccc3fa429ba·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if
88 a·failure·is·encountered.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·ri[·...·truncated·by·diffoscope;·len:·521,·SHA:·6a54376815dab985ec8cc35604d035e98e3003b1563c9b41e70966084505542b·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where88 a·failure·is·encountered.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/co[·...·truncated·by·diffoscope;·len:·386,·SHA:·d46a776c329de4f757930edda252586c2cdd85c6956b7b2f68448da33ee0625e·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
89 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,89 ····E:·<a·class="trait"·href="../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
90 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·975,·SHA:·94f7f970236ba59ba5f1415764a0e3ab2f3093c6b79e76c25c797ac24a3c4d09·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where90 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_collect[·...·truncated·by·diffoscope;·len:·840,·SHA:·1ee6fbe4deb3d959e9ade58fb7ed3efa79d09721ed02fbb5f5f82aae6aa1425d·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
91 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,91 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
92 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·b480ec650ba000fe7cb67df58fc0351299638ee3e8f00db18f74ca24d69f9894·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,92 ····B:·<a·class="trait"·href="../../core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtyp[·...·truncated·by·diffoscope;·len:·14,·SHA:·4105980ca4887a52797067761af25a11e3de6069cd8d7c8ce82cd885bb798fe8·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
93 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·fdf5a1845f070855ba2cfd0c8c85460ea5cb646c4d3b42a8431bf21489c73701·...·]/core/primitive.usize.html">usize</a><div·class="where">where93 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·806,·SHA:·4d554b733db12e71a31ec2477a31408041941b0e2b0dc910904ecf2fced9f65b·...·]/core/primitive.usize.html">usize</a><div·class="where">where
94 ····T:·'a,94 ····T:·'a,
95 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·1fc250e258e9e42e4fa3e22f86ecd57057e9ff23e47af1aec778076a7a891134·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,95 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIter[·...·truncated·by·diffoscope;·len:·51,·SHA:·c9be73bbed9d11ecac2a179f480a640f51d6255f26712667ffdabc72c1fc7fb0·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,
96 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·5846407374f20f525a4a0663ad4488141eafe64513ef82581dc5df5c2d200745·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_partition_in_place</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62543">#62543</a>)</span></div></span><div·class='docblock'>Reorders·the·elements·of·this·iterator·<em>in-place</em>·according·to·the·given·predicate,96 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="../../core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_partition_in_place</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62543">#62543</a>)</span></div></span><div·class='docblock'>Reorders·the·elements·of·this·iterator·<em>in-place</em>·according·to·the·given·predicate,
97 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.97 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.
98 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.partition_in_place">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_partitioned"·class="method·trait-impl"><a·clas[·...·truncated·by·diffoscope;·len:·431,·SHA:·4aa7d028146c72d45794efc19a376d4bee3b75eda61ff46d969e440b3dbfa1b0·...·]/core/primitive.bool.html">bool</a><div·class="where">where98 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.partition_in_place">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_partitioned"·class="method·trait-impl"><a·class="src·rightside"·href="../[·...·truncated·by·diffoscope;·len:·323,·SHA:·bfc44418fa28079222aab80e2baccdaffb2d067bbe5d1b5162202d268ad628d7·...·]/core/primitive.bool.html">bool</a><div·class="where">where
99 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,99 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
100 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·fcd03e71f79faad6d9b9a12045d59f4dfabc78e5aefebcabc9c1a5be45e31125·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,100 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·54,·SHA:·d5ac304cc26edf57442227b641dd21c427d0f9cb322b79986f5b15fc49f867b0·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,
101 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><span·class="righ[·...·truncated·by·diffoscope;·len:·319,·SHA:·9b9df13f2f4e5b4dde3908515766e1a474fa30bcb7edc98c15665a016e677c2a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where101 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><span·class="rightside"><span·class="since"·[·...·truncated·by·diffoscope;·len:·238,·SHA:·af6ab768457e0afa1532b80c4296ae18061dac4c765922889b13eead3e5492db·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where
102 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,102 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
103 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,103 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
104 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns104 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns
105 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rights[·...·truncated·by·diffoscope;·len:·321,·SHA:·619fd774190944998148325de99aaa75de66ce4b7e26579fd342c564923a5652·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where105 successfully,·producing·a·single,·final·value.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"·ti[·...·truncated·by·diffoscope;·len:·240,·SHA:·125e84deea747ccbe139725d028362287beed6a89ab9da3a3aabd7df537abc59·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where
106 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,106 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
107 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,107 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
108 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the108 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="../../core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the
109 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·307,·SHA:·5975144fd8566efa93ad1ccec09297e280924b7372e08681d2103702124e2c52·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where109 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title=[·...·truncated·by·diffoscope;·len:·226,·SHA:·a7510e9271e68887d9e2681c6bc28312cec9ac38883128845f52742935a160a9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where
110 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,110 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
111 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,111 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,
112 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span[·...·truncated·by·diffoscope;·len:·619,·SHA:·8813f54846438870310d5f5dfabd2335a9dbf51e9da2e4cd681bcb6077d39628·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where112 returning·the·final·result.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stabl[·...·truncated·by·diffoscope;·len:·484,·SHA:·5f42e8d5ff08f4c76870e6cb9165e054f9a0d99051d9886ccd43d5c8a91e1fbc·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
113 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,113 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
114 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·084691f7fc4e7f4da7db385127d0ce8d2d52f6740757129a65910c4db0dc180d·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing114 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·244,·SHA:·f09ac7e818239538c3f3208cb5c76076c24a0153797eb762821d5bf2a382d83b·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing
115 operation.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·217,·SHA:·447ae00256be3de069c602a6c04889808c883eae6fa349d023f53bdd5570ecae·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(115 operation.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/iter[·...·truncated·by·diffoscope;·len:·136,·SHA:·97e3ee132585582ec7077e3bbd86406d8a2dcfc97dce7fd52b49af3ec1b58622·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(
116 ····&amp;mut·self,116 ····&amp;mut·self,
117 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R, 
118 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.T[·...·truncated·by·diffoscope;·len:·950,·SHA:·817376e71f7a0d170bfbd4b7264c15d324f49c65106c49349d11a077842aa533·...·]117 ····f:·impl·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core:[·...·truncated·by·diffoscope;·len:·238,·SHA:·a52edc1a1ce1db5dd6e620dbfe5acb58fdc6d84f2320cef02845988aa54e5c55·...·]
 118 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;&gt;&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
119 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,119 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
120 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,120 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
121 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·764ea8f08626b05426a76738d54ebb2d640042494d76cba8c20d868bfdc07a73·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the121 ····&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>:·<a[·...·truncated·by·diffoscope;·len:·277,·SHA:·0dd064909226a9691486376740de1e17aa133a7ae2f635bee3feaa9b19d7b580·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the
122 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><span·class="rightside"><s[·...·truncated·by·diffoscope;·len:·476,·SHA:·aef721c14147dea2fbec70dcfa76916b3f1273bed8304f4c9db310ca23d1e4b1·...·]/core/primitive.bool.html">bool</a><div·class="where">where122 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="St[·...·truncated·by·diffoscope;·len:·368,·SHA:·6dbfbc90b7cfda9017074212ce0beeb560c8f9ba918ba7b00292e34daa531cc2·...·]/core/primitive.bool.html">bool</a><div·class="where">where
123 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,123 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
Max diff block lines reached; 158908/347566 bytes (45.72%) of diff not shown.
66.6 KB
./usr/share/doc/rust-doc/html/alloc/str/struct.Utf8Chunk.html
    
Offset 1, 39 lines modifiedOffset 1, 39 lines modified
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="An·item·returned·by·the·`Utf8Chunks`·iterator."><title>Utf8Chunk·in·alloc::str·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»2025-01-07)»     (built»       from»   a»  source»    tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Utf8<wbr>Chunk</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#examples"·title="Examples">Examples</a></li></ul><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.invalid"·title="invalid">invalid</a></li><li><a·href="#method.valid"·title="valid">valid</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-Utf8Chunk%3C'a%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-Utf8Chunk%3C'a%3E"·title="Debug">Debug</a></li><li><a·href="#impl-Eq-for-Utf8Chunk%3C'a%3E"·title="Eq">Eq</a></li><li><a·href="#impl-PartialEq-for-Utf8Chunk%3C'a%3E"·title="PartialEq">PartialEq</a></li><li><a·href="#impl-StructuralPartialEq-for-Utf8Chunk%3C'a%3E"·title="StructuralPartialEq">StructuralPartialEq</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-Utf8Chunk%3C'a%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Utf8Chunk%3C'a%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Utf8Chunk%3C'a%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-Utf8Chunk%3C'a%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-Utf8Chunk%3C'a%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Utf8Chunk%3C'a%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>str</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">alloc</a>::<wbr><a·href="index.html">str</a></span><h1>Struct·<span·class="struct">Utf8Chunk</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.79.0">1.79.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/str/lossy.rs.html#71">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·Utf8Chunk&lt;'a&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>An·item·returned·by·the·<a·href="struct.Utf8Chunks.html"·title="struct·alloc::str::Utf8Chunks"><code>Utf8Chunks</code></a>·iterator.</p>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="An·item·returned·by·the·`Utf8Chunks`·iterator."><title>Utf8Chunk·in·alloc::str·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»2025-01-07)»     (built»       from»   a»  source»    tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Utf8<wbr>Chunk</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#examples"·title="Examples">Examples</a></li></ul><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.invalid"·title="invalid">invalid</a></li><li><a·href="#method.valid"·title="valid">valid</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-Utf8Chunk%3C'a%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-Utf8Chunk%3C'a%3E"·title="Debug">Debug</a></li><li><a·href="#impl-Eq-for-Utf8Chunk%3C'a%3E"·title="Eq">Eq</a></li><li><a·href="#impl-PartialEq-for-Utf8Chunk%3C'a%3E"·title="PartialEq">PartialEq</a></li><li><a·href="#impl-StructuralPartialEq-for-Utf8Chunk%3C'a%3E"·title="StructuralPartialEq">StructuralPartialEq</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-Utf8Chunk%3C'a%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Utf8Chunk%3C'a%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Utf8Chunk%3C'a%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-Utf8Chunk%3C'a%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-Utf8Chunk%3C'a%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Utf8Chunk%3C'a%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>str</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">alloc</a>::<wbr><a·href="index.html">str</a></span><h1>Struct·<span·class="struct">Utf8Chunk</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.79.0">1.79.0</span>···<a·class="src"·href="../../src/core/str/lossy.rs.html#71">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·Utf8Chunk&lt;'a&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>An·item·returned·by·the·<a·href="struct.Utf8Chunks.html"·title="struct·alloc::str::Utf8Chunks"><code>Utf8Chunks</code></a>·iterator.</p>
2 <p>A·<code>Utf8Chunk</code>·stores·a·sequence·of·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.u8.html"·title="primitive·u8"><code>u8</code></a>·up·to·the·first·broken·character2 <p>A·<code>Utf8Chunk</code>·stores·a·sequence·of·<a·href="../../core/primitive.u8.html"·title="primitive·u8"><code>u8</code></a>·up·to·the·first·broken·character
3 when·decoding·a·UTF-8·string.</p>3 when·decoding·a·UTF-8·string.</p>
4 <h2·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h2>4 <h2·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h2>
5 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="comment">//·An·invalid·UTF-8·string5 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="comment">//·An·invalid·UTF-8·string
6 </span><span·class="kw">let·</span>bytes·=·<span·class="string">b"foo\xF1\x80bar"</span>;6 </span><span·class="kw">let·</span>bytes·=·<span·class="string">b"foo\xF1\x80bar"</span>;
  
7 <span·class="comment">//·Decode·the·first·`Utf8Chunk`7 <span·class="comment">//·Decode·the·first·`Utf8Chunk`
8 </span><span·class="kw">let·</span>chunk·=·bytes.utf8_chunks().next().unwrap();8 </span><span·class="kw">let·</span>chunk·=·bytes.utf8_chunks().next().unwrap();
  
9 <span·class="comment">//·The·first·three·characters·are·valid·UTF-89 <span·class="comment">//·The·first·three·characters·are·valid·UTF-8
10 </span><span·class="macro">assert_eq!</span>(<span·class="string">"foo"</span>,·chunk.valid());10 </span><span·class="macro">assert_eq!</span>(<span·class="string">"foo"</span>,·chunk.valid());
  
11 <span·class="comment">//·The·fourth·character·is·broken11 <span·class="comment">//·The·fourth·character·is·broken
12 </span><span·class="macro">assert_eq!</span>(<span·class="string">b"\xF1\x80"</span>,·chunk.invalid());</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A//+An+invalid+UTF-8+string%0Afn+main()+%7B%0A++++let+bytes+=+b%22foo%5CxF1%5Cx80bar%22;%0A++++%0A++++//+Decode+the+first+%60Utf8Chunk%60%0A++++let+chunk+=+bytes.utf8_chunks().next().unwrap();%0A++++%0A++++//+The+first+three+characters+are+valid+UTF-8%0A++++assert_eq!(%22foo%22,+chunk.valid());%0A++++%0A++++//+The+fourth+character+is+broken%0A++++assert_eq!(b%22%5CxF1%5Cx80%22,+chunk.invalid());%0A%7D&amp;edition=2021"></a></div>12 </span><span·class="macro">assert_eq!</span>(<span·class="string">b"\xF1\x80"</span>,·chunk.invalid());</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A//+An+invalid+UTF-8+string%0Afn+main()+%7B%0A++++let+bytes+=+b%22foo%5CxF1%5Cx80bar%22;%0A++++%0A++++//+Decode+the+first+%60Utf8Chunk%60%0A++++let+chunk+=+bytes.utf8_chunks().next().unwrap();%0A++++%0A++++//+The+first+three+characters+are+valid+UTF-8%0A++++assert_eq!(%22foo%22,+chunk.valid());%0A++++%0A++++//+The+fourth+character+is+broken%0A++++assert_eq!(b%22%5CxF1%5Cx80%22,+chunk.invalid());%0A%7D&amp;edition=2021"></a></div>
13 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Utf8Chunk%3C'a%3E"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/str/lossy.rs.html#76">Source</a><a·href="#impl-Utf8Chunk%3C'a%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a&gt;·<a·class="struct"·href="struct.Utf8Chunk.html"·title="struct·alloc::str::Utf8Chunk">Utf8C[·...·truncated·by·diffoscope;·len:·524,·SHA:·63e485f050306c0164a87c6ac64e9a5fe7c517c8b2840d139eae31c4214c3fe2·...·]/core/primitive.str.html">str</a></h4></section></summary><div·class="docblock"><p>Returns·the·next·validated·UTF-8·substring.</p>13 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Utf8Chunk%3C'a%3E"·class="impl"><a·class="src·rightside"·href="../../src/core/str/lossy.rs.html#76">Source</a><a·href="#impl-Utf8Chunk%3C'a%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a&gt;·<a·class="struct"·href="struct.Utf8Chunk.html"·title="struct·alloc::str::Utf8Chunk">Utf8Chunk</a>&lt;'a&gt;</h3></se[·...·truncated·by·diffoscope;·len:·443,·SHA:·52c3d5842e94a97a6e92a628ce65e9eb8a00c08731b8adcb49ac1e2356487edd·...·]/core/primitive.str.html">str</a></h4></section></summary><div·class="docblock"><p>Returns·the·next·validated·UTF-8·substring.</p>
14 <p>This·substring·can·be·empty·at·the·start·of·the·string·or·between14 <p>This·substring·can·be·empty·at·the·start·of·the·string·or·between
15 broken·UTF-8·characters.</p>15 broken·UTF-8·characters.</p>
16 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.invalid"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.79.0">1.79.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/str/lossy.rs.html#103">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.invalid"·class="fn">invalid</a>(&amp;self)·-&gt;·&amp;'a·[<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.u8.html">u8</a>]</h4></section></summary><div·class="docblock"><p>Returns·the·invalid·sequence·that·caused·a·failure.</p>16 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.invalid"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.79.0">1.79.0</span>···<a·class="src"·href="../../src/core/str/lossy.rs.html#103">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.invalid"·class="fn">invalid</a>(&amp;self)·-&gt;·&amp;'a·[<a·class="primitive"·href="../../core/primitive.u8.html">u8</a>]</h4></section></summary><div·class="docblock"><p>Returns·the·invalid·sequence·that·caused·a·failure.</p>
17 <p>The·returned·slice·will·have·a·maximum·length·of·3·and·starts·after·the17 <p>The·returned·slice·will·have·a·maximum·length·of·3·and·starts·after·the
18 substring·given·by·<a·href="struct.Utf8Chunk.html#method.valid"·title="method·alloc::str::Utf8Chunk::valid"><code>valid</code></a>.·Decoding·will·resume·after·this·sequence.</p>18 substring·given·by·<a·href="struct.Utf8Chunk.html#method.valid"·title="method·alloc::str::Utf8Chunk::valid"><code>valid</code></a>.·Decoding·will·resume·after·this·sequence.</p>
19 <p>If·empty,·this·is·the·last·chunk·in·the·string.·If·non-empty,·an19 <p>If·empty,·this·is·the·last·chunk·in·the·string.·If·non-empty,·an
20 unexpected·byte·was·encountered·or·the·end·of·the·input·was·reached20 unexpected·byte·was·encountered·or·the·end·of·the·input·was·reached
21 unexpectedly.</p>21 unexpectedly.</p>
22 <p>Lossy·decoding·would·replace·this·sequence·with·<a·href="https://doc.rust-lang.org/1.84.0/core/char/constant.REPLACEMENT_CHARACTER.html"·title="constant·core::char::REPLACEMENT_CHARACTER"><code>U+FFFD·REPLACEMENT·CHARACTER</code></a>.</p>22 <p>Lossy·decoding·would·replace·this·sequence·with·<a·href="../../core/char/constant.REPLACEMENT_CHARACTER.html"·title="constant·core::char::REPLACEMENT_CHARACTER"><code>U+FFFD·REPLACEMENT·CHARACTER</code></a>.</p>
23 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-Utf8Chunk%3C'a%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.79.0">1.79.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/str/lossy.rs.html#70">Source</a></span><a·href="#impl-Clone-for-Utf8Chunk%3C'a%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait[·...·truncated·by·diffoscope;·len:·5510,·SHA:·4cf3ad53d7e331ec303ef7cbd7d80fd9724062788cef8334e074196f6da85530·...·]/core/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>!=</code>.·The·default·implementation·is·almost·always·sufficient,23 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-Utf8Chunk%3C'a%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.79.0">1.79.0</span>···<a·class="src"·href="../../src/core/str/lossy.rs.html#70">Source</a></span><a·href="#impl-Clone-for-Utf8Chunk%3C'a%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a&gt;·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a[·...·truncated·by·diffoscope;·len:·4943,·SHA:·1eba35f2572e2ee89ab58745cc2cf75cb4d4b2c2fef4fea33539bccdd95c9128·...·]/core/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>!=</code>.·The·default·implementation·is·almost·always·sufficient,
24 and·should·not·be·overridden·without·very·good·reason.</div></details></div></details><section·id="impl-Eq-for-Utf8Chunk%3C'a%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.79.0">1.79.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/str/lossy.rs.html#70">Source</a></span><a·href="#impl-Eq-for-Utf8Chunk%3C'a%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.Eq.h[·...·truncated·by·diffoscope;·len:·4189,·SHA:·b89f4470636a9487312f5261b32a9db2418fa3d21f96fdbd57becc333f56d33d·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where24 and·should·not·be·overridden·without·very·good·reason.</div></details></div></details><section·id="impl-Eq-for-Utf8Chunk%3C'a%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.79.0">1.79.0</span>···<a·class="src"·href="../../src/core/str/lossy.rs.html#70">Source</a></span><a·href="#impl-Eq-for-Utf8Chunk%3C'a%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a&gt;·<a·class="trait"·href="../../core/cmp/trait.Eq.html"·title="trait·core::cmp::Eq">Eq</a>·for·<a·class="[·...·truncated·by·diffoscope;·len:·3865,·SHA:·86029bfe3cdcca4a91abab54468036f6cf878a24d991be45ac2194789bd57236·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where
25 ····T:·'static·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method[·...·truncated·by·diffoscope;·len:·834,·SHA:·47dfc2aa0101a4103e2a94c1f971c559790d87a62d58631fd2bfed98e6616a34·...·]/src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where25 ····T:·'static·+·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·[·...·truncated·by·diffoscope;·len:·672,·SHA:·ace7a059971745d739c5abd9821e5d1d485cc233fd42150ceb251bdea1ce6bf7·...·]/src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where
26 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·[·...·truncated·by·diffoscope;·len:·737,·SHA:·9e65370662e77fc5c56c98c66a5dfda3c1d1244574dc8806ab91a8967514da78·...·]/src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.BorrowMut.html"·title="trait·alloc::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where26 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·r[·...·truncated·by·diffoscope;·len:·629,·SHA:·8e6f5d2e4a2830729c5d495459113ca6f54993696d7dc71c1f46e5691f5108ed·...·]/src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.BorrowMut.html"·title="trait·alloc::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where
27 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="met[·...·truncated·by·diffoscope;·len:·954,·SHA:·5ca69698d4bb8de1849b64ae87544dc0ec2bdd1a4d8dc75ba8d58b2c6c6a9ae6·...·]/core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where27 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="s[·...·truncated·by·diffoscope;·len:·819,·SHA:·3ca215d87d373be29774fff31d75c216034e4aa910e49de0e3fc5b88c46bc387·...·]/core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where
28 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="[·...·truncated·by·diffoscope;·len:·1883,·SHA:·e07301fb9e28f950d7450480a6b68014ffcdcc3be12b1adda27936cb1244377e·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>28 ····T:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·class[·...·truncated·by·diffoscope;·len:·1613,·SHA:·fde0dd5e9bb3fa078effcc98999e7fcc8b1aa390c8b7a3b6a3d8fd02f0c83e78·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>
29 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where29 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where
30 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="m[·...·truncated·by·diffoscope;·len:·237,·SHA:·98603c35860102b3af9b5cf27aeabf39e3c03236551986a6ec030817f108d919·...·]/core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>30 ····U:·<a·class="trait"·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class=[·...·truncated·by·diffoscope;·len:·156,·SHA:·79561c49c77b14346871935198fc061d00c9e84705db975b0451f5fb4f6af9a0·...·]/core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>
31 <p>That·is,·this·conversion·is·whatever·the·implementation·of31 <p>That·is,·this·conversion·is·whatever·the·implementation·of
32 <code><a·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>32 <code><a·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>
33 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#82-94">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where33 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#82-94">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where
34 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·t[·...·truncated·by·diffoscope;·len:·1979,·SHA:·f368483b3c0c332622730cfd8e12b999a38da27428f159611e979a5a04486d0c·...·]/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where34 ····T:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src·ri[·...·truncated·by·diffoscope;·len:·1871,·SHA:·5d02ea96bd0cae49516e469609d9e5f2add38a0bdc9952dbf03901b514350c50·...·]/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where
35 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="asso[·...·truncated·by·diffoscope;·len:·1973,·SHA:·db4b8407e8e20581ad139aef25a6221a11da0f5f18d6aa35aa33eb843f4e1b9f·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where35 ····U:·<a·class="trait"·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·c[·...·truncated·by·diffoscope;·len:·1676,·SHA:·4c73b68f4fb433b5f24fbcd660156381e5dd9f46425d075b558b9b6ca0705f88·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where
36 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·clas[·...·truncated·by·diffoscope;·len:·1578,·SHA:·998d5af10fd889567cd999d1306bfd16c91134d2238a3c172f1e7fa8ed138c18·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>36 ····U:·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-imp[·...·truncated·by·diffoscope;·len:·1308,·SHA:·6741e462a0e1b36010204263b7580305663bb27f362987d14303068592f9f358·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>
319 KB
./usr/share/doc/rust-doc/html/alloc/str/struct.Utf8Chunks.html
    
Offset 1, 9 lines modifiedOffset 1, 9 lines modified
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="An·iterator·used·to·decode·a·slice·of·mostly·UTF-8·bytes·to·string·slices·(`&#38;str`)·and·byte·slices·(`&#38;[u8]`)."><title>Utf8Chunks·in·alloc::str·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»    2025-01-07)» (built»   from»       a»      source»tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Utf8<wbr>Chunks</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#examples"·title="Examples">Examples</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-Utf8Chunks%3C'a%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-Utf8Chunks%3C'_%3E"·title="Debug">Debug</a></li><li><a·href="#impl-FusedIterator-for-Utf8Chunks%3C'_%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-Utf8Chunks%3C'a%3E"·title="Iterator">Iterator</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-Utf8Chunks%3C'a%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Utf8Chunks%3C'a%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Utf8Chunks%3C'a%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-Utf8Chunks%3C'a%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-Utf8Chunks%3C'a%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Utf8Chunks%3C'a%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>str</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">alloc</a>::<wbr><a·href="index.html">str</a></span><h1>Struct·<span·class="struct">Utf8Chunks</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.79.0">1.79.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/str/lossy.rs.html#179">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·Utf8Chunks&lt;'a&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>An·iterator·used·to·decode·a·slice·of·mostly·UTF-8·bytes·to·string·slices1 <!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="An·iterator·used·to·decode·a·slice·of·mostly·UTF-8·bytes·to·string·slices·(`&#38;str`)·and·byte·slices·(`&#38;[u8]`)."><title>Utf8Chunks·in·alloc::str·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»    2025-01-07)» (built»   from»       a»      source»tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Utf8<wbr>Chunks</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#examples"·title="Examples">Examples</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-Utf8Chunks%3C'a%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-Utf8Chunks%3C'_%3E"·title="Debug">Debug</a></li><li><a·href="#impl-FusedIterator-for-Utf8Chunks%3C'_%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-Utf8Chunks%3C'a%3E"·title="Iterator">Iterator</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-Utf8Chunks%3C'a%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Utf8Chunks%3C'a%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Utf8Chunks%3C'a%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-Utf8Chunks%3C'a%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-Utf8Chunks%3C'a%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Utf8Chunks%3C'a%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>str</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">alloc</a>::<wbr><a·href="index.html">str</a></span><h1>Struct·<span·class="struct">Utf8Chunks</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.79.0">1.79.0</span>···<a·class="src"·href="../../src/core/str/lossy.rs.html#179">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·Utf8Chunks&lt;'a&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>An·iterator·used·to·decode·a·slice·of·mostly·UTF-8·bytes·to·string·slices
2 (<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.str.html"·title="primitive·str"><code>&amp;str</code></a>)·and·byte·slices·(<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html"·title="primitive·slice"><code>&amp;[u8]</code></a>).</p>2 (<a·href="../../core/primitive.str.html"·title="primitive·str"><code>&amp;str</code></a>)·and·byte·slices·(<a·href="../../core/primitive.slice.html"·title="primitive·slice"><code>&amp;[u8]</code></a>).</p>
3 <p>If·you·want·a·simple·conversion·from·UTF-8·byte·slices·to·string·slices,3 <p>If·you·want·a·simple·conversion·from·UTF-8·byte·slices·to·string·slices,
4 <a·href="fn.from_utf8.html"·title="fn·alloc::str::from_utf8"><code>from_utf8</code></a>·is·easier·to·use.</p>4 <a·href="fn.from_utf8.html"·title="fn·alloc::str::from_utf8"><code>from_utf8</code></a>·is·easier·to·use.</p>
5 <p>See·the·<a·href="struct.Utf8Chunk.html"·title="struct·alloc::str::Utf8Chunk"><code>Utf8Chunk</code></a>·type·for·documenation·of·the·items·yielded·by·this·iterator.</p>5 <p>See·the·<a·href="struct.Utf8Chunk.html"·title="struct·alloc::str::Utf8Chunk"><code>Utf8Chunk</code></a>·type·for·documenation·of·the·items·yielded·by·this·iterator.</p>
6 <h2·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h2>6 <h2·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h2>
7 <p>This·can·be·used·to·create·functionality·similar·to7 <p>This·can·be·used·to·create·functionality·similar·to
8 <a·href="../../std/string/struct.String.html#method.from_utf8_lossy"><code>String::from_utf8_lossy</code></a>·without·allocating·heap·memory:</p>8 <a·href="../../std/string/struct.String.html#method.from_utf8_lossy"><code>String::from_utf8_lossy</code></a>·without·allocating·heap·memory:</p>
  
Offset 12, 228 lines modifiedOffset 12, 228 lines modified
12 ········push(chunk.valid());12 ········push(chunk.valid());
  
13 ········<span·class="kw">if·</span>!chunk.invalid().is_empty()·{13 ········<span·class="kw">if·</span>!chunk.invalid().is_empty()·{
14 ············push(<span·class="string">"\u{FFFD}"</span>);14 ············push(<span·class="string">"\u{FFFD}"</span>);
15 ········}15 ········}
16 ····}16 ····}
17 }</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++fn+from_utf8_lossy%3CF%3E(input:+%26%5Bu8%5D,+mut+push:+F)+where+F:+FnMut(%26str)+%7B%0A++++++++for+chunk+in+input.utf8_chunks()+%7B%0A++++++++++++push(chunk.valid());%0A++++%0A++++++++++++if+!chunk.invalid().is_empty()+%7B%0A++++++++++++++++push(%22%5Cu%7BFFFD%7D%22);%0A++++++++++++%7D%0A++++++++%7D%0A++++%7D%0A%7D&amp;edition=2021"></a></div>17 }</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++fn+from_utf8_lossy%3CF%3E(input:+%26%5Bu8%5D,+mut+push:+F)+where+F:+FnMut(%26str)+%7B%0A++++++++for+chunk+in+input.utf8_chunks()+%7B%0A++++++++++++push(chunk.valid());%0A++++%0A++++++++++++if+!chunk.invalid().is_empty()+%7B%0A++++++++++++++++push(%22%5Cu%7BFFFD%7D%22);%0A++++++++++++%7D%0A++++++++%7D%0A++++%7D%0A%7D&amp;edition=2021"></a></div>
18 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-Utf8Chunks%3C'a%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.79.0">1.79.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/str/lossy.rs.html#178">Source</a></span><a·href="#impl-Clone-for-Utf8Chunks%3C'a%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/tra[·...·truncated·by·diffoscope;·len:·6258,·SHA:·bc7a9099cd025c0b9f444cc5b1e047bbe7ed19bf51277b6116d95f3bf936b63d·...·]/core/primitive.usize.html">usize</a>&gt;(18 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-Utf8Chunks%3C'a%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.79.0">1.79.0</span>···<a·class="src"·href="../../src/core/str/lossy.rs.html#178">Source</a></span><a·href="#impl-Clone-for-Utf8Chunks%3C'a%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a&gt;·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone<[·...·truncated·by·diffoscope;·len:·5637,·SHA:·f33eb269c499f67d040cdfcef66d7473bb2ec29ab3e4966e370df22252c43b32·...·]/core/primitive.usize.html">usize</a>&gt;(
19 ····&amp;mut·self,19 ····&amp;mut·self,
20 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·4f557a9b49151e0be8c52ffd68f1def4469c08164239dc8bef8df2040551c5ef·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where20 )·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">It[·...·truncated·by·diffoscope;·len:·246,·SHA:·baf6c8e6f3d5dbac69324111240b1587dbb858d42149cae1ee895a165289ff4f·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where
21 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·2082,·SHA:·a83a032e1004fe4c3d3b7e56fd0b204c97eb443397e8e7afb9497dc56a12f3d1·...·]/core/primitive.usize.html">usize</a><div·class="where">where21 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_next_ch[·...·truncated·by·diffoscope;·len:·1785,·SHA:·2b1767ea9838432dd0ad4b6ebbd7624f7df5deec47bd49c03bb84f50f19d65ab·...·]/core/primitive.usize.html">usize</a><div·class="where">where
22 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·counting·the·number·of·iterations·and·returning·it.·<a·href="https://doc.[·...·truncated·by·diffoscope;·len:·837,·SHA:·47e25b6f9687bcc1d1fcdf9842fb085e6aba767d70531028f948636b80563dfc·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where22 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·counting·the·number·of·iterations·and·returning·it.·<a·href="../../core/iter/traits/iterator/trait.I[·...·truncated·by·diffoscope;·len:·675,·SHA:·1ce62884794ba87e19a0c96720594ee19d36bf34d9a84160028eeff78b648fa9·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
23 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·returning·the·last·element.·<a·href="https://doc.rust-lang.org/1.84.0/cor[·...·truncated·by·diffoscope;·len:·3504,·SHA:·ec43d0f6d8d2a1e0fb7a684c382b9934abe1250844e53cce08bdfc6017ecb276·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where23 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·returning·the·last·element.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.last[·...·truncated·by·diffoscope;·len:·2964,·SHA:·db62f7c0fcc4ed24f8d8d5c90b4eb970e1ba2f576e1c200c74164f961b4de28e·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where
24 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by24 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by
25 the·given·amount·at·each·iteration.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><sp[·...·truncated·by·diffoscope;·len:·842,·SHA:·945c4509a8daf2f8fbccc5c6e5089e225955911e03a3e411f047f96d52d16862·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where25 the·given·amount·at·each·iteration.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Sta[·...·truncated·by·diffoscope;·len:·680,·SHA:·77241b5118fcbc984cb791fa9f75077307e18056b66492741335faf440cbdabc·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
26 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,26 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
27 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·3b5ce32f9d564c3aa7cf2adc7130e674758d0c0f4f1275b4c3b46a74aa802cb3·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where27 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·1113,·SHA:·ccf22d19f49a25daffdcc6d9226d5107457a8bfd16beccfeff5020d151bdb8bb·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
28 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,28 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
29 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·[·...·truncated·by·diffoscope;·len:·868,·SHA:·abdbf27ccc84063c7040d8fa3da9d0bda5ee310a470ef576e15554aee4bd5d21·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where29 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·of·pairs.·<a·href="../../co[·...·truncated·by·diffoscope;·len:·706,·SHA:·f32c568f049122021445a983654582d97ac74064a3e99c3361b348bd7708c1b2·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where
30 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,30 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
31 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent31 ····Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent
32 items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="sr[·...·truncated·by·diffoscope;·len:·427,·SHA:·6e82ad4aad49c2165d869fe30d20a968580a973cdb3a7f4c77f49e16dd59393e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where32 items·of·the·original·iterator.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="src·rightside"·href="../../sr[·...·truncated·by·diffoscope;·len:·319,·SHA:·8babc469a22056fc5a02684b52f9f93ba9c27a3dd2e8443ddc060797054e211e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where
33 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,33 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
34 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>34 ····G:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>
35 between·adjacent·items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightsi[·...·truncated·by·diffoscope;·len:·471,·SHA:·ed10488b7b2ccc3e4cc84a9a57a9695a74c1c964962e8d753cbace12f3318a66·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where35 between·adjacent·items·of·the·original·iterator.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·tit[·...·truncated·by·diffoscope;·len:·363,·SHA:·09aee21fa4172b743a714e2cb5915129575ce0224df49c7343dec38f43b7ecfd·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where
36 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,36 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
37 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each37 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each
38 element.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><spa[·...·truncated·by·diffoscope;·len:·306,·SHA:·61c87c39b177830189b0e4c036d97c40d8b9649d76432c90afb88de59498e8b2·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where38 element.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stab[·...·truncated·by·diffoscope;·len:·225,·SHA:·a0f2490a1a5fd6b44e0ab01199cbbbd6e5463251405d11eaf6798c9b50bbd683·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where
39 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,39 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
40 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·a65da32c5f5ef8335cb607d3b4ab3f8a25877bc2c2e8b44ca9d575caecd5c8a5·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where40 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·754,·SHA:·421e55a5747cab3df1dad40b747b4633f241bdc13a1546bb19b1370788dea27d·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where
41 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,41 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
42 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·6d69c85c69fa789be551ea42d95c33c237d12a04ef157f9ddaaead1177f7771e·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element42 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·59,·SHA:·76969e34965f1923de668a65a9f5c33f73266468c9b96650bcc5fd498e606a6b·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element
43 should·be·yielded.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·489,·SHA:·9bdc636899f4e4e5a26a3a21c9603f72b3fb972865d2f459c38b7e2ac8fed7f1·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where43 should·be·yielded.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·cf812944678f6755720896cf32b330946303afe59f1b1c11adeb6a7f33454c8d·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where
44 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,44 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
45 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·46dbf841c7aecd3f06bd4c944af21650faeac98c46c515dcfe643302618b1ecd·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where45 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·863,·SHA:·c2bab87fa2a70713bd2d34b3dcae8f4ff2341917103b43a1dd505317f15d6cff·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where
46 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as46 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as
47 the·next·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside[·...·truncated·by·diffoscope;·len:·468,·SHA:·52f7ff7f264284c3acc4429ca34d057ded9afa2e3d9d6e07571e252db9a48977·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where47 the·next·value.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title[·...·truncated·by·diffoscope;·len:·360,·SHA:·688416dc1aaaa0be069177270ba9e74b3d1b92521285a109dc7ba86b58c1f22a·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where
48 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·c0180fefce4346b0b4089e5c642521d7716108241c0ce6ec3e910c7a2c7364b4·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods48 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="../../core/iter/adapters/peekable/struct.Peekable.html#method.peek"·title="m[·...·truncated·by·diffoscope;·len:·94,·SHA:·78aeab33f83c647dfe680c1050358c95977e3af17eabde4a04880721ea1a619d·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods
49 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See49 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See
50 their·documentation·for·more·information.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightsid[·...·truncated·by·diffoscope;·len:·498,·SHA:·e4a68861585faec6a5032b3b69d6dfb0f2799b5f387a527d9a1365571ed02069·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where50 their·documentation·for·more·information.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightside"><span·class="since"·titl[·...·truncated·by·diffoscope;·len:·390,·SHA:·5da622ae0e4d00b47239007520070e22568156d6c5b1662db8b80b465934b18c·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where
51 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,51 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
52 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·93281c1f6402743fd61110c11cf676f0f67eddceda801b4eb35e5fe9f85870fd·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where52 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·1018,·SHA:·732548acff5239e9a7b904f32790c90ab3b63522635334128f35e01d37ceaeb6·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where
53 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,53 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
54 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·f1cdbb1ec64f98fabbe1d89c88b03824310926cd7eaa160953ce2452fc3abb77·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where54 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·869,·SHA:·8ec7e525848424d5104dbdd10928d17cfee4e5aee63cdda7ecdbe323b30b59d3·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where
55 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,55 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
56 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·f94a0b2c1396b13b89aca7830197ebf19e2c0e5ba536a9cc25b325a481799510·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where56 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·947,·SHA:·fdd074315a0bfb226f815b1b6ea114c7367886338ffffff233d7f6fc3108769a·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where
57 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="https://doc.rust-lang[·...·truncated·by·diffoscope;·len:·783,·SHA:·c14217b89e3292a50a09192a8857485891fc769f861e1d1fc4322d04295c86ef·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where57 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="../../core/iter/traits/iterator/trait.Iterator.h[·...·truncated·by·diffoscope;·len:·621,·SHA:·484df7f946e7f2f69c3acad8964421c0db8ac5bb40032d11bbd862e20e67704c·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where
58 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer58 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer
59 if·the·underlying·iterator·ends·sooner.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·c[·...·truncated·by·diffoscope;·len:·488,·SHA:·76f753d5a273a09a73127631acaa0ee947326a929f33be291018188793e1af56·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where59 if·the·underlying·iterator·ends·sooner.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·[·...·truncated·by·diffoscope;·len:·380,·SHA:·fa258c7e0b5d583304a69e2d4e19f3d4cc9a9ed830bdf3796eaa0968bdf590b4·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where
60 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,60 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
61 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·07d303586c8ad4e0082d5b44bff8eeda03cdb8f4bdbe46489f9232bca5a43ec6·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but61 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterat[·...·truncated·by·diffoscope;·len:·314,·SHA:·299331ff47adaff3ebc292c53557ad34da957aef932f87ec0444c7f856820410·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but
62 unlike·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·2b20882d9583cee50e0c8b3cf362b27ce0d524db387d4aa4093d622b9370dada·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where62 unlike·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.scan">Read·more[·...·truncated·by·diffoscope;·len:·555,·SHA:·77279e392f259f6d4859f5a7747ee4b4d5315f3af0ac3baebf1d53be3461b312·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where
63 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,63 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
64 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,64 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
65 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·933,·SHA:·4af94b75ba5c1e03d2d70590d2fd0706f13b3080fbff0f5b98e7b109048c403d·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where65 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·771,·SHA:·a1a50c8ca4c13151c7b22ce05c74c449231e1ffe44225beee67ff212fc1d3859·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where
66 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,66 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
67 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.I[·...·truncated·by·diffoscope;·len:·968,·SHA:·e5572ed2f3bdf5970d038da608f2f592d945541207c483c257fe5789efba168a·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where67 ····Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::col[·...·truncated·by·diffoscope;·len:·779,·SHA:·a4e524bd8aa8a1e0a66409d1b462b88093ab51a1f901ff1a788d7ee63d597f4c·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where
68 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,68 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
69 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·3013c0e49b0dade37f8ca096eccc5ceeb03fc79b9d320a4c92486d23b88d1009·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over69 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·54,·SHA:·6acee514e4d8df8979b4bba687b7e0d5dbb0ea4f98a7019e2fb03f3a8058df0f·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over
70 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,70 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="../../core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,
71 the·windows·during·mapping·overlap·as·well.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside">[·...·truncated·by·diffoscope;·len:·454,·SHA:·040991f3914479bcc92615de2b81df7363656323622e5aadc964e1a61917d23e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where71 the·windows·during·mapping·overlap·as·well.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="[·...·truncated·by·diffoscope;·len:·346,·SHA:·b1244a5f92e0573c29e04e883cf8212ba2586013b3687af07b63c29d2e611530·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where
72 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="https://doc.rust-lang.org/1.84.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·0e0294a45242d5ce9a3ab8f95d6d410756415291d92baa7d12283ef1b3ecc3a0·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where72 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="../../core/option/enum.Option.html#variant.None"·title="variant·cor[·...·truncated·by·diffoscope;·len:·679,·SHA:·ec753d6ecf7b9fe81cb270d78e45e053f2702fff74c7a63c2ab8da22b97fea86·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where
73 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,73 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
74 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·a8b562f71802a421f4745f7d1fadf4f70d98030c829e70f27b692e7915267027·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where74 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·635,·SHA:·ee3a5bcc3544c3f17985966634fef69b1708d641ddb7e62aaac76933935c5ef7·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where
75 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="https://doc.rust-lang.org/1.84.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·b3db7d84f203bbc139b1c52912705d19c664dac762898205fce452c9dc3a5318·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where75 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.by_ref">[·...·truncated·by·diffoscope;·len:·415,·SHA:·7e0e075470d2db380bcf0838446659654c982aa2ca7831ed7d0317877855be2a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where
76 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,76 ····B:·<a·class="trait"·href="../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
77 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·431,·SHA:·a705a23f6d810357e7dcac670743884665ffcccfb9b780d0aa03720be8ca5625·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(77 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.collect">Read[·...·truncated·by·diffoscope;·len:·323,·SHA:·80e0dde3814a6e7cf4e30949627abc841ab4e98e2a920efb248777e22708682d·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(
78 ····&amp;mut·self,78 ····&amp;mut·self,
79 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.h[·...·truncated·by·diffoscope;·len:·479,·SHA:·fa749442d890055f86ceb34f411c84fd7ea08302b336d786d1ca36fe5868b020·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where79 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&g[·...·truncated·by·diffoscope;·len:·344,·SHA:·c06c6401df0a7150633e94cc973521da42e09819b07be80ba18d6acb696860a9·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
80 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,80 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
81 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>,81 ····Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>,
82 ····&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.h[·...·truncated·by·diffoscope;·len:·300,·SHA:·3bff089180bac38df7f42b87556fae7641185b89a949c284f53e3ac718a6decb·...·]/core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;B&gt;,82 ····&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&g[·...·truncated·by·diffoscope;·len:·192,·SHA:·039ceb6ce31fc6b1871e3e366efbd0f164f4a6cc1bc25554bba598b0ee820cca·...·]/core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;B&gt;,
83 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/itera[·...·truncated·by·diffoscope;·len:·323,·SHA:·b5c51f161dc9d77fd81d1fd23cc71fbf42ac00f3168cf9e41ebaaa2b6eb25363·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if83 ····B:·<a·class="trait"·href="../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="ty[·...·truncated·by·diffoscope;·len:·215,·SHA:·ddb8fbd12147eecef1697edd4c63187cc514ab4b851290335adfcccc3fa429ba·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if
84 a·failure·is·encountered.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·ri[·...·truncated·by·diffoscope;·len:·521,·SHA:·6a54376815dab985ec8cc35604d035e98e3003b1563c9b41e70966084505542b·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where84 a·failure·is·encountered.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/co[·...·truncated·by·diffoscope;·len:·386,·SHA:·d46a776c329de4f757930edda252586c2cdd85c6956b7b2f68448da33ee0625e·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
85 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,85 ····E:·<a·class="trait"·href="../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
86 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·975,·SHA:·94f7f970236ba59ba5f1415764a0e3ab2f3093c6b79e76c25c797ac24a3c4d09·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where86 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_collect[·...·truncated·by·diffoscope;·len:·840,·SHA:·1ee6fbe4deb3d959e9ade58fb7ed3efa79d09721ed02fbb5f5f82aae6aa1425d·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
87 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,87 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
88 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·b480ec650ba000fe7cb67df58fc0351299638ee3e8f00db18f74ca24d69f9894·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,88 ····B:·<a·class="trait"·href="../../core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtyp[·...·truncated·by·diffoscope;·len:·14,·SHA:·4105980ca4887a52797067761af25a11e3de6069cd8d7c8ce82cd885bb798fe8·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
89 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·fdf5a1845f070855ba2cfd0c8c85460ea5cb646c4d3b42a8431bf21489c73701·...·]/core/primitive.usize.html">usize</a><div·class="where">where89 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·806,·SHA:·4d554b733db12e71a31ec2477a31408041941b0e2b0dc910904ecf2fced9f65b·...·]/core/primitive.usize.html">usize</a><div·class="where">where
90 ····T:·'a,90 ····T:·'a,
91 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·1fc250e258e9e42e4fa3e22f86ecd57057e9ff23e47af1aec778076a7a891134·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,91 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIter[·...·truncated·by·diffoscope;·len:·51,·SHA:·c9be73bbed9d11ecac2a179f480a640f51d6255f26712667ffdabc72c1fc7fb0·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,
92 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·5846407374f20f525a4a0663ad4488141eafe64513ef82581dc5df5c2d200745·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_partition_in_place</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62543">#62543</a>)</span></div></span><div·class='docblock'>Reorders·the·elements·of·this·iterator·<em>in-place</em>·according·to·the·given·predicate,92 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="../../core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_partition_in_place</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62543">#62543</a>)</span></div></span><div·class='docblock'>Reorders·the·elements·of·this·iterator·<em>in-place</em>·according·to·the·given·predicate,
93 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.93 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.
94 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.partition_in_place">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_partitioned"·class="method·trait-impl"><a·clas[·...·truncated·by·diffoscope;·len:·431,·SHA:·4aa7d028146c72d45794efc19a376d4bee3b75eda61ff46d969e440b3dbfa1b0·...·]/core/primitive.bool.html">bool</a><div·class="where">where94 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.partition_in_place">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_partitioned"·class="method·trait-impl"><a·class="src·rightside"·href="../[·...·truncated·by·diffoscope;·len:·323,·SHA:·bfc44418fa28079222aab80e2baccdaffb2d067bbe5d1b5162202d268ad628d7·...·]/core/primitive.bool.html">bool</a><div·class="where">where
95 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,95 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
96 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·fcd03e71f79faad6d9b9a12045d59f4dfabc78e5aefebcabc9c1a5be45e31125·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,96 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·54,·SHA:·d5ac304cc26edf57442227b641dd21c427d0f9cb322b79986f5b15fc49f867b0·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,
97 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><span·class="righ[·...·truncated·by·diffoscope;·len:·319,·SHA:·9b9df13f2f4e5b4dde3908515766e1a474fa30bcb7edc98c15665a016e677c2a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where97 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><span·class="rightside"><span·class="since"·[·...·truncated·by·diffoscope;·len:·238,·SHA:·af6ab768457e0afa1532b80c4296ae18061dac4c765922889b13eead3e5492db·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where
98 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,98 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
99 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,99 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
100 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns100 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns
101 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rights[·...·truncated·by·diffoscope;·len:·321,·SHA:·619fd774190944998148325de99aaa75de66ce4b7e26579fd342c564923a5652·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where101 successfully,·producing·a·single,·final·value.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"·ti[·...·truncated·by·diffoscope;·len:·240,·SHA:·125e84deea747ccbe139725d028362287beed6a89ab9da3a3aabd7df537abc59·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where
102 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,102 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
103 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,103 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
104 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the104 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="../../core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the
105 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·307,·SHA:·5975144fd8566efa93ad1ccec09297e280924b7372e08681d2103702124e2c52·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where105 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title=[·...·truncated·by·diffoscope;·len:·226,·SHA:·a7510e9271e68887d9e2681c6bc28312cec9ac38883128845f52742935a160a9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where
106 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,106 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
107 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,107 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,
108 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span[·...·truncated·by·diffoscope;·len:·619,·SHA:·8813f54846438870310d5f5dfabd2335a9dbf51e9da2e4cd681bcb6077d39628·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where108 returning·the·final·result.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stabl[·...·truncated·by·diffoscope;·len:·484,·SHA:·5f42e8d5ff08f4c76870e6cb9165e054f9a0d99051d9886ccd43d5c8a91e1fbc·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
109 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,109 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
110 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·084691f7fc4e7f4da7db385127d0ce8d2d52f6740757129a65910c4db0dc180d·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing110 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·244,·SHA:·f09ac7e818239538c3f3208cb5c76076c24a0153797eb762821d5bf2a382d83b·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing
111 operation.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·217,·SHA:·447ae00256be3de069c602a6c04889808c883eae6fa349d023f53bdd5570ecae·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(111 operation.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/iter[·...·truncated·by·diffoscope;·len:·136,·SHA:·97e3ee132585582ec7077e3bbd86406d8a2dcfc97dce7fd52b49af3ec1b58622·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(
112 ····&amp;mut·self,112 ····&amp;mut·self,
113 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R, 
114 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.T[·...·truncated·by·diffoscope;·len:·950,·SHA:·817376e71f7a0d170bfbd4b7264c15d324f49c65106c49349d11a077842aa533·...·]113 ····f:·impl·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core:[·...·truncated·by·diffoscope;·len:·238,·SHA:·a52edc1a1ce1db5dd6e620dbfe5acb58fdc6d84f2320cef02845988aa54e5c55·...·]
 114 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;&gt;&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
115 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,115 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
116 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,116 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
117 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·764ea8f08626b05426a76738d54ebb2d640042494d76cba8c20d868bfdc07a73·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the117 ····&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>:·<a[·...·truncated·by·diffoscope;·len:·277,·SHA:·0dd064909226a9691486376740de1e17aa133a7ae2f635bee3feaa9b19d7b580·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the
118 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><span·class="rightside"><s[·...·truncated·by·diffoscope;·len:·476,·SHA:·aef721c14147dea2fbec70dcfa76916b3f1273bed8304f4c9db310ca23d1e4b1·...·]/core/primitive.bool.html">bool</a><div·class="where">where118 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="St[·...·truncated·by·diffoscope;·len:·368,·SHA:·6dbfbc90b7cfda9017074212ce0beeb560c8f9ba918ba7b00292e34daa531cc2·...·]/core/primitive.bool.html">bool</a><div·class="where">where
119 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,119 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
120 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·7c48e62c73a40a5cb5ebbf4a22cd789b342a88ad3d855022191f2bae33c736c6·...·]/core/primitive.bool.html">bool</a><div·class="where">where120 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·829,·SHA:·c413d95d1072acd820201f12ffb54d04a6c7f3b732f7de46115ba40b4eb1bd3f·...·]/core/primitive.bool.html">bool</a><div·class="where">where
121 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,121 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
122 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·673d69ce0c23e24b2546127c463e67cd2a4c0f7be792712e2b42e75427161b75·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where122 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·956,·SHA:·105c7ff05d33bc9219febe8c9633cf1c1a8d88c32e47e44793d403a428174c66·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
123 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,123 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
124 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·aa5078ff77f5638746395497f8ce92c1b684d342dea851990104d5e9981ab6b0·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where124 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·862,·SHA:·ab608da827ec12779180206da5bfe43676627c19288c1fe674060a00ba44a595·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where
125 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,125 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
126 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·1bd732dff19021a1586bb486282683f5c1bc65d5d514f9e13cc9232b4e94955b·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;,</div></h4></section></summary><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns126 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·49,·SHA:·819211b646a21318a22e9d295452cdf890d5288a631a50261ca1a5b2bac9f748·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;,</div></h4></section></summary><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns
Max diff block lines reached; 158533/326069 bytes (48.62%) of diff not shown.
83.3 KB
./usr/share/doc/rust-doc/html/alloc/str/struct.Utf8Error.html
    
Offset 1, 8 lines modifiedOffset 1, 8 lines modified
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="Errors·which·can·occur·when·attempting·to·interpret·a·sequence·of·`u8`·as·a·string."><title>Utf8Error·in·alloc::str·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»   2025-01-07)»(built»  from»      a»     source»       tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Utf8<wbr>Error</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#examples"·title="Examples">Examples</a></li></ul><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.error_len"·title="error_len">error_len</a></li><li><a·href="#method.valid_up_to"·title="valid_up_to">valid_up_to</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-Utf8Error"·title="Clone">Clone</a></li><li><a·href="#impl-Copy-for-Utf8Error"·title="Copy">Copy</a></li><li><a·href="#impl-Debug-for-Utf8Error"·title="Debug">Debug</a></li><li><a·href="#impl-Display-for-Utf8Error"·title="Display">Display</a></li><li><a·href="#impl-Eq-for-Utf8Error"·title="Eq">Eq</a></li><li><a·href="#impl-Error-for-Utf8Error"·title="Error">Error</a></li><li><a·href="#impl-PartialEq-for-Utf8Error"·title="PartialEq">PartialEq</a></li><li><a·href="#impl-StructuralPartialEq-for-Utf8Error"·title="StructuralPartialEq">StructuralPartialEq</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-Utf8Error"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Utf8Error"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Utf8Error"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-Utf8Error"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-Utf8Error"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Utf8Error"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-ToString-for-T"·title="ToString">ToString</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>str</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">alloc</a>::<wbr><a·href="index.html">str</a></span><h1>Struct·<span·class="struct">Utf8Error</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/str/error.rs.html#47">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·Utf8Error·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·c[·...·truncated·by·diffoscope;·len:·187,·SHA:·38bdc2717382135d8a87264bf5a35d07b8f6025866d889460f29b08f2dd28611·...·]/core/primitive.u8.html"·title="primitive·u8"><code>u8</code></a>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="Errors·which·can·occur·when·attempting·to·interpret·a·sequence·of·`u8`·as·a·string."><title>Utf8Error·in·alloc::str·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»   2025-01-07)»(built»  from»      a»     source»       tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Utf8<wbr>Error</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#examples"·title="Examples">Examples</a></li></ul><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.error_len"·title="error_len">error_len</a></li><li><a·href="#method.valid_up_to"·title="valid_up_to">valid_up_to</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-Utf8Error"·title="Clone">Clone</a></li><li><a·href="#impl-Copy-for-Utf8Error"·title="Copy">Copy</a></li><li><a·href="#impl-Debug-for-Utf8Error"·title="Debug">Debug</a></li><li><a·href="#impl-Display-for-Utf8Error"·title="Display">Display</a></li><li><a·href="#impl-Eq-for-Utf8Error"·title="Eq">Eq</a></li><li><a·href="#impl-Error-for-Utf8Error"·title="Error">Error</a></li><li><a·href="#impl-PartialEq-for-Utf8Error"·title="PartialEq">PartialEq</a></li><li><a·href="#impl-StructuralPartialEq-for-Utf8Error"·title="StructuralPartialEq">StructuralPartialEq</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-Utf8Error"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Utf8Error"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Utf8Error"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-Utf8Error"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-Utf8Error"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Utf8Error"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-ToString-for-T"·title="ToString">ToString</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>str</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">alloc</a>::<wbr><a·href="index.html">str</a></span><h1>Struct·<span·class="struct">Utf8Error</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../src/core/str/error.rs.html#47">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·Utf8Error·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·[·...·truncated·by·diffoscope;·len:·133,·SHA:·085c68a9acfedd322bd1bbced55f624be4a6f73dfddc18c848c2ab82e3f49f6a·...·]/core/primitive.u8.html"·title="primitive·u8"><code>u8</code></a>
2 as·a·string.</p>2 as·a·string.</p>
3 <p>As·such,·the·<code>from_utf8</code>·family·of·functions·and·methods·for·both·<a·href="../../std/string/struct.String.html#method.from_utf8"><code>String</code></a>s3 <p>As·such,·the·<code>from_utf8</code>·family·of·functions·and·methods·for·both·<a·href="../../std/string/struct.String.html#method.from_utf8"><code>String</code></a>s
4 and·<a·href="fn.from_utf8.html"·title="fn·alloc::str::from_utf8"><code>&amp;str</code></a>s·make·use·of·this·error,·for·example.</p>4 and·<a·href="fn.from_utf8.html"·title="fn·alloc::str::from_utf8"><code>&amp;str</code></a>s·make·use·of·this·error,·for·example.</p>
5 <h2·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h2>5 <h2·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h2>
6 <p>This·error·type’s·methods·can·be·used·to·create·functionality6 <p>This·error·type’s·methods·can·be·used·to·create·functionality
7 similar·to·<code>String::from_utf8_lossy</code>·without·allocating·heap·memory:</p>7 similar·to·<code>String::from_utf8_lossy</code>·without·allocating·heap·memory:</p>
  
Offset 25, 15 lines modifiedOffset 25, 15 lines modified
25 ················}·<span·class="kw">else·</span>{25 ················}·<span·class="kw">else·</span>{
26 ····················<span·class="kw">break26 ····················<span·class="kw">break
27 ················</span>}27 ················</span>}
28 ············}28 ············}
29 ········}29 ········}
30 ····}30 ····}
31 }</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++fn+from_utf8_lossy%3CF%3E(mut+input:+%26%5Bu8%5D,+mut+push:+F)+where+F:+FnMut(%26str)+%7B%0A++++++++loop+%7B%0A++++++++++++match+std::str::from_utf8(input)+%7B%0A++++++++++++++++Ok(valid)+=%3E+%7B%0A++++++++++++++++++++push(valid);%0A++++++++++++++++++++break%0A++++++++++++++++%7D%0A++++++++++++++++Err(error)+=%3E+%7B%0A++++++++++++++++++++let+(valid,+after_valid)+=+input.split_at(error.valid_up_to());%0A++++++++++++++++++++unsafe+%7B%0A++++++++++++++++++++++++push(std::str::from_utf8_unchecked(valid))%0A++++++++++++++++++++%7D%0A++++++++++++++++++++push(%22%5Cu%7BFFFD%7D%22);%0A++++%0A++++++++++++++++++++if+let+Some(invalid_sequence_length)+=+error.error_len()+%7B%0A++++++++++++++++++++++++input+=+%26after_valid%5Binvalid_sequence_length..%5D%0A++++++++++++++++++++%7D+else+%7B%0A++++++++++++++++++++++++break%0A++++++++++++++++++++%7D%0A++++++++++++++++%7D%0A++++++++++++%7D%0A++++++++%7D%0A++++%7D%0A%7D&amp;edition=2021"></a></div>31 }</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++fn+from_utf8_lossy%3CF%3E(mut+input:+%26%5Bu8%5D,+mut+push:+F)+where+F:+FnMut(%26str)+%7B%0A++++++++loop+%7B%0A++++++++++++match+std::str::from_utf8(input)+%7B%0A++++++++++++++++Ok(valid)+=%3E+%7B%0A++++++++++++++++++++push(valid);%0A++++++++++++++++++++break%0A++++++++++++++++%7D%0A++++++++++++++++Err(error)+=%3E+%7B%0A++++++++++++++++++++let+(valid,+after_valid)+=+input.split_at(error.valid_up_to());%0A++++++++++++++++++++unsafe+%7B%0A++++++++++++++++++++++++push(std::str::from_utf8_unchecked(valid))%0A++++++++++++++++++++%7D%0A++++++++++++++++++++push(%22%5Cu%7BFFFD%7D%22);%0A++++%0A++++++++++++++++++++if+let+Some(invalid_sequence_length)+=+error.error_len()+%7B%0A++++++++++++++++++++++++input+=+%26after_valid%5Binvalid_sequence_length..%5D%0A++++++++++++++++++++%7D+else+%7B%0A++++++++++++++++++++++++break%0A++++++++++++++++++++%7D%0A++++++++++++++++%7D%0A++++++++++++%7D%0A++++++++%7D%0A++++%7D%0A%7D&amp;edition=2021"></a></div>
32 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Utf8Error"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/str/error.rs.html#52">Source</a><a·href="#impl-Utf8Error"·class="anchor">§</a><h3·class="code-header">impl·<a·class="struct"·href="struct.Utf8Error.html"·title="struct·alloc::str::Utf8Error">Utf8Error</a></h3></sec[·...·truncated·by·diffoscope;·len:·546,·SHA:·a3dc8393eafe0e93b6bda6dd3193878f84f42ab3076c3e78015c83aeb40fed3b·...·]/core/primitive.usize.html">usize</a></h4></section></summary><div·class="docblock"><p>Returns·the·index·in·the·given·string·up·to·which·valid·UTF-8·was32 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Utf8Error"·class="impl"><a·class="src·rightside"·href="../../src/core/str/error.rs.html#52">Source</a><a·href="#impl-Utf8Error"·class="anchor">§</a><h3·class="code-header">impl·<a·class="struct"·href="struct.Utf8Error.html"·title="struct·alloc::str::Utf8Error">Utf8Error</a></h3></section></summary><div·class="[·...·truncated·by·diffoscope;·len:·465,·SHA:·791d2bd598340a7224f709f6f6fd9c42419f7e0fc83ec8cf0077a0c85b34aa26·...·]/core/primitive.usize.html">usize</a></h4></section></summary><div·class="docblock"><p>Returns·the·index·in·the·given·string·up·to·which·valid·UTF-8·was
33 verified.</p>33 verified.</p>
34 <p>It·is·the·maximum·index·such·that·<code>from_utf8(&amp;input[..index])</code>34 <p>It·is·the·maximum·index·such·that·<code>from_utf8(&amp;input[..index])</code>
35 would·return·<code>Ok(_)</code>.</p>35 would·return·<code>Ok(_)</code>.</p>
36 <h5·id="examples-1"><a·class="doc-anchor"·href="#examples-1">§</a>Examples</h5>36 <h5·id="examples-1"><a·class="doc-anchor"·href="#examples-1">§</a>Examples</h5>
37 <p>Basic·usage:</p>37 <p>Basic·usage:</p>
  
38 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::str;38 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::str;
Offset 42, 15 lines modifiedOffset 42, 15 lines modified
42 </span><span·class="kw">let·</span>sparkle_heart·=·<span·class="macro">vec!</span>[<span·class="number">0</span>,·<span·class="number">159</span>,·<span·class="number">146</span>,·<span·class="number">150</span>];42 </span><span·class="kw">let·</span>sparkle_heart·=·<span·class="macro">vec!</span>[<span·class="number">0</span>,·<span·class="number">159</span>,·<span·class="number">146</span>,·<span·class="number">150</span>];
  
43 <span·class="comment">//·std::str::from_utf8·returns·a·Utf8Error43 <span·class="comment">//·std::str::from_utf8·returns·a·Utf8Error
44 </span><span·class="kw">let·</span>error·=·str::from_utf8(<span·class="kw-2">&amp;</span>sparkle_heart).unwrap_err();44 </span><span·class="kw">let·</span>error·=·str::from_utf8(<span·class="kw-2">&amp;</span>sparkle_heart).unwrap_err();
  
45 <span·class="comment">//·the·second·byte·is·invalid·here45 <span·class="comment">//·the·second·byte·is·invalid·here
46 </span><span·class="macro">assert_eq!</span>(<span·class="number">1</span>,·error.valid_up_to());</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::str;%0A++++%0A++++//+some+invalid+bytes,+in+a+vector%0A++++let+sparkle_heart+=+vec!%5B0,+159,+146,+150%5D;%0A++++%0A++++//+std::str::from_utf8+returns+a+Utf8Error%0A++++let+error+=+str::from_utf8(%26sparkle_heart).unwrap_err();%0A++++%0A++++//+the+second+byte+is+invalid+here%0A++++assert_eq!(1,+error.valid_up_to());%0A%7D&amp;edition=2021"></a></div>46 </span><span·class="macro">assert_eq!</span>(<span·class="number">1</span>,·error.valid_up_to());</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::str;%0A++++%0A++++//+some+invalid+bytes,+in+a+vector%0A++++let+sparkle_heart+=+vec!%5B0,+159,+146,+150%5D;%0A++++%0A++++//+std::str::from_utf8+returns+a+Utf8Error%0A++++let+error+=+str::from_utf8(%26sparkle_heart).unwrap_err();%0A++++%0A++++//+the+second+byte+is+invalid+here%0A++++assert_eq!(1,+error.valid_up_to());%0A%7D&amp;edition=2021"></a></div>
47 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.error_len"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.20.0,·const·since·1.63.0">1.20.0·(const:·1.63.0)</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/str/error.rs.html#102">Source</a></span><h4·class="code-header">pub·const·fn·<a·href="#method.error_len"·class="fn">error_len</a>(&amp;self)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/option/[·...·truncated·by·diffoscope;·len:·125,·SHA:·33236e635ccc211417476250c7bc72b3ab6f9ec0b2d9fb83c2a3013d8e32e0a9·...·]/core/primitive.usize.html">usize</a>&gt;</h4></section></summary><div·class="docblock"><p>Provides·more·information·about·the·failure:</p>47 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.error_len"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.20.0,·const·since·1.63.0">1.20.0·(const:·1.63.0)</span>···<a·class="src"·href="../../src/core/str/error.rs.html#102">Source</a></span><h4·class="code-header">pub·const·fn·<a·href="#method.error_len"·class="fn">error_len</a>(&amp;self)·-&gt;·<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Op[·...·truncated·by·diffoscope;·len:·44,·SHA:·b3db8ff9848b72304ade983229cd0418789960cded4adabe78ce3f1c8bfd2591·...·]/core/primitive.usize.html">usize</a>&gt;</h4></section></summary><div·class="docblock"><p>Provides·more·information·about·the·failure:</p>
48 <ul>48 <ul>
49 <li>49 <li>
50 <p><code>None</code>:·the·end·of·the·input·was·reached·unexpectedly.50 <p><code>None</code>:·the·end·of·the·input·was·reached·unexpectedly.
51 <code>self.valid_up_to()</code>·is·1·to·3·bytes·from·the·end·of·the·input.51 <code>self.valid_up_to()</code>·is·1·to·3·bytes·from·the·end·of·the·input.
52 If·a·byte·stream·(such·as·a·file·or·a·network·socket)·is·being·decoded·incrementally,52 If·a·byte·stream·(such·as·a·file·or·a·network·socket)·is·being·decoded·incrementally,
53 this·could·be·a·valid·<code>char</code>·whose·UTF-8·byte·sequence·is·spanning·multiple·chunks.</p>53 this·could·be·a·valid·<code>char</code>·whose·UTF-8·byte·sequence·is·spanning·multiple·chunks.</p>
54 </li>54 </li>
Offset 59, 22 lines modifiedOffset 59, 22 lines modified
59 The·length·provided·is·that·of·the·invalid·byte·sequence59 The·length·provided·is·that·of·the·invalid·byte·sequence
60 that·starts·at·the·index·given·by·<code>valid_up_to()</code>.60 that·starts·at·the·index·given·by·<code>valid_up_to()</code>.
61 Decoding·should·resume·after·that·sequence61 Decoding·should·resume·after·that·sequence
62 (after·inserting·a·<a·href="../../std/char/constant.REPLACEMENT_CHARACTER.html"><code>U+FFFD·REPLACEMENT·CHARACTER</code></a>)·in·case·of62 (after·inserting·a·<a·href="../../std/char/constant.REPLACEMENT_CHARACTER.html"><code>U+FFFD·REPLACEMENT·CHARACTER</code></a>)·in·case·of
63 lossy·decoding.</p>63 lossy·decoding.</p>
64 </li>64 </li>
65 </ul>65 </ul>
66 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-Utf8Error"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/str/error.rs.html#45">Source</a></span><a·href="#impl-Clone-for-Utf8Error"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title[·...·truncated·by·diffoscope;·len:·11649,·SHA:·0d307809b42fe0776be5fbb11c4f45ad64d46b72215d166355863c9360d07d57·...·]/core/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>!=</code>.·The·default·implementation·is·almost·always·sufficient,66 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-Utf8Error"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/str/error.rs.html#45">Source</a></span><a·href="#impl-Clone-for-Utf8Error"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="st[·...·truncated·by·diffoscope;·len:·10461,·SHA:·f028f8ed81e376e6540585025aceb6f6d8005b6c1bcd5f50350b702ae45812ce·...·]/core/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>!=</code>.·The·default·implementation·is·almost·always·sufficient,
67 and·should·not·be·overridden·without·very·good·reason.</div></details></div></details><section·id="impl-Copy-for-Utf8Error"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/str/error.rs.html#45">Source</a></span><a·href="#impl-Copy-for-Utf8Error"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Copy.html"·title=[·...·truncated·by·diffoscope;·len:·4484,·SHA:·f3bb92580ca81c8b7c715baef318c8d5c8b9ac3d8a74b3b19a875c97930dd3e2·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where67 and·should·not·be·overridden·without·very·good·reason.</div></details></div></details><section·id="impl-Copy-for-Utf8Error"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/str/error.rs.html#45">Source</a></span><a·href="#impl-Copy-for-Utf8Error"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Copy.html"·title="trait·core::marker::Copy">Copy</a>·for·<a·class="stru[·...·truncated·by·diffoscope;·len:·4106,·SHA:·95f53bbc595fd3ae897e8bbffabf125ce6c513c39dd16119ef2ecefd4bd3ec67·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where
68 ····T:·'static·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method[·...·truncated·by·diffoscope;·len:·834,·SHA:·47dfc2aa0101a4103e2a94c1f971c559790d87a62d58631fd2bfed98e6616a34·...·]/src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where68 ····T:·'static·+·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·[·...·truncated·by·diffoscope;·len:·672,·SHA:·ace7a059971745d739c5abd9821e5d1d485cc233fd42150ceb251bdea1ce6bf7·...·]/src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where
69 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·[·...·truncated·by·diffoscope;·len:·737,·SHA:·9e65370662e77fc5c56c98c66a5dfda3c1d1244574dc8806ab91a8967514da78·...·]/src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.BorrowMut.html"·title="trait·alloc::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where69 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·r[·...·truncated·by·diffoscope;·len:·629,·SHA:·8e6f5d2e4a2830729c5d495459113ca6f54993696d7dc71c1f46e5691f5108ed·...·]/src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.BorrowMut.html"·title="trait·alloc::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where
70 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="met[·...·truncated·by·diffoscope;·len:·954,·SHA:·5ca69698d4bb8de1849b64ae87544dc0ec2bdd1a4d8dc75ba8d58b2c6c6a9ae6·...·]/core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where70 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="s[·...·truncated·by·diffoscope;·len:·819,·SHA:·3ca215d87d373be29774fff31d75c216034e4aa910e49de0e3fc5b88c46bc387·...·]/core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where
71 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="[·...·truncated·by·diffoscope;·len:·1883,·SHA:·e07301fb9e28f950d7450480a6b68014ffcdcc3be12b1adda27936cb1244377e·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>71 ····T:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·class[·...·truncated·by·diffoscope;·len:·1613,·SHA:·fde0dd5e9bb3fa078effcc98999e7fcc8b1aa390c8b7a3b6a3d8fd02f0c83e78·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>
72 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where72 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where
73 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="m[·...·truncated·by·diffoscope;·len:·237,·SHA:·98603c35860102b3af9b5cf27aeabf39e3c03236551986a6ec030817f108d919·...·]/core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>73 ····U:·<a·class="trait"·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class=[·...·truncated·by·diffoscope;·len:·156,·SHA:·79561c49c77b14346871935198fc061d00c9e84705db975b0451f5fb4f6af9a0·...·]/core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>
74 <p>That·is,·this·conversion·is·whatever·the·implementation·of74 <p>That·is,·this·conversion·is·whatever·the·implementation·of
75 <code><a·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>75 <code><a·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>
76 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#82-94">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where76 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#82-94">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where
77 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·t[·...·truncated·by·diffoscope;·len:·1350,·SHA:·06ff485c70db27d96df4529c9aabc3407488a0d8b3f238ea19fe87222f3c0e93·...·]/core/primitive.reference.html">&amp;mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToString-for-T"·class="impl"><a·class="src·rightside"·href="../../src/alloc/string.rs.html#2677-2691">Source</a><a·href="#impl-ToString-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../string/trait.ToString.html"·title="trait·alloc::string::ToString">ToString</a>·for·T<div·class="where">where77 ····T:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src·ri[·...·truncated·by·diffoscope;·len:·1296,·SHA:·88285bd52e5f5ad6b3e1b6d101339ab4047bdbd5b9d568c1e216b159cf17296e·...·]/core/primitive.reference.html">&amp;mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToString-for-T"·class="impl"><a·class="src·rightside"·href="../../src/alloc/string.rs.html#2677-2691">Source</a><a·href="#impl-ToString-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../string/trait.ToString.html"·title="trait·alloc::string::ToString">ToString</a>·for·T<div·class="where">where
78 ····T:·<a·class="trait"·href="../fmt/trait.Display.html"·title="trait·alloc::fmt::Display">Display</a>·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.to_string"·class="meth[·...·truncated·by·diffoscope;·len:·956,·SHA:·5fb3fa997a6fe164f1c04c1d4cb696121571b376241266dc87e8079ebdfed810·...·]/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where78 ····T:·<a·class="trait"·href="../fmt/trait.Display.html"·title="trait·alloc::fmt::Display">Display</a>·+·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.to_string"·class="method·trait-impl"><a·class="sr[·...·truncated·by·diffoscope;·len:·875,·SHA:·e58967f6ca4eee938a4135856f0af0adfcd5abe0b4e62c194e5c506c603bfcf1·...·]/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where
79 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="asso[·...·truncated·by·diffoscope;·len:·1973,·SHA:·db4b8407e8e20581ad139aef25a6221a11da0f5f18d6aa35aa33eb843f4e1b9f·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where79 ····U:·<a·class="trait"·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·c[·...·truncated·by·diffoscope;·len:·1676,·SHA:·4c73b68f4fb433b5f24fbcd660156381e5dd9f46425d075b558b9b6ca0705f88·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where
80 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·clas[·...·truncated·by·diffoscope;·len:·1578,·SHA:·998d5af10fd889567cd999d1306bfd16c91134d2238a3c172f1e7fa8ed138c18·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>80 ····U:·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-imp[·...·truncated·by·diffoscope;·len:·1308,·SHA:·6741e462a0e1b36010204263b7580305663bb27f362987d14303068592f9f358·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>
103 KB
./usr/share/doc/rust-doc/html/alloc/str/trait.FromStr.html
    
Offset 1, 15 lines modifiedOffset 1, 15 lines modified
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="Parse·a·value·from·a·string"><title>FromStr·in·alloc::str·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»     2025-01-07)»  (built»    from»a»       source» tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">FromStr</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#examples"·title="Examples">Examples</a></li></ul><h3><a·href="#required-associated-types">Required·Associated·Types</a></h3><ul·class="block"><li><a·href="#associatedtype.Err"·title="Err">Err</a></li></ul><h3><a·href="#required-methods">Required·Methods</a></h3><ul·class="block"><li><a·href="#tymethod.from_str"·title="from_str">from_str</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><a·href="index.html">In·alloc::<wbr>str</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">alloc</a>::<wbr><a·href="index.html">str</a></span><h1>Trait·<span·class="trait">FromStr</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/str/traits.rs.html#798">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·trait·FromStr:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·{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="Parse·a·value·from·a·string"><title>FromStr·in·alloc::str·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»     2025-01-07)»  (built»    from»a»       source» tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">FromStr</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#examples"·title="Examples">Examples</a></li></ul><h3><a·href="#required-associated-types">Required·Associated·Types</a></h3><ul·class="block"><li><a·href="#associatedtype.Err"·title="Err">Err</a></li></ul><h3><a·href="#required-methods">Required·Methods</a></h3><ul·class="block"><li><a·href="#tymethod.from_str"·title="from_str">from_str</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><a·href="index.html">In·alloc::<wbr>str</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">alloc</a>::<wbr><a·href="index.html">str</a></span><h1>Trait·<span·class="trait">FromStr</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../src/core/str/traits.rs.html#798">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·trait·FromStr:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·{
2 ····type·<a·href="#associatedtype.Err"·class="associatedtype">Err</a>;2 ····type·<a·href="#associatedtype.Err"·class="associatedtype">Err</a>;
  
3 ····//·Required·method3 ····//·Required·method
4 ····fn·<a·href="#tymethod.from_str"·class="fn">from_str</a>(s:·&amp;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.str.html">str</a>)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;Self,·Self::<a·class="associatedtype"·href="trait.FromStr.html#associatedtype.Err"·title="type·alloc::str::FromStr::Err">Err</a>&gt;;4 ····fn·<a·href="#tymethod.from_str"·class="fn">from_str</a>(s:·&amp;<a·class="primitive"·href="../../core/primitive.str.html">str</a>)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;Self,·Self::<a·class="associatedtype"·href="trait.FromStr.html#associatedtype.Err"·title="type·alloc::str::FromStr::Err">Err</a>&gt;;
5 }</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Parse·a·value·from·a·string</p>5 }</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Parse·a·value·from·a·string</p>
6 <p><code>FromStr</code>’s·<a·href="trait.FromStr.html#tymethod.from_str"·title="associated·function·alloc::str::FromStr::from_str"><code>from_str</code></a>·method·is·often·used·implicitly,·through6 <p><code>FromStr</code>’s·<a·href="trait.FromStr.html#tymethod.from_str"·title="associated·function·alloc::str::FromStr::from_str"><code>from_str</code></a>·method·is·often·used·implicitly,·through
7 <a·href="https://doc.rust-lang.org/1.84.0/core/primitive.str.html"·title="primitive·str"><code>str</code></a>’s·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.str.html#method.parse"·title="method·str::parse"><code>parse</code></a>·method.·See·<a·href="htt[·...·truncated·by·diffoscope;·len:·29,·SHA:·28208c8b4317d4b364ba52959476a39eb2081475838ecf739a0c5ac33ef82244·...·]/core/primitive.str.html#method.parse"·title="method·str::parse"><code>parse</code></a>’s·documentation·for·examples.</p>7 <a·href="../../core/primitive.str.html"·title="primitive·str"><code>str</code></a>’s·<a·href="../../core/primitive.str.html#method.parse"·title="method·str::parse"><code>parse</code></a>·method.·See·<a·href="../../core/primitive.str.html#method.parse"·title="method·str::parse"><code>parse</code></a>’s·documentation·for·examples.</p>
8 <p><code>FromStr</code>·does·not·have·a·lifetime·parameter,·and·so·you·can·only·parse·types8 <p><code>FromStr</code>·does·not·have·a·lifetime·parameter,·and·so·you·can·only·parse·types
9 that·do·not·contain·a·lifetime·parameter·themselves.·In·other·words,·you·can9 that·do·not·contain·a·lifetime·parameter·themselves.·In·other·words,·you·can
10 parse·an·<code>i32</code>·with·<code>FromStr</code>,·but·not·a·<code>&amp;i32</code>.·You·can·parse·a·struct·that10 parse·an·<code>i32</code>·with·<code>FromStr</code>,·but·not·a·<code>&amp;i32</code>.·You·can·parse·a·struct·that
11 contains·an·<code>i32</code>,·but·not·one·that·contains·an·<code>&amp;i32</code>.</p>11 contains·an·<code>i32</code>,·but·not·one·that·contains·an·<code>&amp;i32</code>.</p>
12 <h2·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h2>12 <h2·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h2>
13 <p>Basic·implementation·of·<code>FromStr</code>·on·an·example·<code>Point</code>·type:</p>13 <p>Basic·implementation·of·<code>FromStr</code>·on·an·example·<code>Point</code>·type:</p>
  
Offset 45, 22 lines modifiedOffset 45, 22 lines modified
45 <span·class="comment">//·Explicit·call45 <span·class="comment">//·Explicit·call
46 </span><span·class="macro">assert_eq!</span>(Point::from_str(<span·class="string">"(1,2)"</span>),·expected);46 </span><span·class="macro">assert_eq!</span>(Point::from_str(<span·class="string">"(1,2)"</span>),·expected);
47 <span·class="comment">//·Implicit·calls,·through·parse47 <span·class="comment">//·Implicit·calls,·through·parse
48 </span><span·class="macro">assert_eq!</span>(<span·class="string">"(1,2)"</span>.parse(),·expected);48 </span><span·class="macro">assert_eq!</span>(<span·class="string">"(1,2)"</span>.parse(),·expected);
49 <span·class="macro">assert_eq!</span>(<span·class="string">"(1,2)"</span>.parse::&lt;Point&gt;(),·expected);49 <span·class="macro">assert_eq!</span>(<span·class="string">"(1,2)"</span>.parse::&lt;Point&gt;(),·expected);
50 <span·class="comment">//·Invalid·input·string50 <span·class="comment">//·Invalid·input·string
51 </span><span·class="macro">assert!</span>(Point::from_str(<span·class="string">"(1·2)"</span>).is_err());</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::str::FromStr;%0A++++%0A++++%23%5Bderive(Debug,+PartialEq)%5D%0A++++struct+Point+%7B%0A++++++++x:+i32,%0A++++++++y:+i32%0A++++%7D%0A++++%0A++++%23%5Bderive(Debug,+PartialEq,+Eq)%5D%0A++++struct+ParsePointError;%0A++++%0A++++impl+FromStr+for+Point+%7B%0A++++++++type+Err+=+ParsePointError;%0A++++%0A++++++++fn+from_str(s:+%26str)+-%3E+Result%3CSelf,+Self::Err%3E+%7B%0A++++++++++++let+(x,+y)+=+s%0A++++++++++++++++.strip_prefix('(')%0A++++++++++++++++.and_then(%7Cs%7C+s.strip_suffix(')'))%0A++++++++++++++++.and_then(%7Cs%7C+s.split_once(','))%0A++++++++++++++++.ok_or(ParsePointError)?;%0A++++%0A++++++++++++let+x_fromstr+=+x.parse::%3Ci32%3E().map_err(%7C_%7C+ParsePointError)?;%0A++++++++++++let+y_fromstr+=+y.parse::%3Ci32%3E().map_err(%7C_%7C+ParsePointError)?;%0A++++%0A++++++++++++Ok(Point+%7B+x:+x_fromstr,+y:+y_fromstr+%7D)%0A++++++++%7D%0A++++%7D%0A++++%0A++++let+expected+=+Ok(Point+%7B+x:+1,+y:+2+%7D);%0A++++//+Explicit+call%0A++++assert_eq!(Point::from_str(%22(1,2)%22),+expected);%0A++++//+Implicit+calls,+through+parse%0A++++assert_eq!(%22(1,2)%22.parse(),+expected);%0A++++assert_eq!(%22(1,2)%22.parse::%3CPoint%3E(),+expected);%0A++++//+Invalid+input+string%0A++++assert!(Point::from_str(%22(1+2)%22).is_err());%0A%7D&amp;edition=2021"></a></div>51 </span><span·class="macro">assert!</span>(Point::from_str(<span·class="string">"(1·2)"</span>).is_err());</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::str::FromStr;%0A++++%0A++++%23%5Bderive(Debug,+PartialEq)%5D%0A++++struct+Point+%7B%0A++++++++x:+i32,%0A++++++++y:+i32%0A++++%7D%0A++++%0A++++%23%5Bderive(Debug,+PartialEq,+Eq)%5D%0A++++struct+ParsePointError;%0A++++%0A++++impl+FromStr+for+Point+%7B%0A++++++++type+Err+=+ParsePointError;%0A++++%0A++++++++fn+from_str(s:+%26str)+-%3E+Result%3CSelf,+Self::Err%3E+%7B%0A++++++++++++let+(x,+y)+=+s%0A++++++++++++++++.strip_prefix('(')%0A++++++++++++++++.and_then(%7Cs%7C+s.strip_suffix(')'))%0A++++++++++++++++.and_then(%7Cs%7C+s.split_once(','))%0A++++++++++++++++.ok_or(ParsePointError)?;%0A++++%0A++++++++++++let+x_fromstr+=+x.parse::%3Ci32%3E().map_err(%7C_%7C+ParsePointError)?;%0A++++++++++++let+y_fromstr+=+y.parse::%3Ci32%3E().map_err(%7C_%7C+ParsePointError)?;%0A++++%0A++++++++++++Ok(Point+%7B+x:+x_fromstr,+y:+y_fromstr+%7D)%0A++++++++%7D%0A++++%7D%0A++++%0A++++let+expected+=+Ok(Point+%7B+x:+1,+y:+2+%7D);%0A++++//+Explicit+call%0A++++assert_eq!(Point::from_str(%22(1,2)%22),+expected);%0A++++//+Implicit+calls,+through+parse%0A++++assert_eq!(%22(1,2)%22.parse(),+expected);%0A++++assert_eq!(%22(1,2)%22.parse::%3CPoint%3E(),+expected);%0A++++//+Invalid+input+string%0A++++assert!(Point::from_str(%22(1+2)%22).is_err());%0A%7D&amp;edition=2021"></a></div>
52 </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.Err"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/str/traits.rs.html#801">Source</a></span><h4·class="code-header">type·<a·href="#associatedtype.Err"·class="associatedtype">Err</a></h4></section></summary><div·class="docblock"><p>The·associated·error·which·can·be·returned·from·parsing.</p>52 </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.Err"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/str/traits.rs.html#801">Source</a></span><h4·class="code-header">type·<a·href="#associatedtype.Err"·class="associatedtype">Err</a></h4></section></summary><div·class="docblock"><p>The·associated·error·which·can·be·returned·from·parsing.</p>
53 </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.from_str"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/str/traits.rs.html#823">Source</a></span><h4·class="code-header">fn·<a·href="#tymethod.from_str"·class="fn">from_str</a>(s:·&amp;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.str.html">[·...·truncated·by·diffoscope;·len:·69,·SHA:·3c5009704c3caa0bc05450b67f7b2c09aad069b60986ca95e2df1cecf6b9274f·...·]/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;Self,·Self::<a·class="associatedtype"·href="trait.FromStr.html#associatedtype.Err"·title="type·alloc::str::FromStr::Err">Err</a>&gt;</h4></section></summary><div·class="docblock"><p>Parses·a·string·<code>s</code>·to·return·a·value·of·this·type.</p>53 </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.from_str"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/str/traits.rs.html#823">Source</a></span><h4·class="code-header">fn·<a·href="#tymethod.from_str"·class="fn">from_str</a>(s:·&amp;<a·class="primitive"·href="../../core/primitive.str.html">str</a>)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;Self,·Self::<a·class="associatedtype"·href="trait.FromStr.html#associatedtype.Err"·title="type·alloc::str::FromStr::Err">Err</a>&gt;</h4></section></summary><div·class="docblock"><p>Parses·a·string·<code>s</code>·to·return·a·value·of·this·type.</p>
54 <p>If·parsing·succeeds,·return·the·value·inside·<a·href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html#variant.Ok"·title="variant·core::result::Result::Ok"><code>Ok</code></a>,·otherwise54 <p>If·parsing·succeeds,·return·the·value·inside·<a·href="../../core/result/enum.Result.html#variant.Ok"·title="variant·core::result::Result::Ok"><code>Ok</code></a>,·otherwise
55 when·the·string·is·ill-formatted·return·an·error·specific·to·the55 when·the·string·is·ill-formatted·return·an·error·specific·to·the
56 inside·<a·href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html#variant.Err"·title="variant·core::result::Result::Err"><code>Err</code></a>.·The·error·type·is·specific·to·the·implementation·of·the·trait.</p>56 inside·<a·href="../../core/result/enum.Result.html#variant.Err"·title="variant·core::result::Result::Err"><code>Err</code></a>.·The·error·type·is·specific·to·the·implementation·of·the·trait.</p>
57 <h5·id="examples-1"><a·class="doc-anchor"·href="#examples-1">§</a>Examples</h5>57 <h5·id="examples-1"><a·class="doc-anchor"·href="#examples-1">§</a>Examples</h5>
58 <p>Basic·usage·with·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.i32.html"·title="primitive·i32"><code>i32</code></a>,·a·type·that·implements·<code>FromStr</code>:</p>58 <p>Basic·usage·with·<a·href="../../core/primitive.i32.html"·title="primitive·i32"><code>i32</code></a>,·a·type·that·implements·<code>FromStr</code>:</p>
  
59 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::str::FromStr;59 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::str::FromStr;
  
60 <span·class="kw">let·</span>s·=·<span·class="string">"5"</span>;60 <span·class="kw">let·</span>s·=·<span·class="string">"5"</span>;
61 <span·class="kw">let·</span>x·=·i32::from_str(s).unwrap();61 <span·class="kw">let·</span>x·=·i32::from_str(s).unwrap();
  
62 <span·class="macro">assert_eq!</span>(<span·class="number">5</span>,·x);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::str::FromStr;%0A++++%0A++++let+s+=+%225%22;%0A++++let+x+=+i32::from_str(s).unwrap();%0A++++%0A++++assert_eq!(5,+x);%0A%7D&amp;edition=2021"></a></div>62 <span·class="macro">assert_eq!</span>(<span·class="number">5</span>,·x);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::str::FromStr;%0A++++%0A++++let+s+=+%225%22;%0A++++let+x+=+i32::from_str(s).unwrap();%0A++++%0A++++assert_eq!(5,+x);%0A%7D&amp;edition=2021"></a></div>
63 </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.84.0/reference/items/traits.html#object-safety">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="implementors"·class="section-header">Implementors<a·href="#implementors"·class="anchor">§</a></h2><div·id="implementors-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-FromStr-for-IpAddr"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.7.0">1.7.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.84.0/src/core/net/parser.rs.html#316">Source</a></span><a·href="#impl-FromStr-for-IpAddr"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="trait.FromStr.html"·title="trait·alloc::str::FromStr">FromStr</a>·[·...·truncated·by·diffoscope;·len:·42961,·SHA:·57b90a5051ec66b23a888423a3934ec2556a6caeeb7a1c9d9f123d8b655f9e39·...·]</a></h4></section></div></details></div><script·src="../../trait.impl/core/str/traits/trait.FromStr.js"·data-ignore-extern-crates="core"·async></script></section></div></main></body></html>63 </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.84.0/reference/items/traits.html#object-safety">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="implementors"·class="section-header">Implementors<a·href="#implementors"·class="anchor">§</a></h2><div·id="implementors-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-FromStr-for-IpAddr"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.7.0">1.7.0</span>···<a·class="src"·href="../../src/core/net/parser.rs.html#316">Source</a></span><a·href="#impl-FromStr-for-IpAddr"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="trait.FromStr.html"·title="trait·alloc::str::FromStr">FromStr</a>·for·<a·class="enum"·href=".[·...·truncated·by·diffoscope;·len:·38965,·SHA:·8502e5d471baafb329e5ed539ace57ab383d481b208acd1092f10899b48e74ad·...·]</a></h4></section></div></details></div><script·src="../../trait.impl/core/str/traits/trait.FromStr.js"·data-ignore-extern-crates="core"·async></script></section></div></main></body></html>
2.72 KB
html2text {}
Max HTML report size reached
4.87 KB
./usr/share/doc/rust-doc/html/alloc/string/index.html
    
Offset 24, 8 lines modifiedOffset 24, 8 lines modified
24 </span><span·class="kw">let·</span>sparkle_heart·=·String::from_utf8(sparkle_heart).unwrap();24 </span><span·class="kw">let·</span>sparkle_heart·=·String::from_utf8(sparkle_heart).unwrap();
  
25 <span·class="macro">assert_eq!</span>(<span·class="string">"💖"</span>,·sparkle_heart);25 <span·class="macro">assert_eq!</span>(<span·class="string">"💖"</span>,·sparkle_heart);
  
26 <span·class="kw">let·</span>bytes·=·sparkle_heart.into_bytes();26 <span·class="kw">let·</span>bytes·=·sparkle_heart.into_bytes();
  
27 <span·class="macro">assert_eq!</span>(bytes,·[<span·class="number">240</span>,·<span·class="number">159</span>,·<span·class="number">146</span>,·<span·class="number">150</span>]);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++let+sparkle_heart+=+vec!%5B240,+159,+146,+150%5D;%0A++++%0A++++//+We+know+these+bytes+are+valid,+so+we'll+use+%60unwrap()%60.%0A++++let+sparkle_heart+=+String::from_utf8(sparkle_heart).unwrap();%0A++++%0A++++assert_eq!(%22%F0%9F%92%96%22,+sparkle_heart);%0A++++%0A++++let+bytes+=+sparkle_heart.into_bytes();%0A++++%0A++++assert_eq!(bytes,+%5B240,+159,+146,+150%5D);%0A%7D&amp;edition=2021"></a></div>27 <span·class="macro">assert_eq!</span>(bytes,·[<span·class="number">240</span>,·<span·class="number">159</span>,·<span·class="number">146</span>,·<span·class="number">150</span>]);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++let+sparkle_heart+=+vec!%5B240,+159,+146,+150%5D;%0A++++%0A++++//+We+know+these+bytes+are+valid,+so+we'll+use+%60unwrap()%60.%0A++++let+sparkle_heart+=+String::from_utf8(sparkle_heart).unwrap();%0A++++%0A++++assert_eq!(%22%F0%9F%92%96%22,+sparkle_heart);%0A++++%0A++++let+bytes+=+sparkle_heart.into_bytes();%0A++++%0A++++assert_eq!(bytes,+%5B240,+159,+146,+150%5D);%0A%7D&amp;edition=2021"></a></div>
28 </div></details><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·alloc::string::Drain">Drain</a></div><div·class="desc·docblock-short">A·draining·iterator·for·<code>String</code>.</div></li><li><div·class="item-name"><a·class="struct"·href="struct.FromUtf8Error.html"·title="struct·alloc::string::FromUtf8Error">From<wbr>Utf8<wbr>Error</a></div><div·class="desc·docblock-short">A·possible·error·value·when·converting·a·<code>String</code>·from·a·UTF-8·byte·vector.</div></li><li><div·class="item-name"><a·class="struct"·href="struct.FromUtf16Error.html"·title="struct·alloc::string::FromUtf16Error">From<wbr>Utf16<wbr>Error</a></div><div·class="desc·docblock-short">A·possible·error·value·when·converting·a·<code>String</code>·from·a·UTF-16·byte·slice.</div></li><li><div·class="item-name"><a·class="struct"·href="struct.String.html"·title="struct·alloc::string::String">String</a></div><div·class="desc·docblock-short">A·UTF-8–encoded,·growable·string.</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.ToString.html"·title="trait·alloc::string::ToString">ToString</a></div><div·class="desc·docblock-short">A·trait·for·converting·a·value·to·a·<code>String</code>.</div></li></ul><h2·id="types"·class="section-header">Type·Aliases<a·href="#types"·class="anchor">§</a></h2><ul·class="item-table"><li><div·class="item-name"><a·class="type"·href="type.ParseError.html"·title="type·alloc::string::ParseError">Parse<wbr>Error</a></div><div·class="desc·docblock-short">A·type·alias·for·<a·href="https://doc.rust-lang.org/1.84.0/core/convert/enum.Infallible.html"·title="convert::Infallible"><code>Infallible</code></a>.</div></li></ul></section></div></main></body></html>28 </div></details><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·alloc::string::Drain">Drain</a></div><div·class="desc·docblock-short">A·draining·iterator·for·<code>String</code>.</div></li><li><div·class="item-name"><a·class="struct"·href="struct.FromUtf8Error.html"·title="struct·alloc::string::FromUtf8Error">From<wbr>Utf8<wbr>Error</a></div><div·class="desc·docblock-short">A·possible·error·value·when·converting·a·<code>String</code>·from·a·UTF-8·byte·vector.</div></li><li><div·class="item-name"><a·class="struct"·href="struct.FromUtf16Error.html"·title="struct·alloc::string::FromUtf16Error">From<wbr>Utf16<wbr>Error</a></div><div·class="desc·docblock-short">A·possible·error·value·when·converting·a·<code>String</code>·from·a·UTF-16·byte·slice.</div></li><li><div·class="item-name"><a·class="struct"·href="struct.String.html"·title="struct·alloc::string::String">String</a></div><div·class="desc·docblock-short">A·UTF-8–encoded,·growable·string.</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.ToString.html"·title="trait·alloc::string::ToString">ToString</a></div><div·class="desc·docblock-short">A·trait·for·converting·a·value·to·a·<code>String</code>.</div></li></ul><h2·id="types"·class="section-header">Type·Aliases<a·href="#types"·class="anchor">§</a></h2><ul·class="item-table"><li><div·class="item-name"><a·class="type"·href="type.ParseError.html"·title="type·alloc::string::ParseError">Parse<wbr>Error</a></div><div·class="desc·docblock-short">A·type·alias·for·<a·href="../../core/convert/enum.Infallible.html"·title="convert::Infallible"><code>Infallible</code></a>.</div></li></ul></section></div></main></body></html>
319 KB
./usr/share/doc/rust-doc/html/alloc/string/struct.Drain.html
    
Offset 1, 233 lines modifiedOffset 1, 233 lines modified
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="A·draining·iterator·for·`String`."><title>Drain·in·alloc::string·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»    2025-01-07)» (built»   from»       a»      source»tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Drain</a></h2><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.as_str"·title="as_str">as_str</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-AsRef%3C%5Bu8%5D%3E-for-Drain%3C'a%3E"·title="AsRef&#60;[u8]&#62;">AsRef&#60;[u8]&#62;</a></li><li><a·href="#impl-AsRef%3Cstr%3E-for-Drain%3C'a%3E"·title="AsRef&#60;str&#62;">AsRef&#60;str&#62;</a></li><li><a·href="#impl-Debug-for-Drain%3C'_%3E"·title="Debug">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-Drain%3C'_%3E"·title="DoubleEndedIterator">DoubleEndedIterator</a></li><li><a·href="#impl-Drop-for-Drain%3C'_%3E"·title="Drop">Drop</a></li><li><a·href="#impl-FusedIterator-for-Drain%3C'_%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-Drain%3C'_%3E"·title="Iterator">Iterator</a></li><li><a·href="#impl-Send-for-Drain%3C'_%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-Drain%3C'_%3E"·title="Sync">Sync</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-Drain%3C'a%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Drain%3C'a%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Unpin-for-Drain%3C'a%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Drain%3C'a%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>string</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">alloc</a>::<wbr><a·href="index.html">string</a></span><h1>Struct·<span·class="struct">Drain</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../src/alloc/string.rs.html#3104-3113">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·Drain&lt;'a&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>A·draining·iterator·for·<code>String</code>.</p>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="A·draining·iterator·for·`String`."><title>Drain·in·alloc::string·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»    2025-01-07)» (built»   from»       a»      source»tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Drain</a></h2><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.as_str"·title="as_str">as_str</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-AsRef%3C%5Bu8%5D%3E-for-Drain%3C'a%3E"·title="AsRef&#60;[u8]&#62;">AsRef&#60;[u8]&#62;</a></li><li><a·href="#impl-AsRef%3Cstr%3E-for-Drain%3C'a%3E"·title="AsRef&#60;str&#62;">AsRef&#60;str&#62;</a></li><li><a·href="#impl-Debug-for-Drain%3C'_%3E"·title="Debug">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-Drain%3C'_%3E"·title="DoubleEndedIterator">DoubleEndedIterator</a></li><li><a·href="#impl-Drop-for-Drain%3C'_%3E"·title="Drop">Drop</a></li><li><a·href="#impl-FusedIterator-for-Drain%3C'_%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-Drain%3C'_%3E"·title="Iterator">Iterator</a></li><li><a·href="#impl-Send-for-Drain%3C'_%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-Drain%3C'_%3E"·title="Sync">Sync</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-Drain%3C'a%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Drain%3C'a%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Unpin-for-Drain%3C'a%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Drain%3C'a%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>string</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">alloc</a>::<wbr><a·href="index.html">string</a></span><h1>Struct·<span·class="struct">Drain</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../src/alloc/string.rs.html#3104-3113">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·Drain&lt;'a&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>A·draining·iterator·for·<code>String</code>.</p>
2 <p>This·struct·is·created·by·the·<a·href="struct.String.html#method.drain"·title="method·alloc::string::String::drain"><code>drain</code></a>·method·on·<a·href="struct.String.html"·title="struct·alloc::string::String"><code>String</code></a>.·See·its2 <p>This·struct·is·created·by·the·<a·href="struct.String.html#method.drain"·title="method·alloc::string::String::drain"><code>drain</code></a>·method·on·<a·href="struct.String.html"·title="struct·alloc::string::String"><code>String</code></a>.·See·its
3 documentation·for·more.</p>3 documentation·for·more.</p>
4 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Drain%3C'a%3E"·class="impl"><a·class="src·rightside"·href="../../src/alloc/string.rs.html#3141-3158">Source</a><a·href="#impl-Drain%3C'a%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a&gt;·<a·class="struct"·href="struct.Drain.html"·title="struct·alloc::string::Drain">Drain</a>&lt;'a&gt;</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.as_str"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.55.0">1.55.0</span>···<a·class="src"·href="../../src/alloc/string.rs.html#3155-3157">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.as_str"·class="fn">as_str</a>(&amp;self)·-&gt;·&amp;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.str.html">str</a></h4></section></summary><div·class="docblock"><p>Returns·the·remaining·(sub)string·of·this·iterator·as·a·slice.</p>4 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Drain%3C'a%3E"·class="impl"><a·class="src·rightside"·href="../../src/alloc/string.rs.html#3141-3158">Source</a><a·href="#impl-Drain%3C'a%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a&gt;·<a·class="struct"·href="struct.Drain.html"·title="struct·alloc::string::Drain">Drain</a>&lt;'a&gt;</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.as_str"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.55.0">1.55.0</span>···<a·class="src"·href="../../src/alloc/string.rs.html#3155-3157">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.as_str"·class="fn">as_str</a>(&amp;self)·-&gt;·&amp;<a·class="primitive"·href="../../core/primitive.str.html">str</a></h4></section></summary><div·class="docblock"><p>Returns·the·remaining·(sub)string·of·this·iterator·as·a·slice.</p>
5 <h5·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h5>5 <h5·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h5>
6 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span><span·class="kw-2">mut·</span>s·=·String::from(<span·class="string">"abc"</span>);6 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span><span·class="kw-2">mut·</span>s·=·String::from(<span·class="string">"abc"</span>);
7 <span·class="kw">let·</span><span·class="kw-2">mut·</span>drain·=·s.drain(..);7 <span·class="kw">let·</span><span·class="kw-2">mut·</span>drain·=·s.drain(..);
8 <span·class="macro">assert_eq!</span>(drain.as_str(),·<span·class="string">"abc"</span>);8 <span·class="macro">assert_eq!</span>(drain.as_str(),·<span·class="string">"abc"</span>);
9 <span·class="kw">let·_·</span>=·drain.next().unwrap();9 <span·class="kw">let·_·</span>=·drain.next().unwrap();
10 <span·class="macro">assert_eq!</span>(drain.as_str(),·<span·class="string">"bc"</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++let+mut+s+=+String::from(%22abc%22);%0A++++let+mut+drain+=+s.drain(..);%0A++++assert_eq!(drain.as_str(),+%22abc%22);%0A++++let+_+=+drain.next().unwrap();%0A++++assert_eq!(drain.as_str(),+%22bc%22);%0A%7D&amp;edition=2021"></a></div>10 <span·class="macro">assert_eq!</span>(drain.as_str(),·<span·class="string">"bc"</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++let+mut+s+=+String::from(%22abc%22);%0A++++let+mut+drain+=+s.drain(..);%0A++++assert_eq!(drain.as_str(),+%22abc%22);%0A++++let+_+=+drain.next().unwrap();%0A++++assert_eq!(drain.as_str(),+%22bc%22);%0A%7D&amp;edition=2021"></a></div>
11 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-AsRef%3C%5Bu8%5D%3E-for-Drain%3C'a%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.55.0">1.55.0</span>···<a·class="src"·href="../../src/alloc/string.rs.html#3168-3172">Source</a></span><a·href="#impl-AsRef%3C%5Bu8%5D%3E-for-Drain%3C'a%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.AsRef.html"·title="trait·core::convert::AsRef">AsRef</a>&lt;[<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.u8.html">u8</a>]&gt;·for·<a·class="struct"·href="struct.Drain.html"·[·...·truncated·by·diffoscope;·len:·8571,·SHA:·258dba6ff568ff1f4e58a4cea96a14e4b303dc83fe2a53cef14117784c53a251·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold"·class="fn">try_rfold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where11 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-AsRef%3C%5Bu8%5D%3E-for-Drain%3C'a%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.55.0">1.55.0</span>···<a·class="src"·href="../../src/alloc/string.rs.html#3168-3172">Source</a></span><a·href="#impl-AsRef%3C%5Bu8%5D%3E-for-Drain%3C'a%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a&gt;·<a·class="trait"·href="../../core/convert/trait.AsRef.html"·title="trait·core::convert::AsRef">AsRef</a>&lt;[<a·class="primitive"·href="../../core/primitive.u8.html">u8</a>]&gt;·for·<a·class="struct"·href="struct.Drain.html"·title="struct·alloc::string::Drain">Drain</a>&lt;'a&gt[·...·truncated·by·diffoscope;·len:·7788,·SHA:·849dd026252e644251a9d0e2e2852dee2009cb8cf56b8662a3f57ec9d90afd45·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold"·class="fn">try_rfold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where
12 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,12 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
13 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,13 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
14 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>This·is·the·reverse·version·of·<a·href="https://doc.rust-lang.org/1.8[·...·truncated·by·diffoscope;·len:·3,·SHA:·fbd04e1aae9ce0b11a8946e2c9ac2619f7428a64d32d01eff61d809dcb70ee8e·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·title="method·core::iter::traits::iterator::Iterator::try_fold"><code>Iterator::try_fold()</code></a>:·it·takes14 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>This·is·the·reverse·version·of·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·title="method·core::iter::traits::iterator::Iterator::try_fold"><code>Iterator::try_fold()</code></a>:·it·takes
15 elements·starting·from·the·back·of·the·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfold"·class="method·trait-impl"><span·clas[·...·truncated·by·diffoscope;·len:·325,·SHA:·7ffdb06a8ab3810207a1c974783822231eaf1d82fd94bcf810dd7b3181149b7b·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold"·class="fn">rfold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where15 elements·starting·from·the·back·of·the·iterator.·<a·href="../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfold"·class="method·trait-impl"><span·class="rightside"><span·class="[·...·truncated·by·diffoscope;·len:·244,·SHA:·6c4fe3f75fed1f00ec73ae6acd6efe929fb891f07f47293eec1013d32fc0fbe1·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold"·class="fn">rfold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where
16 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,16 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
17 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·reduces·the·iterator’s·elements·to·a·single,17 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·reduces·the·iterator’s·elements·to·a·single,
18 final·value,·starting·from·the·back.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfind"·class="method·trait-impl"><span·class="r[·...·truncated·by·diffoscope;·len:·665,·SHA:·fde89feb7c0e70eefa34d688476ca36a70115bec8150dbf9b1a3c359f72dd28d·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where18 final·value,·starting·from·the·back.·<a·href="../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfind"·class="method·trait-impl"><span·class="rightside"><span·class="sinc[·...·truncated·by·diffoscope;·len:·530,·SHA:·75a595bf6f9813abee32ae86d68f5de961884ee60e7080e18fb9c73b8e22c5f0·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
19 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,19 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
20 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·6259,·SHA:·61698379d2365fb39654063c2ebe8bc171de70b8cb496019495eeb072c7874f7·...·]/core/primitive.usize.html">usize</a>&gt;(20 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·5557,·SHA:·17722a6003075957c54a6d0dfac0fee396097deaebab7a2e41e12cd598d4adba·...·]/core/primitive.usize.html">usize</a>&gt;(
21 ····&amp;mut·self,21 ····&amp;mut·self,
22 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·4f557a9b49151e0be8c52ffd68f1def4469c08164239dc8bef8df2040551c5ef·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where22 )·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">It[·...·truncated·by·diffoscope;·len:·246,·SHA:·baf6c8e6f3d5dbac69324111240b1587dbb858d42149cae1ee895a165289ff4f·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where
23 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·962,·SHA:·116e4ec2ae3d9655c3d115eaf50f435f5323b4e48b84de734c79d2a09b3c02f2·...·]/core/primitive.usize.html">usize</a><div·class="where">where23 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_next_ch[·...·truncated·by·diffoscope;·len:·827,·SHA:·2479cde9ab5aa3e18f76cf74cf7889a3de87c66e1745f27cf29bd34c4d30dbdf·...·]/core/primitive.usize.html">usize</a><div·class="where">where
24 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·counting·the·number·of·iterations·and·returning·it.·<a·href="https://doc.[·...·truncated·by·diffoscope;·len:·3529,·SHA:·36685e4ebfba7d155142dce71eec5dabe5f32dacb8a458b62987f15496f31675·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where24 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·counting·the·number·of·iterations·and·returning·it.·<a·href="../../core/iter/traits/iterator/trait.I[·...·truncated·by·diffoscope;·len:·2989,·SHA:·52662d0d84351ee66fd08cf83fe69d664777396d635c71dc09e542292824ef32·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where
25 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by25 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by
26 the·given·amount·at·each·iteration.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><sp[·...·truncated·by·diffoscope;·len:·842,·SHA:·945c4509a8daf2f8fbccc5c6e5089e225955911e03a3e411f047f96d52d16862·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where26 the·given·amount·at·each·iteration.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Sta[·...·truncated·by·diffoscope;·len:·680,·SHA:·77241b5118fcbc984cb791fa9f75077307e18056b66492741335faf440cbdabc·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
27 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,27 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
28 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·3b5ce32f9d564c3aa7cf2adc7130e674758d0c0f4f1275b4c3b46a74aa802cb3·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where28 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·1113,·SHA:·ccf22d19f49a25daffdcc6d9226d5107457a8bfd16beccfeff5020d151bdb8bb·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
29 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,29 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
30 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·[·...·truncated·by·diffoscope;·len:·868,·SHA:·abdbf27ccc84063c7040d8fa3da9d0bda5ee310a470ef576e15554aee4bd5d21·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where30 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·of·pairs.·<a·href="../../co[·...·truncated·by·diffoscope;·len:·706,·SHA:·f32c568f049122021445a983654582d97ac74064a3e99c3361b348bd7708c1b2·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where
31 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,31 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
32 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent32 ····Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent
33 items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="sr[·...·truncated·by·diffoscope;·len:·427,·SHA:·6e82ad4aad49c2165d869fe30d20a968580a973cdb3a7f4c77f49e16dd59393e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where33 items·of·the·original·iterator.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="src·rightside"·href="../../sr[·...·truncated·by·diffoscope;·len:·319,·SHA:·8babc469a22056fc5a02684b52f9f93ba9c27a3dd2e8443ddc060797054e211e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where
34 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,34 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
35 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>35 ····G:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>
36 between·adjacent·items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightsi[·...·truncated·by·diffoscope;·len:·471,·SHA:·ed10488b7b2ccc3e4cc84a9a57a9695a74c1c964962e8d753cbace12f3318a66·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where36 between·adjacent·items·of·the·original·iterator.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·tit[·...·truncated·by·diffoscope;·len:·363,·SHA:·09aee21fa4172b743a714e2cb5915129575ce0224df49c7343dec38f43b7ecfd·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where
37 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,37 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
38 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each38 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each
39 element.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><spa[·...·truncated·by·diffoscope;·len:·306,·SHA:·61c87c39b177830189b0e4c036d97c40d8b9649d76432c90afb88de59498e8b2·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where39 element.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stab[·...·truncated·by·diffoscope;·len:·225,·SHA:·a0f2490a1a5fd6b44e0ab01199cbbbd6e5463251405d11eaf6798c9b50bbd683·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where
40 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,40 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
41 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·a65da32c5f5ef8335cb607d3b4ab3f8a25877bc2c2e8b44ca9d575caecd5c8a5·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where41 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·754,·SHA:·421e55a5747cab3df1dad40b747b4633f241bdc13a1546bb19b1370788dea27d·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where
42 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,42 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
43 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·6d69c85c69fa789be551ea42d95c33c237d12a04ef157f9ddaaead1177f7771e·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element43 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·59,·SHA:·76969e34965f1923de668a65a9f5c33f73266468c9b96650bcc5fd498e606a6b·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element
44 should·be·yielded.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·489,·SHA:·9bdc636899f4e4e5a26a3a21c9603f72b3fb972865d2f459c38b7e2ac8fed7f1·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where44 should·be·yielded.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·cf812944678f6755720896cf32b330946303afe59f1b1c11adeb6a7f33454c8d·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where
45 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,45 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
46 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·46dbf841c7aecd3f06bd4c944af21650faeac98c46c515dcfe643302618b1ecd·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where46 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·863,·SHA:·c2bab87fa2a70713bd2d34b3dcae8f4ff2341917103b43a1dd505317f15d6cff·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where
47 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as47 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as
48 the·next·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside[·...·truncated·by·diffoscope;·len:·468,·SHA:·52f7ff7f264284c3acc4429ca34d057ded9afa2e3d9d6e07571e252db9a48977·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where48 the·next·value.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title[·...·truncated·by·diffoscope;·len:·360,·SHA:·688416dc1aaaa0be069177270ba9e74b3d1b92521285a109dc7ba86b58c1f22a·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where
49 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·c0180fefce4346b0b4089e5c642521d7716108241c0ce6ec3e910c7a2c7364b4·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods49 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="../../core/iter/adapters/peekable/struct.Peekable.html#method.peek"·title="m[·...·truncated·by·diffoscope;·len:·94,·SHA:·78aeab33f83c647dfe680c1050358c95977e3af17eabde4a04880721ea1a619d·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods
50 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See50 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See
51 their·documentation·for·more·information.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightsid[·...·truncated·by·diffoscope;·len:·498,·SHA:·e4a68861585faec6a5032b3b69d6dfb0f2799b5f387a527d9a1365571ed02069·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where51 their·documentation·for·more·information.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightside"><span·class="since"·titl[·...·truncated·by·diffoscope;·len:·390,·SHA:·5da622ae0e4d00b47239007520070e22568156d6c5b1662db8b80b465934b18c·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where
52 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,52 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
53 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·93281c1f6402743fd61110c11cf676f0f67eddceda801b4eb35e5fe9f85870fd·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where53 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·1018,·SHA:·732548acff5239e9a7b904f32790c90ab3b63522635334128f35e01d37ceaeb6·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where
54 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,54 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
55 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·f1cdbb1ec64f98fabbe1d89c88b03824310926cd7eaa160953ce2452fc3abb77·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where55 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·869,·SHA:·8ec7e525848424d5104dbdd10928d17cfee4e5aee63cdda7ecdbe323b30b59d3·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where
56 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,56 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
57 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·f94a0b2c1396b13b89aca7830197ebf19e2c0e5ba536a9cc25b325a481799510·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where57 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·947,·SHA:·fdd074315a0bfb226f815b1b6ea114c7367886338ffffff233d7f6fc3108769a·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where
58 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="https://doc.rust-lang[·...·truncated·by·diffoscope;·len:·783,·SHA:·c14217b89e3292a50a09192a8857485891fc769f861e1d1fc4322d04295c86ef·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where58 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="../../core/iter/traits/iterator/trait.Iterator.h[·...·truncated·by·diffoscope;·len:·621,·SHA:·484df7f946e7f2f69c3acad8964421c0db8ac5bb40032d11bbd862e20e67704c·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where
59 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer59 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer
60 if·the·underlying·iterator·ends·sooner.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·c[·...·truncated·by·diffoscope;·len:·488,·SHA:·76f753d5a273a09a73127631acaa0ee947326a929f33be291018188793e1af56·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where60 if·the·underlying·iterator·ends·sooner.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·[·...·truncated·by·diffoscope;·len:·380,·SHA:·fa258c7e0b5d583304a69e2d4e19f3d4cc9a9ed830bdf3796eaa0968bdf590b4·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where
61 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,61 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
62 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·07d303586c8ad4e0082d5b44bff8eeda03cdb8f4bdbe46489f9232bca5a43ec6·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but62 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterat[·...·truncated·by·diffoscope;·len:·314,·SHA:·299331ff47adaff3ebc292c53557ad34da957aef932f87ec0444c7f856820410·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but
63 unlike·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·2b20882d9583cee50e0c8b3cf362b27ce0d524db387d4aa4093d622b9370dada·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where63 unlike·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.scan">Read·more[·...·truncated·by·diffoscope;·len:·555,·SHA:·77279e392f259f6d4859f5a7747ee4b4d5315f3af0ac3baebf1d53be3461b312·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where
64 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,64 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
65 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,65 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
66 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·933,·SHA:·4af94b75ba5c1e03d2d70590d2fd0706f13b3080fbff0f5b98e7b109048c403d·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where66 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·771,·SHA:·a1a50c8ca4c13151c7b22ce05c74c449231e1ffe44225beee67ff212fc1d3859·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where
67 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,67 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
68 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.I[·...·truncated·by·diffoscope;·len:·968,·SHA:·e5572ed2f3bdf5970d038da608f2f592d945541207c483c257fe5789efba168a·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where68 ····Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::col[·...·truncated·by·diffoscope;·len:·779,·SHA:·a4e524bd8aa8a1e0a66409d1b462b88093ab51a1f901ff1a788d7ee63d597f4c·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where
69 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,69 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
70 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·3013c0e49b0dade37f8ca096eccc5ceeb03fc79b9d320a4c92486d23b88d1009·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over70 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·54,·SHA:·6acee514e4d8df8979b4bba687b7e0d5dbb0ea4f98a7019e2fb03f3a8058df0f·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over
71 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,71 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="../../core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,
72 the·windows·during·mapping·overlap·as·well.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside">[·...·truncated·by·diffoscope;·len:·454,·SHA:·040991f3914479bcc92615de2b81df7363656323622e5aadc964e1a61917d23e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where72 the·windows·during·mapping·overlap·as·well.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="[·...·truncated·by·diffoscope;·len:·346,·SHA:·b1244a5f92e0573c29e04e883cf8212ba2586013b3687af07b63c29d2e611530·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where
73 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="https://doc.rust-lang.org/1.84.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·0e0294a45242d5ce9a3ab8f95d6d410756415291d92baa7d12283ef1b3ecc3a0·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where73 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="../../core/option/enum.Option.html#variant.None"·title="variant·cor[·...·truncated·by·diffoscope;·len:·679,·SHA:·ec753d6ecf7b9fe81cb270d78e45e053f2702fff74c7a63c2ab8da22b97fea86·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where
74 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,74 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
75 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·a8b562f71802a421f4745f7d1fadf4f70d98030c829e70f27b692e7915267027·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where75 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·635,·SHA:·ee3a5bcc3544c3f17985966634fef69b1708d641ddb7e62aaac76933935c5ef7·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where
76 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="https://doc.rust-lang.org/1.84.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·b3db7d84f203bbc139b1c52912705d19c664dac762898205fce452c9dc3a5318·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where76 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.by_ref">[·...·truncated·by·diffoscope;·len:·415,·SHA:·7e0e075470d2db380bcf0838446659654c982aa2ca7831ed7d0317877855be2a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where
77 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,77 ····B:·<a·class="trait"·href="../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
78 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·431,·SHA:·a705a23f6d810357e7dcac670743884665ffcccfb9b780d0aa03720be8ca5625·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(78 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.collect">Read[·...·truncated·by·diffoscope;·len:·323,·SHA:·80e0dde3814a6e7cf4e30949627abc841ab4e98e2a920efb248777e22708682d·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(
79 ····&amp;mut·self,79 ····&amp;mut·self,
80 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.h[·...·truncated·by·diffoscope;·len:·479,·SHA:·fa749442d890055f86ceb34f411c84fd7ea08302b336d786d1ca36fe5868b020·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where80 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&g[·...·truncated·by·diffoscope;·len:·344,·SHA:·c06c6401df0a7150633e94cc973521da42e09819b07be80ba18d6acb696860a9·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
81 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,81 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
82 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>,82 ····Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>,
83 ····&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.h[·...·truncated·by·diffoscope;·len:·300,·SHA:·3bff089180bac38df7f42b87556fae7641185b89a949c284f53e3ac718a6decb·...·]/core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;B&gt;,83 ····&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&g[·...·truncated·by·diffoscope;·len:·192,·SHA:·039ceb6ce31fc6b1871e3e366efbd0f164f4a6cc1bc25554bba598b0ee820cca·...·]/core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;B&gt;,
84 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/itera[·...·truncated·by·diffoscope;·len:·323,·SHA:·b5c51f161dc9d77fd81d1fd23cc71fbf42ac00f3168cf9e41ebaaa2b6eb25363·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if84 ····B:·<a·class="trait"·href="../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="ty[·...·truncated·by·diffoscope;·len:·215,·SHA:·ddb8fbd12147eecef1697edd4c63187cc514ab4b851290335adfcccc3fa429ba·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if
85 a·failure·is·encountered.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·ri[·...·truncated·by·diffoscope;·len:·521,·SHA:·6a54376815dab985ec8cc35604d035e98e3003b1563c9b41e70966084505542b·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where85 a·failure·is·encountered.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/co[·...·truncated·by·diffoscope;·len:·386,·SHA:·d46a776c329de4f757930edda252586c2cdd85c6956b7b2f68448da33ee0625e·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
86 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,86 ····E:·<a·class="trait"·href="../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
87 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·975,·SHA:·94f7f970236ba59ba5f1415764a0e3ab2f3093c6b79e76c25c797ac24a3c4d09·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where87 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_collect[·...·truncated·by·diffoscope;·len:·840,·SHA:·1ee6fbe4deb3d959e9ade58fb7ed3efa79d09721ed02fbb5f5f82aae6aa1425d·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
88 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,88 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
89 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·b480ec650ba000fe7cb67df58fc0351299638ee3e8f00db18f74ca24d69f9894·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,89 ····B:·<a·class="trait"·href="../../core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtyp[·...·truncated·by·diffoscope;·len:·14,·SHA:·4105980ca4887a52797067761af25a11e3de6069cd8d7c8ce82cd885bb798fe8·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
90 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·fdf5a1845f070855ba2cfd0c8c85460ea5cb646c4d3b42a8431bf21489c73701·...·]/core/primitive.usize.html">usize</a><div·class="where">where90 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·806,·SHA:·4d554b733db12e71a31ec2477a31408041941b0e2b0dc910904ecf2fced9f65b·...·]/core/primitive.usize.html">usize</a><div·class="where">where
91 ····T:·'a,91 ····T:·'a,
92 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·1fc250e258e9e42e4fa3e22f86ecd57057e9ff23e47af1aec778076a7a891134·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,92 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIter[·...·truncated·by·diffoscope;·len:·51,·SHA:·c9be73bbed9d11ecac2a179f480a640f51d6255f26712667ffdabc72c1fc7fb0·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,
93 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·5846407374f20f525a4a0663ad4488141eafe64513ef82581dc5df5c2d200745·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_partition_in_place</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62543">#62543</a>)</span></div></span><div·class='docblock'>Reorders·the·elements·of·this·iterator·<em>in-place</em>·according·to·the·given·predicate,93 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="../../core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_partition_in_place</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62543">#62543</a>)</span></div></span><div·class='docblock'>Reorders·the·elements·of·this·iterator·<em>in-place</em>·according·to·the·given·predicate,
94 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.94 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.
95 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.partition_in_place">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_partitioned"·class="method·trait-impl"><a·clas[·...·truncated·by·diffoscope;·len:·431,·SHA:·4aa7d028146c72d45794efc19a376d4bee3b75eda61ff46d969e440b3dbfa1b0·...·]/core/primitive.bool.html">bool</a><div·class="where">where95 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.partition_in_place">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_partitioned"·class="method·trait-impl"><a·class="src·rightside"·href="../[·...·truncated·by·diffoscope;·len:·323,·SHA:·bfc44418fa28079222aab80e2baccdaffb2d067bbe5d1b5162202d268ad628d7·...·]/core/primitive.bool.html">bool</a><div·class="where">where
96 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,96 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
97 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·fcd03e71f79faad6d9b9a12045d59f4dfabc78e5aefebcabc9c1a5be45e31125·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,97 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·54,·SHA:·d5ac304cc26edf57442227b641dd21c427d0f9cb322b79986f5b15fc49f867b0·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,
98 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><span·class="righ[·...·truncated·by·diffoscope;·len:·319,·SHA:·9b9df13f2f4e5b4dde3908515766e1a474fa30bcb7edc98c15665a016e677c2a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where98 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><span·class="rightside"><span·class="since"·[·...·truncated·by·diffoscope;·len:·238,·SHA:·af6ab768457e0afa1532b80c4296ae18061dac4c765922889b13eead3e5492db·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where
99 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,99 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
100 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,100 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
101 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns101 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns
102 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rights[·...·truncated·by·diffoscope;·len:·321,·SHA:·619fd774190944998148325de99aaa75de66ce4b7e26579fd342c564923a5652·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where102 successfully,·producing·a·single,·final·value.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"·ti[·...·truncated·by·diffoscope;·len:·240,·SHA:·125e84deea747ccbe139725d028362287beed6a89ab9da3a3aabd7df537abc59·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where
103 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,103 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
104 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,104 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
105 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the105 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="../../core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the
106 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·307,·SHA:·5975144fd8566efa93ad1ccec09297e280924b7372e08681d2103702124e2c52·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where106 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title=[·...·truncated·by·diffoscope;·len:·226,·SHA:·a7510e9271e68887d9e2681c6bc28312cec9ac38883128845f52742935a160a9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where
107 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,107 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
108 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,108 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,
109 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span[·...·truncated·by·diffoscope;·len:·619,·SHA:·8813f54846438870310d5f5dfabd2335a9dbf51e9da2e4cd681bcb6077d39628·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where109 returning·the·final·result.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stabl[·...·truncated·by·diffoscope;·len:·484,·SHA:·5f42e8d5ff08f4c76870e6cb9165e054f9a0d99051d9886ccd43d5c8a91e1fbc·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
110 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,110 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
111 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·084691f7fc4e7f4da7db385127d0ce8d2d52f6740757129a65910c4db0dc180d·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing111 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·244,·SHA:·f09ac7e818239538c3f3208cb5c76076c24a0153797eb762821d5bf2a382d83b·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing
112 operation.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·217,·SHA:·447ae00256be3de069c602a6c04889808c883eae6fa349d023f53bdd5570ecae·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(112 operation.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/iter[·...·truncated·by·diffoscope;·len:·136,·SHA:·97e3ee132585582ec7077e3bbd86406d8a2dcfc97dce7fd52b49af3ec1b58622·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(
113 ····&amp;mut·self,113 ····&amp;mut·self,
114 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R, 
115 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.T[·...·truncated·by·diffoscope;·len:·950,·SHA:·817376e71f7a0d170bfbd4b7264c15d324f49c65106c49349d11a077842aa533·...·]114 ····f:·impl·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core:[·...·truncated·by·diffoscope;·len:·238,·SHA:·a52edc1a1ce1db5dd6e620dbfe5acb58fdc6d84f2320cef02845988aa54e5c55·...·]
 115 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;&gt;&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
116 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,116 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
117 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,117 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
118 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·764ea8f08626b05426a76738d54ebb2d640042494d76cba8c20d868bfdc07a73·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the118 ····&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>:·<a[·...·truncated·by·diffoscope;·len:·277,·SHA:·0dd064909226a9691486376740de1e17aa133a7ae2f635bee3feaa9b19d7b580·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the
119 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><span·class="rightside"><s[·...·truncated·by·diffoscope;·len:·476,·SHA:·aef721c14147dea2fbec70dcfa76916b3f1273bed8304f4c9db310ca23d1e4b1·...·]/core/primitive.bool.html">bool</a><div·class="where">where119 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="St[·...·truncated·by·diffoscope;·len:·368,·SHA:·6dbfbc90b7cfda9017074212ce0beeb560c8f9ba918ba7b00292e34daa531cc2·...·]/core/primitive.bool.html">bool</a><div·class="where">where
120 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,120 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
121 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·7c48e62c73a40a5cb5ebbf4a22cd789b342a88ad3d855022191f2bae33c736c6·...·]/core/primitive.bool.html">bool</a><div·class="where">where121 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·829,·SHA:·c413d95d1072acd820201f12ffb54d04a6c7f3b732f7de46115ba40b4eb1bd3f·...·]/core/primitive.bool.html">bool</a><div·class="where">where
122 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,122 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
123 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·673d69ce0c23e24b2546127c463e67cd2a4c0f7be792712e2b42e75427161b75·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where123 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·956,·SHA:·105c7ff05d33bc9219febe8c9633cf1c1a8d88c32e47e44793d403a428174c66·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
124 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,124 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
125 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·aa5078ff77f5638746395497f8ce92c1b684d342dea851990104d5e9981ab6b0·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where125 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·862,·SHA:·ab608da827ec12779180206da5bfe43676627c19288c1fe674060a00ba44a595·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where
126 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,126 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
Max diff block lines reached; 142959/326553 bytes (43.78%) of diff not shown.
44.5 KB
./usr/share/doc/rust-doc/html/alloc/string/struct.FromUtf16Error.html
    
Offset 2, 19 lines modifiedOffset 2, 19 lines modified
2 <p>This·type·is·the·error·type·for·the·<a·href="struct.String.html#method.from_utf16"·title="associated·function·alloc::string::String::from_utf16"><code>from_utf16</code></a>·method·on·<a·href="struct.String.html"·title="struct·alloc::string::String"><code>String</code></a>.</p>2 <p>This·type·is·the·error·type·for·the·<a·href="struct.String.html#method.from_utf16"·title="associated·function·alloc::string::String::from_utf16"><code>from_utf16</code></a>·method·on·<a·href="struct.String.html"·title="struct·alloc::string::String"><code>String</code></a>.</p>
3 <h2·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h2>3 <h2·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h2>
4 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="comment">//·𝄞mu&lt;invalid&gt;ic4 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="comment">//·𝄞mu&lt;invalid&gt;ic
5 </span><span·class="kw">let·</span>v·=·<span·class="kw-2">&amp;</span>[<span·class="number">0xD834</span>,·<span·class="number">0xDD1E</span>,·<span·class="number">0x006d</span>,·<span·class="number">0x0075</span>,5 </span><span·class="kw">let·</span>v·=·<span·class="kw-2">&amp;</span>[<span·class="number">0xD834</span>,·<span·class="number">0xDD1E</span>,·<span·class="number">0x006d</span>,·<span·class="number">0x0075</span>,
6 ··········<span·class="number">0xD800</span>,·<span·class="number">0x0069</span>,·<span·class="number">0x0063</span>];6 ··········<span·class="number">0xD800</span>,·<span·class="number">0x0069</span>,·<span·class="number">0x0063</span>];
  
7 <span·class="macro">assert!</span>(String::from_utf16(v).is_err());</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A//+%F0%9D%84%9Emu%3Cinvalid%3Eic%0Afn+main()+%7B%0A++++let+v+=+%26%5B0xD834,+0xDD1E,+0x006d,+0x0075,%0A++++++++++++++0xD800,+0x0069,+0x0063%5D;%0A++++%0A++++assert!(String::from_utf16(v).is_err());%0A%7D&amp;edition=2021"></a></div>7 <span·class="macro">assert!</span>(String::from_utf16(v).is_err());</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A//+%F0%9D%84%9Emu%3Cinvalid%3Eic%0Afn+main()+%7B%0A++++let+v+=+%26%5B0xD834,+0xDD1E,+0x006d,+0x0075,%0A++++++++++++++0xD800,+0x0069,+0x0063%5D;%0A++++%0A++++assert!(String::from_utf16(v).is_err());%0A%7D&amp;edition=2021"></a></div>
8 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-FromUtf16Error"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/alloc/string.rs.html#421">Source</a></span><a·href="#impl-Debug-for-FromUtf16Error"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.FromUtf16Error.html"·title="struct·alloc::string::FromUtf16Error">FromUtf16Error</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/alloc/string.rs.html#421">Source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="../fmt/struct.Formatter.html"·title="struct·alloc::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="type"·href="../fmt/type.Result.html"·title="type·alloc::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../fmt/trait.Debug.html#tymethod.fmt">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Display-for-FromUtf16Error"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/alloc/string.rs.html#2187-2191">Source</a></span><a·href="#impl-Display-for-FromUtf16Error"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../fmt/trait.Display.html"·title="trait·alloc::fmt::Display">Display</a>·for·<a·class="struct"·href="struct.FromUtf16Error.html"·title="struct·alloc::string::FromUtf16Error">FromUtf16Error</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt-1"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/alloc/string.rs.html#2188-2190">Source</a><a·href="#method.fmt-1"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../fmt/trait.Display.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="../fmt/struct.Formatter.html"·title="struct·alloc::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="type"·href="../fmt/type.Result.html"·title="type·alloc::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../fmt/trait.Display.html#tymethod.fmt">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Error-for-FromUtf16Error"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/alloc/string.rs.html#2202-2207">Source</a></span><a·href="#impl-Error-for-FromUtf16Error"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/error/trait.Error.html"·title="trait·core::error::Error">Error</a>·for·<a·class="struct"·href="struct.FromUtf16Error.html"·title="struct·alloc::string::FromUtf16Error">FromUtf16Error</a></h3></section></summary><div·cl[·...·truncated·by·diffoscope;·len:·7214,·SHA:·48f635735065595ce7430e98cdd6f0447d0605ac2893d7ae2faf634003e7f9ff·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where8 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-FromUtf16Error"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/alloc/string.rs.html#421">Source</a></span><a·href="#impl-Debug-for-FromUtf16Error"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.FromUtf16Error.html"·title="struct·alloc::string::FromUtf16Error">FromUtf16Error</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/alloc/string.rs.html#421">Source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="../fmt/struct.Formatter.html"·title="struct·alloc::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="type"·href="../fmt/type.Result.html"·title="type·alloc::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../fmt/trait.Debug.html#tymethod.fmt">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Display-for-FromUtf16Error"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/alloc/string.rs.html#2187-2191">Source</a></span><a·href="#impl-Display-for-FromUtf16Error"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../fmt/trait.Display.html"·title="trait·alloc::fmt::Display">Display</a>·for·<a·class="struct"·href="struct.FromUtf16Error.html"·title="struct·alloc::string::FromUtf16Error">FromUtf16Error</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt-1"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/alloc/string.rs.html#2188-2190">Source</a><a·href="#method.fmt-1"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../fmt/trait.Display.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="../fmt/struct.Formatter.html"·title="struct·alloc::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="type"·href="../fmt/type.Result.html"·title="type·alloc::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../fmt/trait.Display.html#tymethod.fmt">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Error-for-FromUtf16Error"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/alloc/string.rs.html#2202-2207">Source</a></span><a·href="#impl-Error-for-FromUtf16Error"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/error/trait.Error.html"·title="trait·core::error::Error">Error</a>·for·<a·class="struct"·href="struct.FromUtf16Error.html"·title="struct·alloc::string::FromUtf16Error">FromUtf16Error</a></h3></section></summary><div·class="impl-items"><details·c[·...·truncated·by·diffoscope;·len:·6539,·SHA:·1d18afea8a5b516122c8f791e6a1dccc3553a7c7c38c3a31c10fb81fa3ee0bfd·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where
9 ····T:·'static·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method[·...·truncated·by·diffoscope;·len:·834,·SHA:·47dfc2aa0101a4103e2a94c1f971c559790d87a62d58631fd2bfed98e6616a34·...·]/src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where9 ····T:·'static·+·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·[·...·truncated·by·diffoscope;·len:·672,·SHA:·ace7a059971745d739c5abd9821e5d1d485cc233fd42150ceb251bdea1ce6bf7·...·]/src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where
10 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·[·...·truncated·by·diffoscope;·len:·737,·SHA:·9e65370662e77fc5c56c98c66a5dfda3c1d1244574dc8806ab91a8967514da78·...·]/src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.BorrowMut.html"·title="trait·alloc::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where10 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·r[·...·truncated·by·diffoscope;·len:·629,·SHA:·8e6f5d2e4a2830729c5d495459113ca6f54993696d7dc71c1f46e5691f5108ed·...·]/src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.BorrowMut.html"·title="trait·alloc::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where
11 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="met[·...·truncated·by·diffoscope;·len:·1416,·SHA:·6a91c7d774262ffceb6c994b163406722441142120e090bf0659f9a11b6dd348·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>11 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="s[·...·truncated·by·diffoscope;·len:·1227,·SHA:·50e7ebda2b6919040565b80662e590c224b03e887e0c5eeee46fe8a8f7ae0e8c·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>
12 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where12 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where
13 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="m[·...·truncated·by·diffoscope;·len:·237,·SHA:·98603c35860102b3af9b5cf27aeabf39e3c03236551986a6ec030817f108d919·...·]/core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>13 ····U:·<a·class="trait"·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class=[·...·truncated·by·diffoscope;·len:·156,·SHA:·79561c49c77b14346871935198fc061d00c9e84705db975b0451f5fb4f6af9a0·...·]/core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>
14 <p>That·is,·this·conversion·is·whatever·the·implementation·of14 <p>That·is,·this·conversion·is·whatever·the·implementation·of
15 <code><a·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>15 <code><a·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>
16 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToString-for-T"·class="impl"><a·class="src·rightside"·href="../../src/alloc/string.rs.html#2677-2691">Source</a><a·href="#impl-ToString-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="trait.ToString.html"·title="trait·alloc::string::ToString">ToString</a>·for·T<div·class="where">where16 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToString-for-T"·class="impl"><a·class="src·rightside"·href="../../src/alloc/string.rs.html#2677-2691">Source</a><a·href="#impl-ToString-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="trait.ToString.html"·title="trait·alloc::string::ToString">ToString</a>·for·T<div·class="where">where
17 ····T:·<a·class="trait"·href="../fmt/trait.Display.html"·title="trait·alloc::fmt::Display">Display</a>·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.to_string"·class="meth[·...·truncated·by·diffoscope;·len:·926,·SHA:·adf7c9077930ef865e9a223dede5b22a4865eafe60e43c5921170c6afc5fb058·...·]/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where17 ····T:·<a·class="trait"·href="../fmt/trait.Display.html"·title="trait·alloc::fmt::Display">Display</a>·+·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.to_string"·class="method·trait-impl"><a·class="sr[·...·truncated·by·diffoscope;·len:·845,·SHA:·ded7ec7967ebd25085949cd0720da2ab58f776b748c2fb39193af12429ffc2c9·...·]/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where
18 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="asso[·...·truncated·by·diffoscope;·len:·1973,·SHA:·db4b8407e8e20581ad139aef25a6221a11da0f5f18d6aa35aa33eb843f4e1b9f·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where18 ····U:·<a·class="trait"·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·c[·...·truncated·by·diffoscope;·len:·1676,·SHA:·4c73b68f4fb433b5f24fbcd660156381e5dd9f46425d075b558b9b6ca0705f88·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where
19 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·clas[·...·truncated·by·diffoscope;·len:·1578,·SHA:·998d5af10fd889567cd999d1306bfd16c91134d2238a3c172f1e7fa8ed138c18·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>19 ····U:·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-imp[·...·truncated·by·diffoscope;·len:·1308,·SHA:·6741e462a0e1b36010204263b7580305663bb27f362987d14303068592f9f358·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>
80.4 KB
./usr/share/doc/rust-doc/html/alloc/string/struct.FromUtf8Error.html
    
Offset 1, 25 lines modifiedOffset 1, 25 lines modified
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="A·possible·error·value·when·converting·a·`String`·from·a·UTF-8·byte·vector."><title>FromUtf8Error·in·alloc::string·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»  2025-01-07)»       (built» from»     a»    source»      tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">From<wbr>Utf8<wbr>Error</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#examples"·title="Examples">Examples</a></li></ul><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.as_bytes"·title="as_bytes">as_bytes</a></li><li><a·href="#method.into_bytes"·title="into_bytes">into_bytes</a></li><li><a·href="#method.into_utf8_lossy"·title="into_utf8_lossy">into_utf8_lossy</a></li><li><a·href="#method.utf8_error"·title="utf8_error">utf8_error</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-FromUtf8Error"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-FromUtf8Error"·title="Debug">Debug</a></li><li><a·href="#impl-Display-for-FromUtf8Error"·title="Display">Display</a></li><li><a·href="#impl-Eq-for-FromUtf8Error"·title="Eq">Eq</a></li><li><a·href="#impl-Error-for-FromUtf8Error"·title="Error">Error</a></li><li><a·href="#impl-PartialEq-for-FromUtf8Error"·title="PartialEq">PartialEq</a></li><li><a·href="#impl-StructuralPartialEq-for-FromUtf8Error"·title="StructuralPartialEq">StructuralPartialEq</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-FromUtf8Error"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-FromUtf8Error"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-FromUtf8Error"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-FromUtf8Error"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-FromUtf8Error"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-FromUtf8Error"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-ToString-for-T"·title="ToString">ToString</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>string</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">alloc</a>::<wbr><a·href="index.html">string</a></span><h1>Struct·<span·class="struct">FromUtf8Error</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../src/alloc/string.rs.html#400-403">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·FromUtf8Error·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>A·possible·error·value·when·converting·a·<code>String</code>·from·a·UTF-8·byte·vector.</p>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="A·possible·error·value·when·converting·a·`String`·from·a·UTF-8·byte·vector."><title>FromUtf8Error·in·alloc::string·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»  2025-01-07)»       (built» from»     a»    source»      tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">From<wbr>Utf8<wbr>Error</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#examples"·title="Examples">Examples</a></li></ul><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.as_bytes"·title="as_bytes">as_bytes</a></li><li><a·href="#method.into_bytes"·title="into_bytes">into_bytes</a></li><li><a·href="#method.into_utf8_lossy"·title="into_utf8_lossy">into_utf8_lossy</a></li><li><a·href="#method.utf8_error"·title="utf8_error">utf8_error</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-FromUtf8Error"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-FromUtf8Error"·title="Debug">Debug</a></li><li><a·href="#impl-Display-for-FromUtf8Error"·title="Display">Display</a></li><li><a·href="#impl-Eq-for-FromUtf8Error"·title="Eq">Eq</a></li><li><a·href="#impl-Error-for-FromUtf8Error"·title="Error">Error</a></li><li><a·href="#impl-PartialEq-for-FromUtf8Error"·title="PartialEq">PartialEq</a></li><li><a·href="#impl-StructuralPartialEq-for-FromUtf8Error"·title="StructuralPartialEq">StructuralPartialEq</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-FromUtf8Error"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-FromUtf8Error"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-FromUtf8Error"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-FromUtf8Error"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-FromUtf8Error"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-FromUtf8Error"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-ToString-for-T"·title="ToString">ToString</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>string</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">alloc</a>::<wbr><a·href="index.html">string</a></span><h1>Struct·<span·class="struct">FromUtf8Error</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../src/alloc/string.rs.html#400-403">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·FromUtf8Error·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>A·possible·error·value·when·converting·a·<code>String</code>·from·a·UTF-8·byte·vector.</p>
2 <p>This·type·is·the·error·type·for·the·<a·href="struct.String.html#method.from_utf8"·title="associated·function·alloc::string::String::from_utf8"><code>from_utf8</code></a>·method·on·<a·href="struct.String.html"·title="struct·alloc::string::String"><code>String</code></a>.·It2 <p>This·type·is·the·error·type·for·the·<a·href="struct.String.html#method.from_utf8"·title="associated·function·alloc::string::String::from_utf8"><code>from_utf8</code></a>·method·on·<a·href="struct.String.html"·title="struct·alloc::string::String"><code>String</code></a>.·It
3 is·designed·in·such·a·way·to·carefully·avoid·reallocations:·the3 is·designed·in·such·a·way·to·carefully·avoid·reallocations:·the
4 <a·href="struct.FromUtf8Error.html#method.into_bytes"·title="method·alloc::string::FromUtf8Error::into_bytes"><code>into_bytes</code></a>·method·will·give·back·the·byte·vector·that·was·used·in·the4 <a·href="struct.FromUtf8Error.html#method.into_bytes"·title="method·alloc::string::FromUtf8Error::into_bytes"><code>into_bytes</code></a>·method·will·give·back·the·byte·vector·that·was·used·in·the
5 conversion·attempt.</p>5 conversion·attempt.</p>
6 <p>The·<a·href="../str/struct.Utf8Error.html"·title="std::str::Utf8Error"><code>Utf8Error</code></a>·type·provided·by·<a·href="https://doc.rust-lang.org/1.84.0/core/str/index.html"·title="std::str"><code>std::str</code></a>·represents·an·error·that·may 
7 occur·when·converting·a·slice·of·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.u8.html"·title="primitive·u8"><code>u8</code></a>s·to·a·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.str.html"·title="&amp;str"><code>&amp;str</code></a>.[·...·truncated·by·diffoscope;·len:·20,·SHA:·7a2250b8e1cd1fc2ead63d785c1960a0208207899d933688143d25987bbc1eda·...·]6 <p>The·<a·href="../str/struct.Utf8Error.html"·title="std::str::Utf8Error"><code>Utf8Error</code></a>·type·provided·by·<a·href="../../core/str/index.html"·title="std::str"><code>std::str</code></a>·represents·an·error·that·may
 7 occur·when·converting·a·slice·of·<a·href="../../core/primitive.u8.html"·title="primitive·u8"><code>u8</code></a>s·to·a·<a·href="../../core/primitive.str.html"·title="&amp;str"><code>&amp;str</code></a>.·In·this·sense,·it’s
8 an·analogue·to·<code>FromUtf8Error</code>,·and·you·can·get·one·from·a·<code>FromUtf8Error</code>8 an·analogue·to·<code>FromUtf8Error</code>,·and·you·can·get·one·from·a·<code>FromUtf8Error</code>
9 through·the·<a·href="struct.FromUtf8Error.html#method.utf8_error"·title="method·alloc::string::FromUtf8Error::utf8_error"><code>utf8_error</code></a>·method.</p>9 through·the·<a·href="struct.FromUtf8Error.html#method.utf8_error"·title="method·alloc::string::FromUtf8Error::utf8_error"><code>utf8_error</code></a>·method.</p>
10 <h2·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h2>10 <h2·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h2>
11 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="comment">//·some·invalid·bytes,·in·a·vector11 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="comment">//·some·invalid·bytes,·in·a·vector
12 </span><span·class="kw">let·</span>bytes·=·<span·class="macro">vec!</span>[<span·class="number">0</span>,·<span·class="number">159</span>];12 </span><span·class="kw">let·</span>bytes·=·<span·class="macro">vec!</span>[<span·class="number">0</span>,·<span·class="number">159</span>];
  
13 <span·class="kw">let·</span>value·=·String::from_utf8(bytes);13 <span·class="kw">let·</span>value·=·String::from_utf8(bytes);
  
14 <span·class="macro">assert!</span>(value.is_err());14 <span·class="macro">assert!</span>(value.is_err());
15 <span·class="macro">assert_eq!</span>(<span·class="macro">vec!</span>[<span·class="number">0</span>,·<span·class="number">159</span>],·value.unwrap_err().into_bytes());</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A//+some+invalid+bytes,+in+a+vector%0Afn+main()+%7B%0A++++let+bytes+=+vec!%5B0,+159%5D;%0A++++%0A++++let+value+=+String::from_utf8(bytes);%0A++++%0A++++assert!(value.is_err());%0A++++assert_eq!(vec!%5B0,+159%5D,+value.unwrap_err().into_bytes());%0A%7D&amp;edition=2021"></a></div>15 <span·class="macro">assert_eq!</span>(<span·class="macro">vec!</span>[<span·class="number">0</span>,·<span·class="number">159</span>],·value.unwrap_err().into_bytes());</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A//+some+invalid+bytes,+in+a+vector%0Afn+main()+%7B%0A++++let+bytes+=+vec!%5B0,+159%5D;%0A++++%0A++++let+value+=+String::from_utf8(bytes);%0A++++%0A++++assert!(value.is_err());%0A++++assert_eq!(vec!%5B0,+159%5D,+value.unwrap_err().into_bytes());%0A%7D&amp;edition=2021"></a></div>
16 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-FromUtf8Error"·class="impl"><a·class="src·rightside"·href="../../src/alloc/string.rs.html#2062-2177">Source</a><a·href="#impl-FromUtf8Error"·class="anchor">§</a><h3·class="code-header">impl·<a·class="struct"·href="struct.FromUtf8Error.html"·title="struct·alloc::string::FromUtf8Error">FromUtf8Error</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.as_bytes"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.26.0">1.26.0</span>···<a·class="src"·href="../../src/alloc/string.rs.html#2077-2079">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.as_bytes"·class="fn">as_bytes</a>(&amp;self)·-&gt;·&amp;[<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.u8.html">u8</a>]</h4></section></summary><div·class="docblock"><p>Returns·a·slice·of·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.u8.html"·title="primitive·u8"><code>u8</code></a>s·bytes·that·were·attempted·to·convert·to·a·<code>String</code>.</p>16 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-FromUtf8Error"·class="impl"><a·class="src·rightside"·href="../../src/alloc/string.rs.html#2062-2177">Source</a><a·href="#impl-FromUtf8Error"·class="anchor">§</a><h3·class="code-header">impl·<a·class="struct"·href="struct.FromUtf8Error.html"·title="struct·alloc::string::FromUtf8Error">FromUtf8Error</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.as_bytes"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.26.0">1.26.0</span>···<a·class="src"·href="../../src/alloc/string.rs.html#2077-2079">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.as_bytes"·class="fn">as_bytes</a>(&amp;self)·-&gt;·&amp;[<a·class="primitive"·href="../../core/primitive.u8.html">u8</a>]</h4></section></summary><div·class="docblock"><p>Returns·a·slice·of·<a·href="../../core/primitive.u8.html"·title="primitive·u8"><code>u8</code></a>s·bytes·that·were·attempted·to·convert·to·a·<code>String</code>.</p>
17 <h5·id="examples-1"><a·class="doc-anchor"·href="#examples-1">§</a>Examples</h5>17 <h5·id="examples-1"><a·class="doc-anchor"·href="#examples-1">§</a>Examples</h5>
18 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="comment">//·some·invalid·bytes,·in·a·vector18 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="comment">//·some·invalid·bytes,·in·a·vector
19 </span><span·class="kw">let·</span>bytes·=·<span·class="macro">vec!</span>[<span·class="number">0</span>,·<span·class="number">159</span>];19 </span><span·class="kw">let·</span>bytes·=·<span·class="macro">vec!</span>[<span·class="number">0</span>,·<span·class="number">159</span>];
  
20 <span·class="kw">let·</span>value·=·String::from_utf8(bytes);20 <span·class="kw">let·</span>value·=·String::from_utf8(bytes);
  
21 <span·class="macro">assert_eq!</span>(<span·class="kw-2">&amp;</span>[<span·class="number">0</span>,·<span·class="number">159</span>],·value.unwrap_err().as_bytes());</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A//+some+invalid+bytes,+in+a+vector%0Afn+main()+%7B%0A++++let+bytes+=+vec!%5B0,+159%5D;%0A++++%0A++++let+value+=+String::from_utf8(bytes);%0A++++%0A++++assert_eq!(%26%5B0,+159%5D,+value.unwrap_err().as_bytes());%0A%7D&amp;edition=2021"></a></div>21 <span·class="macro">assert_eq!</span>(<span·class="kw-2">&amp;</span>[<span·class="number">0</span>,·<span·class="number">159</span>],·value.unwrap_err().as_bytes());</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A//+some+invalid+bytes,+in+a+vector%0Afn+main()+%7B%0A++++let+bytes+=+vec!%5B0,+159%5D;%0A++++%0A++++let+value+=+String::from_utf8(bytes);%0A++++%0A++++assert_eq!(%26%5B0,+159%5D,+value.unwrap_err().as_bytes());%0A%7D&amp;edition=2021"></a></div>
Offset 31, 46 lines modifiedOffset 31, 46 lines modified
31 <h5·id="examples-2"><a·class="doc-anchor"·href="#examples-2">§</a>Examples</h5>31 <h5·id="examples-2"><a·class="doc-anchor"·href="#examples-2">§</a>Examples</h5>
32 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(string_from_utf8_lossy_owned)]32 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(string_from_utf8_lossy_owned)]
33 </span><span·class="comment">//·some·invalid·bytes33 </span><span·class="comment">//·some·invalid·bytes
34 </span><span·class="kw">let·</span>input:·Vec&lt;u8&gt;·=·<span·class="string">b"Hello·\xF0\x90\x80World"</span>.into();34 </span><span·class="kw">let·</span>input:·Vec&lt;u8&gt;·=·<span·class="string">b"Hello·\xF0\x90\x80World"</span>.into();
35 <span·class="kw">let·</span>output·=·String::from_utf8(input).unwrap_or_else(|e|·e.into_utf8_lossy());35 <span·class="kw">let·</span>output·=·String::from_utf8(input).unwrap_or_else(|e|·e.into_utf8_lossy());
  
36 <span·class="macro">assert_eq!</span>(String::from(<span·class="string">"Hello·�World"</span>),·output);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Bfeature(string_from_utf8_lossy_owned)%5D%0A//+some+invalid+bytes%0Afn+main()+%7B%0A++++let+input:+Vec%3Cu8%3E+=+b%22Hello+%5CxF0%5Cx90%5Cx80World%22.into();%0A++++let+output+=+String::from_utf8(input).unwrap_or_else(%7Ce%7C+e.into_utf8_lossy());%0A++++%0A++++assert_eq!(String::from(%22Hello+%EF%BF%BDWorld%22),+output);%0A%7D&amp;version=nightly&amp;edition=2021"></a></div>36 <span·class="macro">assert_eq!</span>(String::from(<span·class="string">"Hello·�World"</span>),·output);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Bfeature(string_from_utf8_lossy_owned)%5D%0A//+some+invalid+bytes%0Afn+main()+%7B%0A++++let+input:+Vec%3Cu8%3E+=+b%22Hello+%5CxF0%5Cx90%5Cx80World%22.into();%0A++++let+output+=+String::from_utf8(input).unwrap_or_else(%7Ce%7C+e.into_utf8_lossy());%0A++++%0A++++assert_eq!(String::from(%22Hello+%EF%BF%BDWorld%22),+output);%0A%7D&amp;version=nightly&amp;edition=2021"></a></div>
37 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.into_bytes"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/alloc/string.rs.html#2147-2149">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.into_bytes"·class="fn">into_bytes</a>(self)·-&gt;·<a·class="struct"·href="../vec/struct.Vec.html"·title="struct·alloc::vec::Vec">Vec</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.u8.html">u8</a>&gt;</h4></section></summary><div·class="docblock"><p>Returns·the·bytes·that·were·attempted·to·convert·to·a·<code>String</code>.</p>37 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.into_bytes"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/alloc/string.rs.html#2147-2149">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.into_bytes"·class="fn">into_bytes</a>(self)·-&gt;·<a·class="struct"·href="../vec/struct.Vec.html"·title="struct·alloc::vec::Vec">Vec</a>&lt;<a·class="primitive"·href="../../core/primitive.u8.html">u8</a>&gt;</h4></section></summary><div·class="docblock"><p>Returns·the·bytes·that·were·attempted·to·convert·to·a·<code>String</code>.</p>
38 <p>This·method·is·carefully·constructed·to·avoid·allocation.·It·will38 <p>This·method·is·carefully·constructed·to·avoid·allocation.·It·will
39 consume·the·error,·moving·out·the·bytes,·so·that·a·copy·of·the·bytes39 consume·the·error,·moving·out·the·bytes,·so·that·a·copy·of·the·bytes
40 does·not·need·to·be·made.</p>40 does·not·need·to·be·made.</p>
41 <h5·id="examples-3"><a·class="doc-anchor"·href="#examples-3">§</a>Examples</h5>41 <h5·id="examples-3"><a·class="doc-anchor"·href="#examples-3">§</a>Examples</h5>
42 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="comment">//·some·invalid·bytes,·in·a·vector42 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="comment">//·some·invalid·bytes,·in·a·vector
43 </span><span·class="kw">let·</span>bytes·=·<span·class="macro">vec!</span>[<span·class="number">0</span>,·<span·class="number">159</span>];43 </span><span·class="kw">let·</span>bytes·=·<span·class="macro">vec!</span>[<span·class="number">0</span>,·<span·class="number">159</span>];
  
44 <span·class="kw">let·</span>value·=·String::from_utf8(bytes);44 <span·class="kw">let·</span>value·=·String::from_utf8(bytes);
  
45 <span·class="macro">assert_eq!</span>(<span·class="macro">vec!</span>[<span·class="number">0</span>,·<span·class="number">159</span>],·value.unwrap_err().into_bytes());</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A//+some+invalid+bytes,+in+a+vector%0Afn+main()+%7B%0A++++let+bytes+=+vec!%5B0,+159%5D;%0A++++%0A++++let+value+=+String::from_utf8(bytes);%0A++++%0A++++assert_eq!(vec!%5B0,+159%5D,+value.unwrap_err().into_bytes());%0A%7D&amp;edition=2021"></a></div>45 <span·class="macro">assert_eq!</span>(<span·class="macro">vec!</span>[<span·class="number">0</span>,·<span·class="number">159</span>],·value.unwrap_err().into_bytes());</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A//+some+invalid+bytes,+in+a+vector%0Afn+main()+%7B%0A++++let+bytes+=+vec!%5B0,+159%5D;%0A++++%0A++++let+value+=+String::from_utf8(bytes);%0A++++%0A++++assert_eq!(vec!%5B0,+159%5D,+value.unwrap_err().into_bytes());%0A%7D&amp;edition=2021"></a></div>
46 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.utf8_error"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/alloc/string.rs.html#2174-2176">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.utf8_error"·class="fn">utf8_error</a>(&amp;self)·-&gt;·<a·class="struct"·href="../str/struct.Utf8Error.html"·title="struct·alloc::str::Utf8Error">Utf8Error</a></h4></section></summary><div·class="docblock"><p>Fetch·a·<code>Utf8Error</code>·to·get·more·details·about·the·conversion·failure.</p>46 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.utf8_error"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/alloc/string.rs.html#2174-2176">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.utf8_error"·class="fn">utf8_error</a>(&amp;self)·-&gt;·<a·class="struct"·href="../str/struct.Utf8Error.html"·title="struct·alloc::str::Utf8Error">Utf8Error</a></h4></section></summary><div·class="docblock"><p>Fetch·a·<code>Utf8Error</code>·to·get·more·details·about·the·conversion·failure.</p>
47 <p>The·<a·href="../str/struct.Utf8Error.html"·title="struct·alloc::str::Utf8Error"><code>Utf8Error</code></a>·type·provided·by·<a·href="https://doc.rust-lang.org/1.84.0/core/str/index.html"·title="std::str"><code>std::str</code></a>·represents·an·error·that·may 
48 occur·when·converting·a·slice·of·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.u8.html"·title="primitive·u8"><code>u8</code></a>s·to·a·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.str.html"·title="&amp;str"><code>&amp;str</code></a>.[·...·truncated·by·diffoscope;·len:·20,·SHA:·7a2250b8e1cd1fc2ead63d785c1960a0208207899d933688143d25987bbc1eda·...·]47 <p>The·<a·href="../str/struct.Utf8Error.html"·title="struct·alloc::str::Utf8Error"><code>Utf8Error</code></a>·type·provided·by·<a·href="../../core/str/index.html"·title="std::str"><code>std::str</code></a>·represents·an·error·that·may
 48 occur·when·converting·a·slice·of·<a·href="../../core/primitive.u8.html"·title="primitive·u8"><code>u8</code></a>s·to·a·<a·href="../../core/primitive.str.html"·title="&amp;str"><code>&amp;str</code></a>.·In·this·sense,·it’s
49 an·analogue·to·<code>FromUtf8Error</code>.·See·its·documentation·for·more·details49 an·analogue·to·<code>FromUtf8Error</code>.·See·its·documentation·for·more·details
50 on·using·it.</p>50 on·using·it.</p>
51 <h5·id="examples-4"><a·class="doc-anchor"·href="#examples-4">§</a>Examples</h5>51 <h5·id="examples-4"><a·class="doc-anchor"·href="#examples-4">§</a>Examples</h5>
52 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="comment">//·some·invalid·bytes,·in·a·vector52 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="comment">//·some·invalid·bytes,·in·a·vector
53 </span><span·class="kw">let·</span>bytes·=·<span·class="macro">vec!</span>[<span·class="number">0</span>,·<span·class="number">159</span>];53 </span><span·class="kw">let·</span>bytes·=·<span·class="macro">vec!</span>[<span·class="number">0</span>,·<span·class="number">159</span>];
  
54 <span·class="kw">let·</span>error·=·String::from_utf8(bytes).unwrap_err().utf8_error();54 <span·class="kw">let·</span>error·=·String::from_utf8(bytes).unwrap_err().utf8_error();
  
55 <span·class="comment">//·the·first·byte·is·invalid·here55 <span·class="comment">//·the·first·byte·is·invalid·here
56 </span><span·class="macro">assert_eq!</span>(<span·class="number">1</span>,·error.valid_up_to());</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A//+some+invalid+bytes,+in+a+vector%0Afn+main()+%7B%0A++++let+bytes+=+vec!%5B0,+159%5D;%0A++++%0A++++let+error+=+String::from_utf8(bytes).unwrap_err().utf8_error();%0A++++%0A++++//+the+first+byte+is+invalid+here%0A++++assert_eq!(1,+error.valid_up_to());%0A%7D&amp;edition=2021"></a></div>56 </span><span·class="macro">assert_eq!</span>(<span·class="number">1</span>,·error.valid_up_to());</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A//+some+invalid+bytes,+in+a+vector%0Afn+main()+%7B%0A++++let+bytes+=+vec!%5B0,+159%5D;%0A++++%0A++++let+error+=+String::from_utf8(bytes).unwrap_err().utf8_error();%0A++++%0A++++//+the+first+byte+is+invalid+here%0A++++assert_eq!(1,+error.valid_up_to());%0A%7D&amp;edition=2021"></a></div>
57 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-FromUtf8Error"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/alloc/string.rs.html#398">Source</a></span><a·href="#impl-Clone-for-FromUtf8Error"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struct"·href="struct.FromUtf8Error.html"·title="struct·alloc::string::FromUtf8Error">FromUtf8Error</a></h3></section></summary><div·class[·...·truncated·by·diffoscope;·len:·10897,·SHA:·c4acdbaa81f30a6733369efc2020b4ba9c196ae6fd6d0fae3990ebb73bc07f33·...·]/core/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>!=</code>.·The·default·implementation·is·almost·always·sufficient,57 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-FromUtf8Error"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/alloc/string.rs.html#398">Source</a></span><a·href="#impl-Clone-for-FromUtf8Error"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struct"·href="struct.FromUtf8Error.html"·title="struct·alloc::string::FromUtf8Error">FromUtf8Error</a></h3></section></summary><div·class="impl-items"><details·clas[·...·truncated·by·diffoscope;·len:·10087,·SHA:·68fb5116ac1392a78183b55434f7803d94b0616ed3648454d33f11415582e00b·...·]/core/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>!=</code>.·The·default·implementation·is·almost·always·sufficient,
58 and·should·not·be·overridden·without·very·good·reason.</div></details></div></details><section·id="impl-Eq-for-FromUtf8Error"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/alloc/string.rs.html#399">Source</a></span><a·href="#impl-Eq-for-FromUtf8Error"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.Eq.html"·title="trait·core::cmp::Eq">Eq</a>·for·<a·class="struct"·href="struct.FromUtf8Error.html"·title="struct·alloc::string::FromUtf8Error">FromUtf8Error</a></h3></section><section·id="impl-StructuralParti[·...·truncated·by·diffoscope;·len:·3869,·SHA:·e030cc9a62f2128abef95afff0da5bf4168cb121cc0a6a024d907cdeacce7b27·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where58 and·should·not·be·overridden·without·very·good·reason.</div></details></div></details><section·id="impl-Eq-for-FromUtf8Error"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/alloc/string.rs.html#399">Source</a></span><a·href="#impl-Eq-for-FromUtf8Error"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/cmp/trait.Eq.html"·title="trait·core::cmp::Eq">Eq</a>·for·<a·class="struct"·href="struct.FromUtf8Error.html"·title="struct·alloc::string::FromUtf8Error">FromUtf8Error</a></h3></section><section·id="impl-StructuralPartialEq-for-FromUtf8Error"·cla[·...·truncated·by·diffoscope;·len:·3599,·SHA:·34ea753cea717603870ad229ab181d86092eb5ed32c089ae0cb70b00ae250127·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where
59 ····T:·'static·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method[·...·truncated·by·diffoscope;·len:·834,·SHA:·47dfc2aa0101a4103e2a94c1f971c559790d87a62d58631fd2bfed98e6616a34·...·]/src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where59 ····T:·'static·+·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·[·...·truncated·by·diffoscope;·len:·672,·SHA:·ace7a059971745d739c5abd9821e5d1d485cc233fd42150ceb251bdea1ce6bf7·...·]/src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where
60 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·[·...·truncated·by·diffoscope;·len:·737,·SHA:·9e65370662e77fc5c56c98c66a5dfda3c1d1244574dc8806ab91a8967514da78·...·]/src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.BorrowMut.html"·title="trait·alloc::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where60 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·r[·...·truncated·by·diffoscope;·len:·629,·SHA:·8e6f5d2e4a2830729c5d495459113ca6f54993696d7dc71c1f46e5691f5108ed·...·]/src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.BorrowMut.html"·title="trait·alloc::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where
61 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="met[·...·truncated·by·diffoscope;·len:·954,·SHA:·5ca69698d4bb8de1849b64ae87544dc0ec2bdd1a4d8dc75ba8d58b2c6c6a9ae6·...·]/core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where61 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="s[·...·truncated·by·diffoscope;·len:·819,·SHA:·3ca215d87d373be29774fff31d75c216034e4aa910e49de0e3fc5b88c46bc387·...·]/core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where
62 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="[·...·truncated·by·diffoscope;·len:·1883,·SHA:·e07301fb9e28f950d7450480a6b68014ffcdcc3be12b1adda27936cb1244377e·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>62 ····T:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·class[·...·truncated·by·diffoscope;·len:·1613,·SHA:·fde0dd5e9bb3fa078effcc98999e7fcc8b1aa390c8b7a3b6a3d8fd02f0c83e78·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>
63 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where63 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where
64 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="m[·...·truncated·by·diffoscope;·len:·237,·SHA:·98603c35860102b3af9b5cf27aeabf39e3c03236551986a6ec030817f108d919·...·]/core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>64 ····U:·<a·class="trait"·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class=[·...·truncated·by·diffoscope;·len:·156,·SHA:·79561c49c77b14346871935198fc061d00c9e84705db975b0451f5fb4f6af9a0·...·]/core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>
65 <p>That·is,·this·conversion·is·whatever·the·implementation·of65 <p>That·is,·this·conversion·is·whatever·the·implementation·of
66 <code><a·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>66 <code><a·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>
67 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#82-94">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where67 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#82-94">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where
68 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·t[·...·truncated·by·diffoscope;·len:·1350,·SHA:·06ff485c70db27d96df4529c9aabc3407488a0d8b3f238ea19fe87222f3c0e93·...·]/core/primitive.reference.html">&amp;mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToString-for-T"·class="impl"><a·class="src·rightside"·href="../../src/alloc/string.rs.html#2677-2691">Source</a><a·href="#impl-ToString-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="trait.ToString.html"·title="trait·alloc::string::ToString">ToString</a>·for·T<div·class="where">where68 ····T:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src·ri[·...·truncated·by·diffoscope;·len:·1296,·SHA:·88285bd52e5f5ad6b3e1b6d101339ab4047bdbd5b9d568c1e216b159cf17296e·...·]/core/primitive.reference.html">&amp;mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToString-for-T"·class="impl"><a·class="src·rightside"·href="../../src/alloc/string.rs.html#2677-2691">Source</a><a·href="#impl-ToString-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="trait.ToString.html"·title="trait·alloc::string::ToString">ToString</a>·for·T<div·class="where">where
69 ····T:·<a·class="trait"·href="../fmt/trait.Display.html"·title="trait·alloc::fmt::Display">Display</a>·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.to_string"·class="meth[·...·truncated·by·diffoscope;·len:·926,·SHA:·adf7c9077930ef865e9a223dede5b22a4865eafe60e43c5921170c6afc5fb058·...·]/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where69 ····T:·<a·class="trait"·href="../fmt/trait.Display.html"·title="trait·alloc::fmt::Display">Display</a>·+·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.to_string"·class="method·trait-impl"><a·class="sr[·...·truncated·by·diffoscope;·len:·845,·SHA:·ded7ec7967ebd25085949cd0720da2ab58f776b748c2fb39193af12429ffc2c9·...·]/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where
70 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="asso[·...·truncated·by·diffoscope;·len:·1973,·SHA:·db4b8407e8e20581ad139aef25a6221a11da0f5f18d6aa35aa33eb843f4e1b9f·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where70 ····U:·<a·class="trait"·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·c[·...·truncated·by·diffoscope;·len:·1676,·SHA:·4c73b68f4fb433b5f24fbcd660156381e5dd9f46425d075b558b9b6ca0705f88·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where
71 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·clas[·...·truncated·by·diffoscope;·len:·1578,·SHA:·998d5af10fd889567cd999d1306bfd16c91134d2238a3c172f1e7fa8ed138c18·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>71 ····U:·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-imp[·...·truncated·by·diffoscope;·len:·1308,·SHA:·6741e462a0e1b36010204263b7580305663bb27f362987d14303068592f9f358·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>
803 KB
./usr/share/doc/rust-doc/html/alloc/string/struct.String.html
Max HTML report size reached
3.64 KB
./usr/share/doc/rust-doc/html/alloc/string/trait.ToString.html
    
Offset 8, 13 lines modifiedOffset 8, 13 lines modified
8 implementation·for·free.</p>8 implementation·for·free.</p>
9 </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_string"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/alloc/string.rs.html#2666">Source</a></span><h4·class="code-header">fn·<a·href="#tymethod.to_string"·class="fn">to_string</a>(&amp;self)·-&gt;·<a·class="struct"·href="struct.String.html"·title="struct·alloc::string::String">String</a></h4></section></summary><div·class="docblock"><p>Converts·the·given·value·to·a·<code>String</code>.</p>9 </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_string"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/alloc/string.rs.html#2666">Source</a></span><h4·class="code-header">fn·<a·href="#tymethod.to_string"·class="fn">to_string</a>(&amp;self)·-&gt;·<a·class="struct"·href="struct.String.html"·title="struct·alloc::string::String">String</a></h4></section></summary><div·class="docblock"><p>Converts·the·given·value·to·a·<code>String</code>.</p>
10 <h5·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h5>10 <h5·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h5>
11 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span>i·=·<span·class="number">5</span>;11 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span>i·=·<span·class="number">5</span>;
12 <span·class="kw">let·</span>five·=·String::from(<span·class="string">"5"</span>);12 <span·class="kw">let·</span>five·=·String::from(<span·class="string">"5"</span>);
  
13 <span·class="macro">assert_eq!</span>(five,·i.to_string());</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++let+i+=+5;%0A++++let+five+=+String::from(%225%22);%0A++++%0A++++assert_eq!(five,+i.to_string());%0A%7D&amp;edition=2021"></a></div>13 <span·class="macro">assert_eq!</span>(five,·i.to_string());</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++let+i+=+5;%0A++++let+five+=+String::from(%225%22);%0A++++%0A++++assert_eq!(five,+i.to_string());%0A%7D&amp;edition=2021"></a></div>
14 </div></details></div><h2·id="implementors"·class="section-header">Implementors<a·href="#implementors"·class="anchor">§</a></h2><div·id="implementors-list"><section·id="impl-ToString-for-T"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/alloc/string.rs.html#2677-2691">Source</a></span><a·href="#impl-ToString-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T:·<a·class="trait"·href="../fmt/trait.Display.html"·title="trait·alloc::fmt::Display">Display</a>·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>&gt;·<a·class="trait"·href="trait.ToString.html"·title="trait·alloc::string::ToString">ToString</a>·for·T</h3></section><div·class="docblock"><h4·id="panics"><a·class="doc-anchor"·href="#panics">§</a>Panics</h4>14 </div></details></div><h2·id="implementors"·class="section-header">Implementors<a·href="#implementors"·class="anchor">§</a></h2><div·id="implementors-list"><section·id="impl-ToString-for-T"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/alloc/string.rs.html#2677-2691">Source</a></span><a·href="#impl-ToString-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T:·<a·class="trait"·href="../fmt/trait.Display.html"·title="trait·alloc::fmt::Display">Display</a>·+·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>&gt;·<a·class="trait"·href="trait.ToString.html"·title="trait·alloc::string::ToString">ToString</a>·for·T</h3></section><div·class="docblock"><h4·id="panics"><a·class="doc-anchor"·href="#panics">§</a>Panics</h4>
15 <p>In·this·implementation,·the·<code>to_string</code>·method·panics15 <p>In·this·implementation,·the·<code>to_string</code>·method·panics
16 if·the·<code>Display</code>·implementation·returns·an·error.16 if·the·<code>Display</code>·implementation·returns·an·error.
17 This·indicates·an·incorrect·<code>Display</code>·implementation17 This·indicates·an·incorrect·<code>Display</code>·implementation
18 since·<code>fmt::Write·for·String</code>·never·returns·an·error·itself.</p>18 since·<code>fmt::Write·for·String</code>·never·returns·an·error·itself.</p>
19 </div></div><script·src="../../trait.impl/alloc/string/trait.ToString.js"·async></script></section></div></main></body></html>19 </div></div><script·src="../../trait.impl/alloc/string/trait.ToString.js"·async></script></section></div></main></body></html>
8.07 KB
./usr/share/doc/rust-doc/html/alloc/string/type.ParseError.html
    
Offset 1, 3 lines modifiedOffset 1, 3 lines modified
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="A·type·alias·for·`Infallible`."><title>ParseError·in·alloc::string·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·type"><!--[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><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»    2025-01-07)» (built»   from»       a»      source»tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Parse<wbr>Error</a></h2><h3><a·href="#aliased-type">Aliased·type</a></h3></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>string</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">alloc</a>::<wbr><a·href="index.html">string</a></span><h1>Type·Alias·<span·class="type">ParseError</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../src/alloc/string.rs.html#2630">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·type·ParseError·=·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/convert/enum.Infallible.html"·title="enum·core::convert::Infallible">Infallible</a>;</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docbloc[·...·truncated·by·diffoscope;·len:·64,·SHA:·d13569c019032a65e04b62e081c92a5b8d6a0189093ff807730129d118bab7b8·...·]/core/convert/enum.Infallible.html"·title="convert::Infallible"><code>Infallible</code></a>.</p>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="A·type·alias·for·`Infallible`."><title>ParseError·in·alloc::string·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·type"><!--[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><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»    2025-01-07)» (built»   from»       a»      source»tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Parse<wbr>Error</a></h2><h3><a·href="#aliased-type">Aliased·type</a></h3></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>string</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">alloc</a>::<wbr><a·href="index.html">string</a></span><h1>Type·Alias·<span·class="type">ParseError</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../src/alloc/string.rs.html#2630">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·type·ParseError·=·<a·class="enum"·href="../../core/convert/enum.Infallible.html"·title="enum·core::convert::Infallible">Infallible</a>;</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>A·type·alias·for·<a·h[·...·truncated·by·diffoscope;·len:·10,·SHA:·5d82b952069f26991fd9df11e09030c60b3a19360b792cb4ea96d239295c153e·...·]/core/convert/enum.Infallible.html"·title="convert::Infallible"><code>Infallible</code></a>.</p>
2 <p>This·alias·exists·for·backwards·compatibility,·and·may·be·eventually·deprecated.</p>2 <p>This·alias·exists·for·backwards·compatibility,·and·may·be·eventually·deprecated.</p>
3 </div></details><h2·id="aliased-type"·class="section-header">Aliased·Type<a·href="#aliased-type"·class="anchor">§</a></h2><pre·class="rust·item-decl"><code>enum·ParseError·{}</code></pre><h2·id="variants"·class="variants·section-header">Variants<a·href="#variants"·class="anchor">§</a></h2><div·class="variants"></div><script·src="../../type.impl/core/convert/enum.Infallible.js"·data-self-path="alloc::string::ParseError"·async></script></section></div></main></body></html>3 </div></details><h2·id="aliased-type"·class="section-header">Aliased·Type<a·href="#aliased-type"·class="anchor">§</a></h2><pre·class="rust·item-decl"><code>enum·ParseError·{}</code></pre><h2·id="variants"·class="variants·section-header">Variants<a·href="#variants"·class="anchor">§</a></h2><div·class="variants"></div><script·src="../../type.impl/core/convert/enum.Infallible.js"·data-self-path="alloc::string::ParseError"·async></script></section></div></main></body></html>
412 KB
./usr/share/doc/rust-doc/html/alloc/sync/struct.Arc.html
Max HTML report size reached
116 KB
./usr/share/doc/rust-doc/html/alloc/sync/struct.Weak.html
    
Offset 1, 42 lines modifiedOffset 1, 42 lines modified
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="`Weak`·is·a·version·of·`Arc`·that·holds·a·non-owning·reference·to·the·managed·allocation."><title>Weak·in·alloc::sync·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312» 2025-01-07)»      (built»from»    a»   source»     tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Weak</a></h2><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.allocator"·title="allocator">allocator</a></li><li><a·href="#method.as_ptr"·title="as_ptr">as_ptr</a></li><li><a·href="#method.from_raw"·title="from_raw">from_raw</a></li><li><a·href="#method.from_raw_in"·title="from_raw_in">from_raw_in</a></li><li><a·href="#method.into_raw"·title="into_raw">into_raw</a></li><li><a·href="#method.into_raw_with_allocator"·title="into_raw_with_allocator">into_raw_with_allocator</a></li><li><a·href="#method.new"·title="new">new</a></li><li><a·href="#method.new_in"·title="new_in">new_in</a></li><li><a·href="#method.ptr_eq"·title="ptr_eq">ptr_eq</a></li><li><a·href="#method.strong_count"·title="strong_count">strong_count</a></li><li><a·href="#method.upgrade"·title="upgrade">upgrade</a></li><li><a·href="#method.weak_count"·title="weak_count">weak_count</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-Weak%3CT,+A%3E"·title="Clone">Clone</a></li><li><a·href="#impl-CoerceUnsized%3CWeak%3CU,+A%3E%3E-for-Weak%3CT,+A%3E"·title="CoerceUnsized&#60;Weak&#60;U,·A&#62;&#62;">CoerceUnsized&#60;Weak&#60;U,·A&#62;&#62;</a></li><li><a·href="#impl-Debug-for-Weak%3CT,+A%3E"·title="Debug">Debug</a></li><li><a·href="#impl-Default-for-Weak%3CT%3E"·title="Default">Default</a></li><li><a·href="#impl-DispatchFromDyn%3CWeak%3CU%3E%3E-for-Weak%3CT%3E"·title="DispatchFromDyn&#60;Weak&#60;U&#62;&#62;">DispatchFromDyn&#60;Weak&#60;U&#62;&#62;</a></li><li><a·href="#impl-Drop-for-Weak%3CT,+A%3E"·title="Drop">Drop</a></li><li><a·href="#impl-PinCoerceUnsized-for-Weak%3CT,+A%3E"·title="PinCoerceUnsized">PinCoerceUnsized</a></li><li><a·href="#impl-Send-for-Weak%3CT,+A%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-Weak%3CT,+A%3E"·title="Sync">Sync</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-Weak%3CT,+A%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Weak%3CT,+A%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Unpin-for-Weak%3CT,+A%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Weak%3CT,+A%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>sync</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">alloc</a>::<wbr><a·href="index.html">sync</a></span><h1>Struct·<span·class="struct">Weak</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../src/alloc/sync.rs.html#317-329">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·Weak&lt;T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,·A:·<a·class="trait"·href="../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·=·<a·class="struct"·href="../alloc/struct.Global.html"·title="struct·alloc::alloc::Global">Global</a>&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p><code>Weak</code>·is·a·version·of·<a·href="struct.Arc.html"·title="struct·alloc::sync::Arc"><code>Arc</code></a>·that·holds·a·non-owning·reference·to·the1 <!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="`Weak`·is·a·version·of·`Arc`·that·holds·a·non-owning·reference·to·the·managed·allocation."><title>Weak·in·alloc::sync·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312» 2025-01-07)»      (built»from»    a»   source»     tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Weak</a></h2><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.allocator"·title="allocator">allocator</a></li><li><a·href="#method.as_ptr"·title="as_ptr">as_ptr</a></li><li><a·href="#method.from_raw"·title="from_raw">from_raw</a></li><li><a·href="#method.from_raw_in"·title="from_raw_in">from_raw_in</a></li><li><a·href="#method.into_raw"·title="into_raw">into_raw</a></li><li><a·href="#method.into_raw_with_allocator"·title="into_raw_with_allocator">into_raw_with_allocator</a></li><li><a·href="#method.new"·title="new">new</a></li><li><a·href="#method.new_in"·title="new_in">new_in</a></li><li><a·href="#method.ptr_eq"·title="ptr_eq">ptr_eq</a></li><li><a·href="#method.strong_count"·title="strong_count">strong_count</a></li><li><a·href="#method.upgrade"·title="upgrade">upgrade</a></li><li><a·href="#method.weak_count"·title="weak_count">weak_count</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-Weak%3CT,+A%3E"·title="Clone">Clone</a></li><li><a·href="#impl-CoerceUnsized%3CWeak%3CU,+A%3E%3E-for-Weak%3CT,+A%3E"·title="CoerceUnsized&#60;Weak&#60;U,·A&#62;&#62;">CoerceUnsized&#60;Weak&#60;U,·A&#62;&#62;</a></li><li><a·href="#impl-Debug-for-Weak%3CT,+A%3E"·title="Debug">Debug</a></li><li><a·href="#impl-Default-for-Weak%3CT%3E"·title="Default">Default</a></li><li><a·href="#impl-DispatchFromDyn%3CWeak%3CU%3E%3E-for-Weak%3CT%3E"·title="DispatchFromDyn&#60;Weak&#60;U&#62;&#62;">DispatchFromDyn&#60;Weak&#60;U&#62;&#62;</a></li><li><a·href="#impl-Drop-for-Weak%3CT,+A%3E"·title="Drop">Drop</a></li><li><a·href="#impl-PinCoerceUnsized-for-Weak%3CT,+A%3E"·title="PinCoerceUnsized">PinCoerceUnsized</a></li><li><a·href="#impl-Send-for-Weak%3CT,+A%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-Weak%3CT,+A%3E"·title="Sync">Sync</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-Weak%3CT,+A%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Weak%3CT,+A%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Unpin-for-Weak%3CT,+A%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Weak%3CT,+A%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>sync</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">alloc</a>::<wbr><a·href="index.html">sync</a></span><h1>Struct·<span·class="struct">Weak</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../src/alloc/sync.rs.html#317-329">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·Weak&lt;T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,·A:·<a·class="trait"·href="../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·=·<a·class="struct"·href="../alloc/struct.Global.html"·title="struct·alloc::alloc::Global">Global</a>&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p><code>Weak</code>·is·a·version·of·<a·href="struct.Arc.html"·title="struct·alloc::sync::Arc"><code>Arc</code></a>·that·holds·a·non-owning·reference·to·the
2 managed·allocation.</p>2 managed·allocation.</p>
3 <p>The·allocation·is·accessed·by·calling·<a·href="struct.Weak.html#method.upgrade"·title="method·alloc::sync::Weak::upgrade"><code>upgrade</code></a>·on·the·<code>Weak</code>3 <p>The·allocation·is·accessed·by·calling·<a·href="struct.Weak.html#method.upgrade"·title="method·alloc::sync::Weak::upgrade"><code>upgrade</code></a>·on·the·<code>Weak</code>
4 pointer,·which·returns·an·<code><a·href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·href="struct.Arc.html"·title="struct·alloc::sync::Arc">Arc</a>&lt;T&gt;&gt;</code>.</p>4 pointer,·which·returns·an·<code><a·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·href="struct.Arc.html"·title="struct·alloc::sync::Arc">Arc</a>&lt;T&gt;&gt;</code>.</p>
5 <p>Since·a·<code>Weak</code>·reference·does·not·count·towards·ownership,·it·will·not5 <p>Since·a·<code>Weak</code>·reference·does·not·count·towards·ownership,·it·will·not
6 prevent·the·value·stored·in·the·allocation·from·being·dropped,·and·<code>Weak</code>·itself·makes·no6 prevent·the·value·stored·in·the·allocation·from·being·dropped,·and·<code>Weak</code>·itself·makes·no
7 guarantees·about·the·value·still·being·present.·Thus·it·may·return·<a·href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html#variant.None"·title="variant·core::option::Option::None"><code>None</code></a>7 guarantees·about·the·value·still·being·present.·Thus·it·may·return·<a·href="../../core/option/enum.Option.html#variant.None"·title="variant·core::option::Option::None"><code>None</code></a>
8 when·<a·href="struct.Weak.html#method.upgrade"·title="method·alloc::sync::Weak::upgrade"><code>upgrade</code></a>d.·Note·however·that·a·<code>Weak</code>·reference·<em>does</em>·prevent·the·allocation8 when·<a·href="struct.Weak.html#method.upgrade"·title="method·alloc::sync::Weak::upgrade"><code>upgrade</code></a>d.·Note·however·that·a·<code>Weak</code>·reference·<em>does</em>·prevent·the·allocation
9 itself·(the·backing·store)·from·being·deallocated.</p>9 itself·(the·backing·store)·from·being·deallocated.</p>
10 <p>A·<code>Weak</code>·pointer·is·useful·for·keeping·a·temporary·reference·to·the·allocation10 <p>A·<code>Weak</code>·pointer·is·useful·for·keeping·a·temporary·reference·to·the·allocation
11 managed·by·<a·href="struct.Arc.html"·title="struct·alloc::sync::Arc"><code>Arc</code></a>·without·preventing·its·inner·value·from·being·dropped.·It·is·also·used·to11 managed·by·<a·href="struct.Arc.html"·title="struct·alloc::sync::Arc"><code>Arc</code></a>·without·preventing·its·inner·value·from·being·dropped.·It·is·also·used·to
12 prevent·circular·references·between·<a·href="struct.Arc.html"·title="struct·alloc::sync::Arc"><code>Arc</code></a>·pointers,·since·mutual·owning·references12 prevent·circular·references·between·<a·href="struct.Arc.html"·title="struct·alloc::sync::Arc"><code>Arc</code></a>·pointers,·since·mutual·owning·references
13 would·never·allow·either·<a·href="struct.Arc.html"·title="struct·alloc::sync::Arc"><code>Arc</code></a>·to·be·dropped.·For·example,·a·tree·could13 would·never·allow·either·<a·href="struct.Arc.html"·title="struct·alloc::sync::Arc"><code>Arc</code></a>·to·be·dropped.·For·example,·a·tree·could
14 have·strong·<a·href="struct.Arc.html"·title="struct·alloc::sync::Arc"><code>Arc</code></a>·pointers·from·parent·nodes·to·children,·and·<code>Weak</code>14 have·strong·<a·href="struct.Arc.html"·title="struct·alloc::sync::Arc"><code>Arc</code></a>·pointers·from·parent·nodes·to·children,·and·<code>Weak</code>
15 pointers·from·children·back·to·their·parents.</p>15 pointers·from·children·back·to·their·parents.</p>
16 <p>The·typical·way·to·obtain·a·<code>Weak</code>·pointer·is·to·call·<a·href="struct.Arc.html#method.downgrade"·title="associated·function·alloc::sync::Arc::downgrade"><code>Arc::downgrade</code></a>.</p>16 <p>The·typical·way·to·obtain·a·<code>Weak</code>·pointer·is·to·call·<a·href="struct.Arc.html#method.downgrade"·title="associated·function·alloc::sync::Arc::downgrade"><code>Arc::downgrade</code></a>.</p>
17 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Weak%3CT%3E"·class="impl"><a·class="src·rightside"·href="../../src/alloc/sync.rs.html#2654-2680">Source</a><a·href="#impl-Weak%3CT%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="struct"·href="struct.Weak.html"·title="struct·alloc::sync::Weak">Weak</a>&lt;T&gt;</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.new"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.10.0,·const·since·1.73.0">1.10.0·(const:·1.73.0)</span>···<a·class="src"·href="../../src/alloc/sync.rs.html#2672-2679">Source</a></span><h4·class="code-header">pub·const·fn·<a·href="#method.new"·class="fn">new</a>()·-&gt;·<a·class="struct"·href="struct.Weak.html"·title="struct·alloc::sync::Weak">Weak</a>&lt;T&gt;</h4></section></summary><div·class="docblock"><p>Constructs·a·new·<code>Weak&lt;T&gt;</code>,·without·allocating·any·memory.17 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Weak%3CT%3E"·class="impl"><a·class="src·rightside"·href="../../src/alloc/sync.rs.html#2654-2680">Source</a><a·href="#impl-Weak%3CT%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="struct"·href="struct.Weak.html"·title="struct·alloc::sync::Weak">Weak</a>&lt;T&gt;</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.new"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.10.0,·const·since·1.73.0">1.10.0·(const:·1.73.0)</span>···<a·class="src"·href="../../src/alloc/sync.rs.html#2672-2679">Source</a></span><h4·class="code-header">pub·const·fn·<a·href="#method.new"·class="fn">new</a>()·-&gt;·<a·class="struct"·href="struct.Weak.html"·title="struct·alloc::sync::Weak">Weak</a>&lt;T&gt;</h4></section></summary><div·class="docblock"><p>Constructs·a·new·<code>Weak&lt;T&gt;</code>,·without·allocating·any·memory.
18 Calling·<a·href="struct.Weak.html#method.upgrade"·title="method·alloc::sync::Weak::upgrade"><code>upgrade</code></a>·on·the·return·value·always·gives·<a·href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html#variant.None"·title="variant·core::option::Option::None"><code>None</code></a>.</p>18 Calling·<a·href="struct.Weak.html#method.upgrade"·title="method·alloc::sync::Weak::upgrade"><code>upgrade</code></a>·on·the·return·value·always·gives·<a·href="../../core/option/enum.Option.html#variant.None"·title="variant·core::option::Option::None"><code>None</code></a>.</p>
19 <h5·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h5>19 <h5·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h5>
20 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::sync::Weak;20 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::sync::Weak;
  
21 <span·class="kw">let·</span>empty:·Weak&lt;i64&gt;·=·Weak::new();21 <span·class="kw">let·</span>empty:·Weak&lt;i64&gt;·=·Weak::new();
22 <span·class="macro">assert!</span>(empty.upgrade().is_none());</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::sync::Weak;%0A++++%0A++++let+empty:+Weak%3Ci64%3E+=+Weak::new();%0A++++assert!(empty.upgrade().is_none());%0A%7D&amp;edition=2021"></a></div>22 <span·class="macro">assert!</span>(empty.upgrade().is_none());</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::sync::Weak;%0A++++%0A++++let+empty:+Weak%3Ci64%3E+=+Weak::new();%0A++++assert!(empty.upgrade().is_none());%0A%7D&amp;edition=2021"></a></div>
23 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Weak%3CT,+A%3E"·class="impl"><a·class="src·rightside"·href="../../src/alloc/sync.rs.html#2682-2710">Source</a><a·href="#impl-Weak%3CT,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·A:·<a·class="trait"·href="../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>&gt;·<a·class="struct"·href="struct.Weak.html"·title="struct·alloc::sync::Weak">Weak</a>&lt;T,·A&gt;</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.new_in"·class="method"><a·class="src·rightside"·href="../../src/alloc/sync.rs.html#2702-2709">Source</a><h4·class="code-header">pub·fn·<a·href="#method.new_in"·class="fn">new_in</a>(alloc:·A)·-&gt;·<a·class="struct"·href="struct.Weak.html"·title="struct·alloc::sync::Weak">Weak</a>&lt;T,·A&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>allocator_api</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/32838">#32838</a>)</span></div></span></summary><div·class="docblock"><p>Constructs·a·new·<code>Weak&lt;T,·A&gt;</code>,·without·allocating·any·memory,·technically·in·the·provided23 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Weak%3CT,+A%3E"·class="impl"><a·class="src·rightside"·href="../../src/alloc/sync.rs.html#2682-2710">Source</a><a·href="#impl-Weak%3CT,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·A:·<a·class="trait"·href="../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>&gt;·<a·class="struct"·href="struct.Weak.html"·title="struct·alloc::sync::Weak">Weak</a>&lt;T,·A&gt;</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.new_in"·class="method"><a·class="src·rightside"·href="../../src/alloc/sync.rs.html#2702-2709">Source</a><h4·class="code-header">pub·fn·<a·href="#method.new_in"·class="fn">new_in</a>(alloc:·A)·-&gt;·<a·class="struct"·href="struct.Weak.html"·title="struct·alloc::sync::Weak">Weak</a>&lt;T,·A&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>allocator_api</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/32838">#32838</a>)</span></div></span></summary><div·class="docblock"><p>Constructs·a·new·<code>Weak&lt;T,·A&gt;</code>,·without·allocating·any·memory,·technically·in·the·provided
24 allocator.24 allocator.
25 Calling·<a·href="struct.Weak.html#method.upgrade"·title="method·alloc::sync::Weak::upgrade"><code>upgrade</code></a>·on·the·return·value·always·gives·<a·href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html#variant.None"·title="variant·core::option::Option::None"><code>None</code></a>.</p>25 Calling·<a·href="struct.Weak.html#method.upgrade"·title="method·alloc::sync::Weak::upgrade"><code>upgrade</code></a>·on·the·return·value·always·gives·<a·href="../../core/option/enum.Option.html#variant.None"·title="variant·core::option::Option::None"><code>None</code></a>.</p>
26 <h5·id="examples-1"><a·class="doc-anchor"·href="#examples-1">§</a>Examples</h5>26 <h5·id="examples-1"><a·class="doc-anchor"·href="#examples-1">§</a>Examples</h5>
27 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(allocator_api)]27 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(allocator_api)]
  
28 </span><span·class="kw">use·</span>std::sync::Weak;28 </span><span·class="kw">use·</span>std::sync::Weak;
29 <span·class="kw">use·</span>std::alloc::System;29 <span·class="kw">use·</span>std::alloc::System;
  
30 <span·class="kw">let·</span>empty:·Weak&lt;i64,·<span·class="kw">_</span>&gt;·=·Weak::new_in(System);30 <span·class="kw">let·</span>empty:·Weak&lt;i64,·<span·class="kw">_</span>&gt;·=·Weak::new_in(System);
31 <span·class="macro">assert!</span>(empty.upgrade().is_none());</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Bfeature(allocator_api)%5D%0A%0A%23%5Ballow(unused_extern_crates)%5D%0Aextern+crate+r%23alloc;%0Afn+main()+%7B%0A++++use+std::sync::Weak;%0A++++use+std::alloc::System;%0A++++%0A++++let+empty:+Weak%3Ci64,+_%3E+=+Weak::new_in(System);%0A++++assert!(empty.upgrade().is_none());%0A%7D&amp;version=nightly&amp;edition=2021"></a></div>31 <span·class="macro">assert!</span>(empty.upgrade().is_none());</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Bfeature(allocator_api)%5D%0A%0A%23%5Ballow(unused_extern_crates)%5D%0Aextern+crate+r%23alloc;%0Afn+main()+%7B%0A++++use+std::sync::Weak;%0A++++use+std::alloc::System;%0A++++%0A++++let+empty:+Weak%3Ci64,+_%3E+=+Weak::new_in(System);%0A++++assert!(empty.upgrade().is_none());%0A%7D&amp;version=nightly&amp;edition=2021"></a></div>
32 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Weak%3CT%3E-1"·class="impl"><a·class="src·rightside"·href="../../src/alloc/sync.rs.html#2719-2766">Source</a><a·href="#impl-Weak%3CT%3E-1"·class="anchor">§</a><h3·class="code-header">impl&lt;T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>&gt;·<a·class="struct"·href="struct.Weak.html"·title="struct·alloc::sync::Weak">Weak</a>&lt;T&gt;</h3></section></summary><div·class="impl-items"><det[·...·truncated·by·diffoscope;·len:·425,·SHA:·297ddc3b1f55118d2166de80ec7d9422e994fd63f48e577593ca38fd017b4914·...·]/core/primitive.pointer.html">*const·T</a>)·-&gt;·Self</h4></section></summary><div·class="docblock"><p>Converts·a·raw·pointer·previously·created·by·<a·href="struct.Weak.html#method.into_raw"·title="method·alloc::sync::Weak::into_raw"><code>into_raw</code></a>·back·into·<code>Weak&lt;T&gt;</code>.</p>32 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Weak%3CT%3E-1"·class="impl"><a·class="src·rightside"·href="../../src/alloc/sync.rs.html#2719-2766">Source</a><a·href="#impl-Weak%3CT%3E-1"·class="anchor">§</a><h3·class="code-header">impl&lt;T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>&gt;·<a·class="struct"·href="struct.Weak.html"·title="struct·alloc::sync::Weak">Weak</a>&lt;T&gt;</h3></section></summary><div·class="impl-items"><details·class="toggle·method-t[·...·truncated·by·diffoscope;·len:·371,·SHA:·df5532da1f5218739288826c6c35e712d82d5fa5eb603917028954d90b374d7d·...·]/core/primitive.pointer.html">*const·T</a>)·-&gt;·Self</h4></section></summary><div·class="docblock"><p>Converts·a·raw·pointer·previously·created·by·<a·href="struct.Weak.html#method.into_raw"·title="method·alloc::sync::Weak::into_raw"><code>into_raw</code></a>·back·into·<code>Weak&lt;T&gt;</code>.</p>
33 <p>This·can·be·used·to·safely·get·a·strong·reference·(by·calling·<a·href="struct.Weak.html#method.upgrade"·title="method·alloc::sync::Weak::upgrade"><code>upgrade</code></a>33 <p>This·can·be·used·to·safely·get·a·strong·reference·(by·calling·<a·href="struct.Weak.html#method.upgrade"·title="method·alloc::sync::Weak::upgrade"><code>upgrade</code></a>
34 later)·or·to·deallocate·the·weak·count·by·dropping·the·<code>Weak&lt;T&gt;</code>.</p>34 later)·or·to·deallocate·the·weak·count·by·dropping·the·<code>Weak&lt;T&gt;</code>.</p>
35 <p>It·takes·ownership·of·one·weak·reference·(with·the·exception·of·pointers·created·by·<a·href="struct.Weak.html#method.new"·title="associated·function·alloc::sync::Weak::new"><code>new</code></a>,35 <p>It·takes·ownership·of·one·weak·reference·(with·the·exception·of·pointers·created·by·<a·href="struct.Weak.html#method.new"·title="associated·function·alloc::sync::Weak::new"><code>new</code></a>,
36 as·these·don’t·own·anything;·the·method·still·works·on·them).</p>36 as·these·don’t·own·anything;·the·method·still·works·on·them).</p>
37 <h5·id="safety"><a·class="doc-anchor"·href="#safety">§</a>Safety</h5>37 <h5·id="safety"><a·class="doc-anchor"·href="#safety">§</a>Safety</h5>
38 <p>The·pointer·must·have·originated·from·the·<a·href="struct.Weak.html#method.into_raw"·title="method·alloc::sync::Weak::into_raw"><code>into_raw</code></a>·and·must·still·own·its·potential38 <p>The·pointer·must·have·originated·from·the·<a·href="struct.Weak.html#method.into_raw"·title="method·alloc::sync::Weak::into_raw"><code>into_raw</code></a>·and·must·still·own·its·potential
39 weak·reference.</p>39 weak·reference.</p>
Offset 57, 18 lines modifiedOffset 57, 18 lines modified
57 <span·class="macro">assert_eq!</span>(<span·class="string">"hello"</span>,·<span·class="kw-2">&amp;*</span><span·class="kw">unsafe·</span>{·Weak::from_raw(raw_1)·}.upgrade().unwrap());57 <span·class="macro">assert_eq!</span>(<span·class="string">"hello"</span>,·<span·class="kw-2">&amp;*</span><span·class="kw">unsafe·</span>{·Weak::from_raw(raw_1)·}.upgrade().unwrap());
58 <span·class="macro">assert_eq!</span>(<span·class="number">1</span>,·Arc::weak_count(<span·class="kw-2">&amp;</span>strong));58 <span·class="macro">assert_eq!</span>(<span·class="number">1</span>,·Arc::weak_count(<span·class="kw-2">&amp;</span>strong));
  
59 drop(strong);59 drop(strong);
  
60 <span·class="comment">//·Decrement·the·last·weak·count.60 <span·class="comment">//·Decrement·the·last·weak·count.
61 </span><span·class="macro">assert!</span>(<span·class="kw">unsafe·</span>{·Weak::from_raw(raw_2)·}.upgrade().is_none());</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::sync::%7BArc,+Weak%7D;%0A++++%0A++++let+strong+=+Arc::new(%22hello%22.to_owned());%0A++++%0A++++let+raw_1+=+Arc::downgrade(%26strong).into_raw();%0A++++let+raw_2+=+Arc::downgrade(%26strong).into_raw();%0A++++%0A++++assert_eq!(2,+Arc::weak_count(%26strong));%0A++++%0A++++assert_eq!(%22hello%22,+%26*unsafe+%7B+Weak::from_raw(raw_1)+%7D.upgrade().unwrap());%0A++++assert_eq!(1,+Arc::weak_count(%26strong));%0A++++%0A++++drop(strong);%0A++++%0A++++//+Decrement+the+last+weak+count.%0A++++assert!(unsafe+%7B+Weak::from_raw(raw_2)+%7D.upgrade().is_none());%0A%7D&amp;edition=2021"></a></div>61 </span><span·class="macro">assert!</span>(<span·class="kw">unsafe·</span>{·Weak::from_raw(raw_2)·}.upgrade().is_none());</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::sync::%7BArc,+Weak%7D;%0A++++%0A++++let+strong+=+Arc::new(%22hello%22.to_owned());%0A++++%0A++++let+raw_1+=+Arc::downgrade(%26strong).into_raw();%0A++++let+raw_2+=+Arc::downgrade(%26strong).into_raw();%0A++++%0A++++assert_eq!(2,+Arc::weak_count(%26strong));%0A++++%0A++++assert_eq!(%22hello%22,+%26*unsafe+%7B+Weak::from_raw(raw_1)+%7D.upgrade().unwrap());%0A++++assert_eq!(1,+Arc::weak_count(%26strong));%0A++++%0A++++drop(strong);%0A++++%0A++++//+Decrement+the+last+weak+count.%0A++++assert!(unsafe+%7B+Weak::from_raw(raw_2)+%7D.upgrade().is_none());%0A%7D&amp;edition=2021"></a></div>
62 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Weak%3CT,+A%3E-1"·class="impl"><a·class="src·rightside"·href="../../src/alloc/sync.rs.html#2768-2952">Source</a><a·href="#impl-Weak%3CT,+A%3E-1"·class="anchor">§</a><h3·class="code-header">impl&lt;T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,·A:·<a·class="trait"·href="../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>&gt;·<a·class="struct"·href="struct.Weak[·...·truncated·by·diffoscope;·len:·448,·SHA:·55a3fea3a67606666026d80e19e9905f69401daab70e5ff404aa5e997b8d48d8·...·]/core/primitive.reference.html">&amp;A</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>allocator_api</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/32838">#32838</a>)</span></div></span></summary><div·class="docblock"><p>Returns·a·reference·to·the·underlying·allocator.</p>62 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Weak%3CT,+A%3E-1"·class="impl"><a·class="src·rightside"·href="../../src/alloc/sync.rs.html#2768-2952">Source</a><a·href="#impl-Weak%3CT,+A%3E-1"·class="anchor">§</a><h3·class="code-header">impl&lt;T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,·A:·<a·class="trait"·href="../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>&gt;·<a·class="struct"·href="struct.Weak.html"·title="struct·alloc:[·...·truncated·by·diffoscope;·len:·394,·SHA:·6b174d7299b42427b8473508f2725aceba736c53368bacf7482c7817ce264373·...·]/core/primitive.reference.html">&amp;A</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>allocator_api</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/32838">#32838</a>)</span></div></span></summary><div·class="docblock"><p>Returns·a·reference·to·the·underlying·allocator.</p>
63 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.as_ptr"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.45.0">1.45.0</span>···<a·class="src"·href="../../src/alloc/sync.rs.html#2803-2816">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.as_ptr"·class="fn">as_ptr</a>(&amp;self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.pointer.html">*const·T</a></h4></section></summary><div·class="docblock"><p>Returns·a·raw·pointer·to·the·object·<code>T</code>·pointed·to·by·this·<code>Weak&lt;T&gt;</code>.</p>63 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.as_ptr"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.45.0">1.45.0</span>···<a·class="src"·href="../../src/alloc/sync.rs.html#2803-2816">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.as_ptr"·class="fn">as_ptr</a>(&amp;self)·-&gt;·<a·class="primitive"·href="../../core/primitive.pointer.html">*const·T</a></h4></section></summary><div·class="docblock"><p>Returns·a·raw·pointer·to·the·object·<code>T</code>·pointed·to·by·this·<code>Weak&lt;T&gt;</code>.</p>
64 <p>The·pointer·is·valid·only·if·there·are·some·strong·references.·The·pointer·may·be·dangling,64 <p>The·pointer·is·valid·only·if·there·are·some·strong·references.·The·pointer·may·be·dangling,
65 unaligned·or·even·<a·href="https://doc.rust-lang.org/1.84.0/core/ptr/fn.null.html"·title="ptr::null"><code>null</code></a>·otherwise.</p>65 unaligned·or·even·<a·href="../../core/ptr/fn.null.html"·title="ptr::null"><code>null</code></a>·otherwise.</p>
66 <h5·id="examples-3"><a·class="doc-anchor"·href="#examples-3">§</a>Examples</h5>66 <h5·id="examples-3"><a·class="doc-anchor"·href="#examples-3">§</a>Examples</h5>
67 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::sync::Arc;67 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::sync::Arc;
68 <span·class="kw">use·</span>std::ptr;68 <span·class="kw">use·</span>std::ptr;
  
69 <span·class="kw">let·</span>strong·=·Arc::new(<span·class="string">"hello"</span>.to_owned());69 <span·class="kw">let·</span>strong·=·Arc::new(<span·class="string">"hello"</span>.to_owned());
70 <span·class="kw">let·</span>weak·=·Arc::downgrade(<span·class="kw-2">&amp;</span>strong);70 <span·class="kw">let·</span>weak·=·Arc::downgrade(<span·class="kw-2">&amp;</span>strong);
71 <span·class="comment">//·Both·point·to·the·same·object71 <span·class="comment">//·Both·point·to·the·same·object
Offset 76, 15 lines modifiedOffset 76, 15 lines modified
76 <span·class="comment">//·The·strong·here·keeps·it·alive,·so·we·can·still·access·the·object.76 <span·class="comment">//·The·strong·here·keeps·it·alive,·so·we·can·still·access·the·object.
77 </span><span·class="macro">assert_eq!</span>(<span·class="string">"hello"</span>,·<span·class="kw">unsafe·</span>{·<span·class="kw-2">&amp;*</span>weak.as_ptr()·});77 </span><span·class="macro">assert_eq!</span>(<span·class="string">"hello"</span>,·<span·class="kw">unsafe·</span>{·<span·class="kw-2">&amp;*</span>weak.as_ptr()·});
  
78 drop(strong);78 drop(strong);
79 <span·class="comment">//·But·not·any·more.·We·can·do·weak.as_ptr(),·but·accessing·the·pointer·would·lead·to79 <span·class="comment">//·But·not·any·more.·We·can·do·weak.as_ptr(),·but·accessing·the·pointer·would·lead·to
80 //·undefined·behavior.80 //·undefined·behavior.
81 //·assert_eq!("hello",·unsafe·{·&amp;*weak.as_ptr()·});</span></code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::sync::Arc;%0A++++use+std::ptr;%0A++++%0A++++let+strong+=+Arc::new(%22hello%22.to_owned());%0A++++let+weak+=+Arc::downgrade(%26strong);%0A++++//+Both+point+to+the+same+object%0A++++assert!(ptr::eq(%26*strong,+weak.as_ptr()));%0A++++//+The+strong+here+keeps+it+alive,+so+we+can+still+access+the+object.%0A++++assert_eq!(%22hello%22,+unsafe+%7B+%26*weak.as_ptr()+%7D);%0A++++%0A++++drop(strong);%0A++++//+But+not+any+more.+We+can+do+weak.as_ptr(),+but+accessing+the+pointer+would+lead+to%0A++++//+undefined+behavior.%0A++++//+assert_eq!(%22hello%22,+unsafe+%7B+%26*weak.as_ptr()+%7D);%0A%7D&amp;edition=2021"></a></div>81 //·assert_eq!("hello",·unsafe·{·&amp;*weak.as_ptr()·});</span></code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::sync::Arc;%0A++++use+std::ptr;%0A++++%0A++++let+strong+=+Arc::new(%22hello%22.to_owned());%0A++++let+weak+=+Arc::downgrade(%26strong);%0A++++//+Both+point+to+the+same+object%0A++++assert!(ptr::eq(%26*strong,+weak.as_ptr()));%0A++++//+The+strong+here+keeps+it+alive,+so+we+can+still+access+the+object.%0A++++assert_eq!(%22hello%22,+unsafe+%7B+%26*weak.as_ptr()+%7D);%0A++++%0A++++drop(strong);%0A++++//+But+not+any+more.+We+can+do+weak.as_ptr(),+but+accessing+the+pointer+would+lead+to%0A++++//+undefined+behavior.%0A++++//+assert_eq!(%22hello%22,+unsafe+%7B+%26*weak.as_ptr()+%7D);%0A%7D&amp;edition=2021"></a></div>
82 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.into_raw"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.45.0">1.45.0</span>···<a·class="src"·href="../../src/alloc/sync.rs.html#2847-2849">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.into_raw"·class="fn">into_raw</a>(self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.pointer.html">*const·T</a></h4></section></summary><div·class="docblock"><p>Consumes·the·<code>Weak&lt;T&gt;</code>·and·turns·it·into·a·raw·pointer.</p>82 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.into_raw"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.45.0">1.45.0</span>···<a·class="src"·href="../../src/alloc/sync.rs.html#2847-2849">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.into_raw"·class="fn">into_raw</a>(self)·-&gt;·<a·class="primitive"·href="../../core/primitive.pointer.html">*const·T</a></h4></section></summary><div·class="docblock"><p>Consumes·the·<code>Weak&lt;T&gt;</code>·and·turns·it·into·a·raw·pointer.</p>
83 <p>This·converts·the·weak·pointer·into·a·raw·pointer,·while·still·preserving·the·ownership·of83 <p>This·converts·the·weak·pointer·into·a·raw·pointer,·while·still·preserving·the·ownership·of
84 one·weak·reference·(the·weak·count·is·not·modified·by·this·operation).·It·can·be·turned84 one·weak·reference·(the·weak·count·is·not·modified·by·this·operation).·It·can·be·turned
85 back·into·the·<code>Weak&lt;T&gt;</code>·with·<a·href="struct.Weak.html#method.from_raw"·title="associated·function·alloc::sync::Weak::from_raw"><code>from_raw</code></a>.</p>85 back·into·the·<code>Weak&lt;T&gt;</code>·with·<a·href="struct.Weak.html#method.from_raw"·title="associated·function·alloc::sync::Weak::from_raw"><code>from_raw</code></a>.</p>
86 <p>The·same·restrictions·of·accessing·the·target·of·the·pointer·as·with86 <p>The·same·restrictions·of·accessing·the·target·of·the·pointer·as·with
87 <a·href="struct.Weak.html#method.as_ptr"·title="method·alloc::sync::Weak::as_ptr"><code>as_ptr</code></a>·apply.</p>87 <a·href="struct.Weak.html#method.as_ptr"·title="method·alloc::sync::Weak::as_ptr"><code>as_ptr</code></a>·apply.</p>
88 <h5·id="examples-4"><a·class="doc-anchor"·href="#examples-4">§</a>Examples</h5>88 <h5·id="examples-4"><a·class="doc-anchor"·href="#examples-4">§</a>Examples</h5>
89 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::sync::{Arc,·Weak};89 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::sync::{Arc,·Weak};
Offset 94, 15 lines modifiedOffset 94, 15 lines modified
94 <span·class="kw">let·</span>raw·=·weak.into_raw();94 <span·class="kw">let·</span>raw·=·weak.into_raw();
  
95 <span·class="macro">assert_eq!</span>(<span·class="number">1</span>,·Arc::weak_count(<span·class="kw-2">&amp;</span>strong));95 <span·class="macro">assert_eq!</span>(<span·class="number">1</span>,·Arc::weak_count(<span·class="kw-2">&amp;</span>strong));
96 <span·class="macro">assert_eq!</span>(<span·class="string">"hello"</span>,·<span·class="kw">unsafe·</span>{·<span·class="kw-2">&amp;*</span>raw·});96 <span·class="macro">assert_eq!</span>(<span·class="string">"hello"</span>,·<span·class="kw">unsafe·</span>{·<span·class="kw-2">&amp;*</span>raw·});
  
97 drop(<span·class="kw">unsafe·</span>{·Weak::from_raw(raw)·});97 drop(<span·class="kw">unsafe·</span>{·Weak::from_raw(raw)·});
98 <span·class="macro">assert_eq!</span>(<span·class="number">0</span>,·Arc::weak_count(<span·class="kw-2">&amp;</span>strong));</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::sync::%7BArc,+Weak%7D;%0A++++%0A++++let+strong+=+Arc::new(%22hello%22.to_owned());%0A++++let+weak+=+Arc::downgrade(%26strong);%0A++++let+raw+=+weak.into_raw();%0A++++%0A++++assert_eq!(1,+Arc::weak_count(%26strong));%0A++++assert_eq!(%22hello%22,+unsafe+%7B+%26*raw+%7D);%0A++++%0A++++drop(unsafe+%7B+Weak::from_raw(raw)+%7D);%0A++++assert_eq!(0,+Arc::weak_count(%26strong));%0A%7D&amp;edition=2021"></a></div>98 <span·class="macro">assert_eq!</span>(<span·class="number">0</span>,·Arc::weak_count(<span·class="kw-2">&amp;</span>strong));</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::sync::%7BArc,+Weak%7D;%0A++++%0A++++let+strong+=+Arc::new(%22hello%22.to_owned());%0A++++let+weak+=+Arc::downgrade(%26strong);%0A++++let+raw+=+weak.into_raw();%0A++++%0A++++assert_eq!(1,+Arc::weak_count(%26strong));%0A++++assert_eq!(%22hello%22,+unsafe+%7B+%26*raw+%7D);%0A++++%0A++++drop(unsafe+%7B+Weak::from_raw(raw)+%7D);%0A++++assert_eq!(0,+Arc::weak_count(%26strong));%0A%7D&amp;edition=2021"></a></div>
99 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.into_raw_with_allocator"·class="method"><a·class="src·rightside"·href="../../src/alloc/sync.rs.html#2882-2888">Source</a><h4·class="code-header">pub·fn·<a·href="#method.into_raw_with_allocator"·class="fn">into_raw_with_allocator</a>(self)·-&gt;·(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.pointer.html">*const·T</a>,·A)</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>allocator_api</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/32838">#32838</a>)</span></div></span></summary><div·class="docblock"><p>Consumes·the·<code>Weak&lt;T&gt;</code>,·returning·the·wrapped·pointer·and·allocator.</p>99 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.into_raw_with_allocator"·class="method"><a·class="src·rightside"·href="../../src/alloc/sync.rs.html#2882-2888">Source</a><h4·class="code-header">pub·fn·<a·href="#method.into_raw_with_allocator"·class="fn">into_raw_with_allocator</a>(self)·-&gt;·(<a·class="primitive"·href="../../core/primitive.pointer.html">*const·T</a>,·A)</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>allocator_api</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/32838">#32838</a>)</span></div></span></summary><div·class="docblock"><p>Consumes·the·<code>Weak&lt;T&gt;</code>,·returning·the·wrapped·pointer·and·allocator.</p>
100 <p>This·converts·the·weak·pointer·into·a·raw·pointer,·while·still·preserving·the·ownership·of100 <p>This·converts·the·weak·pointer·into·a·raw·pointer,·while·still·preserving·the·ownership·of
101 one·weak·reference·(the·weak·count·is·not·modified·by·this·operation).·It·can·be·turned101 one·weak·reference·(the·weak·count·is·not·modified·by·this·operation).·It·can·be·turned
102 back·into·the·<code>Weak&lt;T&gt;</code>·with·<a·href="struct.Weak.html#method.from_raw_in"·title="associated·function·alloc::sync::Weak::from_raw_in"><code>from_raw_in</code></a>.</p>102 back·into·the·<code>Weak&lt;T&gt;</code>·with·<a·href="struct.Weak.html#method.from_raw_in"·title="associated·function·alloc::sync::Weak::from_raw_in"><code>from_raw_in</code></a>.</p>
103 <p>The·same·restrictions·of·accessing·the·target·of·the·pointer·as·with103 <p>The·same·restrictions·of·accessing·the·target·of·the·pointer·as·with
104 <a·href="struct.Weak.html#method.as_ptr"·title="method·alloc::sync::Weak::as_ptr"><code>as_ptr</code></a>·apply.</p>104 <a·href="struct.Weak.html#method.as_ptr"·title="method·alloc::sync::Weak::as_ptr"><code>as_ptr</code></a>·apply.</p>
105 <h5·id="examples-5"><a·class="doc-anchor"·href="#examples-5">§</a>Examples</h5>105 <h5·id="examples-5"><a·class="doc-anchor"·href="#examples-5">§</a>Examples</h5>
106 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(allocator_api)]106 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(allocator_api)]
Offset 114, 15 lines modifiedOffset 114, 15 lines modified
114 <span·class="kw">let·</span>(raw,·alloc)·=·weak.into_raw_with_allocator();114 <span·class="kw">let·</span>(raw,·alloc)·=·weak.into_raw_with_allocator();
  
115 <span·class="macro">assert_eq!</span>(<span·class="number">1</span>,·Arc::weak_count(<span·class="kw-2">&amp;</span>strong));115 <span·class="macro">assert_eq!</span>(<span·class="number">1</span>,·Arc::weak_count(<span·class="kw-2">&amp;</span>strong));
116 <span·class="macro">assert_eq!</span>(<span·class="string">"hello"</span>,·<span·class="kw">unsafe·</span>{·<span·class="kw-2">&amp;*</span>raw·});116 <span·class="macro">assert_eq!</span>(<span·class="string">"hello"</span>,·<span·class="kw">unsafe·</span>{·<span·class="kw-2">&amp;*</span>raw·});
  
117 drop(<span·class="kw">unsafe·</span>{·Weak::from_raw_in(raw,·alloc)·});117 drop(<span·class="kw">unsafe·</span>{·Weak::from_raw_in(raw,·alloc)·});
118 <span·class="macro">assert_eq!</span>(<span·class="number">0</span>,·Arc::weak_count(<span·class="kw-2">&amp;</span>strong));</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Bfeature(allocator_api)%5D%0A%23%5Ballow(unused_extern_crates)%5D%0Aextern+crate+r%23alloc;%0Afn+main()+%7B%0A++++use+std::sync::%7BArc,+Weak%7D;%0A++++use+std::alloc::System;%0A++++%0A++++let+strong+=+Arc::new_in(%22hello%22.to_owned(),+System);%0A++++let+weak+=+Arc::downgrade(%26strong);%0A++++let+(raw,+alloc)+=+weak.into_raw_with_allocator();%0A++++%0A++++assert_eq!(1,+Arc::weak_count(%26strong));%0A++++assert_eq!(%22hello%22,+unsafe+%7B+%26*raw+%7D);%0A++++%0A++++drop(unsafe+%7B+Weak::from_raw_in(raw,+alloc)+%7D);%0A++++assert_eq!(0,+Arc::weak_count(%26strong));%0A%7D&amp;version=nightly&amp;edition=2021"></a></div>118 <span·class="macro">assert_eq!</span>(<span·class="number">0</span>,·Arc::weak_count(<span·class="kw-2">&amp;</span>strong));</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Bfeature(allocator_api)%5D%0A%23%5Ballow(unused_extern_crates)%5D%0Aextern+crate+r%23alloc;%0Afn+main()+%7B%0A++++use+std::sync::%7BArc,+Weak%7D;%0A++++use+std::alloc::System;%0A++++%0A++++let+strong+=+Arc::new_in(%22hello%22.to_owned(),+System);%0A++++let+weak+=+Arc::downgrade(%26strong);%0A++++let+(raw,+alloc)+=+weak.into_raw_with_allocator();%0A++++%0A++++assert_eq!(1,+Arc::weak_count(%26strong));%0A++++assert_eq!(%22hello%22,+unsafe+%7B+%26*raw+%7D);%0A++++%0A++++drop(unsafe+%7B+Weak::from_raw_in(raw,+alloc)+%7D);%0A++++assert_eq!(0,+Arc::weak_count(%26strong));%0A%7D&amp;version=nightly&amp;edition=2021"></a></div>
119 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.from_raw_in"·class="method"><a·class="src·rightside"·href="../../src/alloc/sync.rs.html#2934-2951">Source</a><h4·class="code-header">pub·unsafe·fn·<a·href="#method.from_raw_in"·class="fn">from_raw_in</a>(ptr:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.pointer.html">*const·T</a>,·alloc:·A)·-&gt;·Self</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>allocator_api</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/32838">#32838</a>)</span></div></span></summary><div·class="docblock"><p>Converts·a·raw·pointer·previously·created·by·<a·href="struct.Weak.html#method.into_raw"·title="method·alloc::sync::Weak::into_raw"><code>into_raw</code></a>·back·into·<code>Weak&lt;T&gt;</code>·in·the·provided119 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.from_raw_in"·class="method"><a·class="src·rightside"·href="../../src/alloc/sync.rs.html#2934-2951">Source</a><h4·class="code-header">pub·unsafe·fn·<a·href="#method.from_raw_in"·class="fn">from_raw_in</a>(ptr:·<a·class="primitive"·href="../../core/primitive.pointer.html">*const·T</a>,·alloc:·A)·-&gt;·Self</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>allocator_api</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/32838">#32838</a>)</span></div></span></summary><div·class="docblock"><p>Converts·a·raw·pointer·previously·created·by·<a·href="struct.Weak.html#method.into_raw"·title="method·alloc::sync::Weak::into_raw"><code>into_raw</code></a>·back·into·<code>Weak&lt;T&gt;</code>·in·the·provided
120 allocator.</p>120 allocator.</p>
121 <p>This·can·be·used·to·safely·get·a·strong·reference·(by·calling·<a·href="struct.Weak.html#method.upgrade"·title="method·alloc::sync::Weak::upgrade"><code>upgrade</code></a>121 <p>This·can·be·used·to·safely·get·a·strong·reference·(by·calling·<a·href="struct.Weak.html#method.upgrade"·title="method·alloc::sync::Weak::upgrade"><code>upgrade</code></a>
122 later)·or·to·deallocate·the·weak·count·by·dropping·the·<code>Weak&lt;T&gt;</code>.</p>122 later)·or·to·deallocate·the·weak·count·by·dropping·the·<code>Weak&lt;T&gt;</code>.</p>
123 <p>It·takes·ownership·of·one·weak·reference·(with·the·exception·of·pointers·created·by·<a·href="struct.Weak.html#method.new"·title="associated·function·alloc::sync::Weak::new"><code>new</code></a>,123 <p>It·takes·ownership·of·one·weak·reference·(with·the·exception·of·pointers·created·by·<a·href="struct.Weak.html#method.new"·title="associated·function·alloc::sync::Weak::new"><code>new</code></a>,
124 as·these·don’t·own·anything;·the·method·still·works·on·them).</p>124 as·these·don’t·own·anything;·the·method·still·works·on·them).</p>
125 <h5·id="safety-1"><a·class="doc-anchor"·href="#safety-1">§</a>Safety</h5>125 <h5·id="safety-1"><a·class="doc-anchor"·href="#safety-1">§</a>Safety</h5>
126 <p>The·pointer·must·have·originated·from·the·<a·href="struct.Weak.html#method.into_raw"·title="method·alloc::sync::Weak::into_raw"><code>into_raw</code></a>·and·must·still·own·its·potential126 <p>The·pointer·must·have·originated·from·the·<a·href="struct.Weak.html#method.into_raw"·title="method·alloc::sync::Weak::into_raw"><code>into_raw</code></a>·and·must·still·own·its·potential
Offset 144, 18 lines modifiedOffset 144, 18 lines modified
144 <span·class="macro">assert_eq!</span>(<span·class="string">"hello"</span>,·<span·class="kw-2">&amp;*</span><span·class="kw">unsafe·</span>{·Weak::from_raw(raw_1)·}.upgrade().unwrap());144 <span·class="macro">assert_eq!</span>(<span·class="string">"hello"</span>,·<span·class="kw-2">&amp;*</span><span·class="kw">unsafe·</span>{·Weak::from_raw(raw_1)·}.upgrade().unwrap());
145 <span·class="macro">assert_eq!</span>(<span·class="number">1</span>,·Arc::weak_count(<span·class="kw-2">&amp;</span>strong));145 <span·class="macro">assert_eq!</span>(<span·class="number">1</span>,·Arc::weak_count(<span·class="kw-2">&amp;</span>strong));
  
146 drop(strong);146 drop(strong);
  
147 <span·class="comment">//·Decrement·the·last·weak·count.147 <span·class="comment">//·Decrement·the·last·weak·count.
148 </span><span·class="macro">assert!</span>(<span·class="kw">unsafe·</span>{·Weak::from_raw(raw_2)·}.upgrade().is_none());</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::sync::%7BArc,+Weak%7D;%0A++++%0A++++let+strong+=+Arc::new(%22hello%22.to_owned());%0A++++%0A++++let+raw_1+=+Arc::downgrade(%26strong).into_raw();%0A++++let+raw_2+=+Arc::downgrade(%26strong).into_raw();%0A++++%0A++++assert_eq!(2,+Arc::weak_count(%26strong));%0A++++%0A++++assert_eq!(%22hello%22,+%26*unsafe+%7B+Weak::from_raw(raw_1)+%7D.upgrade().unwrap());%0A++++assert_eq!(1,+Arc::weak_count(%26strong));%0A++++%0A++++drop(strong);%0A++++%0A++++//+Decrement+the+last+weak+count.%0A++++assert!(unsafe+%7B+Weak::from_raw(raw_2)+%7D.upgrade().is_none());%0A%7D&amp;edition=2021"></a></div>148 </span><span·class="macro">assert!</span>(<span·class="kw">unsafe·</span>{·Weak::from_raw(raw_2)·}.upgrade().is_none());</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::sync::%7BArc,+Weak%7D;%0A++++%0A++++let+strong+=+Arc::new(%22hello%22.to_owned());%0A++++%0A++++let+raw_1+=+Arc::downgrade(%26strong).into_raw();%0A++++let+raw_2+=+Arc::downgrade(%26strong).into_raw();%0A++++%0A++++assert_eq!(2,+Arc::weak_count(%26strong));%0A++++%0A++++assert_eq!(%22hello%22,+%26*unsafe+%7B+Weak::from_raw(raw_1)+%7D.upgrade().unwrap());%0A++++assert_eq!(1,+Arc::weak_count(%26strong));%0A++++%0A++++drop(strong);%0A++++%0A++++//+Decrement+the+last+weak+count.%0A++++assert!(unsafe+%7B+Weak::from_raw(raw_2)+%7D.upgrade().is_none());%0A%7D&amp;edition=2021"></a></div>
149 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Weak%3CT,+A%3E-2"·class="impl"><a·class="src·rightside"·href="../../src/alloc/sync.rs.html#2954-3115">Source</a><a·href="#impl-Weak%3CT,+A%3E-2"·class="anchor">§</a><h3·class="code-header">impl&lt;T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,·A:·<a·class="trait"·href="../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>&gt;·<a·class="struct"·href="struct.Weak[·...·truncated·by·diffoscope;·len:·533,·SHA:·391b2cccd8ab921ed136c6175d6f09f2c45846627d6840a883e920cb2b6410db·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="struct"·href="struct.Arc.html"·title="struct·alloc::sync::Arc">Arc</a>&lt;T,·A&gt;&gt;<div·class="where">where149 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Weak%3CT,+A%3E-2"·class="impl"><a·class="src·rightside"·href="../../src/alloc/sync.rs.html#2954-3115">Source</a><a·href="#impl-Weak%3CT,+A%3E-2"·class="anchor">§</a><h3·class="code-header">impl&lt;T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,·A:·<a·class="trait"·href="../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>&gt;·<a·class="struct"·href="struct.Weak.html"·title="struct·alloc:[·...·truncated·by·diffoscope;·len:·479,·SHA:·ec81692f7c09eaf0c264b8faf5daaae2db5d7307c09540b021d4c4d41dd45848·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="struct"·href="struct.Arc.html"·title="struct·alloc::sync::Arc">Arc</a>&lt;T,·A&gt;&gt;<div·class="where">where
150 ····A:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><div·class="docblock"><p>Attempts·to·upgrade·the·<code>Weak</code>·pointer·to·an·<a·href="struct.Arc.html"·title="struct·alloc::sync::Arc"><code>Arc</code></a>,·delaying150 ····A:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><div·class="docblock"><p>Attempts·to·upgrade·the·<code>Weak</code>·pointer·to·an·<a·href="struct.Arc.html"·title="struct·alloc::sync::Arc"><code>Arc</code></a>,·delaying
151 dropping·of·the·inner·value·if·successful.</p>151 dropping·of·the·inner·value·if·successful.</p>
152 <p>Returns·<a·href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html#variant.None"·title="variant·core::option::Option::None"><code>None</code></a>·if·the·inner·value·has·since·been·dropped.</p>152 <p>Returns·<a·href="../../core/option/enum.Option.html#variant.None"·title="variant·core::option::Option::None"><code>None</code></a>·if·the·inner·value·has·since·been·dropped.</p>
153 <h5·id="examples-7"><a·class="doc-anchor"·href="#examples-7">§</a>Examples</h5>153 <h5·id="examples-7"><a·class="doc-anchor"·href="#examples-7">§</a>Examples</h5>
154 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::sync::Arc;154 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::sync::Arc;
  
155 <span·class="kw">let·</span>five·=·Arc::new(<span·class="number">5</span>);155 <span·class="kw">let·</span>five·=·Arc::new(<span·class="number">5</span>);
  
156 <span·class="kw">let·</span>weak_five·=·Arc::downgrade(<span·class="kw-2">&amp;</span>five);156 <span·class="kw">let·</span>weak_five·=·Arc::downgrade(<span·class="kw-2">&amp;</span>five);
Max diff block lines reached; 70527/118392 bytes (59.57%) of diff not shown.
5.55 KB
./usr/share/doc/rust-doc/html/alloc/task/trait.LocalWake.html
    
Offset 85, 9 lines modifiedOffset 85, 9 lines modified
85 block_on(<span·class="kw">async·</span>{85 block_on(<span·class="kw">async·</span>{
86 ····<span·class="macro">println!</span>(<span·class="string">"hello·world"</span>);86 ····<span·class="macro">println!</span>(<span·class="string">"hello·world"</span>);
87 });</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Bfeature(local_waker)%5D%0A%23!%5Bfeature(noop_waker)%5D%0Afn+main()+%7B%0A++++use+std::task::%7BLocalWake,+ContextBuilder,+LocalWaker,+Waker%7D;%0A++++use+std::future::Future;%0A++++use+std::pin::Pin;%0A++++use+std::rc::Rc;%0A++++use+std::cell::RefCell;%0A++++use+std::collections::VecDeque;%0A++++%0A++++%0A++++thread_local!+%7B%0A++++++++//+A+queue+containing+all+tasks+ready+to+do+progress%0A++++++++static+RUN_QUEUE:+RefCell%3CVecDeque%3CRc%3CTask%3E%3E%3E+=+RefCell::default();%0A++++%7D%0A++++%0A++++type+BoxedFuture+=+Pin%3CBox%3Cdyn+Future%3COutput+=+()%3E%3E%3E;%0A++++%0A++++struct+Task(RefCell%3CBoxedFuture%3E);%0A++++%0A++++impl+LocalWake+for+Task+%7B%0A++++++++fn+wake(self:+Rc%3CSelf%3E)+%7B%0A++++++++++++RUN_QUEUE.with_borrow_mut(%7Cqueue%7C+%7B%0A++++++++++++++++queue.push_back(self)%0A++++++++++++%7D)%0A++++++++%7D%0A++++%7D%0A++++%0A++++fn+spawn%3CF%3E(future:+F)%0A++++where%0A++++++++F:+Future%3COutput=()%3E+%2B+'static+%2B+Send+%2B+Sync%0A++++%7B%0A++++++++let+task+=+RefCell::new(Box::pin(future));%0A++++++++RUN_QUEUE.with_borrow_mut(%7Cqueue%7C+%7B%0A++++++++++++queue.push_back(Rc::new(Task(task)));%0A++++++++%7D);%0A++++%7D%0A++++%0A++++fn+block_on%3CF%3E(future:+F)%0A++++where%0A++++++++F:+Future%3COutput=()%3E+%2B+'static+%2B+Sync+%2B+Send%0A++++%7B%0A++++++++spawn(future);%0A++++++++loop+%7B%0A++++++++++++let+Some(task)+=+RUN_QUEUE.with_borrow_mut(%7Cqueue%7C+queue.pop_front())+else+%7B%0A++++++++++++++++//+we+exit,+since+there+are+no+more+tasks+remaining+on+the+queue%0A++++++++++++++++return;%0A++++++++++++%7D;%0A++++%0A++++++++++++//+cast+the+Rc%3CTask%3E+into+a+%60LocalWaker%60%0A++++++++++++let+local_waker:+LocalWaker+=+task.clone().into();%0A++++++++++++//+Build+the+context+using+%60ContextBuilder%60%0A++++++++++++let+mut+cx+=+ContextBuilder::from_waker(Waker::noop())%0A++++++++++++++++.local_waker(%26local_waker)%0A++++++++++++++++.build();%0A++++%0A++++++++++++//+Poll+the+task%0A++++++++++++let+_+=+task.0%0A++++++++++++++++.borrow_mut()%0A++++++++++++++++.as_mut()%0A++++++++++++++++.poll(%26mut+cx);%0A++++++++%7D%0A++++%7D%0A++++%0A++++block_on(async+%7B%0A++++++++println!(%22hello+world%22);%0A++++%7D);%0A%7D&amp;version=nightly&amp;edition=2021"></a></div>87 });</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Bfeature(local_waker)%5D%0A%23!%5Bfeature(noop_waker)%5D%0Afn+main()+%7B%0A++++use+std::task::%7BLocalWake,+ContextBuilder,+LocalWaker,+Waker%7D;%0A++++use+std::future::Future;%0A++++use+std::pin::Pin;%0A++++use+std::rc::Rc;%0A++++use+std::cell::RefCell;%0A++++use+std::collections::VecDeque;%0A++++%0A++++%0A++++thread_local!+%7B%0A++++++++//+A+queue+containing+all+tasks+ready+to+do+progress%0A++++++++static+RUN_QUEUE:+RefCell%3CVecDeque%3CRc%3CTask%3E%3E%3E+=+RefCell::default();%0A++++%7D%0A++++%0A++++type+BoxedFuture+=+Pin%3CBox%3Cdyn+Future%3COutput+=+()%3E%3E%3E;%0A++++%0A++++struct+Task(RefCell%3CBoxedFuture%3E);%0A++++%0A++++impl+LocalWake+for+Task+%7B%0A++++++++fn+wake(self:+Rc%3CSelf%3E)+%7B%0A++++++++++++RUN_QUEUE.with_borrow_mut(%7Cqueue%7C+%7B%0A++++++++++++++++queue.push_back(self)%0A++++++++++++%7D)%0A++++++++%7D%0A++++%7D%0A++++%0A++++fn+spawn%3CF%3E(future:+F)%0A++++where%0A++++++++F:+Future%3COutput=()%3E+%2B+'static+%2B+Send+%2B+Sync%0A++++%7B%0A++++++++let+task+=+RefCell::new(Box::pin(future));%0A++++++++RUN_QUEUE.with_borrow_mut(%7Cqueue%7C+%7B%0A++++++++++++queue.push_back(Rc::new(Task(task)));%0A++++++++%7D);%0A++++%7D%0A++++%0A++++fn+block_on%3CF%3E(future:+F)%0A++++where%0A++++++++F:+Future%3COutput=()%3E+%2B+'static+%2B+Sync+%2B+Send%0A++++%7B%0A++++++++spawn(future);%0A++++++++loop+%7B%0A++++++++++++let+Some(task)+=+RUN_QUEUE.with_borrow_mut(%7Cqueue%7C+queue.pop_front())+else+%7B%0A++++++++++++++++//+we+exit,+since+there+are+no+more+tasks+remaining+on+the+queue%0A++++++++++++++++return;%0A++++++++++++%7D;%0A++++%0A++++++++++++//+cast+the+Rc%3CTask%3E+into+a+%60LocalWaker%60%0A++++++++++++let+local_waker:+LocalWaker+=+task.clone().into();%0A++++++++++++//+Build+the+context+using+%60ContextBuilder%60%0A++++++++++++let+mut+cx+=+ContextBuilder::from_waker(Waker::noop())%0A++++++++++++++++.local_waker(%26local_waker)%0A++++++++++++++++.build();%0A++++%0A++++++++++++//+Poll+the+task%0A++++++++++++let+_+=+task.0%0A++++++++++++++++.borrow_mut()%0A++++++++++++++++.as_mut()%0A++++++++++++++++.poll(%26mut+cx);%0A++++++++%7D%0A++++%7D%0A++++%0A++++block_on(async+%7B%0A++++++++println!(%22hello+world%22);%0A++++%7D);%0A%7D&amp;version=nightly&amp;edition=2021"></a></div>
88 </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.wake"·class="method"><a·class="src·rightside"·href="../../src/alloc/task.rs.html#273">Source</a><h4·class="code-header">fn·<a·href="#tymethod.wake"·class="fn">wake</a>(self:·<a·class="struct"·href="../rc/struct.Rc.html"·title="struct·alloc::rc::Rc">Rc</a>&lt;Self&gt;)</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>local_waker</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/118959">#118959</a>)</span></div></span></summary><div·class="docblock"><p>Wake·this·task.</p>88 </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.wake"·class="method"><a·class="src·rightside"·href="../../src/alloc/task.rs.html#273">Source</a><h4·class="code-header">fn·<a·href="#tymethod.wake"·class="fn">wake</a>(self:·<a·class="struct"·href="../rc/struct.Rc.html"·title="struct·alloc::rc::Rc">Rc</a>&lt;Self&gt;)</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>local_waker</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/118959">#118959</a>)</span></div></span></summary><div·class="docblock"><p>Wake·this·task.</p>
89 </div></details></div><h2·id="provided-methods"·class="section-header">Provided·Methods<a·href="#provided-methods"·class="anchor">§</a></h2><div·class="methods"><details·class="toggle·method-toggle"·open><summary><section·id="method.wake_by_ref"·class="method"><a·class="src·rightside"·href="../../src/alloc/task.rs.html#283-285">Source</a><h4·class="code-header">fn·<a·href="#method.wake_by_ref"·class="fn">wake_by_ref</a>(self:·&amp;<a·class="struct"·href="../rc/struct.Rc.html"·title="struct·alloc::rc::Rc">Rc</a>&lt;Self&gt;)</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>local_waker</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/118959">#118959</a>)</span></div></span></summary><div·class="docblock"><p>Wake·this·task·without·consuming·the·local·waker.</p>89 </div></details></div><h2·id="provided-methods"·class="section-header">Provided·Methods<a·href="#provided-methods"·class="anchor">§</a></h2><div·class="methods"><details·class="toggle·method-toggle"·open><summary><section·id="method.wake_by_ref"·class="method"><a·class="src·rightside"·href="../../src/alloc/task.rs.html#283-285">Source</a><h4·class="code-header">fn·<a·href="#method.wake_by_ref"·class="fn">wake_by_ref</a>(self:·&amp;<a·class="struct"·href="../rc/struct.Rc.html"·title="struct·alloc::rc::Rc">Rc</a>&lt;Self&gt;)</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>local_waker</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/118959">#118959</a>)</span></div></span></summary><div·class="docblock"><p>Wake·this·task·without·consuming·the·local·waker.</p>
90 <p>If·an·executor·supports·a·cheaper·way·to·wake·without·consuming·the90 <p>If·an·executor·supports·a·cheaper·way·to·wake·without·consuming·the
91 waker,·it·should·override·this·method.·By·default,·it·clones·the91 waker,·it·should·override·this·method.·By·default,·it·clones·the
92 <a·href="../rc/struct.Rc.html"·title="struct·alloc::rc::Rc"><code>Rc</code></a>·and·calls·<a·href="https://doc.rust-lang.org/1.84.0/core/task/wake/struct.LocalWaker.html#method.wake"·title="method·core::task::wake::LocalWaker::wake"><code>wake</code></a>·on·the·clone.</p>92 <a·href="../rc/struct.Rc.html"·title="struct·alloc::rc::Rc"><code>Rc</code></a>·and·calls·<a·href="../../core/task/wake/struct.LocalWaker.html#method.wake"·title="method·core::task::wake::LocalWaker::wake"><code>wake</code></a>·on·the·clone.</p>
93 </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.84.0/reference/items/traits.html#object-safety">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="implementors"·class="section-header">Implementors<a·href="#implementors"·class="anchor">§</a></h2><div·id="implementors-list"></div><script·src="../../trait.impl/alloc/task/trait.LocalWake.js"·async></script></section></div></main></body></html>93 </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.84.0/reference/items/traits.html#object-safety">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="implementors"·class="section-header">Implementors<a·href="#implementors"·class="anchor">§</a></h2><div·id="implementors-list"></div><script·src="../../trait.impl/alloc/task/trait.LocalWake.js"·async></script></section></div></main></body></html>
7.7 KB
./usr/share/doc/rust-doc/html/alloc/task/trait.Wake.html
    
Offset 1, 25 lines modifiedOffset 1, 25 lines modified
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="The·implementation·of·waking·a·task·on·an·executor."><title>Wake·in·alloc::task·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»  2025-01-07)»       (built» from»     a»    source»      tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Wake</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#examples"·title="Examples">Examples</a></li></ul><h3><a·href="#required-methods">Required·Methods</a></h3><ul·class="block"><li><a·href="#tymethod.wake"·title="wake">wake</a></li></ul><h3><a·href="#provided-methods">Provided·Methods</a></h3><ul·class="block"><li><a·href="#method.wake_by_ref"·title="wake_by_ref">wake_by_ref</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><a·href="index.html">In·alloc::<wbr>task</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">alloc</a>::<wbr><a·href="index.html">task</a></span><h1>Trait·<span·class="trait">Wake</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.51.0">1.51.0</span>···<a·class="src"·href="../../src/alloc/task.rs.html#90-106">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·trait·Wake·{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="The·implementation·of·waking·a·task·on·an·executor."><title>Wake·in·alloc::task·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»  2025-01-07)»       (built» from»     a»    source»      tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Wake</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#examples"·title="Examples">Examples</a></li></ul><h3><a·href="#required-methods">Required·Methods</a></h3><ul·class="block"><li><a·href="#tymethod.wake"·title="wake">wake</a></li></ul><h3><a·href="#provided-methods">Provided·Methods</a></h3><ul·class="block"><li><a·href="#method.wake_by_ref"·title="wake_by_ref">wake_by_ref</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><a·href="index.html">In·alloc::<wbr>task</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">alloc</a>::<wbr><a·href="index.html">task</a></span><h1>Trait·<span·class="trait">Wake</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.51.0">1.51.0</span>···<a·class="src"·href="../../src/alloc/task.rs.html#90-106">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·trait·Wake·{
2 ····//·Required·method2 ····//·Required·method
3 ····fn·<a·href="#tymethod.wake"·class="fn">wake</a>(self:·<a·class="struct"·href="../sync/struct.Arc.html"·title="struct·alloc::sync::Arc">Arc</a>&lt;Self&gt;);3 ····fn·<a·href="#tymethod.wake"·class="fn">wake</a>(self:·<a·class="struct"·href="../sync/struct.Arc.html"·title="struct·alloc::sync::Arc">Arc</a>&lt;Self&gt;);
  
4 ····//·Provided·method4 ····//·Provided·method
5 ····fn·<a·href="#method.wake_by_ref"·class="fn">wake_by_ref</a>(self:·&amp;<a·class="struct"·href="../sync/struct.Arc.html"·title="struct·alloc::sync::Arc">Arc</a>&lt;Self&gt;)·{·...·}5 ····fn·<a·href="#method.wake_by_ref"·class="fn">wake_by_ref</a>(self:·&amp;<a·class="struct"·href="../sync/struct.Arc.html"·title="struct·alloc::sync::Arc">Arc</a>&lt;Self&gt;)·{·...·}
6 }</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>The·implementation·of·waking·a·task·on·an·executor.</p>6 }</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>The·implementation·of·waking·a·task·on·an·executor.</p>
7 <p>This·trait·can·be·used·to·create·a·<a·href="https://doc.rust-lang.org/1.84.0/core/task/wake/struct.Waker.html"·title="struct·core::task::wake::Waker"><code>Waker</code></a>.·An·executor·can·define·an7 <p>This·trait·can·be·used·to·create·a·<a·href="../../core/task/wake/struct.Waker.html"·title="struct·core::task::wake::Waker"><code>Waker</code></a>.·An·executor·can·define·an
8 implementation·of·this·trait,·and·use·that·to·construct·a·<a·href="https://doc.rust-lang.org/1.84.0/core/task/wake/struct.Waker.html"·title="struct·core::task::wake::Waker"><code>Waker</code></a>·to·pass8 implementation·of·this·trait,·and·use·that·to·construct·a·<a·href="../../core/task/wake/struct.Waker.html"·title="struct·core::task::wake::Waker"><code>Waker</code></a>·to·pass
9 to·the·tasks·that·are·executed·on·that·executor.</p>9 to·the·tasks·that·are·executed·on·that·executor.</p>
10 <p>This·trait·is·a·memory-safe·and·ergonomic·alternative·to·constructing·a10 <p>This·trait·is·a·memory-safe·and·ergonomic·alternative·to·constructing·a
11 <a·href="https://doc.rust-lang.org/1.84.0/core/task/wake/struct.RawWaker.html"·title="struct·core::task::wake::RawWaker"><code>RawWaker</code></a>.·It·supports·the·common·executor·design·in·which·the·data·used11 <a·href="../../core/task/wake/struct.RawWaker.html"·title="struct·core::task::wake::RawWaker"><code>RawWaker</code></a>.·It·supports·the·common·executor·design·in·which·the·data·used
12 to·wake·up·a·task·is·stored·in·an·<a·href="../sync/struct.Arc.html"·title="struct·alloc::sync::Arc"><code>Arc</code></a>.·Some·executors·(especially12 to·wake·up·a·task·is·stored·in·an·<a·href="../sync/struct.Arc.html"·title="struct·alloc::sync::Arc"><code>Arc</code></a>.·Some·executors·(especially
13 those·for·embedded·systems)·cannot·use·this·API,·which·is·why·<a·href="https://doc.rust-lang.org/1.84.0/core/task/wake/struct.RawWaker.html"·title="struct·core::task::wake::RawWaker"><code>RawWaker</code></a>13 those·for·embedded·systems)·cannot·use·this·API,·which·is·why·<a·href="../../core/task/wake/struct.RawWaker.html"·title="struct·core::task::wake::RawWaker"><code>RawWaker</code></a>
14 exists·as·an·alternative·for·those·systems.</p>14 exists·as·an·alternative·for·those·systems.</p>
15 <p>To·construct·a·<a·href="https://doc.rust-lang.org/1.84.0/core/task/wake/struct.Waker.html"·title="struct·core::task::wake::Waker"><code>Waker</code></a>·from·some·type·<code>W</code>·implementing·this·trait,15 <p>To·construct·a·<a·href="../../core/task/wake/struct.Waker.html"·title="struct·core::task::wake::Waker"><code>Waker</code></a>·from·some·type·<code>W</code>·implementing·this·trait,
16 wrap·it·in·an·<a·href="../sync/struct.Arc.html"·title="struct·alloc::sync::Arc"><code>Arc&lt;W&gt;</code></a>·and·call·<code>Waker::from()</code>·on·that.16 wrap·it·in·an·<a·href="../sync/struct.Arc.html"·title="struct·alloc::sync::Arc"><code>Arc&lt;W&gt;</code></a>·and·call·<code>Waker::from()</code>·on·that.
17 It·is·also·possible·to·convert·to·<a·href="https://doc.rust-lang.org/1.84.0/core/task/wake/struct.RawWaker.html"·title="struct·core::task::wake::RawWaker"><code>RawWaker</code></a>·in·the·same·way.</p>17 It·is·also·possible·to·convert·to·<a·href="../../core/task/wake/struct.RawWaker.html"·title="struct·core::task::wake::RawWaker"><code>RawWaker</code></a>·in·the·same·way.</p>
18 <!--·Ideally·we'd·link·to·the·`From`·impl,·but·rustdoc·doesn't·generate·any·page·for·it·within18 <!--·Ideally·we'd·link·to·the·`From`·impl,·but·rustdoc·doesn't·generate·any·page·for·it·within
19 ·····`alloc`·because·`alloc`·neither·defines·nor·re-exports·`From`·or·`Waker`,·and·we·can't19 ·····`alloc`·because·`alloc`·neither·defines·nor·re-exports·`From`·or·`Waker`,·and·we·can't
20 ·····link·../../std/task/struct.Waker.html#impl-From%3CArc%3CW,+Global%3E%3E-for-Waker20 ·····link·../../std/task/struct.Waker.html#impl-From%3CArc%3CW,+Global%3E%3E-for-Waker
21 ·····without·getting·a·link-checking·error·in·CI.·-->21 ·····without·getting·a·link-checking·error·in·CI.·-->
22 <h2·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h2>22 <h2·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h2>
23 <p>A·basic·<code>block_on</code>·function·that·takes·a·future·and·runs·it·to·completion·on23 <p>A·basic·<code>block_on</code>·function·that·takes·a·future·and·runs·it·to·completion·on
24 the·current·thread.</p>24 the·current·thread.</p>
3.61 KB
./usr/share/doc/rust-doc/html/alloc/vec/index.html
    
Offset 21, 13 lines modifiedOffset 21, 13 lines modified
  
21 v.push(<span·class="number">3</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++let+mut+v+=+vec!%5B1,+2%5D;%0A++++%0A++++v.push(3);%0A%7D&amp;edition=2021"></a></div>21 v.push(<span·class="number">3</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++let+mut+v+=+vec!%5B1,+2%5D;%0A++++%0A++++v.push(3);%0A%7D&amp;edition=2021"></a></div>
22 <p>Popping·values·works·in·much·the·same·way:</p>22 <p>Popping·values·works·in·much·the·same·way:</p>
  
23 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span><span·class="kw-2">mut·</span>v·=·<span·class="macro">vec!</span>[<span·class="number">1</span>,·<span·class="number">2</span>];23 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span><span·class="kw-2">mut·</span>v·=·<span·class="macro">vec!</span>[<span·class="number">1</span>,·<span·class="number">2</span>];
  
24 <span·class="kw">let·</span>two·=·v.pop();</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++let+mut+v+=+vec!%5B1,+2%5D;%0A++++%0A++++let+two+=+v.pop();%0A%7D&amp;edition=2021"></a></div>24 <span·class="kw">let·</span>two·=·v.pop();</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++let+mut+v+=+vec!%5B1,+2%5D;%0A++++%0A++++let+two+=+v.pop();%0A%7D&amp;edition=2021"></a></div>
25 <p>Vectors·also·support·indexing·(through·the·<a·href="https://doc.rust-lang.org/1.84.0/core/ops/index/trait.Index.html"·title="trait·core::ops::index::Index"><code>Index</code></a>·and·<a·href="https://doc.rust-lang.org/1.84.0/core/ops/index/trait.IndexMut.html"·title="trait·core::ops::index::IndexMut"><code>IndexMut</code></a>·traits):</p>25 <p>Vectors·also·support·indexing·(through·the·<a·href="../../core/ops/index/trait.Index.html"·title="trait·core::ops::index::Index"><code>Index</code></a>·and·<a·href="../../core/ops/index/trait.IndexMut.html"·title="trait·core::ops::index::IndexMut"><code>IndexMut</code></a>·traits):</p>
  
26 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span><span·class="kw-2">mut·</span>v·=·<span·class="macro">vec!</span>[<span·class="number">1</span>,·<span·class="number">2</span>,·<span·class="number">3</span>];26 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span><span·class="kw-2">mut·</span>v·=·<span·class="macro">vec!</span>[<span·class="number">1</span>,·<span·class="number">2</span>,·<span·class="number">3</span>];
27 <span·class="kw">let·</span>three·=·v[<span·class="number">2</span>];27 <span·class="kw">let·</span>three·=·v[<span·class="number">2</span>];
28 v[<span·class="number">1</span>]·=·v[<span·class="number">1</span>]·+·<span·class="number">5</span>;</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++let+mut+v+=+vec!%5B1,+2,+3%5D;%0A++++let+three+=+v%5B2%5D;%0A++++v%5B1%5D+=+v%5B1%5D+%2B+5;%0A%7D&amp;edition=2021"></a></div>28 v[<span·class="number">1</span>]·=·v[<span·class="number">1</span>]·+·<span·class="number">5</span>;</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++let+mut+v+=+vec!%5B1,+2,+3%5D;%0A++++let+three+=+v%5B2%5D;%0A++++v%5B1%5D+=+v%5B1%5D+%2B+5;%0A%7D&amp;edition=2021"></a></div>
29 </div></details><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·alloc::vec::Drain">Drain</a></div><div·class="desc·docblock-short">A·draining·iterator·for·<code>Vec&lt;T&gt;</code>.</div></li><li><div·class="item-name"><a·class="struct"·href="struct.IntoIter.html"·title="struct·alloc::vec::IntoIter">Into<wbr>Iter</a></div><div·class="desc·docblock-short">An·iterator·that·moves·out·of·a·vector.</div></li><li><div·class="item-name"><a·class="struct"·href="struct.Splice.html"·title="struct·alloc::vec::Splice">Splice</a></div><div·class="desc·docblock-short">A·splicing·iterator·for·<code>Vec</code>.</div></li><li><div·class="item-name"><a·class="struct"·href="struct.Vec.html"·title="struct·alloc::vec::Vec">Vec</a></div><div·class="desc·docblock-short">A·contiguous·growable·array·type,·written·as·<code>Vec&lt;T&gt;</code>,·short·for·‘vector’.</div></li><li><div·class="item-name"><a·class="struct"·href="struct.ExtractIf.html"·title="struct·alloc::vec::ExtractIf">Extract<wbr>If</a><wbr><span·class="stab·unstable"·title="">Experimental</span></div><div·class="desc·docblock-short">An·iterator·which·uses·a·closure·to·determine·if·an·element·should·be·removed.</div></li></ul></section></div></main></body></html>29 </div></details><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·alloc::vec::Drain">Drain</a></div><div·class="desc·docblock-short">A·draining·iterator·for·<code>Vec&lt;T&gt;</code>.</div></li><li><div·class="item-name"><a·class="struct"·href="struct.IntoIter.html"·title="struct·alloc::vec::IntoIter">Into<wbr>Iter</a></div><div·class="desc·docblock-short">An·iterator·that·moves·out·of·a·vector.</div></li><li><div·class="item-name"><a·class="struct"·href="struct.Splice.html"·title="struct·alloc::vec::Splice">Splice</a></div><div·class="desc·docblock-short">A·splicing·iterator·for·<code>Vec</code>.</div></li><li><div·class="item-name"><a·class="struct"·href="struct.Vec.html"·title="struct·alloc::vec::Vec">Vec</a></div><div·class="desc·docblock-short">A·contiguous·growable·array·type,·written·as·<code>Vec&lt;T&gt;</code>,·short·for·‘vector’.</div></li><li><div·class="item-name"><a·class="struct"·href="struct.ExtractIf.html"·title="struct·alloc::vec::ExtractIf">Extract<wbr>If</a><wbr><span·class="stab·unstable"·title="">Experimental</span></div><div·class="desc·docblock-short">An·iterator·which·uses·a·closure·to·determine·if·an·element·should·be·removed.</div></li></ul></section></div></main></body></html>
337 KB
./usr/share/doc/rust-doc/html/alloc/vec/struct.Drain.html
    
Offset 1, 21 lines modifiedOffset 1, 21 lines modified
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="A·draining·iterator·for·`Vec&#60;T&#62;`."><title>Drain·in·alloc::vec·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»       2025-01-07)»    (built»      from»  a» source»   tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Drain</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#example"·title="Example">Example</a></li></ul><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.allocator"·title="allocator">allocator</a></li><li><a·href="#method.as_slice"·title="as_slice">as_slice</a></li><li><a·href="#method.keep_rest"·title="keep_rest">keep_rest</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-AsRef%3C%5BT%5D%3E-for-Drain%3C'a,+T,+A%3E"·title="AsRef&#60;[T]&#62;">AsRef&#60;[T]&#62;</a></li><li><a·href="#impl-Debug-for-Drain%3C'_,+T,+A%3E"·title="Debug">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-Drain%3C'_,+T,+A%3E"·title="DoubleEndedIterator">DoubleEndedIterator</a></li><li><a·href="#impl-Drop-for-Drain%3C'_,+T,+A%3E"·title="Drop">Drop</a></li><li><a·href="#impl-ExactSizeIterator-for-Drain%3C'_,+T,+A%3E"·title="ExactSizeIterator">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-Drain%3C'_,+T,+A%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-Drain%3C'_,+T,+A%3E"·title="Iterator">Iterator</a></li><li><a·href="#impl-Send-for-Drain%3C'_,+T,+A%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-Drain%3C'_,+T,+A%3E"·title="Sync">Sync</a></li><li><a·href="#impl-TrustedLen-for-Drain%3C'_,+T,+A%3E"·title="TrustedLen">TrustedLen</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-Drain%3C'a,+T,+A%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Drain%3C'a,+T,+A%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Unpin-for-Drain%3C'a,+T,+A%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Drain%3C'a,+T,+A%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>vec</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">alloc</a>::<wbr><a·href="index.html">vec</a></span><h1>Struct·<span·class="struct">Drain</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../src/alloc/vec/drain.rs.html#22-34">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·Drain&lt;'a,·T:·'a,·A:·<a·class="trait"·href="../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·+·'a·=·<a·class="struct"·href="../alloc/struct.Global.html"·title="struct·alloc::alloc::Global">Global</a>&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>A·draining·iterator·for·<code>Vec&lt;T&gt;</code>.</p>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="A·draining·iterator·for·`Vec&#60;T&#62;`."><title>Drain·in·alloc::vec·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»       2025-01-07)»    (built»      from»  a» source»   tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Drain</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#example"·title="Example">Example</a></li></ul><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.allocator"·title="allocator">allocator</a></li><li><a·href="#method.as_slice"·title="as_slice">as_slice</a></li><li><a·href="#method.keep_rest"·title="keep_rest">keep_rest</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-AsRef%3C%5BT%5D%3E-for-Drain%3C'a,+T,+A%3E"·title="AsRef&#60;[T]&#62;">AsRef&#60;[T]&#62;</a></li><li><a·href="#impl-Debug-for-Drain%3C'_,+T,+A%3E"·title="Debug">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-Drain%3C'_,+T,+A%3E"·title="DoubleEndedIterator">DoubleEndedIterator</a></li><li><a·href="#impl-Drop-for-Drain%3C'_,+T,+A%3E"·title="Drop">Drop</a></li><li><a·href="#impl-ExactSizeIterator-for-Drain%3C'_,+T,+A%3E"·title="ExactSizeIterator">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-Drain%3C'_,+T,+A%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-Drain%3C'_,+T,+A%3E"·title="Iterator">Iterator</a></li><li><a·href="#impl-Send-for-Drain%3C'_,+T,+A%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-Drain%3C'_,+T,+A%3E"·title="Sync">Sync</a></li><li><a·href="#impl-TrustedLen-for-Drain%3C'_,+T,+A%3E"·title="TrustedLen">TrustedLen</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-Drain%3C'a,+T,+A%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Drain%3C'a,+T,+A%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Unpin-for-Drain%3C'a,+T,+A%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Drain%3C'a,+T,+A%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>vec</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">alloc</a>::<wbr><a·href="index.html">vec</a></span><h1>Struct·<span·class="struct">Drain</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../src/alloc/vec/drain.rs.html#22-34">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·Drain&lt;'a,·T:·'a,·A:·<a·class="trait"·href="../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·+·'a·=·<a·class="struct"·href="../alloc/struct.Global.html"·title="struct·alloc::alloc::Global">Global</a>&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>A·draining·iterator·for·<code>Vec&lt;T&gt;</code>.</p>
2 <p>This·<code>struct</code>·is·created·by·<a·href="struct.Vec.html#method.drain"·title="method·alloc::vec::Vec::drain"><code>Vec::drain</code></a>.2 <p>This·<code>struct</code>·is·created·by·<a·href="struct.Vec.html#method.drain"·title="method·alloc::vec::Vec::drain"><code>Vec::drain</code></a>.
3 See·its·documentation·for·more.</p>3 See·its·documentation·for·more.</p>
4 <h2·id="example"><a·class="doc-anchor"·href="#example">§</a>Example</h2>4 <h2·id="example"><a·class="doc-anchor"·href="#example">§</a>Example</h2>
5 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span><span·class="kw-2">mut·</span>v·=·<span·class="macro">vec!</span>[<span·class="number">0</span>,·<span·class="number">1</span>,·<span·class="number">2</span>];5 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span><span·class="kw-2">mut·</span>v·=·<span·class="macro">vec!</span>[<span·class="number">0</span>,·<span·class="number">1</span>,·<span·class="number">2</span>];
6 <span·class="kw">let·</span>iter:·std::vec::Drain&lt;<span·class="lifetime">'_</span>,·<span·class="kw">_</span>&gt;·=·v.drain(..);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++let+mut+v+=+vec!%5B0,+1,+2%5D;%0A++++let+iter:+std::vec::Drain%3C'_,+_%3E+=+v.drain(..);%0A%7D&amp;edition=2021"></a></div>6 <span·class="kw">let·</span>iter:·std::vec::Drain&lt;<span·class="lifetime">'_</span>,·<span·class="kw">_</span>&gt;·=·v.drain(..);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++let+mut+v+=+vec!%5B0,+1,+2%5D;%0A++++let+iter:+std::vec::Drain%3C'_,+_%3E+=+v.drain(..);%0A%7D&amp;edition=2021"></a></div>
7 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Drain%3C'a,+T,+A%3E"·class="impl"><a·class="src·rightside"·href="../../src/alloc/vec/drain.rs.html#43-137">Source</a><a·href="#impl-Drain%3C'a,+T,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·T,·A:·<a·class="trait"·href="../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>&gt;·<a·class="struct"·href="struct.Drain.html"·title="struct·alloc::vec::Drain">Drain</a>&lt;'a,·T,·A&gt;</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.as_slice"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.46.0">1.46.0</span>···<a·class="src"·href="../../src/alloc/vec/drain.rs.html#57-59">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.as_slice"·class="fn">as_slice</a>(&amp;self)·-&gt;·&amp;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html">[T]</a></h4></section></summary><div·class="docblock"><p>Returns·the·remaining·items·of·this·iterator·as·a·slice.</p>7 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Drain%3C'a,+T,+A%3E"·class="impl"><a·class="src·rightside"·href="../../src/alloc/vec/drain.rs.html#43-137">Source</a><a·href="#impl-Drain%3C'a,+T,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·T,·A:·<a·class="trait"·href="../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>&gt;·<a·class="struct"·href="struct.Drain.html"·title="struct·alloc::vec::Drain">Drain</a>&lt;'a,·T,·A&gt;</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.as_slice"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.46.0">1.46.0</span>···<a·class="src"·href="../../src/alloc/vec/drain.rs.html#57-59">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.as_slice"·class="fn">as_slice</a>(&amp;self)·-&gt;·&amp;<a·class="primitive"·href="../../core/primitive.slice.html">[T]</a></h4></section></summary><div·class="docblock"><p>Returns·the·remaining·items·of·this·iterator·as·a·slice.</p>
8 <h5·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h5>8 <h5·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h5>
9 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span><span·class="kw-2">mut·</span>vec·=·<span·class="macro">vec!</span>[<span·class="string">'a'</span>,·<span·class="string">'b'</span>,·<span·class="string">'c'</span>];9 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span><span·class="kw-2">mut·</span>vec·=·<span·class="macro">vec!</span>[<span·class="string">'a'</span>,·<span·class="string">'b'</span>,·<span·class="string">'c'</span>];
10 <span·class="kw">let·</span><span·class="kw-2">mut·</span>drain·=·vec.drain(..);10 <span·class="kw">let·</span><span·class="kw-2">mut·</span>drain·=·vec.drain(..);
11 <span·class="macro">assert_eq!</span>(drain.as_slice(),·<span·class="kw-2">&amp;</span>[<span·class="string">'a'</span>,·<span·class="string">'b'</span>,·<span·class="string">'c'</span>]);11 <span·class="macro">assert_eq!</span>(drain.as_slice(),·<span·class="kw-2">&amp;</span>[<span·class="string">'a'</span>,·<span·class="string">'b'</span>,·<span·class="string">'c'</span>]);
12 <span·class="kw">let·_·</span>=·drain.next().unwrap();12 <span·class="kw">let·_·</span>=·drain.next().unwrap();
13 <span·class="macro">assert_eq!</span>(drain.as_slice(),·<span·class="kw-2">&amp;</span>[<span·class="string">'b'</span>,·<span·class="string">'c'</span>]);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++let+mut+vec+=+vec!%5B'a',+'b',+'c'%5D;%0A++++let+mut+drain+=+vec.drain(..);%0A++++assert_eq!(drain.as_slice(),+%26%5B'a',+'b',+'c'%5D);%0A++++let+_+=+drain.next().unwrap();%0A++++assert_eq!(drain.as_slice(),+%26%5B'b',+'c'%5D);%0A%7D&amp;edition=2021"></a></div>13 <span·class="macro">assert_eq!</span>(drain.as_slice(),·<span·class="kw-2">&amp;</span>[<span·class="string">'b'</span>,·<span·class="string">'c'</span>]);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++let+mut+vec+=+vec!%5B'a',+'b',+'c'%5D;%0A++++let+mut+drain+=+vec.drain(..);%0A++++assert_eq!(drain.as_slice(),+%26%5B'a',+'b',+'c'%5D);%0A++++let+_+=+drain.next().unwrap();%0A++++assert_eq!(drain.as_slice(),+%26%5B'b',+'c'%5D);%0A%7D&amp;edition=2021"></a></div>
14 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.allocator"·class="method"><a·class="src·rightside"·href="../../src/alloc/vec/drain.rs.html#65-67">Source</a><h4·class="code-header">pub·fn·<a·href="#method.allocator"·class="fn">allocator</a>(&amp;self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;A</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>allocator_api</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/32838">#32838</a>)</span></div></span></summary><div·class="docblock"><p>Returns·a·reference·to·the·underlying·allocator.</p>14 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.allocator"·class="method"><a·class="src·rightside"·href="../../src/alloc/vec/drain.rs.html#65-67">Source</a><h4·class="code-header">pub·fn·<a·href="#method.allocator"·class="fn">allocator</a>(&amp;self)·-&gt;·<a·class="primitive"·href="../../core/primitive.reference.html">&amp;A</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>allocator_api</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/32838">#32838</a>)</span></div></span></summary><div·class="docblock"><p>Returns·a·reference·to·the·underlying·allocator.</p>
15 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.keep_rest"·class="method"><a·class="src·rightside"·href="../../src/alloc/vec/drain.rs.html#89-136">Source</a><h4·class="code-header">pub·fn·<a·href="#method.keep_rest"·class="fn">keep_rest</a>(self)</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>drain_keep_rest</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/101122">#101122</a>)</span></div></span></summary><div·class="docblock"><p>Keep·unyielded·elements·in·the·source·<code>Vec</code>.</p>15 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.keep_rest"·class="method"><a·class="src·rightside"·href="../../src/alloc/vec/drain.rs.html#89-136">Source</a><h4·class="code-header">pub·fn·<a·href="#method.keep_rest"·class="fn">keep_rest</a>(self)</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>drain_keep_rest</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/101122">#101122</a>)</span></div></span></summary><div·class="docblock"><p>Keep·unyielded·elements·in·the·source·<code>Vec</code>.</p>
16 <h5·id="examples-1"><a·class="doc-anchor"·href="#examples-1">§</a>Examples</h5>16 <h5·id="examples-1"><a·class="doc-anchor"·href="#examples-1">§</a>Examples</h5>
17 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(drain_keep_rest)]17 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(drain_keep_rest)]
  
18 </span><span·class="kw">let·</span><span·class="kw-2">mut·</span>vec·=·<span·class="macro">vec!</span>[<span·class="string">'a'</span>,·<span·class="string">'b'</span>,·<span·class="string">'c'</span>];18 </span><span·class="kw">let·</span><span·class="kw-2">mut·</span>vec·=·<span·class="macro">vec!</span>[<span·class="string">'a'</span>,·<span·class="string">'b'</span>,·<span·class="string">'c'</span>];
19 <span·class="kw">let·</span><span·class="kw-2">mut·</span>drain·=·vec.drain(..);19 <span·class="kw">let·</span><span·class="kw-2">mut·</span>drain·=·vec.drain(..);
  
Offset 23, 238 lines modifiedOffset 23, 238 lines modified
  
23 <span·class="comment">//·This·call·keeps·'b'·and·'c'·in·the·vec.23 <span·class="comment">//·This·call·keeps·'b'·and·'c'·in·the·vec.
24 </span>drain.keep_rest();24 </span>drain.keep_rest();
  
25 <span·class="comment">//·If·we·wouldn't·call·`keep_rest()`,25 <span·class="comment">//·If·we·wouldn't·call·`keep_rest()`,
26 //·`vec`·would·be·empty.26 //·`vec`·would·be·empty.
27 </span><span·class="macro">assert_eq!</span>(vec,·[<span·class="string">'b'</span>,·<span·class="string">'c'</span>]);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Bfeature(drain_keep_rest)%5D%0A%0Afn+main()+%7B%0A++++let+mut+vec+=+vec!%5B'a',+'b',+'c'%5D;%0A++++let+mut+drain+=+vec.drain(..);%0A++++%0A++++assert_eq!(drain.next().unwrap(),+'a');%0A++++%0A++++//+This+call+keeps+'b'+and+'c'+in+the+vec.%0A++++drain.keep_rest();%0A++++%0A++++//+If+we+wouldn't+call+%60keep_rest()%60,%0A++++//+%60vec%60+would+be+empty.%0A++++assert_eq!(vec,+%5B'b',+'c'%5D);%0A%7D&amp;version=nightly&amp;edition=2021"></a></div>27 </span><span·class="macro">assert_eq!</span>(vec,·[<span·class="string">'b'</span>,·<span·class="string">'c'</span>]);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Bfeature(drain_keep_rest)%5D%0A%0Afn+main()+%7B%0A++++let+mut+vec+=+vec!%5B'a',+'b',+'c'%5D;%0A++++let+mut+drain+=+vec.drain(..);%0A++++%0A++++assert_eq!(drain.next().unwrap(),+'a');%0A++++%0A++++//+This+call+keeps+'b'+and+'c'+in+the+vec.%0A++++drain.keep_rest();%0A++++%0A++++//+If+we+wouldn't+call+%60keep_rest()%60,%0A++++//+%60vec%60+would+be+empty.%0A++++assert_eq!(vec,+%5B'b',+'c'%5D);%0A%7D&amp;version=nightly&amp;edition=2021"></a></div>
28 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-AsRef%3C%5BT%5D%3E-for-Drain%3C'a,+T,+A%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.46.0">1.46.0</span>···<a·class="src"·href="../../src/alloc/vec/drain.rs.html#140-144">Source</a></span><a·href="#impl-AsRef%3C%5BT%5D%3E-for-Drain%3C'a,+T,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·T,·A:·<a·class="trait"·href="../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/convert/trait.AsRef.html"·title="trait·core::convert::AsRef">AsRef</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html">[T]</a>&gt;·for·<a·class="struct"·href="struct.Drain.html[·...·truncated·by·diffoscope;·len:·7401,·SHA:·3a375a21e82a6adae87d7b07ae1ee74f8cc8e43d6fb36378e6c16f08cafa9082·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold"·class="fn">try_rfold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where28 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-AsRef%3C%5BT%5D%3E-for-Drain%3C'a,+T,+A%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.46.0">1.46.0</span>···<a·class="src"·href="../../src/alloc/vec/drain.rs.html#140-144">Source</a></span><a·href="#impl-AsRef%3C%5BT%5D%3E-for-Drain%3C'a,+T,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·T,·A:·<a·class="trait"·href="../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>&gt;·<a·class="trait"·href="../../core/convert/trait.AsRef.html"·title="trait·core::convert::AsRef">AsRef</a>&lt;<a·class="primitive"·href="../../core/primitive.slice.html">[T]</a>&gt;·for·<a·class="struct"·href="struct.Drain.html"·title="struct·alloc::vec::Drain">Drain</a>&lt;'a,·T,[·...·truncated·by·diffoscope;·len:·6753,·SHA:·d3ad0717df8e7cc9096c9c1e8ab6562ea4165afb0f49e804ab25fb0c93e1b8c3·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold"·class="fn">try_rfold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where
29 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,29 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
30 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,30 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
31 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>This·is·the·reverse·version·of·<a·href="https://doc.rust-lang.org/1.8[·...·truncated·by·diffoscope;·len:·3,·SHA:·fbd04e1aae9ce0b11a8946e2c9ac2619f7428a64d32d01eff61d809dcb70ee8e·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·title="method·core::iter::traits::iterator::Iterator::try_fold"><code>Iterator::try_fold()</code></a>:·it·takes31 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>This·is·the·reverse·version·of·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·title="method·core::iter::traits::iterator::Iterator::try_fold"><code>Iterator::try_fold()</code></a>:·it·takes
32 elements·starting·from·the·back·of·the·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfold"·class="method·trait-impl"><span·clas[·...·truncated·by·diffoscope;·len:·325,·SHA:·7ffdb06a8ab3810207a1c974783822231eaf1d82fd94bcf810dd7b3181149b7b·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold"·class="fn">rfold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where32 elements·starting·from·the·back·of·the·iterator.·<a·href="../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfold"·class="method·trait-impl"><span·class="rightside"><span·class="[·...·truncated·by·diffoscope;·len:·244,·SHA:·6c4fe3f75fed1f00ec73ae6acd6efe929fb891f07f47293eec1013d32fc0fbe1·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold"·class="fn">rfold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where
33 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,33 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
34 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·reduces·the·iterator’s·elements·to·a·single,34 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·reduces·the·iterator’s·elements·to·a·single,
35 final·value,·starting·from·the·back.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfind"·class="method·trait-impl"><span·class="r[·...·truncated·by·diffoscope;·len:·665,·SHA:·fde89feb7c0e70eefa34d688476ca36a70115bec8150dbf9b1a3c359f72dd28d·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where35 final·value,·starting·from·the·back.·<a·href="../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfind"·class="method·trait-impl"><span·class="rightside"><span·class="sinc[·...·truncated·by·diffoscope;·len:·530,·SHA:·75a595bf6f9813abee32ae86d68f5de961884ee60e7080e18fb9c73b8e22c5f0·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
36 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,36 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
37 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·8290,·SHA:·703e52f6d28f01b3afa6c7a236849d313dfc5e3e19efdf0c4927890f350073f0·...·]/core/primitive.usize.html">usize</a>&gt;(37 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·7534,·SHA:·4c1d9293f5803431305f10bbbfa5bfde4e29e1f95b4013637fcdfc632c270d0f·...·]/core/primitive.usize.html">usize</a>&gt;(
38 ····&amp;mut·self,38 ····&amp;mut·self,
39 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·4f557a9b49151e0be8c52ffd68f1def4469c08164239dc8bef8df2040551c5ef·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where39 )·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">It[·...·truncated·by·diffoscope;·len:·246,·SHA:·baf6c8e6f3d5dbac69324111240b1587dbb858d42149cae1ee895a165289ff4f·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where
40 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·962,·SHA:·116e4ec2ae3d9655c3d115eaf50f435f5323b4e48b84de734c79d2a09b3c02f2·...·]/core/primitive.usize.html">usize</a><div·class="where">where40 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_next_ch[·...·truncated·by·diffoscope;·len:·827,·SHA:·2479cde9ab5aa3e18f76cf74cf7889a3de87c66e1745f27cf29bd34c4d30dbdf·...·]/core/primitive.usize.html">usize</a><div·class="where">where
41 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·counting·the·number·of·iterations·and·returning·it.·<a·href="https://doc.[·...·truncated·by·diffoscope;·len:·837,·SHA:·47e25b6f9687bcc1d1fcdf9842fb085e6aba767d70531028f948636b80563dfc·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where41 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·counting·the·number·of·iterations·and·returning·it.·<a·href="../../core/iter/traits/iterator/trait.I[·...·truncated·by·diffoscope;·len:·675,·SHA:·1ce62884794ba87e19a0c96720594ee19d36bf34d9a84160028eeff78b648fa9·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
42 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·returning·the·last·element.·<a·href="https://doc.rust-lang.org/1.84.0/cor[·...·truncated·by·diffoscope;·len:·3504,·SHA:·ec43d0f6d8d2a1e0fb7a684c382b9934abe1250844e53cce08bdfc6017ecb276·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where42 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·returning·the·last·element.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.last[·...·truncated·by·diffoscope;·len:·2964,·SHA:·db62f7c0fcc4ed24f8d8d5c90b4eb970e1ba2f576e1c200c74164f961b4de28e·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where
43 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by43 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by
44 the·given·amount·at·each·iteration.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><sp[·...·truncated·by·diffoscope;·len:·842,·SHA:·945c4509a8daf2f8fbccc5c6e5089e225955911e03a3e411f047f96d52d16862·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where44 the·given·amount·at·each·iteration.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Sta[·...·truncated·by·diffoscope;·len:·680,·SHA:·77241b5118fcbc984cb791fa9f75077307e18056b66492741335faf440cbdabc·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
45 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,45 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
46 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·3b5ce32f9d564c3aa7cf2adc7130e674758d0c0f4f1275b4c3b46a74aa802cb3·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where46 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·1113,·SHA:·ccf22d19f49a25daffdcc6d9226d5107457a8bfd16beccfeff5020d151bdb8bb·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
47 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,47 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
48 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·[·...·truncated·by·diffoscope;·len:·868,·SHA:·abdbf27ccc84063c7040d8fa3da9d0bda5ee310a470ef576e15554aee4bd5d21·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where48 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·of·pairs.·<a·href="../../co[·...·truncated·by·diffoscope;·len:·706,·SHA:·f32c568f049122021445a983654582d97ac74064a3e99c3361b348bd7708c1b2·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where
49 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,49 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
50 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent50 ····Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent
51 items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="sr[·...·truncated·by·diffoscope;·len:·427,·SHA:·6e82ad4aad49c2165d869fe30d20a968580a973cdb3a7f4c77f49e16dd59393e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where51 items·of·the·original·iterator.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="src·rightside"·href="../../sr[·...·truncated·by·diffoscope;·len:·319,·SHA:·8babc469a22056fc5a02684b52f9f93ba9c27a3dd2e8443ddc060797054e211e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where
52 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,52 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
53 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>53 ····G:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>
54 between·adjacent·items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightsi[·...·truncated·by·diffoscope;·len:·471,·SHA:·ed10488b7b2ccc3e4cc84a9a57a9695a74c1c964962e8d753cbace12f3318a66·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where54 between·adjacent·items·of·the·original·iterator.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·tit[·...·truncated·by·diffoscope;·len:·363,·SHA:·09aee21fa4172b743a714e2cb5915129575ce0224df49c7343dec38f43b7ecfd·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where
55 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,55 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
56 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each56 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each
57 element.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><spa[·...·truncated·by·diffoscope;·len:·306,·SHA:·61c87c39b177830189b0e4c036d97c40d8b9649d76432c90afb88de59498e8b2·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where57 element.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stab[·...·truncated·by·diffoscope;·len:·225,·SHA:·a0f2490a1a5fd6b44e0ab01199cbbbd6e5463251405d11eaf6798c9b50bbd683·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where
58 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,58 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
59 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·a65da32c5f5ef8335cb607d3b4ab3f8a25877bc2c2e8b44ca9d575caecd5c8a5·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where59 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·754,·SHA:·421e55a5747cab3df1dad40b747b4633f241bdc13a1546bb19b1370788dea27d·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where
60 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,60 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
61 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·6d69c85c69fa789be551ea42d95c33c237d12a04ef157f9ddaaead1177f7771e·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element61 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·59,·SHA:·76969e34965f1923de668a65a9f5c33f73266468c9b96650bcc5fd498e606a6b·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element
62 should·be·yielded.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·489,·SHA:·9bdc636899f4e4e5a26a3a21c9603f72b3fb972865d2f459c38b7e2ac8fed7f1·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where62 should·be·yielded.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·cf812944678f6755720896cf32b330946303afe59f1b1c11adeb6a7f33454c8d·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where
63 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,63 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
64 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·46dbf841c7aecd3f06bd4c944af21650faeac98c46c515dcfe643302618b1ecd·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where64 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·863,·SHA:·c2bab87fa2a70713bd2d34b3dcae8f4ff2341917103b43a1dd505317f15d6cff·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where
65 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as65 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as
66 the·next·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside[·...·truncated·by·diffoscope;·len:·468,·SHA:·52f7ff7f264284c3acc4429ca34d057ded9afa2e3d9d6e07571e252db9a48977·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where66 the·next·value.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title[·...·truncated·by·diffoscope;·len:·360,·SHA:·688416dc1aaaa0be069177270ba9e74b3d1b92521285a109dc7ba86b58c1f22a·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where
67 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·c0180fefce4346b0b4089e5c642521d7716108241c0ce6ec3e910c7a2c7364b4·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods67 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="../../core/iter/adapters/peekable/struct.Peekable.html#method.peek"·title="m[·...·truncated·by·diffoscope;·len:·94,·SHA:·78aeab33f83c647dfe680c1050358c95977e3af17eabde4a04880721ea1a619d·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods
68 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See68 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See
69 their·documentation·for·more·information.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightsid[·...·truncated·by·diffoscope;·len:·498,·SHA:·e4a68861585faec6a5032b3b69d6dfb0f2799b5f387a527d9a1365571ed02069·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where69 their·documentation·for·more·information.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightside"><span·class="since"·titl[·...·truncated·by·diffoscope;·len:·390,·SHA:·5da622ae0e4d00b47239007520070e22568156d6c5b1662db8b80b465934b18c·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where
70 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,70 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
71 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·93281c1f6402743fd61110c11cf676f0f67eddceda801b4eb35e5fe9f85870fd·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where71 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·1018,·SHA:·732548acff5239e9a7b904f32790c90ab3b63522635334128f35e01d37ceaeb6·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where
72 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,72 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
73 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·f1cdbb1ec64f98fabbe1d89c88b03824310926cd7eaa160953ce2452fc3abb77·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where73 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·869,·SHA:·8ec7e525848424d5104dbdd10928d17cfee4e5aee63cdda7ecdbe323b30b59d3·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where
74 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,74 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
75 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·f94a0b2c1396b13b89aca7830197ebf19e2c0e5ba536a9cc25b325a481799510·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where75 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·947,·SHA:·fdd074315a0bfb226f815b1b6ea114c7367886338ffffff233d7f6fc3108769a·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where
76 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="https://doc.rust-lang[·...·truncated·by·diffoscope;·len:·783,·SHA:·c14217b89e3292a50a09192a8857485891fc769f861e1d1fc4322d04295c86ef·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where76 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="../../core/iter/traits/iterator/trait.Iterator.h[·...·truncated·by·diffoscope;·len:·621,·SHA:·484df7f946e7f2f69c3acad8964421c0db8ac5bb40032d11bbd862e20e67704c·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where
77 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer77 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer
78 if·the·underlying·iterator·ends·sooner.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·c[·...·truncated·by·diffoscope;·len:·488,·SHA:·76f753d5a273a09a73127631acaa0ee947326a929f33be291018188793e1af56·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where78 if·the·underlying·iterator·ends·sooner.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·[·...·truncated·by·diffoscope;·len:·380,·SHA:·fa258c7e0b5d583304a69e2d4e19f3d4cc9a9ed830bdf3796eaa0968bdf590b4·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where
79 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,79 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
80 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·07d303586c8ad4e0082d5b44bff8eeda03cdb8f4bdbe46489f9232bca5a43ec6·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but80 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterat[·...·truncated·by·diffoscope;·len:·314,·SHA:·299331ff47adaff3ebc292c53557ad34da957aef932f87ec0444c7f856820410·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but
81 unlike·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·2b20882d9583cee50e0c8b3cf362b27ce0d524db387d4aa4093d622b9370dada·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where81 unlike·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.scan">Read·more[·...·truncated·by·diffoscope;·len:·555,·SHA:·77279e392f259f6d4859f5a7747ee4b4d5315f3af0ac3baebf1d53be3461b312·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where
82 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,82 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
83 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,83 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
84 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·933,·SHA:·4af94b75ba5c1e03d2d70590d2fd0706f13b3080fbff0f5b98e7b109048c403d·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where84 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·771,·SHA:·a1a50c8ca4c13151c7b22ce05c74c449231e1ffe44225beee67ff212fc1d3859·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where
85 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,85 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
86 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.I[·...·truncated·by·diffoscope;·len:·968,·SHA:·e5572ed2f3bdf5970d038da608f2f592d945541207c483c257fe5789efba168a·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where86 ····Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::col[·...·truncated·by·diffoscope;·len:·779,·SHA:·a4e524bd8aa8a1e0a66409d1b462b88093ab51a1f901ff1a788d7ee63d597f4c·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where
87 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,87 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
88 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·3013c0e49b0dade37f8ca096eccc5ceeb03fc79b9d320a4c92486d23b88d1009·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over88 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·54,·SHA:·6acee514e4d8df8979b4bba687b7e0d5dbb0ea4f98a7019e2fb03f3a8058df0f·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over
89 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,89 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="../../core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,
90 the·windows·during·mapping·overlap·as·well.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside">[·...·truncated·by·diffoscope;·len:·454,·SHA:·040991f3914479bcc92615de2b81df7363656323622e5aadc964e1a61917d23e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where90 the·windows·during·mapping·overlap·as·well.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="[·...·truncated·by·diffoscope;·len:·346,·SHA:·b1244a5f92e0573c29e04e883cf8212ba2586013b3687af07b63c29d2e611530·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where
91 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="https://doc.rust-lang.org/1.84.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·0e0294a45242d5ce9a3ab8f95d6d410756415291d92baa7d12283ef1b3ecc3a0·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where91 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="../../core/option/enum.Option.html#variant.None"·title="variant·cor[·...·truncated·by·diffoscope;·len:·679,·SHA:·ec753d6ecf7b9fe81cb270d78e45e053f2702fff74c7a63c2ab8da22b97fea86·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where
92 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,92 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
93 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·a8b562f71802a421f4745f7d1fadf4f70d98030c829e70f27b692e7915267027·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where93 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·635,·SHA:·ee3a5bcc3544c3f17985966634fef69b1708d641ddb7e62aaac76933935c5ef7·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where
94 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="https://doc.rust-lang.org/1.84.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·b3db7d84f203bbc139b1c52912705d19c664dac762898205fce452c9dc3a5318·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where94 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.by_ref">[·...·truncated·by·diffoscope;·len:·415,·SHA:·7e0e075470d2db380bcf0838446659654c982aa2ca7831ed7d0317877855be2a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where
95 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,95 ····B:·<a·class="trait"·href="../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
96 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·431,·SHA:·a705a23f6d810357e7dcac670743884665ffcccfb9b780d0aa03720be8ca5625·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(96 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.collect">Read[·...·truncated·by·diffoscope;·len:·323,·SHA:·80e0dde3814a6e7cf4e30949627abc841ab4e98e2a920efb248777e22708682d·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(
97 ····&amp;mut·self,97 ····&amp;mut·self,
98 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.h[·...·truncated·by·diffoscope;·len:·479,·SHA:·fa749442d890055f86ceb34f411c84fd7ea08302b336d786d1ca36fe5868b020·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where98 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&g[·...·truncated·by·diffoscope;·len:·344,·SHA:·c06c6401df0a7150633e94cc973521da42e09819b07be80ba18d6acb696860a9·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
99 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,99 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
100 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>,100 ····Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>,
101 ····&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.h[·...·truncated·by·diffoscope;·len:·300,·SHA:·3bff089180bac38df7f42b87556fae7641185b89a949c284f53e3ac718a6decb·...·]/core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;B&gt;,101 ····&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&g[·...·truncated·by·diffoscope;·len:·192,·SHA:·039ceb6ce31fc6b1871e3e366efbd0f164f4a6cc1bc25554bba598b0ee820cca·...·]/core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;B&gt;,
102 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/itera[·...·truncated·by·diffoscope;·len:·323,·SHA:·b5c51f161dc9d77fd81d1fd23cc71fbf42ac00f3168cf9e41ebaaa2b6eb25363·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if102 ····B:·<a·class="trait"·href="../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="ty[·...·truncated·by·diffoscope;·len:·215,·SHA:·ddb8fbd12147eecef1697edd4c63187cc514ab4b851290335adfcccc3fa429ba·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if
103 a·failure·is·encountered.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·ri[·...·truncated·by·diffoscope;·len:·521,·SHA:·6a54376815dab985ec8cc35604d035e98e3003b1563c9b41e70966084505542b·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where103 a·failure·is·encountered.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/co[·...·truncated·by·diffoscope;·len:·386,·SHA:·d46a776c329de4f757930edda252586c2cdd85c6956b7b2f68448da33ee0625e·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
104 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,104 ····E:·<a·class="trait"·href="../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
105 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·975,·SHA:·94f7f970236ba59ba5f1415764a0e3ab2f3093c6b79e76c25c797ac24a3c4d09·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where105 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_collect[·...·truncated·by·diffoscope;·len:·840,·SHA:·1ee6fbe4deb3d959e9ade58fb7ed3efa79d09721ed02fbb5f5f82aae6aa1425d·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
106 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,106 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
107 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·b480ec650ba000fe7cb67df58fc0351299638ee3e8f00db18f74ca24d69f9894·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,107 ····B:·<a·class="trait"·href="../../core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtyp[·...·truncated·by·diffoscope;·len:·14,·SHA:·4105980ca4887a52797067761af25a11e3de6069cd8d7c8ce82cd885bb798fe8·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
108 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·fdf5a1845f070855ba2cfd0c8c85460ea5cb646c4d3b42a8431bf21489c73701·...·]/core/primitive.usize.html">usize</a><div·class="where">where108 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·806,·SHA:·4d554b733db12e71a31ec2477a31408041941b0e2b0dc910904ecf2fced9f65b·...·]/core/primitive.usize.html">usize</a><div·class="where">where
109 ····T:·'a,109 ····T:·'a,
110 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·1fc250e258e9e42e4fa3e22f86ecd57057e9ff23e47af1aec778076a7a891134·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,110 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIter[·...·truncated·by·diffoscope;·len:·51,·SHA:·c9be73bbed9d11ecac2a179f480a640f51d6255f26712667ffdabc72c1fc7fb0·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,
111 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·5846407374f20f525a4a0663ad4488141eafe64513ef82581dc5df5c2d200745·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_partition_in_place</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62543">#62543</a>)</span></div></span><div·class='docblock'>Reorders·the·elements·of·this·iterator·<em>in-place</em>·according·to·the·given·predicate,111 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="../../core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_partition_in_place</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62543">#62543</a>)</span></div></span><div·class='docblock'>Reorders·the·elements·of·this·iterator·<em>in-place</em>·according·to·the·given·predicate,
112 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.112 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.
113 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.partition_in_place">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_partitioned"·class="method·trait-impl"><a·clas[·...·truncated·by·diffoscope;·len:·431,·SHA:·4aa7d028146c72d45794efc19a376d4bee3b75eda61ff46d969e440b3dbfa1b0·...·]/core/primitive.bool.html">bool</a><div·class="where">where113 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.partition_in_place">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_partitioned"·class="method·trait-impl"><a·class="src·rightside"·href="../[·...·truncated·by·diffoscope;·len:·323,·SHA:·bfc44418fa28079222aab80e2baccdaffb2d067bbe5d1b5162202d268ad628d7·...·]/core/primitive.bool.html">bool</a><div·class="where">where
114 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,114 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
115 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·fcd03e71f79faad6d9b9a12045d59f4dfabc78e5aefebcabc9c1a5be45e31125·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,115 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·54,·SHA:·d5ac304cc26edf57442227b641dd21c427d0f9cb322b79986f5b15fc49f867b0·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,
116 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><span·class="righ[·...·truncated·by·diffoscope;·len:·319,·SHA:·9b9df13f2f4e5b4dde3908515766e1a474fa30bcb7edc98c15665a016e677c2a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where116 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><span·class="rightside"><span·class="since"·[·...·truncated·by·diffoscope;·len:·238,·SHA:·af6ab768457e0afa1532b80c4296ae18061dac4c765922889b13eead3e5492db·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where
117 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,117 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
118 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,118 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
119 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns119 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns
120 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rights[·...·truncated·by·diffoscope;·len:·321,·SHA:·619fd774190944998148325de99aaa75de66ce4b7e26579fd342c564923a5652·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where120 successfully,·producing·a·single,·final·value.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"·ti[·...·truncated·by·diffoscope;·len:·240,·SHA:·125e84deea747ccbe139725d028362287beed6a89ab9da3a3aabd7df537abc59·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where
121 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,121 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
122 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,122 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
123 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the123 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="../../core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the
124 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·307,·SHA:·5975144fd8566efa93ad1ccec09297e280924b7372e08681d2103702124e2c52·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where124 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title=[·...·truncated·by·diffoscope;·len:·226,·SHA:·a7510e9271e68887d9e2681c6bc28312cec9ac38883128845f52742935a160a9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where
125 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,125 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
Max diff block lines reached; 171437/344965 bytes (49.70%) of diff not shown.
296 KB
./usr/share/doc/rust-doc/html/alloc/vec/struct.ExtractIf.html
    
Offset 1, 234 lines modifiedOffset 1, 234 lines modified
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="An·iterator·which·uses·a·closure·to·determine·if·an·element·should·be·removed."><title>ExtractIf·in·alloc::vec·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»       2025-01-07)»    (built»      from»  a» source»   tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Extract<wbr>If</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#example"·title="Example">Example</a></li></ul><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.allocator"·title="allocator">allocator</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Debug-for-ExtractIf%3C'a,+T,+F,+A%3E"·title="Debug">Debug</a></li><li><a·href="#impl-Drop-for-ExtractIf%3C'_,+T,+F,+A%3E"·title="Drop">Drop</a></li><li><a·href="#impl-Iterator-for-ExtractIf%3C'_,+T,+F,+A%3E"·title="Iterator">Iterator</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-UnwindSafe-for-ExtractIf%3C'a,+T,+F,+A%3E"·title="!UnwindSafe">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-ExtractIf%3C'a,+T,+F,+A%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-ExtractIf%3C'a,+T,+F,+A%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-ExtractIf%3C'a,+T,+F,+A%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-ExtractIf%3C'a,+T,+F,+A%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-ExtractIf%3C'a,+T,+F,+A%3E"·title="Unpin">Unpin</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>vec</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">alloc</a>::<wbr><a·href="index.html">vec</a></span><h1>Struct·<span·class="struct">ExtractIf</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/alloc/vec/extract_if.rs.html#22-39">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·ExtractIf&lt;'a,·T,·F,·A:·<a·class="trait"·href="../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·=·<a·class="struct"·href="../alloc/struct.Global.html"·title="struct·alloc::alloc::Global">Global</a>&gt;<div·class="where">where1 <!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="An·iterator·which·uses·a·closure·to·determine·if·an·element·should·be·removed."><title>ExtractIf·in·alloc::vec·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»       2025-01-07)»    (built»      from»  a» source»   tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Extract<wbr>If</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#example"·title="Example">Example</a></li></ul><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.allocator"·title="allocator">allocator</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Debug-for-ExtractIf%3C'a,+T,+F,+A%3E"·title="Debug">Debug</a></li><li><a·href="#impl-Drop-for-ExtractIf%3C'_,+T,+F,+A%3E"·title="Drop">Drop</a></li><li><a·href="#impl-Iterator-for-ExtractIf%3C'_,+T,+F,+A%3E"·title="Iterator">Iterator</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-UnwindSafe-for-ExtractIf%3C'a,+T,+F,+A%3E"·title="!UnwindSafe">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-ExtractIf%3C'a,+T,+F,+A%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-ExtractIf%3C'a,+T,+F,+A%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-ExtractIf%3C'a,+T,+F,+A%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-ExtractIf%3C'a,+T,+F,+A%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-ExtractIf%3C'a,+T,+F,+A%3E"·title="Unpin">Unpin</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>vec</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">alloc</a>::<wbr><a·href="index.html">vec</a></span><h1>Struct·<span·class="struct">ExtractIf</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/alloc/vec/extract_if.rs.html#22-39">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·ExtractIf&lt;'a,·T,·F,·A:·<a·class="trait"·href="../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·=·<a·class="struct"·href="../alloc/struct.Global.html"·title="struct·alloc::alloc::Global">Global</a>&gt;<div·class="where">where
2 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;mut·T</a>)·-&gt;·<a·class="primitive"·hr[·...·truncated·by·diffoscope;·len:·36,·SHA:·2e0eaf63251a6128f861dece043b970f71c7553139f6837da9b5d10554ac1b73·...·]/core/primitive.bool.html">bool</a>,</div>{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>extract_if</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/43244">#43244</a>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>An·iterator·which·uses·a·closure·to·determine·if·an·element·should·be·removed.</p>2 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../core/primitive.reference.html">&amp;mut·T</a>)·-&gt;·<a·class="primitive"·href="../../core/primitive.bool.html">bool</a>,</div>{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>extract_if</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/43244">#43244</a>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>An·iterator·which·uses·a·closure·to·determine·if·an·element·should·be·removed.</p>
3 <p>This·struct·is·created·by·<a·href="struct.Vec.html#method.extract_if"·title="method·alloc::vec::Vec::extract_if"><code>Vec::extract_if</code></a>.3 <p>This·struct·is·created·by·<a·href="struct.Vec.html#method.extract_if"·title="method·alloc::vec::Vec::extract_if"><code>Vec::extract_if</code></a>.
4 See·its·documentation·for·more.</p>4 See·its·documentation·for·more.</p>
5 <h2·id="example"><a·class="doc-anchor"·href="#example">§</a>Example</h2>5 <h2·id="example"><a·class="doc-anchor"·href="#example">§</a>Example</h2>
6 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(extract_if)]6 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(extract_if)]
  
7 </span><span·class="kw">let·</span><span·class="kw-2">mut·</span>v·=·<span·class="macro">vec!</span>[<span·class="number">0</span>,·<span·class="number">1</span>,·<span·class="number">2</span>];7 </span><span·class="kw">let·</span><span·class="kw-2">mut·</span>v·=·<span·class="macro">vec!</span>[<span·class="number">0</span>,·<span·class="number">1</span>,·<span·class="number">2</span>];
8 <span·class="kw">let·</span>iter:·std::vec::ExtractIf&lt;<span·class="lifetime">'_</span>,·<span·class="kw">_</span>,·<span·class="kw">_</span>&gt;·=·v.extract_if(|x|·<span·class="kw-2">*</span>x·%·<span·class="number">2·</span>==·<span·class="number">0</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Bfeature(extract_if)%5D%0A%0Afn+main()+%7B%0A++++let+mut+v+=+vec!%5B0,+1,+2%5D;%0A++++let+iter:+std::vec::ExtractIf%3C'_,+_,+_%3E+=+v.extract_if(%7Cx%7C+*x+%25+2+==+0);%0A%7D&amp;version=nightly&amp;edition=2021"></a></div>8 <span·class="kw">let·</span>iter:·std::vec::ExtractIf&lt;<span·class="lifetime">'_</span>,·<span·class="kw">_</span>,·<span·class="kw">_</span>&gt;·=·v.extract_if(|x|·<span·class="kw-2">*</span>x·%·<span·class="number">2·</span>==·<span·class="number">0</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Bfeature(extract_if)%5D%0A%0Afn+main()+%7B%0A++++let+mut+v+=+vec!%5B0,+1,+2%5D;%0A++++let+iter:+std::vec::ExtractIf%3C'_,+_,+_%3E+=+v.extract_if(%7Cx%7C+*x+%25+2+==+0);%0A%7D&amp;version=nightly&amp;edition=2021"></a></div>
9 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-ExtractIf%3C'_,+T,+F,+A%3E"·class="impl"><a·class="src·rightside"·href="../../src/alloc/vec/extract_if.rs.html#41-51">Source</a><a·href="#impl-ExtractIf%3C'_,+T,+F,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·F,·A:·<a·class="trait"·href="../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>&gt;·<a·class="struct"·href="struct.ExtractIf.html"·title="struct·alloc::vec::ExtractIf">ExtractIf</a>&lt;'_,·T,·F,·A&gt;<div·class="where">where9 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-ExtractIf%3C'_,+T,+F,+A%3E"·class="impl"><a·class="src·rightside"·href="../../src/alloc/vec/extract_if.rs.html#41-51">Source</a><a·href="#impl-ExtractIf%3C'_,+T,+F,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·F,·A:·<a·class="trait"·href="../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>&gt;·<a·class="struct"·href="struct.ExtractIf.html"·title="struct·alloc::vec::ExtractIf">ExtractIf</a>&lt;'_,·T,·F,·A&gt;<div·class="where">where
10 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;mut·T</a>)·-&gt;·<a·class="primitive"·hr[·...·truncated·by·diffoscope;·len:·472,·SHA:·a152441a0e17a0ca3db55408d228e8c03b0935de37fb6dd44138ddb53d88454d·...·]/core/primitive.reference.html">&amp;A</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>allocator_api</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/32838">#32838</a>)</span></div></span></summary><div·class="docblock"><p>Returns·a·reference·to·the·underlying·allocator.</p>10 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../core/primitive.reference.html">&amp;mut·T</a>)·-&gt;·<a·class="primitive"·href="../../core/primitive.bool.html">bool</a>,</div></h[·...·truncated·by·diffoscope;·len:·364,·SHA:·2432376078a28236348857ed5a5733c3a1d7d40d5ff4440e05a1682c4ccaf6f3·...·]/core/primitive.reference.html">&amp;A</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>allocator_api</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/32838">#32838</a>)</span></div></span></summary><div·class="docblock"><p>Returns·a·reference·to·the·underlying·allocator.</p>
11 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-ExtractIf%3C'a,+T,+F,+A%3E"·class="impl"><a·class="src·rightside"·href="../../src/alloc/vec/extract_if.rs.html#20">Source</a><a·href="#impl-Debug-for-ExtractIf%3C'a,+T,+F,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·T:·<a·class="trait"·href="../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,·F,·A:·<a·class="trait"·href="../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·+·<a·class="trait"·href="../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>&gt;·<a·class="trait"·href="../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.ExtractIf.html"·title="struct·alloc::vec::ExtractIf">ExtractIf</a>&lt;'a,·T,·F,·A&gt;<div·class="where">where11 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-ExtractIf%3C'a,+T,+F,+A%3E"·class="impl"><a·class="src·rightside"·href="../../src/alloc/vec/extract_if.rs.html#20">Source</a><a·href="#impl-Debug-for-ExtractIf%3C'a,+T,+F,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·T:·<a·class="trait"·href="../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,·F,·A:·<a·class="trait"·href="../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·+·<a·class="trait"·href="../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>&gt;·<a·class="trait"·href="../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.ExtractIf.html"·title="struct·alloc::vec::ExtractIf">ExtractIf</a>&lt;'a,·T,·F,·A&gt;<div·class="where">where
12 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;mut·T</a>)·-&gt;·<a·class="primitive"·hr[·...·truncated·by·diffoscope;·len:·1451,·SHA:·a8a21f3317112733d0b171fd12c4d1c843ffc79eb164a801df580f97130e6065·...·]/core/ops/drop/trait.Drop.html"·title="trait·core::ops::drop::Drop">Drop</a>·for·<a·class="struct"·href="struct.ExtractIf.html"·title="struct·alloc::vec::ExtractIf">ExtractIf</a>&lt;'_,·T,·F,·A&gt;<div·class="where">where12 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../core/primitive.reference.html">&amp;mut·T</a>)·-&gt;·<a·class="primitive"·href="../../core/primitive.bool.html">bool</a>·+·<a·clas[·...·truncated·by·diffoscope;·len:·1343,·SHA:·9818f42b4841bfe7bf960fc4e2988260ab7990dd3389e3fe9ab42f71a790cad2·...·]/core/ops/drop/trait.Drop.html"·title="trait·core::ops::drop::Drop">Drop</a>·for·<a·class="struct"·href="struct.ExtractIf.html"·title="struct·alloc::vec::ExtractIf">ExtractIf</a>&lt;'_,·T,·F,·A&gt;<div·class="where">where
13 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;mut·T</a>)·-&gt;·<a·class="primitive"·hr[·...·truncated·by·diffoscope;·len:·1227,·SHA:·e828d1c29cfd24a133932c74c90a16e40c4e1102902bb40643e56bc0ac179097·...·]/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::Iterator">Iterator</a>·for·<a·class="struct"·href="struct.ExtractIf.html"·title="struct·alloc::vec::ExtractIf">ExtractIf</a>&lt;'_,·T,·F,·A&gt;<div·class="where">where13 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../core/primitive.reference.html">&amp;mut·T</a>)·-&gt;·<a·class="primitive"·href="../../core/primitive.bool.html">bool</a>,</div></h[·...·truncated·by·diffoscope;·len:·1065,·SHA:·e39918899af0044b377853b96490e286d1d048bd1d004559eb6cd2b4a1db0a7e·...·]/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::Iterator">Iterator</a>·for·<a·class="struct"·href="struct.ExtractIf.html"·title="struct·alloc::vec::ExtractIf">ExtractIf</a>&lt;'_,·T,·F,·A&gt;<div·class="where">where
14 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;mut·T</a>)·-&gt;·<a·class="primitive"·hr[·...·truncated·by·diffoscope;·len:·2926,·SHA:·e624f8b8482bb1108cc271c5b7e4f12c5fafc3f4b76945993545288c1867f2e6·...·]/core/primitive.usize.html">usize</a>&gt;(14 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../core/primitive.reference.html">&amp;mut·T</a>)·-&gt;·<a·class="primitive"·href="../../core/primitive.bool.html">bool</a>,</div></h[·...·truncated·by·diffoscope;·len:·2521,·SHA:·c0e8f063d6afdfe45061c133946c1e41b72fa720b760155d482ad13770bbfd4d·...·]/core/primitive.usize.html">usize</a>&gt;(
15 ····&amp;mut·self,15 ····&amp;mut·self,
16 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·4f557a9b49151e0be8c52ffd68f1def4469c08164239dc8bef8df2040551c5ef·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where16 )·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">It[·...·truncated·by·diffoscope;·len:·246,·SHA:·baf6c8e6f3d5dbac69324111240b1587dbb858d42149cae1ee895a165289ff4f·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where
17 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·962,·SHA:·116e4ec2ae3d9655c3d115eaf50f435f5323b4e48b84de734c79d2a09b3c02f2·...·]/core/primitive.usize.html">usize</a><div·class="where">where17 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_next_ch[·...·truncated·by·diffoscope;·len:·827,·SHA:·2479cde9ab5aa3e18f76cf74cf7889a3de87c66e1745f27cf29bd34c4d30dbdf·...·]/core/primitive.usize.html">usize</a><div·class="where">where
18 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·counting·the·number·of·iterations·and·returning·it.·<a·href="https://doc.[·...·truncated·by·diffoscope;·len:·837,·SHA:·47e25b6f9687bcc1d1fcdf9842fb085e6aba767d70531028f948636b80563dfc·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where18 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·counting·the·number·of·iterations·and·returning·it.·<a·href="../../core/iter/traits/iterator/trait.I[·...·truncated·by·diffoscope;·len:·675,·SHA:·1ce62884794ba87e19a0c96720594ee19d36bf34d9a84160028eeff78b648fa9·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
19 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·returning·the·last·element.·<a·href="https://doc.rust-lang.org/1.84.0/cor[·...·truncated·by·diffoscope;·len:·3504,·SHA:·ec43d0f6d8d2a1e0fb7a684c382b9934abe1250844e53cce08bdfc6017ecb276·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where19 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·returning·the·last·element.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.last[·...·truncated·by·diffoscope;·len:·2964,·SHA:·db62f7c0fcc4ed24f8d8d5c90b4eb970e1ba2f576e1c200c74164f961b4de28e·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where
20 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by20 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by
21 the·given·amount·at·each·iteration.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><sp[·...·truncated·by·diffoscope;·len:·842,·SHA:·945c4509a8daf2f8fbccc5c6e5089e225955911e03a3e411f047f96d52d16862·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where21 the·given·amount·at·each·iteration.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Sta[·...·truncated·by·diffoscope;·len:·680,·SHA:·77241b5118fcbc984cb791fa9f75077307e18056b66492741335faf440cbdabc·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
22 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,22 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
23 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·3b5ce32f9d564c3aa7cf2adc7130e674758d0c0f4f1275b4c3b46a74aa802cb3·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where23 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·1113,·SHA:·ccf22d19f49a25daffdcc6d9226d5107457a8bfd16beccfeff5020d151bdb8bb·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
24 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,24 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
25 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·[·...·truncated·by·diffoscope;·len:·868,·SHA:·abdbf27ccc84063c7040d8fa3da9d0bda5ee310a470ef576e15554aee4bd5d21·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where25 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·of·pairs.·<a·href="../../co[·...·truncated·by·diffoscope;·len:·706,·SHA:·f32c568f049122021445a983654582d97ac74064a3e99c3361b348bd7708c1b2·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where
26 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,26 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
27 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent27 ····Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent
28 items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="sr[·...·truncated·by·diffoscope;·len:·427,·SHA:·6e82ad4aad49c2165d869fe30d20a968580a973cdb3a7f4c77f49e16dd59393e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where28 items·of·the·original·iterator.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="src·rightside"·href="../../sr[·...·truncated·by·diffoscope;·len:·319,·SHA:·8babc469a22056fc5a02684b52f9f93ba9c27a3dd2e8443ddc060797054e211e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where
29 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,29 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
30 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>30 ····G:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>
31 between·adjacent·items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightsi[·...·truncated·by·diffoscope;·len:·471,·SHA:·ed10488b7b2ccc3e4cc84a9a57a9695a74c1c964962e8d753cbace12f3318a66·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where31 between·adjacent·items·of·the·original·iterator.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·tit[·...·truncated·by·diffoscope;·len:·363,·SHA:·09aee21fa4172b743a714e2cb5915129575ce0224df49c7343dec38f43b7ecfd·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where
32 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,32 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
33 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each33 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each
34 element.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><spa[·...·truncated·by·diffoscope;·len:·306,·SHA:·61c87c39b177830189b0e4c036d97c40d8b9649d76432c90afb88de59498e8b2·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where34 element.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stab[·...·truncated·by·diffoscope;·len:·225,·SHA:·a0f2490a1a5fd6b44e0ab01199cbbbd6e5463251405d11eaf6798c9b50bbd683·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where
35 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,35 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
36 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·a65da32c5f5ef8335cb607d3b4ab3f8a25877bc2c2e8b44ca9d575caecd5c8a5·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where36 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·754,·SHA:·421e55a5747cab3df1dad40b747b4633f241bdc13a1546bb19b1370788dea27d·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where
37 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,37 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
38 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·6d69c85c69fa789be551ea42d95c33c237d12a04ef157f9ddaaead1177f7771e·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element38 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·59,·SHA:·76969e34965f1923de668a65a9f5c33f73266468c9b96650bcc5fd498e606a6b·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element
39 should·be·yielded.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·489,·SHA:·9bdc636899f4e4e5a26a3a21c9603f72b3fb972865d2f459c38b7e2ac8fed7f1·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where39 should·be·yielded.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·cf812944678f6755720896cf32b330946303afe59f1b1c11adeb6a7f33454c8d·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where
40 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,40 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
41 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·46dbf841c7aecd3f06bd4c944af21650faeac98c46c515dcfe643302618b1ecd·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where41 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·863,·SHA:·c2bab87fa2a70713bd2d34b3dcae8f4ff2341917103b43a1dd505317f15d6cff·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where
42 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as42 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as
43 the·next·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside[·...·truncated·by·diffoscope;·len:·468,·SHA:·52f7ff7f264284c3acc4429ca34d057ded9afa2e3d9d6e07571e252db9a48977·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where43 the·next·value.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title[·...·truncated·by·diffoscope;·len:·360,·SHA:·688416dc1aaaa0be069177270ba9e74b3d1b92521285a109dc7ba86b58c1f22a·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where
44 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·c0180fefce4346b0b4089e5c642521d7716108241c0ce6ec3e910c7a2c7364b4·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods44 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="../../core/iter/adapters/peekable/struct.Peekable.html#method.peek"·title="m[·...·truncated·by·diffoscope;·len:·94,·SHA:·78aeab33f83c647dfe680c1050358c95977e3af17eabde4a04880721ea1a619d·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods
45 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See45 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See
46 their·documentation·for·more·information.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightsid[·...·truncated·by·diffoscope;·len:·498,·SHA:·e4a68861585faec6a5032b3b69d6dfb0f2799b5f387a527d9a1365571ed02069·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where46 their·documentation·for·more·information.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightside"><span·class="since"·titl[·...·truncated·by·diffoscope;·len:·390,·SHA:·5da622ae0e4d00b47239007520070e22568156d6c5b1662db8b80b465934b18c·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where
47 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,47 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
48 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·93281c1f6402743fd61110c11cf676f0f67eddceda801b4eb35e5fe9f85870fd·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where48 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·1018,·SHA:·732548acff5239e9a7b904f32790c90ab3b63522635334128f35e01d37ceaeb6·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where
49 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,49 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
50 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·f1cdbb1ec64f98fabbe1d89c88b03824310926cd7eaa160953ce2452fc3abb77·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where50 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·869,·SHA:·8ec7e525848424d5104dbdd10928d17cfee4e5aee63cdda7ecdbe323b30b59d3·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where
51 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,51 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
52 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·f94a0b2c1396b13b89aca7830197ebf19e2c0e5ba536a9cc25b325a481799510·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where52 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·947,·SHA:·fdd074315a0bfb226f815b1b6ea114c7367886338ffffff233d7f6fc3108769a·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where
53 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="https://doc.rust-lang[·...·truncated·by·diffoscope;·len:·783,·SHA:·c14217b89e3292a50a09192a8857485891fc769f861e1d1fc4322d04295c86ef·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where53 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="../../core/iter/traits/iterator/trait.Iterator.h[·...·truncated·by·diffoscope;·len:·621,·SHA:·484df7f946e7f2f69c3acad8964421c0db8ac5bb40032d11bbd862e20e67704c·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where
54 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer54 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer
55 if·the·underlying·iterator·ends·sooner.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·c[·...·truncated·by·diffoscope;·len:·488,·SHA:·76f753d5a273a09a73127631acaa0ee947326a929f33be291018188793e1af56·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where55 if·the·underlying·iterator·ends·sooner.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·[·...·truncated·by·diffoscope;·len:·380,·SHA:·fa258c7e0b5d583304a69e2d4e19f3d4cc9a9ed830bdf3796eaa0968bdf590b4·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where
56 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,56 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
57 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·07d303586c8ad4e0082d5b44bff8eeda03cdb8f4bdbe46489f9232bca5a43ec6·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but57 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterat[·...·truncated·by·diffoscope;·len:·314,·SHA:·299331ff47adaff3ebc292c53557ad34da957aef932f87ec0444c7f856820410·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but
58 unlike·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·2b20882d9583cee50e0c8b3cf362b27ce0d524db387d4aa4093d622b9370dada·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where58 unlike·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.scan">Read·more[·...·truncated·by·diffoscope;·len:·555,·SHA:·77279e392f259f6d4859f5a7747ee4b4d5315f3af0ac3baebf1d53be3461b312·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where
59 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,59 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
60 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,60 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
61 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·933,·SHA:·4af94b75ba5c1e03d2d70590d2fd0706f13b3080fbff0f5b98e7b109048c403d·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where61 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·771,·SHA:·a1a50c8ca4c13151c7b22ce05c74c449231e1ffe44225beee67ff212fc1d3859·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where
62 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,62 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
63 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.I[·...·truncated·by·diffoscope;·len:·968,·SHA:·e5572ed2f3bdf5970d038da608f2f592d945541207c483c257fe5789efba168a·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where63 ····Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::col[·...·truncated·by·diffoscope;·len:·779,·SHA:·a4e524bd8aa8a1e0a66409d1b462b88093ab51a1f901ff1a788d7ee63d597f4c·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where
64 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,64 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
65 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·3013c0e49b0dade37f8ca096eccc5ceeb03fc79b9d320a4c92486d23b88d1009·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over65 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·54,·SHA:·6acee514e4d8df8979b4bba687b7e0d5dbb0ea4f98a7019e2fb03f3a8058df0f·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over
66 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,66 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="../../core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,
67 the·windows·during·mapping·overlap·as·well.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside">[·...·truncated·by·diffoscope;·len:·454,·SHA:·040991f3914479bcc92615de2b81df7363656323622e5aadc964e1a61917d23e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where67 the·windows·during·mapping·overlap·as·well.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="[·...·truncated·by·diffoscope;·len:·346,·SHA:·b1244a5f92e0573c29e04e883cf8212ba2586013b3687af07b63c29d2e611530·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where
68 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="https://doc.rust-lang.org/1.84.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·0e0294a45242d5ce9a3ab8f95d6d410756415291d92baa7d12283ef1b3ecc3a0·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where68 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="../../core/option/enum.Option.html#variant.None"·title="variant·cor[·...·truncated·by·diffoscope;·len:·679,·SHA:·ec753d6ecf7b9fe81cb270d78e45e053f2702fff74c7a63c2ab8da22b97fea86·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where
69 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,69 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
70 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·a8b562f71802a421f4745f7d1fadf4f70d98030c829e70f27b692e7915267027·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where70 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·635,·SHA:·ee3a5bcc3544c3f17985966634fef69b1708d641ddb7e62aaac76933935c5ef7·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where
71 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="https://doc.rust-lang.org/1.84.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·b3db7d84f203bbc139b1c52912705d19c664dac762898205fce452c9dc3a5318·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where71 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.by_ref">[·...·truncated·by·diffoscope;·len:·415,·SHA:·7e0e075470d2db380bcf0838446659654c982aa2ca7831ed7d0317877855be2a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where
72 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,72 ····B:·<a·class="trait"·href="../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
73 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·431,·SHA:·a705a23f6d810357e7dcac670743884665ffcccfb9b780d0aa03720be8ca5625·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(73 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.collect">Read[·...·truncated·by·diffoscope;·len:·323,·SHA:·80e0dde3814a6e7cf4e30949627abc841ab4e98e2a920efb248777e22708682d·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(
74 ····&amp;mut·self,74 ····&amp;mut·self,
75 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.h[·...·truncated·by·diffoscope;·len:·479,·SHA:·fa749442d890055f86ceb34f411c84fd7ea08302b336d786d1ca36fe5868b020·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where75 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&g[·...·truncated·by·diffoscope;·len:·344,·SHA:·c06c6401df0a7150633e94cc973521da42e09819b07be80ba18d6acb696860a9·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
76 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,76 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
77 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>,77 ····Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>,
78 ····&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.h[·...·truncated·by·diffoscope;·len:·300,·SHA:·3bff089180bac38df7f42b87556fae7641185b89a949c284f53e3ac718a6decb·...·]/core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;B&gt;,78 ····&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&g[·...·truncated·by·diffoscope;·len:·192,·SHA:·039ceb6ce31fc6b1871e3e366efbd0f164f4a6cc1bc25554bba598b0ee820cca·...·]/core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;B&gt;,
79 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/itera[·...·truncated·by·diffoscope;·len:·323,·SHA:·b5c51f161dc9d77fd81d1fd23cc71fbf42ac00f3168cf9e41ebaaa2b6eb25363·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if79 ····B:·<a·class="trait"·href="../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="ty[·...·truncated·by·diffoscope;·len:·215,·SHA:·ddb8fbd12147eecef1697edd4c63187cc514ab4b851290335adfcccc3fa429ba·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if
80 a·failure·is·encountered.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·ri[·...·truncated·by·diffoscope;·len:·521,·SHA:·6a54376815dab985ec8cc35604d035e98e3003b1563c9b41e70966084505542b·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where80 a·failure·is·encountered.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/co[·...·truncated·by·diffoscope;·len:·386,·SHA:·d46a776c329de4f757930edda252586c2cdd85c6956b7b2f68448da33ee0625e·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
81 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,81 ····E:·<a·class="trait"·href="../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
82 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·975,·SHA:·94f7f970236ba59ba5f1415764a0e3ab2f3093c6b79e76c25c797ac24a3c4d09·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where82 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_collect[·...·truncated·by·diffoscope;·len:·840,·SHA:·1ee6fbe4deb3d959e9ade58fb7ed3efa79d09721ed02fbb5f5f82aae6aa1425d·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
83 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,83 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
84 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·b480ec650ba000fe7cb67df58fc0351299638ee3e8f00db18f74ca24d69f9894·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,84 ····B:·<a·class="trait"·href="../../core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtyp[·...·truncated·by·diffoscope;·len:·14,·SHA:·4105980ca4887a52797067761af25a11e3de6069cd8d7c8ce82cd885bb798fe8·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
85 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·972,·SHA:·0a54d9b1f5cb78c4f6b5f5b1153955eea3a8c16edcc762351208dabad1e8e9aa·...·]/core/primitive.bool.html">bool</a><div·class="where">where85 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·783,·SHA:·1049885abe2fefcc62acec46fb9d3b7fd6bc2dd9014b7828ad95bf68d7b0abe0·...·]/core/primitive.bool.html">bool</a><div·class="where">where
86 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,86 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
87 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·fcd03e71f79faad6d9b9a12045d59f4dfabc78e5aefebcabc9c1a5be45e31125·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,87 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·54,·SHA:·d5ac304cc26edf57442227b641dd21c427d0f9cb322b79986f5b15fc49f867b0·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,
88 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><span·class="righ[·...·truncated·by·diffoscope;·len:·319,·SHA:·9b9df13f2f4e5b4dde3908515766e1a474fa30bcb7edc98c15665a016e677c2a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where88 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><span·class="rightside"><span·class="since"·[·...·truncated·by·diffoscope;·len:·238,·SHA:·af6ab768457e0afa1532b80c4296ae18061dac4c765922889b13eead3e5492db·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where
89 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,89 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
90 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,90 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
91 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns91 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns
92 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rights[·...·truncated·by·diffoscope;·len:·321,·SHA:·619fd774190944998148325de99aaa75de66ce4b7e26579fd342c564923a5652·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where92 successfully,·producing·a·single,·final·value.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"·ti[·...·truncated·by·diffoscope;·len:·240,·SHA:·125e84deea747ccbe139725d028362287beed6a89ab9da3a3aabd7df537abc59·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where
93 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,93 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
94 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,94 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
95 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the95 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="../../core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the
96 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·307,·SHA:·5975144fd8566efa93ad1ccec09297e280924b7372e08681d2103702124e2c52·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where96 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title=[·...·truncated·by·diffoscope;·len:·226,·SHA:·a7510e9271e68887d9e2681c6bc28312cec9ac38883128845f52742935a160a9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where
97 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,97 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
98 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,98 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,
99 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span[·...·truncated·by·diffoscope;·len:·619,·SHA:·8813f54846438870310d5f5dfabd2335a9dbf51e9da2e4cd681bcb6077d39628·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where99 returning·the·final·result.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stabl[·...·truncated·by·diffoscope;·len:·484,·SHA:·5f42e8d5ff08f4c76870e6cb9165e054f9a0d99051d9886ccd43d5c8a91e1fbc·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
100 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,100 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
101 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·084691f7fc4e7f4da7db385127d0ce8d2d52f6740757129a65910c4db0dc180d·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing101 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·244,·SHA:·f09ac7e818239538c3f3208cb5c76076c24a0153797eb762821d5bf2a382d83b·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing
102 operation.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·217,·SHA:·447ae00256be3de069c602a6c04889808c883eae6fa349d023f53bdd5570ecae·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(102 operation.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/iter[·...·truncated·by·diffoscope;·len:·136,·SHA:·97e3ee132585582ec7077e3bbd86406d8a2dcfc97dce7fd52b49af3ec1b58622·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(
103 ····&amp;mut·self,103 ····&amp;mut·self,
104 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R, 
105 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.T[·...·truncated·by·diffoscope;·len:·950,·SHA:·817376e71f7a0d170bfbd4b7264c15d324f49c65106c49349d11a077842aa533·...·]104 ····f:·impl·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core:[·...·truncated·by·diffoscope;·len:·238,·SHA:·a52edc1a1ce1db5dd6e620dbfe5acb58fdc6d84f2320cef02845988aa54e5c55·...·]
 105 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;&gt;&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
106 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,106 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
107 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,107 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
108 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·764ea8f08626b05426a76738d54ebb2d640042494d76cba8c20d868bfdc07a73·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the108 ····&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>:·<a[·...·truncated·by·diffoscope;·len:·277,·SHA:·0dd064909226a9691486376740de1e17aa133a7ae2f635bee3feaa9b19d7b580·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the
109 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><span·class="rightside"><s[·...·truncated·by·diffoscope;·len:·476,·SHA:·aef721c14147dea2fbec70dcfa76916b3f1273bed8304f4c9db310ca23d1e4b1·...·]/core/primitive.bool.html">bool</a><div·class="where">where109 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="St[·...·truncated·by·diffoscope;·len:·368,·SHA:·6dbfbc90b7cfda9017074212ce0beeb560c8f9ba918ba7b00292e34daa531cc2·...·]/core/primitive.bool.html">bool</a><div·class="where">where
110 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,110 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
111 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·7c48e62c73a40a5cb5ebbf4a22cd789b342a88ad3d855022191f2bae33c736c6·...·]/core/primitive.bool.html">bool</a><div·class="where">where111 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·829,·SHA:·c413d95d1072acd820201f12ffb54d04a6c7f3b732f7de46115ba40b4eb1bd3f·...·]/core/primitive.bool.html">bool</a><div·class="where">where
112 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,112 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
113 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·673d69ce0c23e24b2546127c463e67cd2a4c0f7be792712e2b42e75427161b75·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where113 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·956,·SHA:·105c7ff05d33bc9219febe8c9633cf1c1a8d88c32e47e44793d403a428174c66·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
114 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,114 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
115 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·aa5078ff77f5638746395497f8ce92c1b684d342dea851990104d5e9981ab6b0·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where115 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·862,·SHA:·ab608da827ec12779180206da5bfe43676627c19288c1fe674060a00ba44a595·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where
116 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,116 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
117 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·1bd732dff19021a1586bb486282683f5c1bc65d5d514f9e13cc9232b4e94955b·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;,</div></h4></section></summary><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns117 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·49,·SHA:·819211b646a21318a22e9d295452cdf890d5288a631a50261ca1a5b2bac9f748·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;,</div></h4></section></summary><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns
118 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.find_map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_find"·class="method·trait-impl"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·215,·SHA:·4d59a011c8881794ce6367c1e816f11a813db02e37c71800ed6d47056f157573·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(118 the·first·non-none·result.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.find_map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_find"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/iter[·...·truncated·by·diffoscope;·len:·134,·SHA:·f9a67b0520c850053a598ecaa24d4c1a006e7174ac499ec1e09451cd90ea548e·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(
119 ····&amp;mut·self,119 ····&amp;mut·self,
120 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,120 ····f:·impl·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
121 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·efb03e5c706e0947c6a4490b17f1efb0f1944a7d81f2640b5933212334dd255a·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where121 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>·as·[·...·truncated·by·diffoscope;·len:·464,·SHA:·38b1d27bdc6fd93a0d7e942386ffe94e909033d34def03ec6236baba6643ee81·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
122 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,122 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
123 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html">bool</a>&gt;,123 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="../../core/primitive.bool.html">bool</a>&gt;,
124 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·764ea8f08626b05426a76738d54ebb2d640042494d76cba8c20d868bfdc07a73·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>try_find</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/63178">#63178</a>)</span></div></span><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns124 ····&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>:·<a[·...·truncated·by·diffoscope;·len:·277,·SHA:·0dd064909226a9691486376740de1e17aa133a7ae2f635bee3feaa9b19d7b580·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>try_find</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/63178">#63178</a>)</span></div></span><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns
125 the·first·true·result·or·the·first·error.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_find">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.position"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·635,·SHA:·348891c2a01ad4ba1f5ccca4c270bd2cefaf47e6b8194dc69d227209558119ff·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where125 the·first·true·result·or·the·first·error.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_find">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.position"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title=[·...·truncated·by·diffoscope;·len:·500,·SHA:·005fbbf80a1954a9c056f5ea1c5ad1868c1657316a1b4be45b5d494a4ecbdf59·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
Max diff block lines reached; 81926/303289 bytes (27.01%) of diff not shown.
355 KB
./usr/share/doc/rust-doc/html/alloc/vec/struct.IntoIter.html
Max HTML report size reached
337 KB
./usr/share/doc/rust-doc/html/alloc/vec/struct.Splice.html
    
Offset 1, 249 lines modifiedOffset 1, 249 lines modified
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="A·splicing·iterator·for·`Vec`."><title>Splice·in·alloc::vec·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312» 2025-01-07)»      (built»from»    a»   source»     tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Splice</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#example"·title="Example">Example</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Debug-for-Splice%3C'a,+I,+A%3E"·title="Debug">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-Splice%3C'_,+I,+A%3E"·title="DoubleEndedIterator">DoubleEndedIterator</a></li><li><a·href="#impl-Drop-for-Splice%3C'_,+I,+A%3E"·title="Drop">Drop</a></li><li><a·href="#impl-ExactSizeIterator-for-Splice%3C'_,+I,+A%3E"·title="ExactSizeIterator">ExactSizeIterator</a></li><li><a·href="#impl-Iterator-for-Splice%3C'_,+I,+A%3E"·title="Iterator">Iterator</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-Splice%3C'a,+I,+A%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Splice%3C'a,+I,+A%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Splice%3C'a,+I,+A%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-Splice%3C'a,+I,+A%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-Splice%3C'a,+I,+A%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Splice%3C'a,+I,+A%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>vec</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">alloc</a>::<wbr><a·href="index.html">vec</a></span><h1>Struct·<span·class="struct">Splice</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../src/alloc/vec/splice.rs.html#21-28">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·Splice&lt;'a,·I:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::Iterator">Iterator</a>·+·'a,·A:·<a·class="trait"·href="../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·+·'a·=·<a·class="struct"·href="../alloc/struct.Global.html"·title="struct·alloc::alloc::Global">Global</a>&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>A·splicing·iterator·for·<code>Vec</code>.</p>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="A·splicing·iterator·for·`Vec`."><title>Splice·in·alloc::vec·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312» 2025-01-07)»      (built»from»    a»   source»     tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Splice</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#example"·title="Example">Example</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Debug-for-Splice%3C'a,+I,+A%3E"·title="Debug">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-Splice%3C'_,+I,+A%3E"·title="DoubleEndedIterator">DoubleEndedIterator</a></li><li><a·href="#impl-Drop-for-Splice%3C'_,+I,+A%3E"·title="Drop">Drop</a></li><li><a·href="#impl-ExactSizeIterator-for-Splice%3C'_,+I,+A%3E"·title="ExactSizeIterator">ExactSizeIterator</a></li><li><a·href="#impl-Iterator-for-Splice%3C'_,+I,+A%3E"·title="Iterator">Iterator</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-Splice%3C'a,+I,+A%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Splice%3C'a,+I,+A%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Splice%3C'a,+I,+A%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-Splice%3C'a,+I,+A%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-Splice%3C'a,+I,+A%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Splice%3C'a,+I,+A%3E"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·alloc::<wbr>vec</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">alloc</a>::<wbr><a·href="index.html">vec</a></span><h1>Struct·<span·class="struct">Splice</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../src/alloc/vec/splice.rs.html#21-28">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·Splice&lt;'a,·I:·<a·class="trait"·href="../../core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::Iterator">Iterator</a>·+·'a,·A:·<a·class="trait"·href="../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·+·'a·=·<a·class="struct"·href="../alloc/struct.Global.html"·title="struct·alloc::alloc::Global">Global</a>&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>A·splicing·iterator·for·<code>Vec</code>.</p>
2 <p>This·struct·is·created·by·<a·href="struct.Vec.html#method.splice"·title="method·alloc::vec::Vec::splice"><code>Vec::splice()</code></a>.2 <p>This·struct·is·created·by·<a·href="struct.Vec.html#method.splice"·title="method·alloc::vec::Vec::splice"><code>Vec::splice()</code></a>.
3 See·its·documentation·for·more.</p>3 See·its·documentation·for·more.</p>
4 <h2·id="example"><a·class="doc-anchor"·href="#example">§</a>Example</h2>4 <h2·id="example"><a·class="doc-anchor"·href="#example">§</a>Example</h2>
5 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span><span·class="kw-2">mut·</span>v·=·<span·class="macro">vec!</span>[<span·class="number">0</span>,·<span·class="number">1</span>,·<span·class="number">2</span>];5 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span><span·class="kw-2">mut·</span>v·=·<span·class="macro">vec!</span>[<span·class="number">0</span>,·<span·class="number">1</span>,·<span·class="number">2</span>];
6 <span·class="kw">let·</span>new·=·[<span·class="number">7</span>,·<span·class="number">8</span>];6 <span·class="kw">let·</span>new·=·[<span·class="number">7</span>,·<span·class="number">8</span>];
7 <span·class="kw">let·</span>iter:·std::vec::Splice&lt;<span·class="lifetime">'_</span>,·<span·class="kw">_</span>&gt;·=·v.splice(<span·class="number">1</span>..,·new);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++let+mut+v+=+vec!%5B0,+1,+2%5D;%0A++++let+new+=+%5B7,+8%5D;%0A++++let+iter:+std::vec::Splice%3C'_,+_%3E+=+v.splice(1..,+new);%0A%7D&amp;edition=2021"></a></div>7 <span·class="kw">let·</span>iter:·std::vec::Splice&lt;<span·class="lifetime">'_</span>,·<span·class="kw">_</span>&gt;·=·v.splice(<span·class="number">1</span>..,·new);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++let+mut+v+=+vec!%5B0,+1,+2%5D;%0A++++let+new+=+%5B7,+8%5D;%0A++++let+iter:+std::vec::Splice%3C'_,+_%3E+=+v.splice(1..,+new);%0A%7D&amp;edition=2021"></a></div>
8 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-Splice%3C'a,+I,+A%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.21.0">1.21.0</span>···<a·class="src"·href="../../src/alloc/vec/splice.rs.html#19">Source</a></span><a·href="#impl-Debug-for-Splice%3C'a,+I,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·I:·<a·class="trait"·href="../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::Iterator">Iterator</a>·+·'a,·A:·<a·class="trait"·href="../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·+·<a·class="trait"·href="../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·+·'a&gt;·<a·class="trait"·href="../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.Splice.html"·title="struct·alloc::vec::Splice">Splice</a>&lt;'a,·I,·A&gt;<div·class="where">where8 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-Splice%3C'a,+I,+A%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.21.0">1.21.0</span>···<a·class="src"·href="../../src/alloc/vec/splice.rs.html#19">Source</a></span><a·href="#impl-Debug-for-Splice%3C'a,+I,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·I:·<a·class="trait"·href="../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·+·<a·class="trait"·href="../../core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::Iterator">Iterator</a>·+·'a,·A:·<a·class="trait"·href="../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·+·<a·class="trait"·href="../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·+·'a&gt;·<a·class="trait"·href="../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.Splice.html"·title="struct·alloc::vec::Splice">Splice</a>&lt;'a,·I,·A&gt;<div·class="where">where
9 ····I::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a[·...·truncated·by·diffoscope;·len:·6228,·SHA:·5c1dd22603289ba89a28d7c6db906aea19927b0fa698d0dace99270295054d2f·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold"·class="fn">try_rfold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where9 ····I::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,</div></h3></section></su[·...·truncated·by·diffoscope;·len:·5607,·SHA:·7b4657210f547d94827721ce0bcf2c049a88ddaeb3973f68ce8b4654d57a9241·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold"·class="fn">try_rfold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where
10 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,10 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
11 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,11 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
12 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>This·is·the·reverse·version·of·<a·href="https://doc.rust-lang.org/1.8[·...·truncated·by·diffoscope;·len:·3,·SHA:·fbd04e1aae9ce0b11a8946e2c9ac2619f7428a64d32d01eff61d809dcb70ee8e·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·title="method·core::iter::traits::iterator::Iterator::try_fold"><code>Iterator::try_fold()</code></a>:·it·takes12 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>This·is·the·reverse·version·of·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·title="method·core::iter::traits::iterator::Iterator::try_fold"><code>Iterator::try_fold()</code></a>:·it·takes
13 elements·starting·from·the·back·of·the·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfold"·class="method·trait-impl"><span·clas[·...·truncated·by·diffoscope;·len:·325,·SHA:·7ffdb06a8ab3810207a1c974783822231eaf1d82fd94bcf810dd7b3181149b7b·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold"·class="fn">rfold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where13 elements·starting·from·the·back·of·the·iterator.·<a·href="../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.try_rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfold"·class="method·trait-impl"><span·class="rightside"><span·class="[·...·truncated·by·diffoscope;·len:·244,·SHA:·6c4fe3f75fed1f00ec73ae6acd6efe929fb891f07f47293eec1013d32fc0fbe1·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold"·class="fn">rfold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where
14 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,14 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
15 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·reduces·the·iterator’s·elements·to·a·single,15 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·reduces·the·iterator’s·elements·to·a·single,
16 final·value,·starting·from·the·back.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfind"·class="method·trait-impl"><span·class="r[·...·truncated·by·diffoscope;·len:·665,·SHA:·fde89feb7c0e70eefa34d688476ca36a70115bec8150dbf9b1a3c359f72dd28d·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where16 final·value,·starting·from·the·back.·<a·href="../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.rfold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.rfind"·class="method·trait-impl"><span·class="rightside"><span·class="sinc[·...·truncated·by·diffoscope;·len:·530,·SHA:·75a595bf6f9813abee32ae86d68f5de961884ee60e7080e18fb9c73b8e22c5f0·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
17 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,17 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
18 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·9430,·SHA:·bfacec7b096ea7a8709e8ba9fe2c5b68cf723d7f27b0aba282bb7f10d0dd69d0·...·]/core/primitive.usize.html">usize</a>&gt;(18 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·8485,·SHA:·b999b9ad899b39d53dc372f0262f447f04854b2736ed151a069b0a6a8382ef35·...·]/core/primitive.usize.html">usize</a>&gt;(
19 ····&amp;mut·self,19 ····&amp;mut·self,
20 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·4f557a9b49151e0be8c52ffd68f1def4469c08164239dc8bef8df2040551c5ef·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where20 )·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">It[·...·truncated·by·diffoscope;·len:·246,·SHA:·baf6c8e6f3d5dbac69324111240b1587dbb858d42149cae1ee895a165289ff4f·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where
21 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·962,·SHA:·116e4ec2ae3d9655c3d115eaf50f435f5323b4e48b84de734c79d2a09b3c02f2·...·]/core/primitive.usize.html">usize</a><div·class="where">where21 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_next_ch[·...·truncated·by·diffoscope;·len:·827,·SHA:·2479cde9ab5aa3e18f76cf74cf7889a3de87c66e1745f27cf29bd34c4d30dbdf·...·]/core/primitive.usize.html">usize</a><div·class="where">where
22 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·counting·the·number·of·iterations·and·returning·it.·<a·href="https://doc.[·...·truncated·by·diffoscope;·len:·837,·SHA:·47e25b6f9687bcc1d1fcdf9842fb085e6aba767d70531028f948636b80563dfc·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where22 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·counting·the·number·of·iterations·and·returning·it.·<a·href="../../core/iter/traits/iterator/trait.I[·...·truncated·by·diffoscope;·len:·675,·SHA:·1ce62884794ba87e19a0c96720594ee19d36bf34d9a84160028eeff78b648fa9·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
23 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·returning·the·last·element.·<a·href="https://doc.rust-lang.org/1.84.0/cor[·...·truncated·by·diffoscope;·len:·3504,·SHA:·ec43d0f6d8d2a1e0fb7a684c382b9934abe1250844e53cce08bdfc6017ecb276·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where23 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·returning·the·last·element.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.last[·...·truncated·by·diffoscope;·len:·2964,·SHA:·db62f7c0fcc4ed24f8d8d5c90b4eb970e1ba2f576e1c200c74164f961b4de28e·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where
24 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by24 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by
25 the·given·amount·at·each·iteration.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><sp[·...·truncated·by·diffoscope;·len:·842,·SHA:·945c4509a8daf2f8fbccc5c6e5089e225955911e03a3e411f047f96d52d16862·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where25 the·given·amount·at·each·iteration.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Sta[·...·truncated·by·diffoscope;·len:·680,·SHA:·77241b5118fcbc984cb791fa9f75077307e18056b66492741335faf440cbdabc·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
26 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,26 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
27 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·3b5ce32f9d564c3aa7cf2adc7130e674758d0c0f4f1275b4c3b46a74aa802cb3·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where27 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·1113,·SHA:·ccf22d19f49a25daffdcc6d9226d5107457a8bfd16beccfeff5020d151bdb8bb·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
28 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,28 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
29 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·[·...·truncated·by·diffoscope;·len:·868,·SHA:·abdbf27ccc84063c7040d8fa3da9d0bda5ee310a470ef576e15554aee4bd5d21·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where29 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·of·pairs.·<a·href="../../co[·...·truncated·by·diffoscope;·len:·706,·SHA:·f32c568f049122021445a983654582d97ac74064a3e99c3361b348bd7708c1b2·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where
30 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,30 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
31 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent31 ····Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·a·copy·of·<code>separator</code>·between·adjacent
32 items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="sr[·...·truncated·by·diffoscope;·len:·427,·SHA:·6e82ad4aad49c2165d869fe30d20a968580a973cdb3a7f4c77f49e16dd59393e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where32 items·of·the·original·iterator.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse_with"·class="method·trait-impl"><a·class="src·rightside"·href="../../sr[·...·truncated·by·diffoscope;·len:·319,·SHA:·8babc469a22056fc5a02684b52f9f93ba9c27a3dd2e8443ddc060797054e211e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where
33 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,33 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
34 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>34 ····G:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>
35 between·adjacent·items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightsi[·...·truncated·by·diffoscope;·len:·471,·SHA:·ed10488b7b2ccc3e4cc84a9a57a9695a74c1c964962e8d753cbace12f3318a66·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where35 between·adjacent·items·of·the·original·iterator.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·tit[·...·truncated·by·diffoscope;·len:·363,·SHA:·09aee21fa4172b743a714e2cb5915129575ce0224df49c7343dec38f43b7ecfd·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where
36 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,36 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
37 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each37 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each
38 element.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><spa[·...·truncated·by·diffoscope;·len:·306,·SHA:·61c87c39b177830189b0e4c036d97c40d8b9649d76432c90afb88de59498e8b2·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where38 element.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stab[·...·truncated·by·diffoscope;·len:·225,·SHA:·a0f2490a1a5fd6b44e0ab01199cbbbd6e5463251405d11eaf6798c9b50bbd683·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where
39 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,39 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
40 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·a65da32c5f5ef8335cb607d3b4ab3f8a25877bc2c2e8b44ca9d575caecd5c8a5·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where40 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·754,·SHA:·421e55a5747cab3df1dad40b747b4633f241bdc13a1546bb19b1370788dea27d·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where
41 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,41 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
42 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·6d69c85c69fa789be551ea42d95c33c237d12a04ef157f9ddaaead1177f7771e·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element42 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·59,·SHA:·76969e34965f1923de668a65a9f5c33f73266468c9b96650bcc5fd498e606a6b·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element
43 should·be·yielded.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·489,·SHA:·9bdc636899f4e4e5a26a3a21c9603f72b3fb972865d2f459c38b7e2ac8fed7f1·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where43 should·be·yielded.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·cf812944678f6755720896cf32b330946303afe59f1b1c11adeb6a7f33454c8d·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where
44 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,44 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
45 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·46dbf841c7aecd3f06bd4c944af21650faeac98c46c515dcfe643302618b1ecd·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where45 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·863,·SHA:·c2bab87fa2a70713bd2d34b3dcae8f4ff2341917103b43a1dd505317f15d6cff·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where
46 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as46 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as
47 the·next·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside[·...·truncated·by·diffoscope;·len:·468,·SHA:·52f7ff7f264284c3acc4429ca34d057ded9afa2e3d9d6e07571e252db9a48977·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where47 the·next·value.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title[·...·truncated·by·diffoscope;·len:·360,·SHA:·688416dc1aaaa0be069177270ba9e74b3d1b92521285a109dc7ba86b58c1f22a·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where
48 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·c0180fefce4346b0b4089e5c642521d7716108241c0ce6ec3e910c7a2c7364b4·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods48 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="../../core/iter/adapters/peekable/struct.Peekable.html#method.peek"·title="m[·...·truncated·by·diffoscope;·len:·94,·SHA:·78aeab33f83c647dfe680c1050358c95977e3af17eabde4a04880721ea1a619d·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods
49 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See49 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See
50 their·documentation·for·more·information.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightsid[·...·truncated·by·diffoscope;·len:·498,·SHA:·e4a68861585faec6a5032b3b69d6dfb0f2799b5f387a527d9a1365571ed02069·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where50 their·documentation·for·more·information.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightside"><span·class="since"·titl[·...·truncated·by·diffoscope;·len:·390,·SHA:·5da622ae0e4d00b47239007520070e22568156d6c5b1662db8b80b465934b18c·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where
51 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,51 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
52 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·93281c1f6402743fd61110c11cf676f0f67eddceda801b4eb35e5fe9f85870fd·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where52 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·1018,·SHA:·732548acff5239e9a7b904f32790c90ab3b63522635334128f35e01d37ceaeb6·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where
53 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,53 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
54 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·f1cdbb1ec64f98fabbe1d89c88b03824310926cd7eaa160953ce2452fc3abb77·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where54 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·869,·SHA:·8ec7e525848424d5104dbdd10928d17cfee4e5aee63cdda7ecdbe323b30b59d3·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where
55 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,55 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
56 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·f94a0b2c1396b13b89aca7830197ebf19e2c0e5ba536a9cc25b325a481799510·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where56 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·947,·SHA:·fdd074315a0bfb226f815b1b6ea114c7367886338ffffff233d7f6fc3108769a·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where
57 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="https://doc.rust-lang[·...·truncated·by·diffoscope;·len:·783,·SHA:·c14217b89e3292a50a09192a8857485891fc769f861e1d1fc4322d04295c86ef·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where57 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="../../core/iter/traits/iterator/trait.Iterator.h[·...·truncated·by·diffoscope;·len:·621,·SHA:·484df7f946e7f2f69c3acad8964421c0db8ac5bb40032d11bbd862e20e67704c·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where
58 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer58 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer
59 if·the·underlying·iterator·ends·sooner.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·c[·...·truncated·by·diffoscope;·len:·488,·SHA:·76f753d5a273a09a73127631acaa0ee947326a929f33be291018188793e1af56·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where59 if·the·underlying·iterator·ends·sooner.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·[·...·truncated·by·diffoscope;·len:·380,·SHA:·fa258c7e0b5d583304a69e2d4e19f3d4cc9a9ed830bdf3796eaa0968bdf590b4·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where
60 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,60 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
61 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·07d303586c8ad4e0082d5b44bff8eeda03cdb8f4bdbe46489f9232bca5a43ec6·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but61 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterat[·...·truncated·by·diffoscope;·len:·314,·SHA:·299331ff47adaff3ebc292c53557ad34da957aef932f87ec0444c7f856820410·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but
62 unlike·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·2b20882d9583cee50e0c8b3cf362b27ce0d524db387d4aa4093d622b9370dada·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where62 unlike·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.scan">Read·more[·...·truncated·by·diffoscope;·len:·555,·SHA:·77279e392f259f6d4859f5a7747ee4b4d5315f3af0ac3baebf1d53be3461b312·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where
63 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,63 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
64 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,64 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
65 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·933,·SHA:·4af94b75ba5c1e03d2d70590d2fd0706f13b3080fbff0f5b98e7b109048c403d·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where65 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·771,·SHA:·a1a50c8ca4c13151c7b22ce05c74c449231e1ffe44225beee67ff212fc1d3859·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt;<div·class="where">where
66 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,66 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
67 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.I[·...·truncated·by·diffoscope;·len:·968,·SHA:·e5572ed2f3bdf5970d038da608f2f592d945541207c483c257fe5789efba168a·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where67 ····Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::col[·...·truncated·by·diffoscope;·len:·779,·SHA:·a4e524bd8aa8a1e0a66409d1b462b88093ab51a1f901ff1a788d7ee63d597f4c·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where
68 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,68 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
69 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·3013c0e49b0dade37f8ca096eccc5ceeb03fc79b9d320a4c92486d23b88d1009·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over69 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·54,·SHA:·6acee514e4d8df8979b4bba687b7e0d5dbb0ea4f98a7019e2fb03f3a8058df0f·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over
70 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,70 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="../../core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,
71 the·windows·during·mapping·overlap·as·well.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside">[·...·truncated·by·diffoscope;·len:·454,·SHA:·040991f3914479bcc92615de2b81df7363656323622e5aadc964e1a61917d23e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where71 the·windows·during·mapping·overlap·as·well.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="[·...·truncated·by·diffoscope;·len:·346,·SHA:·b1244a5f92e0573c29e04e883cf8212ba2586013b3687af07b63c29d2e611530·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where
72 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="https://doc.rust-lang.org/1.84.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·0e0294a45242d5ce9a3ab8f95d6d410756415291d92baa7d12283ef1b3ecc3a0·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where72 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="../../core/option/enum.Option.html#variant.None"·title="variant·cor[·...·truncated·by·diffoscope;·len:·679,·SHA:·ec753d6ecf7b9fe81cb270d78e45e053f2702fff74c7a63c2ab8da22b97fea86·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where
73 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,73 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
74 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·a8b562f71802a421f4745f7d1fadf4f70d98030c829e70f27b692e7915267027·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where74 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·635,·SHA:·ee3a5bcc3544c3f17985966634fef69b1708d641ddb7e62aaac76933935c5ef7·...·]/core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where
75 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="https://doc.rust-lang.org/1.84.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·b3db7d84f203bbc139b1c52912705d19c664dac762898205fce452c9dc3a5318·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where75 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.by_ref">[·...·truncated·by·diffoscope;·len:·415,·SHA:·7e0e075470d2db380bcf0838446659654c982aa2ca7831ed7d0317877855be2a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where
76 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,76 ····B:·<a·class="trait"·href="../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
77 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·431,·SHA:·a705a23f6d810357e7dcac670743884665ffcccfb9b780d0aa03720be8ca5625·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(77 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.collect">Read[·...·truncated·by·diffoscope;·len:·323,·SHA:·80e0dde3814a6e7cf4e30949627abc841ab4e98e2a920efb248777e22708682d·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_collect"·class="fn">try_collect</a>&lt;B&gt;(
78 ····&amp;mut·self,78 ····&amp;mut·self,
79 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.h[·...·truncated·by·diffoscope;·len:·479,·SHA:·fa749442d890055f86ceb34f411c84fd7ea08302b336d786d1ca36fe5868b020·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where79 )·-&gt;·&lt;&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&g[·...·truncated·by·diffoscope;·len:·344,·SHA:·c06c6401df0a7150633e94cc973521da42e09819b07be80ba18d6acb696860a9·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
80 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,80 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
81 ····Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>,81 ····Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>,
82 ····&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.h[·...·truncated·by·diffoscope;·len:·300,·SHA:·3bff089180bac38df7f42b87556fae7641185b89a949c284f53e3ac718a6decb·...·]/core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;B&gt;,82 ····&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&g[·...·truncated·by·diffoscope;·len:·192,·SHA:·039ceb6ce31fc6b1871e3e366efbd0f164f4a6cc1bc25554bba598b0ee820cca·...·]/core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;B&gt;,
83 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/itera[·...·truncated·by·diffoscope;·len:·323,·SHA:·b5c51f161dc9d77fd81d1fd23cc71fbf42ac00f3168cf9e41ebaaa2b6eb25363·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if83 ····B:·<a·class="trait"·href="../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="ty[·...·truncated·by·diffoscope;·len:·215,·SHA:·ddb8fbd12147eecef1697edd4c63187cc514ab4b851290335adfcccc3fa429ba·...·]/core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_collect</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94047">#94047</a>)</span></div></span><div·class='docblock'>Fallibly·transforms·an·iterator·into·a·collection,·short·circuiting·if
84 a·failure·is·encountered.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·ri[·...·truncated·by·diffoscope;·len:·521,·SHA:·6a54376815dab985ec8cc35604d035e98e3003b1563c9b41e70966084505542b·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where84 a·failure·is·encountered.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/co[·...·truncated·by·diffoscope;·len:·386,·SHA:·d46a776c329de4f757930edda252586c2cdd85c6956b7b2f68448da33ee0625e·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
85 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,85 ····E:·<a·class="trait"·href="../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
86 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·975,·SHA:·94f7f970236ba59ba5f1415764a0e3ab2f3093c6b79e76c25c797ac24a3c4d09·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where86 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_collect[·...·truncated·by·diffoscope;·len:·840,·SHA:·1ee6fbe4deb3d959e9ade58fb7ed3efa79d09721ed02fbb5f5f82aae6aa1425d·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
87 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,87 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
88 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·b480ec650ba000fe7cb67df58fc0351299638ee3e8f00db18f74ca24d69f9894·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,88 ····B:·<a·class="trait"·href="../../core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtyp[·...·truncated·by·diffoscope;·len:·14,·SHA:·4105980ca4887a52797067761af25a11e3de6069cd8d7c8ce82cd885bb798fe8·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
89 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·fdf5a1845f070855ba2cfd0c8c85460ea5cb646c4d3b42a8431bf21489c73701·...·]/core/primitive.usize.html">usize</a><div·class="where">where89 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·806,·SHA:·4d554b733db12e71a31ec2477a31408041941b0e2b0dc910904ecf2fced9f65b·...·]/core/primitive.usize.html">usize</a><div·class="where">where
90 ····T:·'a,90 ····T:·'a,
91 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·1fc250e258e9e42e4fa3e22f86ecd57057e9ff23e47af1aec778076a7a891134·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,91 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIter[·...·truncated·by·diffoscope;·len:·51,·SHA:·c9be73bbed9d11ecac2a179f480a640f51d6255f26712667ffdabc72c1fc7fb0·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,
92 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·5846407374f20f525a4a0663ad4488141eafe64513ef82581dc5df5c2d200745·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_partition_in_place</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62543">#62543</a>)</span></div></span><div·class='docblock'>Reorders·the·elements·of·this·iterator·<em>in-place</em>·according·to·the·given·predicate,92 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="../../core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_partition_in_place</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62543">#62543</a>)</span></div></span><div·class='docblock'>Reorders·the·elements·of·this·iterator·<em>in-place</em>·according·to·the·given·predicate,
93 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.93 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.
94 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.partition_in_place">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_partitioned"·class="method·trait-impl"><a·clas[·...·truncated·by·diffoscope;·len:·431,·SHA:·4aa7d028146c72d45794efc19a376d4bee3b75eda61ff46d969e440b3dbfa1b0·...·]/core/primitive.bool.html">bool</a><div·class="where">where94 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.partition_in_place">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_partitioned"·class="method·trait-impl"><a·class="src·rightside"·href="../[·...·truncated·by·diffoscope;·len:·323,·SHA:·bfc44418fa28079222aab80e2baccdaffb2d067bbe5d1b5162202d268ad628d7·...·]/core/primitive.bool.html">bool</a><div·class="where">where
95 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,95 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
96 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·fcd03e71f79faad6d9b9a12045d59f4dfabc78e5aefebcabc9c1a5be45e31125·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,96 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·54,·SHA:·d5ac304cc26edf57442227b641dd21c427d0f9cb322b79986f5b15fc49f867b0·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,
97 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><span·class="righ[·...·truncated·by·diffoscope;·len:·319,·SHA:·9b9df13f2f4e5b4dde3908515766e1a474fa30bcb7edc98c15665a016e677c2a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where97 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><span·class="rightside"><span·class="since"·[·...·truncated·by·diffoscope;·len:·238,·SHA:·af6ab768457e0afa1532b80c4296ae18061dac4c765922889b13eead3e5492db·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where
98 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,98 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
99 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,99 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
100 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns100 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns
101 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rights[·...·truncated·by·diffoscope;·len:·321,·SHA:·619fd774190944998148325de99aaa75de66ce4b7e26579fd342c564923a5652·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where101 successfully,·producing·a·single,·final·value.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"·ti[·...·truncated·by·diffoscope;·len:·240,·SHA:·125e84deea747ccbe139725d028362287beed6a89ab9da3a3aabd7df537abc59·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where
102 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,102 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
103 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,103 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
104 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the104 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="../../core/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the
105 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·307,·SHA:·5975144fd8566efa93ad1ccec09297e280924b7372e08681d2103702124e2c52·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where105 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title=[·...·truncated·by·diffoscope;·len:·226,·SHA:·a7510e9271e68887d9e2681c6bc28312cec9ac38883128845f52742935a160a9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where
106 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,106 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
107 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,107 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,
108 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span[·...·truncated·by·diffoscope;·len:·619,·SHA:·8813f54846438870310d5f5dfabd2335a9dbf51e9da2e4cd681bcb6077d39628·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where108 returning·the·final·result.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stabl[·...·truncated·by·diffoscope;·len:·484,·SHA:·5f42e8d5ff08f4c76870e6cb9165e054f9a0d99051d9886ccd43d5c8a91e1fbc·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
109 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,109 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
110 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·084691f7fc4e7f4da7db385127d0ce8d2d52f6740757129a65910c4db0dc180d·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing110 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·244,·SHA:·f09ac7e818239538c3f3208cb5c76076c24a0153797eb762821d5bf2a382d83b·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing
111 operation.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·217,·SHA:·447ae00256be3de069c602a6c04889808c883eae6fa349d023f53bdd5570ecae·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(111 operation.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/iter[·...·truncated·by·diffoscope;·len:·136,·SHA:·97e3ee132585582ec7077e3bbd86406d8a2dcfc97dce7fd52b49af3ec1b58622·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(
112 ····&amp;mut·self,112 ····&amp;mut·self,
113 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R, 
114 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.T[·...·truncated·by·diffoscope;·len:·950,·SHA:·817376e71f7a0d170bfbd4b7264c15d324f49c65106c49349d11a077842aa533·...·]113 ····f:·impl·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core:[·...·truncated·by·diffoscope;·len:·238,·SHA:·a52edc1a1ce1db5dd6e620dbfe5acb58fdc6d84f2320cef02845988aa54e5c55·...·]
 114 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;&gt;&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
115 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,115 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
116 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,116 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
117 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·764ea8f08626b05426a76738d54ebb2d640042494d76cba8c20d868bfdc07a73·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the117 ····&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>:·<a[·...·truncated·by·diffoscope;·len:·277,·SHA:·0dd064909226a9691486376740de1e17aa133a7ae2f635bee3feaa9b19d7b580·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the
118 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><span·class="rightside"><s[·...·truncated·by·diffoscope;·len:·476,·SHA:·aef721c14147dea2fbec70dcfa76916b3f1273bed8304f4c9db310ca23d1e4b1·...·]/core/primitive.bool.html">bool</a><div·class="where">where118 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="St[·...·truncated·by·diffoscope;·len:·368,·SHA:·6dbfbc90b7cfda9017074212ce0beeb560c8f9ba918ba7b00292e34daa531cc2·...·]/core/primitive.bool.html">bool</a><div·class="where">where
119 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,119 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
120 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·7c48e62c73a40a5cb5ebbf4a22cd789b342a88ad3d855022191f2bae33c736c6·...·]/core/primitive.bool.html">bool</a><div·class="where">where120 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·829,·SHA:·c413d95d1072acd820201f12ffb54d04a6c7f3b732f7de46115ba40b4eb1bd3f·...·]/core/primitive.bool.html">bool</a><div·class="where">where
121 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,121 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
122 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·673d69ce0c23e24b2546127c463e67cd2a4c0f7be792712e2b42e75427161b75·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where122 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·956,·SHA:·105c7ff05d33bc9219febe8c9633cf1c1a8d88c32e47e44793d403a428174c66·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
123 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,123 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
124 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·aa5078ff77f5638746395497f8ce92c1b684d342dea851990104d5e9981ab6b0·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where124 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·862,·SHA:·ab608da827ec12779180206da5bfe43676627c19288c1fe674060a00ba44a595·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where
125 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,125 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
126 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·1bd732dff19021a1586bb486282683f5c1bc65d5d514f9e13cc9232b4e94955b·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;,</div></h4></section></summary><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns126 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·49,·SHA:·819211b646a21318a22e9d295452cdf890d5288a631a50261ca1a5b2bac9f748·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;,</div></h4></section></summary><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns
Max diff block lines reached; 152521/345215 bytes (44.18%) of diff not shown.
1.07 MB
./usr/share/doc/rust-doc/html/alloc/vec/struct.Vec.html
Max HTML report size reached
35.9 KB
./usr/share/doc/rust-doc/html/proc_macro/enum.Delimiter.html
    
Offset 16, 21 lines modifiedOffset 16, 21 lines modified
16 <p>Note:·rustc·currently·can·ignore·the·grouping·of·tokens·delimited·by·<code>None</code>·in·the·output16 <p>Note:·rustc·currently·can·ignore·the·grouping·of·tokens·delimited·by·<code>None</code>·in·the·output
17 of·a·proc_macro.·Only·<code>None</code>-delimited·groups·created·by·a·macro_rules·macro·in·the·input17 of·a·proc_macro.·Only·<code>None</code>-delimited·groups·created·by·a·macro_rules·macro·in·the·input
18 of·a·proc_macro·macro·are·preserved,·and·only·in·very·specific·circumstances.18 of·a·proc_macro·macro·are·preserved,·and·only·in·very·specific·circumstances.
19 Any·<code>None</code>-delimited·groups·(re)created·by·a·proc_macro·will·therefore·not·preserve19 Any·<code>None</code>-delimited·groups·(re)created·by·a·proc_macro·will·therefore·not·preserve
20 operator·priorities·as·indicated·above.·The·other·<code>Delimiter</code>·variants·should·be·used20 operator·priorities·as·indicated·above.·The·other·<code>Delimiter</code>·variants·should·be·used
21 instead·in·this·context.·This·is·a·rustc·bug.·For·details,·see21 instead·in·this·context.·This·is·a·rustc·bug.·For·details,·see
22 <a·href="https://github.com/rust-lang/rust/issues/67062">rust-lang/rust#67062</a>.</p>22 <a·href="https://github.com/rust-lang/rust/issues/67062">rust-lang/rust#67062</a>.</p>
23 </div></div></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-Delimiter"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#807">Source</a></span><a·href="#impl-Clone-for-Delimiter"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="enum"·href="enum.Delimiter.html"·title="enum·proc_macro::Delimiter">Delimiter</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#807">Source</a><a·href="#method.clone"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/clone/trait.Clone.html#tymethod.clone"·class="fn">clone</a>(&amp;self)·-&gt;·<a·class="enum"·href="enum.Delimiter.html"·title="enum·proc_macro::Delimiter">Delimiter</a></h4></section></summary><div·class='docblock'>Returns·a·copy·of·the·value.·<a·href="../core/clone/trait.Clone.html#tymethod.clone">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_from"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../src/core/clone.rs.html#174">Source</a></span><a·href="#method.clone_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/clone/trait.Clone.html#method.clone_from"·class="fn">clone_from</a>(&amp;mut·self,·source:·&amp;Self)</h4></section></summary><div·class='docblock'>Performs·copy-assignment·from·<code>source</code>.·<a·href="../core/clone/trait.Clone.html#method.clone_from">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-Delimiter"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#807">Source</a></span><a·href="#impl-Debug-for-Delimiter"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/fmt/trait.Debug.html"·title="trait·core::fmt::Debug">Debug</a>·for·<a·class="enum"·href="enum.Delimiter.html"·title="enum·proc_macro::Delimiter">Delimiter</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#807">Source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="../core/fmt/struct.Formatter.html"·title="struct·core::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="type"·href="../core/fmt/type.Result.html"·title="type·core::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-PartialEq-for-Delimiter"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#807">Source</a></span><a·href="#impl-PartialEq-for-Delimiter"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/cmp/trait.PartialEq.html"·title="trait·core::cmp::PartialEq">PartialEq</a>·for·<a·class="enum"·href="enum.Delimiter.html"·title="enum·proc_macro::Delimiter">Delimiter</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.eq"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#807">Source</a><a·href="#method.eq"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/cmp/trait.PartialEq.html#tymethod.eq"·class="fn">eq</a>(&amp;self,·other:·&amp;<a·class="enum"·href="enum.Delimiter.html"·title="enum·proc_macro::Delimiter">Delimiter</a>)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>self</code>·and·<code>other</code>·values·to·be·equal,·and·is·used·by·<code>==</code>.</div></details><details·class="toggle·me[·...·truncated·by·diffoscope;·len:·569,·SHA:·46af6fc173633dd332a95fa12f6d5611eaae7b1cebfd0290c8ac91c63e1ef230·...·]/std/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>!=</code>.·The·default·implementation·is·almost·always·sufficient,23 </div></div></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-Delimiter"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#807">Source</a></span><a·href="#impl-Clone-for-Delimiter"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="enum"·href="enum.Delimiter.html"·title="enum·proc_macro::Delimiter">Delimiter</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#807">Source</a><a·href="#method.clone"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/clone/trait.Clone.html#tymethod.clone"·class="fn">clone</a>(&amp;self)·-&gt;·<a·class="enum"·href="enum.Delimiter.html"·title="enum·proc_macro::Delimiter">Delimiter</a></h4></section></summary><div·class='docblock'>Returns·a·copy·of·the·value.·<a·href="../core/clone/trait.Clone.html#tymethod.clone">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_from"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../src/core/clone.rs.html#174">Source</a></span><a·href="#method.clone_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/clone/trait.Clone.html#method.clone_from"·class="fn">clone_from</a>(&amp;mut·self,·source:·&amp;Self)</h4></section></summary><div·class='docblock'>Performs·copy-assignment·from·<code>source</code>.·<a·href="../core/clone/trait.Clone.html#method.clone_from">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-Delimiter"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#807">Source</a></span><a·href="#impl-Debug-for-Delimiter"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/fmt/trait.Debug.html"·title="trait·core::fmt::Debug">Debug</a>·for·<a·class="enum"·href="enum.Delimiter.html"·title="enum·proc_macro::Delimiter">Delimiter</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#807">Source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="../core/fmt/struct.Formatter.html"·title="struct·core::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="type"·href="../core/fmt/type.Result.html"·title="type·core::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-PartialEq-for-Delimiter"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#807">Source</a></span><a·href="#impl-PartialEq-for-Delimiter"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/cmp/trait.PartialEq.html"·title="trait·core::cmp::PartialEq">PartialEq</a>·for·<a·class="enum"·href="enum.Delimiter.html"·title="enum·proc_macro::Delimiter">Delimiter</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.eq"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#807">Source</a><a·href="#method.eq"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/cmp/trait.PartialEq.html#tymethod.eq"·class="fn">eq</a>(&amp;self,·other:·&amp;<a·class="enum"·href="enum.Delimiter.html"·title="enum·proc_macro::Delimiter">Delimiter</a>)·-&gt;·<a·class="primitive"·href="../std/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>self</code>·and·<code>other</code>·values·to·be·equal,·and·is·used·by·<code>==</code>.</div></details><details·class="toggle·method-toggle"·open><summary><se[·...·truncated·by·diffoscope;·len:·479,·SHA:·d4b4d4ccd2b893fe5d940d56f58f8a31544ac9db5f6dc1b365b30aa149717efb·...·]/std/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>!=</code>.·The·default·implementation·is·almost·always·sufficient,
24 and·should·not·be·overridden·without·very·good·reason.</div></details></div></details><section·id="impl-Copy-for-Delimiter"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#807">Source</a></span><a·href="#impl-Copy-for-Delimiter"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Copy.html"·title="trait·core::marker::Copy">Copy</a>·for·<a·class="enum"·href="enum.Delimiter.html"·title="enum·proc_macro::Delimiter">Delimiter</a></h3></section><section·id="impl-Eq-for-Delimiter"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#807">Source</a></span><a·href="#impl-Eq-for-Delimiter"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/cmp/trait.Eq.html"·title="trait·core::cmp::Eq">Eq</a>·for·<a·class="enum"·href="enum.Delimiter.html"·title="enum·proc_macro::Delimiter">Delimiter</a></h3></section><section·id="impl-StructuralPartialEq-for-Delimiter"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#807">Source</a></span><a·href="#impl-StructuralPartialEq-for-Delimiter"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.StructuralPartialEq.html"·title="trait·core::marker::StructuralPartialEq">StructuralPartialEq</a>·for·<a·class="enum"·href="enum.Delimiter.html"·title="enum·proc_macro::Delimiter">Delimiter</a></h3></section></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-Delimiter"·class="impl"><a·href="#impl-Freeze-for-Delimiter"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="enum"·href="enum.Delimiter.html"·title="enum·proc_macro::Delimiter">Delimiter</a></h3></section><section·id="impl-RefUnwindSafe-for-Delimiter"·class="impl"><a·href="#impl-RefUnwindSafe-for-Delimiter"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="enum"·href="enum.Delimiter.html"·title="enum·proc_macro::Delimiter">Delimiter</a></h3></section><section·id="impl-Send-for-Delimiter"·class="impl"><a·href="#impl-Send-for-Delimiter"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="enum"·href="enum.Delimiter.html"·title="enum·proc_macro::Delimiter">Delimiter</a></h3></section><section·id="impl-Sync-for-Delimiter"·class="impl"><a·href="#impl-Sync-for-Delimiter"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="enum"·href="enum.Delimiter.html"·title="enum·proc_macro::Delimiter">Delimiter</a></h3></section><section·id="impl-Unpin-for-Delimiter"·class="impl"><a·href="#impl-Unpin-for-Delimiter"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="enum"·href="enum.Delimiter.html"·title="enum·proc_macro::Delimiter">Delimiter</a></h3></section><section·id="impl-UnwindSafe-for-Delimiter"·class="impl"><a·href="#impl-UnwindSafe-for-Delimiter"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="enum"·href="enum.Delimiter.html"·title="enum·proc_macro::Delimiter">Delimiter</a></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementations<a·href="#blanket-implementations"·class="anchor">§</a></h2><div·id="blanket-implementations-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-Any-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/any.rs.html#138">Source</a><a·href="#impl-Any-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where24 and·should·not·be·overridden·without·very·good·reason.</div></details></div></details><section·id="impl-Copy-for-Delimiter"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#807">Source</a></span><a·href="#impl-Copy-for-Delimiter"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Copy.html"·title="trait·core::marker::Copy">Copy</a>·for·<a·class="enum"·href="enum.Delimiter.html"·title="enum·proc_macro::Delimiter">Delimiter</a></h3></section><section·id="impl-Eq-for-Delimiter"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#807">Source</a></span><a·href="#impl-Eq-for-Delimiter"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/cmp/trait.Eq.html"·title="trait·core::cmp::Eq">Eq</a>·for·<a·class="enum"·href="enum.Delimiter.html"·title="enum·proc_macro::Delimiter">Delimiter</a></h3></section><section·id="impl-StructuralPartialEq-for-Delimiter"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#807">Source</a></span><a·href="#impl-StructuralPartialEq-for-Delimiter"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.StructuralPartialEq.html"·title="trait·core::marker::StructuralPartialEq">StructuralPartialEq</a>·for·<a·class="enum"·href="enum.Delimiter.html"·title="enum·proc_macro::Delimiter">Delimiter</a></h3></section></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-Delimiter"·class="impl"><a·href="#impl-Freeze-for-Delimiter"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="enum"·href="enum.Delimiter.html"·title="enum·proc_macro::Delimiter">Delimiter</a></h3></section><section·id="impl-RefUnwindSafe-for-Delimiter"·class="impl"><a·href="#impl-RefUnwindSafe-for-Delimiter"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="enum"·href="enum.Delimiter.html"·title="enum·proc_macro::Delimiter">Delimiter</a></h3></section><section·id="impl-Send-for-Delimiter"·class="impl"><a·href="#impl-Send-for-Delimiter"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="enum"·href="enum.Delimiter.html"·title="enum·proc_macro::Delimiter">Delimiter</a></h3></section><section·id="impl-Sync-for-Delimiter"·class="impl"><a·href="#impl-Sync-for-Delimiter"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="enum"·href="enum.Delimiter.html"·title="enum·proc_macro::Delimiter">Delimiter</a></h3></section><section·id="impl-Unpin-for-Delimiter"·class="impl"><a·href="#impl-Unpin-for-Delimiter"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="enum"·href="enum.Delimiter.html"·title="enum·proc_macro::Delimiter">Delimiter</a></h3></section><section·id="impl-UnwindSafe-for-Delimiter"·class="impl"><a·href="#impl-UnwindSafe-for-Delimiter"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="enum"·href="enum.Delimiter.html"·title="enum·proc_macro::Delimiter">Delimiter</a></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementations<a·href="#blanket-implementations"·class="anchor">§</a></h2><div·id="blanket-implementations-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-Any-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/any.rs.html#138">Source</a><a·href="#impl-Any-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where
25 ····T:·'static·+·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/any.rs.html#139">Source</a><a·href="#method.type_id"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/any/trait.Any.html#tymethod.type_id"·class="fn">type_id</a>(&amp;self)·-&gt;·<a·class="struct"·href="../core/any/struct.TypeId.html"·title="struct·core::any::TypeId">TypeId</a></h4></section></summary><div·class='docblock'>Gets·the·<code>TypeId</code>·of·<code>self</code>.·<a·href="../core/any/trait.Any.html#tymethod.type_id">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Borrow%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/borrow/trait.Borrow.html"·title="trait·core::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where25 ····T:·'static·+·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/any.rs.html#139">Source</a><a·href="#method.type_id"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/any/trait.Any.html#tymethod.type_id"·class="fn">type_id</a>(&amp;self)·-&gt;·<a·class="struct"·href="../core/any/struct.TypeId.html"·title="struct·core::any::TypeId">TypeId</a></h4></section></summary><div·class='docblock'>Gets·the·<code>TypeId</code>·of·<code>self</code>.·<a·href="../core/any/trait.Any.html#tymethod.type_id">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Borrow%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/borrow/trait.Borrow.html"·title="trait·core::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where
26 ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#211">Source</a><a·href="#method.borrow"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow"·class="fn">borrow</a>(&amp;self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;T</a></h4></section></summary><div·class='docblock'>Immutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-BorrowMut%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/borrow/trait.BorrowMut.html"·title="trait·core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where26 ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#211">Source</a><a·href="#method.borrow"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow"·class="fn">borrow</a>(&amp;self)·-&gt;·<a·class="primitive"·href="../std/primitive.reference.html">&amp;T</a></h4></section></summary><div·class='docblock'>Immutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-BorrowMut%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/borrow/trait.BorrowMut.html"·title="trait·core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where
27 ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#218">Source</a><a·href="#method.borrow_mut"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"·class="fn">borrow_mut</a>(&amp;mut·self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;mut·T</a></h4></section></summary><div·class='docblock'>Mutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-CloneToUninit-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#273">Source</a><a·href="#impl-CloneToUninit-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where27 ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#218">Source</a><a·href="#method.borrow_mut"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"·class="fn">borrow_mut</a>(&amp;mut·self)·-&gt;·<a·class="primitive"·href="../std/primitive.reference.html">&amp;mut·T</a></h4></section></summary><div·class='docblock'>Mutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-CloneToUninit-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#273">Source</a><a·href="#impl-CloneToUninit-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where
28 ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#275">Source</a><a·href="#method.clone_to_uninit"·class="anchor">§</a><h4·class="code-header">unsafe·fn·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit"·class="fn">clone_to_uninit</a>(&amp;self,·dst:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.pointer.html">*mut·</a><a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.u8.html">u8</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>clone_to_uninit</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/126799">#126799</a>)</span></div></span><div·class='docblock'>Performs·copy-assignment·from·<code>self</code>·to·<code>dst</code>.·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-From%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#765">Source</a><a·href="#impl-From%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·T</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#768">Source</a><a·href="#method.from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>28 ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#275">Source</a><a·href="#method.clone_to_uninit"·class="anchor">§</a><h4·class="code-header">unsafe·fn·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit"·class="fn">clone_to_uninit</a>(&amp;self,·dst:·<a·class="primitive"·href="../std/primitive.pointer.html">*mut·</a><a·class="primitive"·href="../std/primitive.u8.html">u8</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>clone_to_uninit</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/126799">#126799</a>)</span></div></span><div·class='docblock'>Performs·copy-assignment·from·<code>self</code>·to·<code>dst</code>.·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-From%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#765">Source</a><a·href="#impl-From%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·T</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#768">Source</a><a·href="#method.from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>
29 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where29 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where
30 ····U:·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#758">Source</a><a·href="#method.into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>30 ····U:·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#758">Source</a><a·href="#method.into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>
31 <p>That·is,·this·conversion·is·whatever·the·implementation·of31 <p>That·is,·this·conversion·is·whatever·the·implementation·of
32 <code><a·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>32 <code><a·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>
33 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#82-84">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../alloc/borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where33 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#82-84">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../alloc/borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where
34 ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#86">Source</a><a·href="#associatedtype.Owned"·class="anchor">§</a><h4·class="code-header">type·<a·href="../alloc/borrow/trait.ToOwned.html#associatedtype.Owned"·class="associatedtype">Owned</a>·=·T</h4></section></summary><div·class='docblock'>The·resulting·type·after·obtaining·ownership.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.to_owned"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#87">Source</a><a·href="#method.to_owned"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned"·class="fn">to_owned</a>(&amp;self)·-&gt;·T</h4></section></summary><div·class='docblock'>Creates·owned·data·from·borrowed·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#91">Source</a><a·href="#method.clone_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into"·class="fn">clone_into</a>(&amp;self,·target:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#805-807">Source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where34 ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#86">Source</a><a·href="#associatedtype.Owned"·class="anchor">§</a><h4·class="code-header">type·<a·href="../alloc/borrow/trait.ToOwned.html#associatedtype.Owned"·class="associatedtype">Owned</a>·=·T</h4></section></summary><div·class='docblock'>The·resulting·type·after·obtaining·ownership.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.to_owned"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#87">Source</a><a·href="#method.to_owned"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned"·class="fn">to_owned</a>(&amp;self)·-&gt;·T</h4></section></summary><div·class='docblock'>Creates·owned·data·from·borrowed·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#91">Source</a><a·href="#method.clone_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into"·class="fn">clone_into</a>(&amp;self,·target:·<a·class="primitive"·href="../std/primitive.reference.html">&amp;mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#805-807">Source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where
35 ····U:·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#809">Source</a><a·href="#associatedtype.Error-1"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<a·class="enum"·href="../core/convert/enum.Infallible.html"·title="enum·core::convert::Infallible">Infallible</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#812">Source</a><a·href="#method.try_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryFrom.html#tymethod.try_from"·class="fn">try_from</a>(value:·U)·-&gt;·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;T,·&lt;T·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryInto%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#790-792">Source</a><a·href="#impl-TryInto%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where35 ····U:·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#809">Source</a><a·href="#associatedtype.Error-1"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<a·class="enum"·href="../core/convert/enum.Infallible.html"·title="enum·core::convert::Infallible">Infallible</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#812">Source</a><a·href="#method.try_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryFrom.html#tymethod.try_from"·class="fn">try_from</a>(value:·U)·-&gt;·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;T,·&lt;T·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryInto%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#790-792">Source</a><a·href="#impl-TryInto%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where
36 ····U:·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#794">Source</a><a·href="#associatedtype.Error"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryInto.html#associatedtype.Error"·class="associatedtype">Error</a>·=·&lt;U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#797">Source</a><a·href="#method.try_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryInto.html#tymethod.try_into"·class="fn">try_into</a>(self)·-&gt;·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;U,·&lt;U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>36 ····U:·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#794">Source</a><a·href="#associatedtype.Error"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryInto.html#associatedtype.Error"·class="associatedtype">Error</a>·=·&lt;U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#797">Source</a><a·href="#method.try_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryInto.html#tymethod.try_into"·class="fn">try_into</a>(self)·-&gt;·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;U,·&lt;U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>
29.0 KB
./usr/share/doc/rust-doc/html/proc_macro/enum.Level.html
    
Offset 6, 18 lines modifiedOffset 6, 18 lines modified
6 }</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_diagnostic</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/54140">#54140</a>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>An·enum·representing·a·diagnostic·level.</p>6 }</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_diagnostic</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/54140">#54140</a>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>An·enum·representing·a·diagnostic·level.</p>
7 </div></details><h2·id="variants"·class="variants·section-header">Variants·(Non-exhaustive)<a·href="#variants"·class="anchor">§</a></h2><details·class="toggle·non-exhaustive"><summary·class="hideme"><span>This·enum·is·marked·as·non-exhaustive</span></summary><div·class="docblock">Non-exhaustive·enums·could·have·additional·variants·added·in·future.·Therefore,·when·matching·against·variants·of·non-exhaustive·enums,·an·extra·wildcard·arm·must·be·added·to·account·for·any·future·variants.</div></details><div·class="variants"><section·id="variant.Error"·class="variant"><a·href="#variant.Error"·class="anchor">§</a><h3·class="code-header">Error</h3></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_diagnostic</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/54140">#54140</a>)</span></div></span><div·class="docblock"><p>An·error.</p>7 </div></details><h2·id="variants"·class="variants·section-header">Variants·(Non-exhaustive)<a·href="#variants"·class="anchor">§</a></h2><details·class="toggle·non-exhaustive"><summary·class="hideme"><span>This·enum·is·marked·as·non-exhaustive</span></summary><div·class="docblock">Non-exhaustive·enums·could·have·additional·variants·added·in·future.·Therefore,·when·matching·against·variants·of·non-exhaustive·enums,·an·extra·wildcard·arm·must·be·added·to·account·for·any·future·variants.</div></details><div·class="variants"><section·id="variant.Error"·class="variant"><a·href="#variant.Error"·class="anchor">§</a><h3·class="code-header">Error</h3></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_diagnostic</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/54140">#54140</a>)</span></div></span><div·class="docblock"><p>An·error.</p>
8 </div><section·id="variant.Warning"·class="variant"><a·href="#variant.Warning"·class="anchor">§</a><h3·class="code-header">Warning</h3></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_diagnostic</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/54140">#54140</a>)</span></div></span><div·class="docblock"><p>A·warning.</p>8 </div><section·id="variant.Warning"·class="variant"><a·href="#variant.Warning"·class="anchor">§</a><h3·class="code-header">Warning</h3></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_diagnostic</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/54140">#54140</a>)</span></div></span><div·class="docblock"><p>A·warning.</p>
9 </div><section·id="variant.Note"·class="variant"><a·href="#variant.Note"·class="anchor">§</a><h3·class="code-header">Note</h3></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_diagnostic</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/54140">#54140</a>)</span></div></span><div·class="docblock"><p>A·note.</p>9 </div><section·id="variant.Note"·class="variant"><a·href="#variant.Note"·class="anchor">§</a><h3·class="code-header">Note</h3></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_diagnostic</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/54140">#54140</a>)</span></div></span><div·class="docblock"><p>A·note.</p>
10 </div><section·id="variant.Help"·class="variant"><a·href="#variant.Help"·class="anchor">§</a><h3·class="code-header">Help</h3></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_diagnostic</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/54140">#54140</a>)</span></div></span><div·class="docblock"><p>A·help·message.</p>10 </div><section·id="variant.Help"·class="variant"><a·href="#variant.Help"·class="anchor">§</a><h3·class="code-header">Help</h3></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_diagnostic</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/54140">#54140</a>)</span></div></span><div·class="docblock"><p>A·help·message.</p>
11 </div></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-Level"·class="impl"><a·class="src·rightside"·href="../src/proc_macro/diagnostic.rs.html#5">Source</a><a·href="#impl-Clone-for-Level"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="enum"·href="enum.Level.html"·title="enum·proc_macro::Level">Level</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/diagnostic.rs.html#5">Source</a><a·href="#method.clone"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/clone/trait.Clone.html#tymethod.clone"·class="fn">clone</a>(&amp;self)·-&gt;·<a·class="enum"·href="enum.Level.html"·title="enum·proc_macro::Level">Level</a></h4></section></summary><div·class='docblock'>Returns·a·copy·of·the·value.·<a·href="../core/clone/trait.Clone.html#tymethod.clone">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_from"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../src/core/clone.rs.html#174">Source</a></span><a·href="#method.clone_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/clone/trait.Clone.html#method.clone_from"·class="fn">clone_from</a>(&amp;mut·self,·source:·&amp;Self)</h4></section></summary><div·class='docblock'>Performs·copy-assignment·from·<code>source</code>.·<a·href="../core/clone/trait.Clone.html#method.clone_from">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-Level"·class="impl"><a·class="src·rightside"·href="../src/proc_macro/diagnostic.rs.html#5">Source</a><a·href="#impl-Debug-for-Level"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/fmt/trait.Debug.html"·title="trait·core::fmt::Debug">Debug</a>·for·<a·class="enum"·href="enum.Level.html"·title="enum·proc_macro::Level">Level</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/diagnostic.rs.html#5">Source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="../core/fmt/struct.Formatter.html"·title="struct·core::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="type"·href="../core/fmt/type.Result.html"·title="type·core::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt">Read·more</a></div></details></div></details><section·id="impl-Copy-for-Level"·class="impl"><a·class="src·rightside"·href="../src/proc_macro/diagnostic.rs.html#5">Source</a><a·href="#impl-Copy-for-Level"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Copy.html"·title="trait·core::marker::Copy">Copy</a>·for·<a·class="enum"·href="enum.Level.html"·title="enum·proc_macro::Level">Level</a></h3></section></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-Level"·class="impl"><a·href="#impl-Freeze-for-Level"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="enum"·href="enum.Level.html"·title="enum·proc_macro::Level">Level</a></h3></section><section·id="impl-RefUnwindSafe-for-Level"·class="impl"><a·href="#impl-RefUnwindSafe-for-Level"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="enum"·href="enum.Level.html"·title="enum·proc_macro::Level">Level</a></h3></section><section·id="impl-Send-for-Level"·class="impl"><a·href="#impl-Send-for-Level"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="enum"·href="enum.Level.html"·title="enum·proc_macro::Level">Level</a></h3></section><section·id="impl-Sync-for-Level"·class="impl"><a·href="#impl-Sync-for-Level"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="enum"·href="enum.Level.html"·title="enum·proc_macro::Level">Level</a></h3></section><section·id="impl-Unpin-for-Level"·class="impl"><a·href="#impl-Unpin-for-Level"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="enum"·href="enum.Level.html"·title="enum·proc_macro::Level">Level</a></h3></section><section·id="impl-UnwindSafe-for-Level"·class="impl"><a·href="#impl-UnwindSafe-for-Level"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="enum"·href="enum.Level.html"·title="enum·proc_macro::Level">Level</a></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementations<a·href="#blanket-implementations"·class="anchor">§</a></h2><div·id="blanket-implementations-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-Any-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/any.rs.html#138">Source</a><a·href="#impl-Any-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where11 </div></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-Level"·class="impl"><a·class="src·rightside"·href="../src/proc_macro/diagnostic.rs.html#5">Source</a><a·href="#impl-Clone-for-Level"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="enum"·href="enum.Level.html"·title="enum·proc_macro::Level">Level</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/diagnostic.rs.html#5">Source</a><a·href="#method.clone"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/clone/trait.Clone.html#tymethod.clone"·class="fn">clone</a>(&amp;self)·-&gt;·<a·class="enum"·href="enum.Level.html"·title="enum·proc_macro::Level">Level</a></h4></section></summary><div·class='docblock'>Returns·a·copy·of·the·value.·<a·href="../core/clone/trait.Clone.html#tymethod.clone">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_from"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../src/core/clone.rs.html#174">Source</a></span><a·href="#method.clone_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/clone/trait.Clone.html#method.clone_from"·class="fn">clone_from</a>(&amp;mut·self,·source:·&amp;Self)</h4></section></summary><div·class='docblock'>Performs·copy-assignment·from·<code>source</code>.·<a·href="../core/clone/trait.Clone.html#method.clone_from">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-Level"·class="impl"><a·class="src·rightside"·href="../src/proc_macro/diagnostic.rs.html#5">Source</a><a·href="#impl-Debug-for-Level"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/fmt/trait.Debug.html"·title="trait·core::fmt::Debug">Debug</a>·for·<a·class="enum"·href="enum.Level.html"·title="enum·proc_macro::Level">Level</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/diagnostic.rs.html#5">Source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="../core/fmt/struct.Formatter.html"·title="struct·core::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="type"·href="../core/fmt/type.Result.html"·title="type·core::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt">Read·more</a></div></details></div></details><section·id="impl-Copy-for-Level"·class="impl"><a·class="src·rightside"·href="../src/proc_macro/diagnostic.rs.html#5">Source</a><a·href="#impl-Copy-for-Level"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Copy.html"·title="trait·core::marker::Copy">Copy</a>·for·<a·class="enum"·href="enum.Level.html"·title="enum·proc_macro::Level">Level</a></h3></section></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-Level"·class="impl"><a·href="#impl-Freeze-for-Level"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="enum"·href="enum.Level.html"·title="enum·proc_macro::Level">Level</a></h3></section><section·id="impl-RefUnwindSafe-for-Level"·class="impl"><a·href="#impl-RefUnwindSafe-for-Level"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="enum"·href="enum.Level.html"·title="enum·proc_macro::Level">Level</a></h3></section><section·id="impl-Send-for-Level"·class="impl"><a·href="#impl-Send-for-Level"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="enum"·href="enum.Level.html"·title="enum·proc_macro::Level">Level</a></h3></section><section·id="impl-Sync-for-Level"·class="impl"><a·href="#impl-Sync-for-Level"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="enum"·href="enum.Level.html"·title="enum·proc_macro::Level">Level</a></h3></section><section·id="impl-Unpin-for-Level"·class="impl"><a·href="#impl-Unpin-for-Level"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="enum"·href="enum.Level.html"·title="enum·proc_macro::Level">Level</a></h3></section><section·id="impl-UnwindSafe-for-Level"·class="impl"><a·href="#impl-UnwindSafe-for-Level"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="enum"·href="enum.Level.html"·title="enum·proc_macro::Level">Level</a></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementations<a·href="#blanket-implementations"·class="anchor">§</a></h2><div·id="blanket-implementations-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-Any-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/any.rs.html#138">Source</a><a·href="#impl-Any-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where
12 ····T:·'static·+·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/any.rs.html#139">Source</a><a·href="#method.type_id"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/any/trait.Any.html#tymethod.type_id"·class="fn">type_id</a>(&amp;self)·-&gt;·<a·class="struct"·href="../core/any/struct.TypeId.html"·title="struct·core::any::TypeId">TypeId</a></h4></section></summary><div·class='docblock'>Gets·the·<code>TypeId</code>·of·<code>self</code>.·<a·href="../core/any/trait.Any.html#tymethod.type_id">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Borrow%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/borrow/trait.Borrow.html"·title="trait·core::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where12 ····T:·'static·+·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/any.rs.html#139">Source</a><a·href="#method.type_id"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/any/trait.Any.html#tymethod.type_id"·class="fn">type_id</a>(&amp;self)·-&gt;·<a·class="struct"·href="../core/any/struct.TypeId.html"·title="struct·core::any::TypeId">TypeId</a></h4></section></summary><div·class='docblock'>Gets·the·<code>TypeId</code>·of·<code>self</code>.·<a·href="../core/any/trait.Any.html#tymethod.type_id">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Borrow%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/borrow/trait.Borrow.html"·title="trait·core::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where
13 ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#211">Source</a><a·href="#method.borrow"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow"·class="fn">borrow</a>(&amp;self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;T</a></h4></section></summary><div·class='docblock'>Immutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-BorrowMut%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/borrow/trait.BorrowMut.html"·title="trait·core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where13 ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#211">Source</a><a·href="#method.borrow"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow"·class="fn">borrow</a>(&amp;self)·-&gt;·<a·class="primitive"·href="../std/primitive.reference.html">&amp;T</a></h4></section></summary><div·class='docblock'>Immutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-BorrowMut%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/borrow/trait.BorrowMut.html"·title="trait·core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where
14 ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#218">Source</a><a·href="#method.borrow_mut"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"·class="fn">borrow_mut</a>(&amp;mut·self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;mut·T</a></h4></section></summary><div·class='docblock'>Mutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-CloneToUninit-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#273">Source</a><a·href="#impl-CloneToUninit-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where14 ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#218">Source</a><a·href="#method.borrow_mut"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"·class="fn">borrow_mut</a>(&amp;mut·self)·-&gt;·<a·class="primitive"·href="../std/primitive.reference.html">&amp;mut·T</a></h4></section></summary><div·class='docblock'>Mutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-CloneToUninit-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#273">Source</a><a·href="#impl-CloneToUninit-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where
15 ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#275">Source</a><a·href="#method.clone_to_uninit"·class="anchor">§</a><h4·class="code-header">unsafe·fn·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit"·class="fn">clone_to_uninit</a>(&amp;self,·dst:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.pointer.html">*mut·</a><a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.u8.html">u8</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>clone_to_uninit</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/126799">#126799</a>)</span></div></span><div·class='docblock'>Performs·copy-assignment·from·<code>self</code>·to·<code>dst</code>.·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-From%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#765">Source</a><a·href="#impl-From%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·T</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#768">Source</a><a·href="#method.from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>15 ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#275">Source</a><a·href="#method.clone_to_uninit"·class="anchor">§</a><h4·class="code-header">unsafe·fn·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit"·class="fn">clone_to_uninit</a>(&amp;self,·dst:·<a·class="primitive"·href="../std/primitive.pointer.html">*mut·</a><a·class="primitive"·href="../std/primitive.u8.html">u8</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>clone_to_uninit</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/126799">#126799</a>)</span></div></span><div·class='docblock'>Performs·copy-assignment·from·<code>self</code>·to·<code>dst</code>.·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-From%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#765">Source</a><a·href="#impl-From%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·T</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#768">Source</a><a·href="#method.from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>
16 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where16 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where
17 ····U:·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#758">Source</a><a·href="#method.into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>17 ····U:·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#758">Source</a><a·href="#method.into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>
18 <p>That·is,·this·conversion·is·whatever·the·implementation·of18 <p>That·is,·this·conversion·is·whatever·the·implementation·of
19 <code><a·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>19 <code><a·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>
20 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#82-84">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../alloc/borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where20 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#82-84">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../alloc/borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where
21 ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#86">Source</a><a·href="#associatedtype.Owned"·class="anchor">§</a><h4·class="code-header">type·<a·href="../alloc/borrow/trait.ToOwned.html#associatedtype.Owned"·class="associatedtype">Owned</a>·=·T</h4></section></summary><div·class='docblock'>The·resulting·type·after·obtaining·ownership.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.to_owned"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#87">Source</a><a·href="#method.to_owned"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned"·class="fn">to_owned</a>(&amp;self)·-&gt;·T</h4></section></summary><div·class='docblock'>Creates·owned·data·from·borrowed·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#91">Source</a><a·href="#method.clone_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into"·class="fn">clone_into</a>(&amp;self,·target:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#805-807">Source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where21 ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#86">Source</a><a·href="#associatedtype.Owned"·class="anchor">§</a><h4·class="code-header">type·<a·href="../alloc/borrow/trait.ToOwned.html#associatedtype.Owned"·class="associatedtype">Owned</a>·=·T</h4></section></summary><div·class='docblock'>The·resulting·type·after·obtaining·ownership.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.to_owned"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#87">Source</a><a·href="#method.to_owned"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned"·class="fn">to_owned</a>(&amp;self)·-&gt;·T</h4></section></summary><div·class='docblock'>Creates·owned·data·from·borrowed·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#91">Source</a><a·href="#method.clone_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into"·class="fn">clone_into</a>(&amp;self,·target:·<a·class="primitive"·href="../std/primitive.reference.html">&amp;mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#805-807">Source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where
22 ····U:·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#809">Source</a><a·href="#associatedtype.Error-1"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<a·class="enum"·href="../core/convert/enum.Infallible.html"·title="enum·core::convert::Infallible">Infallible</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#812">Source</a><a·href="#method.try_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryFrom.html#tymethod.try_from"·class="fn">try_from</a>(value:·U)·-&gt;·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;T,·&lt;T·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryInto%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#790-792">Source</a><a·href="#impl-TryInto%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where22 ····U:·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#809">Source</a><a·href="#associatedtype.Error-1"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<a·class="enum"·href="../core/convert/enum.Infallible.html"·title="enum·core::convert::Infallible">Infallible</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#812">Source</a><a·href="#method.try_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryFrom.html#tymethod.try_from"·class="fn">try_from</a>(value:·U)·-&gt;·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;T,·&lt;T·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryInto%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#790-792">Source</a><a·href="#impl-TryInto%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where
23 ····U:·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#794">Source</a><a·href="#associatedtype.Error"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryInto.html#associatedtype.Error"·class="associatedtype">Error</a>·=·&lt;U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#797">Source</a><a·href="#method.try_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryInto.html#tymethod.try_into"·class="fn">try_into</a>(self)·-&gt;·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;U,·&lt;U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>23 ····U:·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#794">Source</a><a·href="#associatedtype.Error"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryInto.html#associatedtype.Error"·class="associatedtype">Error</a>·=·&lt;U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#797">Source</a><a·href="#method.try_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryInto.html#tymethod.try_into"·class="fn">try_into</a>(self)·-&gt;·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;U,·&lt;U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>
36.0 KB
./usr/share/doc/rust-doc/html/proc_macro/enum.Spacing.html
    
Offset 15, 21 lines modifiedOffset 15, 21 lines modified
15 </ul>15 </ul>
16 <p>This·list·may·be·extended·in·the·future·to·enable·more·token·combinations.</p>16 <p>This·list·may·be·extended·in·the·future·to·enable·more·token·combinations.</p>
17 </div><section·id="variant.Alone"·class="variant"><a·href="#variant.Alone"·class="anchor">§</a><span·class="since·rightside"·title="Stable·since·Rust·version·1.29.0">1.29.0</span><h3·class="code-header">Alone</h3></section><div·class="docblock"><p>A·<code>Punct</code>·token·cannot·join·with·the·following·token·to·form·a·multi-character·operator.</p>17 </div><section·id="variant.Alone"·class="variant"><a·href="#variant.Alone"·class="anchor">§</a><span·class="since·rightside"·title="Stable·since·Rust·version·1.29.0">1.29.0</span><h3·class="code-header">Alone</h3></section><div·class="docblock"><p>A·<code>Punct</code>·token·cannot·join·with·the·following·token·to·form·a·multi-character·operator.</p>
18 <p><code>Alone</code>·punctuation·tokens·can·be·followed·by·any·other·tokens.·In·token·streams·parsed18 <p><code>Alone</code>·punctuation·tokens·can·be·followed·by·any·other·tokens.·In·token·streams·parsed
19 from·source·code,·the·compiler·will·set·spacing·to·<code>Alone</code>·in·all·cases·not·covered·by·the19 from·source·code,·the·compiler·will·set·spacing·to·<code>Alone</code>·in·all·cases·not·covered·by·the
20 conditions·for·<code>Joint</code>·above.·E.g.·<code>+</code>·is·<code>Alone</code>·in·<code>+·=</code>,·<code>+ident</code>·and·<code>+()</code>.·In20 conditions·for·<code>Joint</code>·above.·E.g.·<code>+</code>·is·<code>Alone</code>·in·<code>+·=</code>,·<code>+ident</code>·and·<code>+()</code>.·In
21 particular,·tokens·not·followed·by·anything·will·be·marked·as·<code>Alone</code>.</p>21 particular,·tokens·not·followed·by·anything·will·be·marked·as·<code>Alone</code>.</p>
22 </div></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-Spacing"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#963">Source</a></span><a·href="#impl-Clone-for-Spacing"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="enum"·href="enum.Spacing.html"·title="enum·proc_macro::Spacing">Spacing</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#963">Source</a><a·href="#method.clone"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/clone/trait.Clone.html#tymethod.clone"·class="fn">clone</a>(&amp;self)·-&gt;·<a·class="enum"·href="enum.Spacing.html"·title="enum·proc_macro::Spacing">Spacing</a></h4></section></summary><div·class='docblock'>Returns·a·copy·of·the·value.·<a·href="../core/clone/trait.Clone.html#tymethod.clone">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_from"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../src/core/clone.rs.html#174">Source</a></span><a·href="#method.clone_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/clone/trait.Clone.html#method.clone_from"·class="fn">clone_from</a>(&amp;mut·self,·source:·&amp;Self)</h4></section></summary><div·class='docblock'>Performs·copy-assignment·from·<code>source</code>.·<a·href="../core/clone/trait.Clone.html#method.clone_from">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-Spacing"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#963">Source</a></span><a·href="#impl-Debug-for-Spacing"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/fmt/trait.Debug.html"·title="trait·core::fmt::Debug">Debug</a>·for·<a·class="enum"·href="enum.Spacing.html"·title="enum·proc_macro::Spacing">Spacing</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#963">Source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="../core/fmt/struct.Formatter.html"·title="struct·core::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="type"·href="../core/fmt/type.Result.html"·title="type·core::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-PartialEq-for-Spacing"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#963">Source</a></span><a·href="#impl-PartialEq-for-Spacing"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/cmp/trait.PartialEq.html"·title="trait·core::cmp::PartialEq">PartialEq</a>·for·<a·class="enum"·href="enum.Spacing.html"·title="enum·proc_macro::Spacing">Spacing</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.eq"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#963">Source</a><a·href="#method.eq"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/cmp/trait.PartialEq.html#tymethod.eq"·class="fn">eq</a>(&amp;self,·other:·&amp;<a·class="enum"·href="enum.Spacing.html"·title="enum·proc_macro::Spacing">Spacing</a>)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>self</code>·and·<code>other</code>·values·to·be·equal,·and·is·used·by·<code>==</code>.</div></details><details·class="toggle·me[·...·truncated·by·diffoscope;·len:·569,·SHA:·46af6fc173633dd332a95fa12f6d5611eaae7b1cebfd0290c8ac91c63e1ef230·...·]/std/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>!=</code>.·The·default·implementation·is·almost·always·sufficient,22 </div></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-Spacing"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#963">Source</a></span><a·href="#impl-Clone-for-Spacing"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="enum"·href="enum.Spacing.html"·title="enum·proc_macro::Spacing">Spacing</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#963">Source</a><a·href="#method.clone"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/clone/trait.Clone.html#tymethod.clone"·class="fn">clone</a>(&amp;self)·-&gt;·<a·class="enum"·href="enum.Spacing.html"·title="enum·proc_macro::Spacing">Spacing</a></h4></section></summary><div·class='docblock'>Returns·a·copy·of·the·value.·<a·href="../core/clone/trait.Clone.html#tymethod.clone">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_from"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../src/core/clone.rs.html#174">Source</a></span><a·href="#method.clone_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/clone/trait.Clone.html#method.clone_from"·class="fn">clone_from</a>(&amp;mut·self,·source:·&amp;Self)</h4></section></summary><div·class='docblock'>Performs·copy-assignment·from·<code>source</code>.·<a·href="../core/clone/trait.Clone.html#method.clone_from">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-Spacing"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#963">Source</a></span><a·href="#impl-Debug-for-Spacing"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/fmt/trait.Debug.html"·title="trait·core::fmt::Debug">Debug</a>·for·<a·class="enum"·href="enum.Spacing.html"·title="enum·proc_macro::Spacing">Spacing</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#963">Source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="../core/fmt/struct.Formatter.html"·title="struct·core::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="type"·href="../core/fmt/type.Result.html"·title="type·core::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-PartialEq-for-Spacing"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#963">Source</a></span><a·href="#impl-PartialEq-for-Spacing"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/cmp/trait.PartialEq.html"·title="trait·core::cmp::PartialEq">PartialEq</a>·for·<a·class="enum"·href="enum.Spacing.html"·title="enum·proc_macro::Spacing">Spacing</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.eq"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#963">Source</a><a·href="#method.eq"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/cmp/trait.PartialEq.html#tymethod.eq"·class="fn">eq</a>(&amp;self,·other:·&amp;<a·class="enum"·href="enum.Spacing.html"·title="enum·proc_macro::Spacing">Spacing</a>)·-&gt;·<a·class="primitive"·href="../std/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>self</code>·and·<code>other</code>·values·to·be·equal,·and·is·used·by·<code>==</code>.</div></details><details·class="toggle·method-toggle"·open><summary><se[·...·truncated·by·diffoscope;·len:·479,·SHA:·d4b4d4ccd2b893fe5d940d56f58f8a31544ac9db5f6dc1b365b30aa149717efb·...·]/std/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>!=</code>.·The·default·implementation·is·almost·always·sufficient,
23 and·should·not·be·overridden·without·very·good·reason.</div></details></div></details><section·id="impl-Copy-for-Spacing"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#963">Source</a></span><a·href="#impl-Copy-for-Spacing"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Copy.html"·title="trait·core::marker::Copy">Copy</a>·for·<a·class="enum"·href="enum.Spacing.html"·title="enum·proc_macro::Spacing">Spacing</a></h3></section><section·id="impl-Eq-for-Spacing"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#963">Source</a></span><a·href="#impl-Eq-for-Spacing"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/cmp/trait.Eq.html"·title="trait·core::cmp::Eq">Eq</a>·for·<a·class="enum"·href="enum.Spacing.html"·title="enum·proc_macro::Spacing">Spacing</a></h3></section><section·id="impl-StructuralPartialEq-for-Spacing"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#963">Source</a></span><a·href="#impl-StructuralPartialEq-for-Spacing"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.StructuralPartialEq.html"·title="trait·core::marker::StructuralPartialEq">StructuralPartialEq</a>·for·<a·class="enum"·href="enum.Spacing.html"·title="enum·proc_macro::Spacing">Spacing</a></h3></section></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-Spacing"·class="impl"><a·href="#impl-Freeze-for-Spacing"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="enum"·href="enum.Spacing.html"·title="enum·proc_macro::Spacing">Spacing</a></h3></section><section·id="impl-RefUnwindSafe-for-Spacing"·class="impl"><a·href="#impl-RefUnwindSafe-for-Spacing"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="enum"·href="enum.Spacing.html"·title="enum·proc_macro::Spacing">Spacing</a></h3></section><section·id="impl-Send-for-Spacing"·class="impl"><a·href="#impl-Send-for-Spacing"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="enum"·href="enum.Spacing.html"·title="enum·proc_macro::Spacing">Spacing</a></h3></section><section·id="impl-Sync-for-Spacing"·class="impl"><a·href="#impl-Sync-for-Spacing"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="enum"·href="enum.Spacing.html"·title="enum·proc_macro::Spacing">Spacing</a></h3></section><section·id="impl-Unpin-for-Spacing"·class="impl"><a·href="#impl-Unpin-for-Spacing"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="enum"·href="enum.Spacing.html"·title="enum·proc_macro::Spacing">Spacing</a></h3></section><section·id="impl-UnwindSafe-for-Spacing"·class="impl"><a·href="#impl-UnwindSafe-for-Spacing"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="enum"·href="enum.Spacing.html"·title="enum·proc_macro::Spacing">Spacing</a></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementations<a·href="#blanket-implementations"·class="anchor">§</a></h2><div·id="blanket-implementations-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-Any-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/any.rs.html#138">Source</a><a·href="#impl-Any-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where23 and·should·not·be·overridden·without·very·good·reason.</div></details></div></details><section·id="impl-Copy-for-Spacing"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#963">Source</a></span><a·href="#impl-Copy-for-Spacing"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Copy.html"·title="trait·core::marker::Copy">Copy</a>·for·<a·class="enum"·href="enum.Spacing.html"·title="enum·proc_macro::Spacing">Spacing</a></h3></section><section·id="impl-Eq-for-Spacing"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#963">Source</a></span><a·href="#impl-Eq-for-Spacing"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/cmp/trait.Eq.html"·title="trait·core::cmp::Eq">Eq</a>·for·<a·class="enum"·href="enum.Spacing.html"·title="enum·proc_macro::Spacing">Spacing</a></h3></section><section·id="impl-StructuralPartialEq-for-Spacing"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#963">Source</a></span><a·href="#impl-StructuralPartialEq-for-Spacing"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.StructuralPartialEq.html"·title="trait·core::marker::StructuralPartialEq">StructuralPartialEq</a>·for·<a·class="enum"·href="enum.Spacing.html"·title="enum·proc_macro::Spacing">Spacing</a></h3></section></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-Spacing"·class="impl"><a·href="#impl-Freeze-for-Spacing"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="enum"·href="enum.Spacing.html"·title="enum·proc_macro::Spacing">Spacing</a></h3></section><section·id="impl-RefUnwindSafe-for-Spacing"·class="impl"><a·href="#impl-RefUnwindSafe-for-Spacing"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="enum"·href="enum.Spacing.html"·title="enum·proc_macro::Spacing">Spacing</a></h3></section><section·id="impl-Send-for-Spacing"·class="impl"><a·href="#impl-Send-for-Spacing"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="enum"·href="enum.Spacing.html"·title="enum·proc_macro::Spacing">Spacing</a></h3></section><section·id="impl-Sync-for-Spacing"·class="impl"><a·href="#impl-Sync-for-Spacing"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="enum"·href="enum.Spacing.html"·title="enum·proc_macro::Spacing">Spacing</a></h3></section><section·id="impl-Unpin-for-Spacing"·class="impl"><a·href="#impl-Unpin-for-Spacing"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="enum"·href="enum.Spacing.html"·title="enum·proc_macro::Spacing">Spacing</a></h3></section><section·id="impl-UnwindSafe-for-Spacing"·class="impl"><a·href="#impl-UnwindSafe-for-Spacing"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="enum"·href="enum.Spacing.html"·title="enum·proc_macro::Spacing">Spacing</a></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementations<a·href="#blanket-implementations"·class="anchor">§</a></h2><div·id="blanket-implementations-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-Any-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/any.rs.html#138">Source</a><a·href="#impl-Any-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where
24 ····T:·'static·+·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/any.rs.html#139">Source</a><a·href="#method.type_id"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/any/trait.Any.html#tymethod.type_id"·class="fn">type_id</a>(&amp;self)·-&gt;·<a·class="struct"·href="../core/any/struct.TypeId.html"·title="struct·core::any::TypeId">TypeId</a></h4></section></summary><div·class='docblock'>Gets·the·<code>TypeId</code>·of·<code>self</code>.·<a·href="../core/any/trait.Any.html#tymethod.type_id">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Borrow%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/borrow/trait.Borrow.html"·title="trait·core::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where24 ····T:·'static·+·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/any.rs.html#139">Source</a><a·href="#method.type_id"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/any/trait.Any.html#tymethod.type_id"·class="fn">type_id</a>(&amp;self)·-&gt;·<a·class="struct"·href="../core/any/struct.TypeId.html"·title="struct·core::any::TypeId">TypeId</a></h4></section></summary><div·class='docblock'>Gets·the·<code>TypeId</code>·of·<code>self</code>.·<a·href="../core/any/trait.Any.html#tymethod.type_id">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Borrow%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/borrow/trait.Borrow.html"·title="trait·core::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where
25 ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#211">Source</a><a·href="#method.borrow"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow"·class="fn">borrow</a>(&amp;self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;T</a></h4></section></summary><div·class='docblock'>Immutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-BorrowMut%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/borrow/trait.BorrowMut.html"·title="trait·core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where25 ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#211">Source</a><a·href="#method.borrow"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow"·class="fn">borrow</a>(&amp;self)·-&gt;·<a·class="primitive"·href="../std/primitive.reference.html">&amp;T</a></h4></section></summary><div·class='docblock'>Immutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-BorrowMut%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/borrow/trait.BorrowMut.html"·title="trait·core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where
26 ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#218">Source</a><a·href="#method.borrow_mut"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"·class="fn">borrow_mut</a>(&amp;mut·self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;mut·T</a></h4></section></summary><div·class='docblock'>Mutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-CloneToUninit-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#273">Source</a><a·href="#impl-CloneToUninit-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where26 ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#218">Source</a><a·href="#method.borrow_mut"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"·class="fn">borrow_mut</a>(&amp;mut·self)·-&gt;·<a·class="primitive"·href="../std/primitive.reference.html">&amp;mut·T</a></h4></section></summary><div·class='docblock'>Mutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-CloneToUninit-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#273">Source</a><a·href="#impl-CloneToUninit-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where
27 ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#275">Source</a><a·href="#method.clone_to_uninit"·class="anchor">§</a><h4·class="code-header">unsafe·fn·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit"·class="fn">clone_to_uninit</a>(&amp;self,·dst:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.pointer.html">*mut·</a><a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.u8.html">u8</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>clone_to_uninit</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/126799">#126799</a>)</span></div></span><div·class='docblock'>Performs·copy-assignment·from·<code>self</code>·to·<code>dst</code>.·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-From%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#765">Source</a><a·href="#impl-From%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·T</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#768">Source</a><a·href="#method.from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>27 ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#275">Source</a><a·href="#method.clone_to_uninit"·class="anchor">§</a><h4·class="code-header">unsafe·fn·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit"·class="fn">clone_to_uninit</a>(&amp;self,·dst:·<a·class="primitive"·href="../std/primitive.pointer.html">*mut·</a><a·class="primitive"·href="../std/primitive.u8.html">u8</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>clone_to_uninit</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/126799">#126799</a>)</span></div></span><div·class='docblock'>Performs·copy-assignment·from·<code>self</code>·to·<code>dst</code>.·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-From%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#765">Source</a><a·href="#impl-From%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·T</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#768">Source</a><a·href="#method.from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>
28 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where28 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where
29 ····U:·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#758">Source</a><a·href="#method.into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>29 ····U:·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#758">Source</a><a·href="#method.into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>
30 <p>That·is,·this·conversion·is·whatever·the·implementation·of30 <p>That·is,·this·conversion·is·whatever·the·implementation·of
31 <code><a·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>31 <code><a·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>
32 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#82-84">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../alloc/borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where32 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#82-84">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../alloc/borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where
33 ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#86">Source</a><a·href="#associatedtype.Owned"·class="anchor">§</a><h4·class="code-header">type·<a·href="../alloc/borrow/trait.ToOwned.html#associatedtype.Owned"·class="associatedtype">Owned</a>·=·T</h4></section></summary><div·class='docblock'>The·resulting·type·after·obtaining·ownership.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.to_owned"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#87">Source</a><a·href="#method.to_owned"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned"·class="fn">to_owned</a>(&amp;self)·-&gt;·T</h4></section></summary><div·class='docblock'>Creates·owned·data·from·borrowed·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#91">Source</a><a·href="#method.clone_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into"·class="fn">clone_into</a>(&amp;self,·target:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#805-807">Source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where33 ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#86">Source</a><a·href="#associatedtype.Owned"·class="anchor">§</a><h4·class="code-header">type·<a·href="../alloc/borrow/trait.ToOwned.html#associatedtype.Owned"·class="associatedtype">Owned</a>·=·T</h4></section></summary><div·class='docblock'>The·resulting·type·after·obtaining·ownership.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.to_owned"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#87">Source</a><a·href="#method.to_owned"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned"·class="fn">to_owned</a>(&amp;self)·-&gt;·T</h4></section></summary><div·class='docblock'>Creates·owned·data·from·borrowed·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#91">Source</a><a·href="#method.clone_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into"·class="fn">clone_into</a>(&amp;self,·target:·<a·class="primitive"·href="../std/primitive.reference.html">&amp;mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#805-807">Source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where
34 ····U:·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#809">Source</a><a·href="#associatedtype.Error-1"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<a·class="enum"·href="../core/convert/enum.Infallible.html"·title="enum·core::convert::Infallible">Infallible</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#812">Source</a><a·href="#method.try_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryFrom.html#tymethod.try_from"·class="fn">try_from</a>(value:·U)·-&gt;·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;T,·&lt;T·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryInto%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#790-792">Source</a><a·href="#impl-TryInto%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where34 ····U:·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#809">Source</a><a·href="#associatedtype.Error-1"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<a·class="enum"·href="../core/convert/enum.Infallible.html"·title="enum·core::convert::Infallible">Infallible</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#812">Source</a><a·href="#method.try_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryFrom.html#tymethod.try_from"·class="fn">try_from</a>(value:·U)·-&gt;·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;T,·&lt;T·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryInto%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#790-792">Source</a><a·href="#impl-TryInto%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where
35 ····U:·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#794">Source</a><a·href="#associatedtype.Error"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryInto.html#associatedtype.Error"·class="associatedtype">Error</a>·=·&lt;U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#797">Source</a><a·href="#method.try_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryInto.html#tymethod.try_into"·class="fn">try_into</a>(self)·-&gt;·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;U,·&lt;U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>35 ····U:·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#794">Source</a><a·href="#associatedtype.Error"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryInto.html#associatedtype.Error"·class="associatedtype">Error</a>·=·&lt;U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#797">Source</a><a·href="#method.try_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryInto.html#tymethod.try_into"·class="fn">try_into</a>(self)·-&gt;·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;U,·&lt;U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>
51.3 KB
./usr/share/doc/rust-doc/html/proc_macro/enum.TokenTree.html
    
Offset 21, 23 lines modifiedOffset 21, 23 lines modified
21 <p>Note:·the·exact·form·of·the·output·is·subject·to·change,·e.g.·there·might21 <p>Note:·the·exact·form·of·the·output·is·subject·to·change,·e.g.·there·might
22 be·changes·in·the·whitespace·used·between·tokens.·Therefore,·you·should22 be·changes·in·the·whitespace·used·between·tokens.·Therefore,·you·should
23 <em>not</em>·do·any·kind·of·simple·substring·matching·on·the·output·string·(as23 <em>not</em>·do·any·kind·of·simple·substring·matching·on·the·output·string·(as
24 produced·by·<code>to_string</code>)·to·implement·a·proc·macro,·because·that·matching24 produced·by·<code>to_string</code>)·to·implement·a·proc·macro,·because·that·matching
25 might·stop·working·if·such·changes·happen.·Instead,·you·should·work·at·the25 might·stop·working·if·such·changes·happen.·Instead,·you·should·work·at·the
26 <code>TokenTree</code>·level,·e.g.·matching·against·<code>TokenTree::Ident</code>,26 <code>TokenTree</code>·level,·e.g.·matching·against·<code>TokenTree::Ident</code>,
27 <code>TokenTree::Punct</code>,·or·<code>TokenTree::Literal</code>.</p>27 <code>TokenTree::Punct</code>,·or·<code>TokenTree::Literal</code>.</p>
28 </div><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt-1"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#789-791">Source</a><a·href="#method.fmt-1"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/fmt/trait.Display.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="../core/fmt/struct.Formatter.html"·title="struct·core::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="type"·href="../core/fmt/type.Result.html"·title="type·core::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../core/fmt/trait.Display.html#tymethod.fmt">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Extend%3CTokenTree%3E-for-TokenStream"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.30.0">1.30.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#355-362">Source</a></span><a·href="#impl-Extend%3CTokenTree%3E-for-TokenStream"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a>&gt;·for·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.extend"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#356-361">Source</a><a·href="#method.extend"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/iter/traits/collect/trait.Extend.html#tymethod.extend"·class="fn">extend</a>&lt;I:·<a·class="trait"·href="../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a>&gt;&gt;(&amp;mut·self,·trees:·I)</h4></section></summary><div·class='docblock'>Extends·a·collection·with·the·contents·of·an·iterator.·<a·href="../core/iter/traits/collect/trait.Extend.html#tymethod.extend">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.extend_one"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/iter/traits/collect.rs.html#453">Source</a><a·href="#method.extend_one"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/iter/traits/collect/trait.Extend.html#method.extend_one"·class="fn">extend_one</a>(&amp;mut·self,·item:·A)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>extend_one</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/72631">#72631</a>)</span></div></span><div·class='docblock'>Extends·a·collection·with·exactly·one·element.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.extend_reserve"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/iter/traits/collect.rs.html#461">Source</a><a·href="#method.extend_reserve"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/iter/traits/collect/trait.Extend.html#method.extend_reserve"·class="fn">extend_reserve</a>(&amp;mut·self,·additional:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.usize.html">usize</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>extend_one</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/72631">#72631</a>)</span></div></span><div·class='docblock'>Reserves·capacity·in·a·collection·for·the·given·number·of·additional·elements.·<a·href="../core/iter/traits/collect/trait.Extend.html#method.extend_reserve">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-From%3CGroup%3E-for-TokenTree"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#733-737">Source</a></span><a·href="#impl-From%3CGroup%3E-for-TokenTree"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;<a·class="struct"·href="struct.Group.html"·title="struct·proc_macro::Group">Group</a>&gt;·for·<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from-1"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#734-736">Source</a><a·href="#method.from-1"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(g:·<a·class="struct"·href="struct.Group.html"·title="struct·proc_macro::Group">Group</a>)·-&gt;·<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a></h4></section></summary><div·class='docblock'>Converts·to·this·type·from·the·input·type.</div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-From%3CIdent%3E-for-TokenTree"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#740-744">Source</a></span><a·href="#impl-From%3CIdent%3E-for-TokenTree"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;<a·class="struct"·href="struct.Ident.html"·title="struct·proc_macro::Ident">Ident</a>&gt;·for·<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from-2"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#741-743">Source</a><a·href="#method.from-2"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(g:·<a·class="struct"·href="struct.Ident.html"·title="struct·proc_macro::Ident">Ident</a>)·-&gt;·<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a></h4></section></summary><div·class='docblock'>Converts·to·this·type·from·the·input·type.</div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-From%3CLiteral%3E-for-TokenTree"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#754-758">Source</a></span><a·href="#impl-From%3CLiteral%3E-for-TokenTree"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;<a·class="struct"·href="struct.Literal.html"·title="struct·proc_macro::Literal">Literal</a>&gt;·for·<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from-4"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#755-757">Source</a><a·href="#method.from-4"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(g:·<a·class="struct"·href="struct.Literal.html"·title="struct·proc_macro::Literal">Literal</a>)·-&gt;·<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a></h4></section></summary><div·class='docblock'>Converts·to·this·type·from·the·input·type.</div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-From%3CPunct%3E-for-TokenTree"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#747-751">Source</a></span><a·href="#impl-From%3CPunct%3E-for-TokenTree"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;<a·class="struct"·href="struct.Punct.html"·title="struct·proc_macro::Punct">Punct</a>&gt;·for·<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from-3"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#748-750">Source</a><a·href="#method.from-3"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(g:·<a·class="struct"·href="struct.Punct.html"·title="struct·proc_macro::Punct">Punct</a>)·-&gt;·<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a></h4></section></summary><div·class='docblock'>Converts·to·this·type·from·the·input·type.</div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-From%3CTokenTree%3E-for-TokenStream"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#250-254">Source</a></span><a·href="#impl-From%3CTokenTree%3E-for-TokenStream"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a>&gt;·for·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a></h3></section></summary><div·class="docblock"><p>Creates·a·token·stream·containing·a·single·token·tree.</p>28 </div><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt-1"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#789-791">Source</a><a·href="#method.fmt-1"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/fmt/trait.Display.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="../core/fmt/struct.Formatter.html"·title="struct·core::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="type"·href="../core/fmt/type.Result.html"·title="type·core::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../core/fmt/trait.Display.html#tymethod.fmt">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Extend%3CTokenTree%3E-for-TokenStream"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.30.0">1.30.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#355-362">Source</a></span><a·href="#impl-Extend%3CTokenTree%3E-for-TokenStream"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a>&gt;·for·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.extend"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#356-361">Source</a><a·href="#method.extend"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/iter/traits/collect/trait.Extend.html#tymethod.extend"·class="fn">extend</a>&lt;I:·<a·class="trait"·href="../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a>&gt;&gt;(&amp;mut·self,·trees:·I)</h4></section></summary><div·class='docblock'>Extends·a·collection·with·the·contents·of·an·iterator.·<a·href="../core/iter/traits/collect/trait.Extend.html#tymethod.extend">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.extend_one"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/iter/traits/collect.rs.html#453">Source</a><a·href="#method.extend_one"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/iter/traits/collect/trait.Extend.html#method.extend_one"·class="fn">extend_one</a>(&amp;mut·self,·item:·A)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>extend_one</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/72631">#72631</a>)</span></div></span><div·class='docblock'>Extends·a·collection·with·exactly·one·element.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.extend_reserve"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/iter/traits/collect.rs.html#461">Source</a><a·href="#method.extend_reserve"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/iter/traits/collect/trait.Extend.html#method.extend_reserve"·class="fn">extend_reserve</a>(&amp;mut·self,·additional:·<a·class="primitive"·href="../std/primitive.usize.html">usize</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>extend_one</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/72631">#72631</a>)</span></div></span><div·class='docblock'>Reserves·capacity·in·a·collection·for·the·given·number·of·additional·elements.·<a·href="../core/iter/traits/collect/trait.Extend.html#method.extend_reserve">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-From%3CGroup%3E-for-TokenTree"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#733-737">Source</a></span><a·href="#impl-From%3CGroup%3E-for-TokenTree"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;<a·class="struct"·href="struct.Group.html"·title="struct·proc_macro::Group">Group</a>&gt;·for·<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from-1"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#734-736">Source</a><a·href="#method.from-1"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(g:·<a·class="struct"·href="struct.Group.html"·title="struct·proc_macro::Group">Group</a>)·-&gt;·<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a></h4></section></summary><div·class='docblock'>Converts·to·this·type·from·the·input·type.</div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-From%3CIdent%3E-for-TokenTree"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#740-744">Source</a></span><a·href="#impl-From%3CIdent%3E-for-TokenTree"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;<a·class="struct"·href="struct.Ident.html"·title="struct·proc_macro::Ident">Ident</a>&gt;·for·<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from-2"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#741-743">Source</a><a·href="#method.from-2"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(g:·<a·class="struct"·href="struct.Ident.html"·title="struct·proc_macro::Ident">Ident</a>)·-&gt;·<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a></h4></section></summary><div·class='docblock'>Converts·to·this·type·from·the·input·type.</div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-From%3CLiteral%3E-for-TokenTree"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#754-758">Source</a></span><a·href="#impl-From%3CLiteral%3E-for-TokenTree"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;<a·class="struct"·href="struct.Literal.html"·title="struct·proc_macro::Literal">Literal</a>&gt;·for·<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from-4"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#755-757">Source</a><a·href="#method.from-4"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(g:·<a·class="struct"·href="struct.Literal.html"·title="struct·proc_macro::Literal">Literal</a>)·-&gt;·<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a></h4></section></summary><div·class='docblock'>Converts·to·this·type·from·the·input·type.</div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-From%3CPunct%3E-for-TokenTree"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#747-751">Source</a></span><a·href="#impl-From%3CPunct%3E-for-TokenTree"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;<a·class="struct"·href="struct.Punct.html"·title="struct·proc_macro::Punct">Punct</a>&gt;·for·<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from-3"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#748-750">Source</a><a·href="#method.from-3"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(g:·<a·class="struct"·href="struct.Punct.html"·title="struct·proc_macro::Punct">Punct</a>)·-&gt;·<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a></h4></section></summary><div·class='docblock'>Converts·to·this·type·from·the·input·type.</div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-From%3CTokenTree%3E-for-TokenStream"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#250-254">Source</a></span><a·href="#impl-From%3CTokenTree%3E-for-TokenStream"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a>&gt;·for·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a></h3></section></summary><div·class="docblock"><p>Creates·a·token·stream·containing·a·single·token·tree.</p>
29 </div><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#251-253">Source</a><a·href="#method.from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(tree:·<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a>)·-&gt;·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a></h4></section></summary><div·class='docblock'>Converts·to·this·type·from·the·input·type.</div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-FromIterator%3CTokenTree%3E-for-TokenStream"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#333-340">Source</a></span><a·href="#impl-FromIterator%3CTokenTree%3E-for-TokenStream"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a>&gt;·for·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a></h3></section></summary><div·class="docblock"><p>Collects·a·number·of·token·trees·into·a·single·stream.</p>29 </div><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#251-253">Source</a><a·href="#method.from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(tree:·<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a>)·-&gt;·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a></h4></section></summary><div·class='docblock'>Converts·to·this·type·from·the·input·type.</div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-FromIterator%3CTokenTree%3E-for-TokenStream"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#333-340">Source</a></span><a·href="#impl-FromIterator%3CTokenTree%3E-for-TokenStream"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a>&gt;·for·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a></h3></section></summary><div·class="docblock"><p>Collects·a·number·of·token·trees·into·a·single·stream.</p>
30 </div><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from_iter"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#334-339">Source</a><a·href="#method.from_iter"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/iter/traits/collect/trait.FromIterator.html#tymethod.from_iter"·class="fn">from_iter</a>&lt;I:·<a·class="trait"·href="../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a>&gt;&gt;(trees:·I)·-&gt;·Self</h4></section></summary><div·class='docblock'>Creates·a·value·from·an·iterator.·<a·href="../core/iter/traits/collect/trait.FromIterator.html#tymethod.from_iter">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-ToTokens-for-TokenTree"·class="impl"><a·class="src·rightside"·href="../src/proc_macro/to_tokens.rs.html#76-86">Source</a><a·href="#impl-ToTokens-for-TokenTree"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="trait.ToTokens.html"·title="trait·proc_macro::ToTokens">ToTokens</a>·for·<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.to_tokens"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/to_tokens.rs.html#77-79">Source</a><a·href="#method.to_tokens"·class="anchor">§</a><h4·class="code-header">fn·<a·href="trait.ToTokens.html#tymethod.to_tokens"·class="fn">to_tokens</a>(&amp;self,·tokens:·&amp;mut·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_totokens</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/130977">#130977</a>)</span></div></span><div·class='docblock'>Write·<code>self</code>·to·the·given·<code>TokenStream</code>.·<a·href="trait.ToTokens.html#tymethod.to_tokens">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.into_token_stream"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/to_tokens.rs.html#81-85">Source</a><a·href="#method.into_token_stream"·class="anchor">§</a><h4·class="code-header">fn·<a·href="trait.ToTokens.html#method.into_token_stream"·class="fn">into_token_stream</a>(self)·-&gt;·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_totokens</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/130977">#130977</a>)</span></div></span><div·class='docblock'>Convert·<code>self</code>·directly·into·a·<code>TokenStream</code>·object.·<a·href="trait.ToTokens.html#method.into_token_stream">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.to_token_stream"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/to_tokens.rs.html#57-61">Source</a><a·href="#method.to_token_stream"·class="anchor">§</a><h4·class="code-header">fn·<a·href="trait.ToTokens.html#method.to_token_stream"·class="fn">to_token_stream</a>(&amp;self)·-&gt;·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_totokens</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/130977">#130977</a>)</span></div></span><div·class='docblock'>Convert·<code>self</code>·directly·into·a·<code>TokenStream</code>·object.·<a·href="trait.ToTokens.html#method.to_token_stream">Read·more</a></div></details></div></details><section·id="impl-Send-for-TokenTree"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#684">Source</a></span><a·href="#impl-Send-for-TokenTree"·class="anchor">§</a><h3·class="code-header">impl·!<a·class="trait"·href="../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a></h3></section><section·id="impl-Sync-for-TokenTree"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#686">Source</a></span><a·href="#impl-Sync-for-TokenTree"·class="anchor">§</a><h3·class="code-header">impl·!<a·class="trait"·href="../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a></h3></section></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-TokenTree"·class="impl"><a·href="#impl-Freeze-for-TokenTree"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a></h3></section><section·id="impl-RefUnwindSafe-for-TokenTree"·class="impl"><a·href="#impl-RefUnwindSafe-for-TokenTree"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a></h3></section><section·id="impl-Unpin-for-TokenTree"·class="impl"><a·href="#impl-Unpin-for-TokenTree"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a></h3></section><section·id="impl-UnwindSafe-for-TokenTree"·class="impl"><a·href="#impl-UnwindSafe-for-TokenTree"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementations<a·href="#blanket-implementations"·class="anchor">§</a></h2><div·id="blanket-implementations-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-Any-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/any.rs.html#138">Source</a><a·href="#impl-Any-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where30 </div><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from_iter"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#334-339">Source</a><a·href="#method.from_iter"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/iter/traits/collect/trait.FromIterator.html#tymethod.from_iter"·class="fn">from_iter</a>&lt;I:·<a·class="trait"·href="../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a>&gt;&gt;(trees:·I)·-&gt;·Self</h4></section></summary><div·class='docblock'>Creates·a·value·from·an·iterator.·<a·href="../core/iter/traits/collect/trait.FromIterator.html#tymethod.from_iter">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-ToTokens-for-TokenTree"·class="impl"><a·class="src·rightside"·href="../src/proc_macro/to_tokens.rs.html#76-86">Source</a><a·href="#impl-ToTokens-for-TokenTree"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="trait.ToTokens.html"·title="trait·proc_macro::ToTokens">ToTokens</a>·for·<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.to_tokens"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/to_tokens.rs.html#77-79">Source</a><a·href="#method.to_tokens"·class="anchor">§</a><h4·class="code-header">fn·<a·href="trait.ToTokens.html#tymethod.to_tokens"·class="fn">to_tokens</a>(&amp;self,·tokens:·&amp;mut·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_totokens</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/130977">#130977</a>)</span></div></span><div·class='docblock'>Write·<code>self</code>·to·the·given·<code>TokenStream</code>.·<a·href="trait.ToTokens.html#tymethod.to_tokens">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.into_token_stream"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/to_tokens.rs.html#81-85">Source</a><a·href="#method.into_token_stream"·class="anchor">§</a><h4·class="code-header">fn·<a·href="trait.ToTokens.html#method.into_token_stream"·class="fn">into_token_stream</a>(self)·-&gt;·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_totokens</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/130977">#130977</a>)</span></div></span><div·class='docblock'>Convert·<code>self</code>·directly·into·a·<code>TokenStream</code>·object.·<a·href="trait.ToTokens.html#method.into_token_stream">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.to_token_stream"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/to_tokens.rs.html#57-61">Source</a><a·href="#method.to_token_stream"·class="anchor">§</a><h4·class="code-header">fn·<a·href="trait.ToTokens.html#method.to_token_stream"·class="fn">to_token_stream</a>(&amp;self)·-&gt;·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_totokens</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/130977">#130977</a>)</span></div></span><div·class='docblock'>Convert·<code>self</code>·directly·into·a·<code>TokenStream</code>·object.·<a·href="trait.ToTokens.html#method.to_token_stream">Read·more</a></div></details></div></details><section·id="impl-Send-for-TokenTree"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#684">Source</a></span><a·href="#impl-Send-for-TokenTree"·class="anchor">§</a><h3·class="code-header">impl·!<a·class="trait"·href="../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a></h3></section><section·id="impl-Sync-for-TokenTree"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#686">Source</a></span><a·href="#impl-Sync-for-TokenTree"·class="anchor">§</a><h3·class="code-header">impl·!<a·class="trait"·href="../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a></h3></section></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-TokenTree"·class="impl"><a·href="#impl-Freeze-for-TokenTree"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a></h3></section><section·id="impl-RefUnwindSafe-for-TokenTree"·class="impl"><a·href="#impl-RefUnwindSafe-for-TokenTree"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a></h3></section><section·id="impl-Unpin-for-TokenTree"·class="impl"><a·href="#impl-Unpin-for-TokenTree"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a></h3></section><section·id="impl-UnwindSafe-for-TokenTree"·class="impl"><a·href="#impl-UnwindSafe-for-TokenTree"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementations<a·href="#blanket-implementations"·class="anchor">§</a></h2><div·id="blanket-implementations-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-Any-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/any.rs.html#138">Source</a><a·href="#impl-Any-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where
31 ····T:·'static·+·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/any.rs.html#139">Source</a><a·href="#method.type_id"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/any/trait.Any.html#tymethod.type_id"·class="fn">type_id</a>(&amp;self)·-&gt;·<a·class="struct"·href="../core/any/struct.TypeId.html"·title="struct·core::any::TypeId">TypeId</a></h4></section></summary><div·class='docblock'>Gets·the·<code>TypeId</code>·of·<code>self</code>.·<a·href="../core/any/trait.Any.html#tymethod.type_id">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Borrow%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/borrow/trait.Borrow.html"·title="trait·core::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where31 ····T:·'static·+·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/any.rs.html#139">Source</a><a·href="#method.type_id"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/any/trait.Any.html#tymethod.type_id"·class="fn">type_id</a>(&amp;self)·-&gt;·<a·class="struct"·href="../core/any/struct.TypeId.html"·title="struct·core::any::TypeId">TypeId</a></h4></section></summary><div·class='docblock'>Gets·the·<code>TypeId</code>·of·<code>self</code>.·<a·href="../core/any/trait.Any.html#tymethod.type_id">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Borrow%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/borrow/trait.Borrow.html"·title="trait·core::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where
32 ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#211">Source</a><a·href="#method.borrow"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow"·class="fn">borrow</a>(&amp;self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;T</a></h4></section></summary><div·class='docblock'>Immutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-BorrowMut%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/borrow/trait.BorrowMut.html"·title="trait·core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where32 ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#211">Source</a><a·href="#method.borrow"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow"·class="fn">borrow</a>(&amp;self)·-&gt;·<a·class="primitive"·href="../std/primitive.reference.html">&amp;T</a></h4></section></summary><div·class='docblock'>Immutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-BorrowMut%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/borrow/trait.BorrowMut.html"·title="trait·core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where
33 ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#218">Source</a><a·href="#method.borrow_mut"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"·class="fn">borrow_mut</a>(&amp;mut·self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;mut·T</a></h4></section></summary><div·class='docblock'>Mutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-CloneToUninit-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#273">Source</a><a·href="#impl-CloneToUninit-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where33 ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#218">Source</a><a·href="#method.borrow_mut"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"·class="fn">borrow_mut</a>(&amp;mut·self)·-&gt;·<a·class="primitive"·href="../std/primitive.reference.html">&amp;mut·T</a></h4></section></summary><div·class='docblock'>Mutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-CloneToUninit-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#273">Source</a><a·href="#impl-CloneToUninit-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where
34 ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#275">Source</a><a·href="#method.clone_to_uninit"·class="anchor">§</a><h4·class="code-header">unsafe·fn·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit"·class="fn">clone_to_uninit</a>(&amp;self,·dst:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.pointer.html">*mut·</a><a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.u8.html">u8</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>clone_to_uninit</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/126799">#126799</a>)</span></div></span><div·class='docblock'>Performs·copy-assignment·from·<code>self</code>·to·<code>dst</code>.·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-From%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#765">Source</a><a·href="#impl-From%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·T</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from-5"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#768">Source</a><a·href="#method.from-5"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>34 ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#275">Source</a><a·href="#method.clone_to_uninit"·class="anchor">§</a><h4·class="code-header">unsafe·fn·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit"·class="fn">clone_to_uninit</a>(&amp;self,·dst:·<a·class="primitive"·href="../std/primitive.pointer.html">*mut·</a><a·class="primitive"·href="../std/primitive.u8.html">u8</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>clone_to_uninit</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/126799">#126799</a>)</span></div></span><div·class='docblock'>Performs·copy-assignment·from·<code>self</code>·to·<code>dst</code>.·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-From%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#765">Source</a><a·href="#impl-From%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·T</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from-5"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#768">Source</a><a·href="#method.from-5"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>
35 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where35 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where
36 ····U:·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#758">Source</a><a·href="#method.into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>36 ····U:·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#758">Source</a><a·href="#method.into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>
37 <p>That·is,·this·conversion·is·whatever·the·implementation·of37 <p>That·is,·this·conversion·is·whatever·the·implementation·of
38 <code><a·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>38 <code><a·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>
39 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#82-84">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../alloc/borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where39 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#82-84">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../alloc/borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where
40 ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#86">Source</a><a·href="#associatedtype.Owned"·class="anchor">§</a><h4·class="code-header">type·<a·href="../alloc/borrow/trait.ToOwned.html#associatedtype.Owned"·class="associatedtype">Owned</a>·=·T</h4></section></summary><div·class='docblock'>The·resulting·type·after·obtaining·ownership.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.to_owned"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#87">Source</a><a·href="#method.to_owned"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned"·class="fn">to_owned</a>(&amp;self)·-&gt;·T</h4></section></summary><div·class='docblock'>Creates·owned·data·from·borrowed·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#91">Source</a><a·href="#method.clone_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into"·class="fn">clone_into</a>(&amp;self,·target:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToString-for-T"·class="impl"><a·class="src·rightside"·href="../src/alloc/string.rs.html#2677">Source</a><a·href="#impl-ToString-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../alloc/string/trait.ToString.html"·title="trait·alloc::string::ToString">ToString</a>·for·T<div·class="where">where40 ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#86">Source</a><a·href="#associatedtype.Owned"·class="anchor">§</a><h4·class="code-header">type·<a·href="../alloc/borrow/trait.ToOwned.html#associatedtype.Owned"·class="associatedtype">Owned</a>·=·T</h4></section></summary><div·class='docblock'>The·resulting·type·after·obtaining·ownership.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.to_owned"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#87">Source</a><a·href="#method.to_owned"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned"·class="fn">to_owned</a>(&amp;self)·-&gt;·T</h4></section></summary><div·class='docblock'>Creates·owned·data·from·borrowed·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#91">Source</a><a·href="#method.clone_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into"·class="fn">clone_into</a>(&amp;self,·target:·<a·class="primitive"·href="../std/primitive.reference.html">&amp;mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToString-for-T"·class="impl"><a·class="src·rightside"·href="../src/alloc/string.rs.html#2677">Source</a><a·href="#impl-ToString-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../alloc/string/trait.ToString.html"·title="trait·alloc::string::ToString">ToString</a>·for·T<div·class="where">where
41 ····T:·<a·class="trait"·href="../core/fmt/trait.Display.html"·title="trait·core::fmt::Display">Display</a>·+·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.to_string"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/string.rs.html#2683">Source</a><a·href="#method.to_string"·class="anchor">§</a><h4·class="code-header">default·fn·<a·href="../alloc/string/trait.ToString.html#tymethod.to_string"·class="fn">to_string</a>(&amp;self)·-&gt;·<a·class="struct"·href="../alloc/string/struct.String.html"·title="struct·alloc::string::String">String</a></h4></section></summary><div·class='docblock'>Converts·the·given·value·to·a·<code>String</code>.·<a·href="../alloc/string/trait.ToString.html#tymethod.to_string">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#805-807">Source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where41 ····T:·<a·class="trait"·href="../core/fmt/trait.Display.html"·title="trait·core::fmt::Display">Display</a>·+·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.to_string"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/string.rs.html#2683">Source</a><a·href="#method.to_string"·class="anchor">§</a><h4·class="code-header">default·fn·<a·href="../alloc/string/trait.ToString.html#tymethod.to_string"·class="fn">to_string</a>(&amp;self)·-&gt;·<a·class="struct"·href="../alloc/string/struct.String.html"·title="struct·alloc::string::String">String</a></h4></section></summary><div·class='docblock'>Converts·the·given·value·to·a·<code>String</code>.·<a·href="../alloc/string/trait.ToString.html#tymethod.to_string">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#805-807">Source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where
42 ····U:·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#809">Source</a><a·href="#associatedtype.Error-1"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<a·class="enum"·href="../core/convert/enum.Infallible.html"·title="enum·core::convert::Infallible">Infallible</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#812">Source</a><a·href="#method.try_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryFrom.html#tymethod.try_from"·class="fn">try_from</a>(value:·U)·-&gt;·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;T,·&lt;T·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryInto%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#790-792">Source</a><a·href="#impl-TryInto%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where42 ····U:·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#809">Source</a><a·href="#associatedtype.Error-1"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<a·class="enum"·href="../core/convert/enum.Infallible.html"·title="enum·core::convert::Infallible">Infallible</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#812">Source</a><a·href="#method.try_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryFrom.html#tymethod.try_from"·class="fn">try_from</a>(value:·U)·-&gt;·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;T,·&lt;T·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryInto%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#790-792">Source</a><a·href="#impl-TryInto%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where
43 ····U:·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#794">Source</a><a·href="#associatedtype.Error"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryInto.html#associatedtype.Error"·class="associatedtype">Error</a>·=·&lt;U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#797">Source</a><a·href="#method.try_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryInto.html#tymethod.try_into"·class="fn">try_into</a>(self)·-&gt;·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;U,·&lt;U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>43 ····U:·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#794">Source</a><a·href="#associatedtype.Error"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryInto.html#associatedtype.Error"·class="associatedtype">Error</a>·=·&lt;U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#797">Source</a><a·href="#method.try_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryInto.html#tymethod.try_into"·class="fn">try_into</a>(self)·-&gt;·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;U,·&lt;U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>
7.33 KB
./usr/share/doc/rust-doc/html/proc_macro/fn.is_available.html
    
Offset 1, 8 lines modifiedOffset 1, 8 lines modified
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="Determines·whether·proc_macro·has·been·made·accessible·to·the·currently·running·program."><title>is_available·in·proc_macro·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../"·data-static-root-path="../static.files/"·data-current-crate="proc_macro"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·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"·title="show·sidebar"></button><a·class="logo-container"·href="../proc_macro/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../proc_macro/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../proc_macro/index.html">proc_<wbr>macro</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»   2025-01-07)»(built»  from»      a»     source»       tarball)</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">proc_macro</a></span><h1>Function·<span·class="fn">is_available</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.57.0">1.57.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#76-78">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·fn·is_available()·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a></code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Determines·whether·proc_macro·has·been·made·accessible·to·the·currently1 <!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="Determines·whether·proc_macro·has·been·made·accessible·to·the·currently·running·program."><title>is_available·in·proc_macro·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../"·data-static-root-path="../static.files/"·data-current-crate="proc_macro"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·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"·title="show·sidebar"></button><a·class="logo-container"·href="../proc_macro/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../proc_macro/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../proc_macro/index.html">proc_<wbr>macro</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»   2025-01-07)»(built»  from»      a»     source»       tarball)</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">proc_macro</a></span><h1>Function·<span·class="fn">is_available</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.57.0">1.57.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#76-78">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·fn·is_available()·-&gt;·<a·class="primitive"·href="../std/primitive.bool.html">bool</a></code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Determines·whether·proc_macro·has·been·made·accessible·to·the·currently
2 running·program.</p>2 running·program.</p>
3 <p>The·proc_macro·crate·is·only·intended·for·use·inside·the·implementation·of3 <p>The·proc_macro·crate·is·only·intended·for·use·inside·the·implementation·of
4 procedural·macros.·All·the·functions·in·this·crate·panic·if·invoked·from4 procedural·macros.·All·the·functions·in·this·crate·panic·if·invoked·from
5 outside·of·a·procedural·macro,·such·as·from·a·build·script·or·unit·test·or5 outside·of·a·procedural·macro,·such·as·from·a·build·script·or·unit·test·or
6 ordinary·Rust·binary.</p>6 ordinary·Rust·binary.</p>
7 <p>With·consideration·for·Rust·libraries·that·are·designed·to·support·both7 <p>With·consideration·for·Rust·libraries·that·are·designed·to·support·both
8 macro·and·non-macro·use·cases,·<code>proc_macro::is_available()</code>·provides·a8 macro·and·non-macro·use·cases,·<code>proc_macro::is_available()</code>·provides·a
36.3 KB
./usr/share/doc/rust-doc/html/proc_macro/struct.Diagnostic.html
    
Offset 19, 26 lines modifiedOffset 19, 26 lines modified
19 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.note"·class="method"><a·class="src·rightside"·href="../src/proc_macro/diagnostic.rs.html#116">Source</a><h4·class="code-header">pub·fn·<a·href="#method.note"·class="fn">note</a>&lt;T:·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;<a·class="struct"·href="../alloc/string/struct.String.html"·title="struct·alloc::string::String">String</a>&gt;&gt;(self,·message:·T)·-&gt;·<a·class="struct"·href="struct.Diagnostic.html"·title="struct·proc_macro::Diagnostic">Diagnostic</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_diagnostic</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/54140">#54140</a>)</span></div></span></summary><div·class="docblock"><p>Adds·a·new·child·diagnostic·message·to·<code>self</code>·with·the·<a·href="enum.Level.html#variant.Note"·title="variant·proc_macro::Level::Note"><code>Level::Note</code></a>·level,·and·the·given·<code>message</code>.</p>19 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.note"·class="method"><a·class="src·rightside"·href="../src/proc_macro/diagnostic.rs.html#116">Source</a><h4·class="code-header">pub·fn·<a·href="#method.note"·class="fn">note</a>&lt;T:·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;<a·class="struct"·href="../alloc/string/struct.String.html"·title="struct·alloc::string::String">String</a>&gt;&gt;(self,·message:·T)·-&gt;·<a·class="struct"·href="struct.Diagnostic.html"·title="struct·proc_macro::Diagnostic">Diagnostic</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_diagnostic</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/54140">#54140</a>)</span></div></span></summary><div·class="docblock"><p>Adds·a·new·child·diagnostic·message·to·<code>self</code>·with·the·<a·href="enum.Level.html#variant.Note"·title="variant·proc_macro::Level::Note"><code>Level::Note</code></a>·level,·and·the·given·<code>message</code>.</p>
20 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.span_help"·class="method"><a·class="src·rightside"·href="../src/proc_macro/diagnostic.rs.html#117">Source</a><h4·class="code-header">pub·fn·<a·href="#method.span_help"·class="fn">span_help</a>&lt;S,·T&gt;(self,·spans:·S,·message:·T)·-&gt;·<a·class="struct"·href="struct.Diagnostic.html"·title="struct·proc_macro::Diagnostic">Diagnostic</a><div·class="where">where20 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.span_help"·class="method"><a·class="src·rightside"·href="../src/proc_macro/diagnostic.rs.html#117">Source</a><h4·class="code-header">pub·fn·<a·href="#method.span_help"·class="fn">span_help</a>&lt;S,·T&gt;(self,·spans:·S,·message:·T)·-&gt;·<a·class="struct"·href="struct.Diagnostic.html"·title="struct·proc_macro::Diagnostic">Diagnostic</a><div·class="where">where
21 ····S:·<a·class="trait"·href="trait.MultiSpan.html"·title="trait·proc_macro::MultiSpan">MultiSpan</a>,21 ····S:·<a·class="trait"·href="trait.MultiSpan.html"·title="trait·proc_macro::MultiSpan">MultiSpan</a>,
22 ····T:·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;<a·class="struct"·href="../alloc/string/struct.String.html"·title="struct·alloc::string::String">String</a>&gt;,</div></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_diagnostic</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/54140">#54140</a>)</span></div></span></summary><div·class="docblock"><p>Adds·a·new·child·diagnostics·message·to·<code>self</code>·with·the·<a·href="enum.Level.html#variant.Help"·title="variant·proc_macro::Level::Help"><code>Level::Help</code></a>·level,·and·the·given·<code>spans</code>·and·<code>message</code>.</p>22 ····T:·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;<a·class="struct"·href="../alloc/string/struct.String.html"·title="struct·alloc::string::String">String</a>&gt;,</div></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_diagnostic</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/54140">#54140</a>)</span></div></span></summary><div·class="docblock"><p>Adds·a·new·child·diagnostics·message·to·<code>self</code>·with·the·<a·href="enum.Level.html#variant.Help"·title="variant·proc_macro::Level::Help"><code>Level::Help</code></a>·level,·and·the·given·<code>spans</code>·and·<code>message</code>.</p>
23 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.help"·class="method"><a·class="src·rightside"·href="../src/proc_macro/diagnostic.rs.html#117">Source</a><h4·class="code-header">pub·fn·<a·href="#method.help"·class="fn">help</a>&lt;T:·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;<a·class="struct"·href="../alloc/string/struct.String.html"·title="struct·alloc::string::String">String</a>&gt;&gt;(self,·message:·T)·-&gt;·<a·class="struct"·href="struct.Diagnostic.html"·title="struct·proc_macro::Diagnostic">Diagnostic</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_diagnostic</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/54140">#54140</a>)</span></div></span></summary><div·class="docblock"><p>Adds·a·new·child·diagnostic·message·to·<code>self</code>·with·the·<a·href="enum.Level.html#variant.Help"·title="variant·proc_macro::Level::Help"><code>Level::Help</code></a>·level,·and·the·given·<code>message</code>.</p>23 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.help"·class="method"><a·class="src·rightside"·href="../src/proc_macro/diagnostic.rs.html#117">Source</a><h4·class="code-header">pub·fn·<a·href="#method.help"·class="fn">help</a>&lt;T:·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;<a·class="struct"·href="../alloc/string/struct.String.html"·title="struct·alloc::string::String">String</a>&gt;&gt;(self,·message:·T)·-&gt;·<a·class="struct"·href="struct.Diagnostic.html"·title="struct·proc_macro::Diagnostic">Diagnostic</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_diagnostic</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/54140">#54140</a>)</span></div></span></summary><div·class="docblock"><p>Adds·a·new·child·diagnostic·message·to·<code>self</code>·with·the·<a·href="enum.Level.html#variant.Help"·title="variant·proc_macro::Level::Help"><code>Level::Help</code></a>·level,·and·the·given·<code>message</code>.</p>
24 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.level"·class="method"><a·class="src·rightside"·href="../src/proc_macro/diagnostic.rs.html#121-123">Source</a><h4·class="code-header">pub·fn·<a·href="#method.level"·class="fn">level</a>(&amp;self)·-&gt;·<a·class="enum"·href="enum.Level.html"·title="enum·proc_macro::Level">Level</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_diagnostic</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/54140">#54140</a>)</span></div></span></summary><div·class="docblock"><p>Returns·the·diagnostic·<code>level</code>·for·<code>self</code>.</p>24 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.level"·class="method"><a·class="src·rightside"·href="../src/proc_macro/diagnostic.rs.html#121-123">Source</a><h4·class="code-header">pub·fn·<a·href="#method.level"·class="fn">level</a>(&amp;self)·-&gt;·<a·class="enum"·href="enum.Level.html"·title="enum·proc_macro::Level">Level</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_diagnostic</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/54140">#54140</a>)</span></div></span></summary><div·class="docblock"><p>Returns·the·diagnostic·<code>level</code>·for·<code>self</code>.</p>
25 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.set_level"·class="method"><a·class="src·rightside"·href="../src/proc_macro/diagnostic.rs.html#127-129">Source</a><h4·class="code-header">pub·fn·<a·href="#method.set_level"·class="fn">set_level</a>(&amp;mut·self,·level:·<a·class="enum"·href="enum.Level.html"·title="enum·proc_macro::Level">Level</a>)</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_diagnostic</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/54140">#54140</a>)</span></div></span></summary><div·class="docblock"><p>Sets·the·level·in·<code>self</code>·to·<code>level</code>.</p>25 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.set_level"·class="method"><a·class="src·rightside"·href="../src/proc_macro/diagnostic.rs.html#127-129">Source</a><h4·class="code-header">pub·fn·<a·href="#method.set_level"·class="fn">set_level</a>(&amp;mut·self,·level:·<a·class="enum"·href="enum.Level.html"·title="enum·proc_macro::Level">Level</a>)</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_diagnostic</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/54140">#54140</a>)</span></div></span></summary><div·class="docblock"><p>Sets·the·level·in·<code>self</code>·to·<code>level</code>.</p>
26 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.message"·class="method"><a·class="src·rightside"·href="../src/proc_macro/diagnostic.rs.html#133-135">Source</a><h4·class="code-header">pub·fn·<a·href="#method.message"·class="fn">message</a>(&amp;self)·-&gt;·&amp;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.str.html">str</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_diagnostic</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/54140">#54140</a>)</span></div></span></summary><div·class="docblock"><p>Returns·the·message·in·<code>self</code>.</p>26 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.message"·class="method"><a·class="src·rightside"·href="../src/proc_macro/diagnostic.rs.html#133-135">Source</a><h4·class="code-header">pub·fn·<a·href="#method.message"·class="fn">message</a>(&amp;self)·-&gt;·&amp;<a·class="primitive"·href="../std/primitive.str.html">str</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_diagnostic</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/54140">#54140</a>)</span></div></span></summary><div·class="docblock"><p>Returns·the·message·in·<code>self</code>.</p>
27 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.set_message"·class="method"><a·class="src·rightside"·href="../src/proc_macro/diagnostic.rs.html#139-141">Source</a><h4·class="code-header">pub·fn·<a·href="#method.set_message"·class="fn">set_message</a>&lt;T:·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;<a·class="struct"·href="../alloc/string/struct.String.html"·title="struct·alloc::string::String">String</a>&gt;&gt;(&amp;mut·self,·message:·T)</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_diagnostic</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/54140">#54140</a>)</span></div></span></summary><div·class="docblock"><p>Sets·the·message·in·<code>self</code>·to·<code>message</code>.</p>27 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.set_message"·class="method"><a·class="src·rightside"·href="../src/proc_macro/diagnostic.rs.html#139-141">Source</a><h4·class="code-header">pub·fn·<a·href="#method.set_message"·class="fn">set_message</a>&lt;T:·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;<a·class="struct"·href="../alloc/string/struct.String.html"·title="struct·alloc::string::String">String</a>&gt;&gt;(&amp;mut·self,·message:·T)</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_diagnostic</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/54140">#54140</a>)</span></div></span></summary><div·class="docblock"><p>Sets·the·message·in·<code>self</code>·to·<code>message</code>.</p>
28 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.spans"·class="method"><a·class="src·rightside"·href="../src/proc_macro/diagnostic.rs.html#145-147">Source</a><h4·class="code-header">pub·fn·<a·href="#method.spans"·class="fn">spans</a>(&amp;self)·-&gt;·&amp;[<a·class="struct"·href="struct.Span.html"·title="struct·proc_macro::Span">Span</a>]</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_diagnostic</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/54140">#54140</a>)</span></div></span></summary><div·class="docblock"><p>Returns·the·<code>Span</code>s·in·<code>self</code>.</p>28 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.spans"·class="method"><a·class="src·rightside"·href="../src/proc_macro/diagnostic.rs.html#145-147">Source</a><h4·class="code-header">pub·fn·<a·href="#method.spans"·class="fn">spans</a>(&amp;self)·-&gt;·&amp;[<a·class="struct"·href="struct.Span.html"·title="struct·proc_macro::Span">Span</a>]</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_diagnostic</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/54140">#54140</a>)</span></div></span></summary><div·class="docblock"><p>Returns·the·<code>Span</code>s·in·<code>self</code>.</p>
29 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.set_spans"·class="method"><a·class="src·rightside"·href="../src/proc_macro/diagnostic.rs.html#151-153">Source</a><h4·class="code-header">pub·fn·<a·href="#method.set_spans"·class="fn">set_spans</a>&lt;S:·<a·class="trait"·href="trait.MultiSpan.html"·title="trait·proc_macro::MultiSpan">MultiSpan</a>&gt;(&amp;mut·self,·spans:·S)</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_diagnostic</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/54140">#54140</a>)</span></div></span></summary><div·class="docblock"><p>Sets·the·<code>Span</code>s·in·<code>self</code>·to·<code>spans</code>.</p>29 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.set_spans"·class="method"><a·class="src·rightside"·href="../src/proc_macro/diagnostic.rs.html#151-153">Source</a><h4·class="code-header">pub·fn·<a·href="#method.set_spans"·class="fn">set_spans</a>&lt;S:·<a·class="trait"·href="trait.MultiSpan.html"·title="trait·proc_macro::MultiSpan">MultiSpan</a>&gt;(&amp;mut·self,·spans:·S)</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_diagnostic</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/54140">#54140</a>)</span></div></span></summary><div·class="docblock"><p>Sets·the·<code>Span</code>s·in·<code>self</code>·to·<code>spans</code>.</p>
30 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.children"·class="method"><a·class="src·rightside"·href="../src/proc_macro/diagnostic.rs.html#157-159">Source</a><h4·class="code-header">pub·fn·<a·href="#method.children"·class="fn">children</a>(&amp;self)·-&gt;·Children&lt;'_&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_diagnostic</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/54140">#54140</a>)</span></div></span></summary><div·class="docblock"><p>Returns·an·iterator·over·the·children·diagnostics·of·<code>self</code>.</p>30 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.children"·class="method"><a·class="src·rightside"·href="../src/proc_macro/diagnostic.rs.html#157-159">Source</a><h4·class="code-header">pub·fn·<a·href="#method.children"·class="fn">children</a>(&amp;self)·-&gt;·Children&lt;'_&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_diagnostic</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/54140">#54140</a>)</span></div></span></summary><div·class="docblock"><p>Returns·an·iterator·over·the·children·diagnostics·of·<code>self</code>.</p>
31 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.emit"·class="method"><a·class="src·rightside"·href="../src/proc_macro/diagnostic.rs.html#163-174">Source</a><h4·class="code-header">pub·fn·<a·href="#method.emit"·class="fn">emit</a>(self)</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_diagnostic</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/54140">#54140</a>)</span></div></span></summary><div·class="docblock"><p>Emit·the·diagnostic.</p>31 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.emit"·class="method"><a·class="src·rightside"·href="../src/proc_macro/diagnostic.rs.html#163-174">Source</a><h4·class="code-header">pub·fn·<a·href="#method.emit"·class="fn">emit</a>(self)</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_diagnostic</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/54140">#54140</a>)</span></div></span></summary><div·class="docblock"><p>Emit·the·diagnostic.</p>
32 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-Diagnostic"·class="impl"><a·class="src·rightside"·href="../src/proc_macro/diagnostic.rs.html#49">Source</a><a·href="#impl-Clone-for-Diagnostic"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struct"·href="struct.Diagnostic.html"·title="struct·proc_macro::Diagnostic">Diagnostic</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/diagnostic.rs.html#49">Source</a><a·href="#method.clone"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/clone/trait.Clone.html#tymethod.clone"·class="fn">clone</a>(&amp;self)·-&gt;·<a·class="struct"·href="struct.Diagnostic.html"·title="struct·proc_macro::Diagnostic">Diagnostic</a></h4></section></summary><div·class='docblock'>Returns·a·copy·of·the·value.·<a·href="../core/clone/trait.Clone.html#tymethod.clone">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_from"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../src/core/clone.rs.html#174">Source</a></span><a·href="#method.clone_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/clone/trait.Clone.html#method.clone_from"·class="fn">clone_from</a>(&amp;mut·self,·source:·&amp;Self)</h4></section></summary><div·class='docblock'>Performs·copy-assignment·from·<code>source</code>.·<a·href="../core/clone/trait.Clone.html#method.clone_from">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-Diagnostic"·class="impl"><a·class="src·rightside"·href="../src/proc_macro/diagnostic.rs.html#49">Source</a><a·href="#impl-Debug-for-Diagnostic"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/fmt/trait.Debug.html"·title="trait·core::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.Diagnostic.html"·title="struct·proc_macro::Diagnostic">Diagnostic</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/diagnostic.rs.html#49">Source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="../core/fmt/struct.Formatter.html"·title="struct·core::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="type"·href="../core/fmt/type.Result.html"·title="type·core::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt">Read·more</a></div></details></div></details></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-Diagnostic"·class="impl"><a·href="#impl-Freeze-for-Diagnostic"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="struct"·href="struct.Diagnostic.html"·title="struct·proc_macro::Diagnostic">Diagnostic</a></h3></section><section·id="impl-RefUnwindSafe-for-Diagnostic"·class="impl"><a·href="#impl-RefUnwindSafe-for-Diagnostic"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="struct"·href="struct.Diagnostic.html"·title="struct·proc_macro::Diagnostic">Diagnostic</a></h3></section><section·id="impl-Send-for-Diagnostic"·class="impl"><a·href="#impl-Send-for-Diagnostic"·class="anchor">§</a><h3·class="code-header">impl·!<a·class="trait"·href="../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="struct"·href="struct.Diagnostic.html"·title="struct·proc_macro::Diagnostic">Diagnostic</a></h3></section><section·id="impl-Sync-for-Diagnostic"·class="impl"><a·href="#impl-Sync-for-Diagnostic"·class="anchor">§</a><h3·class="code-header">impl·!<a·class="trait"·href="../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="struct"·href="struct.Diagnostic.html"·title="struct·proc_macro::Diagnostic">Diagnostic</a></h3></section><section·id="impl-Unpin-for-Diagnostic"·class="impl"><a·href="#impl-Unpin-for-Diagnostic"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="struct"·href="struct.Diagnostic.html"·title="struct·proc_macro::Diagnostic">Diagnostic</a></h3></section><section·id="impl-UnwindSafe-for-Diagnostic"·class="impl"><a·href="#impl-UnwindSafe-for-Diagnostic"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="struct"·href="struct.Diagnostic.html"·title="struct·proc_macro::Diagnostic">Diagnostic</a></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementations<a·href="#blanket-implementations"·class="anchor">§</a></h2><div·id="blanket-implementations-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-Any-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/any.rs.html#138">Source</a><a·href="#impl-Any-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where32 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-Diagnostic"·class="impl"><a·class="src·rightside"·href="../src/proc_macro/diagnostic.rs.html#49">Source</a><a·href="#impl-Clone-for-Diagnostic"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struct"·href="struct.Diagnostic.html"·title="struct·proc_macro::Diagnostic">Diagnostic</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/diagnostic.rs.html#49">Source</a><a·href="#method.clone"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/clone/trait.Clone.html#tymethod.clone"·class="fn">clone</a>(&amp;self)·-&gt;·<a·class="struct"·href="struct.Diagnostic.html"·title="struct·proc_macro::Diagnostic">Diagnostic</a></h4></section></summary><div·class='docblock'>Returns·a·copy·of·the·value.·<a·href="../core/clone/trait.Clone.html#tymethod.clone">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_from"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../src/core/clone.rs.html#174">Source</a></span><a·href="#method.clone_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/clone/trait.Clone.html#method.clone_from"·class="fn">clone_from</a>(&amp;mut·self,·source:·&amp;Self)</h4></section></summary><div·class='docblock'>Performs·copy-assignment·from·<code>source</code>.·<a·href="../core/clone/trait.Clone.html#method.clone_from">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-Diagnostic"·class="impl"><a·class="src·rightside"·href="../src/proc_macro/diagnostic.rs.html#49">Source</a><a·href="#impl-Debug-for-Diagnostic"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/fmt/trait.Debug.html"·title="trait·core::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.Diagnostic.html"·title="struct·proc_macro::Diagnostic">Diagnostic</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/diagnostic.rs.html#49">Source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="../core/fmt/struct.Formatter.html"·title="struct·core::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="type"·href="../core/fmt/type.Result.html"·title="type·core::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt">Read·more</a></div></details></div></details></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-Diagnostic"·class="impl"><a·href="#impl-Freeze-for-Diagnostic"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="struct"·href="struct.Diagnostic.html"·title="struct·proc_macro::Diagnostic">Diagnostic</a></h3></section><section·id="impl-RefUnwindSafe-for-Diagnostic"·class="impl"><a·href="#impl-RefUnwindSafe-for-Diagnostic"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="struct"·href="struct.Diagnostic.html"·title="struct·proc_macro::Diagnostic">Diagnostic</a></h3></section><section·id="impl-Send-for-Diagnostic"·class="impl"><a·href="#impl-Send-for-Diagnostic"·class="anchor">§</a><h3·class="code-header">impl·!<a·class="trait"·href="../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="struct"·href="struct.Diagnostic.html"·title="struct·proc_macro::Diagnostic">Diagnostic</a></h3></section><section·id="impl-Sync-for-Diagnostic"·class="impl"><a·href="#impl-Sync-for-Diagnostic"·class="anchor">§</a><h3·class="code-header">impl·!<a·class="trait"·href="../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="struct"·href="struct.Diagnostic.html"·title="struct·proc_macro::Diagnostic">Diagnostic</a></h3></section><section·id="impl-Unpin-for-Diagnostic"·class="impl"><a·href="#impl-Unpin-for-Diagnostic"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="struct"·href="struct.Diagnostic.html"·title="struct·proc_macro::Diagnostic">Diagnostic</a></h3></section><section·id="impl-UnwindSafe-for-Diagnostic"·class="impl"><a·href="#impl-UnwindSafe-for-Diagnostic"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="struct"·href="struct.Diagnostic.html"·title="struct·proc_macro::Diagnostic">Diagnostic</a></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementations<a·href="#blanket-implementations"·class="anchor">§</a></h2><div·id="blanket-implementations-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-Any-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/any.rs.html#138">Source</a><a·href="#impl-Any-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where
33 ····T:·'static·+·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/any.rs.html#139">Source</a><a·href="#method.type_id"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/any/trait.Any.html#tymethod.type_id"·class="fn">type_id</a>(&amp;self)·-&gt;·<a·class="struct"·href="../core/any/struct.TypeId.html"·title="struct·core::any::TypeId">TypeId</a></h4></section></summary><div·class='docblock'>Gets·the·<code>TypeId</code>·of·<code>self</code>.·<a·href="../core/any/trait.Any.html#tymethod.type_id">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Borrow%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/borrow/trait.Borrow.html"·title="trait·core::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where33 ····T:·'static·+·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/any.rs.html#139">Source</a><a·href="#method.type_id"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/any/trait.Any.html#tymethod.type_id"·class="fn">type_id</a>(&amp;self)·-&gt;·<a·class="struct"·href="../core/any/struct.TypeId.html"·title="struct·core::any::TypeId">TypeId</a></h4></section></summary><div·class='docblock'>Gets·the·<code>TypeId</code>·of·<code>self</code>.·<a·href="../core/any/trait.Any.html#tymethod.type_id">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Borrow%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/borrow/trait.Borrow.html"·title="trait·core::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where
34 ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#211">Source</a><a·href="#method.borrow"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow"·class="fn">borrow</a>(&amp;self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;T</a></h4></section></summary><div·class='docblock'>Immutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-BorrowMut%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/borrow/trait.BorrowMut.html"·title="trait·core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where34 ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#211">Source</a><a·href="#method.borrow"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow"·class="fn">borrow</a>(&amp;self)·-&gt;·<a·class="primitive"·href="../std/primitive.reference.html">&amp;T</a></h4></section></summary><div·class='docblock'>Immutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-BorrowMut%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/borrow/trait.BorrowMut.html"·title="trait·core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where
35 ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#218">Source</a><a·href="#method.borrow_mut"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"·class="fn">borrow_mut</a>(&amp;mut·self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;mut·T</a></h4></section></summary><div·class='docblock'>Mutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-CloneToUninit-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#273">Source</a><a·href="#impl-CloneToUninit-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where35 ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#218">Source</a><a·href="#method.borrow_mut"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"·class="fn">borrow_mut</a>(&amp;mut·self)·-&gt;·<a·class="primitive"·href="../std/primitive.reference.html">&amp;mut·T</a></h4></section></summary><div·class='docblock'>Mutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-CloneToUninit-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#273">Source</a><a·href="#impl-CloneToUninit-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where
36 ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#275">Source</a><a·href="#method.clone_to_uninit"·class="anchor">§</a><h4·class="code-header">unsafe·fn·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit"·class="fn">clone_to_uninit</a>(&amp;self,·dst:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.pointer.html">*mut·</a><a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.u8.html">u8</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>clone_to_uninit</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/126799">#126799</a>)</span></div></span><div·class='docblock'>Performs·copy-assignment·from·<code>self</code>·to·<code>dst</code>.·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-From%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#765">Source</a><a·href="#impl-From%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·T</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#768">Source</a><a·href="#method.from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>36 ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#275">Source</a><a·href="#method.clone_to_uninit"·class="anchor">§</a><h4·class="code-header">unsafe·fn·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit"·class="fn">clone_to_uninit</a>(&amp;self,·dst:·<a·class="primitive"·href="../std/primitive.pointer.html">*mut·</a><a·class="primitive"·href="../std/primitive.u8.html">u8</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>clone_to_uninit</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/126799">#126799</a>)</span></div></span><div·class='docblock'>Performs·copy-assignment·from·<code>self</code>·to·<code>dst</code>.·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-From%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#765">Source</a><a·href="#impl-From%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·T</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#768">Source</a><a·href="#method.from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>
37 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where37 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where
38 ····U:·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#758">Source</a><a·href="#method.into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>38 ····U:·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#758">Source</a><a·href="#method.into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>
39 <p>That·is,·this·conversion·is·whatever·the·implementation·of39 <p>That·is,·this·conversion·is·whatever·the·implementation·of
40 <code><a·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>40 <code><a·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>
41 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#82-84">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../alloc/borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where41 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#82-84">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../alloc/borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where
42 ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#86">Source</a><a·href="#associatedtype.Owned"·class="anchor">§</a><h4·class="code-header">type·<a·href="../alloc/borrow/trait.ToOwned.html#associatedtype.Owned"·class="associatedtype">Owned</a>·=·T</h4></section></summary><div·class='docblock'>The·resulting·type·after·obtaining·ownership.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.to_owned"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#87">Source</a><a·href="#method.to_owned"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned"·class="fn">to_owned</a>(&amp;self)·-&gt;·T</h4></section></summary><div·class='docblock'>Creates·owned·data·from·borrowed·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#91">Source</a><a·href="#method.clone_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into"·class="fn">clone_into</a>(&amp;self,·target:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#805-807">Source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where42 ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#86">Source</a><a·href="#associatedtype.Owned"·class="anchor">§</a><h4·class="code-header">type·<a·href="../alloc/borrow/trait.ToOwned.html#associatedtype.Owned"·class="associatedtype">Owned</a>·=·T</h4></section></summary><div·class='docblock'>The·resulting·type·after·obtaining·ownership.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.to_owned"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#87">Source</a><a·href="#method.to_owned"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned"·class="fn">to_owned</a>(&amp;self)·-&gt;·T</h4></section></summary><div·class='docblock'>Creates·owned·data·from·borrowed·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#91">Source</a><a·href="#method.clone_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into"·class="fn">clone_into</a>(&amp;self,·target:·<a·class="primitive"·href="../std/primitive.reference.html">&amp;mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#805-807">Source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where
43 ····U:·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#809">Source</a><a·href="#associatedtype.Error-1"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<a·class="enum"·href="../core/convert/enum.Infallible.html"·title="enum·core::convert::Infallible">Infallible</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#812">Source</a><a·href="#method.try_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryFrom.html#tymethod.try_from"·class="fn">try_from</a>(value:·U)·-&gt;·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;T,·&lt;T·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryInto%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#790-792">Source</a><a·href="#impl-TryInto%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where43 ····U:·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#809">Source</a><a·href="#associatedtype.Error-1"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<a·class="enum"·href="../core/convert/enum.Infallible.html"·title="enum·core::convert::Infallible">Infallible</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#812">Source</a><a·href="#method.try_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryFrom.html#tymethod.try_from"·class="fn">try_from</a>(value:·U)·-&gt;·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;T,·&lt;T·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryInto%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#790-792">Source</a><a·href="#impl-TryInto%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where
44 ····U:·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#794">Source</a><a·href="#associatedtype.Error"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryInto.html#associatedtype.Error"·class="associatedtype">Error</a>·=·&lt;U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#797">Source</a><a·href="#method.try_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryInto.html#tymethod.try_into"·class="fn">try_into</a>(self)·-&gt;·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;U,·&lt;U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>44 ····U:·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#794">Source</a><a·href="#associatedtype.Error"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryInto.html#associatedtype.Error"·class="associatedtype">Error</a>·=·&lt;U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#797">Source</a><a·href="#method.try_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryInto.html#tymethod.try_into"·class="fn">try_into</a>(self)·-&gt;·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;U,·&lt;U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>
36.9 KB
./usr/share/doc/rust-doc/html/proc_macro/struct.ExpandError.html
    
Offset 1, 12 lines modifiedOffset 1, 12 lines modified
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="Error·returned·from·`TokenStream::expand_expr`."><title>ExpandError·in·proc_macro·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../"·data-static-root-path="../static.files/"·data-current-crate="proc_macro"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../proc_macro/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../proc_macro/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../proc_macro/index.html">proc_<wbr>macro</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312» 2025-01-07)»      (built»from»    a»   source»     tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Expand<wbr>Error</a></h2><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Send-for-ExpandError"·title="!Send">!Send</a></li><li><a·href="#impl-Sync-for-ExpandError"·title="!Sync">!Sync</a></li><li><a·href="#impl-Debug-for-ExpandError"·title="Debug">Debug</a></li><li><a·href="#impl-Display-for-ExpandError"·title="Display">Display</a></li><li><a·href="#impl-Error-for-ExpandError"·title="Error">Error</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-ExpandError"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-ExpandError"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Unpin-for-ExpandError"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-ExpandError"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-ToString-for-T"·title="ToString">ToString</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2·class="in-crate"><a·href="index.html">In·crate·proc_<wbr>macro</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">proc_macro</a></span><h1>Struct·<span·class="struct">ExpandError</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/proc_macro/lib.rs.html#122">Source</a>·</span></div><pre·class="rust·item-decl"><code><div·class="code-attribute">#[non_exhaustive]</div>pub·struct·ExpandError;</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_expand</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/90765">#90765</a>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Error·returned·from·<code>TokenStream::expand_expr</code>.</p>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="Error·returned·from·`TokenStream::expand_expr`."><title>ExpandError·in·proc_macro·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../"·data-static-root-path="../static.files/"·data-current-crate="proc_macro"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../proc_macro/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../proc_macro/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../proc_macro/index.html">proc_<wbr>macro</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312» 2025-01-07)»      (built»from»    a»   source»     tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Expand<wbr>Error</a></h2><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Send-for-ExpandError"·title="!Send">!Send</a></li><li><a·href="#impl-Sync-for-ExpandError"·title="!Sync">!Sync</a></li><li><a·href="#impl-Debug-for-ExpandError"·title="Debug">Debug</a></li><li><a·href="#impl-Display-for-ExpandError"·title="Display">Display</a></li><li><a·href="#impl-Error-for-ExpandError"·title="Error">Error</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-ExpandError"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-ExpandError"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Unpin-for-ExpandError"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-ExpandError"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-ToString-for-T"·title="ToString">ToString</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2·class="in-crate"><a·href="index.html">In·crate·proc_<wbr>macro</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">proc_macro</a></span><h1>Struct·<span·class="struct">ExpandError</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/proc_macro/lib.rs.html#122">Source</a>·</span></div><pre·class="rust·item-decl"><code><div·class="code-attribute">#[non_exhaustive]</div>pub·struct·ExpandError;</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_expand</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/90765">#90765</a>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Error·returned·from·<code>TokenStream::expand_expr</code>.</p>
2 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-ExpandError"·class="impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#121">Source</a><a·href="#impl-Debug-for-ExpandError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/fmt/trait.Debug.html"·title="trait·core::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.ExpandError.html"·title="struct·proc_macro::ExpandError">ExpandError</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#121">Source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="../core/fmt/struct.Formatter.html"·title="struct·core::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="type"·href="../core/fmt/type.Result.html"·title="type·core::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Display-for-ExpandError"·class="impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#125-129">Source</a><a·href="#impl-Display-for-ExpandError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/fmt/trait.Display.html"·title="trait·core::fmt::Display">Display</a>·for·<a·class="struct"·href="struct.ExpandError.html"·title="struct·proc_macro::ExpandError">ExpandError</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt-1"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#126-128">Source</a><a·href="#method.fmt-1"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/fmt/trait.Display.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="../core/fmt/struct.Formatter.html"·title="struct·core::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="type"·href="../core/fmt/type.Result.html"·title="type·core::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../core/fmt/trait.Display.html#tymethod.fmt">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Error-for-ExpandError"·class="impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#132">Source</a><a·href="#impl-Error-for-ExpandError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/error/trait.Error.html"·title="trait·core::error::Error">Error</a>·for·<a·class="struct"·href="struct.ExpandError.html"·title="struct·proc_macro::ExpandError">ExpandError</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.source"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.30.0">1.30.0</span>···<a·class="src"·href="../src/core/error.rs.html#81">Source</a></span><a·href="#method.source"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/error/trait.Error.html#method.source"·class="fn">source</a>(&amp;self)·-&gt;·<a·class="enum"·href="../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;&amp;(dyn·<a·class="trait"·href="../core/error/trait.Error.html"·title="trait·core::error::Error">Error</a>·+·'static)&gt;</h4></section></summary><div·class='docblock'>Returns·the·lower-level·source·of·this·error,·if·any.·<a·href="../core/error/trait.Error.html#method.source">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.description"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../src/core/error.rs.html#107">Source</a></span><a·href="#method.description"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/error/trait.Error.html#method.description"·class="fn">description</a>(&amp;self)·-&gt;·&amp;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.str.html">str</a></h4></section></summary><span·class="item-info"><div·class="stab·deprecated"><span·class="emoji">👎</span><span>Deprecated·since·1.42.0:·use·the·Display·impl·or·to_string()</span></div></span><div·class='docblock'>·<a·href="../core/error/trait.Error.html#method.description">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.cause"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../src/core/error.rs.html#117">Source</a></span><a·href="#method.cause"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/error/trait.Error.html#method.cause"·class="fn">cause</a>(&amp;self)·-&gt;·<a·class="enum"·href="../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;&amp;dyn·<a·class="trait"·href="../core/error/trait.Error.html"·title="trait·core::error::Error">Error</a>&gt;</h4></section></summary><span·class="item-info"><div·class="stab·deprecated"><span·class="emoji">👎</span><span>Deprecated·since·1.33.0:·replaced·by·Error::source,·which·can·support·downcasting</span></div></span></details><details·class="toggle·method-toggle"·open><summary><section·id="method.provide"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/error.rs.html#180">Source</a><a·href="#method.provide"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/error/trait.Error.html#method.provide"·class="fn">provide</a>&lt;'a&gt;(&amp;'a·self,·request:·&amp;mut·<a·class="struct"·href="../core/error/struct.Request.html"·title="struct·core::error::Request">Request</a>&lt;'a&gt;)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>error_generic_member_access</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/99301">#99301</a>)</span></div></span><div·class='docblock'>Provides·type-based·access·to·context·intended·for·error·reports.·<a·href="../core/error/trait.Error.html#method.provide">Read·more</a></div></details></div></details><section·id="impl-Send-for-ExpandError"·class="impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#135">Source</a><a·href="#impl-Send-for-ExpandError"·class="anchor">§</a><h3·class="code-header">impl·!<a·class="trait"·href="../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="struct"·href="struct.ExpandError.html"·title="struct·proc_macro::ExpandError">ExpandError</a></h3></section><section·id="impl-Sync-for-ExpandError"·class="impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#138">Source</a><a·href="#impl-Sync-for-ExpandError"·class="anchor">§</a><h3·class="code-header">impl·!<a·class="trait"·href="../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="struct"·href="struct.ExpandError.html"·title="struct·proc_macro::ExpandError">ExpandError</a></h3></section></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-ExpandError"·class="impl"><a·href="#impl-Freeze-for-ExpandError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="struct"·href="struct.ExpandError.html"·title="struct·proc_macro::ExpandError">ExpandError</a></h3></section><section·id="impl-RefUnwindSafe-for-ExpandError"·class="impl"><a·href="#impl-RefUnwindSafe-for-ExpandError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="struct"·href="struct.ExpandError.html"·title="struct·proc_macro::ExpandError">ExpandError</a></h3></section><section·id="impl-Unpin-for-ExpandError"·class="impl"><a·href="#impl-Unpin-for-ExpandError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="struct"·href="struct.ExpandError.html"·title="struct·proc_macro::ExpandError">ExpandError</a></h3></section><section·id="impl-UnwindSafe-for-ExpandError"·class="impl"><a·href="#impl-UnwindSafe-for-ExpandError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="struct"·href="struct.ExpandError.html"·title="struct·proc_macro::ExpandError">ExpandError</a></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementations<a·href="#blanket-implementations"·class="anchor">§</a></h2><div·id="blanket-implementations-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-Any-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/any.rs.html#138">Source</a><a·href="#impl-Any-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where2 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-ExpandError"·class="impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#121">Source</a><a·href="#impl-Debug-for-ExpandError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/fmt/trait.Debug.html"·title="trait·core::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.ExpandError.html"·title="struct·proc_macro::ExpandError">ExpandError</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#121">Source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="../core/fmt/struct.Formatter.html"·title="struct·core::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="type"·href="../core/fmt/type.Result.html"·title="type·core::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Display-for-ExpandError"·class="impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#125-129">Source</a><a·href="#impl-Display-for-ExpandError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/fmt/trait.Display.html"·title="trait·core::fmt::Display">Display</a>·for·<a·class="struct"·href="struct.ExpandError.html"·title="struct·proc_macro::ExpandError">ExpandError</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt-1"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#126-128">Source</a><a·href="#method.fmt-1"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/fmt/trait.Display.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="../core/fmt/struct.Formatter.html"·title="struct·core::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="type"·href="../core/fmt/type.Result.html"·title="type·core::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../core/fmt/trait.Display.html#tymethod.fmt">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Error-for-ExpandError"·class="impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#132">Source</a><a·href="#impl-Error-for-ExpandError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/error/trait.Error.html"·title="trait·core::error::Error">Error</a>·for·<a·class="struct"·href="struct.ExpandError.html"·title="struct·proc_macro::ExpandError">ExpandError</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.source"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.30.0">1.30.0</span>···<a·class="src"·href="../src/core/error.rs.html#81">Source</a></span><a·href="#method.source"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/error/trait.Error.html#method.source"·class="fn">source</a>(&amp;self)·-&gt;·<a·class="enum"·href="../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;&amp;(dyn·<a·class="trait"·href="../core/error/trait.Error.html"·title="trait·core::error::Error">Error</a>·+·'static)&gt;</h4></section></summary><div·class='docblock'>Returns·the·lower-level·source·of·this·error,·if·any.·<a·href="../core/error/trait.Error.html#method.source">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.description"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../src/core/error.rs.html#107">Source</a></span><a·href="#method.description"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/error/trait.Error.html#method.description"·class="fn">description</a>(&amp;self)·-&gt;·&amp;<a·class="primitive"·href="../std/primitive.str.html">str</a></h4></section></summary><span·class="item-info"><div·class="stab·deprecated"><span·class="emoji">👎</span><span>Deprecated·since·1.42.0:·use·the·Display·impl·or·to_string()</span></div></span><div·class='docblock'>·<a·href="../core/error/trait.Error.html#method.description">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.cause"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../src/core/error.rs.html#117">Source</a></span><a·href="#method.cause"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/error/trait.Error.html#method.cause"·class="fn">cause</a>(&amp;self)·-&gt;·<a·class="enum"·href="../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;&amp;dyn·<a·class="trait"·href="../core/error/trait.Error.html"·title="trait·core::error::Error">Error</a>&gt;</h4></section></summary><span·class="item-info"><div·class="stab·deprecated"><span·class="emoji">👎</span><span>Deprecated·since·1.33.0:·replaced·by·Error::source,·which·can·support·downcasting</span></div></span></details><details·class="toggle·method-toggle"·open><summary><section·id="method.provide"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/error.rs.html#180">Source</a><a·href="#method.provide"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/error/trait.Error.html#method.provide"·class="fn">provide</a>&lt;'a&gt;(&amp;'a·self,·request:·&amp;mut·<a·class="struct"·href="../core/error/struct.Request.html"·title="struct·core::error::Request">Request</a>&lt;'a&gt;)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>error_generic_member_access</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/99301">#99301</a>)</span></div></span><div·class='docblock'>Provides·type-based·access·to·context·intended·for·error·reports.·<a·href="../core/error/trait.Error.html#method.provide">Read·more</a></div></details></div></details><section·id="impl-Send-for-ExpandError"·class="impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#135">Source</a><a·href="#impl-Send-for-ExpandError"·class="anchor">§</a><h3·class="code-header">impl·!<a·class="trait"·href="../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="struct"·href="struct.ExpandError.html"·title="struct·proc_macro::ExpandError">ExpandError</a></h3></section><section·id="impl-Sync-for-ExpandError"·class="impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#138">Source</a><a·href="#impl-Sync-for-ExpandError"·class="anchor">§</a><h3·class="code-header">impl·!<a·class="trait"·href="../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="struct"·href="struct.ExpandError.html"·title="struct·proc_macro::ExpandError">ExpandError</a></h3></section></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-ExpandError"·class="impl"><a·href="#impl-Freeze-for-ExpandError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="struct"·href="struct.ExpandError.html"·title="struct·proc_macro::ExpandError">ExpandError</a></h3></section><section·id="impl-RefUnwindSafe-for-ExpandError"·class="impl"><a·href="#impl-RefUnwindSafe-for-ExpandError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="struct"·href="struct.ExpandError.html"·title="struct·proc_macro::ExpandError">ExpandError</a></h3></section><section·id="impl-Unpin-for-ExpandError"·class="impl"><a·href="#impl-Unpin-for-ExpandError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="struct"·href="struct.ExpandError.html"·title="struct·proc_macro::ExpandError">ExpandError</a></h3></section><section·id="impl-UnwindSafe-for-ExpandError"·class="impl"><a·href="#impl-UnwindSafe-for-ExpandError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="struct"·href="struct.ExpandError.html"·title="struct·proc_macro::ExpandError">ExpandError</a></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementations<a·href="#blanket-implementations"·class="anchor">§</a></h2><div·id="blanket-implementations-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-Any-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/any.rs.html#138">Source</a><a·href="#impl-Any-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where
3 ····T:·'static·+·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/any.rs.html#139">Source</a><a·href="#method.type_id"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/any/trait.Any.html#tymethod.type_id"·class="fn">type_id</a>(&amp;self)·-&gt;·<a·class="struct"·href="../core/any/struct.TypeId.html"·title="struct·core::any::TypeId">TypeId</a></h4></section></summary><div·class='docblock'>Gets·the·<code>TypeId</code>·of·<code>self</code>.·<a·href="../core/any/trait.Any.html#tymethod.type_id">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Borrow%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/borrow/trait.Borrow.html"·title="trait·core::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where3 ····T:·'static·+·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/any.rs.html#139">Source</a><a·href="#method.type_id"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/any/trait.Any.html#tymethod.type_id"·class="fn">type_id</a>(&amp;self)·-&gt;·<a·class="struct"·href="../core/any/struct.TypeId.html"·title="struct·core::any::TypeId">TypeId</a></h4></section></summary><div·class='docblock'>Gets·the·<code>TypeId</code>·of·<code>self</code>.·<a·href="../core/any/trait.Any.html#tymethod.type_id">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Borrow%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/borrow/trait.Borrow.html"·title="trait·core::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where
4 ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#211">Source</a><a·href="#method.borrow"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow"·class="fn">borrow</a>(&amp;self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;T</a></h4></section></summary><div·class='docblock'>Immutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-BorrowMut%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/borrow/trait.BorrowMut.html"·title="trait·core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where4 ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#211">Source</a><a·href="#method.borrow"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow"·class="fn">borrow</a>(&amp;self)·-&gt;·<a·class="primitive"·href="../std/primitive.reference.html">&amp;T</a></h4></section></summary><div·class='docblock'>Immutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-BorrowMut%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/borrow/trait.BorrowMut.html"·title="trait·core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where
5 ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#218">Source</a><a·href="#method.borrow_mut"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"·class="fn">borrow_mut</a>(&amp;mut·self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;mut·T</a></h4></section></summary><div·class='docblock'>Mutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-From%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#765">Source</a><a·href="#impl-From%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·T</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#768">Source</a><a·href="#method.from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>5 ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#218">Source</a><a·href="#method.borrow_mut"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"·class="fn">borrow_mut</a>(&amp;mut·self)·-&gt;·<a·class="primitive"·href="../std/primitive.reference.html">&amp;mut·T</a></h4></section></summary><div·class='docblock'>Mutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-From%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#765">Source</a><a·href="#impl-From%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·T</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#768">Source</a><a·href="#method.from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>
6 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where6 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where
7 ····U:·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#758">Source</a><a·href="#method.into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>7 ····U:·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#758">Source</a><a·href="#method.into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>
8 <p>That·is,·this·conversion·is·whatever·the·implementation·of8 <p>That·is,·this·conversion·is·whatever·the·implementation·of
9 <code><a·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>9 <code><a·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>
10 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToString-for-T"·class="impl"><a·class="src·rightside"·href="../src/alloc/string.rs.html#2677">Source</a><a·href="#impl-ToString-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../alloc/string/trait.ToString.html"·title="trait·alloc::string::ToString">ToString</a>·for·T<div·class="where">where10 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToString-for-T"·class="impl"><a·class="src·rightside"·href="../src/alloc/string.rs.html#2677">Source</a><a·href="#impl-ToString-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../alloc/string/trait.ToString.html"·title="trait·alloc::string::ToString">ToString</a>·for·T<div·class="where">where
11 ····T:·<a·class="trait"·href="../core/fmt/trait.Display.html"·title="trait·core::fmt::Display">Display</a>·+·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.to_string"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/string.rs.html#2683">Source</a><a·href="#method.to_string"·class="anchor">§</a><h4·class="code-header">default·fn·<a·href="../alloc/string/trait.ToString.html#tymethod.to_string"·class="fn">to_string</a>(&amp;self)·-&gt;·<a·class="struct"·href="../alloc/string/struct.String.html"·title="struct·alloc::string::String">String</a></h4></section></summary><div·class='docblock'>Converts·the·given·value·to·a·<code>String</code>.·<a·href="../alloc/string/trait.ToString.html#tymethod.to_string">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#805-807">Source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where11 ····T:·<a·class="trait"·href="../core/fmt/trait.Display.html"·title="trait·core::fmt::Display">Display</a>·+·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.to_string"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/string.rs.html#2683">Source</a><a·href="#method.to_string"·class="anchor">§</a><h4·class="code-header">default·fn·<a·href="../alloc/string/trait.ToString.html#tymethod.to_string"·class="fn">to_string</a>(&amp;self)·-&gt;·<a·class="struct"·href="../alloc/string/struct.String.html"·title="struct·alloc::string::String">String</a></h4></section></summary><div·class='docblock'>Converts·the·given·value·to·a·<code>String</code>.·<a·href="../alloc/string/trait.ToString.html#tymethod.to_string">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#805-807">Source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where
12 ····U:·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#809">Source</a><a·href="#associatedtype.Error-1"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<a·class="enum"·href="../core/convert/enum.Infallible.html"·title="enum·core::convert::Infallible">Infallible</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#812">Source</a><a·href="#method.try_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryFrom.html#tymethod.try_from"·class="fn">try_from</a>(value:·U)·-&gt;·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;T,·&lt;T·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryInto%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#790-792">Source</a><a·href="#impl-TryInto%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where12 ····U:·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#809">Source</a><a·href="#associatedtype.Error-1"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<a·class="enum"·href="../core/convert/enum.Infallible.html"·title="enum·core::convert::Infallible">Infallible</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#812">Source</a><a·href="#method.try_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryFrom.html#tymethod.try_from"·class="fn">try_from</a>(value:·U)·-&gt;·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;T,·&lt;T·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryInto%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#790-792">Source</a><a·href="#impl-TryInto%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where
34.2 KB
./usr/share/doc/rust-doc/html/proc_macro/struct.Group.html
    
Offset 22, 19 lines modifiedOffset 22, 19 lines modified
22 tokens·at·the·level·of·the·<code>Group</code>.</p>22 tokens·at·the·level·of·the·<code>Group</code>.</p>
23 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-Group"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#797">Source</a></span><a·href="#impl-Clone-for-Group"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struct"·href="struct.Group.html"·title="struct·proc_macro::Group">Group</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#797">Source</a><a·href="#method.clone"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/clone/trait.Clone.html#tymethod.clone"·class="fn">clone</a>(&amp;self)·-&gt;·<a·class="struct"·href="struct.Group.html"·title="struct·proc_macro::Group">Group</a></h4></section></summary><div·class='docblock'>Returns·a·copy·of·the·value.·<a·href="../core/clone/trait.Clone.html#tymethod.clone">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_from"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../src/core/clone.rs.html#174">Source</a></span><a·href="#method.clone_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/clone/trait.Clone.html#method.clone_from"·class="fn">clone_from</a>(&amp;mut·self,·source:·&amp;Self)</h4></section></summary><div·class='docblock'>Performs·copy-assignment·from·<code>source</code>.·<a·href="../core/clone/trait.Clone.html#method.clone_from">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-Group"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#938-946">Source</a></span><a·href="#impl-Debug-for-Group"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/fmt/trait.Debug.html"·title="trait·core::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.Group.html"·title="struct·proc_macro::Group">Group</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt-1"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#939-945">Source</a><a·href="#method.fmt-1"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="../core/fmt/struct.Formatter.html"·title="struct·core::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="type"·href="../core/fmt/type.Result.html"·title="type·core::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Display-for-Group"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#930-935">Source</a></span><a·href="#impl-Display-for-Group"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/fmt/trait.Display.html"·title="trait·core::fmt::Display">Display</a>·for·<a·class="struct"·href="struct.Group.html"·title="struct·proc_macro::Group">Group</a></h3></section></summary><div·class="docblock"><p>Prints·the·group·as·a·string·that·should·be·losslessly·convertible·back23 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-Group"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#797">Source</a></span><a·href="#impl-Clone-for-Group"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struct"·href="struct.Group.html"·title="struct·proc_macro::Group">Group</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#797">Source</a><a·href="#method.clone"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/clone/trait.Clone.html#tymethod.clone"·class="fn">clone</a>(&amp;self)·-&gt;·<a·class="struct"·href="struct.Group.html"·title="struct·proc_macro::Group">Group</a></h4></section></summary><div·class='docblock'>Returns·a·copy·of·the·value.·<a·href="../core/clone/trait.Clone.html#tymethod.clone">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_from"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../src/core/clone.rs.html#174">Source</a></span><a·href="#method.clone_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/clone/trait.Clone.html#method.clone_from"·class="fn">clone_from</a>(&amp;mut·self,·source:·&amp;Self)</h4></section></summary><div·class='docblock'>Performs·copy-assignment·from·<code>source</code>.·<a·href="../core/clone/trait.Clone.html#method.clone_from">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-Group"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#938-946">Source</a></span><a·href="#impl-Debug-for-Group"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/fmt/trait.Debug.html"·title="trait·core::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.Group.html"·title="struct·proc_macro::Group">Group</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt-1"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#939-945">Source</a><a·href="#method.fmt-1"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="../core/fmt/struct.Formatter.html"·title="struct·core::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="type"·href="../core/fmt/type.Result.html"·title="type·core::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Display-for-Group"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#930-935">Source</a></span><a·href="#impl-Display-for-Group"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/fmt/trait.Display.html"·title="trait·core::fmt::Display">Display</a>·for·<a·class="struct"·href="struct.Group.html"·title="struct·proc_macro::Group">Group</a></h3></section></summary><div·class="docblock"><p>Prints·the·group·as·a·string·that·should·be·losslessly·convertible·back
24 into·the·same·group·(modulo·spans),·except·for·possibly·<code>TokenTree::Group</code>s24 into·the·same·group·(modulo·spans),·except·for·possibly·<code>TokenTree::Group</code>s
25 with·<code>Delimiter::None</code>·delimiters.</p>25 with·<code>Delimiter::None</code>·delimiters.</p>
26 </div><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#932-934">Source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/fmt/trait.Display.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="../core/fmt/struct.Formatter.html"·title="struct·core::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="type"·href="../core/fmt/type.Result.html"·title="type·core::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../core/fmt/trait.Display.html#tymethod.fmt">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-From%3CGroup%3E-for-TokenTree"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#733-737">Source</a></span><a·href="#impl-From%3CGroup%3E-for-TokenTree"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;<a·class="struct"·href="struct.Group.html"·title="struct·proc_macro::Group">Group</a>&gt;·for·<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#734-736">Source</a><a·href="#method.from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(g:·<a·class="struct"·href="struct.Group.html"·title="struct·proc_macro::Group">Group</a>)·-&gt;·<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a></h4></section></summary><div·class='docblock'>Converts·to·this·type·from·the·input·type.</div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-ToTokens-for-Group"·class="impl"><a·class="src·rightside"·href="../src/proc_macro/to_tokens.rs.html#121-125">Source</a><a·href="#impl-ToTokens-for-Group"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="trait.ToTokens.html"·title="trait·proc_macro::ToTokens">ToTokens</a>·for·<a·class="struct"·href="struct.Group.html"·title="struct·proc_macro::Group">Group</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.to_tokens"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/to_tokens.rs.html#122-124">Source</a><a·href="#method.to_tokens"·class="anchor">§</a><h4·class="code-header">fn·<a·href="trait.ToTokens.html#tymethod.to_tokens"·class="fn">to_tokens</a>(&amp;self,·tokens:·&amp;mut·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_totokens</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/130977">#130977</a>)</span></div></span><div·class='docblock'>Write·<code>self</code>·to·the·given·<code>TokenStream</code>.·<a·href="trait.ToTokens.html#tymethod.to_tokens">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.to_token_stream"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/to_tokens.rs.html#57-61">Source</a><a·href="#method.to_token_stream"·class="anchor">§</a><h4·class="code-header">fn·<a·href="trait.ToTokens.html#method.to_token_stream"·class="fn">to_token_stream</a>(&amp;self)·-&gt;·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_totokens</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/130977">#130977</a>)</span></div></span><div·class='docblock'>Convert·<code>self</code>·directly·into·a·<code>TokenStream</code>·object.·<a·href="trait.ToTokens.html#method.to_token_stream">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.into_token_stream"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/to_tokens.rs.html#67-72">Source</a><a·href="#method.into_token_stream"·class="anchor">§</a><h4·class="code-header">fn·<a·href="trait.ToTokens.html#method.into_token_stream"·class="fn">into_token_stream</a>(self)·-&gt;·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a><div·class="where">where26 </div><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#932-934">Source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/fmt/trait.Display.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="../core/fmt/struct.Formatter.html"·title="struct·core::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="type"·href="../core/fmt/type.Result.html"·title="type·core::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../core/fmt/trait.Display.html#tymethod.fmt">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-From%3CGroup%3E-for-TokenTree"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#733-737">Source</a></span><a·href="#impl-From%3CGroup%3E-for-TokenTree"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;<a·class="struct"·href="struct.Group.html"·title="struct·proc_macro::Group">Group</a>&gt;·for·<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#734-736">Source</a><a·href="#method.from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(g:·<a·class="struct"·href="struct.Group.html"·title="struct·proc_macro::Group">Group</a>)·-&gt;·<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a></h4></section></summary><div·class='docblock'>Converts·to·this·type·from·the·input·type.</div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-ToTokens-for-Group"·class="impl"><a·class="src·rightside"·href="../src/proc_macro/to_tokens.rs.html#121-125">Source</a><a·href="#impl-ToTokens-for-Group"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="trait.ToTokens.html"·title="trait·proc_macro::ToTokens">ToTokens</a>·for·<a·class="struct"·href="struct.Group.html"·title="struct·proc_macro::Group">Group</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.to_tokens"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/to_tokens.rs.html#122-124">Source</a><a·href="#method.to_tokens"·class="anchor">§</a><h4·class="code-header">fn·<a·href="trait.ToTokens.html#tymethod.to_tokens"·class="fn">to_tokens</a>(&amp;self,·tokens:·&amp;mut·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_totokens</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/130977">#130977</a>)</span></div></span><div·class='docblock'>Write·<code>self</code>·to·the·given·<code>TokenStream</code>.·<a·href="trait.ToTokens.html#tymethod.to_tokens">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.to_token_stream"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/to_tokens.rs.html#57-61">Source</a><a·href="#method.to_token_stream"·class="anchor">§</a><h4·class="code-header">fn·<a·href="trait.ToTokens.html#method.to_token_stream"·class="fn">to_token_stream</a>(&amp;self)·-&gt;·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_totokens</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/130977">#130977</a>)</span></div></span><div·class='docblock'>Convert·<code>self</code>·directly·into·a·<code>TokenStream</code>·object.·<a·href="trait.ToTokens.html#method.to_token_stream">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.into_token_stream"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/to_tokens.rs.html#67-72">Source</a><a·href="#method.into_token_stream"·class="anchor">§</a><h4·class="code-header">fn·<a·href="trait.ToTokens.html#method.into_token_stream"·class="fn">into_token_stream</a>(self)·-&gt;·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a><div·class="where">where
27 ····Self:·<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_totokens</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/130977">#130977</a>)</span></div></span><div·class='docblock'>Convert·<code>self</code>·directly·into·a·<code>TokenStream</code>·object.·<a·href="trait.ToTokens.html#method.into_token_stream">Read·more</a></div></details></div></details><section·id="impl-Send-for-Group"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#802">Source</a></span><a·href="#impl-Send-for-Group"·class="anchor">§</a><h3·class="code-header">impl·!<a·class="trait"·href="../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="struct"·href="struct.Group.html"·title="struct·proc_macro::Group">Group</a></h3></section><section·id="impl-Sync-for-Group"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#804">Source</a></span><a·href="#impl-Sync-for-Group"·class="anchor">§</a><h3·class="code-header">impl·!<a·class="trait"·href="../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="struct"·href="struct.Group.html"·title="struct·proc_macro::Group">Group</a></h3></section></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-Group"·class="impl"><a·href="#impl-Freeze-for-Group"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="struct"·href="struct.Group.html"·title="struct·proc_macro::Group">Group</a></h3></section><section·id="impl-RefUnwindSafe-for-Group"·class="impl"><a·href="#impl-RefUnwindSafe-for-Group"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="struct"·href="struct.Group.html"·title="struct·proc_macro::Group">Group</a></h3></section><section·id="impl-Unpin-for-Group"·class="impl"><a·href="#impl-Unpin-for-Group"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="struct"·href="struct.Group.html"·title="struct·proc_macro::Group">Group</a></h3></section><section·id="impl-UnwindSafe-for-Group"·class="impl"><a·href="#impl-UnwindSafe-for-Group"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="struct"·href="struct.Group.html"·title="struct·proc_macro::Group">Group</a></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementations<a·href="#blanket-implementations"·class="anchor">§</a></h2><div·id="blanket-implementations-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-Any-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/any.rs.html#138">Source</a><a·href="#impl-Any-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where27 ····Self:·<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_totokens</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/130977">#130977</a>)</span></div></span><div·class='docblock'>Convert·<code>self</code>·directly·into·a·<code>TokenStream</code>·object.·<a·href="trait.ToTokens.html#method.into_token_stream">Read·more</a></div></details></div></details><section·id="impl-Send-for-Group"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#802">Source</a></span><a·href="#impl-Send-for-Group"·class="anchor">§</a><h3·class="code-header">impl·!<a·class="trait"·href="../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="struct"·href="struct.Group.html"·title="struct·proc_macro::Group">Group</a></h3></section><section·id="impl-Sync-for-Group"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#804">Source</a></span><a·href="#impl-Sync-for-Group"·class="anchor">§</a><h3·class="code-header">impl·!<a·class="trait"·href="../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="struct"·href="struct.Group.html"·title="struct·proc_macro::Group">Group</a></h3></section></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-Group"·class="impl"><a·href="#impl-Freeze-for-Group"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="struct"·href="struct.Group.html"·title="struct·proc_macro::Group">Group</a></h3></section><section·id="impl-RefUnwindSafe-for-Group"·class="impl"><a·href="#impl-RefUnwindSafe-for-Group"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="struct"·href="struct.Group.html"·title="struct·proc_macro::Group">Group</a></h3></section><section·id="impl-Unpin-for-Group"·class="impl"><a·href="#impl-Unpin-for-Group"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="struct"·href="struct.Group.html"·title="struct·proc_macro::Group">Group</a></h3></section><section·id="impl-UnwindSafe-for-Group"·class="impl"><a·href="#impl-UnwindSafe-for-Group"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="struct"·href="struct.Group.html"·title="struct·proc_macro::Group">Group</a></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementations<a·href="#blanket-implementations"·class="anchor">§</a></h2><div·id="blanket-implementations-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-Any-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/any.rs.html#138">Source</a><a·href="#impl-Any-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where
28 ····T:·'static·+·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/any.rs.html#139">Source</a><a·href="#method.type_id"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/any/trait.Any.html#tymethod.type_id"·class="fn">type_id</a>(&amp;self)·-&gt;·<a·class="struct"·href="../core/any/struct.TypeId.html"·title="struct·core::any::TypeId">TypeId</a></h4></section></summary><div·class='docblock'>Gets·the·<code>TypeId</code>·of·<code>self</code>.·<a·href="../core/any/trait.Any.html#tymethod.type_id">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Borrow%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/borrow/trait.Borrow.html"·title="trait·core::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where28 ····T:·'static·+·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/any.rs.html#139">Source</a><a·href="#method.type_id"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/any/trait.Any.html#tymethod.type_id"·class="fn">type_id</a>(&amp;self)·-&gt;·<a·class="struct"·href="../core/any/struct.TypeId.html"·title="struct·core::any::TypeId">TypeId</a></h4></section></summary><div·class='docblock'>Gets·the·<code>TypeId</code>·of·<code>self</code>.·<a·href="../core/any/trait.Any.html#tymethod.type_id">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Borrow%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/borrow/trait.Borrow.html"·title="trait·core::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where
29 ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#211">Source</a><a·href="#method.borrow"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow"·class="fn">borrow</a>(&amp;self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;T</a></h4></section></summary><div·class='docblock'>Immutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-BorrowMut%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/borrow/trait.BorrowMut.html"·title="trait·core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where29 ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#211">Source</a><a·href="#method.borrow"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow"·class="fn">borrow</a>(&amp;self)·-&gt;·<a·class="primitive"·href="../std/primitive.reference.html">&amp;T</a></h4></section></summary><div·class='docblock'>Immutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-BorrowMut%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/borrow/trait.BorrowMut.html"·title="trait·core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where
30 ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#218">Source</a><a·href="#method.borrow_mut"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"·class="fn">borrow_mut</a>(&amp;mut·self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;mut·T</a></h4></section></summary><div·class='docblock'>Mutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-CloneToUninit-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#273">Source</a><a·href="#impl-CloneToUninit-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where30 ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#218">Source</a><a·href="#method.borrow_mut"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"·class="fn">borrow_mut</a>(&amp;mut·self)·-&gt;·<a·class="primitive"·href="../std/primitive.reference.html">&amp;mut·T</a></h4></section></summary><div·class='docblock'>Mutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-CloneToUninit-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#273">Source</a><a·href="#impl-CloneToUninit-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where
31 ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#275">Source</a><a·href="#method.clone_to_uninit"·class="anchor">§</a><h4·class="code-header">unsafe·fn·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit"·class="fn">clone_to_uninit</a>(&amp;self,·dst:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.pointer.html">*mut·</a><a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.u8.html">u8</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>clone_to_uninit</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/126799">#126799</a>)</span></div></span><div·class='docblock'>Performs·copy-assignment·from·<code>self</code>·to·<code>dst</code>.·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-From%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#765">Source</a><a·href="#impl-From%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·T</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from-1"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#768">Source</a><a·href="#method.from-1"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>31 ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#275">Source</a><a·href="#method.clone_to_uninit"·class="anchor">§</a><h4·class="code-header">unsafe·fn·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit"·class="fn">clone_to_uninit</a>(&amp;self,·dst:·<a·class="primitive"·href="../std/primitive.pointer.html">*mut·</a><a·class="primitive"·href="../std/primitive.u8.html">u8</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>clone_to_uninit</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/126799">#126799</a>)</span></div></span><div·class='docblock'>Performs·copy-assignment·from·<code>self</code>·to·<code>dst</code>.·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-From%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#765">Source</a><a·href="#impl-From%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·T</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from-1"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#768">Source</a><a·href="#method.from-1"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>
32 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where32 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where
33 ····U:·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#758">Source</a><a·href="#method.into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>33 ····U:·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#758">Source</a><a·href="#method.into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>
34 <p>That·is,·this·conversion·is·whatever·the·implementation·of34 <p>That·is,·this·conversion·is·whatever·the·implementation·of
35 <code><a·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>35 <code><a·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>
36 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#82-84">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../alloc/borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where36 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#82-84">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../alloc/borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where
37 ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#86">Source</a><a·href="#associatedtype.Owned"·class="anchor">§</a><h4·class="code-header">type·<a·href="../alloc/borrow/trait.ToOwned.html#associatedtype.Owned"·class="associatedtype">Owned</a>·=·T</h4></section></summary><div·class='docblock'>The·resulting·type·after·obtaining·ownership.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.to_owned"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#87">Source</a><a·href="#method.to_owned"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned"·class="fn">to_owned</a>(&amp;self)·-&gt;·T</h4></section></summary><div·class='docblock'>Creates·owned·data·from·borrowed·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#91">Source</a><a·href="#method.clone_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into"·class="fn">clone_into</a>(&amp;self,·target:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToString-for-T"·class="impl"><a·class="src·rightside"·href="../src/alloc/string.rs.html#2677">Source</a><a·href="#impl-ToString-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../alloc/string/trait.ToString.html"·title="trait·alloc::string::ToString">ToString</a>·for·T<div·class="where">where37 ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#86">Source</a><a·href="#associatedtype.Owned"·class="anchor">§</a><h4·class="code-header">type·<a·href="../alloc/borrow/trait.ToOwned.html#associatedtype.Owned"·class="associatedtype">Owned</a>·=·T</h4></section></summary><div·class='docblock'>The·resulting·type·after·obtaining·ownership.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.to_owned"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#87">Source</a><a·href="#method.to_owned"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned"·class="fn">to_owned</a>(&amp;self)·-&gt;·T</h4></section></summary><div·class='docblock'>Creates·owned·data·from·borrowed·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#91">Source</a><a·href="#method.clone_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into"·class="fn">clone_into</a>(&amp;self,·target:·<a·class="primitive"·href="../std/primitive.reference.html">&amp;mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToString-for-T"·class="impl"><a·class="src·rightside"·href="../src/alloc/string.rs.html#2677">Source</a><a·href="#impl-ToString-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../alloc/string/trait.ToString.html"·title="trait·alloc::string::ToString">ToString</a>·for·T<div·class="where">where
38 ····T:·<a·class="trait"·href="../core/fmt/trait.Display.html"·title="trait·core::fmt::Display">Display</a>·+·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.to_string"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/string.rs.html#2683">Source</a><a·href="#method.to_string"·class="anchor">§</a><h4·class="code-header">default·fn·<a·href="../alloc/string/trait.ToString.html#tymethod.to_string"·class="fn">to_string</a>(&amp;self)·-&gt;·<a·class="struct"·href="../alloc/string/struct.String.html"·title="struct·alloc::string::String">String</a></h4></section></summary><div·class='docblock'>Converts·the·given·value·to·a·<code>String</code>.·<a·href="../alloc/string/trait.ToString.html#tymethod.to_string">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#805-807">Source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where38 ····T:·<a·class="trait"·href="../core/fmt/trait.Display.html"·title="trait·core::fmt::Display">Display</a>·+·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.to_string"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/string.rs.html#2683">Source</a><a·href="#method.to_string"·class="anchor">§</a><h4·class="code-header">default·fn·<a·href="../alloc/string/trait.ToString.html#tymethod.to_string"·class="fn">to_string</a>(&amp;self)·-&gt;·<a·class="struct"·href="../alloc/string/struct.String.html"·title="struct·alloc::string::String">String</a></h4></section></summary><div·class='docblock'>Converts·the·given·value·to·a·<code>String</code>.·<a·href="../alloc/string/trait.ToString.html#tymethod.to_string">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#805-807">Source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where
39 ····U:·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#809">Source</a><a·href="#associatedtype.Error-1"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<a·class="enum"·href="../core/convert/enum.Infallible.html"·title="enum·core::convert::Infallible">Infallible</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#812">Source</a><a·href="#method.try_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryFrom.html#tymethod.try_from"·class="fn">try_from</a>(value:·U)·-&gt;·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;T,·&lt;T·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryInto%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#790-792">Source</a><a·href="#impl-TryInto%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where39 ····U:·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#809">Source</a><a·href="#associatedtype.Error-1"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<a·class="enum"·href="../core/convert/enum.Infallible.html"·title="enum·core::convert::Infallible">Infallible</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#812">Source</a><a·href="#method.try_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryFrom.html#tymethod.try_from"·class="fn">try_from</a>(value:·U)·-&gt;·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;T,·&lt;T·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryInto%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#790-792">Source</a><a·href="#impl-TryInto%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where
40 ····U:·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#794">Source</a><a·href="#associatedtype.Error"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryInto.html#associatedtype.Error"·class="associatedtype">Error</a>·=·&lt;U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#797">Source</a><a·href="#method.try_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryInto.html#tymethod.try_into"·class="fn">try_into</a>(self)·-&gt;·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;U,·&lt;U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>40 ····U:·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#794">Source</a><a·href="#associatedtype.Error"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryInto.html#associatedtype.Error"·class="associatedtype">Error</a>·=·&lt;U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#797">Source</a><a·href="#method.try_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryInto.html#tymethod.try_into"·class="fn">try_into</a>(self)·-&gt;·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;U,·&lt;U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>
46.1 KB
./usr/share/doc/rust-doc/html/proc_macro/struct.Ident.html
    
Offset 1, 40 lines modifiedOffset 1, 40 lines modified
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="An·identifier·(`ident`)."><title>Ident·in·proc_macro·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../"·data-static-root-path="../static.files/"·data-current-crate="proc_macro"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../proc_macro/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../proc_macro/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../proc_macro/index.html">proc_<wbr>macro</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»     2025-01-07)»  (built»    from»a»       source» tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Ident</a></h2><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.new"·title="new">new</a></li><li><a·href="#method.new_raw"·title="new_raw">new_raw</a></li><li><a·href="#method.set_span"·title="set_span">set_span</a></li><li><a·href="#method.span"·title="span">span</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-Ident"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-Ident"·title="Debug">Debug</a></li><li><a·href="#impl-Display-for-Ident"·title="Display">Display</a></li><li><a·href="#impl-From%3CIdent%3E-for-TokenTree"·title="From&#60;Ident&#62;">From&#60;Ident&#62;</a></li><li><a·href="#impl-ToTokens-for-Ident"·title="ToTokens">ToTokens</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Send-for-Ident"·title="!Send">!Send</a></li><li><a·href="#impl-Sync-for-Ident"·title="!Sync">!Sync</a></li><li><a·href="#impl-Freeze-for-Ident"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Ident"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Unpin-for-Ident"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Ident"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-ToString-for-T"·title="ToString">ToString</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2·class="in-crate"><a·href="index.html">In·crate·proc_<wbr>macro</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">proc_macro</a></span><h1>Struct·<span·class="struct">Ident</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1084">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·Ident(<span·class="comment">/*·private·fields·*/</span>);</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>An·identifier·(<code>ident</code>).</p>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="An·identifier·(`ident`)."><title>Ident·in·proc_macro·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../"·data-static-root-path="../static.files/"·data-current-crate="proc_macro"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../proc_macro/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../proc_macro/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../proc_macro/index.html">proc_<wbr>macro</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»     2025-01-07)»  (built»    from»a»       source» tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Ident</a></h2><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.new"·title="new">new</a></li><li><a·href="#method.new_raw"·title="new_raw">new_raw</a></li><li><a·href="#method.set_span"·title="set_span">set_span</a></li><li><a·href="#method.span"·title="span">span</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-Ident"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-Ident"·title="Debug">Debug</a></li><li><a·href="#impl-Display-for-Ident"·title="Display">Display</a></li><li><a·href="#impl-From%3CIdent%3E-for-TokenTree"·title="From&#60;Ident&#62;">From&#60;Ident&#62;</a></li><li><a·href="#impl-ToTokens-for-Ident"·title="ToTokens">ToTokens</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Send-for-Ident"·title="!Send">!Send</a></li><li><a·href="#impl-Sync-for-Ident"·title="!Sync">!Sync</a></li><li><a·href="#impl-Freeze-for-Ident"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Ident"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Unpin-for-Ident"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Ident"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-ToString-for-T"·title="ToString">ToString</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2·class="in-crate"><a·href="index.html">In·crate·proc_<wbr>macro</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">proc_macro</a></span><h1>Struct·<span·class="struct">Ident</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1084">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·Ident(<span·class="comment">/*·private·fields·*/</span>);</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>An·identifier·(<code>ident</code>).</p>
2 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Ident"·class="impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#1086-1140">Source</a><a·href="#impl-Ident"·class="anchor">§</a><h3·class="code-header">impl·<a·class="struct"·href="struct.Ident.html"·title="struct·proc_macro::Ident">Ident</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.new"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1107-1113">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.new"·class="fn">new</a>(string:·&amp;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.str.html">str</a>,·span:·<a·class="struct"·href="struct.Span.html"·title="struct·proc_macro::Span">Span</a>)·-&gt;·<a·class="struct"·href="struct.Ident.html"·title="struct·proc_macro::Ident">Ident</a></h4></section></summary><div·class="docblock"><p>Creates·a·new·<code>Ident</code>·with·the·given·<code>string</code>·as·well·as·the·specified2 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Ident"·class="impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#1086-1140">Source</a><a·href="#impl-Ident"·class="anchor">§</a><h3·class="code-header">impl·<a·class="struct"·href="struct.Ident.html"·title="struct·proc_macro::Ident">Ident</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.new"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1107-1113">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.new"·class="fn">new</a>(string:·&amp;<a·class="primitive"·href="../std/primitive.str.html">str</a>,·span:·<a·class="struct"·href="struct.Span.html"·title="struct·proc_macro::Span">Span</a>)·-&gt;·<a·class="struct"·href="struct.Ident.html"·title="struct·proc_macro::Ident">Ident</a></h4></section></summary><div·class="docblock"><p>Creates·a·new·<code>Ident</code>·with·the·given·<code>string</code>·as·well·as·the·specified
3 <code>span</code>.3 <code>span</code>.
4 The·<code>string</code>·argument·must·be·a·valid·identifier·permitted·by·the4 The·<code>string</code>·argument·must·be·a·valid·identifier·permitted·by·the
5 language·(including·keywords,·e.g.·<code>self</code>·or·<code>fn</code>).·Otherwise,·the·function·will·panic.</p>5 language·(including·keywords,·e.g.·<code>self</code>·or·<code>fn</code>).·Otherwise,·the·function·will·panic.</p>
6 <p>Note·that·<code>span</code>,·currently·in·rustc,·configures·the·hygiene·information6 <p>Note·that·<code>span</code>,·currently·in·rustc,·configures·the·hygiene·information
7 for·this·identifier.</p>7 for·this·identifier.</p>
8 <p>As·of·this·time·<code>Span::call_site()</code>·explicitly·opts-in·to·“call-site”·hygiene8 <p>As·of·this·time·<code>Span::call_site()</code>·explicitly·opts-in·to·“call-site”·hygiene
9 meaning·that·identifiers·created·with·this·span·will·be·resolved·as·if·they·were·written9 meaning·that·identifiers·created·with·this·span·will·be·resolved·as·if·they·were·written
10 directly·at·the·location·of·the·macro·call,·and·other·code·at·the·macro·call·site·will·be10 directly·at·the·location·of·the·macro·call,·and·other·code·at·the·macro·call·site·will·be
11 able·to·refer·to·them·as·well.</p>11 able·to·refer·to·them·as·well.</p>
12 <p>Later·spans·like·<code>Span::def_site()</code>·will·allow·to·opt-in·to·“definition-site”·hygiene12 <p>Later·spans·like·<code>Span::def_site()</code>·will·allow·to·opt-in·to·“definition-site”·hygiene
13 meaning·that·identifiers·created·with·this·span·will·be·resolved·at·the·location·of·the13 meaning·that·identifiers·created·with·this·span·will·be·resolved·at·the·location·of·the
14 macro·definition·and·other·code·at·the·macro·call·site·will·not·be·able·to·refer·to·them.</p>14 macro·definition·and·other·code·at·the·macro·call·site·will·not·be·able·to·refer·to·them.</p>
15 <p>Due·to·the·current·importance·of·hygiene·this·constructor,·unlike·other15 <p>Due·to·the·current·importance·of·hygiene·this·constructor,·unlike·other
16 tokens,·requires·a·<code>Span</code>·to·be·specified·at·construction.</p>16 tokens,·requires·a·<code>Span</code>·to·be·specified·at·construction.</p>
17 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.new_raw"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.47.0">1.47.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1120-1126">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.new_raw"·class="fn">new_raw</a>(string:·&amp;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.str.html">str</a>,·span:·<a·class="struct"·href="struct.Span.html"·title="struct·proc_macro::Span">Span</a>)·-&gt;·<a·class="struct"·href="struct.Ident.html"·title="struct·proc_macro::Ident">Ident</a></h4></section></summary><div·class="docblock"><p>Same·as·<code>Ident::new</code>,·but·creates·a·raw·identifier·(<code>r#ident</code>).17 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.new_raw"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.47.0">1.47.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1120-1126">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.new_raw"·class="fn">new_raw</a>(string:·&amp;<a·class="primitive"·href="../std/primitive.str.html">str</a>,·span:·<a·class="struct"·href="struct.Span.html"·title="struct·proc_macro::Span">Span</a>)·-&gt;·<a·class="struct"·href="struct.Ident.html"·title="struct·proc_macro::Ident">Ident</a></h4></section></summary><div·class="docblock"><p>Same·as·<code>Ident::new</code>,·but·creates·a·raw·identifier·(<code>r#ident</code>).
18 The·<code>string</code>·argument·be·a·valid·identifier·permitted·by·the·language18 The·<code>string</code>·argument·be·a·valid·identifier·permitted·by·the·language
19 (including·keywords,·e.g.·<code>fn</code>).·Keywords·which·are·usable·in·path·segments19 (including·keywords,·e.g.·<code>fn</code>).·Keywords·which·are·usable·in·path·segments
20 (e.g.·<code>self</code>,·<code>super</code>)·are·not·supported,·and·will·cause·a·panic.</p>20 (e.g.·<code>self</code>,·<code>super</code>)·are·not·supported,·and·will·cause·a·panic.</p>
21 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.span"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1131-1133">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.span"·class="fn">span</a>(&amp;self)·-&gt;·<a·class="struct"·href="struct.Span.html"·title="struct·proc_macro::Span">Span</a></h4></section></summary><div·class="docblock"><p>Returns·the·span·of·this·<code>Ident</code>,·encompassing·the·entire·string·returned21 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.span"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1131-1133">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.span"·class="fn">span</a>(&amp;self)·-&gt;·<a·class="struct"·href="struct.Span.html"·title="struct·proc_macro::Span">Span</a></h4></section></summary><div·class="docblock"><p>Returns·the·span·of·this·<code>Ident</code>,·encompassing·the·entire·string·returned
22 by·<a·href="../alloc/string/trait.ToString.html#tymethod.to_string"·title="method·alloc::string::ToString::to_string"><code>to_string</code></a>.</p>22 by·<a·href="../alloc/string/trait.ToString.html#tymethod.to_string"·title="method·alloc::string::ToString::to_string"><code>to_string</code></a>.</p>
23 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.set_span"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1137-1139">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.set_span"·class="fn">set_span</a>(&amp;mut·self,·span:·<a·class="struct"·href="struct.Span.html"·title="struct·proc_macro::Span">Span</a>)</h4></section></summary><div·class="docblock"><p>Configures·the·span·of·this·<code>Ident</code>,·possibly·changing·its·hygiene·context.</p>23 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.set_span"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1137-1139">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.set_span"·class="fn">set_span</a>(&amp;mut·self,·span:·<a·class="struct"·href="struct.Span.html"·title="struct·proc_macro::Span">Span</a>)</h4></section></summary><div·class="docblock"><p>Configures·the·span·of·this·<code>Ident</code>,·possibly·changing·its·hygiene·context.</p>
24 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-Ident"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1082">Source</a></span><a·href="#impl-Clone-for-Ident"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struct"·href="struct.Ident.html"·title="struct·proc_macro::Ident">Ident</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#1082">Source</a><a·href="#method.clone"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/clone/trait.Clone.html#tymethod.clone"·class="fn">clone</a>(&amp;self)·-&gt;·<a·class="struct"·href="struct.Ident.html"·title="struct·proc_macro::Ident">Ident</a></h4></section></summary><div·class='docblock'>Returns·a·copy·of·the·value.·<a·href="../core/clone/trait.Clone.html#tymethod.clone">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_from"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../src/core/clone.rs.html#174">Source</a></span><a·href="#method.clone_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/clone/trait.Clone.html#method.clone_from"·class="fn">clone_from</a>(&amp;mut·self,·source:·&amp;Self)</h4></section></summary><div·class='docblock'>Performs·copy-assignment·from·<code>source</code>.·<a·href="../core/clone/trait.Clone.html#method.clone_from">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-Ident"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1163-1170">Source</a></span><a·href="#impl-Debug-for-Ident"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/fmt/trait.Debug.html"·title="trait·core::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.Ident.html"·title="struct·proc_macro::Ident">Ident</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt-1"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#1164-1169">Source</a><a·href="#method.fmt-1"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="../core/fmt/struct.Formatter.html"·title="struct·core::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="type"·href="../core/fmt/type.Result.html"·title="type·core::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Display-for-Ident"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1153-1160">Source</a></span><a·href="#impl-Display-for-Ident"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/fmt/trait.Display.html"·title="trait·core::fmt::Display">Display</a>·for·<a·class="struct"·href="struct.Ident.html"·title="struct·proc_macro::Ident">Ident</a></h3></section></summary><div·class="docblock"><p>Prints·the·identifier·as·a·string·that·should·be·losslessly·convertible·back24 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-Ident"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1082">Source</a></span><a·href="#impl-Clone-for-Ident"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struct"·href="struct.Ident.html"·title="struct·proc_macro::Ident">Ident</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#1082">Source</a><a·href="#method.clone"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/clone/trait.Clone.html#tymethod.clone"·class="fn">clone</a>(&amp;self)·-&gt;·<a·class="struct"·href="struct.Ident.html"·title="struct·proc_macro::Ident">Ident</a></h4></section></summary><div·class='docblock'>Returns·a·copy·of·the·value.·<a·href="../core/clone/trait.Clone.html#tymethod.clone">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_from"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../src/core/clone.rs.html#174">Source</a></span><a·href="#method.clone_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/clone/trait.Clone.html#method.clone_from"·class="fn">clone_from</a>(&amp;mut·self,·source:·&amp;Self)</h4></section></summary><div·class='docblock'>Performs·copy-assignment·from·<code>source</code>.·<a·href="../core/clone/trait.Clone.html#method.clone_from">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-Ident"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1163-1170">Source</a></span><a·href="#impl-Debug-for-Ident"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/fmt/trait.Debug.html"·title="trait·core::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.Ident.html"·title="struct·proc_macro::Ident">Ident</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt-1"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#1164-1169">Source</a><a·href="#method.fmt-1"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="../core/fmt/struct.Formatter.html"·title="struct·core::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="type"·href="../core/fmt/type.Result.html"·title="type·core::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Display-for-Ident"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1153-1160">Source</a></span><a·href="#impl-Display-for-Ident"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/fmt/trait.Display.html"·title="trait·core::fmt::Display">Display</a>·for·<a·class="struct"·href="struct.Ident.html"·title="struct·proc_macro::Ident">Ident</a></h3></section></summary><div·class="docblock"><p>Prints·the·identifier·as·a·string·that·should·be·losslessly·convertible·back
25 into·the·same·identifier.</p>25 into·the·same·identifier.</p>
26 </div><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#1154-1159">Source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/fmt/trait.Display.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="../core/fmt/struct.Formatter.html"·title="struct·core::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="type"·href="../core/fmt/type.Result.html"·title="type·core::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../core/fmt/trait.Display.html#tymethod.fmt">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-From%3CIdent%3E-for-TokenTree"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#740-744">Source</a></span><a·href="#impl-From%3CIdent%3E-for-TokenTree"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;<a·class="struct"·href="struct.Ident.html"·title="struct·proc_macro::Ident">Ident</a>&gt;·for·<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#741-743">Source</a><a·href="#method.from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(g:·<a·class="struct"·href="struct.Ident.html"·title="struct·proc_macro::Ident">Ident</a>)·-&gt;·<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a></h4></section></summary><div·class='docblock'>Converts·to·this·type·from·the·input·type.</div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-ToTokens-for-Ident"·class="impl"><a·class="src·rightside"·href="../src/proc_macro/to_tokens.rs.html#107-111">Source</a><a·href="#impl-ToTokens-for-Ident"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="trait.ToTokens.html"·title="trait·proc_macro::ToTokens">ToTokens</a>·for·<a·class="struct"·href="struct.Ident.html"·title="struct·proc_macro::Ident">Ident</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.to_tokens"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/to_tokens.rs.html#108-110">Source</a><a·href="#method.to_tokens"·class="anchor">§</a><h4·class="code-header">fn·<a·href="trait.ToTokens.html#tymethod.to_tokens"·class="fn">to_tokens</a>(&amp;self,·tokens:·&amp;mut·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_totokens</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/130977">#130977</a>)</span></div></span><div·class='docblock'>Write·<code>self</code>·to·the·given·<code>TokenStream</code>.·<a·href="trait.ToTokens.html#tymethod.to_tokens">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.to_token_stream"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/to_tokens.rs.html#57-61">Source</a><a·href="#method.to_token_stream"·class="anchor">§</a><h4·class="code-header">fn·<a·href="trait.ToTokens.html#method.to_token_stream"·class="fn">to_token_stream</a>(&amp;self)·-&gt;·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_totokens</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/130977">#130977</a>)</span></div></span><div·class='docblock'>Convert·<code>self</code>·directly·into·a·<code>TokenStream</code>·object.·<a·href="trait.ToTokens.html#method.to_token_stream">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.into_token_stream"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/to_tokens.rs.html#67-72">Source</a><a·href="#method.into_token_stream"·class="anchor">§</a><h4·class="code-header">fn·<a·href="trait.ToTokens.html#method.into_token_stream"·class="fn">into_token_stream</a>(self)·-&gt;·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a><div·class="where">where26 </div><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#1154-1159">Source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/fmt/trait.Display.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="../core/fmt/struct.Formatter.html"·title="struct·core::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="type"·href="../core/fmt/type.Result.html"·title="type·core::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../core/fmt/trait.Display.html#tymethod.fmt">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-From%3CIdent%3E-for-TokenTree"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#740-744">Source</a></span><a·href="#impl-From%3CIdent%3E-for-TokenTree"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;<a·class="struct"·href="struct.Ident.html"·title="struct·proc_macro::Ident">Ident</a>&gt;·for·<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#741-743">Source</a><a·href="#method.from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(g:·<a·class="struct"·href="struct.Ident.html"·title="struct·proc_macro::Ident">Ident</a>)·-&gt;·<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a></h4></section></summary><div·class='docblock'>Converts·to·this·type·from·the·input·type.</div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-ToTokens-for-Ident"·class="impl"><a·class="src·rightside"·href="../src/proc_macro/to_tokens.rs.html#107-111">Source</a><a·href="#impl-ToTokens-for-Ident"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="trait.ToTokens.html"·title="trait·proc_macro::ToTokens">ToTokens</a>·for·<a·class="struct"·href="struct.Ident.html"·title="struct·proc_macro::Ident">Ident</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.to_tokens"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/to_tokens.rs.html#108-110">Source</a><a·href="#method.to_tokens"·class="anchor">§</a><h4·class="code-header">fn·<a·href="trait.ToTokens.html#tymethod.to_tokens"·class="fn">to_tokens</a>(&amp;self,·tokens:·&amp;mut·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_totokens</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/130977">#130977</a>)</span></div></span><div·class='docblock'>Write·<code>self</code>·to·the·given·<code>TokenStream</code>.·<a·href="trait.ToTokens.html#tymethod.to_tokens">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.to_token_stream"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/to_tokens.rs.html#57-61">Source</a><a·href="#method.to_token_stream"·class="anchor">§</a><h4·class="code-header">fn·<a·href="trait.ToTokens.html#method.to_token_stream"·class="fn">to_token_stream</a>(&amp;self)·-&gt;·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_totokens</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/130977">#130977</a>)</span></div></span><div·class='docblock'>Convert·<code>self</code>·directly·into·a·<code>TokenStream</code>·object.·<a·href="trait.ToTokens.html#method.to_token_stream">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.into_token_stream"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/to_tokens.rs.html#67-72">Source</a><a·href="#method.into_token_stream"·class="anchor">§</a><h4·class="code-header">fn·<a·href="trait.ToTokens.html#method.into_token_stream"·class="fn">into_token_stream</a>(self)·-&gt;·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a><div·class="where">where
27 ····Self:·<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_totokens</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/130977">#130977</a>)</span></div></span><div·class='docblock'>Convert·<code>self</code>·directly·into·a·<code>TokenStream</code>·object.·<a·href="trait.ToTokens.html#method.into_token_stream">Read·more</a></div></details></div></details></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-Ident"·class="impl"><a·href="#impl-Freeze-for-Ident"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="struct"·href="struct.Ident.html"·title="struct·proc_macro::Ident">Ident</a></h3></section><section·id="impl-RefUnwindSafe-for-Ident"·class="impl"><a·href="#impl-RefUnwindSafe-for-Ident"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="struct"·href="struct.Ident.html"·title="struct·proc_macro::Ident">Ident</a></h3></section><section·id="impl-Send-for-Ident"·class="impl"><a·href="#impl-Send-for-Ident"·class="anchor">§</a><h3·class="code-header">impl·!<a·class="trait"·href="../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="struct"·href="struct.Ident.html"·title="struct·proc_macro::Ident">Ident</a></h3></section><section·id="impl-Sync-for-Ident"·class="impl"><a·href="#impl-Sync-for-Ident"·class="anchor">§</a><h3·class="code-header">impl·!<a·class="trait"·href="../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="struct"·href="struct.Ident.html"·title="struct·proc_macro::Ident">Ident</a></h3></section><section·id="impl-Unpin-for-Ident"·class="impl"><a·href="#impl-Unpin-for-Ident"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="struct"·href="struct.Ident.html"·title="struct·proc_macro::Ident">Ident</a></h3></section><section·id="impl-UnwindSafe-for-Ident"·class="impl"><a·href="#impl-UnwindSafe-for-Ident"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="struct"·href="struct.Ident.html"·title="struct·proc_macro::Ident">Ident</a></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementations<a·href="#blanket-implementations"·class="anchor">§</a></h2><div·id="blanket-implementations-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-Any-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/any.rs.html#138">Source</a><a·href="#impl-Any-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where27 ····Self:·<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_totokens</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/130977">#130977</a>)</span></div></span><div·class='docblock'>Convert·<code>self</code>·directly·into·a·<code>TokenStream</code>·object.·<a·href="trait.ToTokens.html#method.into_token_stream">Read·more</a></div></details></div></details></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-Ident"·class="impl"><a·href="#impl-Freeze-for-Ident"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="struct"·href="struct.Ident.html"·title="struct·proc_macro::Ident">Ident</a></h3></section><section·id="impl-RefUnwindSafe-for-Ident"·class="impl"><a·href="#impl-RefUnwindSafe-for-Ident"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="struct"·href="struct.Ident.html"·title="struct·proc_macro::Ident">Ident</a></h3></section><section·id="impl-Send-for-Ident"·class="impl"><a·href="#impl-Send-for-Ident"·class="anchor">§</a><h3·class="code-header">impl·!<a·class="trait"·href="../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="struct"·href="struct.Ident.html"·title="struct·proc_macro::Ident">Ident</a></h3></section><section·id="impl-Sync-for-Ident"·class="impl"><a·href="#impl-Sync-for-Ident"·class="anchor">§</a><h3·class="code-header">impl·!<a·class="trait"·href="../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="struct"·href="struct.Ident.html"·title="struct·proc_macro::Ident">Ident</a></h3></section><section·id="impl-Unpin-for-Ident"·class="impl"><a·href="#impl-Unpin-for-Ident"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="struct"·href="struct.Ident.html"·title="struct·proc_macro::Ident">Ident</a></h3></section><section·id="impl-UnwindSafe-for-Ident"·class="impl"><a·href="#impl-UnwindSafe-for-Ident"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="struct"·href="struct.Ident.html"·title="struct·proc_macro::Ident">Ident</a></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementations<a·href="#blanket-implementations"·class="anchor">§</a></h2><div·id="blanket-implementations-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-Any-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/any.rs.html#138">Source</a><a·href="#impl-Any-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where
28 ····T:·'static·+·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/any.rs.html#139">Source</a><a·href="#method.type_id"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/any/trait.Any.html#tymethod.type_id"·class="fn">type_id</a>(&amp;self)·-&gt;·<a·class="struct"·href="../core/any/struct.TypeId.html"·title="struct·core::any::TypeId">TypeId</a></h4></section></summary><div·class='docblock'>Gets·the·<code>TypeId</code>·of·<code>self</code>.·<a·href="../core/any/trait.Any.html#tymethod.type_id">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Borrow%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/borrow/trait.Borrow.html"·title="trait·core::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where28 ····T:·'static·+·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/any.rs.html#139">Source</a><a·href="#method.type_id"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/any/trait.Any.html#tymethod.type_id"·class="fn">type_id</a>(&amp;self)·-&gt;·<a·class="struct"·href="../core/any/struct.TypeId.html"·title="struct·core::any::TypeId">TypeId</a></h4></section></summary><div·class='docblock'>Gets·the·<code>TypeId</code>·of·<code>self</code>.·<a·href="../core/any/trait.Any.html#tymethod.type_id">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Borrow%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/borrow/trait.Borrow.html"·title="trait·core::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where
29 ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#211">Source</a><a·href="#method.borrow"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow"·class="fn">borrow</a>(&amp;self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;T</a></h4></section></summary><div·class='docblock'>Immutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-BorrowMut%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/borrow/trait.BorrowMut.html"·title="trait·core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where29 ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#211">Source</a><a·href="#method.borrow"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow"·class="fn">borrow</a>(&amp;self)·-&gt;·<a·class="primitive"·href="../std/primitive.reference.html">&amp;T</a></h4></section></summary><div·class='docblock'>Immutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-BorrowMut%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/borrow/trait.BorrowMut.html"·title="trait·core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where
30 ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#218">Source</a><a·href="#method.borrow_mut"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"·class="fn">borrow_mut</a>(&amp;mut·self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;mut·T</a></h4></section></summary><div·class='docblock'>Mutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-CloneToUninit-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#273">Source</a><a·href="#impl-CloneToUninit-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where30 ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#218">Source</a><a·href="#method.borrow_mut"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"·class="fn">borrow_mut</a>(&amp;mut·self)·-&gt;·<a·class="primitive"·href="../std/primitive.reference.html">&amp;mut·T</a></h4></section></summary><div·class='docblock'>Mutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-CloneToUninit-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#273">Source</a><a·href="#impl-CloneToUninit-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where
31 ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#275">Source</a><a·href="#method.clone_to_uninit"·class="anchor">§</a><h4·class="code-header">unsafe·fn·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit"·class="fn">clone_to_uninit</a>(&amp;self,·dst:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.pointer.html">*mut·</a><a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.u8.html">u8</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>clone_to_uninit</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/126799">#126799</a>)</span></div></span><div·class='docblock'>Performs·copy-assignment·from·<code>self</code>·to·<code>dst</code>.·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-From%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#765">Source</a><a·href="#impl-From%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·T</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from-1"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#768">Source</a><a·href="#method.from-1"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>31 ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#275">Source</a><a·href="#method.clone_to_uninit"·class="anchor">§</a><h4·class="code-header">unsafe·fn·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit"·class="fn">clone_to_uninit</a>(&amp;self,·dst:·<a·class="primitive"·href="../std/primitive.pointer.html">*mut·</a><a·class="primitive"·href="../std/primitive.u8.html">u8</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>clone_to_uninit</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/126799">#126799</a>)</span></div></span><div·class='docblock'>Performs·copy-assignment·from·<code>self</code>·to·<code>dst</code>.·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-From%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#765">Source</a><a·href="#impl-From%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·T</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from-1"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#768">Source</a><a·href="#method.from-1"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>
32 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where32 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where
33 ····U:·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#758">Source</a><a·href="#method.into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>33 ····U:·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#758">Source</a><a·href="#method.into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>
34 <p>That·is,·this·conversion·is·whatever·the·implementation·of34 <p>That·is,·this·conversion·is·whatever·the·implementation·of
35 <code><a·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>35 <code><a·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>
36 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#82-84">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../alloc/borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where36 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#82-84">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../alloc/borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where
37 ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#86">Source</a><a·href="#associatedtype.Owned"·class="anchor">§</a><h4·class="code-header">type·<a·href="../alloc/borrow/trait.ToOwned.html#associatedtype.Owned"·class="associatedtype">Owned</a>·=·T</h4></section></summary><div·class='docblock'>The·resulting·type·after·obtaining·ownership.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.to_owned"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#87">Source</a><a·href="#method.to_owned"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned"·class="fn">to_owned</a>(&amp;self)·-&gt;·T</h4></section></summary><div·class='docblock'>Creates·owned·data·from·borrowed·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#91">Source</a><a·href="#method.clone_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into"·class="fn">clone_into</a>(&amp;self,·target:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToString-for-T"·class="impl"><a·class="src·rightside"·href="../src/alloc/string.rs.html#2677">Source</a><a·href="#impl-ToString-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../alloc/string/trait.ToString.html"·title="trait·alloc::string::ToString">ToString</a>·for·T<div·class="where">where37 ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#86">Source</a><a·href="#associatedtype.Owned"·class="anchor">§</a><h4·class="code-header">type·<a·href="../alloc/borrow/trait.ToOwned.html#associatedtype.Owned"·class="associatedtype">Owned</a>·=·T</h4></section></summary><div·class='docblock'>The·resulting·type·after·obtaining·ownership.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.to_owned"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#87">Source</a><a·href="#method.to_owned"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned"·class="fn">to_owned</a>(&amp;self)·-&gt;·T</h4></section></summary><div·class='docblock'>Creates·owned·data·from·borrowed·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#91">Source</a><a·href="#method.clone_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into"·class="fn">clone_into</a>(&amp;self,·target:·<a·class="primitive"·href="../std/primitive.reference.html">&amp;mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToString-for-T"·class="impl"><a·class="src·rightside"·href="../src/alloc/string.rs.html#2677">Source</a><a·href="#impl-ToString-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../alloc/string/trait.ToString.html"·title="trait·alloc::string::ToString">ToString</a>·for·T<div·class="where">where
38 ····T:·<a·class="trait"·href="../core/fmt/trait.Display.html"·title="trait·core::fmt::Display">Display</a>·+·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.to_string"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/string.rs.html#2683">Source</a><a·href="#method.to_string"·class="anchor">§</a><h4·class="code-header">default·fn·<a·href="../alloc/string/trait.ToString.html#tymethod.to_string"·class="fn">to_string</a>(&amp;self)·-&gt;·<a·class="struct"·href="../alloc/string/struct.String.html"·title="struct·alloc::string::String">String</a></h4></section></summary><div·class='docblock'>Converts·the·given·value·to·a·<code>String</code>.·<a·href="../alloc/string/trait.ToString.html#tymethod.to_string">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#805-807">Source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where38 ····T:·<a·class="trait"·href="../core/fmt/trait.Display.html"·title="trait·core::fmt::Display">Display</a>·+·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.to_string"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/string.rs.html#2683">Source</a><a·href="#method.to_string"·class="anchor">§</a><h4·class="code-header">default·fn·<a·href="../alloc/string/trait.ToString.html#tymethod.to_string"·class="fn">to_string</a>(&amp;self)·-&gt;·<a·class="struct"·href="../alloc/string/struct.String.html"·title="struct·alloc::string::String">String</a></h4></section></summary><div·class='docblock'>Converts·the·given·value·to·a·<code>String</code>.·<a·href="../alloc/string/trait.ToString.html#tymethod.to_string">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#805-807">Source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where
39 ····U:·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#809">Source</a><a·href="#associatedtype.Error-1"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<a·class="enum"·href="../core/convert/enum.Infallible.html"·title="enum·core::convert::Infallible">Infallible</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#812">Source</a><a·href="#method.try_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryFrom.html#tymethod.try_from"·class="fn">try_from</a>(value:·U)·-&gt;·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;T,·&lt;T·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryInto%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#790-792">Source</a><a·href="#impl-TryInto%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where39 ····U:·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#809">Source</a><a·href="#associatedtype.Error-1"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<a·class="enum"·href="../core/convert/enum.Infallible.html"·title="enum·core::convert::Infallible">Infallible</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#812">Source</a><a·href="#method.try_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryFrom.html#tymethod.try_from"·class="fn">try_from</a>(value:·U)·-&gt;·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;T,·&lt;T·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryInto%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#790-792">Source</a><a·href="#impl-TryInto%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where
40 ····U:·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#794">Source</a><a·href="#associatedtype.Error"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryInto.html#associatedtype.Error"·class="associatedtype">Error</a>·=·&lt;U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#797">Source</a><a·href="#method.try_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryInto.html#tymethod.try_into"·class="fn">try_into</a>(self)·-&gt;·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;U,·&lt;U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>40 ····U:·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#794">Source</a><a·href="#associatedtype.Error"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryInto.html#associatedtype.Error"·class="associatedtype">Error</a>·=·&lt;U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#797">Source</a><a·href="#method.try_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryInto.html#tymethod.try_into"·class="fn">try_into</a>(self)·-&gt;·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;U,·&lt;U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>
37.3 KB
./usr/share/doc/rust-doc/html/proc_macro/struct.LexError.html
    
Offset 1, 12 lines modifiedOffset 1, 12 lines modified
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="Error·returned·from·`TokenStream::from_str`."><title>LexError·in·proc_macro·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../"·data-static-root-path="../static.files/"·data-current-crate="proc_macro"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../proc_macro/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../proc_macro/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../proc_macro/index.html">proc_<wbr>macro</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»       2025-01-07)»    (built»      from»  a» source»   tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">LexError</a></h2><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Send-for-LexError"·title="!Send">!Send</a></li><li><a·href="#impl-Sync-for-LexError"·title="!Sync">!Sync</a></li><li><a·href="#impl-Debug-for-LexError"·title="Debug">Debug</a></li><li><a·href="#impl-Display-for-LexError"·title="Display">Display</a></li><li><a·href="#impl-Error-for-LexError"·title="Error">Error</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-LexError"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-LexError"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Unpin-for-LexError"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-LexError"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-ToString-for-T"·title="ToString">ToString</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2·class="in-crate"><a·href="index.html">In·crate·proc_<wbr>macro</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">proc_macro</a></span><h1>Struct·<span·class="struct">LexError</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.15.0">1.15.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#101">Source</a>·</span></div><pre·class="rust·item-decl"><code><div·class="code-attribute">#[non_exhaustive]</div>pub·struct·LexError;</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Error·returned·from·<code>TokenStream::from_str</code>.</p>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="Error·returned·from·`TokenStream::from_str`."><title>LexError·in·proc_macro·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../"·data-static-root-path="../static.files/"·data-current-crate="proc_macro"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../proc_macro/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../proc_macro/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../proc_macro/index.html">proc_<wbr>macro</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»       2025-01-07)»    (built»      from»  a» source»   tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">LexError</a></h2><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Send-for-LexError"·title="!Send">!Send</a></li><li><a·href="#impl-Sync-for-LexError"·title="!Sync">!Sync</a></li><li><a·href="#impl-Debug-for-LexError"·title="Debug">Debug</a></li><li><a·href="#impl-Display-for-LexError"·title="Display">Display</a></li><li><a·href="#impl-Error-for-LexError"·title="Error">Error</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-LexError"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-LexError"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Unpin-for-LexError"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-LexError"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-ToString-for-T"·title="ToString">ToString</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2·class="in-crate"><a·href="index.html">In·crate·proc_<wbr>macro</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">proc_macro</a></span><h1>Struct·<span·class="struct">LexError</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.15.0">1.15.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#101">Source</a>·</span></div><pre·class="rust·item-decl"><code><div·class="code-attribute">#[non_exhaustive]</div>pub·struct·LexError;</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Error·returned·from·<code>TokenStream::from_str</code>.</p>
2 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-LexError"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.15.0">1.15.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#100">Source</a></span><a·href="#impl-Debug-for-LexError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/fmt/trait.Debug.html"·title="trait·core::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.LexError.html"·title="struct·proc_macro::LexError">LexError</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#100">Source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="../core/fmt/struct.Formatter.html"·title="struct·core::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="type"·href="../core/fmt/type.Result.html"·title="type·core::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Display-for-LexError"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.44.0">1.44.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#104-108">Source</a></span><a·href="#impl-Display-for-LexError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/fmt/trait.Display.html"·title="trait·core::fmt::Display">Display</a>·for·<a·class="struct"·href="struct.LexError.html"·title="struct·proc_macro::LexError">LexError</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt-1"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#105-107">Source</a><a·href="#method.fmt-1"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/fmt/trait.Display.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="../core/fmt/struct.Formatter.html"·title="struct·core::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="type"·href="../core/fmt/type.Result.html"·title="type·core::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../core/fmt/trait.Display.html#tymethod.fmt">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Error-for-LexError"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.44.0">1.44.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#111">Source</a></span><a·href="#impl-Error-for-LexError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/error/trait.Error.html"·title="trait·core::error::Error">Error</a>·for·<a·class="struct"·href="struct.LexError.html"·title="struct·proc_macro::LexError">LexError</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.source"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.30.0">1.30.0</span>···<a·class="src"·href="../src/core/error.rs.html#81">Source</a></span><a·href="#method.source"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/error/trait.Error.html#method.source"·class="fn">source</a>(&amp;self)·-&gt;·<a·class="enum"·href="../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;&amp;(dyn·<a·class="trait"·href="../core/error/trait.Error.html"·title="trait·core::error::Error">Error</a>·+·'static)&gt;</h4></section></summary><div·class='docblock'>Returns·the·lower-level·source·of·this·error,·if·any.·<a·href="../core/error/trait.Error.html#method.source">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.description"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../src/core/error.rs.html#107">Source</a></span><a·href="#method.description"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/error/trait.Error.html#method.description"·class="fn">description</a>(&amp;self)·-&gt;·&amp;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.str.html">str</a></h4></section></summary><span·class="item-info"><div·class="stab·deprecated"><span·class="emoji">👎</span><span>Deprecated·since·1.42.0:·use·the·Display·impl·or·to_string()</span></div></span><div·class='docblock'>·<a·href="../core/error/trait.Error.html#method.description">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.cause"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../src/core/error.rs.html#117">Source</a></span><a·href="#method.cause"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/error/trait.Error.html#method.cause"·class="fn">cause</a>(&amp;self)·-&gt;·<a·class="enum"·href="../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;&amp;dyn·<a·class="trait"·href="../core/error/trait.Error.html"·title="trait·core::error::Error">Error</a>&gt;</h4></section></summary><span·class="item-info"><div·class="stab·deprecated"><span·class="emoji">👎</span><span>Deprecated·since·1.33.0:·replaced·by·Error::source,·which·can·support·downcasting</span></div></span></details><details·class="toggle·method-toggle"·open><summary><section·id="method.provide"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/error.rs.html#180">Source</a><a·href="#method.provide"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/error/trait.Error.html#method.provide"·class="fn">provide</a>&lt;'a&gt;(&amp;'a·self,·request:·&amp;mut·<a·class="struct"·href="../core/error/struct.Request.html"·title="struct·core::error::Request">Request</a>&lt;'a&gt;)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>error_generic_member_access</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/99301">#99301</a>)</span></div></span><div·class='docblock'>Provides·type-based·access·to·context·intended·for·error·reports.·<a·href="../core/error/trait.Error.html#method.provide">Read·more</a></div></details></div></details><section·id="impl-Send-for-LexError"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.15.0">1.15.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#114">Source</a></span><a·href="#impl-Send-for-LexError"·class="anchor">§</a><h3·class="code-header">impl·!<a·class="trait"·href="../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="struct"·href="struct.LexError.html"·title="struct·proc_macro::LexError">LexError</a></h3></section><section·id="impl-Sync-for-LexError"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.15.0">1.15.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#116">Source</a></span><a·href="#impl-Sync-for-LexError"·class="anchor">§</a><h3·class="code-header">impl·!<a·class="trait"·href="../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="struct"·href="struct.LexError.html"·title="struct·proc_macro::LexError">LexError</a></h3></section></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-LexError"·class="impl"><a·href="#impl-Freeze-for-LexError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="struct"·href="struct.LexError.html"·title="struct·proc_macro::LexError">LexError</a></h3></section><section·id="impl-RefUnwindSafe-for-LexError"·class="impl"><a·href="#impl-RefUnwindSafe-for-LexError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="struct"·href="struct.LexError.html"·title="struct·proc_macro::LexError">LexError</a></h3></section><section·id="impl-Unpin-for-LexError"·class="impl"><a·href="#impl-Unpin-for-LexError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="struct"·href="struct.LexError.html"·title="struct·proc_macro::LexError">LexError</a></h3></section><section·id="impl-UnwindSafe-for-LexError"·class="impl"><a·href="#impl-UnwindSafe-for-LexError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="struct"·href="struct.LexError.html"·title="struct·proc_macro::LexError">LexError</a></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementations<a·href="#blanket-implementations"·class="anchor">§</a></h2><div·id="blanket-implementations-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-Any-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/any.rs.html#138">Source</a><a·href="#impl-Any-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where2 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-LexError"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.15.0">1.15.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#100">Source</a></span><a·href="#impl-Debug-for-LexError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/fmt/trait.Debug.html"·title="trait·core::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.LexError.html"·title="struct·proc_macro::LexError">LexError</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#100">Source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="../core/fmt/struct.Formatter.html"·title="struct·core::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="type"·href="../core/fmt/type.Result.html"·title="type·core::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Display-for-LexError"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.44.0">1.44.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#104-108">Source</a></span><a·href="#impl-Display-for-LexError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/fmt/trait.Display.html"·title="trait·core::fmt::Display">Display</a>·for·<a·class="struct"·href="struct.LexError.html"·title="struct·proc_macro::LexError">LexError</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt-1"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#105-107">Source</a><a·href="#method.fmt-1"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/fmt/trait.Display.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="../core/fmt/struct.Formatter.html"·title="struct·core::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="type"·href="../core/fmt/type.Result.html"·title="type·core::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../core/fmt/trait.Display.html#tymethod.fmt">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Error-for-LexError"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.44.0">1.44.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#111">Source</a></span><a·href="#impl-Error-for-LexError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/error/trait.Error.html"·title="trait·core::error::Error">Error</a>·for·<a·class="struct"·href="struct.LexError.html"·title="struct·proc_macro::LexError">LexError</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.source"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.30.0">1.30.0</span>···<a·class="src"·href="../src/core/error.rs.html#81">Source</a></span><a·href="#method.source"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/error/trait.Error.html#method.source"·class="fn">source</a>(&amp;self)·-&gt;·<a·class="enum"·href="../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;&amp;(dyn·<a·class="trait"·href="../core/error/trait.Error.html"·title="trait·core::error::Error">Error</a>·+·'static)&gt;</h4></section></summary><div·class='docblock'>Returns·the·lower-level·source·of·this·error,·if·any.·<a·href="../core/error/trait.Error.html#method.source">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.description"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../src/core/error.rs.html#107">Source</a></span><a·href="#method.description"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/error/trait.Error.html#method.description"·class="fn">description</a>(&amp;self)·-&gt;·&amp;<a·class="primitive"·href="../std/primitive.str.html">str</a></h4></section></summary><span·class="item-info"><div·class="stab·deprecated"><span·class="emoji">👎</span><span>Deprecated·since·1.42.0:·use·the·Display·impl·or·to_string()</span></div></span><div·class='docblock'>·<a·href="../core/error/trait.Error.html#method.description">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.cause"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../src/core/error.rs.html#117">Source</a></span><a·href="#method.cause"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/error/trait.Error.html#method.cause"·class="fn">cause</a>(&amp;self)·-&gt;·<a·class="enum"·href="../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;&amp;dyn·<a·class="trait"·href="../core/error/trait.Error.html"·title="trait·core::error::Error">Error</a>&gt;</h4></section></summary><span·class="item-info"><div·class="stab·deprecated"><span·class="emoji">👎</span><span>Deprecated·since·1.33.0:·replaced·by·Error::source,·which·can·support·downcasting</span></div></span></details><details·class="toggle·method-toggle"·open><summary><section·id="method.provide"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/error.rs.html#180">Source</a><a·href="#method.provide"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/error/trait.Error.html#method.provide"·class="fn">provide</a>&lt;'a&gt;(&amp;'a·self,·request:·&amp;mut·<a·class="struct"·href="../core/error/struct.Request.html"·title="struct·core::error::Request">Request</a>&lt;'a&gt;)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>error_generic_member_access</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/99301">#99301</a>)</span></div></span><div·class='docblock'>Provides·type-based·access·to·context·intended·for·error·reports.·<a·href="../core/error/trait.Error.html#method.provide">Read·more</a></div></details></div></details><section·id="impl-Send-for-LexError"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.15.0">1.15.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#114">Source</a></span><a·href="#impl-Send-for-LexError"·class="anchor">§</a><h3·class="code-header">impl·!<a·class="trait"·href="../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="struct"·href="struct.LexError.html"·title="struct·proc_macro::LexError">LexError</a></h3></section><section·id="impl-Sync-for-LexError"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.15.0">1.15.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#116">Source</a></span><a·href="#impl-Sync-for-LexError"·class="anchor">§</a><h3·class="code-header">impl·!<a·class="trait"·href="../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="struct"·href="struct.LexError.html"·title="struct·proc_macro::LexError">LexError</a></h3></section></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-LexError"·class="impl"><a·href="#impl-Freeze-for-LexError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="struct"·href="struct.LexError.html"·title="struct·proc_macro::LexError">LexError</a></h3></section><section·id="impl-RefUnwindSafe-for-LexError"·class="impl"><a·href="#impl-RefUnwindSafe-for-LexError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="struct"·href="struct.LexError.html"·title="struct·proc_macro::LexError">LexError</a></h3></section><section·id="impl-Unpin-for-LexError"·class="impl"><a·href="#impl-Unpin-for-LexError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="struct"·href="struct.LexError.html"·title="struct·proc_macro::LexError">LexError</a></h3></section><section·id="impl-UnwindSafe-for-LexError"·class="impl"><a·href="#impl-UnwindSafe-for-LexError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="struct"·href="struct.LexError.html"·title="struct·proc_macro::LexError">LexError</a></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementations<a·href="#blanket-implementations"·class="anchor">§</a></h2><div·id="blanket-implementations-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-Any-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/any.rs.html#138">Source</a><a·href="#impl-Any-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where
3 ····T:·'static·+·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/any.rs.html#139">Source</a><a·href="#method.type_id"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/any/trait.Any.html#tymethod.type_id"·class="fn">type_id</a>(&amp;self)·-&gt;·<a·class="struct"·href="../core/any/struct.TypeId.html"·title="struct·core::any::TypeId">TypeId</a></h4></section></summary><div·class='docblock'>Gets·the·<code>TypeId</code>·of·<code>self</code>.·<a·href="../core/any/trait.Any.html#tymethod.type_id">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Borrow%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/borrow/trait.Borrow.html"·title="trait·core::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where3 ····T:·'static·+·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/any.rs.html#139">Source</a><a·href="#method.type_id"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/any/trait.Any.html#tymethod.type_id"·class="fn">type_id</a>(&amp;self)·-&gt;·<a·class="struct"·href="../core/any/struct.TypeId.html"·title="struct·core::any::TypeId">TypeId</a></h4></section></summary><div·class='docblock'>Gets·the·<code>TypeId</code>·of·<code>self</code>.·<a·href="../core/any/trait.Any.html#tymethod.type_id">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Borrow%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/borrow/trait.Borrow.html"·title="trait·core::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where
4 ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#211">Source</a><a·href="#method.borrow"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow"·class="fn">borrow</a>(&amp;self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;T</a></h4></section></summary><div·class='docblock'>Immutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-BorrowMut%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/borrow/trait.BorrowMut.html"·title="trait·core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where4 ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#211">Source</a><a·href="#method.borrow"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow"·class="fn">borrow</a>(&amp;self)·-&gt;·<a·class="primitive"·href="../std/primitive.reference.html">&amp;T</a></h4></section></summary><div·class='docblock'>Immutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-BorrowMut%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/borrow/trait.BorrowMut.html"·title="trait·core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where
5 ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#218">Source</a><a·href="#method.borrow_mut"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"·class="fn">borrow_mut</a>(&amp;mut·self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;mut·T</a></h4></section></summary><div·class='docblock'>Mutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-From%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#765">Source</a><a·href="#impl-From%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·T</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#768">Source</a><a·href="#method.from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>5 ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#218">Source</a><a·href="#method.borrow_mut"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"·class="fn">borrow_mut</a>(&amp;mut·self)·-&gt;·<a·class="primitive"·href="../std/primitive.reference.html">&amp;mut·T</a></h4></section></summary><div·class='docblock'>Mutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-From%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#765">Source</a><a·href="#impl-From%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·T</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#768">Source</a><a·href="#method.from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>
6 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where6 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where
7 ····U:·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#758">Source</a><a·href="#method.into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>7 ····U:·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#758">Source</a><a·href="#method.into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>
8 <p>That·is,·this·conversion·is·whatever·the·implementation·of8 <p>That·is,·this·conversion·is·whatever·the·implementation·of
9 <code><a·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>9 <code><a·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>
10 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToString-for-T"·class="impl"><a·class="src·rightside"·href="../src/alloc/string.rs.html#2677">Source</a><a·href="#impl-ToString-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../alloc/string/trait.ToString.html"·title="trait·alloc::string::ToString">ToString</a>·for·T<div·class="where">where10 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToString-for-T"·class="impl"><a·class="src·rightside"·href="../src/alloc/string.rs.html#2677">Source</a><a·href="#impl-ToString-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../alloc/string/trait.ToString.html"·title="trait·alloc::string::ToString">ToString</a>·for·T<div·class="where">where
11 ····T:·<a·class="trait"·href="../core/fmt/trait.Display.html"·title="trait·core::fmt::Display">Display</a>·+·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.to_string"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/string.rs.html#2683">Source</a><a·href="#method.to_string"·class="anchor">§</a><h4·class="code-header">default·fn·<a·href="../alloc/string/trait.ToString.html#tymethod.to_string"·class="fn">to_string</a>(&amp;self)·-&gt;·<a·class="struct"·href="../alloc/string/struct.String.html"·title="struct·alloc::string::String">String</a></h4></section></summary><div·class='docblock'>Converts·the·given·value·to·a·<code>String</code>.·<a·href="../alloc/string/trait.ToString.html#tymethod.to_string">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#805-807">Source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where11 ····T:·<a·class="trait"·href="../core/fmt/trait.Display.html"·title="trait·core::fmt::Display">Display</a>·+·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.to_string"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/string.rs.html#2683">Source</a><a·href="#method.to_string"·class="anchor">§</a><h4·class="code-header">default·fn·<a·href="../alloc/string/trait.ToString.html#tymethod.to_string"·class="fn">to_string</a>(&amp;self)·-&gt;·<a·class="struct"·href="../alloc/string/struct.String.html"·title="struct·alloc::string::String">String</a></h4></section></summary><div·class='docblock'>Converts·the·given·value·to·a·<code>String</code>.·<a·href="../alloc/string/trait.ToString.html#tymethod.to_string">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#805-807">Source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where
12 ····U:·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#809">Source</a><a·href="#associatedtype.Error-1"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<a·class="enum"·href="../core/convert/enum.Infallible.html"·title="enum·core::convert::Infallible">Infallible</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#812">Source</a><a·href="#method.try_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryFrom.html#tymethod.try_from"·class="fn">try_from</a>(value:·U)·-&gt;·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;T,·&lt;T·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryInto%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#790-792">Source</a><a·href="#impl-TryInto%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where12 ····U:·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#809">Source</a><a·href="#associatedtype.Error-1"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<a·class="enum"·href="../core/convert/enum.Infallible.html"·title="enum·core::convert::Infallible">Infallible</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#812">Source</a><a·href="#method.try_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryFrom.html#tymethod.try_from"·class="fn">try_from</a>(value:·U)·-&gt;·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;T,·&lt;T·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryInto%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#790-792">Source</a><a·href="#impl-TryInto%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where
114 KB
./usr/share/doc/rust-doc/html/proc_macro/struct.Literal.html
    
Offset 1, 316 lines modifiedOffset 1, 316 lines modified
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="A·literal·string·(`&#34;hello&#34;`),·byte·string·(`b&#34;hello&#34;`),·C·string·(`c&#34;hello&#34;`),·character·(`&#39;a&#39;`),·byte·character·(`b&#39;a&#39;`),·an·integer·or·floating·point·number·with·or·without·a·suffix·(`1`,·`1u8`,·`2.3`,·`2.3f32`).·Boolean·literals·like·`true`·and·`false`·do·not·belong·here,·they·are·`Ident`s."><title>Literal·in·proc_macro·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../"·data-static-root-path="../static.files/"·data-current-crate="proc_macro"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../proc_macro/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../proc_macro/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../proc_macro/index.html">proc_<wbr>macro</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»     2025-01-07)»  (built»    from»a»       source» tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Literal</a></h2><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.byte_character"·title="byte_character">byte_character</a></li><li><a·href="#method.byte_string"·title="byte_string">byte_string</a></li><li><a·href="#method.c_string"·title="c_string">c_string</a></li><li><a·href="#method.character"·title="character">character</a></li><li><a·href="#method.f32_suffixed"·title="f32_suffixed">f32_suffixed</a></li><li><a·href="#method.f32_unsuffixed"·title="f32_unsuffixed">f32_unsuffixed</a></li><li><a·href="#method.f64_suffixed"·title="f64_suffixed">f64_suffixed</a></li><li><a·href="#method.f64_unsuffixed"·title="f64_unsuffixed">f64_unsuffixed</a></li><li><a·href="#method.i128_suffixed"·title="i128_suffixed">i128_suffixed</a></li><li><a·href="#method.i128_unsuffixed"·title="i128_unsuffixed">i128_unsuffixed</a></li><li><a·href="#method.i16_suffixed"·title="i16_suffixed">i16_suffixed</a></li><li><a·href="#method.i16_unsuffixed"·title="i16_unsuffixed">i16_unsuffixed</a></li><li><a·href="#method.i32_suffixed"·title="i32_suffixed">i32_suffixed</a></li><li><a·href="#method.i32_unsuffixed"·title="i32_unsuffixed">i32_unsuffixed</a></li><li><a·href="#method.i64_suffixed"·title="i64_suffixed">i64_suffixed</a></li><li><a·href="#method.i64_unsuffixed"·title="i64_unsuffixed">i64_unsuffixed</a></li><li><a·href="#method.i8_suffixed"·title="i8_suffixed">i8_suffixed</a></li><li><a·href="#method.i8_unsuffixed"·title="i8_unsuffixed">i8_unsuffixed</a></li><li><a·href="#method.isize_suffixed"·title="isize_suffixed">isize_suffixed</a></li><li><a·href="#method.isize_unsuffixed"·title="isize_unsuffixed">isize_unsuffixed</a></li><li><a·href="#method.set_span"·title="set_span">set_span</a></li><li><a·href="#method.span"·title="span">span</a></li><li><a·href="#method.string"·title="string">string</a></li><li><a·href="#method.subspan"·title="subspan">subspan</a></li><li><a·href="#method.u128_suffixed"·title="u128_suffixed">u128_suffixed</a></li><li><a·href="#method.u128_unsuffixed"·title="u128_unsuffixed">u128_unsuffixed</a></li><li><a·href="#method.u16_suffixed"·title="u16_suffixed">u16_suffixed</a></li><li><a·href="#method.u16_unsuffixed"·title="u16_unsuffixed">u16_unsuffixed</a></li><li><a·href="#method.u32_suffixed"·title="u32_suffixed">u32_suffixed</a></li><li><a·href="#method.u32_unsuffixed"·title="u32_unsuffixed">u32_unsuffixed</a></li><li><a·href="#method.u64_suffixed"·title="u64_suffixed">u64_suffixed</a></li><li><a·href="#method.u64_unsuffixed"·title="u64_unsuffixed">u64_unsuffixed</a></li><li><a·href="#method.u8_suffixed"·title="u8_suffixed">u8_suffixed</a></li><li><a·href="#method.u8_unsuffixed"·title="u8_unsuffixed">u8_unsuffixed</a></li><li><a·href="#method.usize_suffixed"·title="usize_suffixed">usize_suffixed</a></li><li><a·href="#method.usize_unsuffixed"·title="usize_unsuffixed">usize_unsuffixed</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-Literal"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-Literal"·title="Debug">Debug</a></li><li><a·href="#impl-Display-for-Literal"·title="Display">Display</a></li><li><a·href="#impl-From%3CLiteral%3E-for-TokenTree"·title="From&#60;Literal&#62;">From&#60;Literal&#62;</a></li><li><a·href="#impl-FromStr-for-Literal"·title="FromStr">FromStr</a></li><li><a·href="#impl-ToTokens-for-Literal"·title="ToTokens">ToTokens</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Send-for-Literal"·title="!Send">!Send</a></li><li><a·href="#impl-Sync-for-Literal"·title="!Sync">!Sync</a></li><li><a·href="#impl-Freeze-for-Literal"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Literal"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Unpin-for-Literal"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Literal"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-ToString-for-T"·title="ToString">ToString</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2·class="in-crate"><a·href="index.html">In·crate·proc_<wbr>macro</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">proc_macro</a></span><h1>Struct·<span·class="struct">Literal</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1178">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·Literal(<span·class="comment">/*·private·fields·*/</span>);</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>A·literal·string·(<code>"hello"</code>),·byte·string·(<code>b"hello"</code>),·C·string·(<code>c"hello"</code>),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="A·literal·string·(`&#34;hello&#34;`),·byte·string·(`b&#34;hello&#34;`),·C·string·(`c&#34;hello&#34;`),·character·(`&#39;a&#39;`),·byte·character·(`b&#39;a&#39;`),·an·integer·or·floating·point·number·with·or·without·a·suffix·(`1`,·`1u8`,·`2.3`,·`2.3f32`).·Boolean·literals·like·`true`·and·`false`·do·not·belong·here,·they·are·`Ident`s."><title>Literal·in·proc_macro·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../"·data-static-root-path="../static.files/"·data-current-crate="proc_macro"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../proc_macro/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../proc_macro/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../proc_macro/index.html">proc_<wbr>macro</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»     2025-01-07)»  (built»    from»a»       source» tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Literal</a></h2><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.byte_character"·title="byte_character">byte_character</a></li><li><a·href="#method.byte_string"·title="byte_string">byte_string</a></li><li><a·href="#method.c_string"·title="c_string">c_string</a></li><li><a·href="#method.character"·title="character">character</a></li><li><a·href="#method.f32_suffixed"·title="f32_suffixed">f32_suffixed</a></li><li><a·href="#method.f32_unsuffixed"·title="f32_unsuffixed">f32_unsuffixed</a></li><li><a·href="#method.f64_suffixed"·title="f64_suffixed">f64_suffixed</a></li><li><a·href="#method.f64_unsuffixed"·title="f64_unsuffixed">f64_unsuffixed</a></li><li><a·href="#method.i128_suffixed"·title="i128_suffixed">i128_suffixed</a></li><li><a·href="#method.i128_unsuffixed"·title="i128_unsuffixed">i128_unsuffixed</a></li><li><a·href="#method.i16_suffixed"·title="i16_suffixed">i16_suffixed</a></li><li><a·href="#method.i16_unsuffixed"·title="i16_unsuffixed">i16_unsuffixed</a></li><li><a·href="#method.i32_suffixed"·title="i32_suffixed">i32_suffixed</a></li><li><a·href="#method.i32_unsuffixed"·title="i32_unsuffixed">i32_unsuffixed</a></li><li><a·href="#method.i64_suffixed"·title="i64_suffixed">i64_suffixed</a></li><li><a·href="#method.i64_unsuffixed"·title="i64_unsuffixed">i64_unsuffixed</a></li><li><a·href="#method.i8_suffixed"·title="i8_suffixed">i8_suffixed</a></li><li><a·href="#method.i8_unsuffixed"·title="i8_unsuffixed">i8_unsuffixed</a></li><li><a·href="#method.isize_suffixed"·title="isize_suffixed">isize_suffixed</a></li><li><a·href="#method.isize_unsuffixed"·title="isize_unsuffixed">isize_unsuffixed</a></li><li><a·href="#method.set_span"·title="set_span">set_span</a></li><li><a·href="#method.span"·title="span">span</a></li><li><a·href="#method.string"·title="string">string</a></li><li><a·href="#method.subspan"·title="subspan">subspan</a></li><li><a·href="#method.u128_suffixed"·title="u128_suffixed">u128_suffixed</a></li><li><a·href="#method.u128_unsuffixed"·title="u128_unsuffixed">u128_unsuffixed</a></li><li><a·href="#method.u16_suffixed"·title="u16_suffixed">u16_suffixed</a></li><li><a·href="#method.u16_unsuffixed"·title="u16_unsuffixed">u16_unsuffixed</a></li><li><a·href="#method.u32_suffixed"·title="u32_suffixed">u32_suffixed</a></li><li><a·href="#method.u32_unsuffixed"·title="u32_unsuffixed">u32_unsuffixed</a></li><li><a·href="#method.u64_suffixed"·title="u64_suffixed">u64_suffixed</a></li><li><a·href="#method.u64_unsuffixed"·title="u64_unsuffixed">u64_unsuffixed</a></li><li><a·href="#method.u8_suffixed"·title="u8_suffixed">u8_suffixed</a></li><li><a·href="#method.u8_unsuffixed"·title="u8_unsuffixed">u8_unsuffixed</a></li><li><a·href="#method.usize_suffixed"·title="usize_suffixed">usize_suffixed</a></li><li><a·href="#method.usize_unsuffixed"·title="usize_unsuffixed">usize_unsuffixed</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-Literal"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-Literal"·title="Debug">Debug</a></li><li><a·href="#impl-Display-for-Literal"·title="Display">Display</a></li><li><a·href="#impl-From%3CLiteral%3E-for-TokenTree"·title="From&#60;Literal&#62;">From&#60;Literal&#62;</a></li><li><a·href="#impl-FromStr-for-Literal"·title="FromStr">FromStr</a></li><li><a·href="#impl-ToTokens-for-Literal"·title="ToTokens">ToTokens</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Send-for-Literal"·title="!Send">!Send</a></li><li><a·href="#impl-Sync-for-Literal"·title="!Sync">!Sync</a></li><li><a·href="#impl-Freeze-for-Literal"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Literal"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Unpin-for-Literal"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Literal"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-ToString-for-T"·title="ToString">ToString</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2·class="in-crate"><a·href="index.html">In·crate·proc_<wbr>macro</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">proc_macro</a></span><h1>Struct·<span·class="struct">Literal</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1178">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·Literal(<span·class="comment">/*·private·fields·*/</span>);</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>A·literal·string·(<code>"hello"</code>),·byte·string·(<code>b"hello"</code>),·C·string·(<code>c"hello"</code>),
2 character·(<code>'a'</code>),·byte·character·(<code>b'a'</code>),·an·integer·or·floating·point·number2 character·(<code>'a'</code>),·byte·character·(<code>b'a'</code>),·an·integer·or·floating·point·number
3 with·or·without·a·suffix·(<code>1</code>,·<code>1u8</code>,·<code>2.3</code>,·<code>2.3f32</code>).3 with·or·without·a·suffix·(<code>1</code>,·<code>1u8</code>,·<code>2.3</code>,·<code>2.3f32</code>).
4 Boolean·literals·like·<code>true</code>·and·<code>false</code>·do·not·belong·here,·they·are·<code>Ident</code>s.</p>4 Boolean·literals·like·<code>true</code>·and·<code>false</code>·do·not·belong·here,·they·are·<code>Ident</code>s.</p>
5 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Literal"·class="impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#1232-1500">Source</a><a·href="#impl-Literal"·class="anchor">§</a><h3·class="code-header">impl·<a·class="struct"·href="struct.Literal.html"·title="struct·proc_macro::Literal">Literal</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.u8_suffixed"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1242-1255">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.u8_suffixed"·class="fn">u8_suffixed</a>(n:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.u8.html">u8</a>)·-&gt;·<a·class="struct"·href="struct.Literal.html"·title="struct·proc_macro::Literal">Literal</a></h4></section></summary><div·class="docblock"><p>Creates·a·new·suffixed·integer·literal·with·the·specified·value.</p>5 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Literal"·class="impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#1232-1500">Source</a><a·href="#impl-Literal"·class="anchor">§</a><h3·class="code-header">impl·<a·class="struct"·href="struct.Literal.html"·title="struct·proc_macro::Literal">Literal</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.u8_suffixed"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1242-1255">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.u8_suffixed"·class="fn">u8_suffixed</a>(n:·<a·class="primitive"·href="../std/primitive.u8.html">u8</a>)·-&gt;·<a·class="struct"·href="struct.Literal.html"·title="struct·proc_macro::Literal">Literal</a></h4></section></summary><div·class="docblock"><p>Creates·a·new·suffixed·integer·literal·with·the·specified·value.</p>
6 <p>This·function·will·create·an·integer·like·<code>1u32</code>·where·the·integer6 <p>This·function·will·create·an·integer·like·<code>1u32</code>·where·the·integer
7 value·specified·is·the·first·part·of·the·token·and·the·integral·is7 value·specified·is·the·first·part·of·the·token·and·the·integral·is
8 also·suffixed·at·the·end.8 also·suffixed·at·the·end.
9 Literals·created·from·negative·numbers·might·not·survive·round-trips·through9 Literals·created·from·negative·numbers·might·not·survive·round-trips·through
10 <code>TokenStream</code>·or·strings·and·may·be·broken·into·two·tokens·(<code>-</code>·and·positive·literal).</p>10 <code>TokenStream</code>·or·strings·and·may·be·broken·into·two·tokens·(<code>-</code>·and·positive·literal).</p>
11 <p>Literals·created·through·this·method·have·the·<code>Span::call_site()</code>11 <p>Literals·created·through·this·method·have·the·<code>Span::call_site()</code>
12 span·by·default,·which·can·be·configured·with·the·<code>set_span</code>·method12 span·by·default,·which·can·be·configured·with·the·<code>set_span</code>·method
13 below.</p>13 below.</p>
14 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.u16_suffixed"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1242-1255">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.u16_suffixed"·class="fn">u16_suffixed</a>(n:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.u16.html">u16</a>)·-&gt;·<a·class="struct"·href="struct.Literal.html"·title="struct·proc_macro::Literal">Literal</a></h4></section></summary><div·class="docblock"><p>Creates·a·new·suffixed·integer·literal·with·the·specified·value.</p>14 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.u16_suffixed"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1242-1255">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.u16_suffixed"·class="fn">u16_suffixed</a>(n:·<a·class="primitive"·href="../std/primitive.u16.html">u16</a>)·-&gt;·<a·class="struct"·href="struct.Literal.html"·title="struct·proc_macro::Literal">Literal</a></h4></section></summary><div·class="docblock"><p>Creates·a·new·suffixed·integer·literal·with·the·specified·value.</p>
15 <p>This·function·will·create·an·integer·like·<code>1u32</code>·where·the·integer15 <p>This·function·will·create·an·integer·like·<code>1u32</code>·where·the·integer
16 value·specified·is·the·first·part·of·the·token·and·the·integral·is16 value·specified·is·the·first·part·of·the·token·and·the·integral·is
17 also·suffixed·at·the·end.17 also·suffixed·at·the·end.
18 Literals·created·from·negative·numbers·might·not·survive·round-trips·through18 Literals·created·from·negative·numbers·might·not·survive·round-trips·through
19 <code>TokenStream</code>·or·strings·and·may·be·broken·into·two·tokens·(<code>-</code>·and·positive·literal).</p>19 <code>TokenStream</code>·or·strings·and·may·be·broken·into·two·tokens·(<code>-</code>·and·positive·literal).</p>
20 <p>Literals·created·through·this·method·have·the·<code>Span::call_site()</code>20 <p>Literals·created·through·this·method·have·the·<code>Span::call_site()</code>
21 span·by·default,·which·can·be·configured·with·the·<code>set_span</code>·method21 span·by·default,·which·can·be·configured·with·the·<code>set_span</code>·method
22 below.</p>22 below.</p>
23 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.u32_suffixed"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1242-1255">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.u32_suffixed"·class="fn">u32_suffixed</a>(n:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.u32.html">u32</a>)·-&gt;·<a·class="struct"·href="struct.Literal.html"·title="struct·proc_macro::Literal">Literal</a></h4></section></summary><div·class="docblock"><p>Creates·a·new·suffixed·integer·literal·with·the·specified·value.</p>23 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.u32_suffixed"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1242-1255">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.u32_suffixed"·class="fn">u32_suffixed</a>(n:·<a·class="primitive"·href="../std/primitive.u32.html">u32</a>)·-&gt;·<a·class="struct"·href="struct.Literal.html"·title="struct·proc_macro::Literal">Literal</a></h4></section></summary><div·class="docblock"><p>Creates·a·new·suffixed·integer·literal·with·the·specified·value.</p>
24 <p>This·function·will·create·an·integer·like·<code>1u32</code>·where·the·integer24 <p>This·function·will·create·an·integer·like·<code>1u32</code>·where·the·integer
25 value·specified·is·the·first·part·of·the·token·and·the·integral·is25 value·specified·is·the·first·part·of·the·token·and·the·integral·is
26 also·suffixed·at·the·end.26 also·suffixed·at·the·end.
27 Literals·created·from·negative·numbers·might·not·survive·round-trips·through27 Literals·created·from·negative·numbers·might·not·survive·round-trips·through
28 <code>TokenStream</code>·or·strings·and·may·be·broken·into·two·tokens·(<code>-</code>·and·positive·literal).</p>28 <code>TokenStream</code>·or·strings·and·may·be·broken·into·two·tokens·(<code>-</code>·and·positive·literal).</p>
29 <p>Literals·created·through·this·method·have·the·<code>Span::call_site()</code>29 <p>Literals·created·through·this·method·have·the·<code>Span::call_site()</code>
30 span·by·default,·which·can·be·configured·with·the·<code>set_span</code>·method30 span·by·default,·which·can·be·configured·with·the·<code>set_span</code>·method
31 below.</p>31 below.</p>
32 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.u64_suffixed"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1242-1255">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.u64_suffixed"·class="fn">u64_suffixed</a>(n:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.u64.html">u64</a>)·-&gt;·<a·class="struct"·href="struct.Literal.html"·title="struct·proc_macro::Literal">Literal</a></h4></section></summary><div·class="docblock"><p>Creates·a·new·suffixed·integer·literal·with·the·specified·value.</p>32 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.u64_suffixed"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1242-1255">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.u64_suffixed"·class="fn">u64_suffixed</a>(n:·<a·class="primitive"·href="../std/primitive.u64.html">u64</a>)·-&gt;·<a·class="struct"·href="struct.Literal.html"·title="struct·proc_macro::Literal">Literal</a></h4></section></summary><div·class="docblock"><p>Creates·a·new·suffixed·integer·literal·with·the·specified·value.</p>
33 <p>This·function·will·create·an·integer·like·<code>1u32</code>·where·the·integer33 <p>This·function·will·create·an·integer·like·<code>1u32</code>·where·the·integer
34 value·specified·is·the·first·part·of·the·token·and·the·integral·is34 value·specified·is·the·first·part·of·the·token·and·the·integral·is
35 also·suffixed·at·the·end.35 also·suffixed·at·the·end.
36 Literals·created·from·negative·numbers·might·not·survive·round-trips·through36 Literals·created·from·negative·numbers·might·not·survive·round-trips·through
37 <code>TokenStream</code>·or·strings·and·may·be·broken·into·two·tokens·(<code>-</code>·and·positive·literal).</p>37 <code>TokenStream</code>·or·strings·and·may·be·broken·into·two·tokens·(<code>-</code>·and·positive·literal).</p>
38 <p>Literals·created·through·this·method·have·the·<code>Span::call_site()</code>38 <p>Literals·created·through·this·method·have·the·<code>Span::call_site()</code>
39 span·by·default,·which·can·be·configured·with·the·<code>set_span</code>·method39 span·by·default,·which·can·be·configured·with·the·<code>set_span</code>·method
40 below.</p>40 below.</p>
41 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.u128_suffixed"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1242-1255">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.u128_suffixed"·class="fn">u128_suffixed</a>(n:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.u128.html">u128</a>)·-&gt;·<a·class="struct"·href="struct.Literal.html"·title="struct·proc_macro::Literal">Literal</a></h4></section></summary><div·class="docblock"><p>Creates·a·new·suffixed·integer·literal·with·the·specified·value.</p>41 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.u128_suffixed"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1242-1255">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.u128_suffixed"·class="fn">u128_suffixed</a>(n:·<a·class="primitive"·href="../std/primitive.u128.html">u128</a>)·-&gt;·<a·class="struct"·href="struct.Literal.html"·title="struct·proc_macro::Literal">Literal</a></h4></section></summary><div·class="docblock"><p>Creates·a·new·suffixed·integer·literal·with·the·specified·value.</p>
42 <p>This·function·will·create·an·integer·like·<code>1u32</code>·where·the·integer42 <p>This·function·will·create·an·integer·like·<code>1u32</code>·where·the·integer
43 value·specified·is·the·first·part·of·the·token·and·the·integral·is43 value·specified·is·the·first·part·of·the·token·and·the·integral·is
44 also·suffixed·at·the·end.44 also·suffixed·at·the·end.
45 Literals·created·from·negative·numbers·might·not·survive·round-trips·through45 Literals·created·from·negative·numbers·might·not·survive·round-trips·through
46 <code>TokenStream</code>·or·strings·and·may·be·broken·into·two·tokens·(<code>-</code>·and·positive·literal).</p>46 <code>TokenStream</code>·or·strings·and·may·be·broken·into·two·tokens·(<code>-</code>·and·positive·literal).</p>
47 <p>Literals·created·through·this·method·have·the·<code>Span::call_site()</code>47 <p>Literals·created·through·this·method·have·the·<code>Span::call_site()</code>
48 span·by·default,·which·can·be·configured·with·the·<code>set_span</code>·method48 span·by·default,·which·can·be·configured·with·the·<code>set_span</code>·method
49 below.</p>49 below.</p>
50 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.usize_suffixed"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1242-1255">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.usize_suffixed"·class="fn">usize_suffixed</a>(n:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.usize.html">usize</a>)·-&gt;·<a·class="struct"·href="struct.Literal.html"·title="struct·proc_macro::Literal">Literal</a></h4></section></summary><div·class="docblock"><p>Creates·a·new·suffixed·integer·literal·with·the·specified·value.</p>50 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.usize_suffixed"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1242-1255">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.usize_suffixed"·class="fn">usize_suffixed</a>(n:·<a·class="primitive"·href="../std/primitive.usize.html">usize</a>)·-&gt;·<a·class="struct"·href="struct.Literal.html"·title="struct·proc_macro::Literal">Literal</a></h4></section></summary><div·class="docblock"><p>Creates·a·new·suffixed·integer·literal·with·the·specified·value.</p>
51 <p>This·function·will·create·an·integer·like·<code>1u32</code>·where·the·integer51 <p>This·function·will·create·an·integer·like·<code>1u32</code>·where·the·integer
52 value·specified·is·the·first·part·of·the·token·and·the·integral·is52 value·specified·is·the·first·part·of·the·token·and·the·integral·is
53 also·suffixed·at·the·end.53 also·suffixed·at·the·end.
54 Literals·created·from·negative·numbers·might·not·survive·round-trips·through54 Literals·created·from·negative·numbers·might·not·survive·round-trips·through
55 <code>TokenStream</code>·or·strings·and·may·be·broken·into·two·tokens·(<code>-</code>·and·positive·literal).</p>55 <code>TokenStream</code>·or·strings·and·may·be·broken·into·two·tokens·(<code>-</code>·and·positive·literal).</p>
56 <p>Literals·created·through·this·method·have·the·<code>Span::call_site()</code>56 <p>Literals·created·through·this·method·have·the·<code>Span::call_site()</code>
57 span·by·default,·which·can·be·configured·with·the·<code>set_span</code>·method57 span·by·default,·which·can·be·configured·with·the·<code>set_span</code>·method
58 below.</p>58 below.</p>
59 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.i8_suffixed"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1242-1255">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.i8_suffixed"·class="fn">i8_suffixed</a>(n:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.i8.html">i8</a>)·-&gt;·<a·class="struct"·href="struct.Literal.html"·title="struct·proc_macro::Literal">Literal</a></h4></section></summary><div·class="docblock"><p>Creates·a·new·suffixed·integer·literal·with·the·specified·value.</p>59 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.i8_suffixed"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1242-1255">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.i8_suffixed"·class="fn">i8_suffixed</a>(n:·<a·class="primitive"·href="../std/primitive.i8.html">i8</a>)·-&gt;·<a·class="struct"·href="struct.Literal.html"·title="struct·proc_macro::Literal">Literal</a></h4></section></summary><div·class="docblock"><p>Creates·a·new·suffixed·integer·literal·with·the·specified·value.</p>
60 <p>This·function·will·create·an·integer·like·<code>1u32</code>·where·the·integer60 <p>This·function·will·create·an·integer·like·<code>1u32</code>·where·the·integer
61 value·specified·is·the·first·part·of·the·token·and·the·integral·is61 value·specified·is·the·first·part·of·the·token·and·the·integral·is
62 also·suffixed·at·the·end.62 also·suffixed·at·the·end.
63 Literals·created·from·negative·numbers·might·not·survive·round-trips·through63 Literals·created·from·negative·numbers·might·not·survive·round-trips·through
64 <code>TokenStream</code>·or·strings·and·may·be·broken·into·two·tokens·(<code>-</code>·and·positive·literal).</p>64 <code>TokenStream</code>·or·strings·and·may·be·broken·into·two·tokens·(<code>-</code>·and·positive·literal).</p>
65 <p>Literals·created·through·this·method·have·the·<code>Span::call_site()</code>65 <p>Literals·created·through·this·method·have·the·<code>Span::call_site()</code>
66 span·by·default,·which·can·be·configured·with·the·<code>set_span</code>·method66 span·by·default,·which·can·be·configured·with·the·<code>set_span</code>·method
67 below.</p>67 below.</p>
68 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.i16_suffixed"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1242-1255">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.i16_suffixed"·class="fn">i16_suffixed</a>(n:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.i16.html">i16</a>)·-&gt;·<a·class="struct"·href="struct.Literal.html"·title="struct·proc_macro::Literal">Literal</a></h4></section></summary><div·class="docblock"><p>Creates·a·new·suffixed·integer·literal·with·the·specified·value.</p>68 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.i16_suffixed"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1242-1255">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.i16_suffixed"·class="fn">i16_suffixed</a>(n:·<a·class="primitive"·href="../std/primitive.i16.html">i16</a>)·-&gt;·<a·class="struct"·href="struct.Literal.html"·title="struct·proc_macro::Literal">Literal</a></h4></section></summary><div·class="docblock"><p>Creates·a·new·suffixed·integer·literal·with·the·specified·value.</p>
69 <p>This·function·will·create·an·integer·like·<code>1u32</code>·where·the·integer69 <p>This·function·will·create·an·integer·like·<code>1u32</code>·where·the·integer
70 value·specified·is·the·first·part·of·the·token·and·the·integral·is70 value·specified·is·the·first·part·of·the·token·and·the·integral·is
71 also·suffixed·at·the·end.71 also·suffixed·at·the·end.
72 Literals·created·from·negative·numbers·might·not·survive·round-trips·through72 Literals·created·from·negative·numbers·might·not·survive·round-trips·through
73 <code>TokenStream</code>·or·strings·and·may·be·broken·into·two·tokens·(<code>-</code>·and·positive·literal).</p>73 <code>TokenStream</code>·or·strings·and·may·be·broken·into·two·tokens·(<code>-</code>·and·positive·literal).</p>
74 <p>Literals·created·through·this·method·have·the·<code>Span::call_site()</code>74 <p>Literals·created·through·this·method·have·the·<code>Span::call_site()</code>
75 span·by·default,·which·can·be·configured·with·the·<code>set_span</code>·method75 span·by·default,·which·can·be·configured·with·the·<code>set_span</code>·method
76 below.</p>76 below.</p>
77 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.i32_suffixed"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1242-1255">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.i32_suffixed"·class="fn">i32_suffixed</a>(n:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.i32.html">i32</a>)·-&gt;·<a·class="struct"·href="struct.Literal.html"·title="struct·proc_macro::Literal">Literal</a></h4></section></summary><div·class="docblock"><p>Creates·a·new·suffixed·integer·literal·with·the·specified·value.</p>77 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.i32_suffixed"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1242-1255">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.i32_suffixed"·class="fn">i32_suffixed</a>(n:·<a·class="primitive"·href="../std/primitive.i32.html">i32</a>)·-&gt;·<a·class="struct"·href="struct.Literal.html"·title="struct·proc_macro::Literal">Literal</a></h4></section></summary><div·class="docblock"><p>Creates·a·new·suffixed·integer·literal·with·the·specified·value.</p>
78 <p>This·function·will·create·an·integer·like·<code>1u32</code>·where·the·integer78 <p>This·function·will·create·an·integer·like·<code>1u32</code>·where·the·integer
79 value·specified·is·the·first·part·of·the·token·and·the·integral·is79 value·specified·is·the·first·part·of·the·token·and·the·integral·is
80 also·suffixed·at·the·end.80 also·suffixed·at·the·end.
81 Literals·created·from·negative·numbers·might·not·survive·round-trips·through81 Literals·created·from·negative·numbers·might·not·survive·round-trips·through
82 <code>TokenStream</code>·or·strings·and·may·be·broken·into·two·tokens·(<code>-</code>·and·positive·literal).</p>82 <code>TokenStream</code>·or·strings·and·may·be·broken·into·two·tokens·(<code>-</code>·and·positive·literal).</p>
83 <p>Literals·created·through·this·method·have·the·<code>Span::call_site()</code>83 <p>Literals·created·through·this·method·have·the·<code>Span::call_site()</code>
84 span·by·default,·which·can·be·configured·with·the·<code>set_span</code>·method84 span·by·default,·which·can·be·configured·with·the·<code>set_span</code>·method
85 below.</p>85 below.</p>
86 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.i64_suffixed"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1242-1255">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.i64_suffixed"·class="fn">i64_suffixed</a>(n:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.i64.html">i64</a>)·-&gt;·<a·class="struct"·href="struct.Literal.html"·title="struct·proc_macro::Literal">Literal</a></h4></section></summary><div·class="docblock"><p>Creates·a·new·suffixed·integer·literal·with·the·specified·value.</p>86 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.i64_suffixed"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1242-1255">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.i64_suffixed"·class="fn">i64_suffixed</a>(n:·<a·class="primitive"·href="../std/primitive.i64.html">i64</a>)·-&gt;·<a·class="struct"·href="struct.Literal.html"·title="struct·proc_macro::Literal">Literal</a></h4></section></summary><div·class="docblock"><p>Creates·a·new·suffixed·integer·literal·with·the·specified·value.</p>
87 <p>This·function·will·create·an·integer·like·<code>1u32</code>·where·the·integer87 <p>This·function·will·create·an·integer·like·<code>1u32</code>·where·the·integer
88 value·specified·is·the·first·part·of·the·token·and·the·integral·is88 value·specified·is·the·first·part·of·the·token·and·the·integral·is
89 also·suffixed·at·the·end.89 also·suffixed·at·the·end.
90 Literals·created·from·negative·numbers·might·not·survive·round-trips·through90 Literals·created·from·negative·numbers·might·not·survive·round-trips·through
91 <code>TokenStream</code>·or·strings·and·may·be·broken·into·two·tokens·(<code>-</code>·and·positive·literal).</p>91 <code>TokenStream</code>·or·strings·and·may·be·broken·into·two·tokens·(<code>-</code>·and·positive·literal).</p>
92 <p>Literals·created·through·this·method·have·the·<code>Span::call_site()</code>92 <p>Literals·created·through·this·method·have·the·<code>Span::call_site()</code>
93 span·by·default,·which·can·be·configured·with·the·<code>set_span</code>·method93 span·by·default,·which·can·be·configured·with·the·<code>set_span</code>·method
94 below.</p>94 below.</p>
95 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.i128_suffixed"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1242-1255">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.i128_suffixed"·class="fn">i128_suffixed</a>(n:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.i128.html">i128</a>)·-&gt;·<a·class="struct"·href="struct.Literal.html"·title="struct·proc_macro::Literal">Literal</a></h4></section></summary><div·class="docblock"><p>Creates·a·new·suffixed·integer·literal·with·the·specified·value.</p>95 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.i128_suffixed"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1242-1255">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.i128_suffixed"·class="fn">i128_suffixed</a>(n:·<a·class="primitive"·href="../std/primitive.i128.html">i128</a>)·-&gt;·<a·class="struct"·href="struct.Literal.html"·title="struct·proc_macro::Literal">Literal</a></h4></section></summary><div·class="docblock"><p>Creates·a·new·suffixed·integer·literal·with·the·specified·value.</p>
96 <p>This·function·will·create·an·integer·like·<code>1u32</code>·where·the·integer96 <p>This·function·will·create·an·integer·like·<code>1u32</code>·where·the·integer
97 value·specified·is·the·first·part·of·the·token·and·the·integral·is97 value·specified·is·the·first·part·of·the·token·and·the·integral·is
98 also·suffixed·at·the·end.98 also·suffixed·at·the·end.
99 Literals·created·from·negative·numbers·might·not·survive·round-trips·through99 Literals·created·from·negative·numbers·might·not·survive·round-trips·through
100 <code>TokenStream</code>·or·strings·and·may·be·broken·into·two·tokens·(<code>-</code>·and·positive·literal).</p>100 <code>TokenStream</code>·or·strings·and·may·be·broken·into·two·tokens·(<code>-</code>·and·positive·literal).</p>
101 <p>Literals·created·through·this·method·have·the·<code>Span::call_site()</code>101 <p>Literals·created·through·this·method·have·the·<code>Span::call_site()</code>
102 span·by·default,·which·can·be·configured·with·the·<code>set_span</code>·method102 span·by·default,·which·can·be·configured·with·the·<code>set_span</code>·method
103 below.</p>103 below.</p>
104 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.isize_suffixed"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1242-1255">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.isize_suffixed"·class="fn">isize_suffixed</a>(n:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.isize.html">isize</a>)·-&gt;·<a·class="struct"·href="struct.Literal.html"·title="struct·proc_macro::Literal">Literal</a></h4></section></summary><div·class="docblock"><p>Creates·a·new·suffixed·integer·literal·with·the·specified·value.</p>104 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.isize_suffixed"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1242-1255">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.isize_suffixed"·class="fn">isize_suffixed</a>(n:·<a·class="primitive"·href="../std/primitive.isize.html">isize</a>)·-&gt;·<a·class="struct"·href="struct.Literal.html"·title="struct·proc_macro::Literal">Literal</a></h4></section></summary><div·class="docblock"><p>Creates·a·new·suffixed·integer·literal·with·the·specified·value.</p>
105 <p>This·function·will·create·an·integer·like·<code>1u32</code>·where·the·integer105 <p>This·function·will·create·an·integer·like·<code>1u32</code>·where·the·integer
106 value·specified·is·the·first·part·of·the·token·and·the·integral·is106 value·specified·is·the·first·part·of·the·token·and·the·integral·is
107 also·suffixed·at·the·end.107 also·suffixed·at·the·end.
108 Literals·created·from·negative·numbers·might·not·survive·round-trips·through108 Literals·created·from·negative·numbers·might·not·survive·round-trips·through
109 <code>TokenStream</code>·or·strings·and·may·be·broken·into·two·tokens·(<code>-</code>·and·positive·literal).</p>109 <code>TokenStream</code>·or·strings·and·may·be·broken·into·two·tokens·(<code>-</code>·and·positive·literal).</p>
110 <p>Literals·created·through·this·method·have·the·<code>Span::call_site()</code>110 <p>Literals·created·through·this·method·have·the·<code>Span::call_site()</code>
111 span·by·default,·which·can·be·configured·with·the·<code>set_span</code>·method111 span·by·default,·which·can·be·configured·with·the·<code>set_span</code>·method
112 below.</p>112 below.</p>
113 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.u8_unsuffixed"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1257-1270">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.u8_unsuffixed"·class="fn">u8_unsuffixed</a>(n:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.u8.html">u8</a>)·-&gt;·<a·class="struct"·href="struct.Literal.html"·title="struct·proc_macro::Literal">Literal</a></h4></section></summary><div·class="docblock"><p>Creates·a·new·unsuffixed·integer·literal·with·the·specified·value.</p>113 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.u8_unsuffixed"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1257-1270">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.u8_unsuffixed"·class="fn">u8_unsuffixed</a>(n:·<a·class="primitive"·href="../std/primitive.u8.html">u8</a>)·-&gt;·<a·class="struct"·href="struct.Literal.html"·title="struct·proc_macro::Literal">Literal</a></h4></section></summary><div·class="docblock"><p>Creates·a·new·unsuffixed·integer·literal·with·the·specified·value.</p>
114 <p>This·function·will·create·an·integer·like·<code>1</code>·where·the·integer114 <p>This·function·will·create·an·integer·like·<code>1</code>·where·the·integer
115 value·specified·is·the·first·part·of·the·token.·No·suffix·is115 value·specified·is·the·first·part·of·the·token.·No·suffix·is
116 specified·on·this·token,·meaning·that·invocations·like116 specified·on·this·token,·meaning·that·invocations·like
117 <code>Literal::i8_unsuffixed(1)</code>·are·equivalent·to117 <code>Literal::i8_unsuffixed(1)</code>·are·equivalent·to
118 <code>Literal::u32_unsuffixed(1)</code>.118 <code>Literal::u32_unsuffixed(1)</code>.
119 Literals·created·from·negative·numbers·might·not·survive·rountrips·through119 Literals·created·from·negative·numbers·might·not·survive·rountrips·through
120 <code>TokenStream</code>·or·strings·and·may·be·broken·into·two·tokens·(<code>-</code>·and·positive·literal).</p>120 <code>TokenStream</code>·or·strings·and·may·be·broken·into·two·tokens·(<code>-</code>·and·positive·literal).</p>
121 <p>Literals·created·through·this·method·have·the·<code>Span::call_site()</code>121 <p>Literals·created·through·this·method·have·the·<code>Span::call_site()</code>
122 span·by·default,·which·can·be·configured·with·the·<code>set_span</code>·method122 span·by·default,·which·can·be·configured·with·the·<code>set_span</code>·method
123 below.</p>123 below.</p>
124 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.u16_unsuffixed"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1257-1270">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.u16_unsuffixed"·class="fn">u16_unsuffixed</a>(n:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.u16.html">u16</a>)·-&gt;·<a·class="struct"·href="struct.Literal.html"·title="struct·proc_macro::Literal">Literal</a></h4></section></summary><div·class="docblock"><p>Creates·a·new·unsuffixed·integer·literal·with·the·specified·value.</p>124 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.u16_unsuffixed"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1257-1270">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.u16_unsuffixed"·class="fn">u16_unsuffixed</a>(n:·<a·class="primitive"·href="../std/primitive.u16.html">u16</a>)·-&gt;·<a·class="struct"·href="struct.Literal.html"·title="struct·proc_macro::Literal">Literal</a></h4></section></summary><div·class="docblock"><p>Creates·a·new·unsuffixed·integer·literal·with·the·specified·value.</p>
125 <p>This·function·will·create·an·integer·like·<code>1</code>·where·the·integer125 <p>This·function·will·create·an·integer·like·<code>1</code>·where·the·integer
126 value·specified·is·the·first·part·of·the·token.·No·suffix·is126 value·specified·is·the·first·part·of·the·token.·No·suffix·is
127 specified·on·this·token,·meaning·that·invocations·like127 specified·on·this·token,·meaning·that·invocations·like
Max diff block lines reached; 79712/116614 bytes (68.36%) of diff not shown.
56.8 KB
./usr/share/doc/rust-doc/html/proc_macro/struct.Punct.html
    
Offset 1, 33 lines modifiedOffset 1, 33 lines modified
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="A·`Punct`·is·a·single·punctuation·character·such·as·`+`,·`-`·or·`#`."><title>Punct·in·proc_macro·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../"·data-static-root-path="../static.files/"·data-current-crate="proc_macro"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../proc_macro/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../proc_macro/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../proc_macro/index.html">proc_<wbr>macro</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»   2025-01-07)»(built»  from»      a»     source»       tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Punct</a></h2><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.as_char"·title="as_char">as_char</a></li><li><a·href="#method.new"·title="new">new</a></li><li><a·href="#method.set_span"·title="set_span">set_span</a></li><li><a·href="#method.spacing"·title="spacing">spacing</a></li><li><a·href="#method.span"·title="span">span</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Send-for-Punct"·title="!Send">!Send</a></li><li><a·href="#impl-Sync-for-Punct"·title="!Sync">!Sync</a></li><li><a·href="#impl-Clone-for-Punct"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-Punct"·title="Debug">Debug</a></li><li><a·href="#impl-Display-for-Punct"·title="Display">Display</a></li><li><a·href="#impl-From%3CPunct%3E-for-TokenTree"·title="From&#60;Punct&#62;">From&#60;Punct&#62;</a></li><li><a·href="#impl-PartialEq%3CPunct%3E-for-char"·title="PartialEq&#60;Punct&#62;">PartialEq&#60;Punct&#62;</a></li><li><a·href="#impl-PartialEq%3Cchar%3E-for-Punct"·title="PartialEq&#60;char&#62;">PartialEq&#60;char&#62;</a></li><li><a·href="#impl-ToTokens-for-Punct"·title="ToTokens">ToTokens</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-Punct"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Punct"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Unpin-for-Punct"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Punct"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-ToString-for-T"·title="ToString">ToString</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2·class="in-crate"><a·href="index.html">In·crate·proc_<wbr>macro</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">proc_macro</a></span><h1>Struct·<span·class="struct">Punct</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#954">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·Punct(<span·class="comment">/*·private·fields·*/</span>);</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>A·<code>Punct</code>·is·a·single·punctuation·character·such·as·<code>+</code>,·<code>-</code>·or·<code>#</code>.</p>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="A·`Punct`·is·a·single·punctuation·character·such·as·`+`,·`-`·or·`#`."><title>Punct·in·proc_macro·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../"·data-static-root-path="../static.files/"·data-current-crate="proc_macro"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../proc_macro/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../proc_macro/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../proc_macro/index.html">proc_<wbr>macro</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»   2025-01-07)»(built»  from»      a»     source»       tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Punct</a></h2><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.as_char"·title="as_char">as_char</a></li><li><a·href="#method.new"·title="new">new</a></li><li><a·href="#method.set_span"·title="set_span">set_span</a></li><li><a·href="#method.spacing"·title="spacing">spacing</a></li><li><a·href="#method.span"·title="span">span</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Send-for-Punct"·title="!Send">!Send</a></li><li><a·href="#impl-Sync-for-Punct"·title="!Sync">!Sync</a></li><li><a·href="#impl-Clone-for-Punct"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-Punct"·title="Debug">Debug</a></li><li><a·href="#impl-Display-for-Punct"·title="Display">Display</a></li><li><a·href="#impl-From%3CPunct%3E-for-TokenTree"·title="From&#60;Punct&#62;">From&#60;Punct&#62;</a></li><li><a·href="#impl-PartialEq%3CPunct%3E-for-char"·title="PartialEq&#60;Punct&#62;">PartialEq&#60;Punct&#62;</a></li><li><a·href="#impl-PartialEq%3Cchar%3E-for-Punct"·title="PartialEq&#60;char&#62;">PartialEq&#60;char&#62;</a></li><li><a·href="#impl-ToTokens-for-Punct"·title="ToTokens">ToTokens</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-Punct"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Punct"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Unpin-for-Punct"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Punct"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-ToString-for-T"·title="ToString">ToString</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2·class="in-crate"><a·href="index.html">In·crate·proc_<wbr>macro</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">proc_macro</a></span><h1>Struct·<span·class="struct">Punct</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#954">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·Punct(<span·class="comment">/*·private·fields·*/</span>);</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>A·<code>Punct</code>·is·a·single·punctuation·character·such·as·<code>+</code>,·<code>-</code>·or·<code>#</code>.</p>
2 <p>Multi-character·operators·like·<code>+=</code>·are·represented·as·two·instances·of·<code>Punct</code>·with·different2 <p>Multi-character·operators·like·<code>+=</code>·are·represented·as·two·instances·of·<code>Punct</code>·with·different
3 forms·of·<code>Spacing</code>·returned.</p>3 forms·of·<code>Spacing</code>·returned.</p>
4 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Punct"·class="impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#989-1037">Source</a><a·href="#impl-Punct"·class="anchor">§</a><h3·class="code-header">impl·<a·class="struct"·href="struct.Punct.html"·title="struct·proc_macro::Punct">Punct</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.new"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#997-1010">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.new"·class="fn">new</a>(ch:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.char.html">char</a>,·spacing:·<a·class="enum"·href="enum.Spacing.html"·title="enum·proc_macro::Spacing">Spacing</a>)·-&gt;·<a·class="struct"·href="struct.Punct.html"·title="struct·proc_macro::Punct">Punct</a></h4></section></summary><div·class="docblock"><p>Creates·a·new·<code>Punct</code>·from·the·given·character·and·spacing.4 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Punct"·class="impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#989-1037">Source</a><a·href="#impl-Punct"·class="anchor">§</a><h3·class="code-header">impl·<a·class="struct"·href="struct.Punct.html"·title="struct·proc_macro::Punct">Punct</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.new"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#997-1010">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.new"·class="fn">new</a>(ch:·<a·class="primitive"·href="../std/primitive.char.html">char</a>,·spacing:·<a·class="enum"·href="enum.Spacing.html"·title="enum·proc_macro::Spacing">Spacing</a>)·-&gt;·<a·class="struct"·href="struct.Punct.html"·title="struct·proc_macro::Punct">Punct</a></h4></section></summary><div·class="docblock"><p>Creates·a·new·<code>Punct</code>·from·the·given·character·and·spacing.
5 The·<code>ch</code>·argument·must·be·a·valid·punctuation·character·permitted·by·the·language,5 The·<code>ch</code>·argument·must·be·a·valid·punctuation·character·permitted·by·the·language,
6 otherwise·the·function·will·panic.</p>6 otherwise·the·function·will·panic.</p>
7 <p>The·returned·<code>Punct</code>·will·have·the·default·span·of·<code>Span::call_site()</code>7 <p>The·returned·<code>Punct</code>·will·have·the·default·span·of·<code>Span::call_site()</code>
8 which·can·be·further·configured·with·the·<code>set_span</code>·method·below.</p>8 which·can·be·further·configured·with·the·<code>set_span</code>·method·below.</p>
9 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.as_char"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1014-1016">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.as_char"·class="fn">as_char</a>(&amp;self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.char.html">char</a></h4></section></summary><div·class="docblock"><p>Returns·the·value·of·this·punctuation·character·as·<code>char</code>.</p>9 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.as_char"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1014-1016">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.as_char"·class="fn">as_char</a>(&amp;self)·-&gt;·<a·class="primitive"·href="../std/primitive.char.html">char</a></h4></section></summary><div·class="docblock"><p>Returns·the·value·of·this·punctuation·character·as·<code>char</code>.</p>
10 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.spacing"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1022-1024">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.spacing"·class="fn">spacing</a>(&amp;self)·-&gt;·<a·class="enum"·href="enum.Spacing.html"·title="enum·proc_macro::Spacing">Spacing</a></h4></section></summary><div·class="docblock"><p>Returns·the·spacing·of·this·punctuation·character,·indicating·whether·it·can·be·potentially10 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.spacing"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1022-1024">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.spacing"·class="fn">spacing</a>(&amp;self)·-&gt;·<a·class="enum"·href="enum.Spacing.html"·title="enum·proc_macro::Spacing">Spacing</a></h4></section></summary><div·class="docblock"><p>Returns·the·spacing·of·this·punctuation·character,·indicating·whether·it·can·be·potentially
11 combined·into·a·multi-character·operator·with·the·following·token·(<code>Joint</code>),·or·whether·the11 combined·into·a·multi-character·operator·with·the·following·token·(<code>Joint</code>),·or·whether·the
12 operator·has·definitely·ended·(<code>Alone</code>).</p>12 operator·has·definitely·ended·(<code>Alone</code>).</p>
13 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.span"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1028-1030">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.span"·class="fn">span</a>(&amp;self)·-&gt;·<a·class="struct"·href="struct.Span.html"·title="struct·proc_macro::Span">Span</a></h4></section></summary><div·class="docblock"><p>Returns·the·span·for·this·punctuation·character.</p>13 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.span"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1028-1030">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.span"·class="fn">span</a>(&amp;self)·-&gt;·<a·class="struct"·href="struct.Span.html"·title="struct·proc_macro::Span">Span</a></h4></section></summary><div·class="docblock"><p>Returns·the·span·for·this·punctuation·character.</p>
14 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.set_span"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1034-1036">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.set_span"·class="fn">set_span</a>(&amp;mut·self,·span:·<a·class="struct"·href="struct.Span.html"·title="struct·proc_macro::Span">Span</a>)</h4></section></summary><div·class="docblock"><p>Configure·the·span·for·this·punctuation·character.</p>14 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.set_span"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1034-1036">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.set_span"·class="fn">set_span</a>(&amp;mut·self,·span:·<a·class="struct"·href="struct.Span.html"·title="struct·proc_macro::Span">Span</a>)</h4></section></summary><div·class="docblock"><p>Configure·the·span·for·this·punctuation·character.</p>
15 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-Punct"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#953">Source</a></span><a·href="#impl-Clone-for-Punct"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struct"·href="struct.Punct.html"·title="struct·proc_macro::Punct">Punct</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#953">Source</a><a·href="#method.clone"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/clone/trait.Clone.html#tymethod.clone"·class="fn">clone</a>(&amp;self)·-&gt;·<a·class="struct"·href="struct.Punct.html"·title="struct·proc_macro::Punct">Punct</a></h4></section></summary><div·class='docblock'>Returns·a·copy·of·the·value.·<a·href="../core/clone/trait.Clone.html#tymethod.clone">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_from"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../src/core/clone.rs.html#174">Source</a></span><a·href="#method.clone_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/clone/trait.Clone.html#method.clone_from"·class="fn">clone_from</a>(&amp;mut·self,·source:·&amp;Self)</h4></section></summary><div·class='docblock'>Performs·copy-assignment·from·<code>source</code>.·<a·href="../core/clone/trait.Clone.html#method.clone_from">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-Punct"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1057-1065">Source</a></span><a·href="#impl-Debug-for-Punct"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/fmt/trait.Debug.html"·title="trait·core::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.Punct.html"·title="struct·proc_macro::Punct">Punct</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt-1"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#1058-1064">Source</a><a·href="#method.fmt-1"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="../core/fmt/struct.Formatter.html"·title="struct·core::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="type"·href="../core/fmt/type.Result.html"·title="type·core::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Display-for-Punct"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1050-1054">Source</a></span><a·href="#impl-Display-for-Punct"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/fmt/trait.Display.html"·title="trait·core::fmt::Display">Display</a>·for·<a·class="struct"·href="struct.Punct.html"·title="struct·proc_macro::Punct">Punct</a></h3></section></summary><div·class="docblock"><p>Prints·the·punctuation·character·as·a·string·that·should·be·losslessly·convertible15 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-Punct"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#953">Source</a></span><a·href="#impl-Clone-for-Punct"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struct"·href="struct.Punct.html"·title="struct·proc_macro::Punct">Punct</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#953">Source</a><a·href="#method.clone"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/clone/trait.Clone.html#tymethod.clone"·class="fn">clone</a>(&amp;self)·-&gt;·<a·class="struct"·href="struct.Punct.html"·title="struct·proc_macro::Punct">Punct</a></h4></section></summary><div·class='docblock'>Returns·a·copy·of·the·value.·<a·href="../core/clone/trait.Clone.html#tymethod.clone">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_from"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../src/core/clone.rs.html#174">Source</a></span><a·href="#method.clone_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/clone/trait.Clone.html#method.clone_from"·class="fn">clone_from</a>(&amp;mut·self,·source:·&amp;Self)</h4></section></summary><div·class='docblock'>Performs·copy-assignment·from·<code>source</code>.·<a·href="../core/clone/trait.Clone.html#method.clone_from">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-Punct"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1057-1065">Source</a></span><a·href="#impl-Debug-for-Punct"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/fmt/trait.Debug.html"·title="trait·core::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.Punct.html"·title="struct·proc_macro::Punct">Punct</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt-1"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#1058-1064">Source</a><a·href="#method.fmt-1"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="../core/fmt/struct.Formatter.html"·title="struct·core::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="type"·href="../core/fmt/type.Result.html"·title="type·core::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Display-for-Punct"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1050-1054">Source</a></span><a·href="#impl-Display-for-Punct"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/fmt/trait.Display.html"·title="trait·core::fmt::Display">Display</a>·for·<a·class="struct"·href="struct.Punct.html"·title="struct·proc_macro::Punct">Punct</a></h3></section></summary><div·class="docblock"><p>Prints·the·punctuation·character·as·a·string·that·should·be·losslessly·convertible
16 back·into·the·same·character.</p>16 back·into·the·same·character.</p>
17 </div><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#1051-1053">Source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/fmt/trait.Display.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="../core/fmt/struct.Formatter.html"·title="struct·core::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="type"·href="../core/fmt/type.Result.html"·title="type·core::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../core/fmt/trait.Display.html#tymethod.fmt">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-From%3CPunct%3E-for-TokenTree"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#747-751">Source</a></span><a·href="#impl-From%3CPunct%3E-for-TokenTree"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;<a·class="struct"·href="struct.Punct.html"·title="struct·proc_macro::Punct">Punct</a>&gt;·for·<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#748-750">Source</a><a·href="#method.from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(g:·<a·class="struct"·href="struct.Punct.html"·title="struct·proc_macro::Punct">Punct</a>)·-&gt;·<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a></h4></section></summary><div·class='docblock'>Converts·to·this·type·from·the·input·type.</div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-PartialEq%3CPunct%3E-for-char"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.52.0">1.52.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1075-1079">Source</a></span><a·href="#impl-PartialEq%3CPunct%3E-for-char"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/cmp/trait.PartialEq.html"·title="trait·core::cmp::PartialEq">PartialEq</a>&lt;<a·class="struct"·href="struct.Punct.html"·title="struct·proc_macro::Punct">Punct</a>&gt;·for·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.char.html">char</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.eq-1"·class="method·trait-impl"><a·class="src·rightside"·href="../src[·...·truncated·by·diffoscope;·len:·1158,·SHA:·a0c49a15fc42a7efcf43b46723794af45ee4d3571d95e1d2ed3fbcb21ba27e16·...·]/std/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>!=</code>.·The·default·implementation·is·almost·always·sufficient,17 </div><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#1051-1053">Source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/fmt/trait.Display.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="../core/fmt/struct.Formatter.html"·title="struct·core::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="type"·href="../core/fmt/type.Result.html"·title="type·core::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../core/fmt/trait.Display.html#tymethod.fmt">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-From%3CPunct%3E-for-TokenTree"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#747-751">Source</a></span><a·href="#impl-From%3CPunct%3E-for-TokenTree"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;<a·class="struct"·href="struct.Punct.html"·title="struct·proc_macro::Punct">Punct</a>&gt;·for·<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#748-750">Source</a><a·href="#method.from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(g:·<a·class="struct"·href="struct.Punct.html"·title="struct·proc_macro::Punct">Punct</a>)·-&gt;·<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a></h4></section></summary><div·class='docblock'>Converts·to·this·type·from·the·input·type.</div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-PartialEq%3CPunct%3E-for-char"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.52.0">1.52.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1075-1079">Source</a></span><a·href="#impl-PartialEq%3CPunct%3E-for-char"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/cmp/trait.PartialEq.html"·title="trait·core::cmp::PartialEq">PartialEq</a>&lt;<a·class="struct"·href="struct.Punct.html"·title="struct·proc_macro::Punct">Punct</a>&gt;·for·<a·class="primitive"·href="../std/primitive.char.html">char</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.eq-1"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#1076-1[·...·truncated·by·diffoscope;·len:·1038,·SHA:·fac59aaabf791440d3455d5e03e418aad10d52b8a2884789fe257df837c21ab8·...·]/std/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>!=</code>.·The·default·implementation·is·almost·always·sufficient,
18 and·should·not·be·overridden·without·very·good·reason.</div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-PartialEq%3Cchar%3E-for-Punct"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.50.0">1.50.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1068-1072">Source</a></span><a·href="#impl-PartialEq%3Cchar%3E-for-Punct"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/cmp/trait.PartialEq.html"·title="trait·core::cmp::PartialEq">PartialEq</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.char.html">char</a>&gt;·for·<a·class="struct"·href="struct.Punct.html"·title="struct·proc_macro::Punct">Punct</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><sum[·...·truncated·by·diffoscope;·len:·1252,·SHA:·ff7669ceb2b19449ffced096a667641b592edc5332895b02c0acf741252c35ce·...·]/std/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>!=</code>.·The·default·implementation·is·almost·always·sufficient,18 and·should·not·be·overridden·without·very·good·reason.</div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-PartialEq%3Cchar%3E-for-Punct"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.50.0">1.50.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1068-1072">Source</a></span><a·href="#impl-PartialEq%3Cchar%3E-for-Punct"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/cmp/trait.PartialEq.html"·title="trait·core::cmp::PartialEq">PartialEq</a>&lt;<a·class="primitive"·href="../std/primitive.char.html">char</a>&gt;·for·<a·class="struct"·href="struct.Punct.html"·title="struct·proc_macro::Punct">Punct</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.eq"·c[·...·truncated·by·diffoscope;·len:·1102,·SHA:·ebcc544e7fdd5a909aa06c55ce663532045c5c9792736f91fdcc92a096c0ac21·...·]/std/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>!=</code>.·The·default·implementation·is·almost·always·sufficient,
19 and·should·not·be·overridden·without·very·good·reason.</div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-ToTokens-for-Punct"·class="impl"><a·class="src·rightside"·href="../src/proc_macro/to_tokens.rs.html#114-118">Source</a><a·href="#impl-ToTokens-for-Punct"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="trait.ToTokens.html"·title="trait·proc_macro::ToTokens">ToTokens</a>·for·<a·class="struct"·href="struct.Punct.html"·title="struct·proc_macro::Punct">Punct</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.to_tokens"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/to_tokens.rs.html#115-117">Source</a><a·href="#method.to_tokens"·class="anchor">§</a><h4·class="code-header">fn·<a·href="trait.ToTokens.html#tymethod.to_tokens"·class="fn">to_tokens</a>(&amp;self,·tokens:·&amp;mut·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_totokens</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/130977">#130977</a>)</span></div></span><div·class='docblock'>Write·<code>self</code>·to·the·given·<code>TokenStream</code>.·<a·href="trait.ToTokens.html#tymethod.to_tokens">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.to_token_stream"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/to_tokens.rs.html#57-61">Source</a><a·href="#method.to_token_stream"·class="anchor">§</a><h4·class="code-header">fn·<a·href="trait.ToTokens.html#method.to_token_stream"·class="fn">to_token_stream</a>(&amp;self)·-&gt;·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_totokens</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/130977">#130977</a>)</span></div></span><div·class='docblock'>Convert·<code>self</code>·directly·into·a·<code>TokenStream</code>·object.·<a·href="trait.ToTokens.html#method.to_token_stream">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.into_token_stream"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/to_tokens.rs.html#67-72">Source</a><a·href="#method.into_token_stream"·class="anchor">§</a><h4·class="code-header">fn·<a·href="trait.ToTokens.html#method.into_token_stream"·class="fn">into_token_stream</a>(self)·-&gt;·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a><div·class="where">where19 and·should·not·be·overridden·without·very·good·reason.</div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-ToTokens-for-Punct"·class="impl"><a·class="src·rightside"·href="../src/proc_macro/to_tokens.rs.html#114-118">Source</a><a·href="#impl-ToTokens-for-Punct"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="trait.ToTokens.html"·title="trait·proc_macro::ToTokens">ToTokens</a>·for·<a·class="struct"·href="struct.Punct.html"·title="struct·proc_macro::Punct">Punct</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.to_tokens"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/to_tokens.rs.html#115-117">Source</a><a·href="#method.to_tokens"·class="anchor">§</a><h4·class="code-header">fn·<a·href="trait.ToTokens.html#tymethod.to_tokens"·class="fn">to_tokens</a>(&amp;self,·tokens:·&amp;mut·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_totokens</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/130977">#130977</a>)</span></div></span><div·class='docblock'>Write·<code>self</code>·to·the·given·<code>TokenStream</code>.·<a·href="trait.ToTokens.html#tymethod.to_tokens">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.to_token_stream"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/to_tokens.rs.html#57-61">Source</a><a·href="#method.to_token_stream"·class="anchor">§</a><h4·class="code-header">fn·<a·href="trait.ToTokens.html#method.to_token_stream"·class="fn">to_token_stream</a>(&amp;self)·-&gt;·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_totokens</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/130977">#130977</a>)</span></div></span><div·class='docblock'>Convert·<code>self</code>·directly·into·a·<code>TokenStream</code>·object.·<a·href="trait.ToTokens.html#method.to_token_stream">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.into_token_stream"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/to_tokens.rs.html#67-72">Source</a><a·href="#method.into_token_stream"·class="anchor">§</a><h4·class="code-header">fn·<a·href="trait.ToTokens.html#method.into_token_stream"·class="fn">into_token_stream</a>(self)·-&gt;·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a><div·class="where">where
20 ····Self:·<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_totokens</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/130977">#130977</a>)</span></div></span><div·class='docblock'>Convert·<code>self</code>·directly·into·a·<code>TokenStream</code>·object.·<a·href="trait.ToTokens.html#method.into_token_stream">Read·more</a></div></details></div></details><section·id="impl-Send-for-Punct"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#957">Source</a></span><a·href="#impl-Send-for-Punct"·class="anchor">§</a><h3·class="code-header">impl·!<a·class="trait"·href="../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="struct"·href="struct.Punct.html"·title="struct·proc_macro::Punct">Punct</a></h3></section><section·id="impl-Sync-for-Punct"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#959">Source</a></span><a·href="#impl-Sync-for-Punct"·class="anchor">§</a><h3·class="code-header">impl·!<a·class="trait"·href="../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="struct"·href="struct.Punct.html"·title="struct·proc_macro::Punct">Punct</a></h3></section></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-Punct"·class="impl"><a·href="#impl-Freeze-for-Punct"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="struct"·href="struct.Punct.html"·title="struct·proc_macro::Punct">Punct</a></h3></section><section·id="impl-RefUnwindSafe-for-Punct"·class="impl"><a·href="#impl-RefUnwindSafe-for-Punct"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="struct"·href="struct.Punct.html"·title="struct·proc_macro::Punct">Punct</a></h3></section><section·id="impl-Unpin-for-Punct"·class="impl"><a·href="#impl-Unpin-for-Punct"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="struct"·href="struct.Punct.html"·title="struct·proc_macro::Punct">Punct</a></h3></section><section·id="impl-UnwindSafe-for-Punct"·class="impl"><a·href="#impl-UnwindSafe-for-Punct"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="struct"·href="struct.Punct.html"·title="struct·proc_macro::Punct">Punct</a></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementations<a·href="#blanket-implementations"·class="anchor">§</a></h2><div·id="blanket-implementations-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-Any-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/any.rs.html#138">Source</a><a·href="#impl-Any-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where20 ····Self:·<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_totokens</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/130977">#130977</a>)</span></div></span><div·class='docblock'>Convert·<code>self</code>·directly·into·a·<code>TokenStream</code>·object.·<a·href="trait.ToTokens.html#method.into_token_stream">Read·more</a></div></details></div></details><section·id="impl-Send-for-Punct"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#957">Source</a></span><a·href="#impl-Send-for-Punct"·class="anchor">§</a><h3·class="code-header">impl·!<a·class="trait"·href="../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="struct"·href="struct.Punct.html"·title="struct·proc_macro::Punct">Punct</a></h3></section><section·id="impl-Sync-for-Punct"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#959">Source</a></span><a·href="#impl-Sync-for-Punct"·class="anchor">§</a><h3·class="code-header">impl·!<a·class="trait"·href="../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="struct"·href="struct.Punct.html"·title="struct·proc_macro::Punct">Punct</a></h3></section></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-Punct"·class="impl"><a·href="#impl-Freeze-for-Punct"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="struct"·href="struct.Punct.html"·title="struct·proc_macro::Punct">Punct</a></h3></section><section·id="impl-RefUnwindSafe-for-Punct"·class="impl"><a·href="#impl-RefUnwindSafe-for-Punct"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="struct"·href="struct.Punct.html"·title="struct·proc_macro::Punct">Punct</a></h3></section><section·id="impl-Unpin-for-Punct"·class="impl"><a·href="#impl-Unpin-for-Punct"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="struct"·href="struct.Punct.html"·title="struct·proc_macro::Punct">Punct</a></h3></section><section·id="impl-UnwindSafe-for-Punct"·class="impl"><a·href="#impl-UnwindSafe-for-Punct"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="struct"·href="struct.Punct.html"·title="struct·proc_macro::Punct">Punct</a></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementations<a·href="#blanket-implementations"·class="anchor">§</a></h2><div·id="blanket-implementations-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-Any-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/any.rs.html#138">Source</a><a·href="#impl-Any-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where
21 ····T:·'static·+·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/any.rs.html#139">Source</a><a·href="#method.type_id"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/any/trait.Any.html#tymethod.type_id"·class="fn">type_id</a>(&amp;self)·-&gt;·<a·class="struct"·href="../core/any/struct.TypeId.html"·title="struct·core::any::TypeId">TypeId</a></h4></section></summary><div·class='docblock'>Gets·the·<code>TypeId</code>·of·<code>self</code>.·<a·href="../core/any/trait.Any.html#tymethod.type_id">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Borrow%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/borrow/trait.Borrow.html"·title="trait·core::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where21 ····T:·'static·+·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/any.rs.html#139">Source</a><a·href="#method.type_id"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/any/trait.Any.html#tymethod.type_id"·class="fn">type_id</a>(&amp;self)·-&gt;·<a·class="struct"·href="../core/any/struct.TypeId.html"·title="struct·core::any::TypeId">TypeId</a></h4></section></summary><div·class='docblock'>Gets·the·<code>TypeId</code>·of·<code>self</code>.·<a·href="../core/any/trait.Any.html#tymethod.type_id">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Borrow%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/borrow/trait.Borrow.html"·title="trait·core::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where
22 ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#211">Source</a><a·href="#method.borrow"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow"·class="fn">borrow</a>(&amp;self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;T</a></h4></section></summary><div·class='docblock'>Immutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-BorrowMut%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/borrow/trait.BorrowMut.html"·title="trait·core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where22 ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#211">Source</a><a·href="#method.borrow"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow"·class="fn">borrow</a>(&amp;self)·-&gt;·<a·class="primitive"·href="../std/primitive.reference.html">&amp;T</a></h4></section></summary><div·class='docblock'>Immutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-BorrowMut%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/borrow/trait.BorrowMut.html"·title="trait·core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where
23 ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#218">Source</a><a·href="#method.borrow_mut"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"·class="fn">borrow_mut</a>(&amp;mut·self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;mut·T</a></h4></section></summary><div·class='docblock'>Mutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-CloneToUninit-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#273">Source</a><a·href="#impl-CloneToUninit-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where23 ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#218">Source</a><a·href="#method.borrow_mut"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"·class="fn">borrow_mut</a>(&amp;mut·self)·-&gt;·<a·class="primitive"·href="../std/primitive.reference.html">&amp;mut·T</a></h4></section></summary><div·class='docblock'>Mutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-CloneToUninit-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#273">Source</a><a·href="#impl-CloneToUninit-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where
24 ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#275">Source</a><a·href="#method.clone_to_uninit"·class="anchor">§</a><h4·class="code-header">unsafe·fn·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit"·class="fn">clone_to_uninit</a>(&amp;self,·dst:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.pointer.html">*mut·</a><a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.u8.html">u8</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>clone_to_uninit</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/126799">#126799</a>)</span></div></span><div·class='docblock'>Performs·copy-assignment·from·<code>self</code>·to·<code>dst</code>.·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-From%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#765">Source</a><a·href="#impl-From%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·T</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from-1"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#768">Source</a><a·href="#method.from-1"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>24 ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#275">Source</a><a·href="#method.clone_to_uninit"·class="anchor">§</a><h4·class="code-header">unsafe·fn·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit"·class="fn">clone_to_uninit</a>(&amp;self,·dst:·<a·class="primitive"·href="../std/primitive.pointer.html">*mut·</a><a·class="primitive"·href="../std/primitive.u8.html">u8</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>clone_to_uninit</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/126799">#126799</a>)</span></div></span><div·class='docblock'>Performs·copy-assignment·from·<code>self</code>·to·<code>dst</code>.·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-From%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#765">Source</a><a·href="#impl-From%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·T</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from-1"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#768">Source</a><a·href="#method.from-1"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>
25 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where25 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where
26 ····U:·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#758">Source</a><a·href="#method.into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>26 ····U:·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#758">Source</a><a·href="#method.into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>
27 <p>That·is,·this·conversion·is·whatever·the·implementation·of27 <p>That·is,·this·conversion·is·whatever·the·implementation·of
28 <code><a·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>28 <code><a·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>
29 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#82-84">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../alloc/borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where29 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#82-84">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../alloc/borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where
30 ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#86">Source</a><a·href="#associatedtype.Owned"·class="anchor">§</a><h4·class="code-header">type·<a·href="../alloc/borrow/trait.ToOwned.html#associatedtype.Owned"·class="associatedtype">Owned</a>·=·T</h4></section></summary><div·class='docblock'>The·resulting·type·after·obtaining·ownership.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.to_owned"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#87">Source</a><a·href="#method.to_owned"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned"·class="fn">to_owned</a>(&amp;self)·-&gt;·T</h4></section></summary><div·class='docblock'>Creates·owned·data·from·borrowed·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#91">Source</a><a·href="#method.clone_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into"·class="fn">clone_into</a>(&amp;self,·target:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToString-for-T"·class="impl"><a·class="src·rightside"·href="../src/alloc/string.rs.html#2677">Source</a><a·href="#impl-ToString-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../alloc/string/trait.ToString.html"·title="trait·alloc::string::ToString">ToString</a>·for·T<div·class="where">where30 ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#86">Source</a><a·href="#associatedtype.Owned"·class="anchor">§</a><h4·class="code-header">type·<a·href="../alloc/borrow/trait.ToOwned.html#associatedtype.Owned"·class="associatedtype">Owned</a>·=·T</h4></section></summary><div·class='docblock'>The·resulting·type·after·obtaining·ownership.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.to_owned"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#87">Source</a><a·href="#method.to_owned"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned"·class="fn">to_owned</a>(&amp;self)·-&gt;·T</h4></section></summary><div·class='docblock'>Creates·owned·data·from·borrowed·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#91">Source</a><a·href="#method.clone_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into"·class="fn">clone_into</a>(&amp;self,·target:·<a·class="primitive"·href="../std/primitive.reference.html">&amp;mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToString-for-T"·class="impl"><a·class="src·rightside"·href="../src/alloc/string.rs.html#2677">Source</a><a·href="#impl-ToString-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../alloc/string/trait.ToString.html"·title="trait·alloc::string::ToString">ToString</a>·for·T<div·class="where">where
31 ····T:·<a·class="trait"·href="../core/fmt/trait.Display.html"·title="trait·core::fmt::Display">Display</a>·+·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.to_string"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/string.rs.html#2683">Source</a><a·href="#method.to_string"·class="anchor">§</a><h4·class="code-header">default·fn·<a·href="../alloc/string/trait.ToString.html#tymethod.to_string"·class="fn">to_string</a>(&amp;self)·-&gt;·<a·class="struct"·href="../alloc/string/struct.String.html"·title="struct·alloc::string::String">String</a></h4></section></summary><div·class='docblock'>Converts·the·given·value·to·a·<code>String</code>.·<a·href="../alloc/string/trait.ToString.html#tymethod.to_string">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#805-807">Source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where31 ····T:·<a·class="trait"·href="../core/fmt/trait.Display.html"·title="trait·core::fmt::Display">Display</a>·+·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.to_string"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/string.rs.html#2683">Source</a><a·href="#method.to_string"·class="anchor">§</a><h4·class="code-header">default·fn·<a·href="../alloc/string/trait.ToString.html#tymethod.to_string"·class="fn">to_string</a>(&amp;self)·-&gt;·<a·class="struct"·href="../alloc/string/struct.String.html"·title="struct·alloc::string::String">String</a></h4></section></summary><div·class='docblock'>Converts·the·given·value·to·a·<code>String</code>.·<a·href="../alloc/string/trait.ToString.html#tymethod.to_string">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#805-807">Source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where
32 ····U:·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#809">Source</a><a·href="#associatedtype.Error-1"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<a·class="enum"·href="../core/convert/enum.Infallible.html"·title="enum·core::convert::Infallible">Infallible</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#812">Source</a><a·href="#method.try_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryFrom.html#tymethod.try_from"·class="fn">try_from</a>(value:·U)·-&gt;·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;T,·&lt;T·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryInto%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#790-792">Source</a><a·href="#impl-TryInto%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where32 ····U:·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#809">Source</a><a·href="#associatedtype.Error-1"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<a·class="enum"·href="../core/convert/enum.Infallible.html"·title="enum·core::convert::Infallible">Infallible</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#812">Source</a><a·href="#method.try_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryFrom.html#tymethod.try_from"·class="fn">try_from</a>(value:·U)·-&gt;·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;T,·&lt;T·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryInto%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#790-792">Source</a><a·href="#impl-TryInto%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where
33 ····U:·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#794">Source</a><a·href="#associatedtype.Error"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryInto.html#associatedtype.Error"·class="associatedtype">Error</a>·=·&lt;U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#797">Source</a><a·href="#method.try_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryInto.html#tymethod.try_into"·class="fn">try_into</a>(self)·-&gt;·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;U,·&lt;U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>33 ····U:·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#794">Source</a><a·href="#associatedtype.Error"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryInto.html#associatedtype.Error"·class="associatedtype">Error</a>·=·&lt;U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#797">Source</a><a·href="#method.try_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryInto.html#tymethod.try_into"·class="fn">try_into</a>(self)·-&gt;·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;U,·&lt;U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>
43.8 KB
./usr/share/doc/rust-doc/html/proc_macro/struct.SourceFile.html
    
Offset 1, 23 lines modifiedOffset 1, 23 lines modified
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="The·source·file·of·a·given·`Span`."><title>SourceFile·in·proc_macro·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../"·data-static-root-path="../static.files/"·data-current-crate="proc_macro"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../proc_macro/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../proc_macro/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../proc_macro/index.html">proc_<wbr>macro</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»  2025-01-07)»       (built» from»     a»    source»      tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Source<wbr>File</a></h2><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.is_real"·title="is_real">is_real</a></li><li><a·href="#method.path"·title="path">path</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-SourceFile"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-SourceFile"·title="Debug">Debug</a></li><li><a·href="#impl-Eq-for-SourceFile"·title="Eq">Eq</a></li><li><a·href="#impl-PartialEq-for-SourceFile"·title="PartialEq">PartialEq</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Send-for-SourceFile"·title="!Send">!Send</a></li><li><a·href="#impl-Sync-for-SourceFile"·title="!Sync">!Sync</a></li><li><a·href="#impl-Freeze-for-SourceFile"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-SourceFile"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Unpin-for-SourceFile"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-SourceFile"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2·class="in-crate"><a·href="index.html">In·crate·proc_<wbr>macro</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">proc_macro</a></span><h1>Struct·<span·class="struct">SourceFile</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/proc_macro/lib.rs.html#616">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·SourceFile(<span·class="comment">/*·private·fields·*/</span>);</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_span</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/54725">#54725</a>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>The·source·file·of·a·given·<code>Span</code>.</p>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="The·source·file·of·a·given·`Span`."><title>SourceFile·in·proc_macro·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../"·data-static-root-path="../static.files/"·data-current-crate="proc_macro"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../proc_macro/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../proc_macro/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../proc_macro/index.html">proc_<wbr>macro</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»  2025-01-07)»       (built» from»     a»    source»      tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Source<wbr>File</a></h2><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.is_real"·title="is_real">is_real</a></li><li><a·href="#method.path"·title="path">path</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-SourceFile"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-SourceFile"·title="Debug">Debug</a></li><li><a·href="#impl-Eq-for-SourceFile"·title="Eq">Eq</a></li><li><a·href="#impl-PartialEq-for-SourceFile"·title="PartialEq">PartialEq</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Send-for-SourceFile"·title="!Send">!Send</a></li><li><a·href="#impl-Sync-for-SourceFile"·title="!Sync">!Sync</a></li><li><a·href="#impl-Freeze-for-SourceFile"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-SourceFile"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Unpin-for-SourceFile"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-SourceFile"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2·class="in-crate"><a·href="index.html">In·crate·proc_<wbr>macro</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">proc_macro</a></span><h1>Struct·<span·class="struct">SourceFile</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/proc_macro/lib.rs.html#616">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·SourceFile(<span·class="comment">/*·private·fields·*/</span>);</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_span</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/54725">#54725</a>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>The·source·file·of·a·given·<code>Span</code>.</p>
2 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-SourceFile"·class="impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#618-643">Source</a><a·href="#impl-SourceFile"·class="anchor">§</a><h3·class="code-header">impl·<a·class="struct"·href="struct.SourceFile.html"·title="struct·proc_macro::SourceFile">SourceFile</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.path"·class="method"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#630-632">Source</a><h4·class="code-header">pub·fn·<a·href="#method.path"·class="fn">path</a>(&amp;self)·-&gt;·<a·class="struct"·href="https://doc.rust-lang.org/1.84.0/std/path/struct.PathBuf.html"·title="struct·std::path::PathBuf">PathBuf</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_span</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/54725">#54725</a>)</span></div></span></summary><div·class="docblock"><p>Gets·the·path·to·this·source·file.</p>2 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-SourceFile"·class="impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#618-643">Source</a><a·href="#impl-SourceFile"·class="anchor">§</a><h3·class="code-header">impl·<a·class="struct"·href="struct.SourceFile.html"·title="struct·proc_macro::SourceFile">SourceFile</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.path"·class="method"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#630-632">Source</a><h4·class="code-header">pub·fn·<a·href="#method.path"·class="fn">path</a>(&amp;self)·-&gt;·<a·class="struct"·href="../std/path/struct.PathBuf.html"·title="struct·std::path::PathBuf">PathBuf</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_span</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/54725">#54725</a>)</span></div></span></summary><div·class="docblock"><p>Gets·the·path·to·this·source·file.</p>
3 <h6·id="note"><a·class="doc-anchor"·href="#note">§</a>Note</h6>3 <h6·id="note"><a·class="doc-anchor"·href="#note">§</a>Note</h6>
4 <p>If·the·code·span·associated·with·this·<code>SourceFile</code>·was·generated·by·an·external·macro,·this4 <p>If·the·code·span·associated·with·this·<code>SourceFile</code>·was·generated·by·an·external·macro,·this
5 macro,·this·might·not·be·an·actual·path·on·the·filesystem.·Use·<a·href="struct.SourceFile.html#method.is_real"·title="method·proc_macro::SourceFile::is_real"><code>is_real</code></a>·to·check.</p>5 macro,·this·might·not·be·an·actual·path·on·the·filesystem.·Use·<a·href="struct.SourceFile.html#method.is_real"·title="method·proc_macro::SourceFile::is_real"><code>is_real</code></a>·to·check.</p>
6 <p>Also·note·that·even·if·<code>is_real</code>·returns·<code>true</code>,·if·<code>--remap-path-prefix</code>·was·passed·on6 <p>Also·note·that·even·if·<code>is_real</code>·returns·<code>true</code>,·if·<code>--remap-path-prefix</code>·was·passed·on
7 the·command·line,·the·path·as·given·might·not·actually·be·valid.</p>7 the·command·line,·the·path·as·given·might·not·actually·be·valid.</p>
8 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_real"·class="method"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#637-642">Source</a><h4·class="code-header">pub·fn·<a·href="#method.is_real"·class="fn">is_real</a>(&amp;self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_span</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/54725">#54725</a>)</span></div></span></summary><div·class="docblock"><p>Returns·<code>true</code>·if·this·source·file·is·a·real·source·file,·and·not·generated·by·an·external8 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_real"·class="method"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#637-642">Source</a><h4·class="code-header">pub·fn·<a·href="#method.is_real"·class="fn">is_real</a>(&amp;self)·-&gt;·<a·class="primitive"·href="../std/primitive.bool.html">bool</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_span</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/54725">#54725</a>)</span></div></span></summary><div·class="docblock"><p>Returns·<code>true</code>·if·this·source·file·is·a·real·source·file,·and·not·generated·by·an·external
9 macro’s·expansion.</p>9 macro’s·expansion.</p>
10 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-SourceFile"·class="impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#615">Source</a><a·href="#impl-Clone-for-SourceFile"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struct"·href="struct.SourceFile.html"·title="struct·proc_macro::SourceFile">SourceFile</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#615">Source</a><a·href="#method.clone"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/clone/trait.Clone.html#tymethod.clone"·class="fn">clone</a>(&amp;self)·-&gt;·<a·class="struct"·href="struct.SourceFile.html"·title="struct·proc_macro::SourceFile">SourceFile</a></h4></section></summary><div·class='docblock'>Returns·a·copy·of·the·value.·<a·href="../core/clone/trait.Clone.html#tymethod.clone">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_from"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../src/core/clone.rs.html#174">Source</a></span><a·href="#method.clone_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/clone/trait.Clone.html#method.clone_from"·class="fn">clone_from</a>(&amp;mut·self,·source:·&amp;Self)</h4></section></summary><div·class='docblock'>Performs·copy-assignment·from·<code>source</code>.·<a·href="../core/clone/trait.Clone.html#method.clone_from">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-SourceFile"·class="impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#646-653">Source</a><a·href="#impl-Debug-for-SourceFile"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/fmt/trait.Debug.html"·title="trait·core::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.SourceFile.html"·title="struct·proc_macro::SourceFile">SourceFile</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#647-652">Source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="../core/fmt/struct.Formatter.html"·title="struct·core::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="type"·href="../core/fmt/type.Result.html"·title="type·core::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-PartialEq-for-SourceFile"·class="impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#656-660">Source</a><a·href="#impl-PartialEq-for-SourceFile"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/cmp/trait.PartialEq.html"·title="trait·core::cmp::PartialEq">PartialEq</a>·for·<a·class="struct"·href="struct.SourceFile.html"·title="struct·proc_macro::SourceFile">SourceFile</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.eq"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#657-659">Source</a><a·href="#method.eq"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/cmp/trait.PartialEq.html#tymethod.eq"·class="fn">eq</a>(&amp;self,·other:·&amp;Self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>self</code>·and·<code>other</code>·values·to·be·equal,·and·is·used·by·<code>==</code>.</div></details><details·class="toggle·me[·...·truncated·by·diffoscope;·len:·569,·SHA:·46af6fc173633dd332a95fa12f6d5611eaae7b1cebfd0290c8ac91c63e1ef230·...·]/std/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>!=</code>.·The·default·implementation·is·almost·always·sufficient,10 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-SourceFile"·class="impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#615">Source</a><a·href="#impl-Clone-for-SourceFile"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struct"·href="struct.SourceFile.html"·title="struct·proc_macro::SourceFile">SourceFile</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#615">Source</a><a·href="#method.clone"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/clone/trait.Clone.html#tymethod.clone"·class="fn">clone</a>(&amp;self)·-&gt;·<a·class="struct"·href="struct.SourceFile.html"·title="struct·proc_macro::SourceFile">SourceFile</a></h4></section></summary><div·class='docblock'>Returns·a·copy·of·the·value.·<a·href="../core/clone/trait.Clone.html#tymethod.clone">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_from"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../src/core/clone.rs.html#174">Source</a></span><a·href="#method.clone_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/clone/trait.Clone.html#method.clone_from"·class="fn">clone_from</a>(&amp;mut·self,·source:·&amp;Self)</h4></section></summary><div·class='docblock'>Performs·copy-assignment·from·<code>source</code>.·<a·href="../core/clone/trait.Clone.html#method.clone_from">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-SourceFile"·class="impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#646-653">Source</a><a·href="#impl-Debug-for-SourceFile"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/fmt/trait.Debug.html"·title="trait·core::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.SourceFile.html"·title="struct·proc_macro::SourceFile">SourceFile</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#647-652">Source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="../core/fmt/struct.Formatter.html"·title="struct·core::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="type"·href="../core/fmt/type.Result.html"·title="type·core::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-PartialEq-for-SourceFile"·class="impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#656-660">Source</a><a·href="#impl-PartialEq-for-SourceFile"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/cmp/trait.PartialEq.html"·title="trait·core::cmp::PartialEq">PartialEq</a>·for·<a·class="struct"·href="struct.SourceFile.html"·title="struct·proc_macro::SourceFile">SourceFile</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.eq"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#657-659">Source</a><a·href="#method.eq"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/cmp/trait.PartialEq.html#tymethod.eq"·class="fn">eq</a>(&amp;self,·other:·&amp;Self)·-&gt;·<a·class="primitive"·href="../std/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>self</code>·and·<code>other</code>·values·to·be·equal,·and·is·used·by·<code>==</code>.</div></details><details·class="toggle·method-toggle"·open><summary><se[·...·truncated·by·diffoscope;·len:·479,·SHA:·d4b4d4ccd2b893fe5d940d56f58f8a31544ac9db5f6dc1b365b30aa149717efb·...·]/std/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>!=</code>.·The·default·implementation·is·almost·always·sufficient,
11 and·should·not·be·overridden·without·very·good·reason.</div></details></div></details><section·id="impl-Eq-for-SourceFile"·class="impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#663">Source</a><a·href="#impl-Eq-for-SourceFile"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/cmp/trait.Eq.html"·title="trait·core::cmp::Eq">Eq</a>·for·<a·class="struct"·href="struct.SourceFile.html"·title="struct·proc_macro::SourceFile">SourceFile</a></h3></section></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-SourceFile"·class="impl"><a·href="#impl-Freeze-for-SourceFile"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="struct"·href="struct.SourceFile.html"·title="struct·proc_macro::SourceFile">SourceFile</a></h3></section><section·id="impl-RefUnwindSafe-for-SourceFile"·class="impl"><a·href="#impl-RefUnwindSafe-for-SourceFile"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="struct"·href="struct.SourceFile.html"·title="struct·proc_macro::SourceFile">SourceFile</a></h3></section><section·id="impl-Send-for-SourceFile"·class="impl"><a·href="#impl-Send-for-SourceFile"·class="anchor">§</a><h3·class="code-header">impl·!<a·class="trait"·href="../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="struct"·href="struct.SourceFile.html"·title="struct·proc_macro::SourceFile">SourceFile</a></h3></section><section·id="impl-Sync-for-SourceFile"·class="impl"><a·href="#impl-Sync-for-SourceFile"·class="anchor">§</a><h3·class="code-header">impl·!<a·class="trait"·href="../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="struct"·href="struct.SourceFile.html"·title="struct·proc_macro::SourceFile">SourceFile</a></h3></section><section·id="impl-Unpin-for-SourceFile"·class="impl"><a·href="#impl-Unpin-for-SourceFile"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="struct"·href="struct.SourceFile.html"·title="struct·proc_macro::SourceFile">SourceFile</a></h3></section><section·id="impl-UnwindSafe-for-SourceFile"·class="impl"><a·href="#impl-UnwindSafe-for-SourceFile"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="struct"·href="struct.SourceFile.html"·title="struct·proc_macro::SourceFile">SourceFile</a></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementations<a·href="#blanket-implementations"·class="anchor">§</a></h2><div·id="blanket-implementations-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-Any-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/any.rs.html#138">Source</a><a·href="#impl-Any-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where11 and·should·not·be·overridden·without·very·good·reason.</div></details></div></details><section·id="impl-Eq-for-SourceFile"·class="impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#663">Source</a><a·href="#impl-Eq-for-SourceFile"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/cmp/trait.Eq.html"·title="trait·core::cmp::Eq">Eq</a>·for·<a·class="struct"·href="struct.SourceFile.html"·title="struct·proc_macro::SourceFile">SourceFile</a></h3></section></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-SourceFile"·class="impl"><a·href="#impl-Freeze-for-SourceFile"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="struct"·href="struct.SourceFile.html"·title="struct·proc_macro::SourceFile">SourceFile</a></h3></section><section·id="impl-RefUnwindSafe-for-SourceFile"·class="impl"><a·href="#impl-RefUnwindSafe-for-SourceFile"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="struct"·href="struct.SourceFile.html"·title="struct·proc_macro::SourceFile">SourceFile</a></h3></section><section·id="impl-Send-for-SourceFile"·class="impl"><a·href="#impl-Send-for-SourceFile"·class="anchor">§</a><h3·class="code-header">impl·!<a·class="trait"·href="../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="struct"·href="struct.SourceFile.html"·title="struct·proc_macro::SourceFile">SourceFile</a></h3></section><section·id="impl-Sync-for-SourceFile"·class="impl"><a·href="#impl-Sync-for-SourceFile"·class="anchor">§</a><h3·class="code-header">impl·!<a·class="trait"·href="../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="struct"·href="struct.SourceFile.html"·title="struct·proc_macro::SourceFile">SourceFile</a></h3></section><section·id="impl-Unpin-for-SourceFile"·class="impl"><a·href="#impl-Unpin-for-SourceFile"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="struct"·href="struct.SourceFile.html"·title="struct·proc_macro::SourceFile">SourceFile</a></h3></section><section·id="impl-UnwindSafe-for-SourceFile"·class="impl"><a·href="#impl-UnwindSafe-for-SourceFile"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="struct"·href="struct.SourceFile.html"·title="struct·proc_macro::SourceFile">SourceFile</a></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementations<a·href="#blanket-implementations"·class="anchor">§</a></h2><div·id="blanket-implementations-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-Any-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/any.rs.html#138">Source</a><a·href="#impl-Any-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where
12 ····T:·'static·+·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/any.rs.html#139">Source</a><a·href="#method.type_id"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/any/trait.Any.html#tymethod.type_id"·class="fn">type_id</a>(&amp;self)·-&gt;·<a·class="struct"·href="../core/any/struct.TypeId.html"·title="struct·core::any::TypeId">TypeId</a></h4></section></summary><div·class='docblock'>Gets·the·<code>TypeId</code>·of·<code>self</code>.·<a·href="../core/any/trait.Any.html#tymethod.type_id">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Borrow%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/borrow/trait.Borrow.html"·title="trait·core::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where12 ····T:·'static·+·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/any.rs.html#139">Source</a><a·href="#method.type_id"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/any/trait.Any.html#tymethod.type_id"·class="fn">type_id</a>(&amp;self)·-&gt;·<a·class="struct"·href="../core/any/struct.TypeId.html"·title="struct·core::any::TypeId">TypeId</a></h4></section></summary><div·class='docblock'>Gets·the·<code>TypeId</code>·of·<code>self</code>.·<a·href="../core/any/trait.Any.html#tymethod.type_id">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Borrow%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/borrow/trait.Borrow.html"·title="trait·core::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where
13 ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#211">Source</a><a·href="#method.borrow"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow"·class="fn">borrow</a>(&amp;self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;T</a></h4></section></summary><div·class='docblock'>Immutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-BorrowMut%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/borrow/trait.BorrowMut.html"·title="trait·core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where13 ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#211">Source</a><a·href="#method.borrow"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow"·class="fn">borrow</a>(&amp;self)·-&gt;·<a·class="primitive"·href="../std/primitive.reference.html">&amp;T</a></h4></section></summary><div·class='docblock'>Immutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-BorrowMut%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/borrow/trait.BorrowMut.html"·title="trait·core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where
14 ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#218">Source</a><a·href="#method.borrow_mut"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"·class="fn">borrow_mut</a>(&amp;mut·self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;mut·T</a></h4></section></summary><div·class='docblock'>Mutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-CloneToUninit-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#273">Source</a><a·href="#impl-CloneToUninit-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where14 ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#218">Source</a><a·href="#method.borrow_mut"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"·class="fn">borrow_mut</a>(&amp;mut·self)·-&gt;·<a·class="primitive"·href="../std/primitive.reference.html">&amp;mut·T</a></h4></section></summary><div·class='docblock'>Mutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-CloneToUninit-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#273">Source</a><a·href="#impl-CloneToUninit-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where
15 ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#275">Source</a><a·href="#method.clone_to_uninit"·class="anchor">§</a><h4·class="code-header">unsafe·fn·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit"·class="fn">clone_to_uninit</a>(&amp;self,·dst:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.pointer.html">*mut·</a><a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.u8.html">u8</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>clone_to_uninit</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/126799">#126799</a>)</span></div></span><div·class='docblock'>Performs·copy-assignment·from·<code>self</code>·to·<code>dst</code>.·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-From%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#765">Source</a><a·href="#impl-From%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·T</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#768">Source</a><a·href="#method.from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>15 ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#275">Source</a><a·href="#method.clone_to_uninit"·class="anchor">§</a><h4·class="code-header">unsafe·fn·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit"·class="fn">clone_to_uninit</a>(&amp;self,·dst:·<a·class="primitive"·href="../std/primitive.pointer.html">*mut·</a><a·class="primitive"·href="../std/primitive.u8.html">u8</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>clone_to_uninit</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/126799">#126799</a>)</span></div></span><div·class='docblock'>Performs·copy-assignment·from·<code>self</code>·to·<code>dst</code>.·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-From%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#765">Source</a><a·href="#impl-From%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·T</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#768">Source</a><a·href="#method.from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>
16 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where16 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where
17 ····U:·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#758">Source</a><a·href="#method.into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>17 ····U:·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#758">Source</a><a·href="#method.into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>
18 <p>That·is,·this·conversion·is·whatever·the·implementation·of18 <p>That·is,·this·conversion·is·whatever·the·implementation·of
19 <code><a·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>19 <code><a·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>
20 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#82-84">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../alloc/borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where20 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#82-84">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../alloc/borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where
21 ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#86">Source</a><a·href="#associatedtype.Owned"·class="anchor">§</a><h4·class="code-header">type·<a·href="../alloc/borrow/trait.ToOwned.html#associatedtype.Owned"·class="associatedtype">Owned</a>·=·T</h4></section></summary><div·class='docblock'>The·resulting·type·after·obtaining·ownership.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.to_owned"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#87">Source</a><a·href="#method.to_owned"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned"·class="fn">to_owned</a>(&amp;self)·-&gt;·T</h4></section></summary><div·class='docblock'>Creates·owned·data·from·borrowed·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#91">Source</a><a·href="#method.clone_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into"·class="fn">clone_into</a>(&amp;self,·target:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#805-807">Source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where21 ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#86">Source</a><a·href="#associatedtype.Owned"·class="anchor">§</a><h4·class="code-header">type·<a·href="../alloc/borrow/trait.ToOwned.html#associatedtype.Owned"·class="associatedtype">Owned</a>·=·T</h4></section></summary><div·class='docblock'>The·resulting·type·after·obtaining·ownership.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.to_owned"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#87">Source</a><a·href="#method.to_owned"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned"·class="fn">to_owned</a>(&amp;self)·-&gt;·T</h4></section></summary><div·class='docblock'>Creates·owned·data·from·borrowed·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#91">Source</a><a·href="#method.clone_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into"·class="fn">clone_into</a>(&amp;self,·target:·<a·class="primitive"·href="../std/primitive.reference.html">&amp;mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#805-807">Source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where
22 ····U:·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#809">Source</a><a·href="#associatedtype.Error-1"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<a·class="enum"·href="../core/convert/enum.Infallible.html"·title="enum·core::convert::Infallible">Infallible</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#812">Source</a><a·href="#method.try_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryFrom.html#tymethod.try_from"·class="fn">try_from</a>(value:·U)·-&gt;·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;T,·&lt;T·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryInto%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#790-792">Source</a><a·href="#impl-TryInto%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where22 ····U:·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#809">Source</a><a·href="#associatedtype.Error-1"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<a·class="enum"·href="../core/convert/enum.Infallible.html"·title="enum·core::convert::Infallible">Infallible</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#812">Source</a><a·href="#method.try_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryFrom.html#tymethod.try_from"·class="fn">try_from</a>(value:·U)·-&gt;·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;T,·&lt;T·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryInto%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#790-792">Source</a><a·href="#impl-TryInto%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where
23 ····U:·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#794">Source</a><a·href="#associatedtype.Error"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryInto.html#associatedtype.Error"·class="associatedtype">Error</a>·=·&lt;U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#797">Source</a><a·href="#method.try_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryInto.html#tymethod.try_into"·class="fn">try_into</a>(self)·-&gt;·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;U,·&lt;U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>23 ····U:·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#794">Source</a><a·href="#associatedtype.Error"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryInto.html#associatedtype.Error"·class="associatedtype">Error</a>·=·&lt;U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#797">Source</a><a·href="#method.try_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryInto.html#tymethod.try_into"·class="fn">try_into</a>(self)·-&gt;·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;U,·&lt;U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>
45.2 KB
./usr/share/doc/rust-doc/html/proc_macro/struct.Span.html
    
Offset 10, 28 lines modifiedOffset 10, 28 lines modified
10 The·span·location·is·taken·from·the·call-site.</p>10 The·span·location·is·taken·from·the·call-site.</p>
11 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.source_file"·class="method"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#492-494">Source</a><h4·class="code-header">pub·fn·<a·href="#method.source_file"·class="fn">source_file</a>(&amp;self)·-&gt;·<a·class="struct"·href="struct.SourceFile.html"·title="struct·proc_macro::SourceFile">SourceFile</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_span</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/54725">#54725</a>)</span></div></span></summary><div·class="docblock"><p>The·original·source·file·into·which·this·span·points.</p>11 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.source_file"·class="method"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#492-494">Source</a><h4·class="code-header">pub·fn·<a·href="#method.source_file"·class="fn">source_file</a>(&amp;self)·-&gt;·<a·class="struct"·href="struct.SourceFile.html"·title="struct·proc_macro::SourceFile">SourceFile</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_span</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/54725">#54725</a>)</span></div></span></summary><div·class="docblock"><p>The·original·source·file·into·which·this·span·points.</p>
12 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.parent"·class="method"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#499-501">Source</a><h4·class="code-header">pub·fn·<a·href="#method.parent"·class="fn">parent</a>(&amp;self)·-&gt;·<a·class="enum"·href="../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="struct"·href="struct.Span.html"·title="struct·proc_macro::Span">Span</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_span</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/54725">#54725</a>)</span></div></span></summary><div·class="docblock"><p>The·<code>Span</code>·for·the·tokens·in·the·previous·macro·expansion·from·which12 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.parent"·class="method"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#499-501">Source</a><h4·class="code-header">pub·fn·<a·href="#method.parent"·class="fn">parent</a>(&amp;self)·-&gt;·<a·class="enum"·href="../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="struct"·href="struct.Span.html"·title="struct·proc_macro::Span">Span</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_span</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/54725">#54725</a>)</span></div></span></summary><div·class="docblock"><p>The·<code>Span</code>·for·the·tokens·in·the·previous·macro·expansion·from·which
13 <code>self</code>·was·generated·from,·if·any.</p>13 <code>self</code>·was·generated·from,·if·any.</p>
14 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.source"·class="method"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#507-509">Source</a><h4·class="code-header">pub·fn·<a·href="#method.source"·class="fn">source</a>(&amp;self)·-&gt;·<a·class="struct"·href="struct.Span.html"·title="struct·proc_macro::Span">Span</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_span</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/54725">#54725</a>)</span></div></span></summary><div·class="docblock"><p>The·span·for·the·origin·source·code·that·<code>self</code>·was·generated·from.·If14 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.source"·class="method"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#507-509">Source</a><h4·class="code-header">pub·fn·<a·href="#method.source"·class="fn">source</a>(&amp;self)·-&gt;·<a·class="struct"·href="struct.Span.html"·title="struct·proc_macro::Span">Span</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_span</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/54725">#54725</a>)</span></div></span></summary><div·class="docblock"><p>The·span·for·the·origin·source·code·that·<code>self</code>·was·generated·from.·If
15 this·<code>Span</code>·wasn’t·generated·from·other·macro·expansions·then·the·return15 this·<code>Span</code>·wasn’t·generated·from·other·macro·expansions·then·the·return
16 value·is·the·same·as·<code>*self</code>.</p>16 value·is·the·same·as·<code>*self</code>.</p>
17 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.byte_range"·class="method"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#513-515">Source</a><h4·class="code-header">pub·fn·<a·href="#method.byte_range"·class="fn">byte_range</a>(&amp;self)·-&gt;·<a·class="struct"·href="../core/ops/range/struct.Range.html"·title="struct·core::ops::range::Range">Range</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.usize.html">usize</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_span</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/54725">#54725</a>)</span></div></span></summary><div·class="docblock"><p>Returns·the·span’s·byte·position·range·in·the·source·file.</p>17 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.byte_range"·class="method"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#513-515">Source</a><h4·class="code-header">pub·fn·<a·href="#method.byte_range"·class="fn">byte_range</a>(&amp;self)·-&gt;·<a·class="struct"·href="../core/ops/range/struct.Range.html"·title="struct·core::ops::range::Range">Range</a>&lt;<a·class="primitive"·href="../std/primitive.usize.html">usize</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_span</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/54725">#54725</a>)</span></div></span></summary><div·class="docblock"><p>Returns·the·span’s·byte·position·range·in·the·source·file.</p>
18 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.start"·class="method"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#519-521">Source</a><h4·class="code-header">pub·fn·<a·href="#method.start"·class="fn">start</a>(&amp;self)·-&gt;·<a·class="struct"·href="struct.Span.html"·title="struct·proc_macro::Span">Span</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_span</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/54725">#54725</a>)</span></div></span></summary><div·class="docblock"><p>Creates·an·empty·span·pointing·to·directly·before·this·span.</p>18 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.start"·class="method"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#519-521">Source</a><h4·class="code-header">pub·fn·<a·href="#method.start"·class="fn">start</a>(&amp;self)·-&gt;·<a·class="struct"·href="struct.Span.html"·title="struct·proc_macro::Span">Span</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_span</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/54725">#54725</a>)</span></div></span></summary><div·class="docblock"><p>Creates·an·empty·span·pointing·to·directly·before·this·span.</p>
19 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.end"·class="method"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#525-527">Source</a><h4·class="code-header">pub·fn·<a·href="#method.end"·class="fn">end</a>(&amp;self)·-&gt;·<a·class="struct"·href="struct.Span.html"·title="struct·proc_macro::Span">Span</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_span</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/54725">#54725</a>)</span></div></span></summary><div·class="docblock"><p>Creates·an·empty·span·pointing·to·directly·after·this·span.</p>19 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.end"·class="method"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#525-527">Source</a><h4·class="code-header">pub·fn·<a·href="#method.end"·class="fn">end</a>(&amp;self)·-&gt;·<a·class="struct"·href="struct.Span.html"·title="struct·proc_macro::Span">Span</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_span</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/54725">#54725</a>)</span></div></span></summary><div·class="docblock"><p>Creates·an·empty·span·pointing·to·directly·after·this·span.</p>
20 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.line"·class="method"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#533-535">Source</a><h4·class="code-header">pub·fn·<a·href="#method.line"·class="fn">line</a>(&amp;self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.usize.html">usize</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_span</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/54725">#54725</a>)</span></div></span></summary><div·class="docblock"><p>The·one-indexed·line·of·the·source·file·where·the·span·starts.</p>20 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.line"·class="method"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#533-535">Source</a><h4·class="code-header">pub·fn·<a·href="#method.line"·class="fn">line</a>(&amp;self)·-&gt;·<a·class="primitive"·href="../std/primitive.usize.html">usize</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_span</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/54725">#54725</a>)</span></div></span></summary><div·class="docblock"><p>The·one-indexed·line·of·the·source·file·where·the·span·starts.</p>
21 <p>To·obtain·the·line·of·the·span’s·end,·use·<code>span.end().line()</code>.</p>21 <p>To·obtain·the·line·of·the·span’s·end,·use·<code>span.end().line()</code>.</p>
22 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.column"·class="method"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#541-543">Source</a><h4·class="code-header">pub·fn·<a·href="#method.column"·class="fn">column</a>(&amp;self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.usize.html">usize</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_span</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/54725">#54725</a>)</span></div></span></summary><div·class="docblock"><p>The·one-indexed·column·of·the·source·file·where·the·span·starts.</p>22 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.column"·class="method"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#541-543">Source</a><h4·class="code-header">pub·fn·<a·href="#method.column"·class="fn">column</a>(&amp;self)·-&gt;·<a·class="primitive"·href="../std/primitive.usize.html">usize</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_span</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/54725">#54725</a>)</span></div></span></summary><div·class="docblock"><p>The·one-indexed·column·of·the·source·file·where·the·span·starts.</p>
23 <p>To·obtain·the·column·of·the·span’s·end,·use·<code>span.end().column()</code>.</p>23 <p>To·obtain·the·column·of·the·span’s·end,·use·<code>span.end().column()</code>.</p>
24 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.join"·class="method"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#549-551">Source</a><h4·class="code-header">pub·fn·<a·href="#method.join"·class="fn">join</a>(&amp;self,·other:·<a·class="struct"·href="struct.Span.html"·title="struct·proc_macro::Span">Span</a>)·-&gt;·<a·class="enum"·href="../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="struct"·href="struct.Span.html"·title="struct·proc_macro::Span">Span</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_span</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/54725">#54725</a>)</span></div></span></summary><div·class="docblock"><p>Creates·a·new·span·encompassing·<code>self</code>·and·<code>other</code>.</p>24 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.join"·class="method"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#549-551">Source</a><h4·class="code-header">pub·fn·<a·href="#method.join"·class="fn">join</a>(&amp;self,·other:·<a·class="struct"·href="struct.Span.html"·title="struct·proc_macro::Span">Span</a>)·-&gt;·<a·class="enum"·href="../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="struct"·href="struct.Span.html"·title="struct·proc_macro::Span">Span</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_span</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/54725">#54725</a>)</span></div></span></summary><div·class="docblock"><p>Creates·a·new·span·encompassing·<code>self</code>·and·<code>other</code>.</p>
25 <p>Returns·<code>None</code>·if·<code>self</code>·and·<code>other</code>·are·from·different·files.</p>25 <p>Returns·<code>None</code>·if·<code>self</code>·and·<code>other</code>·are·from·different·files.</p>
26 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.resolved_at"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.45.0">1.45.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#556-558">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.resolved_at"·class="fn">resolved_at</a>(&amp;self,·other:·<a·class="struct"·href="struct.Span.html"·title="struct·proc_macro::Span">Span</a>)·-&gt;·<a·class="struct"·href="struct.Span.html"·title="struct·proc_macro::Span">Span</a></h4></section></summary><div·class="docblock"><p>Creates·a·new·span·with·the·same·line/column·information·as·<code>self</code>·but26 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.resolved_at"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.45.0">1.45.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#556-558">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.resolved_at"·class="fn">resolved_at</a>(&amp;self,·other:·<a·class="struct"·href="struct.Span.html"·title="struct·proc_macro::Span">Span</a>)·-&gt;·<a·class="struct"·href="struct.Span.html"·title="struct·proc_macro::Span">Span</a></h4></section></summary><div·class="docblock"><p>Creates·a·new·span·with·the·same·line/column·information·as·<code>self</code>·but
27 that·resolves·symbols·as·though·it·were·at·<code>other</code>.</p>27 that·resolves·symbols·as·though·it·were·at·<code>other</code>.</p>
28 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.located_at"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.45.0">1.45.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#563-565">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.located_at"·class="fn">located_at</a>(&amp;self,·other:·<a·class="struct"·href="struct.Span.html"·title="struct·proc_macro::Span">Span</a>)·-&gt;·<a·class="struct"·href="struct.Span.html"·title="struct·proc_macro::Span">Span</a></h4></section></summary><div·class="docblock"><p>Creates·a·new·span·with·the·same·name·resolution·behavior·as·<code>self</code>·but28 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.located_at"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.45.0">1.45.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#563-565">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.located_at"·class="fn">located_at</a>(&amp;self,·other:·<a·class="struct"·href="struct.Span.html"·title="struct·proc_macro::Span">Span</a>)·-&gt;·<a·class="struct"·href="struct.Span.html"·title="struct·proc_macro::Span">Span</a></h4></section></summary><div·class="docblock"><p>Creates·a·new·span·with·the·same·name·resolution·behavior·as·<code>self</code>·but
29 with·the·line/column·information·of·<code>other</code>.</p>29 with·the·line/column·information·of·<code>other</code>.</p>
30 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.eq"·class="method"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#569-571">Source</a><h4·class="code-header">pub·fn·<a·href="#method.eq"·class="fn">eq</a>(&amp;self,·other:·&amp;<a·class="struct"·href="struct.Span.html"·title="struct·proc_macro::Span">Span</a>)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_span</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/54725">#54725</a>)</span></div></span></summary><div·class="docblock"><p>Compares·two·spans·to·see·if·they’re·equal.</p>30 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.eq"·class="method"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#569-571">Source</a><h4·class="code-header">pub·fn·<a·href="#method.eq"·class="fn">eq</a>(&amp;self,·other:·&amp;<a·class="struct"·href="struct.Span.html"·title="struct·proc_macro::Span">Span</a>)·-&gt;·<a·class="primitive"·href="../std/primitive.bool.html">bool</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_span</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/54725">#54725</a>)</span></div></span></summary><div·class="docblock"><p>Compares·two·spans·to·see·if·they’re·equal.</p>
31 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.source_text"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.66.0">1.66.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#581-583">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.source_text"·class="fn">source_text</a>(&amp;self)·-&gt;·<a·class="enum"·href="../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="struct"·href="../alloc/string/struct.String.html"·title="struct·alloc::string::String">String</a>&gt;</h4></section></summary><div·class="docblock"><p>Returns·the·source·text·behind·a·span.·This·preserves·the·original·source31 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.source_text"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.66.0">1.66.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#581-583">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.source_text"·class="fn">source_text</a>(&amp;self)·-&gt;·<a·class="enum"·href="../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="struct"·href="../alloc/string/struct.String.html"·title="struct·alloc::string::String">String</a>&gt;</h4></section></summary><div·class="docblock"><p>Returns·the·source·text·behind·a·span.·This·preserves·the·original·source
32 code,·including·spaces·and·comments.·It·only·returns·a·result·if·the·span32 code,·including·spaces·and·comments.·It·only·returns·a·result·if·the·span
33 corresponds·to·real·source·code.</p>33 corresponds·to·real·source·code.</p>
34 <p>Note:·The·observable·result·of·a·macro·should·only·rely·on·the·tokens·and34 <p>Note:·The·observable·result·of·a·macro·should·only·rely·on·the·tokens·and
35 not·on·this·source·text.·The·result·of·this·function·is·a·best·effort·to35 not·on·this·source·text.·The·result·of·this·function·is·a·best·effort·to
36 be·used·for·diagnostics·only.</p>36 be·used·for·diagnostics·only.</p>
37 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.error"·class="method"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#599">Source</a><h4·class="code-header">pub·fn·<a·href="#method.error"·class="fn">error</a>&lt;T:·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;<a·class="struct"·href="../alloc/string/struct.String.html"·title="struct·alloc::string::String">String</a>&gt;&gt;(self,·message:·T)·-&gt;·<a·class="struct"·href="struct.Diagnostic.html"·title="struct·proc_macro::Diagnostic">Diagnostic</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_diagnostic</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/54140">#54140</a>)</span></div></span></summary><div·class="docblock"><p>Creates·a·new·<code>Diagnostic</code>·with·the·given·<code>message</code>·at·the·span37 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.error"·class="method"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#599">Source</a><h4·class="code-header">pub·fn·<a·href="#method.error"·class="fn">error</a>&lt;T:·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;<a·class="struct"·href="../alloc/string/struct.String.html"·title="struct·alloc::string::String">String</a>&gt;&gt;(self,·message:·T)·-&gt;·<a·class="struct"·href="struct.Diagnostic.html"·title="struct·proc_macro::Diagnostic">Diagnostic</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_diagnostic</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/54140">#54140</a>)</span></div></span></summary><div·class="docblock"><p>Creates·a·new·<code>Diagnostic</code>·with·the·given·<code>message</code>·at·the·span
Offset 41, 18 lines modifiedOffset 41, 18 lines modified
41 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.note"·class="method"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#601">Source</a><h4·class="code-header">pub·fn·<a·href="#method.note"·class="fn">note</a>&lt;T:·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;<a·class="struct"·href="../alloc/string/struct.String.html"·title="struct·alloc::string::String">String</a>&gt;&gt;(self,·message:·T)·-&gt;·<a·class="struct"·href="struct.Diagnostic.html"·title="struct·proc_macro::Diagnostic">Diagnostic</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_diagnostic</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/54140">#54140</a>)</span></div></span></summary><div·class="docblock"><p>Creates·a·new·<code>Diagnostic</code>·with·the·given·<code>message</code>·at·the·span41 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.note"·class="method"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#601">Source</a><h4·class="code-header">pub·fn·<a·href="#method.note"·class="fn">note</a>&lt;T:·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;<a·class="struct"·href="../alloc/string/struct.String.html"·title="struct·alloc::string::String">String</a>&gt;&gt;(self,·message:·T)·-&gt;·<a·class="struct"·href="struct.Diagnostic.html"·title="struct·proc_macro::Diagnostic">Diagnostic</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_diagnostic</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/54140">#54140</a>)</span></div></span></summary><div·class="docblock"><p>Creates·a·new·<code>Diagnostic</code>·with·the·given·<code>message</code>·at·the·span
42 <code>self</code>.</p>42 <code>self</code>.</p>
43 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.help"·class="method"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#602">Source</a><h4·class="code-header">pub·fn·<a·href="#method.help"·class="fn">help</a>&lt;T:·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;<a·class="struct"·href="../alloc/string/struct.String.html"·title="struct·alloc::string::String">String</a>&gt;&gt;(self,·message:·T)·-&gt;·<a·class="struct"·href="struct.Diagnostic.html"·title="struct·proc_macro::Diagnostic">Diagnostic</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_diagnostic</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/54140">#54140</a>)</span></div></span></summary><div·class="docblock"><p>Creates·a·new·<code>Diagnostic</code>·with·the·given·<code>message</code>·at·the·span43 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.help"·class="method"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#602">Source</a><h4·class="code-header">pub·fn·<a·href="#method.help"·class="fn">help</a>&lt;T:·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;<a·class="struct"·href="../alloc/string/struct.String.html"·title="struct·alloc::string::String">String</a>&gt;&gt;(self,·message:·T)·-&gt;·<a·class="struct"·href="struct.Diagnostic.html"·title="struct·proc_macro::Diagnostic">Diagnostic</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_diagnostic</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/54140">#54140</a>)</span></div></span></summary><div·class="docblock"><p>Creates·a·new·<code>Diagnostic</code>·with·the·given·<code>message</code>·at·the·span
44 <code>self</code>.</p>44 <code>self</code>.</p>
45 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-Span"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#446">Source</a></span><a·href="#impl-Clone-for-Span"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struct"·href="struct.Span.html"·title="struct·proc_macro::Span">Span</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#446">Source</a><a·href="#method.clone"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/clone/trait.Clone.html#tymethod.clone"·class="fn">clone</a>(&amp;self)·-&gt;·<a·class="struct"·href="struct.Span.html"·title="struct·proc_macro::Span">Span</a></h4></section></summary><div·class='docblock'>Returns·a·copy·of·the·value.·<a·href="../core/clone/trait.Clone.html#tymethod.clone">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_from"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../src/core/clone.rs.html#174">Source</a></span><a·href="#method.clone_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/clone/trait.Clone.html#method.clone_from"·class="fn">clone_from</a>(&amp;mut·self,·source:·&amp;Self)</h4></section></summary><div·class='docblock'>Performs·copy-assignment·from·<code>source</code>.·<a·href="../core/clone/trait.Clone.html#method.clone_from">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-Span"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#607-611">Source</a></span><a·href="#impl-Debug-for-Span"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/fmt/trait.Debug.html"·title="trait·core::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.Span.html"·title="struct·proc_macro::Span">Span</a></h3></section></summary><div·class="docblock"><p>Prints·a·span·in·a·form·convenient·for·debugging.</p>45 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-Span"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#446">Source</a></span><a·href="#impl-Clone-for-Span"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struct"·href="struct.Span.html"·title="struct·proc_macro::Span">Span</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#446">Source</a><a·href="#method.clone"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/clone/trait.Clone.html#tymethod.clone"·class="fn">clone</a>(&amp;self)·-&gt;·<a·class="struct"·href="struct.Span.html"·title="struct·proc_macro::Span">Span</a></h4></section></summary><div·class='docblock'>Returns·a·copy·of·the·value.·<a·href="../core/clone/trait.Clone.html#tymethod.clone">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_from"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../src/core/clone.rs.html#174">Source</a></span><a·href="#method.clone_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/clone/trait.Clone.html#method.clone_from"·class="fn">clone_from</a>(&amp;mut·self,·source:·&amp;Self)</h4></section></summary><div·class='docblock'>Performs·copy-assignment·from·<code>source</code>.·<a·href="../core/clone/trait.Clone.html#method.clone_from">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-Span"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#607-611">Source</a></span><a·href="#impl-Debug-for-Span"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/fmt/trait.Debug.html"·title="trait·core::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.Span.html"·title="struct·proc_macro::Span">Span</a></h3></section></summary><div·class="docblock"><p>Prints·a·span·in·a·form·convenient·for·debugging.</p>
46 </div><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#608-610">Source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="../core/fmt/struct.Formatter.html"·title="struct·core::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="type"·href="../core/fmt/type.Result.html"·title="type·core::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-MultiSpan-for-Span"·class="impl"><a·class="src·rightside"·href="../src/proc_macro/diagnostic.rs.html#26-30">Source</a><a·href="#impl-MultiSpan-for-Span"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="trait.MultiSpan.html"·title="trait·proc_macro::MultiSpan">MultiSpan</a>·for·<a·class="struct"·href="struct.Span.html"·title="struct·proc_macro::Span">Span</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into_spans"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/diagnostic.rs.html#27-29">Source</a><a·href="#method.into_spans"·class="anchor">§</a><h4·class="code-header">fn·<a·href="trait.MultiSpan.html#tymethod.into_spans"·class="fn">into_spans</a>(self)·-&gt;·<a·class="struct"·href="../alloc/vec/struct.Vec.html"·title="struct·alloc::vec::Vec">Vec</a>&lt;<a·class="struct"·href="struct.Span.html"·title="struct·proc_macro::Span">Span</a>&gt;</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_diagnostic</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/54140">#54140</a>)</span></div></span><div·class='docblock'>Converts·<code>self</code>·into·a·<code>Vec&lt;Span&gt;</code>.</div></details></div></details><section·id="impl-Copy-for-Span"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#446">Source</a></span><a·href="#impl-Copy-for-Span"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Copy.html"·title="trait·core::marker::Copy">Copy</a>·for·<a·class="struct"·href="struct.Span.html"·title="struct·proc_macro::Span">Span</a></h3></section><section·id="impl-Send-for-Span"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#450">Source</a></span><a·href="#impl-Send-for-Span"·class="anchor">§</a><h3·class="code-header">impl·!<a·class="trait"·href="../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="struct"·href="struct.Span.html"·title="struct·proc_macro::Span">Span</a></h3></section><section·id="impl-Sync-for-Span"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#452">Source</a></span><a·href="#impl-Sync-for-Span"·class="anchor">§</a><h3·class="code-header">impl·!<a·class="trait"·href="../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="struct"·href="struct.Span.html"·title="struct·proc_macro::Span">Span</a></h3></section></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-Span"·class="impl"><a·href="#impl-Freeze-for-Span"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="struct"·href="struct.Span.html"·title="struct·proc_macro::Span">Span</a></h3></section><section·id="impl-RefUnwindSafe-for-Span"·class="impl"><a·href="#impl-RefUnwindSafe-for-Span"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="struct"·href="struct.Span.html"·title="struct·proc_macro::Span">Span</a></h3></section><section·id="impl-Unpin-for-Span"·class="impl"><a·href="#impl-Unpin-for-Span"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="struct"·href="struct.Span.html"·title="struct·proc_macro::Span">Span</a></h3></section><section·id="impl-UnwindSafe-for-Span"·class="impl"><a·href="#impl-UnwindSafe-for-Span"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="struct"·href="struct.Span.html"·title="struct·proc_macro::Span">Span</a></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementations<a·href="#blanket-implementations"·class="anchor">§</a></h2><div·id="blanket-implementations-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-Any-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/any.rs.html#138">Source</a><a·href="#impl-Any-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where46 </div><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#608-610">Source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="../core/fmt/struct.Formatter.html"·title="struct·core::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="type"·href="../core/fmt/type.Result.html"·title="type·core::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-MultiSpan-for-Span"·class="impl"><a·class="src·rightside"·href="../src/proc_macro/diagnostic.rs.html#26-30">Source</a><a·href="#impl-MultiSpan-for-Span"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="trait.MultiSpan.html"·title="trait·proc_macro::MultiSpan">MultiSpan</a>·for·<a·class="struct"·href="struct.Span.html"·title="struct·proc_macro::Span">Span</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into_spans"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/diagnostic.rs.html#27-29">Source</a><a·href="#method.into_spans"·class="anchor">§</a><h4·class="code-header">fn·<a·href="trait.MultiSpan.html#tymethod.into_spans"·class="fn">into_spans</a>(self)·-&gt;·<a·class="struct"·href="../alloc/vec/struct.Vec.html"·title="struct·alloc::vec::Vec">Vec</a>&lt;<a·class="struct"·href="struct.Span.html"·title="struct·proc_macro::Span">Span</a>&gt;</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_diagnostic</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/54140">#54140</a>)</span></div></span><div·class='docblock'>Converts·<code>self</code>·into·a·<code>Vec&lt;Span&gt;</code>.</div></details></div></details><section·id="impl-Copy-for-Span"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#446">Source</a></span><a·href="#impl-Copy-for-Span"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Copy.html"·title="trait·core::marker::Copy">Copy</a>·for·<a·class="struct"·href="struct.Span.html"·title="struct·proc_macro::Span">Span</a></h3></section><section·id="impl-Send-for-Span"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#450">Source</a></span><a·href="#impl-Send-for-Span"·class="anchor">§</a><h3·class="code-header">impl·!<a·class="trait"·href="../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="struct"·href="struct.Span.html"·title="struct·proc_macro::Span">Span</a></h3></section><section·id="impl-Sync-for-Span"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#452">Source</a></span><a·href="#impl-Sync-for-Span"·class="anchor">§</a><h3·class="code-header">impl·!<a·class="trait"·href="../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="struct"·href="struct.Span.html"·title="struct·proc_macro::Span">Span</a></h3></section></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-Span"·class="impl"><a·href="#impl-Freeze-for-Span"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="struct"·href="struct.Span.html"·title="struct·proc_macro::Span">Span</a></h3></section><section·id="impl-RefUnwindSafe-for-Span"·class="impl"><a·href="#impl-RefUnwindSafe-for-Span"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="struct"·href="struct.Span.html"·title="struct·proc_macro::Span">Span</a></h3></section><section·id="impl-Unpin-for-Span"·class="impl"><a·href="#impl-Unpin-for-Span"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="struct"·href="struct.Span.html"·title="struct·proc_macro::Span">Span</a></h3></section><section·id="impl-UnwindSafe-for-Span"·class="impl"><a·href="#impl-UnwindSafe-for-Span"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="struct"·href="struct.Span.html"·title="struct·proc_macro::Span">Span</a></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementations<a·href="#blanket-implementations"·class="anchor">§</a></h2><div·id="blanket-implementations-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-Any-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/any.rs.html#138">Source</a><a·href="#impl-Any-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where
47 ····T:·'static·+·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/any.rs.html#139">Source</a><a·href="#method.type_id"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/any/trait.Any.html#tymethod.type_id"·class="fn">type_id</a>(&amp;self)·-&gt;·<a·class="struct"·href="../core/any/struct.TypeId.html"·title="struct·core::any::TypeId">TypeId</a></h4></section></summary><div·class='docblock'>Gets·the·<code>TypeId</code>·of·<code>self</code>.·<a·href="../core/any/trait.Any.html#tymethod.type_id">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Borrow%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/borrow/trait.Borrow.html"·title="trait·core::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where47 ····T:·'static·+·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/any.rs.html#139">Source</a><a·href="#method.type_id"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/any/trait.Any.html#tymethod.type_id"·class="fn">type_id</a>(&amp;self)·-&gt;·<a·class="struct"·href="../core/any/struct.TypeId.html"·title="struct·core::any::TypeId">TypeId</a></h4></section></summary><div·class='docblock'>Gets·the·<code>TypeId</code>·of·<code>self</code>.·<a·href="../core/any/trait.Any.html#tymethod.type_id">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Borrow%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/borrow/trait.Borrow.html"·title="trait·core::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where
48 ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#211">Source</a><a·href="#method.borrow"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow"·class="fn">borrow</a>(&amp;self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;T</a></h4></section></summary><div·class='docblock'>Immutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-BorrowMut%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/borrow/trait.BorrowMut.html"·title="trait·core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where48 ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#211">Source</a><a·href="#method.borrow"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow"·class="fn">borrow</a>(&amp;self)·-&gt;·<a·class="primitive"·href="../std/primitive.reference.html">&amp;T</a></h4></section></summary><div·class='docblock'>Immutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-BorrowMut%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/borrow/trait.BorrowMut.html"·title="trait·core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where
49 ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#218">Source</a><a·href="#method.borrow_mut"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"·class="fn">borrow_mut</a>(&amp;mut·self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;mut·T</a></h4></section></summary><div·class='docblock'>Mutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-CloneToUninit-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#273">Source</a><a·href="#impl-CloneToUninit-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where49 ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#218">Source</a><a·href="#method.borrow_mut"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"·class="fn">borrow_mut</a>(&amp;mut·self)·-&gt;·<a·class="primitive"·href="../std/primitive.reference.html">&amp;mut·T</a></h4></section></summary><div·class='docblock'>Mutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-CloneToUninit-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#273">Source</a><a·href="#impl-CloneToUninit-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where
50 ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#275">Source</a><a·href="#method.clone_to_uninit"·class="anchor">§</a><h4·class="code-header">unsafe·fn·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit"·class="fn">clone_to_uninit</a>(&amp;self,·dst:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.pointer.html">*mut·</a><a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.u8.html">u8</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>clone_to_uninit</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/126799">#126799</a>)</span></div></span><div·class='docblock'>Performs·copy-assignment·from·<code>self</code>·to·<code>dst</code>.·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-From%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#765">Source</a><a·href="#impl-From%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·T</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#768">Source</a><a·href="#method.from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>50 ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#275">Source</a><a·href="#method.clone_to_uninit"·class="anchor">§</a><h4·class="code-header">unsafe·fn·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit"·class="fn">clone_to_uninit</a>(&amp;self,·dst:·<a·class="primitive"·href="../std/primitive.pointer.html">*mut·</a><a·class="primitive"·href="../std/primitive.u8.html">u8</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>clone_to_uninit</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/126799">#126799</a>)</span></div></span><div·class='docblock'>Performs·copy-assignment·from·<code>self</code>·to·<code>dst</code>.·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-From%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#765">Source</a><a·href="#impl-From%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·T</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#768">Source</a><a·href="#method.from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>
51 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where51 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where
52 ····U:·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#758">Source</a><a·href="#method.into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>52 ····U:·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#758">Source</a><a·href="#method.into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>
53 <p>That·is,·this·conversion·is·whatever·the·implementation·of53 <p>That·is,·this·conversion·is·whatever·the·implementation·of
54 <code><a·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>54 <code><a·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>
55 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#82-84">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../alloc/borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where55 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#82-84">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../alloc/borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where
56 ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#86">Source</a><a·href="#associatedtype.Owned"·class="anchor">§</a><h4·class="code-header">type·<a·href="../alloc/borrow/trait.ToOwned.html#associatedtype.Owned"·class="associatedtype">Owned</a>·=·T</h4></section></summary><div·class='docblock'>The·resulting·type·after·obtaining·ownership.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.to_owned"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#87">Source</a><a·href="#method.to_owned"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned"·class="fn">to_owned</a>(&amp;self)·-&gt;·T</h4></section></summary><div·class='docblock'>Creates·owned·data·from·borrowed·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#91">Source</a><a·href="#method.clone_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into"·class="fn">clone_into</a>(&amp;self,·target:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#805-807">Source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where56 ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#86">Source</a><a·href="#associatedtype.Owned"·class="anchor">§</a><h4·class="code-header">type·<a·href="../alloc/borrow/trait.ToOwned.html#associatedtype.Owned"·class="associatedtype">Owned</a>·=·T</h4></section></summary><div·class='docblock'>The·resulting·type·after·obtaining·ownership.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.to_owned"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#87">Source</a><a·href="#method.to_owned"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned"·class="fn">to_owned</a>(&amp;self)·-&gt;·T</h4></section></summary><div·class='docblock'>Creates·owned·data·from·borrowed·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#91">Source</a><a·href="#method.clone_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into"·class="fn">clone_into</a>(&amp;self,·target:·<a·class="primitive"·href="../std/primitive.reference.html">&amp;mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#805-807">Source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where
57 ····U:·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#809">Source</a><a·href="#associatedtype.Error-1"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<a·class="enum"·href="../core/convert/enum.Infallible.html"·title="enum·core::convert::Infallible">Infallible</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#812">Source</a><a·href="#method.try_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryFrom.html#tymethod.try_from"·class="fn">try_from</a>(value:·U)·-&gt;·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;T,·&lt;T·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryInto%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#790-792">Source</a><a·href="#impl-TryInto%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where57 ····U:·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#809">Source</a><a·href="#associatedtype.Error-1"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<a·class="enum"·href="../core/convert/enum.Infallible.html"·title="enum·core::convert::Infallible">Infallible</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#812">Source</a><a·href="#method.try_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryFrom.html#tymethod.try_from"·class="fn">try_from</a>(value:·U)·-&gt;·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;T,·&lt;T·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryInto%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#790-792">Source</a><a·href="#impl-TryInto%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where
58 ····U:·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#794">Source</a><a·href="#associatedtype.Error"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryInto.html#associatedtype.Error"·class="associatedtype">Error</a>·=·&lt;U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#797">Source</a><a·href="#method.try_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryInto.html#tymethod.try_into"·class="fn">try_into</a>(self)·-&gt;·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;U,·&lt;U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>58 ····U:·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#794">Source</a><a·href="#associatedtype.Error"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryInto.html#associatedtype.Error"·class="associatedtype">Error</a>·=·&lt;U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#797">Source</a><a·href="#method.try_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryInto.html#tymethod.try_into"·class="fn">try_into</a>(self)·-&gt;·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;U,·&lt;U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>
76.7 KB
./usr/share/doc/rust-doc/html/proc_macro/struct.TokenStream.html
    
Offset 1, 15 lines modifiedOffset 1, 15 lines modified
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="The·main·type·provided·by·this·crate,·representing·an·abstract·stream·of·tokens,·or,·more·specifically,·a·sequence·of·token·trees.·The·type·provides·interfaces·for·iterating·over·those·token·trees·and,·conversely,·collecting·a·number·of·token·trees·into·one·stream."><title>TokenStream·in·proc_macro·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../"·data-static-root-path="../static.files/"·data-current-crate="proc_macro"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../proc_macro/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../proc_macro/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../proc_macro/index.html">proc_<wbr>macro</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»     2025-01-07)»  (built»    from»a»       source» tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Token<wbr>Stream</a></h2><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.expand_expr"·title="expand_expr">expand_expr</a></li><li><a·href="#method.is_empty"·title="is_empty">is_empty</a></li><li><a·href="#method.new"·title="new">new</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Send-for-TokenStream"·title="!Send">!Send</a></li><li><a·href="#impl-Sync-for-TokenStream"·title="!Sync">!Sync</a></li><li><a·href="#impl-Clone-for-TokenStream"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-TokenStream"·title="Debug">Debug</a></li><li><a·href="#impl-Default-for-TokenStream"·title="Default">Default</a></li><li><a·href="#impl-Display-for-TokenStream"·title="Display">Display</a></li><li><a·href="#impl-Extend%3CTokenStream%3E-for-TokenStream"·title="Extend&#60;TokenStream&#62;">Extend&#60;TokenStream&#62;</a></li><li><a·href="#impl-Extend%3CTokenTree%3E-for-TokenStream"·title="Extend&#60;TokenTree&#62;">Extend&#60;TokenTree&#62;</a></li><li><a·href="#impl-From%3CTokenTree%3E-for-TokenStream"·title="From&#60;TokenTree&#62;">From&#60;TokenTree&#62;</a></li><li><a·href="#impl-FromIterator%3CTokenStream%3E-for-TokenStream"·title="FromIterator&#60;TokenStream&#62;">FromIterator&#60;TokenStream&#62;</a></li><li><a·href="#impl-FromIterator%3CTokenTree%3E-for-TokenStream"·title="FromIterator&#60;TokenTree&#62;">FromIterator&#60;TokenTree&#62;</a></li><li><a·href="#impl-FromStr-for-TokenStream"·title="FromStr">FromStr</a></li><li><a·href="#impl-IntoIterator-for-TokenStream"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-ToTokens-for-TokenStream"·title="ToTokens">ToTokens</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-TokenStream"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-TokenStream"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Unpin-for-TokenStream"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-TokenStream"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-ToString-for-T"·title="ToString">ToString</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2·class="in-crate"><a·href="index.html">In·crate·proc_<wbr>macro</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">proc_macro</a></span><h1>Struct·<span·class="struct">TokenStream</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.15.0">1.15.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#90">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·TokenStream(<span·class="comment">/*·private·fields·*/</span>);</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>The·main·type·provided·by·this·crate,·representing·an·abstract·stream·of1 <!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="The·main·type·provided·by·this·crate,·representing·an·abstract·stream·of·tokens,·or,·more·specifically,·a·sequence·of·token·trees.·The·type·provides·interfaces·for·iterating·over·those·token·trees·and,·conversely,·collecting·a·number·of·token·trees·into·one·stream."><title>TokenStream·in·proc_macro·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../"·data-static-root-path="../static.files/"·data-current-crate="proc_macro"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../proc_macro/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../proc_macro/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../proc_macro/index.html">proc_<wbr>macro</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»     2025-01-07)»  (built»    from»a»       source» tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Token<wbr>Stream</a></h2><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.expand_expr"·title="expand_expr">expand_expr</a></li><li><a·href="#method.is_empty"·title="is_empty">is_empty</a></li><li><a·href="#method.new"·title="new">new</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Send-for-TokenStream"·title="!Send">!Send</a></li><li><a·href="#impl-Sync-for-TokenStream"·title="!Sync">!Sync</a></li><li><a·href="#impl-Clone-for-TokenStream"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-TokenStream"·title="Debug">Debug</a></li><li><a·href="#impl-Default-for-TokenStream"·title="Default">Default</a></li><li><a·href="#impl-Display-for-TokenStream"·title="Display">Display</a></li><li><a·href="#impl-Extend%3CTokenStream%3E-for-TokenStream"·title="Extend&#60;TokenStream&#62;">Extend&#60;TokenStream&#62;</a></li><li><a·href="#impl-Extend%3CTokenTree%3E-for-TokenStream"·title="Extend&#60;TokenTree&#62;">Extend&#60;TokenTree&#62;</a></li><li><a·href="#impl-From%3CTokenTree%3E-for-TokenStream"·title="From&#60;TokenTree&#62;">From&#60;TokenTree&#62;</a></li><li><a·href="#impl-FromIterator%3CTokenStream%3E-for-TokenStream"·title="FromIterator&#60;TokenStream&#62;">FromIterator&#60;TokenStream&#62;</a></li><li><a·href="#impl-FromIterator%3CTokenTree%3E-for-TokenStream"·title="FromIterator&#60;TokenTree&#62;">FromIterator&#60;TokenTree&#62;</a></li><li><a·href="#impl-FromStr-for-TokenStream"·title="FromStr">FromStr</a></li><li><a·href="#impl-IntoIterator-for-TokenStream"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-ToTokens-for-TokenStream"·title="ToTokens">ToTokens</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-TokenStream"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-TokenStream"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Unpin-for-TokenStream"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-TokenStream"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-ToString-for-T"·title="ToString">ToString</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2·class="in-crate"><a·href="index.html">In·crate·proc_<wbr>macro</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">proc_macro</a></span><h1>Struct·<span·class="struct">TokenStream</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.15.0">1.15.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#90">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·TokenStream(<span·class="comment">/*·private·fields·*/</span>);</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>The·main·type·provided·by·this·crate,·representing·an·abstract·stream·of
2 tokens,·or,·more·specifically,·a·sequence·of·token·trees.2 tokens,·or,·more·specifically,·a·sequence·of·token·trees.
3 The·type·provides·interfaces·for·iterating·over·those·token·trees·and,·conversely,3 The·type·provides·interfaces·for·iterating·over·those·token·trees·and,·conversely,
4 collecting·a·number·of·token·trees·into·one·stream.</p>4 collecting·a·number·of·token·trees·into·one·stream.</p>
5 <p>This·is·both·the·input·and·output·of·<code>#[proc_macro]</code>,·<code>#[proc_macro_attribute]</code>5 <p>This·is·both·the·input·and·output·of·<code>#[proc_macro]</code>,·<code>#[proc_macro_attribute]</code>
6 and·<code>#[proc_macro_derive]</code>·definitions.</p>6 and·<code>#[proc_macro_derive]</code>·definitions.</p>
7 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-TokenStream"·class="impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#140-171">Source</a><a·href="#impl-TokenStream"·class="anchor">§</a><h3·class="code-header">impl·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.new"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#143-145">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.new"·class="fn">new</a>()·-&gt;·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a></h4></section></summary><div·class="docblock"><p>Returns·an·empty·<code>TokenStream</code>·containing·no·token·trees.</p>7 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-TokenStream"·class="impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#140-171">Source</a><a·href="#impl-TokenStream"·class="anchor">§</a><h3·class="code-header">impl·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.new"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#143-145">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.new"·class="fn">new</a>()·-&gt;·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a></h4></section></summary><div·class="docblock"><p>Returns·an·empty·<code>TokenStream</code>·containing·no·token·trees.</p>
8 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_empty"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#149-151">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.is_empty"·class="fn">is_empty</a>(&amp;self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a></h4></section></summary><div·class="docblock"><p>Checks·if·this·<code>TokenStream</code>·is·empty.</p>8 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_empty"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#149-151">Source</a></span><h4·class="code-header">pub·fn·<a·href="#method.is_empty"·class="fn">is_empty</a>(&amp;self)·-&gt;·<a·class="primitive"·href="../std/primitive.bool.html">bool</a></h4></section></summary><div·class="docblock"><p>Checks·if·this·<code>TokenStream</code>·is·empty.</p>
9 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.expand_expr"·class="method"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#164-170">Source</a><h4·class="code-header">pub·fn·<a·href="#method.expand_expr"·class="fn">expand_expr</a>(&amp;self)·-&gt;·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a>,·<a·class="struct"·href="struct.ExpandError.html"·title="struct·proc_macro::ExpandError">ExpandError</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_expand</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/90765">#90765</a>)</span></div></span></summary><div·class="docblock"><p>Parses·this·<code>TokenStream</code>·as·an·expression·and·attempts·to·expand·any9 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.expand_expr"·class="method"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#164-170">Source</a><h4·class="code-header">pub·fn·<a·href="#method.expand_expr"·class="fn">expand_expr</a>(&amp;self)·-&gt;·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a>,·<a·class="struct"·href="struct.ExpandError.html"·title="struct·proc_macro::ExpandError">ExpandError</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_expand</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/90765">#90765</a>)</span></div></span></summary><div·class="docblock"><p>Parses·this·<code>TokenStream</code>·as·an·expression·and·attempts·to·expand·any
10 macros·within·it.·Returns·the·expanded·<code>TokenStream</code>.</p>10 macros·within·it.·Returns·the·expanded·<code>TokenStream</code>.</p>
11 <p>Currently·only·expressions·expanding·to·literals·will·succeed,·although11 <p>Currently·only·expressions·expanding·to·literals·will·succeed,·although
12 this·may·be·relaxed·in·the·future.</p>12 this·may·be·relaxed·in·the·future.</p>
13 <p>NOTE:·In·error·conditions,·<code>expand_expr</code>·may·leave·macros·unexpanded,13 <p>NOTE:·In·error·conditions,·<code>expand_expr</code>·may·leave·macros·unexpanded,
14 report·an·error,·failing·compilation,·and/or·return·an·<code>Err(..)</code>.·The14 report·an·error,·failing·compilation,·and/or·return·an·<code>Err(..)</code>.·The
15 specific·behavior·for·any·error·condition,·and·what·conditions·are15 specific·behavior·for·any·error·condition,·and·what·conditions·are
Offset 21, 31 lines modifiedOffset 21, 31 lines modified
21 <p>Note:·the·exact·form·of·the·output·is·subject·to·change,·e.g.·there·might21 <p>Note:·the·exact·form·of·the·output·is·subject·to·change,·e.g.·there·might
22 be·changes·in·the·whitespace·used·between·tokens.·Therefore,·you·should22 be·changes·in·the·whitespace·used·between·tokens.·Therefore,·you·should
23 <em>not</em>·do·any·kind·of·simple·substring·matching·on·the·output·string·(as23 <em>not</em>·do·any·kind·of·simple·substring·matching·on·the·output·string·(as
24 produced·by·<code>to_string</code>)·to·implement·a·proc·macro,·because·that·matching24 produced·by·<code>to_string</code>)·to·implement·a·proc·macro,·because·that·matching
25 might·stop·working·if·such·changes·happen.·Instead,·you·should·work·at·the25 might·stop·working·if·such·changes·happen.·Instead,·you·should·work·at·the
26 <code>TokenTree</code>·level,·e.g.·matching·against·<code>TokenTree::Ident</code>,26 <code>TokenTree</code>·level,·e.g.·matching·against·<code>TokenTree::Ident</code>,
27 <code>TokenTree::Punct</code>,·or·<code>TokenTree::Literal</code>.</p>27 <code>TokenTree::Punct</code>,·or·<code>TokenTree::Literal</code>.</p>
28 </div><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#213-215">Source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/fmt/trait.Display.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="../core/fmt/struct.Formatter.html"·title="struct·core::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="type"·href="../core/fmt/type.Result.html"·title="type·core::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../core/fmt/trait.Display.html#tymethod.fmt">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Extend%3CTokenStream%3E-for-TokenStream"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.30.0">1.30.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#365-372">Source</a></span><a·href="#impl-Extend%3CTokenStream%3E-for-TokenStream"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a>&gt;·for·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.extend-1"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#366-371">Source</a><a·href="#method.extend-1"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/iter/traits/collect/trait.Extend.html#tymethod.extend"·class="fn">extend</a>&lt;I:·<a·class="trait"·href="../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a>&gt;&gt;(&amp;mut·self,·streams:·I)</h4></section></summary><div·class='docblock'>Extends·a·collection·with·the·contents·of·an·iterator.·<a·href="../core/iter/traits/collect/trait.Extend.html#tymethod.extend">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.extend_one-1"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/iter/traits/collect.rs.html#453">Source</a><a·href="#method.extend_one-1"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/iter/traits/collect/trait.Extend.html#method.extend_one"·class="fn">extend_one</a>(&amp;mut·self,·item:·A)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>extend_one</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/72631">#72631</a>)</span></div></span><div·class='docblock'>Extends·a·collection·with·exactly·one·element.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.extend_reserve-1"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/iter/traits/collect.rs.html#461">Source</a><a·href="#method.extend_reserve-1"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/iter/traits/collect/trait.Extend.html#method.extend_reserve"·class="fn">extend_reserve</a>(&amp;mut·self,·additional:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.usize.html">usize</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>extend_one</code>&nbsp;<a·hre[·...·truncated·by·diffoscope;·len:·3167,·SHA:·691bbda01e786396de9fa9f4fc6083a6f41d505b516b4f011f0b33492c4b1946·...·]/std/primitive.usize.html">usize</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>extend_one</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/72631">#72631</a>)</span></div></span><div·class='docblock'>Reserves·capacity·in·a·collection·for·the·given·number·of·additional·elements.·<a·href="../core/iter/traits/collect/trait.Extend.html#method.extend_reserve">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-From%3CTokenTree%3E-for-TokenStream"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#250-254">Source</a></span><a·href="#impl-From%3CTokenTree%3E-for-TokenStream"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a>&gt;·for·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a></h3></section></summary><div·class="docblock"><p>Creates·a·token·stream·containing·a·single·token·tree.</p>28 </div><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#213-215">Source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/fmt/trait.Display.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="../core/fmt/struct.Formatter.html"·title="struct·core::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="type"·href="../core/fmt/type.Result.html"·title="type·core::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../core/fmt/trait.Display.html#tymethod.fmt">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Extend%3CTokenStream%3E-for-TokenStream"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.30.0">1.30.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#365-372">Source</a></span><a·href="#impl-Extend%3CTokenStream%3E-for-TokenStream"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a>&gt;·for·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.extend-1"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#366-371">Source</a><a·href="#method.extend-1"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/iter/traits/collect/trait.Extend.html#tymethod.extend"·class="fn">extend</a>&lt;I:·<a·class="trait"·href="../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a>&gt;&gt;(&amp;mut·self,·streams:·I)</h4></section></summary><div·class='docblock'>Extends·a·collection·with·the·contents·of·an·iterator.·<a·href="../core/iter/traits/collect/trait.Extend.html#tymethod.extend">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.extend_one-1"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/iter/traits/collect.rs.html#453">Source</a><a·href="#method.extend_one-1"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/iter/traits/collect/trait.Extend.html#method.extend_one"·class="fn">extend_one</a>(&amp;mut·self,·item:·A)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>extend_one</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/72631">#72631</a>)</span></div></span><div·class='docblock'>Extends·a·collection·with·exactly·one·element.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.extend_reserve-1"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/iter/traits/collect.rs.html#461">Source</a><a·href="#method.extend_reserve-1"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/iter/traits/collect/trait.Extend.html#method.extend_reserve"·class="fn">extend_reserve</a>(&amp;mut·self,·additional:·<a·class="primitive"·href="../std/primitive.usize.html">usize</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>extend_one</code>&nbsp;<a·href="https://github.com/rust-lan[·...·truncated·by·diffoscope;·len:·3107,·SHA:·38c195444af981aa5bbba4d325c71e3df8bd8c87adfd9ab58f64c6a341ae09e4·...·]/std/primitive.usize.html">usize</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>extend_one</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/72631">#72631</a>)</span></div></span><div·class='docblock'>Reserves·capacity·in·a·collection·for·the·given·number·of·additional·elements.·<a·href="../core/iter/traits/collect/trait.Extend.html#method.extend_reserve">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-From%3CTokenTree%3E-for-TokenStream"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#250-254">Source</a></span><a·href="#impl-From%3CTokenTree%3E-for-TokenStream"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a>&gt;·for·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a></h3></section></summary><div·class="docblock"><p>Creates·a·token·stream·containing·a·single·token·tree.</p>
29 </div><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#251-253">Source</a><a·href="#method.from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(tree:·<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a>)·-&gt;·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a></h4></section></summary><div·class='docblock'>Converts·to·this·type·from·the·input·type.</div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-FromIterator%3CTokenStream%3E-for-TokenStream"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.15.0">1.15.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#345-352">Source</a></span><a·href="#impl-FromIterator%3CTokenStream%3E-for-TokenStream"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a>&gt;·for·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a></h3></section></summary><div·class="docblock"><p>A·“flattening”·operation·on·token·streams,·collects·token·trees29 </div><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#251-253">Source</a><a·href="#method.from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(tree:·<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a>)·-&gt;·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a></h4></section></summary><div·class='docblock'>Converts·to·this·type·from·the·input·type.</div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-FromIterator%3CTokenStream%3E-for-TokenStream"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.15.0">1.15.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#345-352">Source</a></span><a·href="#impl-FromIterator%3CTokenStream%3E-for-TokenStream"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a>&gt;·for·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a></h3></section></summary><div·class="docblock"><p>A·“flattening”·operation·on·token·streams,·collects·token·trees
30 from·multiple·token·streams·into·a·single·stream.</p>30 from·multiple·token·streams·into·a·single·stream.</p>
31 </div><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from_iter-1"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#346-351">Source</a><a·href="#method.from_iter-1"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/iter/traits/collect/trait.FromIterator.html#tymethod.from_iter"·class="fn">from_iter</a>&lt;I:·<a·class="trait"·href="../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a>&gt;&gt;(streams:·I)·-&gt;·Self</h4></section></summary><div·class='docblock'>Creates·a·value·from·an·iterator.·<a·href="../core/iter/traits/collect/trait.FromIterator.html#tymethod.from_iter">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-FromIterator%3CTokenTree%3E-for-TokenStream"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#333-340">Source</a></span><a·href="#impl-FromIterator%3CTokenTree%3E-for-TokenStream"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a>&gt;·for·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a></h3></section></summary><div·class="docblock"><p>Collects·a·number·of·token·trees·into·a·single·stream.</p>31 </div><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from_iter-1"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#346-351">Source</a><a·href="#method.from_iter-1"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/iter/traits/collect/trait.FromIterator.html#tymethod.from_iter"·class="fn">from_iter</a>&lt;I:·<a·class="trait"·href="../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a>&gt;&gt;(streams:·I)·-&gt;·Self</h4></section></summary><div·class='docblock'>Creates·a·value·from·an·iterator.·<a·href="../core/iter/traits/collect/trait.FromIterator.html#tymethod.from_iter">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-FromIterator%3CTokenTree%3E-for-TokenStream"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#333-340">Source</a></span><a·href="#impl-FromIterator%3CTokenTree%3E-for-TokenStream"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a>&gt;·for·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a></h3></section></summary><div·class="docblock"><p>Collects·a·number·of·token·trees·into·a·single·stream.</p>
32 </div><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from_iter"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#334-339">Source</a><a·href="#method.from_iter"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/iter/traits/collect/trait.FromIterator.html#tymethod.from_iter"·class="fn">from_iter</a>&lt;I:·<a·class="trait"·href="../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a>&gt;&gt;(trees:·I)·-&gt;·Self</h4></section></summary><div·class='docblock'>Creates·a·value·from·an·iterator.·<a·href="../core/iter/traits/collect/trait.FromIterator.html#tymethod.from_iter">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-FromStr-for-TokenStream"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.15.0">1.15.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#181-187">Source</a></span><a·href="#impl-FromStr-for-TokenStream"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/str/traits/trait.FromStr.html"·title="trait·core::str::traits::FromStr">FromStr</a>·for·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a></h3></section></summary><div·class="docblock"><p>Attempts·to·break·the·string·into·tokens·and·parse·those·tokens·into·a·token·stream.32 </div><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from_iter"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#334-339">Source</a><a·href="#method.from_iter"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/iter/traits/collect/trait.FromIterator.html#tymethod.from_iter"·class="fn">from_iter</a>&lt;I:·<a·class="trait"·href="../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a>&gt;&gt;(trees:·I)·-&gt;·Self</h4></section></summary><div·class='docblock'>Creates·a·value·from·an·iterator.·<a·href="../core/iter/traits/collect/trait.FromIterator.html#tymethod.from_iter">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-FromStr-for-TokenStream"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.15.0">1.15.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#181-187">Source</a></span><a·href="#impl-FromStr-for-TokenStream"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/str/traits/trait.FromStr.html"·title="trait·core::str::traits::FromStr">FromStr</a>·for·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a></h3></section></summary><div·class="docblock"><p>Attempts·to·break·the·string·into·tokens·and·parse·those·tokens·into·a·token·stream.
33 May·fail·for·a·number·of·reasons,·for·example,·if·the·string·contains·unbalanced·delimiters33 May·fail·for·a·number·of·reasons,·for·example,·if·the·string·contains·unbalanced·delimiters
34 or·characters·not·existing·in·the·language.34 or·characters·not·existing·in·the·language.
35 All·tokens·in·the·parsed·stream·get·<code>Span::call_site()</code>·spans.</p>35 All·tokens·in·the·parsed·stream·get·<code>Span::call_site()</code>·spans.</p>
36 <p>NOTE:·some·errors·may·cause·panics·instead·of·returning·<code>LexError</code>.·We·reserve·the·right·to36 <p>NOTE:·some·errors·may·cause·panics·instead·of·returning·<code>LexError</code>.·We·reserve·the·right·to
37 change·these·errors·into·<code>LexError</code>s·later.</p>37 change·these·errors·into·<code>LexError</code>s·later.</p>
38 </div><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Err"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#182">Source</a><a·href="#associatedtype.Err"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/str/traits/trait.FromStr.html#associatedtype.Err"·class="associatedtype">Err</a>·=·<a·class="struct"·href="struct.LexError.html"·title="struct·proc_macro::LexError">LexError</a></h4></section></summary><div·class='docblock'>The·associated·error·which·can·be·returned·from·parsing.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.from_str"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#184-186">Source</a><a·href="#method.from_str"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/str/traits/trait.FromStr.html#tymethod.from_str"·class="fn">from_str</a>(src:·&amp;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.str.html">str</a>)·-&gt;·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a>,·<a·class="struct"·href="struct.LexError.html"·title="struct·proc_macro::LexError">LexError</a>&gt;</h4></section></summary><div·class='docblock'>Parses·a·string·<code>s</code>·to·return·a·value·of·this·type.·<a·href="../core/str/traits/trait.FromStr.html#tymethod.from_str">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-IntoIterator-for-TokenStream"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#417-424">Source</a></span><a·href="#impl-IntoIterator-for-TokenStream"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>·for·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Item"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#418">Source</a><a·href="#associatedtype.Item"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/iter/traits/collect/trait.IntoIterator.html#associatedtype.Item"·class="associatedtype">Item</a>·=·<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a></h4></section></summary><div·class='docblock'>The·type·of·the·elements·being·iterated·over.</div></details><details·class="toggle"·open><summary><section·id="associatedtype.IntoIter"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#419">Source</a><a·href="#associatedtype.IntoIter"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·class="associatedtype">IntoIter</a>·=·<a·class="struct"·href="token_stream/struct.IntoIter.html"·title="struct·proc_macro::token_stream::IntoIter">IntoIter</a></h4></section></summary><div·class='docblock'>Which·kind·of·iterator·are·we·turning·this·into?</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.into_iter"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#421-423">Source</a><a·href="#method.into_iter"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/iter/traits/collect/trait.IntoIterator.html#tymethod.into_iter"·class="fn">into_iter</a>(self)·-&gt;·<a·class="struct"·href="token_stream/struct.IntoIter.html"·title="struct·proc_macro::token_stream::IntoIter">IntoIter</a>·<a·href="#"·class="tooltip"·data-notable-ty="IntoIter">ⓘ</a></h4></section></summary><div·class='docblock'>Creates·an·iterator·from·a·value.·<a·href="../core/iter/traits/collect/trait.IntoIterator.html#tymethod.into_iter">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-ToTokens-for-TokenStream"·class="impl"><a·class="src·rightside"·href="../src/proc_macro/to_tokens.rs.html#89-97">Source</a><a·href="#impl-ToTokens-for-TokenStream"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="trait.ToTokens.html"·title="trait·proc_macro::ToTokens">ToTokens</a>·for·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.to_tokens"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/to_tokens.rs.html#90-92">Source</a><a·href="#method.to_tokens"·class="anchor">§</a><h4·class="code-header">fn·<a·href="trait.ToTokens.html#tymethod.to_tokens"·class="fn">to_tokens</a>(&amp;self,·tokens:·&amp;mut·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_totokens</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/130977">#130977</a>)</span></div></span><div·class='docblock'>Write·<code>self</code>·to·the·given·<code>TokenStream</code>.·<a·href="trait.ToTokens.html#tymethod.to_tokens">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.into_token_stream"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/to_tokens.rs.html#94-96">Source</a><a·href="#method.into_token_stream"·class="anchor">§</a><h4·class="code-header">fn·<a·href="trait.ToTokens.html#method.into_token_stream"·class="fn">into_token_stream</a>(self)·-&gt;·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_totokens</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/130977">#130977</a>)</span></div></span><div·class='docblock'>Convert·<code>self</code>·directly·into·a·<code>TokenStream</code>·object.·<a·href="trait.ToTokens.html#method.into_token_stream">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.to_token_stream"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/to_tokens.rs.html#57-61">Source</a><a·href="#method.to_token_stream"·class="anchor">§</a><h4·class="code-header">fn·<a·href="trait.ToTokens.html#method.to_token_stream"·class="fn">to_token_stream</a>(&amp;self)·-&gt;·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_totokens</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/130977">#130977</a>)</span></div></span><div·class='docblock'>Convert·<code>self</code>·directly·into·a·<code>TokenStream</code>·object.·<a·href="trait.ToTokens.html#method.to_token_stream">Read·more</a></div></details></div></details><section·id="impl-Send-for-TokenStream"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.15.0">1.15.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#93">Source</a></span><a·href="#impl-Send-for-TokenStream"·class="anchor">§</a><h3·class="code-header">impl·!<a·class="trait"·href="../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a></h3></section><section·id="impl-Sync-for-TokenStream"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.15.0">1.15.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#95">Source</a></span><a·href="#impl-Sync-for-TokenStream"·class="anchor">§</a><h3·class="code-header">impl·!<a·class="trait"·href="../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a></h3></section></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-TokenStream"·class="impl"><a·href="#impl-Freeze-for-TokenStream"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a></h3></section><section·id="impl-RefUnwindSafe-for-TokenStream"·class="impl"><a·href="#impl-RefUnwindSafe-for-TokenStream"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a></h3></section><section·id="impl-Unpin-for-TokenStream"·class="impl"><a·href="#impl-Unpin-for-TokenStream"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a></h3></section><section·id="impl-UnwindSafe-for-TokenStream"·class="impl"><a·href="#impl-UnwindSafe-for-TokenStream"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementations<a·href="#blanket-implementations"·class="anchor">§</a></h2><div·id="blanket-implementations-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-Any-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/any.rs.html#138">Source</a><a·href="#impl-Any-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where38 </div><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Err"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#182">Source</a><a·href="#associatedtype.Err"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/str/traits/trait.FromStr.html#associatedtype.Err"·class="associatedtype">Err</a>·=·<a·class="struct"·href="struct.LexError.html"·title="struct·proc_macro::LexError">LexError</a></h4></section></summary><div·class='docblock'>The·associated·error·which·can·be·returned·from·parsing.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.from_str"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#184-186">Source</a><a·href="#method.from_str"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/str/traits/trait.FromStr.html#tymethod.from_str"·class="fn">from_str</a>(src:·&amp;<a·class="primitive"·href="../std/primitive.str.html">str</a>)·-&gt;·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a>,·<a·class="struct"·href="struct.LexError.html"·title="struct·proc_macro::LexError">LexError</a>&gt;</h4></section></summary><div·class='docblock'>Parses·a·string·<code>s</code>·to·return·a·value·of·this·type.·<a·href="../core/str/traits/trait.FromStr.html#tymethod.from_str">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-IntoIterator-for-TokenStream"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#417-424">Source</a></span><a·href="#impl-IntoIterator-for-TokenStream"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>·for·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Item"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#418">Source</a><a·href="#associatedtype.Item"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/iter/traits/collect/trait.IntoIterator.html#associatedtype.Item"·class="associatedtype">Item</a>·=·<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a></h4></section></summary><div·class='docblock'>The·type·of·the·elements·being·iterated·over.</div></details><details·class="toggle"·open><summary><section·id="associatedtype.IntoIter"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#419">Source</a><a·href="#associatedtype.IntoIter"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·class="associatedtype">IntoIter</a>·=·<a·class="struct"·href="token_stream/struct.IntoIter.html"·title="struct·proc_macro::token_stream::IntoIter">IntoIter</a></h4></section></summary><div·class='docblock'>Which·kind·of·iterator·are·we·turning·this·into?</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.into_iter"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#421-423">Source</a><a·href="#method.into_iter"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/iter/traits/collect/trait.IntoIterator.html#tymethod.into_iter"·class="fn">into_iter</a>(self)·-&gt;·<a·class="struct"·href="token_stream/struct.IntoIter.html"·title="struct·proc_macro::token_stream::IntoIter">IntoIter</a>·<a·href="#"·class="tooltip"·data-notable-ty="IntoIter">ⓘ</a></h4></section></summary><div·class='docblock'>Creates·an·iterator·from·a·value.·<a·href="../core/iter/traits/collect/trait.IntoIterator.html#tymethod.into_iter">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-ToTokens-for-TokenStream"·class="impl"><a·class="src·rightside"·href="../src/proc_macro/to_tokens.rs.html#89-97">Source</a><a·href="#impl-ToTokens-for-TokenStream"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="trait.ToTokens.html"·title="trait·proc_macro::ToTokens">ToTokens</a>·for·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.to_tokens"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/to_tokens.rs.html#90-92">Source</a><a·href="#method.to_tokens"·class="anchor">§</a><h4·class="code-header">fn·<a·href="trait.ToTokens.html#tymethod.to_tokens"·class="fn">to_tokens</a>(&amp;self,·tokens:·&amp;mut·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_totokens</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/130977">#130977</a>)</span></div></span><div·class='docblock'>Write·<code>self</code>·to·the·given·<code>TokenStream</code>.·<a·href="trait.ToTokens.html#tymethod.to_tokens">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.into_token_stream"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/to_tokens.rs.html#94-96">Source</a><a·href="#method.into_token_stream"·class="anchor">§</a><h4·class="code-header">fn·<a·href="trait.ToTokens.html#method.into_token_stream"·class="fn">into_token_stream</a>(self)·-&gt;·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_totokens</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/130977">#130977</a>)</span></div></span><div·class='docblock'>Convert·<code>self</code>·directly·into·a·<code>TokenStream</code>·object.·<a·href="trait.ToTokens.html#method.into_token_stream">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.to_token_stream"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/to_tokens.rs.html#57-61">Source</a><a·href="#method.to_token_stream"·class="anchor">§</a><h4·class="code-header">fn·<a·href="trait.ToTokens.html#method.to_token_stream"·class="fn">to_token_stream</a>(&amp;self)·-&gt;·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_totokens</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/130977">#130977</a>)</span></div></span><div·class='docblock'>Convert·<code>self</code>·directly·into·a·<code>TokenStream</code>·object.·<a·href="trait.ToTokens.html#method.to_token_stream">Read·more</a></div></details></div></details><section·id="impl-Send-for-TokenStream"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.15.0">1.15.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#93">Source</a></span><a·href="#impl-Send-for-TokenStream"·class="anchor">§</a><h3·class="code-header">impl·!<a·class="trait"·href="../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a></h3></section><section·id="impl-Sync-for-TokenStream"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.15.0">1.15.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#95">Source</a></span><a·href="#impl-Sync-for-TokenStream"·class="anchor">§</a><h3·class="code-header">impl·!<a·class="trait"·href="../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a></h3></section></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-TokenStream"·class="impl"><a·href="#impl-Freeze-for-TokenStream"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a></h3></section><section·id="impl-RefUnwindSafe-for-TokenStream"·class="impl"><a·href="#impl-RefUnwindSafe-for-TokenStream"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a></h3></section><section·id="impl-Unpin-for-TokenStream"·class="impl"><a·href="#impl-Unpin-for-TokenStream"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a></h3></section><section·id="impl-UnwindSafe-for-TokenStream"·class="impl"><a·href="#impl-UnwindSafe-for-TokenStream"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementations<a·href="#blanket-implementations"·class="anchor">§</a></h2><div·id="blanket-implementations-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-Any-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/any.rs.html#138">Source</a><a·href="#impl-Any-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where
39 ····T:·'static·+·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/any.rs.html#139">Source</a><a·href="#method.type_id"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/any/trait.Any.html#tymethod.type_id"·class="fn">type_id</a>(&amp;self)·-&gt;·<a·class="struct"·href="../core/any/struct.TypeId.html"·title="struct·core::any::TypeId">TypeId</a></h4></section></summary><div·class='docblock'>Gets·the·<code>TypeId</code>·of·<code>self</code>.·<a·href="../core/any/trait.Any.html#tymethod.type_id">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Borrow%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/borrow/trait.Borrow.html"·title="trait·core::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where39 ····T:·'static·+·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/any.rs.html#139">Source</a><a·href="#method.type_id"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/any/trait.Any.html#tymethod.type_id"·class="fn">type_id</a>(&amp;self)·-&gt;·<a·class="struct"·href="../core/any/struct.TypeId.html"·title="struct·core::any::TypeId">TypeId</a></h4></section></summary><div·class='docblock'>Gets·the·<code>TypeId</code>·of·<code>self</code>.·<a·href="../core/any/trait.Any.html#tymethod.type_id">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Borrow%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/borrow/trait.Borrow.html"·title="trait·core::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where
40 ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#211">Source</a><a·href="#method.borrow"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow"·class="fn">borrow</a>(&amp;self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;T</a></h4></section></summary><div·class='docblock'>Immutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-BorrowMut%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/borrow/trait.BorrowMut.html"·title="trait·core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where40 ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#211">Source</a><a·href="#method.borrow"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow"·class="fn">borrow</a>(&amp;self)·-&gt;·<a·class="primitive"·href="../std/primitive.reference.html">&amp;T</a></h4></section></summary><div·class='docblock'>Immutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-BorrowMut%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/borrow/trait.BorrowMut.html"·title="trait·core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where
41 ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#218">Source</a><a·href="#method.borrow_mut"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"·class="fn">borrow_mut</a>(&amp;mut·self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;mut·T</a></h4></section></summary><div·class='docblock'>Mutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-CloneToUninit-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#273">Source</a><a·href="#impl-CloneToUninit-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where41 ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#218">Source</a><a·href="#method.borrow_mut"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"·class="fn">borrow_mut</a>(&amp;mut·self)·-&gt;·<a·class="primitive"·href="../std/primitive.reference.html">&amp;mut·T</a></h4></section></summary><div·class='docblock'>Mutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-CloneToUninit-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#273">Source</a><a·href="#impl-CloneToUninit-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where
42 ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#275">Source</a><a·href="#method.clone_to_uninit"·class="anchor">§</a><h4·class="code-header">unsafe·fn·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit"·class="fn">clone_to_uninit</a>(&amp;self,·dst:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.pointer.html">*mut·</a><a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.u8.html">u8</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>clone_to_uninit</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/126799">#126799</a>)</span></div></span><div·class='docblock'>Performs·copy-assignment·from·<code>self</code>·to·<code>dst</code>.·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-From%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#765">Source</a><a·href="#impl-From%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·T</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from-1"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#768">Source</a><a·href="#method.from-1"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>42 ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#275">Source</a><a·href="#method.clone_to_uninit"·class="anchor">§</a><h4·class="code-header">unsafe·fn·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit"·class="fn">clone_to_uninit</a>(&amp;self,·dst:·<a·class="primitive"·href="../std/primitive.pointer.html">*mut·</a><a·class="primitive"·href="../std/primitive.u8.html">u8</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>clone_to_uninit</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/126799">#126799</a>)</span></div></span><div·class='docblock'>Performs·copy-assignment·from·<code>self</code>·to·<code>dst</code>.·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-From%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#765">Source</a><a·href="#impl-From%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·T</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from-1"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#768">Source</a><a·href="#method.from-1"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>
43 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where43 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where
44 ····U:·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#758">Source</a><a·href="#method.into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>44 ····U:·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#758">Source</a><a·href="#method.into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>
45 <p>That·is,·this·conversion·is·whatever·the·implementation·of45 <p>That·is,·this·conversion·is·whatever·the·implementation·of
46 <code><a·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>46 <code><a·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>
47 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#82-84">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../alloc/borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where47 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#82-84">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../alloc/borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where
48 ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#86">Source</a><a·href="#associatedtype.Owned"·class="anchor">§</a><h4·class="code-header">type·<a·href="../alloc/borrow/trait.ToOwned.html#associatedtype.Owned"·class="associatedtype">Owned</a>·=·T</h4></section></summary><div·class='docblock'>The·resulting·type·after·obtaining·ownership.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.to_owned"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#87">Source</a><a·href="#method.to_owned"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned"·class="fn">to_owned</a>(&amp;self)·-&gt;·T</h4></section></summary><div·class='docblock'>Creates·owned·data·from·borrowed·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#91">Source</a><a·href="#method.clone_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into"·class="fn">clone_into</a>(&amp;self,·target:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToString-for-T"·class="impl"><a·class="src·rightside"·href="../src/alloc/string.rs.html#2677">Source</a><a·href="#impl-ToString-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../alloc/string/trait.ToString.html"·title="trait·alloc::string::ToString">ToString</a>·for·T<div·class="where">where48 ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#86">Source</a><a·href="#associatedtype.Owned"·class="anchor">§</a><h4·class="code-header">type·<a·href="../alloc/borrow/trait.ToOwned.html#associatedtype.Owned"·class="associatedtype">Owned</a>·=·T</h4></section></summary><div·class='docblock'>The·resulting·type·after·obtaining·ownership.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.to_owned"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#87">Source</a><a·href="#method.to_owned"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned"·class="fn">to_owned</a>(&amp;self)·-&gt;·T</h4></section></summary><div·class='docblock'>Creates·owned·data·from·borrowed·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#91">Source</a><a·href="#method.clone_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into"·class="fn">clone_into</a>(&amp;self,·target:·<a·class="primitive"·href="../std/primitive.reference.html">&amp;mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToString-for-T"·class="impl"><a·class="src·rightside"·href="../src/alloc/string.rs.html#2677">Source</a><a·href="#impl-ToString-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../alloc/string/trait.ToString.html"·title="trait·alloc::string::ToString">ToString</a>·for·T<div·class="where">where
49 ····T:·<a·class="trait"·href="../core/fmt/trait.Display.html"·title="trait·core::fmt::Display">Display</a>·+·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.to_string"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/string.rs.html#2683">Source</a><a·href="#method.to_string"·class="anchor">§</a><h4·class="code-header">default·fn·<a·href="../alloc/string/trait.ToString.html#tymethod.to_string"·class="fn">to_string</a>(&amp;self)·-&gt;·<a·class="struct"·href="../alloc/string/struct.String.html"·title="struct·alloc::string::String">String</a></h4></section></summary><div·class='docblock'>Converts·the·given·value·to·a·<code>String</code>.·<a·href="../alloc/string/trait.ToString.html#tymethod.to_string">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#805-807">Source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where49 ····T:·<a·class="trait"·href="../core/fmt/trait.Display.html"·title="trait·core::fmt::Display">Display</a>·+·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.to_string"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/string.rs.html#2683">Source</a><a·href="#method.to_string"·class="anchor">§</a><h4·class="code-header">default·fn·<a·href="../alloc/string/trait.ToString.html#tymethod.to_string"·class="fn">to_string</a>(&amp;self)·-&gt;·<a·class="struct"·href="../alloc/string/struct.String.html"·title="struct·alloc::string::String">String</a></h4></section></summary><div·class='docblock'>Converts·the·given·value·to·a·<code>String</code>.·<a·href="../alloc/string/trait.ToString.html#tymethod.to_string">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#805-807">Source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where
50 ····U:·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#809">Source</a><a·href="#associatedtype.Error-1"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<a·class="enum"·href="../core/convert/enum.Infallible.html"·title="enum·core::convert::Infallible">Infallible</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#812">Source</a><a·href="#method.try_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryFrom.html#tymethod.try_from"·class="fn">try_from</a>(value:·U)·-&gt;·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;T,·&lt;T·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryInto%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#790-792">Source</a><a·href="#impl-TryInto%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where50 ····U:·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#809">Source</a><a·href="#associatedtype.Error-1"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<a·class="enum"·href="../core/convert/enum.Infallible.html"·title="enum·core::convert::Infallible">Infallible</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#812">Source</a><a·href="#method.try_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryFrom.html#tymethod.try_from"·class="fn">try_from</a>(value:·U)·-&gt;·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;T,·&lt;T·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryInto%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#790-792">Source</a><a·href="#impl-TryInto%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where
51 ····U:·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#794">Source</a><a·href="#associatedtype.Error"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryInto.html#associatedtype.Error"·class="associatedtype">Error</a>·=·&lt;U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#797">Source</a><a·href="#method.try_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryInto.html#tymethod.try_into"·class="fn">try_into</a>(self)·-&gt;·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;U,·&lt;U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div><script·type="text/json"·id="notable-traits-data">{"IntoIter":"<h3>Notable·traits·for·<code><a·class=\"struct\"·href=\"token_stream/struct.IntoIter.html\"·title=\"struct·proc_macro::token_stream::IntoIter\">IntoIter</a></code></h3><pre><code><div·class=\"where\">impl·<a·class=\"trait\"·href=\"../core/iter/traits/iterator/trait.Iterator.html\"·title=\"trait·core::iter::traits::iterator::Iterator\">Iterator</a>·for·<a·class=\"struct\"·href=\"token_stream/struct.IntoIter.html\"·title=\"struct·proc_macro::token_stream::IntoIter\">IntoIter</a></div><div·class=\"where\">····type·<a·href=\"../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item\"·class=\"associatedtype\">Item</a>·=·<a·class=\"enum\"·href=\"enum.TokenTree.html\"·title=\"enum·proc_macro::TokenTree\">TokenTree</a>;</div>"}</script></section></div></main></body></html>51 ····U:·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#794">Source</a><a·href="#associatedtype.Error"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryInto.html#associatedtype.Error"·class="associatedtype">Error</a>·=·&lt;U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#797">Source</a><a·href="#method.try_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryInto.html#tymethod.try_into"·class="fn">try_into</a>(self)·-&gt;·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;U,·&lt;U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div><script·type="text/json"·id="notable-traits-data">{"IntoIter":"<h3>Notable·traits·for·<code><a·class=\"struct\"·href=\"token_stream/struct.IntoIter.html\"·title=\"struct·proc_macro::token_stream::IntoIter\">IntoIter</a></code></h3><pre><code><div·class=\"where\">impl·<a·class=\"trait\"·href=\"../core/iter/traits/iterator/trait.Iterator.html\"·title=\"trait·core::iter::traits::iterator::Iterator\">Iterator</a>·for·<a·class=\"struct\"·href=\"token_stream/struct.IntoIter.html\"·title=\"struct·proc_macro::token_stream::IntoIter\">IntoIter</a></div><div·class=\"where\">····type·<a·href=\"../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item\"·class=\"associatedtype\">Item</a>·=·<a·class=\"enum\"·href=\"enum.TokenTree.html\"·title=\"enum·proc_macro::TokenTree\">TokenTree</a>;</div>"}</script></section></div></main></body></html>
177 KB
./usr/share/doc/rust-doc/html/proc_macro/token_stream/struct.IntoIter.html
    
Offset 1, 15 lines modifiedOffset 1, 15 lines modified
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="An·iterator·over·`TokenStream`’s·`TokenTree`s.·The·iteration·is·“shallow”,·e.g.,·the·iterator·doesn’t·recurse·into·delimited·groups,·and·returns·whole·groups·as·token·trees."><title>IntoIter·in·proc_macro::token_stream·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="proc_macro"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../proc_macro/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../proc_macro/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../proc_macro/index.html">proc_<wbr>macro</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»       2025-01-07)»    (built»      from»  a» source»   tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Into<wbr>Iter</a></h2><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-IntoIter"·title="Clone">Clone</a></li><li><a·href="#impl-Iterator-for-IntoIter"·title="Iterator">Iterator</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Send-for-IntoIter"·title="!Send">!Send</a></li><li><a·href="#impl-Sync-for-IntoIter"·title="!Sync">!Sync</a></li><li><a·href="#impl-Freeze-for-IntoIter"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-IntoIter"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Unpin-for-IntoIter"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-IntoIter"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·proc_<wbr>macro::<wbr>token_<wbr>stream</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">proc_macro</a>::<wbr><a·href="index.html">token_stream</a></span><h1>Struct·<span·class="struct">IntoIter</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../../src/proc_macro/lib.rs.html#384-392">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·IntoIter(<span·class="comment">/*·private·fields·*/</span>);</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>An·iterator·over·<code>TokenStream</code>’s·<code>TokenTree</code>s.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="An·iterator·over·`TokenStream`’s·`TokenTree`s.·The·iteration·is·“shallow”,·e.g.,·the·iterator·doesn’t·recurse·into·delimited·groups,·and·returns·whole·groups·as·token·trees."><title>IntoIter·in·proc_macro::token_stream·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="proc_macro"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../proc_macro/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../proc_macro/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../proc_macro/index.html">proc_<wbr>macro</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»       2025-01-07)»    (built»      from»  a» source»   tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Into<wbr>Iter</a></h2><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-IntoIter"·title="Clone">Clone</a></li><li><a·href="#impl-Iterator-for-IntoIter"·title="Iterator">Iterator</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Send-for-IntoIter"·title="!Send">!Send</a></li><li><a·href="#impl-Sync-for-IntoIter"·title="!Sync">!Sync</a></li><li><a·href="#impl-Freeze-for-IntoIter"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-IntoIter"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Unpin-for-IntoIter"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-IntoIter"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-IntoIterator-for-I"·title="IntoIterator">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·proc_<wbr>macro::<wbr>token_<wbr>stream</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">proc_macro</a>::<wbr><a·href="index.html">token_stream</a></span><h1>Struct·<span·class="struct">IntoIter</span><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span·class="sub-heading"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../../src/proc_macro/lib.rs.html#384-392">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·IntoIter(<span·class="comment">/*·private·fields·*/</span>);</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>An·iterator·over·<code>TokenStream</code>’s·<code>TokenTree</code>s.
2 The·iteration·is·“shallow”,·e.g.,·the·iterator·doesn’t·recurse·into·delimited·groups,2 The·iteration·is·“shallow”,·e.g.,·the·iterator·doesn’t·recurse·into·delimited·groups,
3 and·returns·whole·groups·as·token·trees.</p>3 and·returns·whole·groups·as·token·trees.</p>
4 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-IntoIter"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../../src/proc_macro/lib.rs.html#382">Source</a></span><a·href="#impl-Clone-for-IntoIter"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struct"·href="struct.IntoIter.html"·title="struct·proc_macro::token_stream::IntoIter">IntoIter</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/proc_macro/lib.rs.html#382">Source</a><a·href="#method.clone"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/clone/trait.Clone.html#tymethod.clone"·class="fn">clone</a>(&amp;self)·-&gt;·<a·class="struct"·href="struct.IntoIter.html"·title="struct·proc_macro::token_stream::IntoIter">IntoIter</a>·<a·href="#"·class="tooltip"·data-notable-ty="IntoIter">ⓘ</a></h4></section></summary><div·class='docblock'>Returns·a·copy·of·the·value.·<a·href="../../core/clone/trait.Clone.html#tymethod.clone">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_from"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/clone.rs.html#174">Source</a></span><a·href="#method.clone_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/clone/trait.Clone.html#method.clone_from"·class="fn">clone_from</a>(&amp;mut·self,·source:·&amp;Self)</h4></section></summary><div·class='docblock'>Performs·copy-assignment·from·<code>source</code>.·<a·href="../../core/clone/trait.Clone.html#method.clone_from">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Iterator-for-IntoIter"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../../src/proc_macro/lib.rs.html#395-414">Source</a></span><a·href="#impl-Iterator-for-IntoIter"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::Iterator">Iterator</a>·for·<a·class="struct"·href="struct.IntoIter.html"·title="struct·proc_macro::token_stream::IntoIter">IntoIter</a></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Item"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/proc_macro/lib.rs.html#396">Source</a><a·href="#associatedtype.Item"·class="anchor">§</a><h4·class="code-header">type·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·class="associatedtype">Item</a>·=·<a·class="enum"·href="../enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a></h4></section></summary><div·class='docblock'>The·type·of·the·elements·being·iterated·over.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.next"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/proc_macro/lib.rs.html#398-405">Source</a><a·href="#method.next"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#tymethod.next"·class="fn">next</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="enum"·href="../enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a>&gt;</h4></section></summary><div·class='docblock'>Advances·the·iterator·and·returns·the·next·value.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#tymethod.next">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.size_hint"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/proc_macro/lib.rs.html#407-409">Source</a><a·href="#method.size_hint"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.size_hint"·class="fn">size_hint</a>(&amp;self)·-&gt;·(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.usize.html">usize</a>,·<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.usize.[·...·truncated·by·diffoscope;·len:·1380,·SHA:·231740922c133091356ca6e1777f5881324315a92656475ac12f922704f1be97·...·]/std/primitive.usize.html">usize</a>&gt;(4 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-IntoIter"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../../src/proc_macro/lib.rs.html#382">Source</a></span><a·href="#impl-Clone-for-IntoIter"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struct"·href="struct.IntoIter.html"·title="struct·proc_macro::token_stream::IntoIter">IntoIter</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/proc_macro/lib.rs.html#382">Source</a><a·href="#method.clone"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/clone/trait.Clone.html#tymethod.clone"·class="fn">clone</a>(&amp;self)·-&gt;·<a·class="struct"·href="struct.IntoIter.html"·title="struct·proc_macro::token_stream::IntoIter">IntoIter</a>·<a·href="#"·class="tooltip"·data-notable-ty="IntoIter">ⓘ</a></h4></section></summary><div·class='docblock'>Returns·a·copy·of·the·value.·<a·href="../../core/clone/trait.Clone.html#tymethod.clone">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_from"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/clone.rs.html#174">Source</a></span><a·href="#method.clone_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/clone/trait.Clone.html#method.clone_from"·class="fn">clone_from</a>(&amp;mut·self,·source:·&amp;Self)</h4></section></summary><div·class='docblock'>Performs·copy-assignment·from·<code>source</code>.·<a·href="../../core/clone/trait.Clone.html#method.clone_from">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Iterator-for-IntoIter"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../../src/proc_macro/lib.rs.html#395-414">Source</a></span><a·href="#impl-Iterator-for-IntoIter"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::Iterator">Iterator</a>·for·<a·class="struct"·href="struct.IntoIter.html"·title="struct·proc_macro::token_stream::IntoIter">IntoIter</a></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Item"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/proc_macro/lib.rs.html#396">Source</a><a·href="#associatedtype.Item"·class="anchor">§</a><h4·class="code-header">type·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·class="associatedtype">Item</a>·=·<a·class="enum"·href="../enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a></h4></section></summary><div·class='docblock'>The·type·of·the·elements·being·iterated·over.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.next"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/proc_macro/lib.rs.html#398-405">Source</a><a·href="#method.next"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#tymethod.next"·class="fn">next</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="enum"·href="../enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a>&gt;</h4></section></summary><div·class='docblock'>Advances·the·iterator·and·returns·the·next·value.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#tymethod.next">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.size_hint"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/proc_macro/lib.rs.html#407-409">Source</a><a·href="#method.size_hint"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.size_hint"·class="fn">size_hint</a>(&amp;self)·-&gt;·(<a·class="primitive"·href="../../std/primitive.usize.html">usize</a>,·<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="../../std/primitive.usize.html">usize</a>&gt;)</h4></section></summary><div·clas[·...·truncated·by·diffoscope;·len:·1272,·SHA:·30f05fe02e61e32236338e35ae52db15d31bd66e21a88883d33d97fe118cbbcc·...·]/std/primitive.usize.html">usize</a>&gt;(
5 ····&amp;mut·self,5 ····&amp;mut·self,
6 )·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.array.html">N</a>],·<a·class="struct"·href="../../core/array/iter/struct.IntoIter.html"·title="struct·core::array::iter::IntoIter">IntoIter</a>&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where6 )·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;[Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>;·<a·class="primitive"·href="../../std/primitive.array.html">N</a>],·<a·class="struct"·href="../../core/array/iter/struct.IntoIter.html"·title="struct·core::array::iter::IntoIter">IntoIter</a>&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N&gt;&gt;<div·class="where">where
7 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_next_chunk</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/98326">#98326</a>)</span></div></span><div·class='docblock'>Advances·the·iterator·and·returns·an·array·containing·the·next·<code>N</code>·values.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.next_chunk">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.last"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#249-251">Source</a></span><a·href="#method.last"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.last"·class="fn">last</a>(self)·-&gt;·<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where7 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_next_chunk</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/98326">#98326</a>)</span></div></span><div·class='docblock'>Advances·the·iterator·and·returns·an·array·containing·the·next·<code>N</code>·values.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.next_chunk">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.last"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#249-251">Source</a></span><a·href="#method.last"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.last"·class="fn">last</a>(self)·-&gt;·<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
8 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·returning·the·last·element.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.last">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.advance_by"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/iter/traits/iterator.rs.html#296">Source</a><a·href="#method.advance_by"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.advance_by"·class="fn">advance_by</a>(&amp;mut·self,·n:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.usize.html">usize</a>)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.[·...·truncated·by·diffoscope;·len:·2307,·SHA:·71dc8a2cf09d95003c2266445625a15756bf3a0cf3052345a8828da5172c4b9e·...·]/std/primitive.usize.html">usize</a>)·-&gt;·<a·class="struct"·href="../../core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where8 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·returning·the·last·element.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.last">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.advance_by"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/iter/traits/iterator.rs.html#296">Source</a><a·href="#method.advance_by"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.advance_by"·class="fn">advance_by</a>(&amp;mut·self,·n:·<a·class="primitive"·href="../../std/primitive.usize.html">usize</a>)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="primitive"·href="../../std/primitive.unit.html">()</a>,·<a·class="struct"·href="../../core/[·...·truncated·by·diffoscope;·len:·2172,·SHA:·226df8a0ac7cc66c1a5f258a2691317e43902eaa4fe16a0a30bf120571e10626·...·]/std/primitive.usize.html">usize</a>)·-&gt;·<a·class="struct"·href="../../core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where
9 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by9 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by
10 the·given·amount·at·each·iteration.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#468-471">Source</a></span><a·href="#method.chain"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.chain"·class="fn">chain</a>&lt;U&gt;(self,·other:·U)·-&gt;·<a·class="struct"·href="../../core/iter/adapters/chain/struct.Chain.html"·title="struct·core::iter::adapters::chain::Chain">Chain</a>&lt;Self,·&lt;U·as·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&gt;::<a·class="associatedtype"·href="../../core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where10 the·given·amount·at·each·iteration.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#468-471">Source</a></span><a·href="#method.chain"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.chain"·class="fn">chain</a>&lt;U&gt;(self,·other:·U)·-&gt;·<a·class="struct"·href="../../core/iter/adapters/chain/struct.Chain.html"·title="struct·core::iter::adapters::chain::Chain">Chain</a>&lt;Self,·&lt;U·as·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&gt;::<a·class="associatedtype"·href="../../core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
11 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,11 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
12 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,</div></h4></section></summary><div·class='docblock'>Takes·two·iterators·and·creates·a·new·iterator·over·both·in·sequence.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.chain">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.zip"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#586-589">Source</a></span><a·href="#method.zip"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.zip"·class="fn">zip</a>&lt;U&gt;(self,·other:·U)·-&gt;·<a·class="struct"·href="../../core/iter/adapters/zip/struct.Zip.html"·title="struct·core::iter::adapters::zip::Zip">Zip</a>&lt;Self,·&lt;U·as·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&gt;::<a·class="associatedtype"·href="../../core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where12 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,</div></h4></section></summary><div·class='docblock'>Takes·two·iterators·and·creates·a·new·iterator·over·both·in·sequence.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.chain">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.zip"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#586-589">Source</a></span><a·href="#method.zip"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.zip"·class="fn">zip</a>&lt;U&gt;(self,·other:·U)·-&gt;·<a·class="struct"·href="../../core/iter/adapters/zip/struct.Zip.html"·title="struct·core::iter::adapters::zip::Zip">Zip</a>&lt;Self,·&lt;U·as·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&gt;::<a·class="associatedtype"·href="../../core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
13 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,13 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
14 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·of·pairs.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.zip">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/iter/traits/iterator.rs.html#628-631">Source</a><a·href="#method.intersperse"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse"·class="fn">intersperse</a>(self,·separator:·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·<a·class="struct"·href="../../core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where14 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·of·pairs.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.zip">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/iter/traits/iterator.rs.html#628-631">Source</a><a·href="#method.intersperse"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse"·class="fn">intersperse</a>(self,·separator:·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·<a·class="struct"·href="../../core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt;<div·class="where">where
15 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,15 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
Offset 20, 117 lines modifiedOffset 20, 117 lines modified
20 between·adjacent·items·of·the·original·iterator.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#745-748">Source</a></span><a·href="#method.map"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.map"·class="fn">map</a>&lt;B,·F&gt;(self,·f:·F)·-&gt;·<a·class="struct"·href="../../core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where20 between·adjacent·items·of·the·original·iterator.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#745-748">Source</a></span><a·href="#method.map"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.map"·class="fn">map</a>&lt;B,·F&gt;(self,·f:·F)·-&gt;·<a·class="struct"·href="../../core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where
21 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,21 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
22 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each22 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each
23 element.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.21.0">1.21.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#790-793">Source</a></span><a·href="#method.for_each"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where23 element.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.21.0">1.21.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#790-793">Source</a></span><a·href="#method.for_each"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where
24 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,24 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
25 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>),</div></h4></section></summary><div·class='docblock'>Calls·a·closure·on·each·element·of·an·iterator.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#866-869">Source</a></span><a·href="#method.filter"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.filter"·class="fn">filter</a>&lt;P&gt;(self,·predicate:·P)·-&gt;·<a·class="struct"·href="../../core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where25 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>),</div></h4></section></summary><div·class='docblock'>Calls·a·closure·on·each·element·of·an·iterator.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#866-869">Source</a></span><a·href="#method.filter"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.filter"·class="fn">filter</a>&lt;P&gt;(self,·predicate:·P)·-&gt;·<a·class="struct"·href="../../core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where
26 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,26 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
27 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element27 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·<a·class="primitive"·href="../../std/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element
28 should·be·yielded.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#911-914">Source</a></span><a·href="#method.filter_map"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.filter_map"·class="fn">filter_map</a>&lt;B,·F&gt;(self,·f:·F)·-&gt;·<a·class="struct"·href="../../core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where28 should·be·yielded.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#911-914">Source</a></span><a·href="#method.filter_map"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.filter_map"·class="fn">filter_map</a>&lt;B,·F&gt;(self,·f:·F)·-&gt;·<a·class="struct"·href="../../core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where
29 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,29 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
30 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·both·filters·and·maps.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.filter_map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.enumerate"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#958-960">Source</a></span><a·href="#method.enumerate"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.enumerate"·class="fn">enumerate</a>(self)·-&gt;·<a·class="struct"·href="../../core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where30 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·both·filters·and·maps.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.filter_map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.enumerate"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#958-960">Source</a></span><a·href="#method.enumerate"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.enumerate"·class="fn">enumerate</a>(self)·-&gt;·<a·class="struct"·href="../../core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where
31 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as31 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as
32 the·next·value.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#1029-1031">Source</a></span><a·href="#method.peekable"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.peekable"·class="fn">peekable</a>(self)·-&gt;·<a·class="struct"·href="../../core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where32 the·next·value.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#1029-1031">Source</a></span><a·href="#method.peekable"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.peekable"·class="fn">peekable</a>(self)·-&gt;·<a·class="struct"·href="../../core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where
33 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="../../core/iter/adapters/peekable/struct.Peekable.html#method.peek"·title="method·core::iter::adapters::peekable::Peekable::peek"><code>peek</code></a>·and·<a·href="../../core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods33 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="../../core/iter/adapters/peekable/struct.Peekable.html#method.peek"·title="method·core::iter::adapters::peekable::Peekable::peek"><code>peek</code></a>·and·<a·href="../../core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods
34 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See34 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See
35 their·documentation·for·more·information.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#1094-1097">Source</a></span><a·href="#method.skip_while"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.skip_while"·class="fn">skip_while</a>&lt;P&gt;(self,·predicate:·P)·-&gt;·<a·class="struct"·href="../../core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where35 their·documentation·for·more·information.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#1094-1097">Source</a></span><a·href="#method.skip_while"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.skip_while"·class="fn">skip_while</a>&lt;P&gt;(self,·predicate:·P)·-&gt;·<a·class="struct"·href="../../core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where
36 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,36 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
37 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.skip"·title="method·core::iter::traits::iterator::Iterator::skip"><code>skip</code></a>s·elements·based·on·a·predicate.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.skip_while">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.take_while"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#1175-1178">Source</a></span><a·href="#method.take_while"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.take_while"·class="fn">take_while</a>&lt;P&gt;(self,·predicate:·P)·-&gt;·<a·class="struct"·href="../../core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where37 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·<a·class="primitive"·href="../../std/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.skip"·title="method·core::iter::traits::iterator::Iterator::skip"><code>skip</code></a>s·elements·based·on·a·predicate.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.skip_while">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.take_while"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#1175-1178">Source</a></span><a·href="#method.take_while"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.take_while"·class="fn">take_while</a>&lt;P&gt;(self,·predicate:·P)·-&gt;·<a·class="struct"·href="../../core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where
38 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,38 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
39 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·elements·based·on·a·predicate.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.take_while">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map_while"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.57.0">1.57.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#1263-1266">Source</a></span><a·href="#method.map_while"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.map_while"·class="fn">map_while</a>&lt;B,·P&gt;(self,·predicate:·P)·-&gt;·<a·class="struct"·href="../../core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where39 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·<a·class="primitive"·href="../../std/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·elements·based·on·a·predicate.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.take_while">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map_while"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.57.0">1.57.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#1263-1266">Source</a></span><a·href="#method.map_while"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.map_while"·class="fn">map_while</a>&lt;B,·P&gt;(self,·predicate:·P)·-&gt;·<a·class="struct"·href="../../core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where
40 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,40 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
41 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·both·yields·elements·based·on·a·predicate·and·maps.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.map_while">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#1292-1294">Source</a></span><a·href="#method.skip"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.skip"·class="fn">skip</a>(self,·n:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.usize.html">usize</a>)·-&gt;·<a·class="struct"·href="../../core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where41 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·both·yields·elements·based·on·a·predicate·and·maps.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.map_while">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#1292-1294">Source</a></span><a·href="#method.skip"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.skip"·class="fn">skip</a>(self,·n:·<a·class="primitive"·href="../../std/primitive.usize.html">usize</a>)·-&gt;·<a·class="struct"·href="../../core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where
42 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.skip">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.take"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#1345-1347">Source</a></span><a·href="#method.take"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.take"·class="fn">take</a>(self,·n:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.usize.html">usize</a>)·-&gt;·<a·class="struct"·href="../../core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where42 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.skip">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.take"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#1345-1347">Source</a></span><a·href="#method.take"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.take"·class="fn">take</a>(self,·n:·<a·class="primitive"·href="../../std/primitive.usize.html">usize</a>)·-&gt;·<a·class="struct"·href="../../core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where
43 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer43 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer
44 if·the·underlying·iterator·ends·sooner.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#1392-1395">Source</a></span><a·href="#method.scan"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.scan"·class="fn">scan</a>&lt;St,·B,·F&gt;(self,·initial_state:·St,·f:·F)·-&gt;·<a·class="struct"·href="../../core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where44 if·the·underlying·iterator·ends·sooner.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#1392-1395">Source</a></span><a·href="#method.scan"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.scan"·class="fn">scan</a>&lt;St,·B,·F&gt;(self,·initial_state:·St,·f:·F)·-&gt;·<a·class="struct"·href="../../core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where
45 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,45 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
46 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·adapter·which,·like·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but46 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../std/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·adapter·which,·like·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but
47 unlike·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.scan">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.flat_map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#1430-1434">Source</a></span><a·href="#method.flat_map"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.flat_map"·class="fn">flat_map</a>&lt;U,·F&gt;(self,·f:·F)·-&gt;·<a·class="struct"·href="../../core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where47 unlike·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.scan">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.flat_map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#1430-1434">Source</a></span><a·href="#method.flat_map"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.flat_map"·class="fn">flat_map</a>&lt;U,·F&gt;(self,·f:·F)·-&gt;·<a·class="struct"·href="../../core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where
48 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,48 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
49 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,49 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
50 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·U,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·works·like·map,·but·flattens·nested·structure.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.flat_map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map_windows"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/iter/traits/iterator.rs.html#1670-1673">Source</a><a·href="#method.map_windows"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.map_windows"·class="fn">map_windows</a>&lt;F,·R,·const·N:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.usize.html">usize</a>&gt;(self,·f:·F)·-&gt;·<a·class="struct"·href="../../core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where50 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·U,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·works·like·map,·but·flattens·nested·structure.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.flat_map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map_windows"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/iter/traits/iterator.rs.html#1670-1673">Source</a><a·href="#method.map_windows"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.map_windows"·class="fn">map_windows</a>&lt;F,·R,·const·N:·<a·class="primitive"·href="../../std/primitive.usize.html">usize</a>&gt;(self,·f:·F)·-&gt;·<a·class="struct"·href="../../core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where
51 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,51 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
52 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over52 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>;·<a·class="primitive"·href="../../std/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over
53 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="https://doc.rust-lang.org/1.84.0/std/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,53 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="../../std/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,
54 the·windows·during·mapping·overlap·as·well.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#1736-1738">Source</a></span><a·href="#method.fuse"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.fuse"·class="fn">fuse</a>(self)·-&gt;·<a·class="struct"·href="../../core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where54 the·windows·during·mapping·overlap·as·well.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#1736-1738">Source</a></span><a·href="#method.fuse"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.fuse"·class="fn">fuse</a>(self)·-&gt;·<a·class="struct"·href="../../core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where
55 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="../../core/option/enum.Option.html#variant.None"·title="variant·core::option::Option::None"><code>None</code></a>.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.fuse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.inspect"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#1820-1823">Source</a></span><a·href="#method.inspect"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.inspect"·class="fn">inspect</a>&lt;F&gt;(self,·f:·F)·-&gt;·<a·class="struct"·href="../../core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where55 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="../../core/option/enum.Option.html#variant.None"·title="variant·core::option::Option::None"><code>None</code></a>.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.fuse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.inspect"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#1820-1823">Source</a></span><a·href="#method.inspect"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.inspect"·class="fn">inspect</a>&lt;F&gt;(self,·f:·F)·-&gt;·<a·class="struct"·href="../../core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where
56 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,56 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
57 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>),</div></h4></section></summary><div·class='docblock'>Does·something·with·each·element·of·an·iterator,·passing·the·value·on.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.inspect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.by_ref"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#1848-1850">Source</a></span><a·href="#method.by_ref"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where57 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>),</div></h4></section></summary><div·class='docblock'>Does·something·with·each·element·of·an·iterator,·passing·the·value·on.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.inspect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.by_ref"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#1848-1850">Source</a></span><a·href="#method.by_ref"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&amp;mut·self)·-&gt;·&amp;mut·Self<div·class="where">where
58 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.by_ref">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#1967-1969">Source</a></span><a·href="#method.collect"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where58 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.by_ref">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#1967-1969">Source</a></span><a·href="#method.collect"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where
59 ····B:·<a·class="trait"·href="../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,59 ····B:·<a·class="trait"·href="../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
60 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/iter/traits/iterator.rs.html#2117-2119">Source</a><a·href="#method.collect_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.collect_into"·class="fn">collect_into</a>&lt;E&gt;(self,·collection:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;mut·E</a>)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;mut·E</a><div·class="where">where60 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/iter/traits/iterator.rs.html#2117-2119">Source</a><a·href="#method.collect_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.collect_into"·class="fn">collect_into</a>&lt;E&gt;(self,·collection:·<a·class="primitive"·href="../../std/primitive.reference.html">&amp;mut·E</a>)·-&gt;·<a·class="primitive"·href="../../std/primitive.reference.html">&amp;mut·E</a><div·class="where">where
61 ····E:·<a·class="trait"·href="../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,61 ····E:·<a·class="trait"·href="../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
62 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_collect_into</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94780">#94780</a>)</span></div></span><div·class='docblock'>Collects·all·the·items·from·an·iterator·into·a·collection.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.collect_into">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.partition"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#2149-2153">Source</a></span><a·href="#method.partition"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.partition"·class="fn">partition</a>&lt;B,·F&gt;(self,·f:·F)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.tuple.html">(B,·B)</a><div·class="where">where62 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_collect_into</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/94780">#94780</a>)</span></div></span><div·class='docblock'>Collects·all·the·items·from·an·iterator·into·a·collection.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.collect_into">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.partition"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#2149-2153">Source</a></span><a·href="#method.partition"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.partition"·class="fn">partition</a>&lt;B,·F&gt;(self,·f:·F)·-&gt;·<a·class="primitive"·href="../../std/primitive.tuple.html">(B,·B)</a><div·class="where">where
63 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,63 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
64 ····B:·<a·class="trait"·href="../../core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,64 ····B:·<a·class="trait"·href="../../core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
65 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Consumes·an·iterator,·creating·two·collections·from·it.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.partition">R[·...·truncated·by·diffoscope;·len:·526,·SHA:·69ee45f5126cd57db8bd85b6a56f3ca6e821e0dde46a45f43bcf33a3a99c46bf·...·]/std/primitive.bool.html">bool</a><div·class="where">where65 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·<a·class="primitive"·href="../../std/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Consumes·an·iterator,·creating·two·collections·from·it.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.partition">Read·more</a></div></details[·...·truncated·by·diffoscope;·len:·472,·SHA:·8926ae6336b8372d9f9885c50f0f3d4fa5a1dfbf64489ca447b55c30bc23c316·...·]/std/primitive.bool.html">bool</a><div·class="where">where
66 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,66 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
67 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,67 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·<a·class="primitive"·href="../../std/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,
68 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.27.0">1.27.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#2362-2366">Source</a></span><a·href="#method.try_fold"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where68 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.27.0">1.27.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#2362-2366">Source</a></span><a·href="#method.try_fold"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where
69 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,69 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
70 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,70 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
71 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns71 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns
72 successfully,·producing·a·single,·final·value.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.27.0">1.27.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#2420-2424">Source</a></span><a·href="#method.try_for_each"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where72 successfully,·producing·a·single,·final·value.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.27.0">1.27.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#2420-2424">Source</a></span><a·href="#method.try_for_each"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where
73 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,73 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
74 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,74 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
75 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the75 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="../../std/primitive.unit.html">()</a>&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the
76 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#2539-2542">Source</a></span><a·href="#method.fold"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where76 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#2539-2542">Source</a></span><a·href="#method.fold"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where
77 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,77 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
78 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,78 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,
79 returning·the·final·result.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.51.0">1.51.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#2576-2579">Source</a></span><a·href="#method.reduce"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.reduce"·class="fn">reduce</a>&lt;F&gt;(self,·f:·F)·-&gt;·<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where79 returning·the·final·result.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.51.0">1.51.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#2576-2579">Source</a></span><a·href="#method.reduce"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.reduce"·class="fn">reduce</a>&lt;F&gt;(self,·f:·F)·-&gt;·<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
80 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,80 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
81 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing81 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing
82 operation.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/iter/traits/iterator.rs.html#2647-2653">Source</a><a·href="#method.try_reduce"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(82 operation.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/iter/traits/iterator.rs.html#2647-2653">Source</a><a·href="#method.try_reduce"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(
83 ····&amp;mut·self,83 ····&amp;mut·self,
84 ····f:·impl·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,84 ····f:·impl·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
85 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;&gt;&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where85 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>&gt;&gt;&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
86 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,86 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
87 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,87 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
88 ····&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>:·<a·class="trait"·href="../../core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the88 ····&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>:·<a·class="trait"·href="../../core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the
89 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#2705-2708">Source</a></span><a·href="#method.all"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.all"·class="fn">all</a>&lt;F&gt;(&amp;mut·self,·f:·F)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a><div·class="where">where89 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#2705-2708">Source</a></span><a·href="#method.all"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.all"·class="fn">all</a>&lt;F&gt;(&amp;mut·self,·f:·F)·-&gt;·<a·class="primitive"·href="../../std/primitive.bool.html">bool</a><div·class="where">where
90 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,90 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
91 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Tests·if·every·element·of·the·iterator·matches·a·predicate.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.all">Rea[·...·truncated·by·diffoscope;·len:·577,·SHA:·00bc3fb756486a86ff784f094ed6e713df1af58f39334f0b1bfeeb1bd76c6ae9·...·]/std/primitive.bool.html">bool</a><div·class="where">where91 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·<a·class="primitive"·href="../../std/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Tests·if·every·element·of·the·iterator·matches·a·predicate.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.all">Read·more</a></div></details><[·...·truncated·by·diffoscope;·len:·523,·SHA:·8b9d2d363c29158d3aed6cff39f992548cbfb397fed2f6f36dd287b1c46b19f5·...·]/std/primitive.bool.html">bool</a><div·class="where">where
92 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,92 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
93 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Tests·if·any·element·of·the·iterator·matches·a·predicate.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.any">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.find"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#2821-2824">Source</a></span><a·href="#method.find"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.find"·class="fn">find</a>&lt;P&gt;(&amp;mut·self,·predicate:·P)·-&gt;·<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where93 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·<a·class="primitive"·href="../../std/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Tests·if·any·element·of·the·iterator·matches·a·predicate.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.any">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.find"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#2821-2824">Source</a></span><a·href="#method.find"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.find"·class="fn">find</a>&lt;P&gt;(&amp;mut·self,·predicate:·P)·-&gt;·<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
94 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,94 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
95 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Searches·for·an·element·of·an·iterator·that·satisfies·a·predicate.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.find">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.find_map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.30.0">1.30.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#2852-2855">Source</a></span><a·href="#method.find_map"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.find_map"·class="fn">find_map</a>&lt;B,·F&gt;(&amp;mut·self,·f:·F)·-&gt;·<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where95 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·<a·class="primitive"·href="../../std/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Searches·for·an·element·of·an·iterator·that·satisfies·a·predicate.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.find">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.find_map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.30.0">1.30.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#2852-2855">Source</a></span><a·href="#method.find_map"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.find_map"·class="fn">find_map</a>&lt;B,·F&gt;(&amp;mut·self,·f:·F)·-&gt;·<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where
96 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,96 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
97 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;,</div></h4></section></summary><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns97 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;,</div></h4></section></summary><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns
98 the·first·non-none·result.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.find_map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_find"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/iter/traits/iterator.rs.html#2910-2916">Source</a><a·href="#method.try_find"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(98 the·first·non-none·result.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.find_map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_find"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/iter/traits/iterator.rs.html#2910-2916">Source</a><a·href="#method.try_find"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(
99 ····&amp;mut·self,99 ····&amp;mut·self,
100 ····f:·impl·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,100 ····f:·impl·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
101 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where101 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
102 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,102 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
103 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>&gt;,103 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="../../std/primitive.bool.html">bool</a>&gt;,
104 ····&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>:·<a·class="trait"·href="../../core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>try_find</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/63178">#63178</a>)</span></div></span><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns104 ····&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>:·<a·class="trait"·href="../../core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a>&lt;<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>try_find</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/63178">#63178</a>)</span></div></span><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns
105 the·first·true·result·or·the·first·error.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_find">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.position"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#2993-2996">Source</a></span><a·href="#method.position"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.position"·class="fn">position</a>&lt;P&gt;(&amp;mut·self,·predicate:·P)·-&gt;·<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.usize.html">usize</a>&gt;<div·class="where">where105 the·first·true·result·or·the·first·error.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_find">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.position"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#2993-2996">Source</a></span><a·href="#method.position"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.position"·class="fn">position</a>&lt;P&gt;(&amp;mut·self,·predicate:·P)·-&gt;·<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="../../std/primitive.usize.html">usize</a>&gt;<div·class="where">where
106 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,106 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
107 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Searches·for·an·element·in·an·iterator,·returning·its·index.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.position">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.max_by_key"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.6.0">1.6.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#3164-3167">Source</a></span><a·href="#method.max_by_key"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.max_by_key"·class="fn">max_by_key</a>&lt;B,·F&gt;(self,·f:·F)·-&gt;·<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where107 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·<a·class="primitive"·href="../../std/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Searches·for·an·element·in·an·iterator,·returning·its·index.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.position">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.max_by_key"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.6.0">1.6.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#3164-3167">Source</a></span><a·href="#method.max_by_key"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.max_by_key"·class="fn">max_by_key</a>&lt;B,·F&gt;(self,·f:·F)·-&gt;·<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
108 ····B:·<a·class="trait"·href="../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,108 ····B:·<a·class="trait"·href="../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,
109 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,109 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
110 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Returns·the·element·that·gives·the·maximum·value·from·the110 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Returns·the·element·that·gives·the·maximum·value·from·the
111 specified·function.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.max_by_key">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.max_by"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.15.0">1.15.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#3197-3200">Source</a></span><a·href="#method.max_by"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.max_by"·class="fn">max_by</a>&lt;F&gt;(self,·compare:·F)·-&gt;·<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where111 specified·function.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.max_by_key">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.max_by"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.15.0">1.15.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#3197-3200">Source</a></span><a·href="#method.max_by"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.max_by"·class="fn">max_by</a>&lt;F&gt;(self,·compare:·F)·-&gt;·<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
112 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,112 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
113 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·<a·class="enum"·href="../../core/cmp/enum.Ordering.html"·title="enum·core::cmp::Ordering">Ordering</a>,</div></h4></section></summary><div·class='docblock'>Returns·the·element·that·gives·the·maximum·value·with·respect·to·the113 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·<a·class="enum"·href="../../core/cmp/enum.Ordering.html"·title="enum·core::cmp::Ordering">Ordering</a>,</div></h4></section></summary><div·class='docblock'>Returns·the·element·that·gives·the·maximum·value·with·respect·to·the
114 specified·comparison·function.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.max_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.min_by_key"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.6.0">1.6.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#3224-3227">Source</a></span><a·href="#method.min_by_key"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.min_by_key"·class="fn">min_by_key</a>&lt;B,·F&gt;(self,·f:·F)·-&gt;·<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where114 specified·comparison·function.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.max_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.min_by_key"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.6.0">1.6.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#3224-3227">Source</a></span><a·href="#method.min_by_key"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.min_by_key"·class="fn">min_by_key</a>&lt;B,·F&gt;(self,·f:·F)·-&gt;·<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
115 ····B:·<a·class="trait"·href="../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,115 ····B:·<a·class="trait"·href="../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,
116 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,116 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
117 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Returns·the·element·that·gives·the·minimum·value·from·the117 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Returns·the·element·that·gives·the·minimum·value·from·the
118 specified·function.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.min_by_key">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.min_by"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.15.0">1.15.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#3257-3260">Source</a></span><a·href="#method.min_by"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.min_by"·class="fn">min_by</a>&lt;F&gt;(self,·compare:·F)·-&gt;·<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where118 specified·function.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.min_by_key">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.min_by"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.15.0">1.15.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#3257-3260">Source</a></span><a·href="#method.min_by"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.min_by"·class="fn">min_by</a>&lt;F&gt;(self,·compare:·F)·-&gt;·<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
119 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,119 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
120 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·<a·class="enum"·href="../../core/cmp/enum.Ordering.html"·title="enum·core::cmp::Ordering">Ordering</a>,</div></h4></section></summary><div·class='docblock'>Returns·the·element·that·gives·the·minimum·value·with·respect·to·the120 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·<a·class="enum"·href="../../core/cmp/enum.Ordering.html"·title="enum·core::cmp::Ordering">Ordering</a>,</div></h4></section></summary><div·class='docblock'>Returns·the·element·that·gives·the·minimum·value·with·respect·to·the
121 specified·comparison·function.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.min_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.unzip"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#3330-3334">Source</a></span><a·href="#method.unzip"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.unzip"·class="fn">unzip</a>&lt;A,·B,·FromA,·FromB&gt;(self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.tuple.html">(FromA,·FromB)</a><div·class="where">where121 specified·comparison·function.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.min_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.unzip"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#3330-3334">Source</a></span><a·href="#method.unzip"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.unzip"·class="fn">unzip</a>&lt;A,·B,·FromA,·FromB&gt;(self)·-&gt;·<a·class="primitive"·href="../../std/primitive.tuple.html">(FromA,·FromB)</a><div·class="where">where
122 ····FromA:·<a·class="trait"·href="../../core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;A&gt;,122 ····FromA:·<a·class="trait"·href="../../core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;A&gt;,
123 ····FromB:·<a·class="trait"·href="../../core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;B&gt;,123 ····FromB:·<a·class="trait"·href="../../core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;B&gt;,
124 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="../../core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::Iterator">Iterator</a>&lt;Item·=·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.tuple.html">(A,·B)</a>&gt;,</div></h4></section></summary><div·class='docblock'>Converts·an·iterator·of·pairs·into·a·pair·of·containers.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.unzip">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.copied"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#3361-3364">Source</a></span><a·href="#method.copied"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.copied"·class="fn">copied</a>&lt;'a,·T&gt;(self)·-&gt;·<a·class="struct"·href="../../core/iter/adapters/copied/struct.Copied.html"·title="struct·core::iter::adapters::copied::Copied">Copied</a>&lt;Self&gt;<div·class="where">where124 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="../../core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::Iterator">Iterator</a>&lt;Item·=·<a·class="primitive"·href="../../std/primitive.tuple.html">(A,·B)</a>&gt;,</div></h4></section></summary><div·class='docblock'>Converts·an·iterator·of·pairs·into·a·pair·of·containers.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.unzip">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.copied"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#3361-3364">Source</a></span><a·href="#method.copied"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.copied"·class="fn">copied</a>&lt;'a,·T&gt;(self)·-&gt;·<a·class="struct"·href="../../core/iter/adapters/copied/struct.Copied.html"·title="struct·core::iter::adapters::copied::Copied">Copied</a>&lt;Self&gt;<div·class="where">where
125 ····T:·'a·+·<a·class="trait"·href="../../core/marker/trait.Copy.html"·title="trait·core::marker::Copy">Copy</a>,125 ····T:·'a·+·<a·class="trait"·href="../../core/marker/trait.Copy.html"·title="trait·core::marker::Copy">Copy</a>,
126 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="../../core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::Iterator">Iterator</a>&lt;Item·=·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;'a·T</a>&gt;,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·copies·all·of·its·elements.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.copied">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.cloned"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#3409-3412">Source</a></span><a·href="#method.cloned"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.cloned"·class="fn">cloned</a>&lt;'a,·T&gt;(self)·-&gt;·<a·class="struct"·href="../../core/iter/adapters/cloned/struct.Cloned.html"·title="struct·core::iter::adapters::cloned::Cloned">Cloned</a>&lt;Self&gt;<div·class="where">where126 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="../../core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::Iterator">Iterator</a>&lt;Item·=·<a·class="primitive"·href="../../std/primitive.reference.html">&amp;'a·T</a>&gt;,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·copies·all·of·its·elements.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.copied">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.cloned"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#3409-3412">Source</a></span><a·href="#method.cloned"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.cloned"·class="fn">cloned</a>&lt;'a,·T&gt;(self)·-&gt;·<a·class="struct"·href="../../core/iter/adapters/cloned/struct.Cloned.html"·title="struct·core::iter::adapters::cloned::Cloned">Cloned</a>&lt;Self&gt;<div·class="where">where
127 ····T:·'a·+·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,127 ····T:·'a·+·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,
128 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="../../core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::Iterator">Iterator</a>&lt;Item·=·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;'a·T</a>&gt;,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·<a·href="../../core/clone/trait.Clone.html#tymethod.clone"·title="method·core::clone::Clone::clone"><code>clone</code></a>s·all·of·its·elements.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.cloned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.cycle"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#3441-3443">Source</a></span><a·href="#method.cycle"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.cycle"·class="fn">cycle</a>(self)·-&gt;·<a·class="struct"·href="../../core/iter/adapters/cycle/struct.Cycle.html"·title="struct·core::iter::adapters::cycle::Cycle">Cycle</a>&lt;Self&gt;<div·class="where">where128 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="../../core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::Iterator">Iterator</a>&lt;Item·=·<a·class="primitive"·href="../../std/primitive.reference.html">&amp;'a·T</a>&gt;,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·<a·href="../../core/clone/trait.Clone.html#tymethod.clone"·title="method·core::clone::Clone::clone"><code>clone</code></a>s·all·of·its·elements.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.cloned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.cycle"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#3441-3443">Source</a></span><a·href="#method.cycle"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.cycle"·class="fn">cycle</a>(self)·-&gt;·<a·class="struct"·href="../../core/iter/adapters/cycle/struct.Cycle.html"·title="struct·core::iter::adapters::cycle::Cycle">Cycle</a>&lt;Self&gt;<div·class="where">where
129 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><div·class='docblock'>Repeats·an·iterator·endlessly.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.cycle">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.array_chunks"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/iter/traits/iterator.rs.html#3484-3486">Source</a><a·href="#method.array_chunks"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.array_chunks"·class="fn">array_chunks</a>&lt;const·N:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.usize.html">usize</a>&gt;(self)·-&gt;·<a·class="struct"·href="../../core/iter/adapters/array_chunks/struct.ArrayChunks.html"·title="struct·core::iter::adapters::array_chunks::ArrayChunks">ArrayChunks</a>&lt;Self,·N&gt;<div·class="where">where129 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><div·class='docblock'>Repeats·an·iterator·endlessly.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.cycle">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.array_chunks"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/iter/traits/iterator.rs.html#3484-3486">Source</a><a·href="#method.array_chunks"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.array_chunks"·class="fn">array_chunks</a>&lt;const·N:·<a·class="primitive"·href="../../std/primitive.usize.html">usize</a>&gt;(self)·-&gt;·<a·class="struct"·href="../../core/iter/adapters/array_chunks/struct.ArrayChunks.html"·title="struct·core::iter::adapters::array_chunks::ArrayChunks">ArrayChunks</a>&lt;Self,·N&gt;<div·class="where">where
130 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_array_chunks</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/100450">#100450</a>)</span></div></span><div·class='docblock'>Returns·an·iterator·over·<code>N</code>·elements·of·the·iterator·at·a·time.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.array_chunks">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.sum"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.11.0">1.11.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#3515-3518">Source</a></span><a·href="#method.sum"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.sum"·class="fn">sum</a>&lt;S&gt;(self)·-&gt;·S<div·class="where">where130 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_array_chunks</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/100450">#100450</a>)</span></div></span><div·class='docblock'>Returns·an·iterator·over·<code>N</code>·elements·of·the·iterator·at·a·time.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.array_chunks">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.sum"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.11.0">1.11.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#3515-3518">Source</a></span><a·href="#method.sum"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.sum"·class="fn">sum</a>&lt;S&gt;(self)·-&gt;·S<div·class="where">where
Max diff block lines reached; 58692/181131 bytes (32.40%) of diff not shown.
9.93 KB
./usr/share/doc/rust-doc/html/proc_macro/tracked_env/fn.var.html
    
Offset 1, 6 lines modifiedOffset 1, 6 lines modified
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="Retrieve·an·environment·variable·and·add·it·to·build·dependency·info.·The·build·system·executing·the·compiler·will·know·that·the·variable·was·accessed·during·compilation,·and·will·be·able·to·rerun·the·build·when·the·value·of·that·variable·changes.·Besides·the·dependency·tracking·this·function·should·be·equivalent·to·`env::var`·from·the·standard·library,·except·that·the·argument·must·be·UTF-8."><title>var·in·proc_macro::tracked_env·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="proc_macro"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·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"·title="show·sidebar"></button><a·class="logo-container"·href="../../proc_macro/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../proc_macro/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../proc_macro/index.html">proc_<wbr>macro</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»  2025-01-07)»       (built» from»     a»    source»      tarball)</div><div·class="sidebar-elems"><div·id="rustdoc-modnav"><h2><a·href="index.html">In·proc_<wbr>macro::<wbr>tracked_<wbr>env</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">proc_macro</a>::<wbr><a·href="index.html">tracked_env</a></span><h1>Function·<span·class="fn">var</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/proc_macro/lib.rs.html#1572-1578">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·fn·var&lt;K:·<a·class="trait"·href="../../core/convert/trait.AsRef.html"·title="trait·core::convert::AsRef">AsRef</a>&lt;<a·class="struct"·href="https://doc.rust-lang.org/1.84.0/std/ffi/os_str/struct.OsStr.html"·title="struct·std::ffi::os_str::OsStr">OsStr</a>&gt;·+·<a·class="trait"·href="../../core/convert/trait.AsRef.html"·title="trait·core::convert::AsRef">AsRef</a>&lt;<a·class="primitive"·href=[·...·truncated·by·diffoscope;·len:·360,·SHA:·136112f81e9e0994ee798f48a5a83ffd892c78c171c0f88738def2ef1c9d8f93·...·]/std/env/enum.VarError.html"·title="enum·std::env::VarError">VarError</a>&gt;</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_tracked_env</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/99515">#99515</a>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Retrieve·an·environment·variable·and·add·it·to·build·dependency·info.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="Retrieve·an·environment·variable·and·add·it·to·build·dependency·info.·The·build·system·executing·the·compiler·will·know·that·the·variable·was·accessed·during·compilation,·and·will·be·able·to·rerun·the·build·when·the·value·of·that·variable·changes.·Besides·the·dependency·tracking·this·function·should·be·equivalent·to·`env::var`·from·the·standard·library,·except·that·the·argument·must·be·UTF-8."><title>var·in·proc_macro::tracked_env·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="proc_macro"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·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"·title="show·sidebar"></button><a·class="logo-container"·href="../../proc_macro/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../proc_macro/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../proc_macro/index.html">proc_<wbr>macro</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»  2025-01-07)»       (built» from»     a»    source»      tarball)</div><div·class="sidebar-elems"><div·id="rustdoc-modnav"><h2><a·href="index.html">In·proc_<wbr>macro::<wbr>tracked_<wbr>env</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">proc_macro</a>::<wbr><a·href="index.html">tracked_env</a></span><h1>Function·<span·class="fn">var</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/proc_macro/lib.rs.html#1572-1578">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·fn·var&lt;K:·<a·class="trait"·href="../../core/convert/trait.AsRef.html"·title="trait·core::convert::AsRef">AsRef</a>&lt;<a·class="struct"·href="../../std/ffi/os_str/struct.OsStr.html"·title="struct·std::ffi::os_str::OsStr">OsStr</a>&gt;·+·<a·class="trait"·href="../../core/convert/trait.AsRef.html"·title="trait·core::convert::AsRef">AsRef</a>&lt;<a·class="primitive"·href="../../std/primitive.str.ht[·...·truncated·by·diffoscope;·len:·279,·SHA:·f4cbd961d68b0395039d11ac9c0c27f62c59345df6631c2150b4305da940190b·...·]/std/env/enum.VarError.html"·title="enum·std::env::VarError">VarError</a>&gt;</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_tracked_env</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/99515">#99515</a>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Retrieve·an·environment·variable·and·add·it·to·build·dependency·info.
2 The·build·system·executing·the·compiler·will·know·that·the·variable·was·accessed·during2 The·build·system·executing·the·compiler·will·know·that·the·variable·was·accessed·during
3 compilation,·and·will·be·able·to·rerun·the·build·when·the·value·of·that·variable·changes.3 compilation,·and·will·be·able·to·rerun·the·build·when·the·value·of·that·variable·changes.
4 Besides·the·dependency·tracking·this·function·should·be·equivalent·to·<code>env::var</code>·from·the4 Besides·the·dependency·tracking·this·function·should·be·equivalent·to·<code>env::var</code>·from·the
5 standard·library,·except·that·the·argument·must·be·UTF-8.</p>5 standard·library,·except·that·the·argument·must·be·UTF-8.</p>
6 </div></details></section></div></main></body></html>6 </div></details></section></div></main></body></html>
7.7 KB
./usr/share/doc/rust-doc/html/proc_macro/tracked_path/fn.path.html
    
Offset 1, 3 lines modifiedOffset 1, 3 lines modified
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="Track·a·file·explicitly."><title>path·in·proc_macro::tracked_path·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="proc_macro"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·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"·title="show·sidebar"></button><a·class="logo-container"·href="../../proc_macro/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../proc_macro/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../proc_macro/index.html">proc_<wbr>macro</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»2025-01-07)»     (built»       from»   a»  source»    tarball)</div><div·class="sidebar-elems"><div·id="rustdoc-modnav"><h2><a·href="index.html">In·proc_<wbr>macro::<wbr>tracked_<wbr>path</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">proc_macro</a>::<wbr><a·href="index.html">tracked_path</a></span><h1>Function·<span·class="fn">path</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/proc_macro/lib.rs.html#1589-1592">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·fn·path&lt;P:·<a·class="trait"·href="../../core/convert/trait.AsRef.html"·title="trait·core::convert::AsRef">AsRef</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.str.html">str</a>&gt;&gt;(path:·P)</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>track_path</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/99515">#99515</a>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Track·a·file·explicitly.</p>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="Track·a·file·explicitly."><title>path·in·proc_macro::tracked_path·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="proc_macro"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·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"·title="show·sidebar"></button><a·class="logo-container"·href="../../proc_macro/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../proc_macro/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../proc_macro/index.html">proc_<wbr>macro</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»2025-01-07)»     (built»       from»   a»  source»    tarball)</div><div·class="sidebar-elems"><div·id="rustdoc-modnav"><h2><a·href="index.html">In·proc_<wbr>macro::<wbr>tracked_<wbr>path</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">proc_macro</a>::<wbr><a·href="index.html">tracked_path</a></span><h1>Function·<span·class="fn">path</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/proc_macro/lib.rs.html#1589-1592">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·fn·path&lt;P:·<a·class="trait"·href="../../core/convert/trait.AsRef.html"·title="trait·core::convert::AsRef">AsRef</a>&lt;<a·class="primitive"·href="../../std/primitive.str.html">str</a>&gt;&gt;(path:·P)</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>track_path</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/99515">#99515</a>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Track·a·file·explicitly.</p>
2 <p>Commonly·used·for·tracking·asset·preprocessing.</p>2 <p>Commonly·used·for·tracking·asset·preprocessing.</p>
3 </div></details></section></div></main></body></html>3 </div></details></section></div></main></body></html>
75.2 KB
./usr/share/doc/rust-doc/html/proc_macro/trait.ToTokens.html
    
Offset 37, 8 lines modifiedOffset 37, 8 lines modified
37 </div></details></div><h2·id="provided-methods"·class="section-header">Provided·Methods<a·href="#provided-methods"·class="anchor">§</a></h2><div·class="methods"><details·class="toggle·method-toggle"·open><summary><section·id="method.to_token_stream"·class="method"><a·class="src·rightside"·href="../src/proc_macro/to_tokens.rs.html#57-61">Source</a><h4·class="code-header">fn·<a·href="#method.to_token_stream"·class="fn">to_token_stream</a>(&amp;self)·-&gt;·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_totokens</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/130977">#130977</a>)</span></div></span></summary><div·class="docblock"><p>Convert·<code>self</code>·directly·into·a·<code>TokenStream</code>·object.</p>37 </div></details></div><h2·id="provided-methods"·class="section-header">Provided·Methods<a·href="#provided-methods"·class="anchor">§</a></h2><div·class="methods"><details·class="toggle·method-toggle"·open><summary><section·id="method.to_token_stream"·class="method"><a·class="src·rightside"·href="../src/proc_macro/to_tokens.rs.html#57-61">Source</a><h4·class="code-header">fn·<a·href="#method.to_token_stream"·class="fn">to_token_stream</a>(&amp;self)·-&gt;·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_totokens</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/130977">#130977</a>)</span></div></span></summary><div·class="docblock"><p>Convert·<code>self</code>·directly·into·a·<code>TokenStream</code>·object.</p>
38 <p>This·method·is·implicitly·implemented·using·<code>to_tokens</code>,·and·acts·as·a38 <p>This·method·is·implicitly·implemented·using·<code>to_tokens</code>,·and·acts·as·a
39 convenience·method·for·consumers·of·the·<code>ToTokens</code>·trait.</p>39 convenience·method·for·consumers·of·the·<code>ToTokens</code>·trait.</p>
40 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.into_token_stream"·class="method"><a·class="src·rightside"·href="../src/proc_macro/to_tokens.rs.html#67-72">Source</a><h4·class="code-header">fn·<a·href="#method.into_token_stream"·class="fn">into_token_stream</a>(self)·-&gt;·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a><div·class="where">where40 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.into_token_stream"·class="method"><a·class="src·rightside"·href="../src/proc_macro/to_tokens.rs.html#67-72">Source</a><h4·class="code-header">fn·<a·href="#method.into_token_stream"·class="fn">into_token_stream</a>(self)·-&gt;·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a><div·class="where">where
41 ····Self:·<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_totokens</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/130977">#130977</a>)</span></div></span></summary><div·class="docblock"><p>Convert·<code>self</code>·directly·into·a·<code>TokenStream</code>·object.</p>41 ····Self:·<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_totokens</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/130977">#130977</a>)</span></div></span></summary><div·class="docblock"><p>Convert·<code>self</code>·directly·into·a·<code>TokenStream</code>·object.</p>
42 <p>This·method·is·implicitly·implemented·using·<code>to_tokens</code>,·and·acts·as·a42 <p>This·method·is·implicitly·implemented·using·<code>to_tokens</code>,·and·acts·as·a
43 convenience·method·for·consumers·of·the·<code>ToTokens</code>·trait.</p>43 convenience·method·for·consumers·of·the·<code>ToTokens</code>·trait.</p>
44 </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-ToTokens-for-bool"·class="impl"><a·class="src·rightside"·href="../src/proc_macro/to_tokens.rs.html#270-275">Source</a><a·href="#impl-ToTokens-for-bool"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="trait.ToTokens.html"·title="trait·proc_macro::ToTokens">ToTokens</a>·for·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.to_tokens"·class="method·trait-impl"><a·class="src·rightside"·href=".[·...·truncated·by·diffoscope;·len:·28679,·SHA:·3b5de4a370494e66a9b74b5e7ffa28cdb84805f79c832196eb495e81eca57679·...·]/std/primitive.reference.html">&amp;mut·T</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.to_tokens-22"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/to_tokens.rs.html#136-138">Source</a><a·href="#method.to_tokens-22"·class="anchor">§</a><h4·class="code-header">fn·<a·href="#tymethod.to_tokens"·class="fn">to_tokens</a>(&amp;self,·tokens:·&amp;mut·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_totokens</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/130977">#130977</a>)</span></div></span></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToTokens-for-Box%3CT%3E"·class="impl"><a·class="src·rightside"·href="../src/proc_macro/to_tokens.rs.html#142-146">Source</a><a·href="#impl-ToTokens-for-Box%3CT%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T:·<a·class="trait"·href="trait.ToTokens.html"·title="trait·proc_macro::ToTokens">ToTokens</a>·+·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>&gt;·<a·class="trait"·href="trait.ToTokens.html"·title="trait·proc_macro::ToTokens">ToTokens</a>·for·<a·class="struct"·href="../alloc/boxed/struct.Box.html"·title="struct·alloc::boxed::Box">Box</a>&lt;T&gt;</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.to_tokens-23"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/to_tokens.rs.html#143-145">Source</a><a·href="#method.to_tokens-23"·class="anchor">§</a><h4·class="code-header">fn·<a·href="#tymethod.to_tokens"·class="fn">to_tokens</a>(&amp;self,·tokens:·&amp;mut·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_totokens</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/130977">#130977</a>)</span></div></span></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToTokens-for-Rc%3CT%3E"·class="impl"><a·class="src·rightside"·href="../src/proc_macro/to_tokens.rs.html#149-153">Source</a><a·href="#impl-ToTokens-for-Rc%3CT%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T:·<a·class="trait"·href="trait.ToTokens.html"·title="trait·proc_macro::ToTokens">ToTokens</a>·+·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>&gt;·<a·class="trait"·href="trait.ToTokens.html"·title="trait·proc_macro::ToTokens">ToTokens</a>·for·<a·class="struct"·href="../alloc/rc/struct.Rc.html"·title="struct·alloc::rc::Rc">Rc</a>&lt;T&gt;</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.to_tokens-24"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/to_tokens.rs.html#150-152">Source</a><a·href="#method.to_tokens-24"·class="anchor">§</a><h4·class="code-header">fn·<a·href="#tymethod.to_tokens"·class="fn">to_tokens</a>(&amp;self,·tokens:·&amp;mut·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_totokens</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/130977">#130977</a>)</span></div></span></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToTokens-for-Option%3CT%3E"·class="impl"><a·class="src·rightside"·href="../src/proc_macro/to_tokens.rs.html#163-169">Source</a><a·href="#impl-ToTokens-for-Option%3CT%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T:·<a·class="trait"·href="trait.ToTokens.html"·title="trait·proc_macro::ToTokens">ToTokens</a>&gt;·<a·class="trait"·href="trait.ToTokens.html"·title="trait·proc_macro::ToTokens">ToTokens</a>·for·<a·class="enum"·href="../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;T&gt;</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.to_tokens-25"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/to_tokens.rs.html#164-168">Source</a><a·href="#method.to_tokens-25"·class="anchor">§</a><h4·class="code-header">fn·<a·href="#tymethod.to_tokens"·class="fn">to_tokens</a>(&amp;self,·tokens:·&amp;mut·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_totokens</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/130977">#130977</a>)</span></div></span></details></div></details><h2·id="implementors"·class="section-header">Implementors<a·href="#implementors"·class="anchor">§</a></h2><div·id="implementors-list"><section·id="impl-ToTokens-for-TokenTree"·class="impl"><a·class="src·rightside"·href="../src/proc_macro/to_tokens.rs.html#76-86">Source</a><a·href="#impl-ToTokens-for-TokenTree"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="trait.ToTokens.html"·title="trait·proc_macro::ToTokens">ToTokens</a>·for·<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a></h3></section><section·id="impl-ToTokens-for-Group"·class="impl"><a·class="src·rightside"·href="../src/proc_macro/to_tokens.rs.html#121-125">Source</a><a·href="#impl-ToTokens-for-Group"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="trait.ToTokens.html"·title="trait·proc_macro::ToTokens">ToTokens</a>·for·<a·class="struct"·href="struct.Group.html"·title="struct·proc_macro::Group">Group</a></h3></section><section·id="impl-ToTokens-for-Ident"·class="impl"><a·class="src·rightside"·href="../src/proc_macro/to_tokens.rs.html#107-111">Source</a><a·href="#impl-ToTokens-for-Ident"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="trait.ToTokens.html"·title="trait·proc_macro::ToTokens">ToTokens</a>·for·<a·class="struct"·href="struct.Ident.html"·title="struct·proc_macro::Ident">Ident</a></h3></section><section·id="impl-ToTokens-for-Literal"·class="impl"><a·class="src·rightside"·href="../src/proc_macro/to_tokens.rs.html#100-104">Source</a><a·href="#impl-ToTokens-for-Literal"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="trait.ToTokens.html"·title="trait·proc_macro::ToTokens">ToTokens</a>·for·<a·class="struct"·href="struct.Literal.html"·title="struct·proc_macro::Literal">Literal</a></h3></section><section·id="impl-ToTokens-for-Punct"·class="impl"><a·class="src·rightside"·href="../src/proc_macro/to_tokens.rs.html#114-118">Source</a><a·href="#impl-ToTokens-for-Punct"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="trait.ToTokens.html"·title="trait·proc_macro::ToTokens">ToTokens</a>·for·<a·class="struct"·href="struct.Punct.html"·title="struct·proc_macro::Punct">Punct</a></h3></section><section·id="impl-ToTokens-for-TokenStream"·class="impl"><a·class="src·rightside"·href="../src/proc_macro/to_tokens.rs.html#89-97">Source</a><a·href="#impl-ToTokens-for-TokenStream"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="trait.ToTokens.html"·title="trait·proc_macro::ToTokens">ToTokens</a>·for·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a></h3></section></div><script·src="../trait.impl/proc_macro/to_tokens/trait.ToTokens.js"·data-ignore-extern-crates="alloc,core,std"·async></script></section></div></main></body></html>44 </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-ToTokens-for-bool"·class="impl"><a·class="src·rightside"·href="../src/proc_macro/to_tokens.rs.html#270-275">Source</a><a·href="#impl-ToTokens-for-bool"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="trait.ToTokens.html"·title="trait·proc_macro::ToTokens">ToTokens</a>·for·<a·class="primitive"·href="../std/primitive.bool.html">bool</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.to_tokens"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/to_tokens.rs.[·...·truncated·by·diffoscope;·len:·28109,·SHA:·b7bf755d0f71b4e7f4e98251cc05ea6ce86c76e0dc8c98b1bcc077f062a4b4f9·...·]/std/primitive.reference.html">&amp;mut·T</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.to_tokens-22"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/to_tokens.rs.html#136-138">Source</a><a·href="#method.to_tokens-22"·class="anchor">§</a><h4·class="code-header">fn·<a·href="#tymethod.to_tokens"·class="fn">to_tokens</a>(&amp;self,·tokens:·&amp;mut·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_totokens</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/130977">#130977</a>)</span></div></span></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToTokens-for-Box%3CT%3E"·class="impl"><a·class="src·rightside"·href="../src/proc_macro/to_tokens.rs.html#142-146">Source</a><a·href="#impl-ToTokens-for-Box%3CT%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T:·<a·class="trait"·href="trait.ToTokens.html"·title="trait·proc_macro::ToTokens">ToTokens</a>·+·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>&gt;·<a·class="trait"·href="trait.ToTokens.html"·title="trait·proc_macro::ToTokens">ToTokens</a>·for·<a·class="struct"·href="../alloc/boxed/struct.Box.html"·title="struct·alloc::boxed::Box">Box</a>&lt;T&gt;</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.to_tokens-23"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/to_tokens.rs.html#143-145">Source</a><a·href="#method.to_tokens-23"·class="anchor">§</a><h4·class="code-header">fn·<a·href="#tymethod.to_tokens"·class="fn">to_tokens</a>(&amp;self,·tokens:·&amp;mut·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_totokens</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/130977">#130977</a>)</span></div></span></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToTokens-for-Rc%3CT%3E"·class="impl"><a·class="src·rightside"·href="../src/proc_macro/to_tokens.rs.html#149-153">Source</a><a·href="#impl-ToTokens-for-Rc%3CT%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T:·<a·class="trait"·href="trait.ToTokens.html"·title="trait·proc_macro::ToTokens">ToTokens</a>·+·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>&gt;·<a·class="trait"·href="trait.ToTokens.html"·title="trait·proc_macro::ToTokens">ToTokens</a>·for·<a·class="struct"·href="../alloc/rc/struct.Rc.html"·title="struct·alloc::rc::Rc">Rc</a>&lt;T&gt;</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.to_tokens-24"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/to_tokens.rs.html#150-152">Source</a><a·href="#method.to_tokens-24"·class="anchor">§</a><h4·class="code-header">fn·<a·href="#tymethod.to_tokens"·class="fn">to_tokens</a>(&amp;self,·tokens:·&amp;mut·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_totokens</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/130977">#130977</a>)</span></div></span></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToTokens-for-Option%3CT%3E"·class="impl"><a·class="src·rightside"·href="../src/proc_macro/to_tokens.rs.html#163-169">Source</a><a·href="#impl-ToTokens-for-Option%3CT%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T:·<a·class="trait"·href="trait.ToTokens.html"·title="trait·proc_macro::ToTokens">ToTokens</a>&gt;·<a·class="trait"·href="trait.ToTokens.html"·title="trait·proc_macro::ToTokens">ToTokens</a>·for·<a·class="enum"·href="../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;T&gt;</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.to_tokens-25"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/to_tokens.rs.html#164-168">Source</a><a·href="#method.to_tokens-25"·class="anchor">§</a><h4·class="code-header">fn·<a·href="#tymethod.to_tokens"·class="fn">to_tokens</a>(&amp;self,·tokens:·&amp;mut·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_totokens</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/130977">#130977</a>)</span></div></span></details></div></details><h2·id="implementors"·class="section-header">Implementors<a·href="#implementors"·class="anchor">§</a></h2><div·id="implementors-list"><section·id="impl-ToTokens-for-TokenTree"·class="impl"><a·class="src·rightside"·href="../src/proc_macro/to_tokens.rs.html#76-86">Source</a><a·href="#impl-ToTokens-for-TokenTree"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="trait.ToTokens.html"·title="trait·proc_macro::ToTokens">ToTokens</a>·for·<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a></h3></section><section·id="impl-ToTokens-for-Group"·class="impl"><a·class="src·rightside"·href="../src/proc_macro/to_tokens.rs.html#121-125">Source</a><a·href="#impl-ToTokens-for-Group"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="trait.ToTokens.html"·title="trait·proc_macro::ToTokens">ToTokens</a>·for·<a·class="struct"·href="struct.Group.html"·title="struct·proc_macro::Group">Group</a></h3></section><section·id="impl-ToTokens-for-Ident"·class="impl"><a·class="src·rightside"·href="../src/proc_macro/to_tokens.rs.html#107-111">Source</a><a·href="#impl-ToTokens-for-Ident"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="trait.ToTokens.html"·title="trait·proc_macro::ToTokens">ToTokens</a>·for·<a·class="struct"·href="struct.Ident.html"·title="struct·proc_macro::Ident">Ident</a></h3></section><section·id="impl-ToTokens-for-Literal"·class="impl"><a·class="src·rightside"·href="../src/proc_macro/to_tokens.rs.html#100-104">Source</a><a·href="#impl-ToTokens-for-Literal"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="trait.ToTokens.html"·title="trait·proc_macro::ToTokens">ToTokens</a>·for·<a·class="struct"·href="struct.Literal.html"·title="struct·proc_macro::Literal">Literal</a></h3></section><section·id="impl-ToTokens-for-Punct"·class="impl"><a·class="src·rightside"·href="../src/proc_macro/to_tokens.rs.html#114-118">Source</a><a·href="#impl-ToTokens-for-Punct"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="trait.ToTokens.html"·title="trait·proc_macro::ToTokens">ToTokens</a>·for·<a·class="struct"·href="struct.Punct.html"·title="struct·proc_macro::Punct">Punct</a></h3></section><section·id="impl-ToTokens-for-TokenStream"·class="impl"><a·class="src·rightside"·href="../src/proc_macro/to_tokens.rs.html#89-97">Source</a><a·href="#impl-ToTokens-for-TokenStream"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="trait.ToTokens.html"·title="trait·proc_macro::ToTokens">ToTokens</a>·for·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a></h3></section></div><script·src="../trait.impl/proc_macro/to_tokens/trait.ToTokens.js"·data-ignore-extern-crates="alloc,core,std"·async></script></section></div></main></body></html>
5.47 KB
./usr/share/doc/rust-doc/html/test/bench/fn.benchmark.html
    
Offset 1, 8 lines modifiedOffset 1, 8 lines modified
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="API·documentation·for·the·Rust·`benchmark`·fn·in·crate·`test`."><title>benchmark·in·test::bench·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="test"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·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"·title="show·sidebar"></button><a·class="logo-container"·href="../../test/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../test/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../test/index.html">test</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»   2025-01-07)»(built»  from»      a»     source»       tarball)</div><div·class="sidebar-elems"><div·id="rustdoc-modnav"><h2><a·href="index.html">In·test::<wbr>bench</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">test</a>::<wbr><a·href="index.html">bench</a></span><h1>Function·<span·class="fn">benchmark</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/test/bench.rs.html#192-236">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·fn·benchmark&lt;F&gt;(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="API·documentation·for·the·Rust·`benchmark`·fn·in·crate·`test`."><title>benchmark·in·test::bench·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="test"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·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"·title="show·sidebar"></button><a·class="logo-container"·href="../../test/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../test/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../test/index.html">test</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»   2025-01-07)»(built»  from»      a»     source»       tarball)</div><div·class="sidebar-elems"><div·id="rustdoc-modnav"><h2><a·href="index.html">In·test::<wbr>bench</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">test</a>::<wbr><a·href="index.html">bench</a></span><h1>Function·<span·class="fn">benchmark</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/test/bench.rs.html#192-236">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·fn·benchmark&lt;F&gt;(
2 ····id:·<a·class="struct"·href="../test/struct.TestId.html"·title="struct·test::test::TestId">TestId</a>,2 ····id:·<a·class="struct"·href="../test/struct.TestId.html"·title="struct·test::test::TestId">TestId</a>,
3 ····desc:·<a·class="struct"·href="../test/struct.TestDesc.html"·title="struct·test::test::TestDesc">TestDesc</a>,3 ····desc:·<a·class="struct"·href="../test/struct.TestDesc.html"·title="struct·test::test::TestDesc">TestDesc</a>,
4 ····monitor_ch:·<a·class="struct"·href="https://doc.rust-lang.org/1.84.0/std/sync/mpsc/struct.Sender.html"·title="struct·std::sync::mpsc::Sender">Sender</a>&lt;CompletedTest&gt;,4 ····monitor_ch:·<a·class="struct"·href="../../std/sync/mpsc/struct.Sender.html"·title="struct·std::sync::mpsc::Sender">Sender</a>&lt;CompletedTest&gt;,
5 ····nocapture:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>,5 ····nocapture:·<a·class="primitive"·href="../../std/primitive.bool.html">bool</a>,
6 ····f:·F,6 ····f:·F,
7 )<div·class="where">where7 )<div·class="where">where
8 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;mut·<a·class="struct"·href="struct.Bencher.html"·title="struct·test::bench::Bencher">Bencher</a>)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.unit.html">()</a>,·<a·class="struct"·href="../../alloc/string/struct.String.html"·title="struct·alloc::string::String">String</a>&gt;,</div></code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span></section></div></main></body></html>8 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;mut·<a·class="struct"·href="struct.Bencher.html"·title="struct·test::bench::Bencher">Bencher</a>)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="primitive"·href="../../std/primitive.unit.html">()</a>,·<a·class="struct"·href="../../alloc/string/struct.String.html"·title="struct·alloc::string::String">String</a>&gt;,</div></code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span></section></div></main></body></html>
7.07 KB
./usr/share/doc/rust-doc/html/test/bench/fn.iter.html
    
Offset 1, 2 lines modifiedOffset 1, 2 lines modified
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="API·documentation·for·the·Rust·`iter`·fn·in·crate·`test`."><title>iter·in·test::bench·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="test"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·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"·title="show·sidebar"></button><a·class="logo-container"·href="../../test/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../test/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../test/index.html">test</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»     2025-01-07)»  (built»    from»a»       source» tarball)</div><div·class="sidebar-elems"><div·id="rustdoc-modnav"><h2><a·href="index.html">In·test::<wbr>bench</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">test</a>::<wbr><a·href="index.html">bench</a></span><h1>Function·<span·class="fn">iter</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/test/bench.rs.html#123-190">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·fn·iter&lt;T,·F&gt;(inner:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;mut·F</a>)·-&gt;·<a·class="struct"·href="../stats/struct.Summary.html"·title="struct·test::stats::Summary">Summary</a><div·class="where">where1 <!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="API·documentation·for·the·Rust·`iter`·fn·in·crate·`test`."><title>iter·in·test::bench·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="test"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·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"·title="show·sidebar"></button><a·class="logo-container"·href="../../test/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../test/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../test/index.html">test</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»     2025-01-07)»  (built»    from»a»       source» tarball)</div><div·class="sidebar-elems"><div·id="rustdoc-modnav"><h2><a·href="index.html">In·test::<wbr>bench</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">test</a>::<wbr><a·href="index.html">bench</a></span><h1>Function·<span·class="fn">iter</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/test/bench.rs.html#123-190">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·fn·iter&lt;T,·F&gt;(inner:·<a·class="primitive"·href="../../std/primitive.reference.html">&amp;mut·F</a>)·-&gt;·<a·class="struct"·href="../stats/struct.Summary.html"·title="struct·test::stats::Summary">Summary</a><div·class="where">where
2 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·T,</div></code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span></section></div></main></body></html>2 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·T,</div></code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span></section></div></main></body></html>
8.43 KB
./usr/share/doc/rust-doc/html/test/bench/fn.run_once.html
    
Offset 1, 2 lines modifiedOffset 1, 2 lines modified
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="API·documentation·for·the·Rust·`run_once`·fn·in·crate·`test`."><title>run_once·in·test::bench·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="test"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·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"·title="show·sidebar"></button><a·class="logo-container"·href="../../test/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../test/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../test/index.html">test</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»     2025-01-07)»  (built»    from»a»       source» tarball)</div><div·class="sidebar-elems"><div·id="rustdoc-modnav"><h2><a·href="index.html">In·test::<wbr>bench</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">test</a>::<wbr><a·href="index.html">bench</a></span><h1>Function·<span·class="fn">run_once</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/test/bench.rs.html#238-244">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·fn·run_once&lt;F&gt;(f:·F)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.unit.html">()</a>,·<a·class="struct"·href="../../alloc/string/struct.String.html"·title="struct·alloc::string::String">String</a>&gt;<div·class="where">where1 <!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="API·documentation·for·the·Rust·`run_once`·fn·in·crate·`test`."><title>run_once·in·test::bench·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="test"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·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"·title="show·sidebar"></button><a·class="logo-container"·href="../../test/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../test/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../test/index.html">test</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»     2025-01-07)»  (built»    from»a»       source» tarball)</div><div·class="sidebar-elems"><div·id="rustdoc-modnav"><h2><a·href="index.html">In·test::<wbr>bench</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">test</a>::<wbr><a·href="index.html">bench</a></span><h1>Function·<span·class="fn">run_once</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/test/bench.rs.html#238-244">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·fn·run_once&lt;F&gt;(f:·F)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="primitive"·href="../../std/primitive.unit.html">()</a>,·<a·class="struct"·href="../../alloc/string/struct.String.html"·title="struct·alloc::string::String">String</a>&gt;<div·class="where">where
2 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;mut·<a·class="struct"·href="struct.Bencher.html"·title="struct·test::bench::Bencher">Bencher</a>)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.unit.html">()</a>,·<a·class="struct"·href="../../alloc/string/struct.String.html"·title="struct·alloc::string::String">String</a>&gt;,</div></code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span></section></div></main></body></html>2 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;mut·<a·class="struct"·href="struct.Bencher.html"·title="struct·test::bench::Bencher">Bencher</a>)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="primitive"·href="../../std/primitive.unit.html">()</a>,·<a·class="struct"·href="../../alloc/string/struct.String.html"·title="struct·alloc::string::String">String</a>&gt;,</div></code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span></section></div></main></body></html>
41.9 KB
./usr/share/doc/rust-doc/html/test/bench/struct.BenchSamples.html
    
Offset 1, 17 lines modifiedOffset 1, 17 lines modified
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="API·documentation·for·the·Rust·`BenchSamples`·struct·in·crate·`test`."><title>BenchSamples·in·test::bench·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="test"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../test/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../test/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../test/index.html">test</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»     2025-01-07)»  (built»    from»a»       source» tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Bench<wbr>Samples</a></h2><h3><a·href="#fields">Fields</a></h3><ul·class="block·structfield"><li><a·href="#structfield.mb_s"·title="mb_s">mb_s</a></li><li><a·href="#structfield.ns_iter_summ"·title="ns_iter_summ">ns_iter_summ</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-BenchSamples"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-BenchSamples"·title="Debug">Debug</a></li><li><a·href="#impl-PartialEq-for-BenchSamples"·title="PartialEq">PartialEq</a></li><li><a·href="#impl-StructuralPartialEq-for-BenchSamples"·title="StructuralPartialEq">StructuralPartialEq</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-BenchSamples"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-BenchSamples"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-BenchSamples"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-BenchSamples"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-BenchSamples"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-BenchSamples"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·test::<wbr>bench</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">test</a>::<wbr><a·href="index.html">bench</a></span><h1>Struct·<span·class="struct">BenchSamples</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/test/bench.rs.html#60-63">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·BenchSamples·{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="API·documentation·for·the·Rust·`BenchSamples`·struct·in·crate·`test`."><title>BenchSamples·in·test::bench·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="test"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../test/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../test/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../test/index.html">test</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»     2025-01-07)»  (built»    from»a»       source» tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Bench<wbr>Samples</a></h2><h3><a·href="#fields">Fields</a></h3><ul·class="block·structfield"><li><a·href="#structfield.mb_s"·title="mb_s">mb_s</a></li><li><a·href="#structfield.ns_iter_summ"·title="ns_iter_summ">ns_iter_summ</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-BenchSamples"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-BenchSamples"·title="Debug">Debug</a></li><li><a·href="#impl-PartialEq-for-BenchSamples"·title="PartialEq">PartialEq</a></li><li><a·href="#impl-StructuralPartialEq-for-BenchSamples"·title="StructuralPartialEq">StructuralPartialEq</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-BenchSamples"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-BenchSamples"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-BenchSamples"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-BenchSamples"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-BenchSamples"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-BenchSamples"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·test::<wbr>bench</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">test</a>::<wbr><a·href="index.html">bench</a></span><h1>Struct·<span·class="struct">BenchSamples</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/test/bench.rs.html#60-63">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·BenchSamples·{
2 ····pub·ns_iter_summ:·<a·class="struct"·href="../stats/struct.Summary.html"·title="struct·test::stats::Summary">Summary</a>,2 ····pub·ns_iter_summ:·<a·class="struct"·href="../stats/struct.Summary.html"·title="struct·test::stats::Summary">Summary</a>,
3 ····pub·mb_s:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.usize.html">usize</a>,3 ····pub·mb_s:·<a·class="primitive"·href="../../std/primitive.usize.html">usize</a>,
4 }</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><h2·id="fields"·class="fields·section-header">Fields<a·href="#fields"·class="anchor">§</a></h2><span·id="structfield.ns_iter_summ"·class="structfield·section-header"><a·href="#structfield.ns_iter_summ"·class="anchor·field">§</a><code>ns_iter_summ:·<a·class="struct"·href="../stats/struct.Summary.html"·title="struct·test::stats::Summary">Summary</a></code></span><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><span·id="structfield.mb_s"·class="structfield·section-header"><a·href="#structfield.mb_s"·class="anchor·field">§</a><code>mb_s:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.usize.html">usize</a></code></span><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><h2·id="t[·...·truncated·by·diffoscope;·len:·5158,·SHA:·5c760af28d274c739a7e78559c4c7070e6f1f9e7c76d7bc86d9b779a15b10947·...·]/std/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>!=</code>.·The·default·implementation·is·almost·always·sufficient,4 }</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><h2·id="fields"·class="fields·section-header">Fields<a·href="#fields"·class="anchor">§</a></h2><span·id="structfield.ns_iter_summ"·class="structfield·section-header"><a·href="#structfield.ns_iter_summ"·class="anchor·field">§</a><code>ns_iter_summ:·<a·class="struct"·href="../stats/struct.Summary.html"·title="struct·test::stats::Summary">Summary</a></code></span><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><span·id="structfield.mb_s"·class="structfield·section-header"><a·href="#structfield.mb_s"·class="anchor·field">§</a><code>mb_s:·<a·class="primitive"·href="../../std/primitive.usize.html">usize</a></code></span><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><h2·id="trait-implementations"·class[·...·truncated·by·diffoscope;·len:·5050,·SHA:·3013f5a47135ec65d32f89b20410fa882dadf221f34fc41806e96e9cc8702a22·...·]/std/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>!=</code>.·The·default·implementation·is·almost·always·sufficient,
5 and·should·not·be·overridden·without·very·good·reason.</div></details></div></details><section·id="impl-StructuralPartialEq-for-BenchSamples"·class="impl"><a·class="src·rightside"·href="../../src/test/bench.rs.html#59">Source</a><a·href="#impl-StructuralPartialEq-for-BenchSamples"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.StructuralPartialEq.html"·title="trait·core::marker::StructuralPartialEq">StructuralPartialEq</a>·for·<a·class="struct"·href="struct.BenchSamples.html"·title="struct·test::bench::BenchSamples">BenchSamples</a></h3></section></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-BenchSamples"·class="impl"><a·href="#impl-Freeze-for-BenchSamples"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="struct"·href="struct.BenchSamples.html"·title="struct·test::bench::BenchSamples">BenchSamples</a></h3></section><section·id="impl-RefUnwindSafe-for-BenchSamples"·class="impl"><a·href="#impl-RefUnwindSafe-for-BenchSamples"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="struct"·href="struct.BenchSamples.html"·title="struct·test::bench::BenchSamples">BenchSamples</a></h3></section><section·id="impl-Send-for-BenchSamples"·class="impl"><a·href="#impl-Send-for-BenchSamples"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="struct"·href="struct.BenchSamples.html"·title="struct·test::bench::BenchSamples">BenchSamples</a></h3></section><section·id="impl-Sync-for-BenchSamples"·class="impl"><a·href="#impl-Sync-for-BenchSamples"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="struct"·href="struct.BenchSamples.html"·title="struct·test::bench::BenchSamples">BenchSamples</a></h3></section><section·id="impl-Unpin-for-BenchSamples"·class="impl"><a·href="#impl-Unpin-for-BenchSamples"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="struct"·href="struct.BenchSamples.html"·title="struct·test::bench::BenchSamples">BenchSamples</a></h3></section><section·id="impl-UnwindSafe-for-BenchSamples"·class="impl"><a·href="#impl-UnwindSafe-for-BenchSamples"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="struct"·href="struct.BenchSamples.html"·title="struct·test::bench::BenchSamples">BenchSamples</a></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementations<a·href="#blanket-implementations"·class="anchor">§</a></h2><div·id="blanket-implementations-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-Any-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/any.rs.html#138">Source</a><a·href="#impl-Any-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where5 and·should·not·be·overridden·without·very·good·reason.</div></details></div></details><section·id="impl-StructuralPartialEq-for-BenchSamples"·class="impl"><a·class="src·rightside"·href="../../src/test/bench.rs.html#59">Source</a><a·href="#impl-StructuralPartialEq-for-BenchSamples"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.StructuralPartialEq.html"·title="trait·core::marker::StructuralPartialEq">StructuralPartialEq</a>·for·<a·class="struct"·href="struct.BenchSamples.html"·title="struct·test::bench::BenchSamples">BenchSamples</a></h3></section></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-BenchSamples"·class="impl"><a·href="#impl-Freeze-for-BenchSamples"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="struct"·href="struct.BenchSamples.html"·title="struct·test::bench::BenchSamples">BenchSamples</a></h3></section><section·id="impl-RefUnwindSafe-for-BenchSamples"·class="impl"><a·href="#impl-RefUnwindSafe-for-BenchSamples"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="struct"·href="struct.BenchSamples.html"·title="struct·test::bench::BenchSamples">BenchSamples</a></h3></section><section·id="impl-Send-for-BenchSamples"·class="impl"><a·href="#impl-Send-for-BenchSamples"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="struct"·href="struct.BenchSamples.html"·title="struct·test::bench::BenchSamples">BenchSamples</a></h3></section><section·id="impl-Sync-for-BenchSamples"·class="impl"><a·href="#impl-Sync-for-BenchSamples"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="struct"·href="struct.BenchSamples.html"·title="struct·test::bench::BenchSamples">BenchSamples</a></h3></section><section·id="impl-Unpin-for-BenchSamples"·class="impl"><a·href="#impl-Unpin-for-BenchSamples"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="struct"·href="struct.BenchSamples.html"·title="struct·test::bench::BenchSamples">BenchSamples</a></h3></section><section·id="impl-UnwindSafe-for-BenchSamples"·class="impl"><a·href="#impl-UnwindSafe-for-BenchSamples"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="struct"·href="struct.BenchSamples.html"·title="struct·test::bench::BenchSamples">BenchSamples</a></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementations<a·href="#blanket-implementations"·class="anchor">§</a></h2><div·id="blanket-implementations-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-Any-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/any.rs.html#138">Source</a><a·href="#impl-Any-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where
6 ····T:·'static·+·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/any.rs.html#139">Source</a><a·href="#method.type_id"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/any/trait.Any.html#tymethod.type_id"·class="fn">type_id</a>(&amp;self)·-&gt;·<a·class="struct"·href="../../core/any/struct.TypeId.html"·title="struct·core::any::TypeId">TypeId</a></h4></section></summary><div·class='docblock'>Gets·the·<code>TypeId</code>·of·<code>self</code>.·<a·href="../../core/any/trait.Any.html#tymethod.type_id">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Borrow%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/borrow/trait.Borrow.html"·title="trait·core::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where6 ····T:·'static·+·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/any.rs.html#139">Source</a><a·href="#method.type_id"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/any/trait.Any.html#tymethod.type_id"·class="fn">type_id</a>(&amp;self)·-&gt;·<a·class="struct"·href="../../core/any/struct.TypeId.html"·title="struct·core::any::TypeId">TypeId</a></h4></section></summary><div·class='docblock'>Gets·the·<code>TypeId</code>·of·<code>self</code>.·<a·href="../../core/any/trait.Any.html#tymethod.type_id">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Borrow%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/borrow/trait.Borrow.html"·title="trait·core::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where
7 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#211">Source</a><a·href="#method.borrow"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/borrow/trait.Borrow.html#tymethod.borrow"·class="fn">borrow</a>(&amp;self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;T</a></h4></section></summary><div·class='docblock'>Immutably·borrows·from·an·owned·value.·<a·href="../../core/borrow/trait.Borrow.html#tymethod.borrow">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-BorrowMut%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/borrow/trait.BorrowMut.html"·title="trait·core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where7 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#211">Source</a><a·href="#method.borrow"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/borrow/trait.Borrow.html#tymethod.borrow"·class="fn">borrow</a>(&amp;self)·-&gt;·<a·class="primitive"·href="../../std/primitive.reference.html">&amp;T</a></h4></section></summary><div·class='docblock'>Immutably·borrows·from·an·owned·value.·<a·href="../../core/borrow/trait.Borrow.html#tymethod.borrow">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-BorrowMut%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/borrow/trait.BorrowMut.html"·title="trait·core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where
8 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#218">Source</a><a·href="#method.borrow_mut"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"·class="fn">borrow_mut</a>(&amp;mut·self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;mut·T</a></h4></section></summary><div·class='docblock'>Mutably·borrows·from·an·owned·value.·<a·href="../../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-CloneToUninit-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/clone.rs.html#273">Source</a><a·href="#impl-CloneToUninit-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where8 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#218">Source</a><a·href="#method.borrow_mut"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"·class="fn">borrow_mut</a>(&amp;mut·self)·-&gt;·<a·class="primitive"·href="../../std/primitive.reference.html">&amp;mut·T</a></h4></section></summary><div·class='docblock'>Mutably·borrows·from·an·owned·value.·<a·href="../../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-CloneToUninit-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/clone.rs.html#273">Source</a><a·href="#impl-CloneToUninit-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where
9 ····T:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/clone.rs.html#275">Source</a><a·href="#method.clone_to_uninit"·class="anchor">§</a><h4·class="code-header">unsafe·fn·<a·href="../../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit"·class="fn">clone_to_uninit</a>(&amp;self,·dst:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.pointer.html">*mut·</a><a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.u8.html">u8</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>clone_to_uninit</code>)</span></div></span><div·class='docblock'>Performs·copy-assignment·from·<code>self</code>·to·<code>dst</code>.·<a·href="../../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-From%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#765">Source</a><a·href="#impl-From%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·T</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#768">Source</a><a·href="#method.from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>9 ····T:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/clone.rs.html#275">Source</a><a·href="#method.clone_to_uninit"·class="anchor">§</a><h4·class="code-header">unsafe·fn·<a·href="../../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit"·class="fn">clone_to_uninit</a>(&amp;self,·dst:·<a·class="primitive"·href="../../std/primitive.pointer.html">*mut·</a><a·class="primitive"·href="../../std/primitive.u8.html">u8</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>clone_to_uninit</code>)</span></div></span><div·class='docblock'>Performs·copy-assignment·from·<code>self</code>·to·<code>dst</code>.·<a·href="../../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-From%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#765">Source</a><a·href="#impl-From%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·T</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#768">Source</a><a·href="#method.from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>
10 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where10 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where
11 ····U:·<a·class="trait"·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#758">Source</a><a·href="#method.into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>11 ····U:·<a·class="trait"·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#758">Source</a><a·href="#method.into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>
12 <p>That·is,·this·conversion·is·whatever·the·implementation·of12 <p>That·is,·this·conversion·is·whatever·the·implementation·of
13 <code><a·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>13 <code><a·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>
14 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#82-84">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../alloc/borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where14 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#82-84">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../alloc/borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where
15 ····T:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#86">Source</a><a·href="#associatedtype.Owned"·class="anchor">§</a><h4·class="code-header">type·<a·href="../../alloc/borrow/trait.ToOwned.html#associatedtype.Owned"·class="associatedtype">Owned</a>·=·T</h4></section></summary><div·class='docblock'>The·resulting·type·after·obtaining·ownership.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.to_owned"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#87">Source</a><a·href="#method.to_owned"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../alloc/borrow/trait.ToOwned.html#tymethod.to_owned"·class="fn">to_owned</a>(&amp;self)·-&gt;·T</h4></section></summary><div·class='docblock'>Creates·owned·data·from·borrowed·data,·usually·by·cloning.·<a·href="../../alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#91">Source</a><a·href="#method.clone_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../alloc/borrow/trait.ToOwned.html#method.clone_into"·class="fn">clone_into</a>(&amp;self,·target:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../../alloc/borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#805-807">Source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where15 ····T:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#86">Source</a><a·href="#associatedtype.Owned"·class="anchor">§</a><h4·class="code-header">type·<a·href="../../alloc/borrow/trait.ToOwned.html#associatedtype.Owned"·class="associatedtype">Owned</a>·=·T</h4></section></summary><div·class='docblock'>The·resulting·type·after·obtaining·ownership.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.to_owned"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#87">Source</a><a·href="#method.to_owned"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../alloc/borrow/trait.ToOwned.html#tymethod.to_owned"·class="fn">to_owned</a>(&amp;self)·-&gt;·T</h4></section></summary><div·class='docblock'>Creates·owned·data·from·borrowed·data,·usually·by·cloning.·<a·href="../../alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#91">Source</a><a·href="#method.clone_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../alloc/borrow/trait.ToOwned.html#method.clone_into"·class="fn">clone_into</a>(&amp;self,·target:·<a·class="primitive"·href="../../std/primitive.reference.html">&amp;mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../../alloc/borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#805-807">Source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where
16 ····U:·<a·class="trait"·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#809">Source</a><a·href="#associatedtype.Error-1"·class="anchor">§</a><h4·class="code-header">type·<a·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<a·class="enum"·href="../../core/convert/enum.Infallible.html"·title="enum·core::convert::Infallible">Infallible</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_from"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#812">Source</a><a·href="#method.try_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.TryFrom.html#tymethod.try_from"·class="fn">try_from</a>(value:·U)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;T,·&lt;T·as·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;&gt;::<a·class="associatedtype"·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryInto%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#790-792">Source</a><a·href="#impl-TryInto%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where16 ····U:·<a·class="trait"·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#809">Source</a><a·href="#associatedtype.Error-1"·class="anchor">§</a><h4·class="code-header">type·<a·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<a·class="enum"·href="../../core/convert/enum.Infallible.html"·title="enum·core::convert::Infallible">Infallible</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_from"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#812">Source</a><a·href="#method.try_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.TryFrom.html#tymethod.try_from"·class="fn">try_from</a>(value:·U)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;T,·&lt;T·as·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;&gt;::<a·class="associatedtype"·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryInto%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#790-792">Source</a><a·href="#impl-TryInto%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where
17 ····U:·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#794">Source</a><a·href="#associatedtype.Error"·class="anchor">§</a><h4·class="code-header">type·<a·href="../../core/convert/trait.TryInto.html#associatedtype.Error"·class="associatedtype">Error</a>·=·&lt;U·as·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#797">Source</a><a·href="#method.try_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.TryInto.html#tymethod.try_into"·class="fn">try_into</a>(self)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;U,·&lt;U·as·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>17 ····U:·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#794">Source</a><a·href="#associatedtype.Error"·class="anchor">§</a><h4·class="code-header">type·<a·href="../../core/convert/trait.TryInto.html#associatedtype.Error"·class="associatedtype">Error</a>·=·&lt;U·as·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#797">Source</a><a·href="#method.try_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.TryInto.html#tymethod.try_into"·class="fn">try_into</a>(self)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;U,·&lt;U·as·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>
40.8 KB
./usr/share/doc/rust-doc/html/test/bench/struct.Bencher.html
    
Offset 1, 23 lines modifiedOffset 1, 23 lines modified
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="Manager·of·the·benchmarking·runs."><title>Bencher·in·test::bench·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="test"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../test/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../test/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../test/index.html">test</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312» 2025-01-07)»      (built»from»    a»   source»     tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Bencher</a></h2><h3><a·href="#fields">Fields</a></h3><ul·class="block·structfield"><li><a·href="#structfield.bytes"·title="bytes">bytes</a></li></ul><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.bench"·title="bench">bench</a></li><li><a·href="#method.iter"·title="iter">iter</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-Bencher"·title="Clone">Clone</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-Bencher"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Bencher"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Bencher"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-Bencher"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-Bencher"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Bencher"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·test::<wbr>bench</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">test</a>::<wbr><a·href="index.html">bench</a></span><h1>Struct·<span·class="struct">Bencher</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/test/bench.rs.html#30-34">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·Bencher·{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="Manager·of·the·benchmarking·runs."><title>Bencher·in·test::bench·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="test"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../test/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../test/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../test/index.html">test</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312» 2025-01-07)»      (built»from»    a»   source»     tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Bencher</a></h2><h3><a·href="#fields">Fields</a></h3><ul·class="block·structfield"><li><a·href="#structfield.bytes"·title="bytes">bytes</a></li></ul><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.bench"·title="bench">bench</a></li><li><a·href="#method.iter"·title="iter">iter</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-Bencher"·title="Clone">Clone</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-Bencher"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Bencher"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Bencher"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-Bencher"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-Bencher"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Bencher"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·test::<wbr>bench</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">test</a>::<wbr><a·href="index.html">bench</a></span><h1>Struct·<span·class="struct">Bencher</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/test/bench.rs.html#30-34">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·Bencher·{
2 ····pub·bytes:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.u64.html">u64</a>,2 ····pub·bytes:·<a·class="primitive"·href="../../std/primitive.u64.html">u64</a>,
3 ····<span·class="comment">/*·private·fields·*/</span>3 ····<span·class="comment">/*·private·fields·*/</span>
4 }</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Manager·of·the·benchmarking·runs.</p>4 }</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Manager·of·the·benchmarking·runs.</p>
5 <p>This·is·fed·into·functions·marked·with·<code>#[bench]</code>·to·allow·for5 <p>This·is·fed·into·functions·marked·with·<code>#[bench]</code>·to·allow·for
6 set-up·&amp;·tear-down·before·running·a·piece·of·code·repeatedly·via·a6 set-up·&amp;·tear-down·before·running·a·piece·of·code·repeatedly·via·a
7 call·to·<code>iter</code>.</p>7 call·to·<code>iter</code>.</p>
8 </div></details><h2·id="fields"·class="fields·section-header">Fields<a·href="#fields"·class="anchor">§</a></h2><span·id="structfield.bytes"·class="structfield·section-header"><a·href="#structfield.bytes"·class="anchor·field">§</a><code>bytes:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.u64.html">u64</a></code></span><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Bencher"·class="impl"><a·class="src·rightside"·href="../../src/test/bench.rs.html#36-57">Source</a><a·href="#impl-Bencher"·class="anchor">§</a><h3·class="code-header">impl·<a·class="struct"·href="struct.Bencher.html"·title="struct·test::bench::Bencher">Bencher</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.iter"·class="method"><a·class="src·rightside"·href="../../src/test/bench.rs.html#38-48">Source</a><h4·class="code-header">pub·fn·<a·href="#method.iter"·class="fn">iter</a>&lt;T,·F&gt;(&amp;mut·self,·inner:·F)<div·class="where">where8 </div></details><h2·id="fields"·class="fields·section-header">Fields<a·href="#fields"·class="anchor">§</a></h2><span·id="structfield.bytes"·class="structfield·section-header"><a·href="#structfield.bytes"·class="anchor·field">§</a><code>bytes:·<a·class="primitive"·href="../../std/primitive.u64.html">u64</a></code></span><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Bencher"·class="impl"><a·class="src·rightside"·href="../../src/test/bench.rs.html#36-57">Source</a><a·href="#impl-Bencher"·class="anchor">§</a><h3·class="code-header">impl·<a·class="struct"·href="struct.Bencher.html"·title="struct·test::bench::Bencher">Bencher</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.iter"·class="method"><a·class="src·rightside"·href="../../src/test/bench.rs.html#38-48">Source</a><h4·class="code-header">pub·fn·<a·href="#method.iter"·class="fn">iter</a>&lt;T,·F&gt;(&amp;mut·self,·inner:·F)<div·class="where">where
9 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·T,</div></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span></summary><div·class="docblock"><p>Callback·for·benchmark·functions·to·run·in·their·body.</p>9 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·T,</div></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span></summary><div·class="docblock"><p>Callback·for·benchmark·functions·to·run·in·their·body.</p>
10 </div></details><section·id="method.bench"·class="method"><a·class="src·rightside"·href="../../src/test/bench.rs.html#50-56">Source</a><h4·class="code-header">pub·fn·<a·href="#method.bench"·class="fn">bench</a>&lt;F&gt;(&amp;mut·self,·f:·F)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="struct"·href="../stats/struct.Summary.html"·title="struct·test::stats::Summary">Summary</a>&gt;,·<a·class="struct"·href="../../alloc/string/struct.String.html"·title="struct·alloc::string::String">String</a>&gt;<div·class="where">where10 </div></details><section·id="method.bench"·class="method"><a·class="src·rightside"·href="../../src/test/bench.rs.html#50-56">Source</a><h4·class="code-header">pub·fn·<a·href="#method.bench"·class="fn">bench</a>&lt;F&gt;(&amp;mut·self,·f:·F)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="struct"·href="../stats/struct.Summary.html"·title="struct·test::stats::Summary">Summary</a>&gt;,·<a·class="struct"·href="../../alloc/string/struct.String.html"·title="struct·alloc::string::String">String</a>&gt;<div·class="where">where
11 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;mut·<a·class="struct"·href="struct.Bencher.html"·title="struct·test::bench::Bencher">Bencher</a>)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.unit.html">()</a>,·<a·class="struct"·href="../../alloc/string/struct.String.html"·title="struct·alloc::string::String">String</a>&gt;,</div></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-Bencher"·class="impl"><a·class="src·rightside"·href="../../src/test/bench.rs.html#29">Source</a><a·href="#impl-Clone-for-Bencher"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struct"·href="struct.Bencher.html"·title="struct·test::bench::Bencher">Bencher</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/test/bench.rs.html#29">Source</a><a·href="#method.clone"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/clone/trait.Clone.html#tymethod.clone"·class="fn">clone</a>(&amp;self)·-&gt;·<a·class="struct"·href="struct.Bencher.html"·title="struct·test::bench::Bencher">Bencher</a></h4></section></summary><div·class='docblock'>Returns·a·copy·of·the·value.·<a·href="../../core/clone/trait.Clone.html#tymethod.clone">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_from"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/clone.rs.html#174">Source</a></span><a·href="#method.clone_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/clone/trait.Clone.html#method.clone_from"·class="fn">clone_from</a>(&amp;mut·self,·source:·&amp;Self)</h4></section></summary><div·class='docblock'>Performs·copy-assignment·from·<code>source</code>.·<a·href="../../core/clone/trait.Clone.html#method.clone_from">Read·more</a></div></details></div></details></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-Bencher"·class="impl"><a·href="#impl-Freeze-for-Bencher"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="struct"·href="struct.Bencher.html"·title="struct·test::bench::Bencher">Bencher</a></h3></section><section·id="impl-RefUnwindSafe-for-Bencher"·class="impl"><a·href="#impl-RefUnwindSafe-for-Bencher"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="struct"·href="struct.Bencher.html"·title="struct·test::bench::Bencher">Bencher</a></h3></section><section·id="impl-Send-for-Bencher"·class="impl"><a·href="#impl-Send-for-Bencher"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="struct"·href="struct.Bencher.html"·title="struct·test::bench::Bencher">Bencher</a></h3></section><section·id="impl-Sync-for-Bencher"·class="impl"><a·href="#impl-Sync-for-Bencher"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="struct"·href="struct.Bencher.html"·title="struct·test::bench::Bencher">Bencher</a></h3></section><section·id="impl-Unpin-for-Bencher"·class="impl"><a·href="#impl-Unpin-for-Bencher"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="struct"·href="struct.Bencher.html"·title="struct·test::bench::Bencher">Bencher</a></h3></section><section·id="impl-UnwindSafe-for-Bencher"·class="impl"><a·href="#impl-UnwindSafe-for-Bencher"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="struct"·href="struct.Bencher.html"·title="struct·test::bench::Bencher">Bencher</a></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementations<a·href="#blanket-implementations"·class="anchor">§</a></h2><div·id="blanket-implementations-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-Any-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/any.rs.html#138">Source</a><a·href="#impl-Any-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where11 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;mut·<a·class="struct"·href="struct.Bencher.html"·title="struct·test::bench::Bencher">Bencher</a>)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="primitive"·href="../../std/primitive.unit.html">()</a>,·<a·class="struct"·href="../../alloc/string/struct.String.html"·title="struct·alloc::string::String">String</a>&gt;,</div></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-Bencher"·class="impl"><a·class="src·rightside"·href="../../src/test/bench.rs.html#29">Source</a><a·href="#impl-Clone-for-Bencher"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struct"·href="struct.Bencher.html"·title="struct·test::bench::Bencher">Bencher</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/test/bench.rs.html#29">Source</a><a·href="#method.clone"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/clone/trait.Clone.html#tymethod.clone"·class="fn">clone</a>(&amp;self)·-&gt;·<a·class="struct"·href="struct.Bencher.html"·title="struct·test::bench::Bencher">Bencher</a></h4></section></summary><div·class='docblock'>Returns·a·copy·of·the·value.·<a·href="../../core/clone/trait.Clone.html#tymethod.clone">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_from"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/clone.rs.html#174">Source</a></span><a·href="#method.clone_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/clone/trait.Clone.html#method.clone_from"·class="fn">clone_from</a>(&amp;mut·self,·source:·&amp;Self)</h4></section></summary><div·class='docblock'>Performs·copy-assignment·from·<code>source</code>.·<a·href="../../core/clone/trait.Clone.html#method.clone_from">Read·more</a></div></details></div></details></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-Bencher"·class="impl"><a·href="#impl-Freeze-for-Bencher"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="struct"·href="struct.Bencher.html"·title="struct·test::bench::Bencher">Bencher</a></h3></section><section·id="impl-RefUnwindSafe-for-Bencher"·class="impl"><a·href="#impl-RefUnwindSafe-for-Bencher"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="struct"·href="struct.Bencher.html"·title="struct·test::bench::Bencher">Bencher</a></h3></section><section·id="impl-Send-for-Bencher"·class="impl"><a·href="#impl-Send-for-Bencher"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="struct"·href="struct.Bencher.html"·title="struct·test::bench::Bencher">Bencher</a></h3></section><section·id="impl-Sync-for-Bencher"·class="impl"><a·href="#impl-Sync-for-Bencher"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="struct"·href="struct.Bencher.html"·title="struct·test::bench::Bencher">Bencher</a></h3></section><section·id="impl-Unpin-for-Bencher"·class="impl"><a·href="#impl-Unpin-for-Bencher"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="struct"·href="struct.Bencher.html"·title="struct·test::bench::Bencher">Bencher</a></h3></section><section·id="impl-UnwindSafe-for-Bencher"·class="impl"><a·href="#impl-UnwindSafe-for-Bencher"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="struct"·href="struct.Bencher.html"·title="struct·test::bench::Bencher">Bencher</a></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementations<a·href="#blanket-implementations"·class="anchor">§</a></h2><div·id="blanket-implementations-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-Any-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/any.rs.html#138">Source</a><a·href="#impl-Any-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where
12 ····T:·'static·+·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/any.rs.html#139">Source</a><a·href="#method.type_id"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/any/trait.Any.html#tymethod.type_id"·class="fn">type_id</a>(&amp;self)·-&gt;·<a·class="struct"·href="../../core/any/struct.TypeId.html"·title="struct·core::any::TypeId">TypeId</a></h4></section></summary><div·class='docblock'>Gets·the·<code>TypeId</code>·of·<code>self</code>.·<a·href="../../core/any/trait.Any.html#tymethod.type_id">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Borrow%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/borrow/trait.Borrow.html"·title="trait·core::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where12 ····T:·'static·+·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/any.rs.html#139">Source</a><a·href="#method.type_id"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/any/trait.Any.html#tymethod.type_id"·class="fn">type_id</a>(&amp;self)·-&gt;·<a·class="struct"·href="../../core/any/struct.TypeId.html"·title="struct·core::any::TypeId">TypeId</a></h4></section></summary><div·class='docblock'>Gets·the·<code>TypeId</code>·of·<code>self</code>.·<a·href="../../core/any/trait.Any.html#tymethod.type_id">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Borrow%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/borrow/trait.Borrow.html"·title="trait·core::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where
13 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#211">Source</a><a·href="#method.borrow"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/borrow/trait.Borrow.html#tymethod.borrow"·class="fn">borrow</a>(&amp;self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;T</a></h4></section></summary><div·class='docblock'>Immutably·borrows·from·an·owned·value.·<a·href="../../core/borrow/trait.Borrow.html#tymethod.borrow">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-BorrowMut%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/borrow/trait.BorrowMut.html"·title="trait·core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where13 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#211">Source</a><a·href="#method.borrow"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/borrow/trait.Borrow.html#tymethod.borrow"·class="fn">borrow</a>(&amp;self)·-&gt;·<a·class="primitive"·href="../../std/primitive.reference.html">&amp;T</a></h4></section></summary><div·class='docblock'>Immutably·borrows·from·an·owned·value.·<a·href="../../core/borrow/trait.Borrow.html#tymethod.borrow">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-BorrowMut%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/borrow/trait.BorrowMut.html"·title="trait·core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where
14 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#218">Source</a><a·href="#method.borrow_mut"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"·class="fn">borrow_mut</a>(&amp;mut·self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;mut·T</a></h4></section></summary><div·class='docblock'>Mutably·borrows·from·an·owned·value.·<a·href="../../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-CloneToUninit-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/clone.rs.html#273">Source</a><a·href="#impl-CloneToUninit-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where14 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#218">Source</a><a·href="#method.borrow_mut"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"·class="fn">borrow_mut</a>(&amp;mut·self)·-&gt;·<a·class="primitive"·href="../../std/primitive.reference.html">&amp;mut·T</a></h4></section></summary><div·class='docblock'>Mutably·borrows·from·an·owned·value.·<a·href="../../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-CloneToUninit-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/clone.rs.html#273">Source</a><a·href="#impl-CloneToUninit-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where
15 ····T:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/clone.rs.html#275">Source</a><a·href="#method.clone_to_uninit"·class="anchor">§</a><h4·class="code-header">unsafe·fn·<a·href="../../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit"·class="fn">clone_to_uninit</a>(&amp;self,·dst:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.pointer.html">*mut·</a><a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.u8.html">u8</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>clone_to_uninit</code>)</span></div></span><div·class='docblock'>Performs·copy-assignment·from·<code>self</code>·to·<code>dst</code>.·<a·href="../../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-From%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#765">Source</a><a·href="#impl-From%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·T</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#768">Source</a><a·href="#method.from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>15 ····T:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/clone.rs.html#275">Source</a><a·href="#method.clone_to_uninit"·class="anchor">§</a><h4·class="code-header">unsafe·fn·<a·href="../../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit"·class="fn">clone_to_uninit</a>(&amp;self,·dst:·<a·class="primitive"·href="../../std/primitive.pointer.html">*mut·</a><a·class="primitive"·href="../../std/primitive.u8.html">u8</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>clone_to_uninit</code>)</span></div></span><div·class='docblock'>Performs·copy-assignment·from·<code>self</code>·to·<code>dst</code>.·<a·href="../../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-From%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#765">Source</a><a·href="#impl-From%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·T</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#768">Source</a><a·href="#method.from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>
16 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where16 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where
17 ····U:·<a·class="trait"·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#758">Source</a><a·href="#method.into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>17 ····U:·<a·class="trait"·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#758">Source</a><a·href="#method.into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>
18 <p>That·is,·this·conversion·is·whatever·the·implementation·of18 <p>That·is,·this·conversion·is·whatever·the·implementation·of
19 <code><a·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>19 <code><a·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>
20 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#82-84">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../alloc/borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where20 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#82-84">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../alloc/borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where
21 ····T:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#86">Source</a><a·href="#associatedtype.Owned"·class="anchor">§</a><h4·class="code-header">type·<a·href="../../alloc/borrow/trait.ToOwned.html#associatedtype.Owned"·class="associatedtype">Owned</a>·=·T</h4></section></summary><div·class='docblock'>The·resulting·type·after·obtaining·ownership.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.to_owned"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#87">Source</a><a·href="#method.to_owned"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../alloc/borrow/trait.ToOwned.html#tymethod.to_owned"·class="fn">to_owned</a>(&amp;self)·-&gt;·T</h4></section></summary><div·class='docblock'>Creates·owned·data·from·borrowed·data,·usually·by·cloning.·<a·href="../../alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#91">Source</a><a·href="#method.clone_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../alloc/borrow/trait.ToOwned.html#method.clone_into"·class="fn">clone_into</a>(&amp;self,·target:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../../alloc/borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#805-807">Source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where21 ····T:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#86">Source</a><a·href="#associatedtype.Owned"·class="anchor">§</a><h4·class="code-header">type·<a·href="../../alloc/borrow/trait.ToOwned.html#associatedtype.Owned"·class="associatedtype">Owned</a>·=·T</h4></section></summary><div·class='docblock'>The·resulting·type·after·obtaining·ownership.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.to_owned"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#87">Source</a><a·href="#method.to_owned"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../alloc/borrow/trait.ToOwned.html#tymethod.to_owned"·class="fn">to_owned</a>(&amp;self)·-&gt;·T</h4></section></summary><div·class='docblock'>Creates·owned·data·from·borrowed·data,·usually·by·cloning.·<a·href="../../alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#91">Source</a><a·href="#method.clone_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../alloc/borrow/trait.ToOwned.html#method.clone_into"·class="fn">clone_into</a>(&amp;self,·target:·<a·class="primitive"·href="../../std/primitive.reference.html">&amp;mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../../alloc/borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#805-807">Source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where
22 ····U:·<a·class="trait"·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#809">Source</a><a·href="#associatedtype.Error-1"·class="anchor">§</a><h4·class="code-header">type·<a·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<a·class="enum"·href="../../core/convert/enum.Infallible.html"·title="enum·core::convert::Infallible">Infallible</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_from"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#812">Source</a><a·href="#method.try_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.TryFrom.html#tymethod.try_from"·class="fn">try_from</a>(value:·U)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;T,·&lt;T·as·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;&gt;::<a·class="associatedtype"·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryInto%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#790-792">Source</a><a·href="#impl-TryInto%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where22 ····U:·<a·class="trait"·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#809">Source</a><a·href="#associatedtype.Error-1"·class="anchor">§</a><h4·class="code-header">type·<a·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<a·class="enum"·href="../../core/convert/enum.Infallible.html"·title="enum·core::convert::Infallible">Infallible</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_from"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#812">Source</a><a·href="#method.try_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.TryFrom.html#tymethod.try_from"·class="fn">try_from</a>(value:·U)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;T,·&lt;T·as·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;&gt;::<a·class="associatedtype"·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryInto%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#790-792">Source</a><a·href="#impl-TryInto%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where
23 ····U:·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#794">Source</a><a·href="#associatedtype.Error"·class="anchor">§</a><h4·class="code-header">type·<a·href="../../core/convert/trait.TryInto.html#associatedtype.Error"·class="associatedtype">Error</a>·=·&lt;U·as·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#797">Source</a><a·href="#method.try_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.TryInto.html#tymethod.try_into"·class="fn">try_into</a>(self)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;U,·&lt;U·as·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>23 ····U:·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#794">Source</a><a·href="#associatedtype.Error"·class="anchor">§</a><h4·class="code-header">type·<a·href="../../core/convert/trait.TryInto.html#associatedtype.Error"·class="associatedtype">Error</a>·=·&lt;U·as·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#797">Source</a><a·href="#method.try_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.TryInto.html#tymethod.try_into"·class="fn">try_into</a>(self)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;U,·&lt;U·as·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>
34.1 KB
./usr/share/doc/rust-doc/html/test/enum.ColorConfig.html
    
Offset 1, 18 lines modifiedOffset 1, 18 lines modified
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="Whether·should·console·output·be·colored·or·not"><title>ColorConfig·in·test·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../"·data-static-root-path="../static.files/"·data-current-crate="test"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·enum"><!--[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><a·class="logo-container"·href="../test/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../test/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../test/index.html">test</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»2025-01-07)»     (built»       from»   a»  source»    tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Color<wbr>Config</a></h2><h3><a·href="#variants">Variants</a></h3><ul·class="block·variant"><li><a·href="#variant.AlwaysColor"·title="AlwaysColor">AlwaysColor</a></li><li><a·href="#variant.AutoColor"·title="AutoColor">AutoColor</a></li><li><a·href="#variant.NeverColor"·title="NeverColor">NeverColor</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-ColorConfig"·title="Clone">Clone</a></li><li><a·href="#impl-Copy-for-ColorConfig"·title="Copy">Copy</a></li><li><a·href="#impl-Debug-for-ColorConfig"·title="Debug">Debug</a></li><li><a·href="#impl-Default-for-ColorConfig"·title="Default">Default</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-ColorConfig"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-ColorConfig"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-ColorConfig"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-ColorConfig"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-ColorConfig"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-ColorConfig"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2·class="in-crate"><a·href="index.html">In·crate·test</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">test</a></span><h1>Enum·<span·class="enum">ColorConfig</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/test/options.rs.html#20-25">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·enum·ColorConfig·{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="Whether·should·console·output·be·colored·or·not"><title>ColorConfig·in·test·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../"·data-static-root-path="../static.files/"·data-current-crate="test"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·enum"><!--[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><a·class="logo-container"·href="../test/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../test/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../test/index.html">test</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»2025-01-07)»     (built»       from»   a»  source»    tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Color<wbr>Config</a></h2><h3><a·href="#variants">Variants</a></h3><ul·class="block·variant"><li><a·href="#variant.AlwaysColor"·title="AlwaysColor">AlwaysColor</a></li><li><a·href="#variant.AutoColor"·title="AutoColor">AutoColor</a></li><li><a·href="#variant.NeverColor"·title="NeverColor">NeverColor</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-ColorConfig"·title="Clone">Clone</a></li><li><a·href="#impl-Copy-for-ColorConfig"·title="Copy">Copy</a></li><li><a·href="#impl-Debug-for-ColorConfig"·title="Debug">Debug</a></li><li><a·href="#impl-Default-for-ColorConfig"·title="Default">Default</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-ColorConfig"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-ColorConfig"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-ColorConfig"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-ColorConfig"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-ColorConfig"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-ColorConfig"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2·class="in-crate"><a·href="index.html">In·crate·test</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">test</a></span><h1>Enum·<span·class="enum">ColorConfig</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/test/options.rs.html#20-25">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·enum·ColorConfig·{
2 ····AutoColor,2 ····AutoColor,
3 ····AlwaysColor,3 ····AlwaysColor,
4 ····NeverColor,4 ····NeverColor,
5 }</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Whether·should·console·output·be·colored·or·not</p>5 }</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Whether·should·console·output·be·colored·or·not</p>
6 </div></details><h2·id="variants"·class="variants·section-header">Variants<a·href="#variants"·class="anchor">§</a></h2><div·class="variants"><section·id="variant.AutoColor"·class="variant"><a·href="#variant.AutoColor"·class="anchor">§</a><h3·class="code-header">AutoColor</h3></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><section·id="variant.AlwaysColor"·class="variant"><a·href="#variant.AlwaysColor"·class="anchor">§</a><h3·class="code-header">AlwaysColor</h3></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><section·id="variant.NeverColor"·class="variant"><a·href="#variant.NeverColor"·class="anchor">§</a><h3·class="code-header">NeverColor</h3></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-ColorConfig"·class="impl"><a·class="src·rightside"·href="../src/test/options.rs.html#19">Source</a><a·href="#impl-Clone-for-ColorConfig"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="enum"·href="enum.ColorConfig.html"·title="enum·test::ColorConfig">ColorConfig</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone"·class="method·trait-impl"><a·class="src·rightside"·href="../src/test/options.rs.html#19">Source</a><a·href="#method.clone"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/clone/trait.Clone.html#tymethod.clone"·class="fn">clone</a>(&amp;self)·-&gt;·<a·class="enum"·href="enum.ColorConfig.html"·title="enum·test::ColorConfig">ColorConfig</a></h4></section></summary><div·class='docblock'>Returns·a·copy·of·the·value.·<a·href="../core/clone/trait.Clone.html#tymethod.clone">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_from"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../src/core/clone.rs.html#174">Source</a></span><a·href="#method.clone_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/clone/trait.Clone.html#method.clone_from"·class="fn">clone_from</a>(&amp;mut·self,·source:·&amp;Self)</h4></section></summary><div·class='docblock'>Performs·copy-assignment·from·<code>source</code>.·<a·href="../core/clone/trait.Clone.html#method.clone_from">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-ColorConfig"·class="impl"><a·class="src·rightside"·href="../src/test/options.rs.html#19">Source</a><a·href="#impl-Debug-for-ColorConfig"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/fmt/trait.Debug.html"·title="trait·core::fmt::Debug">Debug</a>·for·<a·class="enum"·href="enum.ColorConfig.html"·title="enum·test::ColorConfig">ColorConfig</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../src/test/options.rs.html#19">Source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="../core/fmt/struct.Formatter.html"·title="struct·core::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="type"·href="../core/fmt/type.Result.html"·title="type·core::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Default-for-ColorConfig"·class="impl"><a·class="src·rightside"·href="../src/test/options.rs.html#19">Source</a><a·href="#impl-Default-for-ColorConfig"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·for·<a·class="enum"·href="enum.ColorConfig.html"·title="enum·test::ColorConfig">ColorConfig</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.default"·class="method·trait-impl"><a·class="src·rightside"·href="../src/test/options.rs.html#19">Source</a><a·href="#method.default"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/default/trait.Default.html#tymethod.default"·class="fn">default</a>()·-&gt;·<a·class="enum"·href="enum.ColorConfig.html"·title="enum·test::ColorConfig">ColorConfig</a></h4></section></summary><div·class='docblock'>Returns·the·“default·value”·for·a·type.·<a·href="../core/default/trait.Default.html#tymethod.default">Read·more</a></div></details></div></details><section·id="impl-Copy-for-ColorConfig"·class="impl"><a·class="src·rightside"·href="../src/test/options.rs.html#19">Source</a><a·href="#impl-Copy-for-ColorConfig"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Copy.html"·title="trait·core::marker::Copy">Copy</a>·for·<a·class="enum"·href="enum.ColorConfig.html"·title="enum·test::ColorConfig">ColorConfig</a></h3></section></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-ColorConfig"·class="impl"><a·href="#impl-Freeze-for-ColorConfig"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="enum"·href="enum.ColorConfig.html"·title="enum·test::ColorConfig">ColorConfig</a></h3></section><section·id="impl-RefUnwindSafe-for-ColorConfig"·class="impl"><a·href="#impl-RefUnwindSafe-for-ColorConfig"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="enum"·href="enum.ColorConfig.html"·title="enum·test::ColorConfig">ColorConfig</a></h3></section><section·id="impl-Send-for-ColorConfig"·class="impl"><a·href="#impl-Send-for-ColorConfig"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="enum"·href="enum.ColorConfig.html"·title="enum·test::ColorConfig">ColorConfig</a></h3></section><section·id="impl-Sync-for-ColorConfig"·class="impl"><a·href="#impl-Sync-for-ColorConfig"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="enum"·href="enum.ColorConfig.html"·title="enum·test::ColorConfig">ColorConfig</a></h3></section><section·id="impl-Unpin-for-ColorConfig"·class="impl"><a·href="#impl-Unpin-for-ColorConfig"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="enum"·href="enum.ColorConfig.html"·title="enum·test::ColorConfig">ColorConfig</a></h3></section><section·id="impl-UnwindSafe-for-ColorConfig"·class="impl"><a·href="#impl-UnwindSafe-for-ColorConfig"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="enum"·href="enum.ColorConfig.html"·title="enum·test::ColorConfig">ColorConfig</a></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementations<a·href="#blanket-implementations"·class="anchor">§</a></h2><div·id="blanket-implementations-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-Any-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/any.rs.html#138">Source</a><a·href="#impl-Any-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where6 </div></details><h2·id="variants"·class="variants·section-header">Variants<a·href="#variants"·class="anchor">§</a></h2><div·class="variants"><section·id="variant.AutoColor"·class="variant"><a·href="#variant.AutoColor"·class="anchor">§</a><h3·class="code-header">AutoColor</h3></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><section·id="variant.AlwaysColor"·class="variant"><a·href="#variant.AlwaysColor"·class="anchor">§</a><h3·class="code-header">AlwaysColor</h3></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><section·id="variant.NeverColor"·class="variant"><a·href="#variant.NeverColor"·class="anchor">§</a><h3·class="code-header">NeverColor</h3></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-ColorConfig"·class="impl"><a·class="src·rightside"·href="../src/test/options.rs.html#19">Source</a><a·href="#impl-Clone-for-ColorConfig"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="enum"·href="enum.ColorConfig.html"·title="enum·test::ColorConfig">ColorConfig</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone"·class="method·trait-impl"><a·class="src·rightside"·href="../src/test/options.rs.html#19">Source</a><a·href="#method.clone"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/clone/trait.Clone.html#tymethod.clone"·class="fn">clone</a>(&amp;self)·-&gt;·<a·class="enum"·href="enum.ColorConfig.html"·title="enum·test::ColorConfig">ColorConfig</a></h4></section></summary><div·class='docblock'>Returns·a·copy·of·the·value.·<a·href="../core/clone/trait.Clone.html#tymethod.clone">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_from"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../src/core/clone.rs.html#174">Source</a></span><a·href="#method.clone_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/clone/trait.Clone.html#method.clone_from"·class="fn">clone_from</a>(&amp;mut·self,·source:·&amp;Self)</h4></section></summary><div·class='docblock'>Performs·copy-assignment·from·<code>source</code>.·<a·href="../core/clone/trait.Clone.html#method.clone_from">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-ColorConfig"·class="impl"><a·class="src·rightside"·href="../src/test/options.rs.html#19">Source</a><a·href="#impl-Debug-for-ColorConfig"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/fmt/trait.Debug.html"·title="trait·core::fmt::Debug">Debug</a>·for·<a·class="enum"·href="enum.ColorConfig.html"·title="enum·test::ColorConfig">ColorConfig</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../src/test/options.rs.html#19">Source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="../core/fmt/struct.Formatter.html"·title="struct·core::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="type"·href="../core/fmt/type.Result.html"·title="type·core::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Default-for-ColorConfig"·class="impl"><a·class="src·rightside"·href="../src/test/options.rs.html#19">Source</a><a·href="#impl-Default-for-ColorConfig"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·for·<a·class="enum"·href="enum.ColorConfig.html"·title="enum·test::ColorConfig">ColorConfig</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.default"·class="method·trait-impl"><a·class="src·rightside"·href="../src/test/options.rs.html#19">Source</a><a·href="#method.default"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/default/trait.Default.html#tymethod.default"·class="fn">default</a>()·-&gt;·<a·class="enum"·href="enum.ColorConfig.html"·title="enum·test::ColorConfig">ColorConfig</a></h4></section></summary><div·class='docblock'>Returns·the·“default·value”·for·a·type.·<a·href="../core/default/trait.Default.html#tymethod.default">Read·more</a></div></details></div></details><section·id="impl-Copy-for-ColorConfig"·class="impl"><a·class="src·rightside"·href="../src/test/options.rs.html#19">Source</a><a·href="#impl-Copy-for-ColorConfig"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Copy.html"·title="trait·core::marker::Copy">Copy</a>·for·<a·class="enum"·href="enum.ColorConfig.html"·title="enum·test::ColorConfig">ColorConfig</a></h3></section></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-ColorConfig"·class="impl"><a·href="#impl-Freeze-for-ColorConfig"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="enum"·href="enum.ColorConfig.html"·title="enum·test::ColorConfig">ColorConfig</a></h3></section><section·id="impl-RefUnwindSafe-for-ColorConfig"·class="impl"><a·href="#impl-RefUnwindSafe-for-ColorConfig"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="enum"·href="enum.ColorConfig.html"·title="enum·test::ColorConfig">ColorConfig</a></h3></section><section·id="impl-Send-for-ColorConfig"·class="impl"><a·href="#impl-Send-for-ColorConfig"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="enum"·href="enum.ColorConfig.html"·title="enum·test::ColorConfig">ColorConfig</a></h3></section><section·id="impl-Sync-for-ColorConfig"·class="impl"><a·href="#impl-Sync-for-ColorConfig"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="enum"·href="enum.ColorConfig.html"·title="enum·test::ColorConfig">ColorConfig</a></h3></section><section·id="impl-Unpin-for-ColorConfig"·class="impl"><a·href="#impl-Unpin-for-ColorConfig"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="enum"·href="enum.ColorConfig.html"·title="enum·test::ColorConfig">ColorConfig</a></h3></section><section·id="impl-UnwindSafe-for-ColorConfig"·class="impl"><a·href="#impl-UnwindSafe-for-ColorConfig"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="enum"·href="enum.ColorConfig.html"·title="enum·test::ColorConfig">ColorConfig</a></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementations<a·href="#blanket-implementations"·class="anchor">§</a></h2><div·id="blanket-implementations-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-Any-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/any.rs.html#138">Source</a><a·href="#impl-Any-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where
7 ····T:·'static·+·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/any.rs.html#139">Source</a><a·href="#method.type_id"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/any/trait.Any.html#tymethod.type_id"·class="fn">type_id</a>(&amp;self)·-&gt;·<a·class="struct"·href="../core/any/struct.TypeId.html"·title="struct·core::any::TypeId">TypeId</a></h4></section></summary><div·class='docblock'>Gets·the·<code>TypeId</code>·of·<code>self</code>.·<a·href="../core/any/trait.Any.html#tymethod.type_id">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Borrow%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/borrow/trait.Borrow.html"·title="trait·core::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where7 ····T:·'static·+·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/any.rs.html#139">Source</a><a·href="#method.type_id"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/any/trait.Any.html#tymethod.type_id"·class="fn">type_id</a>(&amp;self)·-&gt;·<a·class="struct"·href="../core/any/struct.TypeId.html"·title="struct·core::any::TypeId">TypeId</a></h4></section></summary><div·class='docblock'>Gets·the·<code>TypeId</code>·of·<code>self</code>.·<a·href="../core/any/trait.Any.html#tymethod.type_id">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Borrow%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/borrow/trait.Borrow.html"·title="trait·core::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where
8 ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#211">Source</a><a·href="#method.borrow"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow"·class="fn">borrow</a>(&amp;self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;T</a></h4></section></summary><div·class='docblock'>Immutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-BorrowMut%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/borrow/trait.BorrowMut.html"·title="trait·core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where8 ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#211">Source</a><a·href="#method.borrow"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow"·class="fn">borrow</a>(&amp;self)·-&gt;·<a·class="primitive"·href="../std/primitive.reference.html">&amp;T</a></h4></section></summary><div·class='docblock'>Immutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-BorrowMut%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/borrow/trait.BorrowMut.html"·title="trait·core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where
9 ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#218">Source</a><a·href="#method.borrow_mut"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"·class="fn">borrow_mut</a>(&amp;mut·self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;mut·T</a></h4></section></summary><div·class='docblock'>Mutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-CloneToUninit-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#273">Source</a><a·href="#impl-CloneToUninit-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where9 ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#218">Source</a><a·href="#method.borrow_mut"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"·class="fn">borrow_mut</a>(&amp;mut·self)·-&gt;·<a·class="primitive"·href="../std/primitive.reference.html">&amp;mut·T</a></h4></section></summary><div·class='docblock'>Mutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-CloneToUninit-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#273">Source</a><a·href="#impl-CloneToUninit-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where
10 ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#275">Source</a><a·href="#method.clone_to_uninit"·class="anchor">§</a><h4·class="code-header">unsafe·fn·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit"·class="fn">clone_to_uninit</a>(&amp;self,·dst:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.pointer.html">*mut·</a><a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.u8.html">u8</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>clone_to_uninit</code>)</span></div></span><div·class='docblock'>Performs·copy-assignment·from·<code>self</code>·to·<code>dst</code>.·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-From%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#765">Source</a><a·href="#impl-From%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·T</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#768">Source</a><a·href="#method.from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>10 ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#275">Source</a><a·href="#method.clone_to_uninit"·class="anchor">§</a><h4·class="code-header">unsafe·fn·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit"·class="fn">clone_to_uninit</a>(&amp;self,·dst:·<a·class="primitive"·href="../std/primitive.pointer.html">*mut·</a><a·class="primitive"·href="../std/primitive.u8.html">u8</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>clone_to_uninit</code>)</span></div></span><div·class='docblock'>Performs·copy-assignment·from·<code>self</code>·to·<code>dst</code>.·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-From%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#765">Source</a><a·href="#impl-From%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·T</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#768">Source</a><a·href="#method.from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>
11 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where11 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where
12 ····U:·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#758">Source</a><a·href="#method.into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>12 ····U:·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#758">Source</a><a·href="#method.into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>
13 <p>That·is,·this·conversion·is·whatever·the·implementation·of13 <p>That·is,·this·conversion·is·whatever·the·implementation·of
14 <code><a·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>14 <code><a·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>
15 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#82-84">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../alloc/borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where15 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#82-84">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../alloc/borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where
16 ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#86">Source</a><a·href="#associatedtype.Owned"·class="anchor">§</a><h4·class="code-header">type·<a·href="../alloc/borrow/trait.ToOwned.html#associatedtype.Owned"·class="associatedtype">Owned</a>·=·T</h4></section></summary><div·class='docblock'>The·resulting·type·after·obtaining·ownership.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.to_owned"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#87">Source</a><a·href="#method.to_owned"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned"·class="fn">to_owned</a>(&amp;self)·-&gt;·T</h4></section></summary><div·class='docblock'>Creates·owned·data·from·borrowed·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#91">Source</a><a·href="#method.clone_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into"·class="fn">clone_into</a>(&amp;self,·target:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#805-807">Source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where16 ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#86">Source</a><a·href="#associatedtype.Owned"·class="anchor">§</a><h4·class="code-header">type·<a·href="../alloc/borrow/trait.ToOwned.html#associatedtype.Owned"·class="associatedtype">Owned</a>·=·T</h4></section></summary><div·class='docblock'>The·resulting·type·after·obtaining·ownership.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.to_owned"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#87">Source</a><a·href="#method.to_owned"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned"·class="fn">to_owned</a>(&amp;self)·-&gt;·T</h4></section></summary><div·class='docblock'>Creates·owned·data·from·borrowed·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#91">Source</a><a·href="#method.clone_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into"·class="fn">clone_into</a>(&amp;self,·target:·<a·class="primitive"·href="../std/primitive.reference.html">&amp;mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#805-807">Source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where
17 ····U:·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#809">Source</a><a·href="#associatedtype.Error-1"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<a·class="enum"·href="../core/convert/enum.Infallible.html"·title="enum·core::convert::Infallible">Infallible</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#812">Source</a><a·href="#method.try_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryFrom.html#tymethod.try_from"·class="fn">try_from</a>(value:·U)·-&gt;·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;T,·&lt;T·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryInto%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#790-792">Source</a><a·href="#impl-TryInto%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where17 ····U:·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#809">Source</a><a·href="#associatedtype.Error-1"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<a·class="enum"·href="../core/convert/enum.Infallible.html"·title="enum·core::convert::Infallible">Infallible</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#812">Source</a><a·href="#method.try_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryFrom.html#tymethod.try_from"·class="fn">try_from</a>(value:·U)·-&gt;·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;T,·&lt;T·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryInto%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#790-792">Source</a><a·href="#impl-TryInto%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where
18 ····U:·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#794">Source</a><a·href="#associatedtype.Error"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryInto.html#associatedtype.Error"·class="associatedtype">Error</a>·=·&lt;U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#797">Source</a><a·href="#method.try_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryInto.html#tymethod.try_into"·class="fn">try_into</a>(self)·-&gt;·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;U,·&lt;U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>18 ····U:·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#794">Source</a><a·href="#associatedtype.Error"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryInto.html#associatedtype.Error"·class="associatedtype">Error</a>·=·&lt;U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#797">Source</a><a·href="#method.try_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryInto.html#tymethod.try_into"·class="fn">try_into</a>(self)·-&gt;·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;U,·&lt;U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>
46.0 KB
./usr/share/doc/rust-doc/html/test/enum.NamePadding.html
    
Offset 1, 19 lines modifiedOffset 1, 19 lines modified
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="API·documentation·for·the·Rust·`NamePadding`·enum·in·crate·`test`."><title>NamePadding·in·test·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../"·data-static-root-path="../static.files/"·data-current-crate="test"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·enum"><!--[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><a·class="logo-container"·href="../test/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../test/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../test/index.html">test</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»       2025-01-07)»    (built»      from»  a» source»   tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Name<wbr>Padding</a></h2><h3><a·href="#variants">Variants</a></h3><ul·class="block·variant"><li><a·href="#variant.PadNone"·title="PadNone">PadNone</a></li><li><a·href="#variant.PadOnRight"·title="PadOnRight">PadOnRight</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-NamePadding"·title="Clone">Clone</a></li><li><a·href="#impl-Copy-for-NamePadding"·title="Copy">Copy</a></li><li><a·href="#impl-Debug-for-NamePadding"·title="Debug">Debug</a></li><li><a·href="#impl-Eq-for-NamePadding"·title="Eq">Eq</a></li><li><a·href="#impl-Hash-for-NamePadding"·title="Hash">Hash</a></li><li><a·href="#impl-PartialEq-for-NamePadding"·title="PartialEq">PartialEq</a></li><li><a·href="#impl-StructuralPartialEq-for-NamePadding"·title="StructuralPartialEq">StructuralPartialEq</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-NamePadding"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-NamePadding"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-NamePadding"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-NamePadding"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-NamePadding"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-NamePadding"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2·class="in-crate"><a·href="index.html">In·crate·test</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">test</a></span><h1>Enum·<span·class="enum">NamePadding</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/test/types.rs.html#31-34">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·enum·NamePadding·{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="API·documentation·for·the·Rust·`NamePadding`·enum·in·crate·`test`."><title>NamePadding·in·test·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../"·data-static-root-path="../static.files/"·data-current-crate="test"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·enum"><!--[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><a·class="logo-container"·href="../test/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../test/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../test/index.html">test</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»       2025-01-07)»    (built»      from»  a» source»   tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Name<wbr>Padding</a></h2><h3><a·href="#variants">Variants</a></h3><ul·class="block·variant"><li><a·href="#variant.PadNone"·title="PadNone">PadNone</a></li><li><a·href="#variant.PadOnRight"·title="PadOnRight">PadOnRight</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-NamePadding"·title="Clone">Clone</a></li><li><a·href="#impl-Copy-for-NamePadding"·title="Copy">Copy</a></li><li><a·href="#impl-Debug-for-NamePadding"·title="Debug">Debug</a></li><li><a·href="#impl-Eq-for-NamePadding"·title="Eq">Eq</a></li><li><a·href="#impl-Hash-for-NamePadding"·title="Hash">Hash</a></li><li><a·href="#impl-PartialEq-for-NamePadding"·title="PartialEq">PartialEq</a></li><li><a·href="#impl-StructuralPartialEq-for-NamePadding"·title="StructuralPartialEq">StructuralPartialEq</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-NamePadding"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-NamePadding"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-NamePadding"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-NamePadding"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-NamePadding"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-NamePadding"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2·class="in-crate"><a·href="index.html">In·crate·test</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">test</a></span><h1>Enum·<span·class="enum">NamePadding</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/test/types.rs.html#31-34">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·enum·NamePadding·{
2 ····PadNone,2 ····PadNone,
3 ····PadOnRight,3 ····PadOnRight,
4 }</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><h2·id="variants"·class="variants·section-header">Variants<a·href="#variants"·class="anchor">§</a></h2><div·class="variants"><section·id="variant.PadNone"·class="variant"><a·href="#variant.PadNone"·class="anchor">§</a><h3·class="code-header">PadNone</h3></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><section·id="variant.PadOnRight"·class="variant"><a·href="#variant.PadOnRight"·class="anchor">§</a><h3·class="code-header">PadOnRight</h3></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-NamePadding"·class="impl"><a·class="src·rightside"·href="../src/test/types.rs.html#30">Source</a><a·href="#impl-Clone-for-NamePadding"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="enum"·href="enum.NamePadding.html"·title="enum·test::NamePadding">NamePadding</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone"·class="method·trait-impl"><a·class="src·rightside"·href="../src/test/types.rs.html#30">Source</a><a·href="#method.clone"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/clone/trait.Clone.html#tymethod.clone"·class="fn">clone</a>(&amp;self)·-&gt;·<a·class="enum"·href="enum.NamePadding.html"·title="enum·test::NamePadding">NamePadding</a></h4></section></summary><div·class='docblock'>Returns·a·copy·of·the·value.·<a·href="../core/clone/trait.Clone.html#tymethod.clone">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_from"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../src/core/clone.rs.html#174">Source</a></span><a·href="#method.clone_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/clone/trait.Clone.html#method.clone_from"·class="fn">clone_from</a>(&amp;mut·self,·source:·&amp;Self)</h4></section></summary><div·class='docblock'>Performs·copy-assignment·from·<code>source</code>.·<a·href="../core/clone/trait.Clone.html#method.clone_from">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-NamePadding"·class="impl"><a·class="src·rightside"·href="../src/test/types.rs.html#30">Source</a><a·href="#impl-Debug-for-NamePadding"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/fmt/trait.Debug.html"·title="trait·core::fmt::Debug">Debug</a>·for·<a·class="enum"·href="enum.NamePadding.html"·title="enum·test::NamePadding">NamePadding</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../src/test/types.rs.html#30">Source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="../core/fmt/struct.Formatter.html"·title="struct·core::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="type"·href="../core/fmt/type.Result.html"·title="type·core::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Hash-for-NamePadding"·class="impl"><a·class="src·rightside"·href="../src/test/types.rs.html#30">Source</a><a·href="#impl-Hash-for-NamePadding"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/hash/trait.Hash.html"·title="trait·core::hash::Hash">Hash</a>·for·<a·class="enum"·href="enum.NamePadding.html"·title="enum·test::NamePadding">NamePadding</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.hash"·class="method·trait-impl"><a·class="src·rightside"·href="../src/test/types.rs.html#30">Source</a><a·href="#method.hash"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/hash/trait.Hash.html#tymethod.hash"·class="fn">hash</a>&lt;__H:·<a·class="trait"·href="../core/hash/trait.Hasher.html"·title="trait·core::hash::Hasher">Hasher</a>&gt;(&amp;self,·state:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;mut·__H</a>)</h4></section></summary><div·class='docblock'>Feeds·this·value·into·the·given·<a·href="../core/hash/trait.Hasher.html"·title="trait·core::hash::Hasher"><code>Hasher</code></a>[·...·truncated·by·diffoscope;·len:·622,·SHA:·86d500d551e870425dd50040dfb8a1fd0bd4f062fa9adfd07ede83304c4eb0ba·...·]/std/primitive.reference.html">&amp;mut·H</a>)<div·class="where">where4 }</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><h2·id="variants"·class="variants·section-header">Variants<a·href="#variants"·class="anchor">§</a></h2><div·class="variants"><section·id="variant.PadNone"·class="variant"><a·href="#variant.PadNone"·class="anchor">§</a><h3·class="code-header">PadNone</h3></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><section·id="variant.PadOnRight"·class="variant"><a·href="#variant.PadOnRight"·class="anchor">§</a><h3·class="code-header">PadOnRight</h3></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-NamePadding"·class="impl"><a·class="src·rightside"·href="../src/test/types.rs.html#30">Source</a><a·href="#impl-Clone-for-NamePadding"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="enum"·href="enum.NamePadding.html"·title="enum·test::NamePadding">NamePadding</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone"·class="method·trait-impl"><a·class="src·rightside"·href="../src/test/types.rs.html#30">Source</a><a·href="#method.clone"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/clone/trait.Clone.html#tymethod.clone"·class="fn">clone</a>(&amp;self)·-&gt;·<a·class="enum"·href="enum.NamePadding.html"·title="enum·test::NamePadding">NamePadding</a></h4></section></summary><div·class='docblock'>Returns·a·copy·of·the·value.·<a·href="../core/clone/trait.Clone.html#tymethod.clone">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_from"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../src/core/clone.rs.html#174">Source</a></span><a·href="#method.clone_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/clone/trait.Clone.html#method.clone_from"·class="fn">clone_from</a>(&amp;mut·self,·source:·&amp;Self)</h4></section></summary><div·class='docblock'>Performs·copy-assignment·from·<code>source</code>.·<a·href="../core/clone/trait.Clone.html#method.clone_from">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-NamePadding"·class="impl"><a·class="src·rightside"·href="../src/test/types.rs.html#30">Source</a><a·href="#impl-Debug-for-NamePadding"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/fmt/trait.Debug.html"·title="trait·core::fmt::Debug">Debug</a>·for·<a·class="enum"·href="enum.NamePadding.html"·title="enum·test::NamePadding">NamePadding</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../src/test/types.rs.html#30">Source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="../core/fmt/struct.Formatter.html"·title="struct·core::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="type"·href="../core/fmt/type.Result.html"·title="type·core::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Hash-for-NamePadding"·class="impl"><a·class="src·rightside"·href="../src/test/types.rs.html#30">Source</a><a·href="#impl-Hash-for-NamePadding"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/hash/trait.Hash.html"·title="trait·core::hash::Hash">Hash</a>·for·<a·class="enum"·href="enum.NamePadding.html"·title="enum·test::NamePadding">NamePadding</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.hash"·class="method·trait-impl"><a·class="src·rightside"·href="../src/test/types.rs.html#30">Source</a><a·href="#method.hash"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/hash/trait.Hash.html#tymethod.hash"·class="fn">hash</a>&lt;__H:·<a·class="trait"·href="../core/hash/trait.Hasher.html"·title="trait·core::hash::Hasher">Hasher</a>&gt;(&amp;self,·state:·<a·class="primitive"·href="../std/primitive.reference.html">&amp;mut·__H</a>)</h4></section></summary><div·class='docblock'>Feeds·this·value·into·the·given·<a·href="../core/hash/trait.Hasher.html"·title="trait·core::hash::Hasher"><code>Hasher</code></a>.·<a·href="../core/hash/trait.[·...·truncated·by·diffoscope;·len:·562,·SHA:·d7d970dc7ca4d445031b58b2bf8043bc9bb50f706236fb0b2b8e0be7d16a559b·...·]/std/primitive.reference.html">&amp;mut·H</a>)<div·class="where">where
5 ····H:·<a·class="trait"·href="../core/hash/trait.Hasher.html"·title="trait·core::hash::Hasher">Hasher</a>,5 ····H:·<a·class="trait"·href="../core/hash/trait.Hasher.html"·title="trait·core::hash::Hasher">Hasher</a>,
6 ····Self:·<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Feeds·a·slice·of·this·type·into·the·given·<a·href="../core/hash/trait.Hasher.html"·title="trait·core::hash::Hasher"><code>Hasher</code></a>.·<a·href="../core/hash/trait.Hash.html#method.hash_slice">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-PartialEq-for-NamePadding"·class="impl"><a·class="src·rightside"·href="../src/test/types.rs.html#30">Source</a><a·href="#impl-PartialEq-for-NamePadding"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/cmp/trait.PartialEq.html"·title="trait·core::cmp::PartialEq">PartialEq</a>·for·<a·class="enum"·href="enum.NamePadding.html"·title="enum·test::NamePadding">NamePadding</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.eq"·class="method·trait-impl"><a·class="src·rightside"·href="../src/test/types.rs.html#30">Source</a><a·href="#method.eq"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/cmp/trait.PartialEq.html#tymethod.eq"·class="fn">eq</a>(&amp;self,·other:·&amp;<a·class="enum"·href="enum.NamePadding.html"·title="enum·test::NamePadding">NamePadding</a>)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>self</code>·and·<code>other</code>·values·to·be·equal,·and·is·used·by·<code>==</code>.</div></details><details·class="toggle·me[·...·truncated·by·diffoscope;·len:·569,·SHA:·46af6fc173633dd332a95fa12f6d5611eaae7b1cebfd0290c8ac91c63e1ef230·...·]/std/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>!=</code>.·The·default·implementation·is·almost·always·sufficient,6 ····Self:·<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Feeds·a·slice·of·this·type·into·the·given·<a·href="../core/hash/trait.Hasher.html"·title="trait·core::hash::Hasher"><code>Hasher</code></a>.·<a·href="../core/hash/trait.Hash.html#method.hash_slice">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-PartialEq-for-NamePadding"·class="impl"><a·class="src·rightside"·href="../src/test/types.rs.html#30">Source</a><a·href="#impl-PartialEq-for-NamePadding"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/cmp/trait.PartialEq.html"·title="trait·core::cmp::PartialEq">PartialEq</a>·for·<a·class="enum"·href="enum.NamePadding.html"·title="enum·test::NamePadding">NamePadding</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.eq"·class="method·trait-impl"><a·class="src·rightside"·href="../src/test/types.rs.html#30">Source</a><a·href="#method.eq"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/cmp/trait.PartialEq.html#tymethod.eq"·class="fn">eq</a>(&amp;self,·other:·&amp;<a·class="enum"·href="enum.NamePadding.html"·title="enum·test::NamePadding">NamePadding</a>)·-&gt;·<a·class="primitive"·href="../std/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>self</code>·and·<code>other</code>·values·to·be·equal,·and·is·used·by·<code>==</code>.</div></details><details·class="toggle·method-toggle"·open><summary><se[·...·truncated·by·diffoscope;·len:·479,·SHA:·d4b4d4ccd2b893fe5d940d56f58f8a31544ac9db5f6dc1b365b30aa149717efb·...·]/std/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>!=</code>.·The·default·implementation·is·almost·always·sufficient,
7 and·should·not·be·overridden·without·very·good·reason.</div></details></div></details><section·id="impl-Copy-for-NamePadding"·class="impl"><a·class="src·rightside"·href="../src/test/types.rs.html#30">Source</a><a·href="#impl-Copy-for-NamePadding"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Copy.html"·title="trait·core::marker::Copy">Copy</a>·for·<a·class="enum"·href="enum.NamePadding.html"·title="enum·test::NamePadding">NamePadding</a></h3></section><section·id="impl-Eq-for-NamePadding"·class="impl"><a·class="src·rightside"·href="../src/test/types.rs.html#30">Source</a><a·href="#impl-Eq-for-NamePadding"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/cmp/trait.Eq.html"·title="trait·core::cmp::Eq">Eq</a>·for·<a·class="enum"·href="enum.NamePadding.html"·title="enum·test::NamePadding">NamePadding</a></h3></section><section·id="impl-StructuralPartialEq-for-NamePadding"·class="impl"><a·class="src·rightside"·href="../src/test/types.rs.html#30">Source</a><a·href="#impl-StructuralPartialEq-for-NamePadding"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.StructuralPartialEq.html"·title="trait·core::marker::StructuralPartialEq">StructuralPartialEq</a>·for·<a·class="enum"·href="enum.NamePadding.html"·title="enum·test::NamePadding">NamePadding</a></h3></section></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-NamePadding"·class="impl"><a·href="#impl-Freeze-for-NamePadding"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="enum"·href="enum.NamePadding.html"·title="enum·test::NamePadding">NamePadding</a></h3></section><section·id="impl-RefUnwindSafe-for-NamePadding"·class="impl"><a·href="#impl-RefUnwindSafe-for-NamePadding"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="enum"·href="enum.NamePadding.html"·title="enum·test::NamePadding">NamePadding</a></h3></section><section·id="impl-Send-for-NamePadding"·class="impl"><a·href="#impl-Send-for-NamePadding"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="enum"·href="enum.NamePadding.html"·title="enum·test::NamePadding">NamePadding</a></h3></section><section·id="impl-Sync-for-NamePadding"·class="impl"><a·href="#impl-Sync-for-NamePadding"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="enum"·href="enum.NamePadding.html"·title="enum·test::NamePadding">NamePadding</a></h3></section><section·id="impl-Unpin-for-NamePadding"·class="impl"><a·href="#impl-Unpin-for-NamePadding"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="enum"·href="enum.NamePadding.html"·title="enum·test::NamePadding">NamePadding</a></h3></section><section·id="impl-UnwindSafe-for-NamePadding"·class="impl"><a·href="#impl-UnwindSafe-for-NamePadding"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="enum"·href="enum.NamePadding.html"·title="enum·test::NamePadding">NamePadding</a></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementations<a·href="#blanket-implementations"·class="anchor">§</a></h2><div·id="blanket-implementations-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-Any-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/any.rs.html#138">Source</a><a·href="#impl-Any-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where7 and·should·not·be·overridden·without·very·good·reason.</div></details></div></details><section·id="impl-Copy-for-NamePadding"·class="impl"><a·class="src·rightside"·href="../src/test/types.rs.html#30">Source</a><a·href="#impl-Copy-for-NamePadding"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Copy.html"·title="trait·core::marker::Copy">Copy</a>·for·<a·class="enum"·href="enum.NamePadding.html"·title="enum·test::NamePadding">NamePadding</a></h3></section><section·id="impl-Eq-for-NamePadding"·class="impl"><a·class="src·rightside"·href="../src/test/types.rs.html#30">Source</a><a·href="#impl-Eq-for-NamePadding"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/cmp/trait.Eq.html"·title="trait·core::cmp::Eq">Eq</a>·for·<a·class="enum"·href="enum.NamePadding.html"·title="enum·test::NamePadding">NamePadding</a></h3></section><section·id="impl-StructuralPartialEq-for-NamePadding"·class="impl"><a·class="src·rightside"·href="../src/test/types.rs.html#30">Source</a><a·href="#impl-StructuralPartialEq-for-NamePadding"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.StructuralPartialEq.html"·title="trait·core::marker::StructuralPartialEq">StructuralPartialEq</a>·for·<a·class="enum"·href="enum.NamePadding.html"·title="enum·test::NamePadding">NamePadding</a></h3></section></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-NamePadding"·class="impl"><a·href="#impl-Freeze-for-NamePadding"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="enum"·href="enum.NamePadding.html"·title="enum·test::NamePadding">NamePadding</a></h3></section><section·id="impl-RefUnwindSafe-for-NamePadding"·class="impl"><a·href="#impl-RefUnwindSafe-for-NamePadding"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="enum"·href="enum.NamePadding.html"·title="enum·test::NamePadding">NamePadding</a></h3></section><section·id="impl-Send-for-NamePadding"·class="impl"><a·href="#impl-Send-for-NamePadding"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="enum"·href="enum.NamePadding.html"·title="enum·test::NamePadding">NamePadding</a></h3></section><section·id="impl-Sync-for-NamePadding"·class="impl"><a·href="#impl-Sync-for-NamePadding"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="enum"·href="enum.NamePadding.html"·title="enum·test::NamePadding">NamePadding</a></h3></section><section·id="impl-Unpin-for-NamePadding"·class="impl"><a·href="#impl-Unpin-for-NamePadding"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="enum"·href="enum.NamePadding.html"·title="enum·test::NamePadding">NamePadding</a></h3></section><section·id="impl-UnwindSafe-for-NamePadding"·class="impl"><a·href="#impl-UnwindSafe-for-NamePadding"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="enum"·href="enum.NamePadding.html"·title="enum·test::NamePadding">NamePadding</a></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementations<a·href="#blanket-implementations"·class="anchor">§</a></h2><div·id="blanket-implementations-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-Any-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/any.rs.html#138">Source</a><a·href="#impl-Any-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where
8 ····T:·'static·+·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/any.rs.html#139">Source</a><a·href="#method.type_id"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/any/trait.Any.html#tymethod.type_id"·class="fn">type_id</a>(&amp;self)·-&gt;·<a·class="struct"·href="../core/any/struct.TypeId.html"·title="struct·core::any::TypeId">TypeId</a></h4></section></summary><div·class='docblock'>Gets·the·<code>TypeId</code>·of·<code>self</code>.·<a·href="../core/any/trait.Any.html#tymethod.type_id">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Borrow%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/borrow/trait.Borrow.html"·title="trait·core::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where8 ····T:·'static·+·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/any.rs.html#139">Source</a><a·href="#method.type_id"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/any/trait.Any.html#tymethod.type_id"·class="fn">type_id</a>(&amp;self)·-&gt;·<a·class="struct"·href="../core/any/struct.TypeId.html"·title="struct·core::any::TypeId">TypeId</a></h4></section></summary><div·class='docblock'>Gets·the·<code>TypeId</code>·of·<code>self</code>.·<a·href="../core/any/trait.Any.html#tymethod.type_id">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Borrow%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/borrow/trait.Borrow.html"·title="trait·core::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where
9 ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#211">Source</a><a·href="#method.borrow"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow"·class="fn">borrow</a>(&amp;self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;T</a></h4></section></summary><div·class='docblock'>Immutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-BorrowMut%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/borrow/trait.BorrowMut.html"·title="trait·core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where9 ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#211">Source</a><a·href="#method.borrow"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow"·class="fn">borrow</a>(&amp;self)·-&gt;·<a·class="primitive"·href="../std/primitive.reference.html">&amp;T</a></h4></section></summary><div·class='docblock'>Immutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-BorrowMut%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/borrow/trait.BorrowMut.html"·title="trait·core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where
10 ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#218">Source</a><a·href="#method.borrow_mut"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"·class="fn">borrow_mut</a>(&amp;mut·self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;mut·T</a></h4></section></summary><div·class='docblock'>Mutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-CloneToUninit-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#273">Source</a><a·href="#impl-CloneToUninit-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where10 ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#218">Source</a><a·href="#method.borrow_mut"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"·class="fn">borrow_mut</a>(&amp;mut·self)·-&gt;·<a·class="primitive"·href="../std/primitive.reference.html">&amp;mut·T</a></h4></section></summary><div·class='docblock'>Mutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-CloneToUninit-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#273">Source</a><a·href="#impl-CloneToUninit-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where
11 ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#275">Source</a><a·href="#method.clone_to_uninit"·class="anchor">§</a><h4·class="code-header">unsafe·fn·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit"·class="fn">clone_to_uninit</a>(&amp;self,·dst:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.pointer.html">*mut·</a><a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.u8.html">u8</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>clone_to_uninit</code>)</span></div></span><div·class='docblock'>Performs·copy-assignment·from·<code>self</code>·to·<code>dst</code>.·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-From%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#765">Source</a><a·href="#impl-From%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·T</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#768">Source</a><a·href="#method.from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>11 ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#275">Source</a><a·href="#method.clone_to_uninit"·class="anchor">§</a><h4·class="code-header">unsafe·fn·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit"·class="fn">clone_to_uninit</a>(&amp;self,·dst:·<a·class="primitive"·href="../std/primitive.pointer.html">*mut·</a><a·class="primitive"·href="../std/primitive.u8.html">u8</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>clone_to_uninit</code>)</span></div></span><div·class='docblock'>Performs·copy-assignment·from·<code>self</code>·to·<code>dst</code>.·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-From%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#765">Source</a><a·href="#impl-From%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·T</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#768">Source</a><a·href="#method.from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>
12 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where12 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where
13 ····U:·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#758">Source</a><a·href="#method.into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>13 ····U:·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#758">Source</a><a·href="#method.into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>
14 <p>That·is,·this·conversion·is·whatever·the·implementation·of14 <p>That·is,·this·conversion·is·whatever·the·implementation·of
15 <code><a·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>15 <code><a·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>
16 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#82-84">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../alloc/borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where16 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#82-84">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../alloc/borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where
17 ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#86">Source</a><a·href="#associatedtype.Owned"·class="anchor">§</a><h4·class="code-header">type·<a·href="../alloc/borrow/trait.ToOwned.html#associatedtype.Owned"·class="associatedtype">Owned</a>·=·T</h4></section></summary><div·class='docblock'>The·resulting·type·after·obtaining·ownership.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.to_owned"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#87">Source</a><a·href="#method.to_owned"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned"·class="fn">to_owned</a>(&amp;self)·-&gt;·T</h4></section></summary><div·class='docblock'>Creates·owned·data·from·borrowed·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#91">Source</a><a·href="#method.clone_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into"·class="fn">clone_into</a>(&amp;self,·target:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#805-807">Source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where17 ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#86">Source</a><a·href="#associatedtype.Owned"·class="anchor">§</a><h4·class="code-header">type·<a·href="../alloc/borrow/trait.ToOwned.html#associatedtype.Owned"·class="associatedtype">Owned</a>·=·T</h4></section></summary><div·class='docblock'>The·resulting·type·after·obtaining·ownership.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.to_owned"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#87">Source</a><a·href="#method.to_owned"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned"·class="fn">to_owned</a>(&amp;self)·-&gt;·T</h4></section></summary><div·class='docblock'>Creates·owned·data·from·borrowed·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#91">Source</a><a·href="#method.clone_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into"·class="fn">clone_into</a>(&amp;self,·target:·<a·class="primitive"·href="../std/primitive.reference.html">&amp;mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#805-807">Source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where
18 ····U:·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#809">Source</a><a·href="#associatedtype.Error-1"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<a·class="enum"·href="../core/convert/enum.Infallible.html"·title="enum·core::convert::Infallible">Infallible</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#812">Source</a><a·href="#method.try_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryFrom.html#tymethod.try_from"·class="fn">try_from</a>(value:·U)·-&gt;·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;T,·&lt;T·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryInto%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#790-792">Source</a><a·href="#impl-TryInto%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where18 ····U:·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#809">Source</a><a·href="#associatedtype.Error-1"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<a·class="enum"·href="../core/convert/enum.Infallible.html"·title="enum·core::convert::Infallible">Infallible</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#812">Source</a><a·href="#method.try_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryFrom.html#tymethod.try_from"·class="fn">try_from</a>(value:·U)·-&gt;·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;T,·&lt;T·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryInto%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#790-792">Source</a><a·href="#impl-TryInto%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where
19 ····U:·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#794">Source</a><a·href="#associatedtype.Error"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryInto.html#associatedtype.Error"·class="associatedtype">Error</a>·=·&lt;U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#797">Source</a><a·href="#method.try_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryInto.html#tymethod.try_into"·class="fn">try_into</a>(self)·-&gt;·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;U,·&lt;U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>19 ····U:·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#794">Source</a><a·href="#associatedtype.Error"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryInto.html#associatedtype.Error"·class="associatedtype">Error</a>·=·&lt;U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#797">Source</a><a·href="#method.try_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryInto.html#tymethod.try_into"·class="fn">try_into</a>(self)·-&gt;·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;U,·&lt;U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>
38.5 KB
./usr/share/doc/rust-doc/html/test/enum.OutputFormat.html
    
Offset 4, 21 lines modifiedOffset 4, 21 lines modified
4 ····Json,4 ····Json,
5 ····Junit,5 ····Junit,
6 }</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Format·of·the·test·results·output</p>6 }</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Format·of·the·test·results·output</p>
7 </div></details><h2·id="variants"·class="variants·section-header">Variants<a·href="#variants"·class="anchor">§</a></h2><div·class="variants"><section·id="variant.Pretty"·class="variant"><a·href="#variant.Pretty"·class="anchor">§</a><h3·class="code-header">Pretty</h3></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><div·class="docblock"><p>Verbose·output</p>7 </div></details><h2·id="variants"·class="variants·section-header">Variants<a·href="#variants"·class="anchor">§</a></h2><div·class="variants"><section·id="variant.Pretty"·class="variant"><a·href="#variant.Pretty"·class="anchor">§</a><h3·class="code-header">Pretty</h3></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><div·class="docblock"><p>Verbose·output</p>
8 </div><section·id="variant.Terse"·class="variant"><a·href="#variant.Terse"·class="anchor">§</a><h3·class="code-header">Terse</h3></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><div·class="docblock"><p>Quiet·output</p>8 </div><section·id="variant.Terse"·class="variant"><a·href="#variant.Terse"·class="anchor">§</a><h3·class="code-header">Terse</h3></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><div·class="docblock"><p>Quiet·output</p>
9 </div><section·id="variant.Json"·class="variant"><a·href="#variant.Json"·class="anchor">§</a><h3·class="code-header">Json</h3></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><div·class="docblock"><p>JSON·output</p>9 </div><section·id="variant.Json"·class="variant"><a·href="#variant.Json"·class="anchor">§</a><h3·class="code-header">Json</h3></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><div·class="docblock"><p>JSON·output</p>
10 </div><section·id="variant.Junit"·class="variant"><a·href="#variant.Junit"·class="anchor">§</a><h3·class="code-header">Junit</h3></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><div·class="docblock"><p>JUnit·output</p>10 </div><section·id="variant.Junit"·class="variant"><a·href="#variant.Junit"·class="anchor">§</a><h3·class="code-header">Junit</h3></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><div·class="docblock"><p>JUnit·output</p>
11 </div></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-OutputFormat"·class="impl"><a·class="src·rightside"·href="../src/test/options.rs.html#28">Source</a><a·href="#impl-Clone-for-OutputFormat"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="enum"·href="enum.OutputFormat.html"·title="enum·test::OutputFormat">OutputFormat</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone"·class="method·trait-impl"><a·class="src·rightside"·href="../src/test/options.rs.html#28">Source</a><a·href="#method.clone"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/clone/trait.Clone.html#tymethod.clone"·class="fn">clone</a>(&amp;self)·-&gt;·<a·class="enum"·href="enum.OutputFormat.html"·title="enum·test::OutputFormat">OutputFormat</a></h4></section></summary><div·class='docblock'>Returns·a·copy·of·the·value.·<a·href="../core/clone/trait.Clone.html#tymethod.clone">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_from"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../src/core/clone.rs.html#174">Source</a></span><a·href="#method.clone_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/clone/trait.Clone.html#method.clone_from"·class="fn">clone_from</a>(&amp;mut·self,·source:·&amp;Self)</h4></section></summary><div·class='docblock'>Performs·copy-assignment·from·<code>source</code>.·<a·href="../core/clone/trait.Clone.html#method.clone_from">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-OutputFormat"·class="impl"><a·class="src·rightside"·href="../src/test/options.rs.html#28">Source</a><a·href="#impl-Debug-for-OutputFormat"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/fmt/trait.Debug.html"·title="trait·core::fmt::Debug">Debug</a>·for·<a·class="enum"·href="enum.OutputFormat.html"·title="enum·test::OutputFormat">OutputFormat</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../src/test/options.rs.html#28">Source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="../core/fmt/struct.Formatter.html"·title="struct·core::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="type"·href="../core/fmt/type.Result.html"·title="type·core::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Default-for-OutputFormat"·class="impl"><a·class="src·rightside"·href="../src/test/options.rs.html#28">Source</a><a·href="#impl-Default-for-OutputFormat"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·for·<a·class="enum"·href="enum.OutputFormat.html"·title="enum·test::OutputFormat">OutputFormat</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.default"·class="method·trait-impl"><a·class="src·rightside"·href="../src/test/options.rs.html#28">Source</a><a·href="#method.default"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/default/trait.Default.html#tymethod.default"·class="fn">default</a>()·-&gt;·<a·class="enum"·href="enum.OutputFormat.html"·title="enum·test::OutputFormat">OutputFormat</a></h4></section></summary><div·class='docblock'>Returns·the·“default·value”·for·a·type.·<a·href="../core/default/trait.Default.html#tymethod.default">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-PartialEq-for-OutputFormat"·class="impl"><a·class="src·rightside"·href="../src/test/options.rs.html#28">Source</a><a·href="#impl-PartialEq-for-OutputFormat"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/cmp/trait.PartialEq.html"·title="trait·core::cmp::PartialEq">PartialEq</a>·for·<a·class="enum"·href="enum.OutputFormat.html"·title="enum·test::OutputFormat">OutputFormat</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.eq"·class="method·trait-impl"><a·class="src·rightside"·href="../src/test/options.rs.html#28">Source</a><a·href="#method.eq"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/cmp/trait.PartialEq.html#tymethod.eq"·class="fn">eq</a>(&amp;self,·other:·&amp;<a·class="enum"·href="enum.OutputFormat.html"·title="enum·test::OutputFormat">OutputFormat</a>)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>self</code>·and·<code>other</code>·values·to·be·equal,·and·is·used·by·<code>==</code>.</div></details><details·class="toggle·me[·...·truncated·by·diffoscope;·len:·569,·SHA:·46af6fc173633dd332a95fa12f6d5611eaae7b1cebfd0290c8ac91c63e1ef230·...·]/std/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>!=</code>.·The·default·implementation·is·almost·always·sufficient,11 </div></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-OutputFormat"·class="impl"><a·class="src·rightside"·href="../src/test/options.rs.html#28">Source</a><a·href="#impl-Clone-for-OutputFormat"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="enum"·href="enum.OutputFormat.html"·title="enum·test::OutputFormat">OutputFormat</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone"·class="method·trait-impl"><a·class="src·rightside"·href="../src/test/options.rs.html#28">Source</a><a·href="#method.clone"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/clone/trait.Clone.html#tymethod.clone"·class="fn">clone</a>(&amp;self)·-&gt;·<a·class="enum"·href="enum.OutputFormat.html"·title="enum·test::OutputFormat">OutputFormat</a></h4></section></summary><div·class='docblock'>Returns·a·copy·of·the·value.·<a·href="../core/clone/trait.Clone.html#tymethod.clone">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_from"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../src/core/clone.rs.html#174">Source</a></span><a·href="#method.clone_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/clone/trait.Clone.html#method.clone_from"·class="fn">clone_from</a>(&amp;mut·self,·source:·&amp;Self)</h4></section></summary><div·class='docblock'>Performs·copy-assignment·from·<code>source</code>.·<a·href="../core/clone/trait.Clone.html#method.clone_from">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-OutputFormat"·class="impl"><a·class="src·rightside"·href="../src/test/options.rs.html#28">Source</a><a·href="#impl-Debug-for-OutputFormat"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/fmt/trait.Debug.html"·title="trait·core::fmt::Debug">Debug</a>·for·<a·class="enum"·href="enum.OutputFormat.html"·title="enum·test::OutputFormat">OutputFormat</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../src/test/options.rs.html#28">Source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="../core/fmt/struct.Formatter.html"·title="struct·core::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="type"·href="../core/fmt/type.Result.html"·title="type·core::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Default-for-OutputFormat"·class="impl"><a·class="src·rightside"·href="../src/test/options.rs.html#28">Source</a><a·href="#impl-Default-for-OutputFormat"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·for·<a·class="enum"·href="enum.OutputFormat.html"·title="enum·test::OutputFormat">OutputFormat</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.default"·class="method·trait-impl"><a·class="src·rightside"·href="../src/test/options.rs.html#28">Source</a><a·href="#method.default"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/default/trait.Default.html#tymethod.default"·class="fn">default</a>()·-&gt;·<a·class="enum"·href="enum.OutputFormat.html"·title="enum·test::OutputFormat">OutputFormat</a></h4></section></summary><div·class='docblock'>Returns·the·“default·value”·for·a·type.·<a·href="../core/default/trait.Default.html#tymethod.default">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-PartialEq-for-OutputFormat"·class="impl"><a·class="src·rightside"·href="../src/test/options.rs.html#28">Source</a><a·href="#impl-PartialEq-for-OutputFormat"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/cmp/trait.PartialEq.html"·title="trait·core::cmp::PartialEq">PartialEq</a>·for·<a·class="enum"·href="enum.OutputFormat.html"·title="enum·test::OutputFormat">OutputFormat</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.eq"·class="method·trait-impl"><a·class="src·rightside"·href="../src/test/options.rs.html#28">Source</a><a·href="#method.eq"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/cmp/trait.PartialEq.html#tymethod.eq"·class="fn">eq</a>(&amp;self,·other:·&amp;<a·class="enum"·href="enum.OutputFormat.html"·title="enum·test::OutputFormat">OutputFormat</a>)·-&gt;·<a·class="primitive"·href="../std/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>self</code>·and·<code>other</code>·values·to·be·equal,·and·is·used·by·<code>==</code>.</div></details><details·class="toggle·method-toggle"·open><summary><se[·...·truncated·by·diffoscope;·len:·479,·SHA:·d4b4d4ccd2b893fe5d940d56f58f8a31544ac9db5f6dc1b365b30aa149717efb·...·]/std/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>!=</code>.·The·default·implementation·is·almost·always·sufficient,
12 and·should·not·be·overridden·without·very·good·reason.</div></details></div></details><section·id="impl-Copy-for-OutputFormat"·class="impl"><a·class="src·rightside"·href="../src/test/options.rs.html#28">Source</a><a·href="#impl-Copy-for-OutputFormat"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Copy.html"·title="trait·core::marker::Copy">Copy</a>·for·<a·class="enum"·href="enum.OutputFormat.html"·title="enum·test::OutputFormat">OutputFormat</a></h3></section><section·id="impl-Eq-for-OutputFormat"·class="impl"><a·class="src·rightside"·href="../src/test/options.rs.html#28">Source</a><a·href="#impl-Eq-for-OutputFormat"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/cmp/trait.Eq.html"·title="trait·core::cmp::Eq">Eq</a>·for·<a·class="enum"·href="enum.OutputFormat.html"·title="enum·test::OutputFormat">OutputFormat</a></h3></section><section·id="impl-StructuralPartialEq-for-OutputFormat"·class="impl"><a·class="src·rightside"·href="../src/test/options.rs.html#28">Source</a><a·href="#impl-StructuralPartialEq-for-OutputFormat"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.StructuralPartialEq.html"·title="trait·core::marker::StructuralPartialEq">StructuralPartialEq</a>·for·<a·class="enum"·href="enum.OutputFormat.html"·title="enum·test::OutputFormat">OutputFormat</a></h3></section></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-OutputFormat"·class="impl"><a·href="#impl-Freeze-for-OutputFormat"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="enum"·href="enum.OutputFormat.html"·title="enum·test::OutputFormat">OutputFormat</a></h3></section><section·id="impl-RefUnwindSafe-for-OutputFormat"·class="impl"><a·href="#impl-RefUnwindSafe-for-OutputFormat"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="enum"·href="enum.OutputFormat.html"·title="enum·test::OutputFormat">OutputFormat</a></h3></section><section·id="impl-Send-for-OutputFormat"·class="impl"><a·href="#impl-Send-for-OutputFormat"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="enum"·href="enum.OutputFormat.html"·title="enum·test::OutputFormat">OutputFormat</a></h3></section><section·id="impl-Sync-for-OutputFormat"·class="impl"><a·href="#impl-Sync-for-OutputFormat"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="enum"·href="enum.OutputFormat.html"·title="enum·test::OutputFormat">OutputFormat</a></h3></section><section·id="impl-Unpin-for-OutputFormat"·class="impl"><a·href="#impl-Unpin-for-OutputFormat"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="enum"·href="enum.OutputFormat.html"·title="enum·test::OutputFormat">OutputFormat</a></h3></section><section·id="impl-UnwindSafe-for-OutputFormat"·class="impl"><a·href="#impl-UnwindSafe-for-OutputFormat"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="enum"·href="enum.OutputFormat.html"·title="enum·test::OutputFormat">OutputFormat</a></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementations<a·href="#blanket-implementations"·class="anchor">§</a></h2><div·id="blanket-implementations-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-Any-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/any.rs.html#138">Source</a><a·href="#impl-Any-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where12 and·should·not·be·overridden·without·very·good·reason.</div></details></div></details><section·id="impl-Copy-for-OutputFormat"·class="impl"><a·class="src·rightside"·href="../src/test/options.rs.html#28">Source</a><a·href="#impl-Copy-for-OutputFormat"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Copy.html"·title="trait·core::marker::Copy">Copy</a>·for·<a·class="enum"·href="enum.OutputFormat.html"·title="enum·test::OutputFormat">OutputFormat</a></h3></section><section·id="impl-Eq-for-OutputFormat"·class="impl"><a·class="src·rightside"·href="../src/test/options.rs.html#28">Source</a><a·href="#impl-Eq-for-OutputFormat"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/cmp/trait.Eq.html"·title="trait·core::cmp::Eq">Eq</a>·for·<a·class="enum"·href="enum.OutputFormat.html"·title="enum·test::OutputFormat">OutputFormat</a></h3></section><section·id="impl-StructuralPartialEq-for-OutputFormat"·class="impl"><a·class="src·rightside"·href="../src/test/options.rs.html#28">Source</a><a·href="#impl-StructuralPartialEq-for-OutputFormat"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.StructuralPartialEq.html"·title="trait·core::marker::StructuralPartialEq">StructuralPartialEq</a>·for·<a·class="enum"·href="enum.OutputFormat.html"·title="enum·test::OutputFormat">OutputFormat</a></h3></section></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-OutputFormat"·class="impl"><a·href="#impl-Freeze-for-OutputFormat"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="enum"·href="enum.OutputFormat.html"·title="enum·test::OutputFormat">OutputFormat</a></h3></section><section·id="impl-RefUnwindSafe-for-OutputFormat"·class="impl"><a·href="#impl-RefUnwindSafe-for-OutputFormat"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="enum"·href="enum.OutputFormat.html"·title="enum·test::OutputFormat">OutputFormat</a></h3></section><section·id="impl-Send-for-OutputFormat"·class="impl"><a·href="#impl-Send-for-OutputFormat"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="enum"·href="enum.OutputFormat.html"·title="enum·test::OutputFormat">OutputFormat</a></h3></section><section·id="impl-Sync-for-OutputFormat"·class="impl"><a·href="#impl-Sync-for-OutputFormat"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="enum"·href="enum.OutputFormat.html"·title="enum·test::OutputFormat">OutputFormat</a></h3></section><section·id="impl-Unpin-for-OutputFormat"·class="impl"><a·href="#impl-Unpin-for-OutputFormat"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="enum"·href="enum.OutputFormat.html"·title="enum·test::OutputFormat">OutputFormat</a></h3></section><section·id="impl-UnwindSafe-for-OutputFormat"·class="impl"><a·href="#impl-UnwindSafe-for-OutputFormat"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="enum"·href="enum.OutputFormat.html"·title="enum·test::OutputFormat">OutputFormat</a></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementations<a·href="#blanket-implementations"·class="anchor">§</a></h2><div·id="blanket-implementations-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-Any-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/any.rs.html#138">Source</a><a·href="#impl-Any-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where
13 ····T:·'static·+·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/any.rs.html#139">Source</a><a·href="#method.type_id"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/any/trait.Any.html#tymethod.type_id"·class="fn">type_id</a>(&amp;self)·-&gt;·<a·class="struct"·href="../core/any/struct.TypeId.html"·title="struct·core::any::TypeId">TypeId</a></h4></section></summary><div·class='docblock'>Gets·the·<code>TypeId</code>·of·<code>self</code>.·<a·href="../core/any/trait.Any.html#tymethod.type_id">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Borrow%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/borrow/trait.Borrow.html"·title="trait·core::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where13 ····T:·'static·+·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/any.rs.html#139">Source</a><a·href="#method.type_id"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/any/trait.Any.html#tymethod.type_id"·class="fn">type_id</a>(&amp;self)·-&gt;·<a·class="struct"·href="../core/any/struct.TypeId.html"·title="struct·core::any::TypeId">TypeId</a></h4></section></summary><div·class='docblock'>Gets·the·<code>TypeId</code>·of·<code>self</code>.·<a·href="../core/any/trait.Any.html#tymethod.type_id">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Borrow%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/borrow/trait.Borrow.html"·title="trait·core::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where
14 ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#211">Source</a><a·href="#method.borrow"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow"·class="fn">borrow</a>(&amp;self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;T</a></h4></section></summary><div·class='docblock'>Immutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-BorrowMut%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/borrow/trait.BorrowMut.html"·title="trait·core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where14 ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#211">Source</a><a·href="#method.borrow"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow"·class="fn">borrow</a>(&amp;self)·-&gt;·<a·class="primitive"·href="../std/primitive.reference.html">&amp;T</a></h4></section></summary><div·class='docblock'>Immutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-BorrowMut%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/borrow/trait.BorrowMut.html"·title="trait·core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where
15 ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#218">Source</a><a·href="#method.borrow_mut"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"·class="fn">borrow_mut</a>(&amp;mut·self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;mut·T</a></h4></section></summary><div·class='docblock'>Mutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-CloneToUninit-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#273">Source</a><a·href="#impl-CloneToUninit-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where15 ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#218">Source</a><a·href="#method.borrow_mut"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"·class="fn">borrow_mut</a>(&amp;mut·self)·-&gt;·<a·class="primitive"·href="../std/primitive.reference.html">&amp;mut·T</a></h4></section></summary><div·class='docblock'>Mutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-CloneToUninit-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#273">Source</a><a·href="#impl-CloneToUninit-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where
16 ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#275">Source</a><a·href="#method.clone_to_uninit"·class="anchor">§</a><h4·class="code-header">unsafe·fn·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit"·class="fn">clone_to_uninit</a>(&amp;self,·dst:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.pointer.html">*mut·</a><a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.u8.html">u8</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>clone_to_uninit</code>)</span></div></span><div·class='docblock'>Performs·copy-assignment·from·<code>self</code>·to·<code>dst</code>.·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-From%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#765">Source</a><a·href="#impl-From%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·T</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#768">Source</a><a·href="#method.from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>16 ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#275">Source</a><a·href="#method.clone_to_uninit"·class="anchor">§</a><h4·class="code-header">unsafe·fn·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit"·class="fn">clone_to_uninit</a>(&amp;self,·dst:·<a·class="primitive"·href="../std/primitive.pointer.html">*mut·</a><a·class="primitive"·href="../std/primitive.u8.html">u8</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>clone_to_uninit</code>)</span></div></span><div·class='docblock'>Performs·copy-assignment·from·<code>self</code>·to·<code>dst</code>.·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-From%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#765">Source</a><a·href="#impl-From%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·T</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#768">Source</a><a·href="#method.from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>
17 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where17 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where
18 ····U:·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#758">Source</a><a·href="#method.into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>18 ····U:·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#758">Source</a><a·href="#method.into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>
19 <p>That·is,·this·conversion·is·whatever·the·implementation·of19 <p>That·is,·this·conversion·is·whatever·the·implementation·of
20 <code><a·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>20 <code><a·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>
21 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#82-84">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../alloc/borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where21 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#82-84">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../alloc/borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where
22 ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#86">Source</a><a·href="#associatedtype.Owned"·class="anchor">§</a><h4·class="code-header">type·<a·href="../alloc/borrow/trait.ToOwned.html#associatedtype.Owned"·class="associatedtype">Owned</a>·=·T</h4></section></summary><div·class='docblock'>The·resulting·type·after·obtaining·ownership.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.to_owned"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#87">Source</a><a·href="#method.to_owned"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned"·class="fn">to_owned</a>(&amp;self)·-&gt;·T</h4></section></summary><div·class='docblock'>Creates·owned·data·from·borrowed·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#91">Source</a><a·href="#method.clone_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into"·class="fn">clone_into</a>(&amp;self,·target:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#805-807">Source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where22 ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#86">Source</a><a·href="#associatedtype.Owned"·class="anchor">§</a><h4·class="code-header">type·<a·href="../alloc/borrow/trait.ToOwned.html#associatedtype.Owned"·class="associatedtype">Owned</a>·=·T</h4></section></summary><div·class='docblock'>The·resulting·type·after·obtaining·ownership.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.to_owned"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#87">Source</a><a·href="#method.to_owned"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned"·class="fn">to_owned</a>(&amp;self)·-&gt;·T</h4></section></summary><div·class='docblock'>Creates·owned·data·from·borrowed·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#91">Source</a><a·href="#method.clone_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into"·class="fn">clone_into</a>(&amp;self,·target:·<a·class="primitive"·href="../std/primitive.reference.html">&amp;mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#805-807">Source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where
23 ····U:·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#809">Source</a><a·href="#associatedtype.Error-1"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<a·class="enum"·href="../core/convert/enum.Infallible.html"·title="enum·core::convert::Infallible">Infallible</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#812">Source</a><a·href="#method.try_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryFrom.html#tymethod.try_from"·class="fn">try_from</a>(value:·U)·-&gt;·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;T,·&lt;T·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryInto%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#790-792">Source</a><a·href="#impl-TryInto%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where23 ····U:·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#809">Source</a><a·href="#associatedtype.Error-1"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<a·class="enum"·href="../core/convert/enum.Infallible.html"·title="enum·core::convert::Infallible">Infallible</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#812">Source</a><a·href="#method.try_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryFrom.html#tymethod.try_from"·class="fn">try_from</a>(value:·U)·-&gt;·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;T,·&lt;T·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryInto%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#790-792">Source</a><a·href="#impl-TryInto%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where
24 ····U:·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#794">Source</a><a·href="#associatedtype.Error"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryInto.html#associatedtype.Error"·class="associatedtype">Error</a>·=·&lt;U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#797">Source</a><a·href="#method.try_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryInto.html#tymethod.try_into"·class="fn">try_into</a>(self)·-&gt;·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;U,·&lt;U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>24 ····U:·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#794">Source</a><a·href="#associatedtype.Error"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryInto.html#associatedtype.Error"·class="associatedtype">Error</a>·=·&lt;U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#797">Source</a><a·href="#method.try_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryInto.html#tymethod.try_into"·class="fn">try_into</a>(self)·-&gt;·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;U,·&lt;U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>
41.1 KB
./usr/share/doc/rust-doc/html/test/enum.RunIgnored.html
    
Offset 1, 20 lines modifiedOffset 1, 20 lines modified
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="Whether·ignored·test·should·be·run·or·not"><title>RunIgnored·in·test·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../"·data-static-root-path="../static.files/"·data-current-crate="test"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·enum"><!--[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><a·class="logo-container"·href="../test/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../test/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../test/index.html">test</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»       2025-01-07)»    (built»      from»  a» source»   tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">RunIgnored</a></h2><h3><a·href="#variants">Variants</a></h3><ul·class="block·variant"><li><a·href="#variant.No"·title="No">No</a></li><li><a·href="#variant.Only"·title="Only">Only</a></li><li><a·href="#variant.Yes"·title="Yes">Yes</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-RunIgnored"·title="Clone">Clone</a></li><li><a·href="#impl-Copy-for-RunIgnored"·title="Copy">Copy</a></li><li><a·href="#impl-Debug-for-RunIgnored"·title="Debug">Debug</a></li><li><a·href="#impl-Eq-for-RunIgnored"·title="Eq">Eq</a></li><li><a·href="#impl-PartialEq-for-RunIgnored"·title="PartialEq">PartialEq</a></li><li><a·href="#impl-StructuralPartialEq-for-RunIgnored"·title="StructuralPartialEq">StructuralPartialEq</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-RunIgnored"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-RunIgnored"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-RunIgnored"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-RunIgnored"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-RunIgnored"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-RunIgnored"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2·class="in-crate"><a·href="index.html">In·crate·test</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">test</a></span><h1>Enum·<span·class="enum">RunIgnored</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/test/options.rs.html#43-48">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·enum·RunIgnored·{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="Whether·ignored·test·should·be·run·or·not"><title>RunIgnored·in·test·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../"·data-static-root-path="../static.files/"·data-current-crate="test"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·enum"><!--[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><a·class="logo-container"·href="../test/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../test/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../test/index.html">test</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»       2025-01-07)»    (built»      from»  a» source»   tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">RunIgnored</a></h2><h3><a·href="#variants">Variants</a></h3><ul·class="block·variant"><li><a·href="#variant.No"·title="No">No</a></li><li><a·href="#variant.Only"·title="Only">Only</a></li><li><a·href="#variant.Yes"·title="Yes">Yes</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-RunIgnored"·title="Clone">Clone</a></li><li><a·href="#impl-Copy-for-RunIgnored"·title="Copy">Copy</a></li><li><a·href="#impl-Debug-for-RunIgnored"·title="Debug">Debug</a></li><li><a·href="#impl-Eq-for-RunIgnored"·title="Eq">Eq</a></li><li><a·href="#impl-PartialEq-for-RunIgnored"·title="PartialEq">PartialEq</a></li><li><a·href="#impl-StructuralPartialEq-for-RunIgnored"·title="StructuralPartialEq">StructuralPartialEq</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-RunIgnored"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-RunIgnored"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-RunIgnored"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-RunIgnored"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-RunIgnored"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-RunIgnored"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2·class="in-crate"><a·href="index.html">In·crate·test</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">test</a></span><h1>Enum·<span·class="enum">RunIgnored</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/test/options.rs.html#43-48">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·enum·RunIgnored·{
2 ····Yes,2 ····Yes,
3 ····No,3 ····No,
4 ····Only,4 ····Only,
5 }</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Whether·ignored·test·should·be·run·or·not</p>5 }</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Whether·ignored·test·should·be·run·or·not</p>
6 </div></details><h2·id="variants"·class="variants·section-header">Variants<a·href="#variants"·class="anchor">§</a></h2><div·class="variants"><section·id="variant.Yes"·class="variant"><a·href="#variant.Yes"·class="anchor">§</a><h3·class="code-header">Yes</h3></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><section·id="variant.No"·class="variant"><a·href="#variant.No"·class="anchor">§</a><h3·class="code-header">No</h3></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><section·id="variant.Only"·class="variant"><a·href="#variant.Only"·class="anchor">§</a><h3·class="code-header">Only</h3></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><div·class="docblock"><p>Run·only·ignored·tests</p>6 </div></details><h2·id="variants"·class="variants·section-header">Variants<a·href="#variants"·class="anchor">§</a></h2><div·class="variants"><section·id="variant.Yes"·class="variant"><a·href="#variant.Yes"·class="anchor">§</a><h3·class="code-header">Yes</h3></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><section·id="variant.No"·class="variant"><a·href="#variant.No"·class="anchor">§</a><h3·class="code-header">No</h3></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><section·id="variant.Only"·class="variant"><a·href="#variant.Only"·class="anchor">§</a><h3·class="code-header">Only</h3></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><div·class="docblock"><p>Run·only·ignored·tests</p>
7 </div></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-RunIgnored"·class="impl"><a·class="src·rightside"·href="../src/test/options.rs.html#42">Source</a><a·href="#impl-Clone-for-RunIgnored"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="enum"·href="test/enum.RunIgnored.html"·title="enum·test::test::RunIgnored">RunIgnored</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone"·class="method·trait-impl"><a·class="src·rightside"·href="../src/test/options.rs.html#42">Source</a><a·href="#method.clone"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/clone/trait.Clone.html#tymethod.clone"·class="fn">clone</a>(&amp;self)·-&gt;·<a·class="enum"·href="test/enum.RunIgnored.html"·title="enum·test::test::RunIgnored">RunIgnored</a></h4></section></summary><div·class='docblock'>Returns·a·copy·of·the·value.·<a·href="../core/clone/trait.Clone.html#tymethod.clone">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_from"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../src/core/clone.rs.html#174">Source</a></span><a·href="#method.clone_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/clone/trait.Clone.html#method.clone_from"·class="fn">clone_from</a>(&amp;mut·self,·source:·&amp;Self)</h4></section></summary><div·class='docblock'>Performs·copy-assignment·from·<code>source</code>.·<a·href="../core/clone/trait.Clone.html#method.clone_from">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-RunIgnored"·class="impl"><a·class="src·rightside"·href="../src/test/options.rs.html#42">Source</a><a·href="#impl-Debug-for-RunIgnored"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/fmt/trait.Debug.html"·title="trait·core::fmt::Debug">Debug</a>·for·<a·class="enum"·href="test/enum.RunIgnored.html"·title="enum·test::test::RunIgnored">RunIgnored</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../src/test/options.rs.html#42">Source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="../core/fmt/struct.Formatter.html"·title="struct·core::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="type"·href="../core/fmt/type.Result.html"·title="type·core::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-PartialEq-for-RunIgnored"·class="impl"><a·class="src·rightside"·href="../src/test/options.rs.html#42">Source</a><a·href="#impl-PartialEq-for-RunIgnored"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/cmp/trait.PartialEq.html"·title="trait·core::cmp::PartialEq">PartialEq</a>·for·<a·class="enum"·href="test/enum.RunIgnored.html"·title="enum·test::test::RunIgnored">RunIgnored</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.eq"·class="method·trait-impl"><a·class="src·rightside"·href="../src/test/options.rs.html#42">Source</a><a·href="#method.eq"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/cmp/trait.PartialEq.html#tymethod.eq"·class="fn">eq</a>(&amp;self,·other:·&amp;<a·class="enum"·href="test/enum.RunIgnored.html"·title="enum·test::test::RunIgnored">RunIgnored</a>)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>self</code>·and·<code>other</code>·values·to·be·equal,·and·is·used·by·<code>==</code>.</div></details><details·class="toggle·me[·...·truncated·by·diffoscope;·len:·569,·SHA:·46af6fc173633dd332a95fa12f6d5611eaae7b1cebfd0290c8ac91c63e1ef230·...·]/std/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>!=</code>.·The·default·implementation·is·almost·always·sufficient,7 </div></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-RunIgnored"·class="impl"><a·class="src·rightside"·href="../src/test/options.rs.html#42">Source</a><a·href="#impl-Clone-for-RunIgnored"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="enum"·href="test/enum.RunIgnored.html"·title="enum·test::test::RunIgnored">RunIgnored</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone"·class="method·trait-impl"><a·class="src·rightside"·href="../src/test/options.rs.html#42">Source</a><a·href="#method.clone"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/clone/trait.Clone.html#tymethod.clone"·class="fn">clone</a>(&amp;self)·-&gt;·<a·class="enum"·href="test/enum.RunIgnored.html"·title="enum·test::test::RunIgnored">RunIgnored</a></h4></section></summary><div·class='docblock'>Returns·a·copy·of·the·value.·<a·href="../core/clone/trait.Clone.html#tymethod.clone">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_from"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../src/core/clone.rs.html#174">Source</a></span><a·href="#method.clone_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/clone/trait.Clone.html#method.clone_from"·class="fn">clone_from</a>(&amp;mut·self,·source:·&amp;Self)</h4></section></summary><div·class='docblock'>Performs·copy-assignment·from·<code>source</code>.·<a·href="../core/clone/trait.Clone.html#method.clone_from">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-RunIgnored"·class="impl"><a·class="src·rightside"·href="../src/test/options.rs.html#42">Source</a><a·href="#impl-Debug-for-RunIgnored"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/fmt/trait.Debug.html"·title="trait·core::fmt::Debug">Debug</a>·for·<a·class="enum"·href="test/enum.RunIgnored.html"·title="enum·test::test::RunIgnored">RunIgnored</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../src/test/options.rs.html#42">Source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="../core/fmt/struct.Formatter.html"·title="struct·core::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="type"·href="../core/fmt/type.Result.html"·title="type·core::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-PartialEq-for-RunIgnored"·class="impl"><a·class="src·rightside"·href="../src/test/options.rs.html#42">Source</a><a·href="#impl-PartialEq-for-RunIgnored"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/cmp/trait.PartialEq.html"·title="trait·core::cmp::PartialEq">PartialEq</a>·for·<a·class="enum"·href="test/enum.RunIgnored.html"·title="enum·test::test::RunIgnored">RunIgnored</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.eq"·class="method·trait-impl"><a·class="src·rightside"·href="../src/test/options.rs.html#42">Source</a><a·href="#method.eq"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/cmp/trait.PartialEq.html#tymethod.eq"·class="fn">eq</a>(&amp;self,·other:·&amp;<a·class="enum"·href="test/enum.RunIgnored.html"·title="enum·test::test::RunIgnored">RunIgnored</a>)·-&gt;·<a·class="primitive"·href="../std/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>self</code>·and·<code>other</code>·values·to·be·equal,·and·is·used·by·<code>==</code>.</div></details><details·class="toggle·method-toggle"·open><summary><se[·...·truncated·by·diffoscope;·len:·479,·SHA:·d4b4d4ccd2b893fe5d940d56f58f8a31544ac9db5f6dc1b365b30aa149717efb·...·]/std/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>!=</code>.·The·default·implementation·is·almost·always·sufficient,
8 and·should·not·be·overridden·without·very·good·reason.</div></details></div></details><section·id="impl-Copy-for-RunIgnored"·class="impl"><a·class="src·rightside"·href="../src/test/options.rs.html#42">Source</a><a·href="#impl-Copy-for-RunIgnored"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Copy.html"·title="trait·core::marker::Copy">Copy</a>·for·<a·class="enum"·href="test/enum.RunIgnored.html"·title="enum·test::test::RunIgnored">RunIgnored</a></h3></section><section·id="impl-Eq-for-RunIgnored"·class="impl"><a·class="src·rightside"·href="../src/test/options.rs.html#42">Source</a><a·href="#impl-Eq-for-RunIgnored"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/cmp/trait.Eq.html"·title="trait·core::cmp::Eq">Eq</a>·for·<a·class="enum"·href="test/enum.RunIgnored.html"·title="enum·test::test::RunIgnored">RunIgnored</a></h3></section><section·id="impl-StructuralPartialEq-for-RunIgnored"·class="impl"><a·class="src·rightside"·href="../src/test/options.rs.html#42">Source</a><a·href="#impl-StructuralPartialEq-for-RunIgnored"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.StructuralPartialEq.html"·title="trait·core::marker::StructuralPartialEq">StructuralPartialEq</a>·for·<a·class="enum"·href="test/enum.RunIgnored.html"·title="enum·test::test::RunIgnored">RunIgnored</a></h3></section></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-RunIgnored"·class="impl"><a·href="#impl-Freeze-for-RunIgnored"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="enum"·href="test/enum.RunIgnored.html"·title="enum·test::test::RunIgnored">RunIgnored</a></h3></section><section·id="impl-RefUnwindSafe-for-RunIgnored"·class="impl"><a·href="#impl-RefUnwindSafe-for-RunIgnored"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="enum"·href="test/enum.RunIgnored.html"·title="enum·test::test::RunIgnored">RunIgnored</a></h3></section><section·id="impl-Send-for-RunIgnored"·class="impl"><a·href="#impl-Send-for-RunIgnored"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="enum"·href="test/enum.RunIgnored.html"·title="enum·test::test::RunIgnored">RunIgnored</a></h3></section><section·id="impl-Sync-for-RunIgnored"·class="impl"><a·href="#impl-Sync-for-RunIgnored"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="enum"·href="test/enum.RunIgnored.html"·title="enum·test::test::RunIgnored">RunIgnored</a></h3></section><section·id="impl-Unpin-for-RunIgnored"·class="impl"><a·href="#impl-Unpin-for-RunIgnored"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="enum"·href="test/enum.RunIgnored.html"·title="enum·test::test::RunIgnored">RunIgnored</a></h3></section><section·id="impl-UnwindSafe-for-RunIgnored"·class="impl"><a·href="#impl-UnwindSafe-for-RunIgnored"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="enum"·href="test/enum.RunIgnored.html"·title="enum·test::test::RunIgnored">RunIgnored</a></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementations<a·href="#blanket-implementations"·class="anchor">§</a></h2><div·id="blanket-implementations-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-Any-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/any.rs.html#138">Source</a><a·href="#impl-Any-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where8 and·should·not·be·overridden·without·very·good·reason.</div></details></div></details><section·id="impl-Copy-for-RunIgnored"·class="impl"><a·class="src·rightside"·href="../src/test/options.rs.html#42">Source</a><a·href="#impl-Copy-for-RunIgnored"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Copy.html"·title="trait·core::marker::Copy">Copy</a>·for·<a·class="enum"·href="test/enum.RunIgnored.html"·title="enum·test::test::RunIgnored">RunIgnored</a></h3></section><section·id="impl-Eq-for-RunIgnored"·class="impl"><a·class="src·rightside"·href="../src/test/options.rs.html#42">Source</a><a·href="#impl-Eq-for-RunIgnored"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/cmp/trait.Eq.html"·title="trait·core::cmp::Eq">Eq</a>·for·<a·class="enum"·href="test/enum.RunIgnored.html"·title="enum·test::test::RunIgnored">RunIgnored</a></h3></section><section·id="impl-StructuralPartialEq-for-RunIgnored"·class="impl"><a·class="src·rightside"·href="../src/test/options.rs.html#42">Source</a><a·href="#impl-StructuralPartialEq-for-RunIgnored"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.StructuralPartialEq.html"·title="trait·core::marker::StructuralPartialEq">StructuralPartialEq</a>·for·<a·class="enum"·href="test/enum.RunIgnored.html"·title="enum·test::test::RunIgnored">RunIgnored</a></h3></section></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-RunIgnored"·class="impl"><a·href="#impl-Freeze-for-RunIgnored"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="enum"·href="test/enum.RunIgnored.html"·title="enum·test::test::RunIgnored">RunIgnored</a></h3></section><section·id="impl-RefUnwindSafe-for-RunIgnored"·class="impl"><a·href="#impl-RefUnwindSafe-for-RunIgnored"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="enum"·href="test/enum.RunIgnored.html"·title="enum·test::test::RunIgnored">RunIgnored</a></h3></section><section·id="impl-Send-for-RunIgnored"·class="impl"><a·href="#impl-Send-for-RunIgnored"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="enum"·href="test/enum.RunIgnored.html"·title="enum·test::test::RunIgnored">RunIgnored</a></h3></section><section·id="impl-Sync-for-RunIgnored"·class="impl"><a·href="#impl-Sync-for-RunIgnored"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="enum"·href="test/enum.RunIgnored.html"·title="enum·test::test::RunIgnored">RunIgnored</a></h3></section><section·id="impl-Unpin-for-RunIgnored"·class="impl"><a·href="#impl-Unpin-for-RunIgnored"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="enum"·href="test/enum.RunIgnored.html"·title="enum·test::test::RunIgnored">RunIgnored</a></h3></section><section·id="impl-UnwindSafe-for-RunIgnored"·class="impl"><a·href="#impl-UnwindSafe-for-RunIgnored"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="enum"·href="test/enum.RunIgnored.html"·title="enum·test::test::RunIgnored">RunIgnored</a></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementations<a·href="#blanket-implementations"·class="anchor">§</a></h2><div·id="blanket-implementations-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-Any-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/any.rs.html#138">Source</a><a·href="#impl-Any-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where
9 ····T:·'static·+·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/any.rs.html#139">Source</a><a·href="#method.type_id"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/any/trait.Any.html#tymethod.type_id"·class="fn">type_id</a>(&amp;self)·-&gt;·<a·class="struct"·href="../core/any/struct.TypeId.html"·title="struct·core::any::TypeId">TypeId</a></h4></section></summary><div·class='docblock'>Gets·the·<code>TypeId</code>·of·<code>self</code>.·<a·href="../core/any/trait.Any.html#tymethod.type_id">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Borrow%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/borrow/trait.Borrow.html"·title="trait·core::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where9 ····T:·'static·+·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/any.rs.html#139">Source</a><a·href="#method.type_id"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/any/trait.Any.html#tymethod.type_id"·class="fn">type_id</a>(&amp;self)·-&gt;·<a·class="struct"·href="../core/any/struct.TypeId.html"·title="struct·core::any::TypeId">TypeId</a></h4></section></summary><div·class='docblock'>Gets·the·<code>TypeId</code>·of·<code>self</code>.·<a·href="../core/any/trait.Any.html#tymethod.type_id">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Borrow%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/borrow/trait.Borrow.html"·title="trait·core::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where
10 ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#211">Source</a><a·href="#method.borrow"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow"·class="fn">borrow</a>(&amp;self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;T</a></h4></section></summary><div·class='docblock'>Immutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-BorrowMut%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/borrow/trait.BorrowMut.html"·title="trait·core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where10 ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#211">Source</a><a·href="#method.borrow"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow"·class="fn">borrow</a>(&amp;self)·-&gt;·<a·class="primitive"·href="../std/primitive.reference.html">&amp;T</a></h4></section></summary><div·class='docblock'>Immutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-BorrowMut%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/borrow/trait.BorrowMut.html"·title="trait·core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where
11 ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#218">Source</a><a·href="#method.borrow_mut"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"·class="fn">borrow_mut</a>(&amp;mut·self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;mut·T</a></h4></section></summary><div·class='docblock'>Mutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-CloneToUninit-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#273">Source</a><a·href="#impl-CloneToUninit-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where11 ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#218">Source</a><a·href="#method.borrow_mut"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"·class="fn">borrow_mut</a>(&amp;mut·self)·-&gt;·<a·class="primitive"·href="../std/primitive.reference.html">&amp;mut·T</a></h4></section></summary><div·class='docblock'>Mutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-CloneToUninit-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#273">Source</a><a·href="#impl-CloneToUninit-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where
12 ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#275">Source</a><a·href="#method.clone_to_uninit"·class="anchor">§</a><h4·class="code-header">unsafe·fn·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit"·class="fn">clone_to_uninit</a>(&amp;self,·dst:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.pointer.html">*mut·</a><a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.u8.html">u8</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>clone_to_uninit</code>)</span></div></span><div·class='docblock'>Performs·copy-assignment·from·<code>self</code>·to·<code>dst</code>.·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-From%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#765">Source</a><a·href="#impl-From%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·T</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#768">Source</a><a·href="#method.from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>12 ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#275">Source</a><a·href="#method.clone_to_uninit"·class="anchor">§</a><h4·class="code-header">unsafe·fn·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit"·class="fn">clone_to_uninit</a>(&amp;self,·dst:·<a·class="primitive"·href="../std/primitive.pointer.html">*mut·</a><a·class="primitive"·href="../std/primitive.u8.html">u8</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>clone_to_uninit</code>)</span></div></span><div·class='docblock'>Performs·copy-assignment·from·<code>self</code>·to·<code>dst</code>.·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-From%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#765">Source</a><a·href="#impl-From%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·T</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#768">Source</a><a·href="#method.from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>
13 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where13 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where
14 ····U:·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#758">Source</a><a·href="#method.into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>14 ····U:·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#758">Source</a><a·href="#method.into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>
15 <p>That·is,·this·conversion·is·whatever·the·implementation·of15 <p>That·is,·this·conversion·is·whatever·the·implementation·of
16 <code><a·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>16 <code><a·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>
17 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#82-84">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../alloc/borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where17 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#82-84">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../alloc/borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where
18 ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#86">Source</a><a·href="#associatedtype.Owned"·class="anchor">§</a><h4·class="code-header">type·<a·href="../alloc/borrow/trait.ToOwned.html#associatedtype.Owned"·class="associatedtype">Owned</a>·=·T</h4></section></summary><div·class='docblock'>The·resulting·type·after·obtaining·ownership.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.to_owned"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#87">Source</a><a·href="#method.to_owned"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned"·class="fn">to_owned</a>(&amp;self)·-&gt;·T</h4></section></summary><div·class='docblock'>Creates·owned·data·from·borrowed·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#91">Source</a><a·href="#method.clone_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into"·class="fn">clone_into</a>(&amp;self,·target:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#805-807">Source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where18 ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#86">Source</a><a·href="#associatedtype.Owned"·class="anchor">§</a><h4·class="code-header">type·<a·href="../alloc/borrow/trait.ToOwned.html#associatedtype.Owned"·class="associatedtype">Owned</a>·=·T</h4></section></summary><div·class='docblock'>The·resulting·type·after·obtaining·ownership.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.to_owned"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#87">Source</a><a·href="#method.to_owned"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned"·class="fn">to_owned</a>(&amp;self)·-&gt;·T</h4></section></summary><div·class='docblock'>Creates·owned·data·from·borrowed·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#91">Source</a><a·href="#method.clone_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into"·class="fn">clone_into</a>(&amp;self,·target:·<a·class="primitive"·href="../std/primitive.reference.html">&amp;mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#805-807">Source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where
19 ····U:·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#809">Source</a><a·href="#associatedtype.Error-1"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<a·class="enum"·href="../core/convert/enum.Infallible.html"·title="enum·core::convert::Infallible">Infallible</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#812">Source</a><a·href="#method.try_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryFrom.html#tymethod.try_from"·class="fn">try_from</a>(value:·U)·-&gt;·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;T,·&lt;T·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryInto%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#790-792">Source</a><a·href="#impl-TryInto%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where19 ····U:·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#809">Source</a><a·href="#associatedtype.Error-1"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<a·class="enum"·href="../core/convert/enum.Infallible.html"·title="enum·core::convert::Infallible">Infallible</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#812">Source</a><a·href="#method.try_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryFrom.html#tymethod.try_from"·class="fn">try_from</a>(value:·U)·-&gt;·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;T,·&lt;T·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryInto%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#790-792">Source</a><a·href="#impl-TryInto%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where
20 ····U:·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#794">Source</a><a·href="#associatedtype.Error"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryInto.html#associatedtype.Error"·class="associatedtype">Error</a>·=·&lt;U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#797">Source</a><a·href="#method.try_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryInto.html#tymethod.try_into"·class="fn">try_into</a>(self)·-&gt;·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;U,·&lt;U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>20 ····U:·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#794">Source</a><a·href="#associatedtype.Error"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryInto.html#associatedtype.Error"·class="associatedtype">Error</a>·=·&lt;U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#797">Source</a><a·href="#method.try_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryInto.html#tymethod.try_into"·class="fn">try_into</a>(self)·-&gt;·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;U,·&lt;U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>
47.3 KB
./usr/share/doc/rust-doc/html/test/enum.ShouldPanic.html
    
Offset 1, 21 lines modifiedOffset 1, 21 lines modified
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="Whether·test·is·expected·to·panic·or·not"><title>ShouldPanic·in·test·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../"·data-static-root-path="../static.files/"·data-current-crate="test"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·enum"><!--[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><a·class="logo-container"·href="../test/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../test/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../test/index.html">test</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»       2025-01-07)»    (built»      from»  a» source»   tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Should<wbr>Panic</a></h2><h3><a·href="#variants">Variants</a></h3><ul·class="block·variant"><li><a·href="#variant.No"·title="No">No</a></li><li><a·href="#variant.Yes"·title="Yes">Yes</a></li><li><a·href="#variant.YesWithMessage"·title="YesWithMessage">YesWithMessage</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-ShouldPanic"·title="Clone">Clone</a></li><li><a·href="#impl-Copy-for-ShouldPanic"·title="Copy">Copy</a></li><li><a·href="#impl-Debug-for-ShouldPanic"·title="Debug">Debug</a></li><li><a·href="#impl-Eq-for-ShouldPanic"·title="Eq">Eq</a></li><li><a·href="#impl-Hash-for-ShouldPanic"·title="Hash">Hash</a></li><li><a·href="#impl-PartialEq-for-ShouldPanic"·title="PartialEq">PartialEq</a></li><li><a·href="#impl-StructuralPartialEq-for-ShouldPanic"·title="StructuralPartialEq">StructuralPartialEq</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-ShouldPanic"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-ShouldPanic"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-ShouldPanic"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-ShouldPanic"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-ShouldPanic"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-ShouldPanic"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2·class="in-crate"><a·href="index.html">In·crate·test</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">test</a></span><h1>Enum·<span·class="enum">ShouldPanic</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/test/options.rs.html#12-16">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·enum·ShouldPanic·{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="Whether·test·is·expected·to·panic·or·not"><title>ShouldPanic·in·test·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../"·data-static-root-path="../static.files/"·data-current-crate="test"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·enum"><!--[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><a·class="logo-container"·href="../test/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../test/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../test/index.html">test</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»       2025-01-07)»    (built»      from»  a» source»   tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Should<wbr>Panic</a></h2><h3><a·href="#variants">Variants</a></h3><ul·class="block·variant"><li><a·href="#variant.No"·title="No">No</a></li><li><a·href="#variant.Yes"·title="Yes">Yes</a></li><li><a·href="#variant.YesWithMessage"·title="YesWithMessage">YesWithMessage</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-ShouldPanic"·title="Clone">Clone</a></li><li><a·href="#impl-Copy-for-ShouldPanic"·title="Copy">Copy</a></li><li><a·href="#impl-Debug-for-ShouldPanic"·title="Debug">Debug</a></li><li><a·href="#impl-Eq-for-ShouldPanic"·title="Eq">Eq</a></li><li><a·href="#impl-Hash-for-ShouldPanic"·title="Hash">Hash</a></li><li><a·href="#impl-PartialEq-for-ShouldPanic"·title="PartialEq">PartialEq</a></li><li><a·href="#impl-StructuralPartialEq-for-ShouldPanic"·title="StructuralPartialEq">StructuralPartialEq</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-ShouldPanic"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-ShouldPanic"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-ShouldPanic"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-ShouldPanic"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-ShouldPanic"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-ShouldPanic"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2·class="in-crate"><a·href="index.html">In·crate·test</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">test</a></span><h1>Enum·<span·class="enum">ShouldPanic</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/test/options.rs.html#12-16">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·enum·ShouldPanic·{
2 ····No,2 ····No,
3 ····Yes,3 ····Yes,
4 ····YesWithMessage(&amp;'static·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.str.html">str</a>),4 ····YesWithMessage(&amp;'static·<a·class="primitive"·href="../std/primitive.str.html">str</a>),
5 }</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Whether·test·is·expected·to·panic·or·not</p>5 }</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Whether·test·is·expected·to·panic·or·not</p>
6 </div></details><h2·id="variants"·class="variants·section-header">Variants<a·href="#variants"·class="anchor">§</a></h2><div·class="variants"><section·id="variant.No"·class="variant"><a·href="#variant.No"·class="anchor">§</a><h3·class="code-header">No</h3></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><section·id="variant.Yes"·class="variant"><a·href="#variant.Yes"·class="anchor">§</a><h3·class="code-header">Yes</h3></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><section·id="variant.YesWithMessage"·class="variant"><a·href="#variant.YesWithMessage"·class="anchor">§</a><h3·class="code-header">YesWithMessage(&amp;'static·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.str.html">str</a>)</h3></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span></div><h2·i[·...·truncated·by·diffoscope;·len:·5110,·SHA:·72c650915ad1fd6dda0e8c3ee4db4e571da83164e91ab4793fda68f70d53ef1d·...·]/std/primitive.reference.html">&amp;mut·H</a>)<div·class="where">where6 </div></details><h2·id="variants"·class="variants·section-header">Variants<a·href="#variants"·class="anchor">§</a></h2><div·class="variants"><section·id="variant.No"·class="variant"><a·href="#variant.No"·class="anchor">§</a><h3·class="code-header">No</h3></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><section·id="variant.Yes"·class="variant"><a·href="#variant.Yes"·class="anchor">§</a><h3·class="code-header">Yes</h3></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><section·id="variant.YesWithMessage"·class="variant"><a·href="#variant.YesWithMessage"·class="anchor">§</a><h3·class="code-header">YesWithMessage(&amp;'static·<a·class="primitive"·href="../std/primitive.str.html">str</a>)</h3></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span></div><h2·id="trait-implementations"·clas[·...·truncated·by·diffoscope;·len:·5020,·SHA:·9bd2960b3b4decba4bf89bddc3fdc2cfeeaad2cace9f88183a4a7c06dd57b89f·...·]/std/primitive.reference.html">&amp;mut·H</a>)<div·class="where">where
7 ····H:·<a·class="trait"·href="../core/hash/trait.Hasher.html"·title="trait·core::hash::Hasher">Hasher</a>,7 ····H:·<a·class="trait"·href="../core/hash/trait.Hasher.html"·title="trait·core::hash::Hasher">Hasher</a>,
8 ····Self:·<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Feeds·a·slice·of·this·type·into·the·given·<a·href="../core/hash/trait.Hasher.html"·title="trait·core::hash::Hasher"><code>Hasher</code></a>.·<a·href="../core/hash/trait.Hash.html#method.hash_slice">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-PartialEq-for-ShouldPanic"·class="impl"><a·class="src·rightside"·href="../src/test/options.rs.html#11">Source</a><a·href="#impl-PartialEq-for-ShouldPanic"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/cmp/trait.PartialEq.html"·title="trait·core::cmp::PartialEq">PartialEq</a>·for·<a·class="enum"·href="test/enum.ShouldPanic.html"·title="enum·test::test::ShouldPanic">ShouldPanic</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.eq"·class="method·trait-impl"><a·class="src·rightside"·href="../src/test/options.rs.html#11">Source</a><a·href="#method.eq"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/cmp/trait.PartialEq.html#tymethod.eq"·class="fn">eq</a>(&amp;self,·other:·&amp;<a·class="enum"·href="test/enum.ShouldPanic.html"·title="enum·test::test::ShouldPanic">ShouldPanic</a>)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>self</code>·and·<code>other</code>·values·to·be·equal,·and·is·used·by·<code>==</code>.</div></details><details·class="toggle·me[·...·truncated·by·diffoscope;·len:·569,·SHA:·46af6fc173633dd332a95fa12f6d5611eaae7b1cebfd0290c8ac91c63e1ef230·...·]/std/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>!=</code>.·The·default·implementation·is·almost·always·sufficient,8 ····Self:·<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Feeds·a·slice·of·this·type·into·the·given·<a·href="../core/hash/trait.Hasher.html"·title="trait·core::hash::Hasher"><code>Hasher</code></a>.·<a·href="../core/hash/trait.Hash.html#method.hash_slice">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-PartialEq-for-ShouldPanic"·class="impl"><a·class="src·rightside"·href="../src/test/options.rs.html#11">Source</a><a·href="#impl-PartialEq-for-ShouldPanic"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/cmp/trait.PartialEq.html"·title="trait·core::cmp::PartialEq">PartialEq</a>·for·<a·class="enum"·href="test/enum.ShouldPanic.html"·title="enum·test::test::ShouldPanic">ShouldPanic</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.eq"·class="method·trait-impl"><a·class="src·rightside"·href="../src/test/options.rs.html#11">Source</a><a·href="#method.eq"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/cmp/trait.PartialEq.html#tymethod.eq"·class="fn">eq</a>(&amp;self,·other:·&amp;<a·class="enum"·href="test/enum.ShouldPanic.html"·title="enum·test::test::ShouldPanic">ShouldPanic</a>)·-&gt;·<a·class="primitive"·href="../std/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>self</code>·and·<code>other</code>·values·to·be·equal,·and·is·used·by·<code>==</code>.</div></details><details·class="toggle·method-toggle"·open><summary><se[·...·truncated·by·diffoscope;·len:·479,·SHA:·d4b4d4ccd2b893fe5d940d56f58f8a31544ac9db5f6dc1b365b30aa149717efb·...·]/std/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>!=</code>.·The·default·implementation·is·almost·always·sufficient,
9 and·should·not·be·overridden·without·very·good·reason.</div></details></div></details><section·id="impl-Copy-for-ShouldPanic"·class="impl"><a·class="src·rightside"·href="../src/test/options.rs.html#11">Source</a><a·href="#impl-Copy-for-ShouldPanic"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Copy.html"·title="trait·core::marker::Copy">Copy</a>·for·<a·class="enum"·href="test/enum.ShouldPanic.html"·title="enum·test::test::ShouldPanic">ShouldPanic</a></h3></section><section·id="impl-Eq-for-ShouldPanic"·class="impl"><a·class="src·rightside"·href="../src/test/options.rs.html#11">Source</a><a·href="#impl-Eq-for-ShouldPanic"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/cmp/trait.Eq.html"·title="trait·core::cmp::Eq">Eq</a>·for·<a·class="enum"·href="test/enum.ShouldPanic.html"·title="enum·test::test::ShouldPanic">ShouldPanic</a></h3></section><section·id="impl-StructuralPartialEq-for-ShouldPanic"·class="impl"><a·class="src·rightside"·href="../src/test/options.rs.html#11">Source</a><a·href="#impl-StructuralPartialEq-for-ShouldPanic"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.StructuralPartialEq.html"·title="trait·core::marker::StructuralPartialEq">StructuralPartialEq</a>·for·<a·class="enum"·href="test/enum.ShouldPanic.html"·title="enum·test::test::ShouldPanic">ShouldPanic</a></h3></section></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-ShouldPanic"·class="impl"><a·href="#impl-Freeze-for-ShouldPanic"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="enum"·href="test/enum.ShouldPanic.html"·title="enum·test::test::ShouldPanic">ShouldPanic</a></h3></section><section·id="impl-RefUnwindSafe-for-ShouldPanic"·class="impl"><a·href="#impl-RefUnwindSafe-for-ShouldPanic"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="enum"·href="test/enum.ShouldPanic.html"·title="enum·test::test::ShouldPanic">ShouldPanic</a></h3></section><section·id="impl-Send-for-ShouldPanic"·class="impl"><a·href="#impl-Send-for-ShouldPanic"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="enum"·href="test/enum.ShouldPanic.html"·title="enum·test::test::ShouldPanic">ShouldPanic</a></h3></section><section·id="impl-Sync-for-ShouldPanic"·class="impl"><a·href="#impl-Sync-for-ShouldPanic"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="enum"·href="test/enum.ShouldPanic.html"·title="enum·test::test::ShouldPanic">ShouldPanic</a></h3></section><section·id="impl-Unpin-for-ShouldPanic"·class="impl"><a·href="#impl-Unpin-for-ShouldPanic"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="enum"·href="test/enum.ShouldPanic.html"·title="enum·test::test::ShouldPanic">ShouldPanic</a></h3></section><section·id="impl-UnwindSafe-for-ShouldPanic"·class="impl"><a·href="#impl-UnwindSafe-for-ShouldPanic"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="enum"·href="test/enum.ShouldPanic.html"·title="enum·test::test::ShouldPanic">ShouldPanic</a></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementations<a·href="#blanket-implementations"·class="anchor">§</a></h2><div·id="blanket-implementations-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-Any-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/any.rs.html#138">Source</a><a·href="#impl-Any-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where9 and·should·not·be·overridden·without·very·good·reason.</div></details></div></details><section·id="impl-Copy-for-ShouldPanic"·class="impl"><a·class="src·rightside"·href="../src/test/options.rs.html#11">Source</a><a·href="#impl-Copy-for-ShouldPanic"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Copy.html"·title="trait·core::marker::Copy">Copy</a>·for·<a·class="enum"·href="test/enum.ShouldPanic.html"·title="enum·test::test::ShouldPanic">ShouldPanic</a></h3></section><section·id="impl-Eq-for-ShouldPanic"·class="impl"><a·class="src·rightside"·href="../src/test/options.rs.html#11">Source</a><a·href="#impl-Eq-for-ShouldPanic"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/cmp/trait.Eq.html"·title="trait·core::cmp::Eq">Eq</a>·for·<a·class="enum"·href="test/enum.ShouldPanic.html"·title="enum·test::test::ShouldPanic">ShouldPanic</a></h3></section><section·id="impl-StructuralPartialEq-for-ShouldPanic"·class="impl"><a·class="src·rightside"·href="../src/test/options.rs.html#11">Source</a><a·href="#impl-StructuralPartialEq-for-ShouldPanic"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.StructuralPartialEq.html"·title="trait·core::marker::StructuralPartialEq">StructuralPartialEq</a>·for·<a·class="enum"·href="test/enum.ShouldPanic.html"·title="enum·test::test::ShouldPanic">ShouldPanic</a></h3></section></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-ShouldPanic"·class="impl"><a·href="#impl-Freeze-for-ShouldPanic"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="enum"·href="test/enum.ShouldPanic.html"·title="enum·test::test::ShouldPanic">ShouldPanic</a></h3></section><section·id="impl-RefUnwindSafe-for-ShouldPanic"·class="impl"><a·href="#impl-RefUnwindSafe-for-ShouldPanic"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="enum"·href="test/enum.ShouldPanic.html"·title="enum·test::test::ShouldPanic">ShouldPanic</a></h3></section><section·id="impl-Send-for-ShouldPanic"·class="impl"><a·href="#impl-Send-for-ShouldPanic"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="enum"·href="test/enum.ShouldPanic.html"·title="enum·test::test::ShouldPanic">ShouldPanic</a></h3></section><section·id="impl-Sync-for-ShouldPanic"·class="impl"><a·href="#impl-Sync-for-ShouldPanic"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="enum"·href="test/enum.ShouldPanic.html"·title="enum·test::test::ShouldPanic">ShouldPanic</a></h3></section><section·id="impl-Unpin-for-ShouldPanic"·class="impl"><a·href="#impl-Unpin-for-ShouldPanic"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="enum"·href="test/enum.ShouldPanic.html"·title="enum·test::test::ShouldPanic">ShouldPanic</a></h3></section><section·id="impl-UnwindSafe-for-ShouldPanic"·class="impl"><a·href="#impl-UnwindSafe-for-ShouldPanic"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="enum"·href="test/enum.ShouldPanic.html"·title="enum·test::test::ShouldPanic">ShouldPanic</a></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementations<a·href="#blanket-implementations"·class="anchor">§</a></h2><div·id="blanket-implementations-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-Any-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/any.rs.html#138">Source</a><a·href="#impl-Any-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where
10 ····T:·'static·+·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/any.rs.html#139">Source</a><a·href="#method.type_id"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/any/trait.Any.html#tymethod.type_id"·class="fn">type_id</a>(&amp;self)·-&gt;·<a·class="struct"·href="../core/any/struct.TypeId.html"·title="struct·core::any::TypeId">TypeId</a></h4></section></summary><div·class='docblock'>Gets·the·<code>TypeId</code>·of·<code>self</code>.·<a·href="../core/any/trait.Any.html#tymethod.type_id">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Borrow%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/borrow/trait.Borrow.html"·title="trait·core::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where10 ····T:·'static·+·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/any.rs.html#139">Source</a><a·href="#method.type_id"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/any/trait.Any.html#tymethod.type_id"·class="fn">type_id</a>(&amp;self)·-&gt;·<a·class="struct"·href="../core/any/struct.TypeId.html"·title="struct·core::any::TypeId">TypeId</a></h4></section></summary><div·class='docblock'>Gets·the·<code>TypeId</code>·of·<code>self</code>.·<a·href="../core/any/trait.Any.html#tymethod.type_id">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Borrow%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/borrow/trait.Borrow.html"·title="trait·core::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where
11 ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#211">Source</a><a·href="#method.borrow"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow"·class="fn">borrow</a>(&amp;self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;T</a></h4></section></summary><div·class='docblock'>Immutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-BorrowMut%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/borrow/trait.BorrowMut.html"·title="trait·core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where11 ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#211">Source</a><a·href="#method.borrow"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow"·class="fn">borrow</a>(&amp;self)·-&gt;·<a·class="primitive"·href="../std/primitive.reference.html">&amp;T</a></h4></section></summary><div·class='docblock'>Immutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-BorrowMut%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/borrow/trait.BorrowMut.html"·title="trait·core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where
12 ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#218">Source</a><a·href="#method.borrow_mut"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"·class="fn">borrow_mut</a>(&amp;mut·self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;mut·T</a></h4></section></summary><div·class='docblock'>Mutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-CloneToUninit-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#273">Source</a><a·href="#impl-CloneToUninit-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where12 ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#218">Source</a><a·href="#method.borrow_mut"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"·class="fn">borrow_mut</a>(&amp;mut·self)·-&gt;·<a·class="primitive"·href="../std/primitive.reference.html">&amp;mut·T</a></h4></section></summary><div·class='docblock'>Mutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-CloneToUninit-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#273">Source</a><a·href="#impl-CloneToUninit-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where
13 ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#275">Source</a><a·href="#method.clone_to_uninit"·class="anchor">§</a><h4·class="code-header">unsafe·fn·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit"·class="fn">clone_to_uninit</a>(&amp;self,·dst:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.pointer.html">*mut·</a><a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.u8.html">u8</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>clone_to_uninit</code>)</span></div></span><div·class='docblock'>Performs·copy-assignment·from·<code>self</code>·to·<code>dst</code>.·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-From%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#765">Source</a><a·href="#impl-From%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·T</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#768">Source</a><a·href="#method.from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>13 ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#275">Source</a><a·href="#method.clone_to_uninit"·class="anchor">§</a><h4·class="code-header">unsafe·fn·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit"·class="fn">clone_to_uninit</a>(&amp;self,·dst:·<a·class="primitive"·href="../std/primitive.pointer.html">*mut·</a><a·class="primitive"·href="../std/primitive.u8.html">u8</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>clone_to_uninit</code>)</span></div></span><div·class='docblock'>Performs·copy-assignment·from·<code>self</code>·to·<code>dst</code>.·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-From%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#765">Source</a><a·href="#impl-From%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·T</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#768">Source</a><a·href="#method.from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>
14 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where14 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where
15 ····U:·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#758">Source</a><a·href="#method.into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>15 ····U:·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#758">Source</a><a·href="#method.into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>
16 <p>That·is,·this·conversion·is·whatever·the·implementation·of16 <p>That·is,·this·conversion·is·whatever·the·implementation·of
17 <code><a·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>17 <code><a·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>
18 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#82-84">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../alloc/borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where18 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#82-84">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../alloc/borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where
19 ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#86">Source</a><a·href="#associatedtype.Owned"·class="anchor">§</a><h4·class="code-header">type·<a·href="../alloc/borrow/trait.ToOwned.html#associatedtype.Owned"·class="associatedtype">Owned</a>·=·T</h4></section></summary><div·class='docblock'>The·resulting·type·after·obtaining·ownership.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.to_owned"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#87">Source</a><a·href="#method.to_owned"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned"·class="fn">to_owned</a>(&amp;self)·-&gt;·T</h4></section></summary><div·class='docblock'>Creates·owned·data·from·borrowed·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#91">Source</a><a·href="#method.clone_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into"·class="fn">clone_into</a>(&amp;self,·target:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#805-807">Source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where19 ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#86">Source</a><a·href="#associatedtype.Owned"·class="anchor">§</a><h4·class="code-header">type·<a·href="../alloc/borrow/trait.ToOwned.html#associatedtype.Owned"·class="associatedtype">Owned</a>·=·T</h4></section></summary><div·class='docblock'>The·resulting·type·after·obtaining·ownership.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.to_owned"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#87">Source</a><a·href="#method.to_owned"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned"·class="fn">to_owned</a>(&amp;self)·-&gt;·T</h4></section></summary><div·class='docblock'>Creates·owned·data·from·borrowed·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#91">Source</a><a·href="#method.clone_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into"·class="fn">clone_into</a>(&amp;self,·target:·<a·class="primitive"·href="../std/primitive.reference.html">&amp;mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#805-807">Source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where
20 ····U:·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#809">Source</a><a·href="#associatedtype.Error-1"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<a·class="enum"·href="../core/convert/enum.Infallible.html"·title="enum·core::convert::Infallible">Infallible</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#812">Source</a><a·href="#method.try_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryFrom.html#tymethod.try_from"·class="fn">try_from</a>(value:·U)·-&gt;·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;T,·&lt;T·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryInto%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#790-792">Source</a><a·href="#impl-TryInto%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where20 ····U:·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#809">Source</a><a·href="#associatedtype.Error-1"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<a·class="enum"·href="../core/convert/enum.Infallible.html"·title="enum·core::convert::Infallible">Infallible</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#812">Source</a><a·href="#method.try_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryFrom.html#tymethod.try_from"·class="fn">try_from</a>(value:·U)·-&gt;·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;T,·&lt;T·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryInto%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#790-792">Source</a><a·href="#impl-TryInto%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where
21 ····U:·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#794">Source</a><a·href="#associatedtype.Error"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryInto.html#associatedtype.Error"·class="associatedtype">Error</a>·=·&lt;U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#797">Source</a><a·href="#method.try_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryInto.html#tymethod.try_into"·class="fn">try_into</a>(self)·-&gt;·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;U,·&lt;U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>21 ····U:·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#794">Source</a><a·href="#associatedtype.Error"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryInto.html#associatedtype.Error"·class="associatedtype">Error</a>·=·&lt;U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#797">Source</a><a·href="#method.try_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryInto.html#tymethod.try_into"·class="fn">try_into</a>(self)·-&gt;·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;U,·&lt;U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>
45.8 KB
./usr/share/doc/rust-doc/html/test/enum.TestFn.html
    
Offset 1, 18 lines modifiedOffset 1, 18 lines modified
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="API·documentation·for·the·Rust·`TestFn`·enum·in·crate·`test`."><title>TestFn·in·test·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../"·data-static-root-path="../static.files/"·data-current-crate="test"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·enum"><!--[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><a·class="logo-container"·href="../test/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../test/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../test/index.html">test</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312» 2025-01-07)»      (built»from»    a»   source»     tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">TestFn</a></h2><h3><a·href="#variants">Variants</a></h3><ul·class="block·variant"><li><a·href="#variant.DynBenchAsTestFn"·title="DynBenchAsTestFn">DynBenchAsTestFn</a></li><li><a·href="#variant.DynBenchFn"·title="DynBenchFn">DynBenchFn</a></li><li><a·href="#variant.DynTestFn"·title="DynTestFn">DynTestFn</a></li><li><a·href="#variant.StaticBenchAsTestFn"·title="StaticBenchAsTestFn">StaticBenchAsTestFn</a></li><li><a·href="#variant.StaticBenchFn"·title="StaticBenchFn">StaticBenchFn</a></li><li><a·href="#variant.StaticTestFn"·title="StaticTestFn">StaticTestFn</a></li></ul><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.padding"·title="padding">padding</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Debug-for-TestFn"·title="Debug">Debug</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-RefUnwindSafe-for-TestFn"·title="!RefUnwindSafe">!RefUnwindSafe</a></li><li><a·href="#impl-Sync-for-TestFn"·title="!Sync">!Sync</a></li><li><a·href="#impl-UnwindSafe-for-TestFn"·title="!UnwindSafe">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-TestFn"·title="Freeze">Freeze</a></li><li><a·href="#impl-Send-for-TestFn"·title="Send">Send</a></li><li><a·href="#impl-Unpin-for-TestFn"·title="Unpin">Unpin</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2·class="in-crate"><a·href="index.html">In·crate·test</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">test</a></span><h1>Enum·<span·class="enum">TestFn</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/test/types.rs.html#84-91">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·enum·TestFn·{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="API·documentation·for·the·Rust·`TestFn`·enum·in·crate·`test`."><title>TestFn·in·test·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../"·data-static-root-path="../static.files/"·data-current-crate="test"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·enum"><!--[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><a·class="logo-container"·href="../test/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../test/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../test/index.html">test</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312» 2025-01-07)»      (built»from»    a»   source»     tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">TestFn</a></h2><h3><a·href="#variants">Variants</a></h3><ul·class="block·variant"><li><a·href="#variant.DynBenchAsTestFn"·title="DynBenchAsTestFn">DynBenchAsTestFn</a></li><li><a·href="#variant.DynBenchFn"·title="DynBenchFn">DynBenchFn</a></li><li><a·href="#variant.DynTestFn"·title="DynTestFn">DynTestFn</a></li><li><a·href="#variant.StaticBenchAsTestFn"·title="StaticBenchAsTestFn">StaticBenchAsTestFn</a></li><li><a·href="#variant.StaticBenchFn"·title="StaticBenchFn">StaticBenchFn</a></li><li><a·href="#variant.StaticTestFn"·title="StaticTestFn">StaticTestFn</a></li></ul><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.padding"·title="padding">padding</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Debug-for-TestFn"·title="Debug">Debug</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-RefUnwindSafe-for-TestFn"·title="!RefUnwindSafe">!RefUnwindSafe</a></li><li><a·href="#impl-Sync-for-TestFn"·title="!Sync">!Sync</a></li><li><a·href="#impl-UnwindSafe-for-TestFn"·title="!UnwindSafe">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-TestFn"·title="Freeze">Freeze</a></li><li><a·href="#impl-Send-for-TestFn"·title="Send">Send</a></li><li><a·href="#impl-Unpin-for-TestFn"·title="Unpin">Unpin</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2·class="in-crate"><a·href="index.html">In·crate·test</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">test</a></span><h1>Enum·<span·class="enum">TestFn</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/test/types.rs.html#84-91">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·enum·TestFn·{
2 ····StaticTestFn(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.fn.html">fn</a>()·-&gt;·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.unit.html">()</a>,·<a·class="struct"·href="../alloc/string/struct.String.html"·title="struct·alloc::string::String">String</a>&gt;),2 ····StaticTestFn(<a·class="primitive"·href="../std/primitive.fn.html">fn</a>()·-&gt;·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="primitive"·href="../std/primitive.unit.html">()</a>,·<a·class="struct"·href="../alloc/string/struct.String.html"·title="struct·alloc::string::String">String</a>&gt;),
3 ····StaticBenchFn(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.fn.html">fn</a>(_:·&amp;mut·<a·class="struct"·href="bench/struct.Bencher.html"·title="struct·test::bench::Bencher">Bencher</a>)·-&gt;·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::re[·...·truncated·by·diffoscope;·len:·87,·SHA:·3866607ca5fca8a041f57ccb9a74e2748e1af9661c741f7dc6381b0b3b43ff08·...·]/std/primitive.unit.html">()</a>,·<a·class="struct"·href="../alloc/string/struct.String.html"·title="struct·alloc::string::String">String</a>&gt;),3 ····StaticBenchFn(<a·class="primitive"·href="../std/primitive.fn.html">fn</a>(_:·&amp;mut·<a·class="struct"·href="bench/struct.Bencher.html"·title="struct·test::bench::Bencher">Bencher</a>)·-&gt;·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a[·...·truncated·by·diffoscope;·len:·27,·SHA:·9d678f070dc690752cfe71d77c55c910f041972b643b2573a30c86575bed12c1·...·]/std/primitive.unit.html">()</a>,·<a·class="struct"·href="../alloc/string/struct.String.html"·title="struct·alloc::string::String">String</a>&gt;),
4 ····StaticBenchAsTestFn(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.fn.html">fn</a>(_:·&amp;mut·<a·class="struct"·href="bench/struct.Bencher.html"·title="struct·test::bench::Bencher">Bencher</a>)·-&gt;·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::re[·...·truncated·by·diffoscope;·len:·87,·SHA:·3866607ca5fca8a041f57ccb9a74e2748e1af9661c741f7dc6381b0b3b43ff08·...·]/std/primitive.unit.html">()</a>,·<a·class="struct"·href="../alloc/string/struct.String.html"·title="struct·alloc::string::String">String</a>&gt;),4 ····StaticBenchAsTestFn(<a·class="primitive"·href="../std/primitive.fn.html">fn</a>(_:·&amp;mut·<a·class="struct"·href="bench/struct.Bencher.html"·title="struct·test::bench::Bencher">Bencher</a>)·-&gt;·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a[·...·truncated·by·diffoscope;·len:·27,·SHA:·9d678f070dc690752cfe71d77c55c910f041972b643b2573a30c86575bed12c1·...·]/std/primitive.unit.html">()</a>,·<a·class="struct"·href="../alloc/string/struct.String.html"·title="struct·alloc::string::String">String</a>&gt;),
5 ····DynTestFn(<a·class="struct"·href="../alloc/boxed/struct.Box.html"·title="struct·alloc::boxed::Box">Box</a>&lt;dyn·<a·class="trait"·href="../core/ops/function/trait.FnOnce.html"·title="trait·core::ops::function::FnOnce">FnOnce</a>()·-&gt;·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.unit.html">()</a>,·<a·class="struct"·href="../alloc/string/struct.String.html"·title="struct·alloc::string::String">String</a>&gt;·+·<a·class="trait"·href="../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>&gt;),5 ····DynTestFn(<a·class="struct"·href="../alloc/boxed/struct.Box.html"·title="struct·alloc::boxed::Box">Box</a>&lt;dyn·<a·class="trait"·href="../core/ops/function/trait.FnOnce.html"·title="trait·core::ops::function::FnOnce">FnOnce</a>()·-&gt;·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="primitive"·href="../std/primitive.unit.html">()</a>,·<a·class="struct"·href="../alloc/string/struct.String.html"·title="struct·alloc::string::String">String</a>&gt;·+·<a·class="trait"·href="../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>&gt;),
6 ····DynBenchFn(<a·class="struct"·href="../alloc/boxed/struct.Box.html"·title="struct·alloc::boxed::Box">Box</a>&lt;dyn·<a·class="trait"·href="../core/ops/function/trait.Fn.html"·title="trait·core::ops::function::Fn">Fn</a>(&amp;mut·<a·class="struct"·href="bench/struct.Bencher.html"·title="struct·test::bench::Bencher">Bencher</a>)·-&gt;·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.unit.html">()</a>,·<a·class="struct"·href="../alloc/string/struct.String.html"·title="struct·alloc::string::String">String</a>&gt;·+·<a·class="trait"·href="../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>&gt;),6 ····DynBenchFn(<a·class="struct"·href="../alloc/boxed/struct.Box.html"·title="struct·alloc::boxed::Box">Box</a>&lt;dyn·<a·class="trait"·href="../core/ops/function/trait.Fn.html"·title="trait·core::ops::function::Fn">Fn</a>(&amp;mut·<a·class="struct"·href="bench/struct.Bencher.html"·title="struct·test::bench::Bencher">Bencher</a>)·-&gt;·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="primitive"·href="../std/primitive.unit.html">()</a>,·<a·class="struct"·href="../alloc/string/struct.String.html"·title="struct·alloc::string::String">String</a>&gt;·+·<a·class="trait"·href="../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>&gt;),
7 ····DynBenchAsTestFn(<a·class="struct"·href="../alloc/boxed/struct.Box.html"·title="struct·alloc::boxed::Box">Box</a>&lt;dyn·<a·class="trait"·href="../core/ops/function/trait.Fn.html"·title="trait·core::ops::function::Fn">Fn</a>(&amp;mut·<a·class="struct"·href="bench/struct.Bencher.html"·title="struct·test::bench::Bencher">Bencher</a>)·-&gt;·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.unit.html">()</a>,·<a·class="struct"·href="../alloc/string/struct.String.html"·title="struct·alloc::string::String">String</a>&gt;·+·<a·class="trait"·href="../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>&gt;),7 ····DynBenchAsTestFn(<a·class="struct"·href="../alloc/boxed/struct.Box.html"·title="struct·alloc::boxed::Box">Box</a>&lt;dyn·<a·class="trait"·href="../core/ops/function/trait.Fn.html"·title="trait·core::ops::function::Fn">Fn</a>(&amp;mut·<a·class="struct"·href="bench/struct.Bencher.html"·title="struct·test::bench::Bencher">Bencher</a>)·-&gt;·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="primitive"·href="../std/primitive.unit.html">()</a>,·<a·class="struct"·href="../alloc/string/struct.String.html"·title="struct·alloc::string::String">String</a>&gt;·+·<a·class="trait"·href="../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>&gt;),
8 }</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><h2·id="variants"·class="variants·section-header">Variants<a·href="#variants"·class="anchor">§</a></h2><div·class="variants"><section·id="variant.StaticTestFn"·class="variant"><a·href="#variant.StaticTestFn"·class="anchor">§</a><h3·class="code-header">StaticTestFn(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.fn.html">fn</a>()·-&gt;·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.unit.htm[·...·truncated·by·diffoscope;·len:·4634,·SHA:·a39909564c9a8f0c2cc0d0d283bd8092e932916c1f3e3b9deec240a3fc6e7a82·...·]/std/primitive.unit.html">()</a>,·<a·class="struct"·href="../alloc/string/struct.String.html"·title="struct·alloc::string::String">String</a>&gt;·+·<a·class="trait"·href="../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>&gt;)</h3></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span></div><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-TestFn"·class="impl"><a·class="src·rightside"·href="../src/test/types.rs.html#93-115">Source</a><a·href="#impl-TestFn"·class="anchor">§</a><h3·class="code-header">impl·<a·class="enum"·href="enum.TestFn.html"·title="enum·test::TestFn">TestFn</a></h3></section></summary><div·class="impl-items"><section·id="method.padding"·class="method"><a·class="src·rightside"·href="../src/test/types.rs.html#94-103">Source</a><h4·class="code-header">pub·fn·<a·href="#method.padding"·class="fn">padding</a>(&amp;self)·-&gt;·<a·class="enum"·href="enum.NamePadding.html"·title="enum·test::NamePadding">NamePadding</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-TestFn"·class="impl"><a·class="src·rightside"·href="../src/test/types.rs.html#117-128">Source</a><a·href="#impl-Debug-for-TestFn"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/fmt/trait.Debug.html"·title="trait·core::fmt::Debug">Debug</a>·for·<a·class="enum"·href="enum.TestFn.html"·title="enum·test::TestFn">TestFn</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../src/test/types.rs.html#118-127">Source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="../core/fmt/struct.Formatter.html"·title="struct·core::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="type"·href="../core/fmt/type.Result.html"·title="type·core::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt">Read·more</a></div></details></div></details></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-TestFn"·class="impl"><a·href="#impl-Freeze-for-TestFn"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="enum"·href="enum.TestFn.html"·title="enum·test::TestFn">TestFn</a></h3></section><section·id="impl-RefUnwindSafe-for-TestFn"·class="impl"><a·href="#impl-RefUnwindSafe-for-TestFn"·class="anchor">§</a><h3·class="code-header">impl·!<a·class="trait"·href="../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="enum"·href="enum.TestFn.html"·title="enum·test::TestFn">TestFn</a></h3></section><section·id="impl-Send-for-TestFn"·class="impl"><a·href="#impl-Send-for-TestFn"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="enum"·href="enum.TestFn.html"·title="enum·test::TestFn">TestFn</a></h3></section><section·id="impl-Sync-for-TestFn"·class="impl"><a·href="#impl-Sync-for-TestFn"·class="anchor">§</a><h3·class="code-header">impl·!<a·class="trait"·href="../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="enum"·href="enum.TestFn.html"·title="enum·test::TestFn">TestFn</a></h3></section><section·id="impl-Unpin-for-TestFn"·class="impl"><a·href="#impl-Unpin-for-TestFn"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="enum"·href="enum.TestFn.html"·title="enum·test::TestFn">TestFn</a></h3></section><section·id="impl-UnwindSafe-for-TestFn"·class="impl"><a·href="#impl-UnwindSafe-for-TestFn"·class="anchor">§</a><h3·class="code-header">impl·!<a·class="trait"·href="../core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="enum"·href="enum.TestFn.html"·title="enum·test::TestFn">TestFn</a></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementations<a·href="#blanket-implementations"·class="anchor">§</a></h2><div·id="blanket-implementations-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-Any-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/any.rs.html#138">Source</a><a·href="#impl-Any-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where8 }</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><h2·id="variants"·class="variants·section-header">Variants<a·href="#variants"·class="anchor">§</a></h2><div·class="variants"><section·id="variant.StaticTestFn"·class="variant"><a·href="#variant.StaticTestFn"·class="anchor">§</a><h3·class="code-header">StaticTestFn(<a·class="primitive"·href="../std/primitive.fn.html">fn</a>()·-&gt;·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="primitive"·href="../std/primitive.unit.html">()</a>,·<a·class="struct"·href="../alloc/string/struct.St[·...·truncated·by·diffoscope;·len:·4364,·SHA:·3eec9adc972ca0b36cf2e9fb5d14440388b1c08e1a2c5634eeaca630da140312·...·]/std/primitive.unit.html">()</a>,·<a·class="struct"·href="../alloc/string/struct.String.html"·title="struct·alloc::string::String">String</a>&gt;·+·<a·class="trait"·href="../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>&gt;)</h3></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span></div><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-TestFn"·class="impl"><a·class="src·rightside"·href="../src/test/types.rs.html#93-115">Source</a><a·href="#impl-TestFn"·class="anchor">§</a><h3·class="code-header">impl·<a·class="enum"·href="enum.TestFn.html"·title="enum·test::TestFn">TestFn</a></h3></section></summary><div·class="impl-items"><section·id="method.padding"·class="method"><a·class="src·rightside"·href="../src/test/types.rs.html#94-103">Source</a><h4·class="code-header">pub·fn·<a·href="#method.padding"·class="fn">padding</a>(&amp;self)·-&gt;·<a·class="enum"·href="enum.NamePadding.html"·title="enum·test::NamePadding">NamePadding</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-TestFn"·class="impl"><a·class="src·rightside"·href="../src/test/types.rs.html#117-128">Source</a><a·href="#impl-Debug-for-TestFn"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/fmt/trait.Debug.html"·title="trait·core::fmt::Debug">Debug</a>·for·<a·class="enum"·href="enum.TestFn.html"·title="enum·test::TestFn">TestFn</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../src/test/types.rs.html#118-127">Source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="../core/fmt/struct.Formatter.html"·title="struct·core::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="type"·href="../core/fmt/type.Result.html"·title="type·core::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt">Read·more</a></div></details></div></details></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-TestFn"·class="impl"><a·href="#impl-Freeze-for-TestFn"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="enum"·href="enum.TestFn.html"·title="enum·test::TestFn">TestFn</a></h3></section><section·id="impl-RefUnwindSafe-for-TestFn"·class="impl"><a·href="#impl-RefUnwindSafe-for-TestFn"·class="anchor">§</a><h3·class="code-header">impl·!<a·class="trait"·href="../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="enum"·href="enum.TestFn.html"·title="enum·test::TestFn">TestFn</a></h3></section><section·id="impl-Send-for-TestFn"·class="impl"><a·href="#impl-Send-for-TestFn"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="enum"·href="enum.TestFn.html"·title="enum·test::TestFn">TestFn</a></h3></section><section·id="impl-Sync-for-TestFn"·class="impl"><a·href="#impl-Sync-for-TestFn"·class="anchor">§</a><h3·class="code-header">impl·!<a·class="trait"·href="../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="enum"·href="enum.TestFn.html"·title="enum·test::TestFn">TestFn</a></h3></section><section·id="impl-Unpin-for-TestFn"·class="impl"><a·href="#impl-Unpin-for-TestFn"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="enum"·href="enum.TestFn.html"·title="enum·test::TestFn">TestFn</a></h3></section><section·id="impl-UnwindSafe-for-TestFn"·class="impl"><a·href="#impl-UnwindSafe-for-TestFn"·class="anchor">§</a><h3·class="code-header">impl·!<a·class="trait"·href="../core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="enum"·href="enum.TestFn.html"·title="enum·test::TestFn">TestFn</a></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementations<a·href="#blanket-implementations"·class="anchor">§</a></h2><div·id="blanket-implementations-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-Any-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/any.rs.html#138">Source</a><a·href="#impl-Any-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where
9 ····T:·'static·+·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/any.rs.html#139">Source</a><a·href="#method.type_id"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/any/trait.Any.html#tymethod.type_id"·class="fn">type_id</a>(&amp;self)·-&gt;·<a·class="struct"·href="../core/any/struct.TypeId.html"·title="struct·core::any::TypeId">TypeId</a></h4></section></summary><div·class='docblock'>Gets·the·<code>TypeId</code>·of·<code>self</code>.·<a·href="../core/any/trait.Any.html#tymethod.type_id">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Borrow%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/borrow/trait.Borrow.html"·title="trait·core::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where9 ····T:·'static·+·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/any.rs.html#139">Source</a><a·href="#method.type_id"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/any/trait.Any.html#tymethod.type_id"·class="fn">type_id</a>(&amp;self)·-&gt;·<a·class="struct"·href="../core/any/struct.TypeId.html"·title="struct·core::any::TypeId">TypeId</a></h4></section></summary><div·class='docblock'>Gets·the·<code>TypeId</code>·of·<code>self</code>.·<a·href="../core/any/trait.Any.html#tymethod.type_id">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Borrow%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/borrow/trait.Borrow.html"·title="trait·core::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where
10 ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#211">Source</a><a·href="#method.borrow"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow"·class="fn">borrow</a>(&amp;self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;T</a></h4></section></summary><div·class='docblock'>Immutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-BorrowMut%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/borrow/trait.BorrowMut.html"·title="trait·core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where10 ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#211">Source</a><a·href="#method.borrow"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow"·class="fn">borrow</a>(&amp;self)·-&gt;·<a·class="primitive"·href="../std/primitive.reference.html">&amp;T</a></h4></section></summary><div·class='docblock'>Immutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-BorrowMut%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/borrow/trait.BorrowMut.html"·title="trait·core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where
11 ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#218">Source</a><a·href="#method.borrow_mut"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"·class="fn">borrow_mut</a>(&amp;mut·self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;mut·T</a></h4></section></summary><div·class='docblock'>Mutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-From%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#765">Source</a><a·href="#impl-From%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·T</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#768">Source</a><a·href="#method.from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>11 ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#218">Source</a><a·href="#method.borrow_mut"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"·class="fn">borrow_mut</a>(&amp;mut·self)·-&gt;·<a·class="primitive"·href="../std/primitive.reference.html">&amp;mut·T</a></h4></section></summary><div·class='docblock'>Mutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-From%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#765">Source</a><a·href="#impl-From%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·T</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#768">Source</a><a·href="#method.from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>
12 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where12 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where
13 ····U:·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#758">Source</a><a·href="#method.into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>13 ····U:·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#758">Source</a><a·href="#method.into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>
14 <p>That·is,·this·conversion·is·whatever·the·implementation·of14 <p>That·is,·this·conversion·is·whatever·the·implementation·of
15 <code><a·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>15 <code><a·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>
16 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#805-807">Source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where16 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#805-807">Source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where
17 ····U:·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#809">Source</a><a·href="#associatedtype.Error-1"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<a·class="enum"·href="../core/convert/enum.Infallible.html"·title="enum·core::convert::Infallible">Infallible</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#812">Source</a><a·href="#method.try_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryFrom.html#tymethod.try_from"·class="fn">try_from</a>(value:·U)·-&gt;·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;T,·&lt;T·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryInto%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#790-792">Source</a><a·href="#impl-TryInto%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where17 ····U:·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#809">Source</a><a·href="#associatedtype.Error-1"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<a·class="enum"·href="../core/convert/enum.Infallible.html"·title="enum·core::convert::Infallible">Infallible</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#812">Source</a><a·href="#method.try_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryFrom.html#tymethod.try_from"·class="fn">try_from</a>(value:·U)·-&gt;·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;T,·&lt;T·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryInto%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#790-792">Source</a><a·href="#impl-TryInto%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where
18 ····U:·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#794">Source</a><a·href="#associatedtype.Error"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryInto.html#associatedtype.Error"·class="associatedtype">Error</a>·=·&lt;U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#797">Source</a><a·href="#method.try_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryInto.html#tymethod.try_into"·class="fn">try_into</a>(self)·-&gt;·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;U,·&lt;U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>18 ····U:·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#794">Source</a><a·href="#associatedtype.Error"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryInto.html#associatedtype.Error"·class="associatedtype">Error</a>·=·&lt;U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#797">Source</a><a·href="#method.try_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryInto.html#tymethod.try_into"·class="fn">try_into</a>(self)·-&gt;·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;U,·&lt;U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>
56.4 KB
./usr/share/doc/rust-doc/html/test/enum.TestName.html
    
Offset 1, 21 lines modifiedOffset 1, 21 lines modified
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="API·documentation·for·the·Rust·`TestName`·enum·in·crate·`test`."><title>TestName·in·test·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../"·data-static-root-path="../static.files/"·data-current-crate="test"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·enum"><!--[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><a·class="logo-container"·href="../test/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../test/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../test/index.html">test</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»     2025-01-07)»  (built»    from»a»       source» tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Test<wbr>Name</a></h2><h3><a·href="#variants">Variants</a></h3><ul·class="block·variant"><li><a·href="#variant.AlignedTestName"·title="AlignedTestName">AlignedTestName</a></li><li><a·href="#variant.DynTestName"·title="DynTestName">DynTestName</a></li><li><a·href="#variant.StaticTestName"·title="StaticTestName">StaticTestName</a></li></ul><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.as_slice"·title="as_slice">as_slice</a></li><li><a·href="#method.padding"·title="padding">padding</a></li><li><a·href="#method.with_padding"·title="with_padding">with_padding</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-TestName"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-TestName"·title="Debug">Debug</a></li><li><a·href="#impl-Display-for-TestName"·title="Display">Display</a></li><li><a·href="#impl-Eq-for-TestName"·title="Eq">Eq</a></li><li><a·href="#impl-Hash-for-TestName"·title="Hash">Hash</a></li><li><a·href="#impl-PartialEq-for-TestName"·title="PartialEq">PartialEq</a></li><li><a·href="#impl-StructuralPartialEq-for-TestName"·title="StructuralPartialEq">StructuralPartialEq</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-TestName"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-TestName"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-TestName"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-TestName"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-TestName"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-TestName"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-ToString-for-T"·title="ToString">ToString</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2·class="in-crate"><a·href="index.html">In·crate·test</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">test</a></span><h1>Enum·<span·class="enum">TestName</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/test/types.rs.html#41-45">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·enum·TestName·{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="API·documentation·for·the·Rust·`TestName`·enum·in·crate·`test`."><title>TestName·in·test·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../"·data-static-root-path="../static.files/"·data-current-crate="test"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·enum"><!--[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><a·class="logo-container"·href="../test/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../test/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../test/index.html">test</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»     2025-01-07)»  (built»    from»a»       source» tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Test<wbr>Name</a></h2><h3><a·href="#variants">Variants</a></h3><ul·class="block·variant"><li><a·href="#variant.AlignedTestName"·title="AlignedTestName">AlignedTestName</a></li><li><a·href="#variant.DynTestName"·title="DynTestName">DynTestName</a></li><li><a·href="#variant.StaticTestName"·title="StaticTestName">StaticTestName</a></li></ul><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.as_slice"·title="as_slice">as_slice</a></li><li><a·href="#method.padding"·title="padding">padding</a></li><li><a·href="#method.with_padding"·title="with_padding">with_padding</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-TestName"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-TestName"·title="Debug">Debug</a></li><li><a·href="#impl-Display-for-TestName"·title="Display">Display</a></li><li><a·href="#impl-Eq-for-TestName"·title="Eq">Eq</a></li><li><a·href="#impl-Hash-for-TestName"·title="Hash">Hash</a></li><li><a·href="#impl-PartialEq-for-TestName"·title="PartialEq">PartialEq</a></li><li><a·href="#impl-StructuralPartialEq-for-TestName"·title="StructuralPartialEq">StructuralPartialEq</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-TestName"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-TestName"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-TestName"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-TestName"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-TestName"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-TestName"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-ToString-for-T"·title="ToString">ToString</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2·class="in-crate"><a·href="index.html">In·crate·test</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">test</a></span><h1>Enum·<span·class="enum">TestName</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/test/types.rs.html#41-45">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·enum·TestName·{
2 ····StaticTestName(&amp;'static·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.str.html">str</a>),2 ····StaticTestName(&amp;'static·<a·class="primitive"·href="../std/primitive.str.html">str</a>),
3 ····DynTestName(<a·class="struct"·href="../alloc/string/struct.String.html"·title="struct·alloc::string::String">String</a>),3 ····DynTestName(<a·class="struct"·href="../alloc/string/struct.String.html"·title="struct·alloc::string::String">String</a>),
4 ····AlignedTestName(<a·class="enum"·href="../alloc/borrow/enum.Cow.html"·title="enum·alloc::borrow::Cow">Cow</a>&lt;'static,·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.str.html">str</a>&gt;,·<a·class="enum"·href="enum.NamePadding.html"·title="enum·test::NamePadding">NamePadding</a>),4 ····AlignedTestName(<a·class="enum"·href="../alloc/borrow/enum.Cow.html"·title="enum·alloc::borrow::Cow">Cow</a>&lt;'static,·<a·class="primitive"·href="../std/primitive.str.html">str</a>&gt;,·<a·class="enum"·href="enum.NamePadding.html"·title="enum·test::NamePadding">NamePadding</a>),
5 }</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><h2·id="variants"·class="variants·section-header">Variants<a·href="#variants"·class="anchor">§</a></h2><div·class="variants"><section·id="variant.StaticTestName"·class="variant"><a·href="#variant.StaticTestName"·class="anchor">§</a><h3·class="code-header">StaticTestName(&amp;'static·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.str.html">str</a>)</h3></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><section·id[·...·truncated·by·diffoscope;·len:·9507,·SHA:·3b18f27f6ca3805926714121dbcf70bc8c7d18216388714c1b87290c975c16f1·...·]/std/primitive.reference.html">&amp;mut·H</a>)<div·class="where">where5 }</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><h2·id="variants"·class="variants·section-header">Variants<a·href="#variants"·class="anchor">§</a></h2><div·class="variants"><section·id="variant.StaticTestName"·class="variant"><a·href="#variant.StaticTestName"·class="anchor">§</a><h3·class="code-header">StaticTestName(&amp;'static·<a·class="primitive"·href="../std/primitive.str.html">str</a>)</h3></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><section·id="variant.DynTestName"·class="[·...·truncated·by·diffoscope;·len:·9357,·SHA:·99a90a7043e104f920a4287301eddf019b6c90d4dbb8216848d6ff1d06097c38·...·]/std/primitive.reference.html">&amp;mut·H</a>)<div·class="where">where
6 ····H:·<a·class="trait"·href="../core/hash/trait.Hasher.html"·title="trait·core::hash::Hasher">Hasher</a>,6 ····H:·<a·class="trait"·href="../core/hash/trait.Hasher.html"·title="trait·core::hash::Hasher">Hasher</a>,
7 ····Self:·<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Feeds·a·slice·of·this·type·into·the·given·<a·href="../core/hash/trait.Hasher.html"·title="trait·core::hash::Hasher"><code>Hasher</code></a>.·<a·href="../core/hash/trait.Hash.html#method.hash_slice">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-PartialEq-for-TestName"·class="impl"><a·class="src·rightside"·href="../src/test/types.rs.html#40">Source</a><a·href="#impl-PartialEq-for-TestName"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/cmp/trait.PartialEq.html"·title="trait·core::cmp::PartialEq">PartialEq</a>·for·<a·class="enum"·href="test/enum.TestName.html"·title="enum·test::test::TestName">TestName</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.eq"·class="method·trait-impl"><a·class="src·rightside"·href="../src/test/types.rs.html#40">Source</a><a·href="#method.eq"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/cmp/trait.PartialEq.html#tymethod.eq"·class="fn">eq</a>(&amp;self,·other:·&amp;<a·class="enum"·href="test/enum.TestName.html"·title="enum·test::test::TestName">TestName</a>)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>self</code>·and·<code>other</code>·values·to·be·equal,·and·is·used·by·<code>==</code>.</div></details><details·class="toggle·me[·...·truncated·by·diffoscope;·len:·569,·SHA:·46af6fc173633dd332a95fa12f6d5611eaae7b1cebfd0290c8ac91c63e1ef230·...·]/std/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>!=</code>.·The·default·implementation·is·almost·always·sufficient,7 ····Self:·<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Feeds·a·slice·of·this·type·into·the·given·<a·href="../core/hash/trait.Hasher.html"·title="trait·core::hash::Hasher"><code>Hasher</code></a>.·<a·href="../core/hash/trait.Hash.html#method.hash_slice">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-PartialEq-for-TestName"·class="impl"><a·class="src·rightside"·href="../src/test/types.rs.html#40">Source</a><a·href="#impl-PartialEq-for-TestName"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/cmp/trait.PartialEq.html"·title="trait·core::cmp::PartialEq">PartialEq</a>·for·<a·class="enum"·href="test/enum.TestName.html"·title="enum·test::test::TestName">TestName</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.eq"·class="method·trait-impl"><a·class="src·rightside"·href="../src/test/types.rs.html#40">Source</a><a·href="#method.eq"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/cmp/trait.PartialEq.html#tymethod.eq"·class="fn">eq</a>(&amp;self,·other:·&amp;<a·class="enum"·href="test/enum.TestName.html"·title="enum·test::test::TestName">TestName</a>)·-&gt;·<a·class="primitive"·href="../std/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>self</code>·and·<code>other</code>·values·to·be·equal,·and·is·used·by·<code>==</code>.</div></details><details·class="toggle·method-toggle"·open><summary><se[·...·truncated·by·diffoscope;·len:·479,·SHA:·d4b4d4ccd2b893fe5d940d56f58f8a31544ac9db5f6dc1b365b30aa149717efb·...·]/std/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>!=</code>.·The·default·implementation·is·almost·always·sufficient,
8 and·should·not·be·overridden·without·very·good·reason.</div></details></div></details><section·id="impl-Eq-for-TestName"·class="impl"><a·class="src·rightside"·href="../src/test/types.rs.html#40">Source</a><a·href="#impl-Eq-for-TestName"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/cmp/trait.Eq.html"·title="trait·core::cmp::Eq">Eq</a>·for·<a·class="enum"·href="test/enum.TestName.html"·title="enum·test::test::TestName">TestName</a></h3></section><section·id="impl-StructuralPartialEq-for-TestName"·class="impl"><a·class="src·rightside"·href="../src/test/types.rs.html#40">Source</a><a·href="#impl-StructuralPartialEq-for-TestName"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.StructuralPartialEq.html"·title="trait·core::marker::StructuralPartialEq">StructuralPartialEq</a>·for·<a·class="enum"·href="test/enum.TestName.html"·title="enum·test::test::TestName">TestName</a></h3></section></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-TestName"·class="impl"><a·href="#impl-Freeze-for-TestName"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="enum"·href="test/enum.TestName.html"·title="enum·test::test::TestName">TestName</a></h3></section><section·id="impl-RefUnwindSafe-for-TestName"·class="impl"><a·href="#impl-RefUnwindSafe-for-TestName"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="enum"·href="test/enum.TestName.html"·title="enum·test::test::TestName">TestName</a></h3></section><section·id="impl-Send-for-TestName"·class="impl"><a·href="#impl-Send-for-TestName"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="enum"·href="test/enum.TestName.html"·title="enum·test::test::TestName">TestName</a></h3></section><section·id="impl-Sync-for-TestName"·class="impl"><a·href="#impl-Sync-for-TestName"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="enum"·href="test/enum.TestName.html"·title="enum·test::test::TestName">TestName</a></h3></section><section·id="impl-Unpin-for-TestName"·class="impl"><a·href="#impl-Unpin-for-TestName"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="enum"·href="test/enum.TestName.html"·title="enum·test::test::TestName">TestName</a></h3></section><section·id="impl-UnwindSafe-for-TestName"·class="impl"><a·href="#impl-UnwindSafe-for-TestName"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="enum"·href="test/enum.TestName.html"·title="enum·test::test::TestName">TestName</a></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementations<a·href="#blanket-implementations"·class="anchor">§</a></h2><div·id="blanket-implementations-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-Any-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/any.rs.html#138">Source</a><a·href="#impl-Any-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where8 and·should·not·be·overridden·without·very·good·reason.</div></details></div></details><section·id="impl-Eq-for-TestName"·class="impl"><a·class="src·rightside"·href="../src/test/types.rs.html#40">Source</a><a·href="#impl-Eq-for-TestName"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/cmp/trait.Eq.html"·title="trait·core::cmp::Eq">Eq</a>·for·<a·class="enum"·href="test/enum.TestName.html"·title="enum·test::test::TestName">TestName</a></h3></section><section·id="impl-StructuralPartialEq-for-TestName"·class="impl"><a·class="src·rightside"·href="../src/test/types.rs.html#40">Source</a><a·href="#impl-StructuralPartialEq-for-TestName"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.StructuralPartialEq.html"·title="trait·core::marker::StructuralPartialEq">StructuralPartialEq</a>·for·<a·class="enum"·href="test/enum.TestName.html"·title="enum·test::test::TestName">TestName</a></h3></section></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-TestName"·class="impl"><a·href="#impl-Freeze-for-TestName"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="enum"·href="test/enum.TestName.html"·title="enum·test::test::TestName">TestName</a></h3></section><section·id="impl-RefUnwindSafe-for-TestName"·class="impl"><a·href="#impl-RefUnwindSafe-for-TestName"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="enum"·href="test/enum.TestName.html"·title="enum·test::test::TestName">TestName</a></h3></section><section·id="impl-Send-for-TestName"·class="impl"><a·href="#impl-Send-for-TestName"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="enum"·href="test/enum.TestName.html"·title="enum·test::test::TestName">TestName</a></h3></section><section·id="impl-Sync-for-TestName"·class="impl"><a·href="#impl-Sync-for-TestName"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="enum"·href="test/enum.TestName.html"·title="enum·test::test::TestName">TestName</a></h3></section><section·id="impl-Unpin-for-TestName"·class="impl"><a·href="#impl-Unpin-for-TestName"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="enum"·href="test/enum.TestName.html"·title="enum·test::test::TestName">TestName</a></h3></section><section·id="impl-UnwindSafe-for-TestName"·class="impl"><a·href="#impl-UnwindSafe-for-TestName"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="enum"·href="test/enum.TestName.html"·title="enum·test::test::TestName">TestName</a></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementations<a·href="#blanket-implementations"·class="anchor">§</a></h2><div·id="blanket-implementations-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-Any-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/any.rs.html#138">Source</a><a·href="#impl-Any-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where
9 ····T:·'static·+·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/any.rs.html#139">Source</a><a·href="#method.type_id"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/any/trait.Any.html#tymethod.type_id"·class="fn">type_id</a>(&amp;self)·-&gt;·<a·class="struct"·href="../core/any/struct.TypeId.html"·title="struct·core::any::TypeId">TypeId</a></h4></section></summary><div·class='docblock'>Gets·the·<code>TypeId</code>·of·<code>self</code>.·<a·href="../core/any/trait.Any.html#tymethod.type_id">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Borrow%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/borrow/trait.Borrow.html"·title="trait·core::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where9 ····T:·'static·+·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/any.rs.html#139">Source</a><a·href="#method.type_id"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/any/trait.Any.html#tymethod.type_id"·class="fn">type_id</a>(&amp;self)·-&gt;·<a·class="struct"·href="../core/any/struct.TypeId.html"·title="struct·core::any::TypeId">TypeId</a></h4></section></summary><div·class='docblock'>Gets·the·<code>TypeId</code>·of·<code>self</code>.·<a·href="../core/any/trait.Any.html#tymethod.type_id">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Borrow%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/borrow/trait.Borrow.html"·title="trait·core::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where
10 ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#211">Source</a><a·href="#method.borrow"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow"·class="fn">borrow</a>(&amp;self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;T</a></h4></section></summary><div·class='docblock'>Immutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-BorrowMut%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/borrow/trait.BorrowMut.html"·title="trait·core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where10 ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#211">Source</a><a·href="#method.borrow"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow"·class="fn">borrow</a>(&amp;self)·-&gt;·<a·class="primitive"·href="../std/primitive.reference.html">&amp;T</a></h4></section></summary><div·class='docblock'>Immutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-BorrowMut%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/borrow/trait.BorrowMut.html"·title="trait·core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where
11 ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#218">Source</a><a·href="#method.borrow_mut"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"·class="fn">borrow_mut</a>(&amp;mut·self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;mut·T</a></h4></section></summary><div·class='docblock'>Mutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-CloneToUninit-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#273">Source</a><a·href="#impl-CloneToUninit-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where11 ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#218">Source</a><a·href="#method.borrow_mut"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"·class="fn">borrow_mut</a>(&amp;mut·self)·-&gt;·<a·class="primitive"·href="../std/primitive.reference.html">&amp;mut·T</a></h4></section></summary><div·class='docblock'>Mutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-CloneToUninit-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#273">Source</a><a·href="#impl-CloneToUninit-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where
12 ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#275">Source</a><a·href="#method.clone_to_uninit"·class="anchor">§</a><h4·class="code-header">unsafe·fn·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit"·class="fn">clone_to_uninit</a>(&amp;self,·dst:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.pointer.html">*mut·</a><a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.u8.html">u8</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>clone_to_uninit</code>)</span></div></span><div·class='docblock'>Performs·copy-assignment·from·<code>self</code>·to·<code>dst</code>.·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-From%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#765">Source</a><a·href="#impl-From%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·T</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#768">Source</a><a·href="#method.from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>12 ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#275">Source</a><a·href="#method.clone_to_uninit"·class="anchor">§</a><h4·class="code-header">unsafe·fn·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit"·class="fn">clone_to_uninit</a>(&amp;self,·dst:·<a·class="primitive"·href="../std/primitive.pointer.html">*mut·</a><a·class="primitive"·href="../std/primitive.u8.html">u8</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>clone_to_uninit</code>)</span></div></span><div·class='docblock'>Performs·copy-assignment·from·<code>self</code>·to·<code>dst</code>.·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-From%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#765">Source</a><a·href="#impl-From%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·T</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#768">Source</a><a·href="#method.from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>
13 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where13 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where
14 ····U:·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#758">Source</a><a·href="#method.into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>14 ····U:·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#758">Source</a><a·href="#method.into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>
15 <p>That·is,·this·conversion·is·whatever·the·implementation·of15 <p>That·is,·this·conversion·is·whatever·the·implementation·of
16 <code><a·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>16 <code><a·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>
17 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#82-84">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../alloc/borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where17 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#82-84">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../alloc/borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where
18 ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#86">Source</a><a·href="#associatedtype.Owned"·class="anchor">§</a><h4·class="code-header">type·<a·href="../alloc/borrow/trait.ToOwned.html#associatedtype.Owned"·class="associatedtype">Owned</a>·=·T</h4></section></summary><div·class='docblock'>The·resulting·type·after·obtaining·ownership.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.to_owned"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#87">Source</a><a·href="#method.to_owned"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned"·class="fn">to_owned</a>(&amp;self)·-&gt;·T</h4></section></summary><div·class='docblock'>Creates·owned·data·from·borrowed·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#91">Source</a><a·href="#method.clone_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into"·class="fn">clone_into</a>(&amp;self,·target:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToString-for-T"·class="impl"><a·class="src·rightside"·href="../src/alloc/string.rs.html#2677">Source</a><a·href="#impl-ToString-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../alloc/string/trait.ToString.html"·title="trait·alloc::string::ToString">ToString</a>·for·T<div·class="where">where18 ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#86">Source</a><a·href="#associatedtype.Owned"·class="anchor">§</a><h4·class="code-header">type·<a·href="../alloc/borrow/trait.ToOwned.html#associatedtype.Owned"·class="associatedtype">Owned</a>·=·T</h4></section></summary><div·class='docblock'>The·resulting·type·after·obtaining·ownership.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.to_owned"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#87">Source</a><a·href="#method.to_owned"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned"·class="fn">to_owned</a>(&amp;self)·-&gt;·T</h4></section></summary><div·class='docblock'>Creates·owned·data·from·borrowed·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#91">Source</a><a·href="#method.clone_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into"·class="fn">clone_into</a>(&amp;self,·target:·<a·class="primitive"·href="../std/primitive.reference.html">&amp;mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToString-for-T"·class="impl"><a·class="src·rightside"·href="../src/alloc/string.rs.html#2677">Source</a><a·href="#impl-ToString-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../alloc/string/trait.ToString.html"·title="trait·alloc::string::ToString">ToString</a>·for·T<div·class="where">where
19 ····T:·<a·class="trait"·href="../core/fmt/trait.Display.html"·title="trait·core::fmt::Display">Display</a>·+·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.to_string"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/string.rs.html#2683">Source</a><a·href="#method.to_string"·class="anchor">§</a><h4·class="code-header">default·fn·<a·href="../alloc/string/trait.ToString.html#tymethod.to_string"·class="fn">to_string</a>(&amp;self)·-&gt;·<a·class="struct"·href="../alloc/string/struct.String.html"·title="struct·alloc::string::String">String</a></h4></section></summary><div·class='docblock'>Converts·the·given·value·to·a·<code>String</code>.·<a·href="../alloc/string/trait.ToString.html#tymethod.to_string">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#805-807">Source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where19 ····T:·<a·class="trait"·href="../core/fmt/trait.Display.html"·title="trait·core::fmt::Display">Display</a>·+·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.to_string"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/string.rs.html#2683">Source</a><a·href="#method.to_string"·class="anchor">§</a><h4·class="code-header">default·fn·<a·href="../alloc/string/trait.ToString.html#tymethod.to_string"·class="fn">to_string</a>(&amp;self)·-&gt;·<a·class="struct"·href="../alloc/string/struct.String.html"·title="struct·alloc::string::String">String</a></h4></section></summary><div·class='docblock'>Converts·the·given·value·to·a·<code>String</code>.·<a·href="../alloc/string/trait.ToString.html#tymethod.to_string">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#805-807">Source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where
20 ····U:·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#809">Source</a><a·href="#associatedtype.Error-1"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<a·class="enum"·href="../core/convert/enum.Infallible.html"·title="enum·core::convert::Infallible">Infallible</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#812">Source</a><a·href="#method.try_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryFrom.html#tymethod.try_from"·class="fn">try_from</a>(value:·U)·-&gt;·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;T,·&lt;T·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryInto%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#790-792">Source</a><a·href="#impl-TryInto%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where20 ····U:·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#809">Source</a><a·href="#associatedtype.Error-1"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<a·class="enum"·href="../core/convert/enum.Infallible.html"·title="enum·core::convert::Infallible">Infallible</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#812">Source</a><a·href="#method.try_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryFrom.html#tymethod.try_from"·class="fn">try_from</a>(value:·U)·-&gt;·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;T,·&lt;T·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryInto%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#790-792">Source</a><a·href="#impl-TryInto%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where
21 ····U:·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#794">Source</a><a·href="#associatedtype.Error"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryInto.html#associatedtype.Error"·class="associatedtype">Error</a>·=·&lt;U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#797">Source</a><a·href="#method.try_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryInto.html#tymethod.try_into"·class="fn">try_into</a>(self)·-&gt;·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;U,·&lt;U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>21 ····U:·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#794">Source</a><a·href="#associatedtype.Error"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryInto.html#associatedtype.Error"·class="associatedtype">Error</a>·=·&lt;U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#797">Source</a><a·href="#method.try_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryInto.html#tymethod.try_into"·class="fn">try_into</a>(self)·-&gt;·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;U,·&lt;U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>
41.1 KB
./usr/share/doc/rust-doc/html/test/enum.TestType.html
    
Offset 6, 23 lines modifiedOffset 6, 23 lines modified
6 }</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Type·of·the·test·according·to·the·<a·href="https://doc.rust-lang.org/cargo/guide/tests.html">Rust·book</a>6 }</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Type·of·the·test·according·to·the·<a·href="https://doc.rust-lang.org/cargo/guide/tests.html">Rust·book</a>
7 conventions.</p>7 conventions.</p>
8 </div></details><h2·id="variants"·class="variants·section-header">Variants<a·href="#variants"·class="anchor">§</a></h2><div·class="variants"><section·id="variant.UnitTest"·class="variant"><a·href="#variant.UnitTest"·class="anchor">§</a><h3·class="code-header">UnitTest</h3></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><div·class="docblock"><p>Unit-tests·are·expected·to·be·in·the·<code>src</code>·folder·of·the·crate.</p>8 </div></details><h2·id="variants"·class="variants·section-header">Variants<a·href="#variants"·class="anchor">§</a></h2><div·class="variants"><section·id="variant.UnitTest"·class="variant"><a·href="#variant.UnitTest"·class="anchor">§</a><h3·class="code-header">UnitTest</h3></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><div·class="docblock"><p>Unit-tests·are·expected·to·be·in·the·<code>src</code>·folder·of·the·crate.</p>
9 </div><section·id="variant.IntegrationTest"·class="variant"><a·href="#variant.IntegrationTest"·class="anchor">§</a><h3·class="code-header">IntegrationTest</h3></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><div·class="docblock"><p>Integration-style·tests·are·expected·to·be·in·the·<code>tests</code>·folder·of·the·crate.</p>9 </div><section·id="variant.IntegrationTest"·class="variant"><a·href="#variant.IntegrationTest"·class="anchor">§</a><h3·class="code-header">IntegrationTest</h3></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><div·class="docblock"><p>Integration-style·tests·are·expected·to·be·in·the·<code>tests</code>·folder·of·the·crate.</p>
10 </div><section·id="variant.DocTest"·class="variant"><a·href="#variant.DocTest"·class="anchor">§</a><h3·class="code-header">DocTest</h3></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><div·class="docblock"><p>Doctests·are·created·by·the·<code>librustdoc</code>·manually,·so·it’s·a·different·type·of·test.</p>10 </div><section·id="variant.DocTest"·class="variant"><a·href="#variant.DocTest"·class="anchor">§</a><h3·class="code-header">DocTest</h3></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><div·class="docblock"><p>Doctests·are·created·by·the·<code>librustdoc</code>·manually,·so·it’s·a·different·type·of·test.</p>
11 </div><section·id="variant.Unknown"·class="variant"><a·href="#variant.Unknown"·class="anchor">§</a><h3·class="code-header">Unknown</h3></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><div·class="docblock"><p>Tests·for·the·sources·that·don’t·follow·the·project·layout·convention11 </div><section·id="variant.Unknown"·class="variant"><a·href="#variant.Unknown"·class="anchor">§</a><h3·class="code-header">Unknown</h3></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><div·class="docblock"><p>Tests·for·the·sources·that·don’t·follow·the·project·layout·convention
12 (e.g.·tests·in·raw·<code>main.rs</code>·compiled·by·calling·<code>rustc·--test</code>·directly).</p>12 (e.g.·tests·in·raw·<code>main.rs</code>·compiled·by·calling·<code>rustc·--test</code>·directly).</p>
13 </div></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-TestType"·class="impl"><a·class="src·rightside"·href="../src/test/types.rs.html#17">Source</a><a·href="#impl-Clone-for-TestType"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="enum"·href="test/enum.TestType.html"·title="enum·test::test::TestType">TestType</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone"·class="method·trait-impl"><a·class="src·rightside"·href="../src/test/types.rs.html#17">Source</a><a·href="#method.clone"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/clone/trait.Clone.html#tymethod.clone"·class="fn">clone</a>(&amp;self)·-&gt;·<a·class="enum"·href="test/enum.TestType.html"·title="enum·test::test::TestType">TestType</a></h4></section></summary><div·class='docblock'>Returns·a·copy·of·the·value.·<a·href="../core/clone/trait.Clone.html#tymethod.clone">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_from"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../src/core/clone.rs.html#174">Source</a></span><a·href="#method.clone_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/clone/trait.Clone.html#method.clone_from"·class="fn">clone_from</a>(&amp;mut·self,·source:·&amp;Self)</h4></section></summary><div·class='docblock'>Performs·copy-assignment·from·<code>source</code>.·<a·href="../core/clone/trait.Clone.html#method.clone_from">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-TestType"·class="impl"><a·class="src·rightside"·href="../src/test/types.rs.html#17">Source</a><a·href="#impl-Debug-for-TestType"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/fmt/trait.Debug.html"·title="trait·core::fmt::Debug">Debug</a>·for·<a·class="enum"·href="test/enum.TestType.html"·title="enum·test::test::TestType">TestType</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../src/test/types.rs.html#17">Source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="../core/fmt/struct.Formatter.html"·title="struct·core::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="type"·href="../core/fmt/type.Result.html"·title="type·core::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Hash-for-TestType"·class="impl"><a·class="src·rightside"·href="../src/test/types.rs.html#17">Source</a><a·href="#impl-Hash-for-TestType"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/hash/trait.Hash.html"·title="trait·core::hash::Hash">Hash</a>·for·<a·class="enum"·href="test/enum.TestType.html"·title="enum·test::test::TestType">TestType</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.hash"·class="method·trait-impl"><a·class="src·rightside"·href="../src/test/types.rs.html#17">Source</a><a·href="#method.hash"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/hash/trait.Hash.html#tymethod.hash"·class="fn">hash</a>&lt;__H:·<a·class="trait"·href="../core/hash/trait.Hasher.html"·title="trait·core::hash::Hasher">Hasher</a>&gt;(&amp;self,·state:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;mut·__H</a>)</h4></section></summary><div·class='docblock'>Feeds·this·value·into·the·given·<a·href="../core/hash/trait.Hasher.html"·title="trait·core::hash::Hasher"><code>Hasher</code></a>[·...·truncated·by·diffoscope;·len:·622,·SHA:·86d500d551e870425dd50040dfb8a1fd0bd4f062fa9adfd07ede83304c4eb0ba·...·]/std/primitive.reference.html">&amp;mut·H</a>)<div·class="where">where13 </div></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-TestType"·class="impl"><a·class="src·rightside"·href="../src/test/types.rs.html#17">Source</a><a·href="#impl-Clone-for-TestType"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="enum"·href="test/enum.TestType.html"·title="enum·test::test::TestType">TestType</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone"·class="method·trait-impl"><a·class="src·rightside"·href="../src/test/types.rs.html#17">Source</a><a·href="#method.clone"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/clone/trait.Clone.html#tymethod.clone"·class="fn">clone</a>(&amp;self)·-&gt;·<a·class="enum"·href="test/enum.TestType.html"·title="enum·test::test::TestType">TestType</a></h4></section></summary><div·class='docblock'>Returns·a·copy·of·the·value.·<a·href="../core/clone/trait.Clone.html#tymethod.clone">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_from"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../src/core/clone.rs.html#174">Source</a></span><a·href="#method.clone_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/clone/trait.Clone.html#method.clone_from"·class="fn">clone_from</a>(&amp;mut·self,·source:·&amp;Self)</h4></section></summary><div·class='docblock'>Performs·copy-assignment·from·<code>source</code>.·<a·href="../core/clone/trait.Clone.html#method.clone_from">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-TestType"·class="impl"><a·class="src·rightside"·href="../src/test/types.rs.html#17">Source</a><a·href="#impl-Debug-for-TestType"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/fmt/trait.Debug.html"·title="trait·core::fmt::Debug">Debug</a>·for·<a·class="enum"·href="test/enum.TestType.html"·title="enum·test::test::TestType">TestType</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../src/test/types.rs.html#17">Source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="../core/fmt/struct.Formatter.html"·title="struct·core::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="type"·href="../core/fmt/type.Result.html"·title="type·core::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Hash-for-TestType"·class="impl"><a·class="src·rightside"·href="../src/test/types.rs.html#17">Source</a><a·href="#impl-Hash-for-TestType"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/hash/trait.Hash.html"·title="trait·core::hash::Hash">Hash</a>·for·<a·class="enum"·href="test/enum.TestType.html"·title="enum·test::test::TestType">TestType</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.hash"·class="method·trait-impl"><a·class="src·rightside"·href="../src/test/types.rs.html#17">Source</a><a·href="#method.hash"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/hash/trait.Hash.html#tymethod.hash"·class="fn">hash</a>&lt;__H:·<a·class="trait"·href="../core/hash/trait.Hasher.html"·title="trait·core::hash::Hasher">Hasher</a>&gt;(&amp;self,·state:·<a·class="primitive"·href="../std/primitive.reference.html">&amp;mut·__H</a>)</h4></section></summary><div·class='docblock'>Feeds·this·value·into·the·given·<a·href="../core/hash/trait.Hasher.html"·title="trait·core::hash::Hasher"><code>Hasher</code></a>.·<a·href="../core/hash/trait.[·...·truncated·by·diffoscope;·len:·562,·SHA:·d7d970dc7ca4d445031b58b2bf8043bc9bb50f706236fb0b2b8e0be7d16a559b·...·]/std/primitive.reference.html">&amp;mut·H</a>)<div·class="where">where
14 ····H:·<a·class="trait"·href="../core/hash/trait.Hasher.html"·title="trait·core::hash::Hasher">Hasher</a>,14 ····H:·<a·class="trait"·href="../core/hash/trait.Hasher.html"·title="trait·core::hash::Hasher">Hasher</a>,
15 ····Self:·<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Feeds·a·slice·of·this·type·into·the·given·<a·href="../core/hash/trait.Hasher.html"·title="trait·core::hash::Hasher"><code>Hasher</code></a>.·<a·href="../core/hash/trait.Hash.html#method.hash_slice">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-PartialEq-for-TestType"·class="impl"><a·class="src·rightside"·href="../src/test/types.rs.html#17">Source</a><a·href="#impl-PartialEq-for-TestType"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/cmp/trait.PartialEq.html"·title="trait·core::cmp::PartialEq">PartialEq</a>·for·<a·class="enum"·href="test/enum.TestType.html"·title="enum·test::test::TestType">TestType</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.eq"·class="method·trait-impl"><a·class="src·rightside"·href="../src/test/types.rs.html#17">Source</a><a·href="#method.eq"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/cmp/trait.PartialEq.html#tymethod.eq"·class="fn">eq</a>(&amp;self,·other:·&amp;<a·class="enum"·href="test/enum.TestType.html"·title="enum·test::test::TestType">TestType</a>)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>self</code>·and·<code>other</code>·values·to·be·equal,·and·is·used·by·<code>==</code>.</div></details><details·class="toggle·me[·...·truncated·by·diffoscope;·len:·569,·SHA:·46af6fc173633dd332a95fa12f6d5611eaae7b1cebfd0290c8ac91c63e1ef230·...·]/std/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>!=</code>.·The·default·implementation·is·almost·always·sufficient,15 ····Self:·<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Feeds·a·slice·of·this·type·into·the·given·<a·href="../core/hash/trait.Hasher.html"·title="trait·core::hash::Hasher"><code>Hasher</code></a>.·<a·href="../core/hash/trait.Hash.html#method.hash_slice">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-PartialEq-for-TestType"·class="impl"><a·class="src·rightside"·href="../src/test/types.rs.html#17">Source</a><a·href="#impl-PartialEq-for-TestType"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/cmp/trait.PartialEq.html"·title="trait·core::cmp::PartialEq">PartialEq</a>·for·<a·class="enum"·href="test/enum.TestType.html"·title="enum·test::test::TestType">TestType</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.eq"·class="method·trait-impl"><a·class="src·rightside"·href="../src/test/types.rs.html#17">Source</a><a·href="#method.eq"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/cmp/trait.PartialEq.html#tymethod.eq"·class="fn">eq</a>(&amp;self,·other:·&amp;<a·class="enum"·href="test/enum.TestType.html"·title="enum·test::test::TestType">TestType</a>)·-&gt;·<a·class="primitive"·href="../std/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>self</code>·and·<code>other</code>·values·to·be·equal,·and·is·used·by·<code>==</code>.</div></details><details·class="toggle·method-toggle"·open><summary><se[·...·truncated·by·diffoscope;·len:·479,·SHA:·d4b4d4ccd2b893fe5d940d56f58f8a31544ac9db5f6dc1b365b30aa149717efb·...·]/std/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>!=</code>.·The·default·implementation·is·almost·always·sufficient,
16 and·should·not·be·overridden·without·very·good·reason.</div></details></div></details><section·id="impl-Copy-for-TestType"·class="impl"><a·class="src·rightside"·href="../src/test/types.rs.html#17">Source</a><a·href="#impl-Copy-for-TestType"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Copy.html"·title="trait·core::marker::Copy">Copy</a>·for·<a·class="enum"·href="test/enum.TestType.html"·title="enum·test::test::TestType">TestType</a></h3></section><section·id="impl-Eq-for-TestType"·class="impl"><a·class="src·rightside"·href="../src/test/types.rs.html#17">Source</a><a·href="#impl-Eq-for-TestType"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/cmp/trait.Eq.html"·title="trait·core::cmp::Eq">Eq</a>·for·<a·class="enum"·href="test/enum.TestType.html"·title="enum·test::test::TestType">TestType</a></h3></section><section·id="impl-StructuralPartialEq-for-TestType"·class="impl"><a·class="src·rightside"·href="../src/test/types.rs.html#17">Source</a><a·href="#impl-StructuralPartialEq-for-TestType"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.StructuralPartialEq.html"·title="trait·core::marker::StructuralPartialEq">StructuralPartialEq</a>·for·<a·class="enum"·href="test/enum.TestType.html"·title="enum·test::test::TestType">TestType</a></h3></section></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-TestType"·class="impl"><a·href="#impl-Freeze-for-TestType"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="enum"·href="test/enum.TestType.html"·title="enum·test::test::TestType">TestType</a></h3></section><section·id="impl-RefUnwindSafe-for-TestType"·class="impl"><a·href="#impl-RefUnwindSafe-for-TestType"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="enum"·href="test/enum.TestType.html"·title="enum·test::test::TestType">TestType</a></h3></section><section·id="impl-Send-for-TestType"·class="impl"><a·href="#impl-Send-for-TestType"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="enum"·href="test/enum.TestType.html"·title="enum·test::test::TestType">TestType</a></h3></section><section·id="impl-Sync-for-TestType"·class="impl"><a·href="#impl-Sync-for-TestType"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="enum"·href="test/enum.TestType.html"·title="enum·test::test::TestType">TestType</a></h3></section><section·id="impl-Unpin-for-TestType"·class="impl"><a·href="#impl-Unpin-for-TestType"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="enum"·href="test/enum.TestType.html"·title="enum·test::test::TestType">TestType</a></h3></section><section·id="impl-UnwindSafe-for-TestType"·class="impl"><a·href="#impl-UnwindSafe-for-TestType"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="enum"·href="test/enum.TestType.html"·title="enum·test::test::TestType">TestType</a></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementations<a·href="#blanket-implementations"·class="anchor">§</a></h2><div·id="blanket-implementations-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-Any-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/any.rs.html#138">Source</a><a·href="#impl-Any-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where16 and·should·not·be·overridden·without·very·good·reason.</div></details></div></details><section·id="impl-Copy-for-TestType"·class="impl"><a·class="src·rightside"·href="../src/test/types.rs.html#17">Source</a><a·href="#impl-Copy-for-TestType"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Copy.html"·title="trait·core::marker::Copy">Copy</a>·for·<a·class="enum"·href="test/enum.TestType.html"·title="enum·test::test::TestType">TestType</a></h3></section><section·id="impl-Eq-for-TestType"·class="impl"><a·class="src·rightside"·href="../src/test/types.rs.html#17">Source</a><a·href="#impl-Eq-for-TestType"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/cmp/trait.Eq.html"·title="trait·core::cmp::Eq">Eq</a>·for·<a·class="enum"·href="test/enum.TestType.html"·title="enum·test::test::TestType">TestType</a></h3></section><section·id="impl-StructuralPartialEq-for-TestType"·class="impl"><a·class="src·rightside"·href="../src/test/types.rs.html#17">Source</a><a·href="#impl-StructuralPartialEq-for-TestType"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.StructuralPartialEq.html"·title="trait·core::marker::StructuralPartialEq">StructuralPartialEq</a>·for·<a·class="enum"·href="test/enum.TestType.html"·title="enum·test::test::TestType">TestType</a></h3></section></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-TestType"·class="impl"><a·href="#impl-Freeze-for-TestType"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="enum"·href="test/enum.TestType.html"·title="enum·test::test::TestType">TestType</a></h3></section><section·id="impl-RefUnwindSafe-for-TestType"·class="impl"><a·href="#impl-RefUnwindSafe-for-TestType"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="enum"·href="test/enum.TestType.html"·title="enum·test::test::TestType">TestType</a></h3></section><section·id="impl-Send-for-TestType"·class="impl"><a·href="#impl-Send-for-TestType"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="enum"·href="test/enum.TestType.html"·title="enum·test::test::TestType">TestType</a></h3></section><section·id="impl-Sync-for-TestType"·class="impl"><a·href="#impl-Sync-for-TestType"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="enum"·href="test/enum.TestType.html"·title="enum·test::test::TestType">TestType</a></h3></section><section·id="impl-Unpin-for-TestType"·class="impl"><a·href="#impl-Unpin-for-TestType"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="enum"·href="test/enum.TestType.html"·title="enum·test::test::TestType">TestType</a></h3></section><section·id="impl-UnwindSafe-for-TestType"·class="impl"><a·href="#impl-UnwindSafe-for-TestType"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="enum"·href="test/enum.TestType.html"·title="enum·test::test::TestType">TestType</a></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementations<a·href="#blanket-implementations"·class="anchor">§</a></h2><div·id="blanket-implementations-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-Any-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/any.rs.html#138">Source</a><a·href="#impl-Any-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where
17 ····T:·'static·+·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/any.rs.html#139">Source</a><a·href="#method.type_id"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/any/trait.Any.html#tymethod.type_id"·class="fn">type_id</a>(&amp;self)·-&gt;·<a·class="struct"·href="../core/any/struct.TypeId.html"·title="struct·core::any::TypeId">TypeId</a></h4></section></summary><div·class='docblock'>Gets·the·<code>TypeId</code>·of·<code>self</code>.·<a·href="../core/any/trait.Any.html#tymethod.type_id">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Borrow%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/borrow/trait.Borrow.html"·title="trait·core::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where17 ····T:·'static·+·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/any.rs.html#139">Source</a><a·href="#method.type_id"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/any/trait.Any.html#tymethod.type_id"·class="fn">type_id</a>(&amp;self)·-&gt;·<a·class="struct"·href="../core/any/struct.TypeId.html"·title="struct·core::any::TypeId">TypeId</a></h4></section></summary><div·class='docblock'>Gets·the·<code>TypeId</code>·of·<code>self</code>.·<a·href="../core/any/trait.Any.html#tymethod.type_id">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Borrow%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/borrow/trait.Borrow.html"·title="trait·core::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where
18 ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#211">Source</a><a·href="#method.borrow"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow"·class="fn">borrow</a>(&amp;self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;T</a></h4></section></summary><div·class='docblock'>Immutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-BorrowMut%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/borrow/trait.BorrowMut.html"·title="trait·core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where18 ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#211">Source</a><a·href="#method.borrow"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow"·class="fn">borrow</a>(&amp;self)·-&gt;·<a·class="primitive"·href="../std/primitive.reference.html">&amp;T</a></h4></section></summary><div·class='docblock'>Immutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-BorrowMut%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/borrow/trait.BorrowMut.html"·title="trait·core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where
19 ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#218">Source</a><a·href="#method.borrow_mut"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"·class="fn">borrow_mut</a>(&amp;mut·self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;mut·T</a></h4></section></summary><div·class='docblock'>Mutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-CloneToUninit-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#273">Source</a><a·href="#impl-CloneToUninit-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where19 ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#218">Source</a><a·href="#method.borrow_mut"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"·class="fn">borrow_mut</a>(&amp;mut·self)·-&gt;·<a·class="primitive"·href="../std/primitive.reference.html">&amp;mut·T</a></h4></section></summary><div·class='docblock'>Mutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-CloneToUninit-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#273">Source</a><a·href="#impl-CloneToUninit-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where
20 ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#275">Source</a><a·href="#method.clone_to_uninit"·class="anchor">§</a><h4·class="code-header">unsafe·fn·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit"·class="fn">clone_to_uninit</a>(&amp;self,·dst:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.pointer.html">*mut·</a><a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.u8.html">u8</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>clone_to_uninit</code>)</span></div></span><div·class='docblock'>Performs·copy-assignment·from·<code>self</code>·to·<code>dst</code>.·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-From%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#765">Source</a><a·href="#impl-From%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·T</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#768">Source</a><a·href="#method.from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>20 ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#275">Source</a><a·href="#method.clone_to_uninit"·class="anchor">§</a><h4·class="code-header">unsafe·fn·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit"·class="fn">clone_to_uninit</a>(&amp;self,·dst:·<a·class="primitive"·href="../std/primitive.pointer.html">*mut·</a><a·class="primitive"·href="../std/primitive.u8.html">u8</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>clone_to_uninit</code>)</span></div></span><div·class='docblock'>Performs·copy-assignment·from·<code>self</code>·to·<code>dst</code>.·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-From%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#765">Source</a><a·href="#impl-From%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·T</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#768">Source</a><a·href="#method.from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>
21 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where21 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where
22 ····U:·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#758">Source</a><a·href="#method.into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>22 ····U:·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#758">Source</a><a·href="#method.into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>
23 <p>That·is,·this·conversion·is·whatever·the·implementation·of23 <p>That·is,·this·conversion·is·whatever·the·implementation·of
24 <code><a·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>24 <code><a·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>
25 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#82-84">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../alloc/borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where25 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#82-84">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../alloc/borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where
26 ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#86">Source</a><a·href="#associatedtype.Owned"·class="anchor">§</a><h4·class="code-header">type·<a·href="../alloc/borrow/trait.ToOwned.html#associatedtype.Owned"·class="associatedtype">Owned</a>·=·T</h4></section></summary><div·class='docblock'>The·resulting·type·after·obtaining·ownership.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.to_owned"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#87">Source</a><a·href="#method.to_owned"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned"·class="fn">to_owned</a>(&amp;self)·-&gt;·T</h4></section></summary><div·class='docblock'>Creates·owned·data·from·borrowed·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#91">Source</a><a·href="#method.clone_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into"·class="fn">clone_into</a>(&amp;self,·target:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#805-807">Source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where26 ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#86">Source</a><a·href="#associatedtype.Owned"·class="anchor">§</a><h4·class="code-header">type·<a·href="../alloc/borrow/trait.ToOwned.html#associatedtype.Owned"·class="associatedtype">Owned</a>·=·T</h4></section></summary><div·class='docblock'>The·resulting·type·after·obtaining·ownership.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.to_owned"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#87">Source</a><a·href="#method.to_owned"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned"·class="fn">to_owned</a>(&amp;self)·-&gt;·T</h4></section></summary><div·class='docblock'>Creates·owned·data·from·borrowed·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#91">Source</a><a·href="#method.clone_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into"·class="fn">clone_into</a>(&amp;self,·target:·<a·class="primitive"·href="../std/primitive.reference.html">&amp;mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#805-807">Source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where
27 ····U:·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#809">Source</a><a·href="#associatedtype.Error-1"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<a·class="enum"·href="../core/convert/enum.Infallible.html"·title="enum·core::convert::Infallible">Infallible</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#812">Source</a><a·href="#method.try_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryFrom.html#tymethod.try_from"·class="fn">try_from</a>(value:·U)·-&gt;·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;T,·&lt;T·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryInto%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#790-792">Source</a><a·href="#impl-TryInto%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where27 ····U:·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#809">Source</a><a·href="#associatedtype.Error-1"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<a·class="enum"·href="../core/convert/enum.Infallible.html"·title="enum·core::convert::Infallible">Infallible</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#812">Source</a><a·href="#method.try_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryFrom.html#tymethod.try_from"·class="fn">try_from</a>(value:·U)·-&gt;·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;T,·&lt;T·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryInto%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#790-792">Source</a><a·href="#impl-TryInto%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where
28 ····U:·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#794">Source</a><a·href="#associatedtype.Error"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryInto.html#associatedtype.Error"·class="associatedtype">Error</a>·=·&lt;U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#797">Source</a><a·href="#method.try_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryInto.html#tymethod.try_into"·class="fn">try_into</a>(self)·-&gt;·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;U,·&lt;U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>28 ····U:·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#794">Source</a><a·href="#associatedtype.Error"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryInto.html#associatedtype.Error"·class="associatedtype">Error</a>·=·&lt;U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#797">Source</a><a·href="#method.try_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryInto.html#tymethod.try_into"·class="fn">try_into</a>(self)·-&gt;·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;U,·&lt;U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>
8.04 KB
./usr/share/doc/rust-doc/html/test/fn.assert_test_result.html
    
Offset 1, 4 lines modifiedOffset 1, 4 lines modified
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="Invoked·when·unit·tests·terminate.·Returns·`Result::Err`·if·the·test·is·considered·a·failure.·By·default,·invokes·`report()`·and·checks·for·a·`0`·result."><title>assert_test_result·in·test·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../"·data-static-root-path="../static.files/"·data-current-crate="test"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·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"·title="show·sidebar"></button><a·class="logo-container"·href="../test/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../test/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../test/index.html">test</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312» 2025-01-07)»      (built»from»    a»   source»     tarball)</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">test</a></span><h1>Function·<span·class="fn">assert_test_result</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/test/lib.rs.html#234-244">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·fn·assert_test_result&lt;T:·<a·class="trait"·href="https://doc.rust-lang.org/1.84.0/std/process/trait.Termination.html"·title="trait·std::process::Termination">Termination</a>&gt;(result:·T)·-&gt;·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·clas[·...·truncated·by·diffoscope;·len:·52,·SHA:·b5c3d3522f82c07d2a3753a3705e4b44bf53939000ab34497605c139bc5d4d02·...·]/std/primitive.unit.html">()</a>,·<a·class="struct"·href="../alloc/string/struct.String.html"·title="struct·alloc::string::String">String</a>&gt;</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Invoked·when·unit·tests·terminate.·Returns·<code>Result::Err</code>·if·the·test·is1 <!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="Invoked·when·unit·tests·terminate.·Returns·`Result::Err`·if·the·test·is·considered·a·failure.·By·default,·invokes·`report()`·and·checks·for·a·`0`·result."><title>assert_test_result·in·test·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../"·data-static-root-path="../static.files/"·data-current-crate="test"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·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"·title="show·sidebar"></button><a·class="logo-container"·href="../test/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../test/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../test/index.html">test</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312» 2025-01-07)»      (built»from»    a»   source»     tarball)</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">test</a></span><h1>Function·<span·class="fn">assert_test_result</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/test/lib.rs.html#234-244">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·fn·assert_test_result&lt;T:·<a·class="trait"·href="../std/process/trait.Termination.html"·title="trait·std::process::Termination">Termination</a>&gt;(result:·T)·-&gt;·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="primitive"·href="../std/primitive.unit.html">()</a>,·<a·class="struct"·href="../alloc/string/struct.String.html"·title="struct·alloc::string::String">String</a>&gt;</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Invoked·when·unit·tests·terminate.·Returns·<code>Result::Err</code>·if·the·test·is
2 considered·a·failure.·By·default,·invokes·<code>report()</code>·and·checks·for·a·<code>0</code>2 considered·a·failure.·By·default,·invokes·<code>report()</code>·and·checks·for·a·<code>0</code>
3 result.</p>3 result.</p>
4 </div></details></section></div></main></body></html>4 </div></details></section></div></main></body></html>
5.09 KB
./usr/share/doc/rust-doc/html/test/fn.run_test.html
    
Offset 1, 8 lines modifiedOffset 1, 8 lines modified
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="API·documentation·for·the·Rust·`run_test`·fn·in·crate·`test`."><title>run_test·in·test·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../"·data-static-root-path="../static.files/"·data-current-crate="test"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·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"·title="show·sidebar"></button><a·class="logo-container"·href="../test/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../test/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../test/index.html">test</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312» 2025-01-07)»      (built»from»    a»   source»     tarball)</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">test</a></span><h1>Function·<span·class="fn">run_test</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/test/lib.rs.html#540-627">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·fn·run_test(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="API·documentation·for·the·Rust·`run_test`·fn·in·crate·`test`."><title>run_test·in·test·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../"·data-static-root-path="../static.files/"·data-current-crate="test"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·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"·title="show·sidebar"></button><a·class="logo-container"·href="../test/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../test/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../test/index.html">test</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312» 2025-01-07)»      (built»from»    a»   source»     tarball)</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">test</a></span><h1>Function·<span·class="fn">run_test</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/test/lib.rs.html#540-627">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·fn·run_test(
2 ····opts:·&amp;<a·class="struct"·href="test/struct.TestOpts.html"·title="struct·test::test::TestOpts">TestOpts</a>,2 ····opts:·&amp;<a·class="struct"·href="test/struct.TestOpts.html"·title="struct·test::test::TestOpts">TestOpts</a>,
3 ····force_ignore:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>,3 ····force_ignore:·<a·class="primitive"·href="../std/primitive.bool.html">bool</a>,
4 ····id:·<a·class="struct"·href="test/struct.TestId.html"·title="struct·test::test::TestId">TestId</a>,4 ····id:·<a·class="struct"·href="test/struct.TestId.html"·title="struct·test::test::TestId">TestId</a>,
5 ····test:·<a·class="struct"·href="test/struct.TestDescAndFn.html"·title="struct·test::test::TestDescAndFn">TestDescAndFn</a>,5 ····test:·<a·class="struct"·href="test/struct.TestDescAndFn.html"·title="struct·test::test::TestDescAndFn">TestDescAndFn</a>,
6 ····strategy:·<a·class="enum"·href="test/enum.RunStrategy.html"·title="enum·test::test::RunStrategy">RunStrategy</a>,6 ····strategy:·<a·class="enum"·href="test/enum.RunStrategy.html"·title="enum·test::test::RunStrategy">RunStrategy</a>,
7 ····monitor_ch:·<a·class="struct"·href="https://doc.rust-lang.org/1.84.0/std/sync/mpsc/struct.Sender.html"·title="struct·std::sync::mpsc::Sender">Sender</a>&lt;CompletedTest&gt;,7 ····monitor_ch:·<a·class="struct"·href="../std/sync/mpsc/struct.Sender.html"·title="struct·std::sync::mpsc::Sender">Sender</a>&lt;CompletedTest&gt;,
8 )·-&gt;·<a·class="enum"·href="../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="struct"·href="https://doc.rust-lang.org/1.84.0/std/thread/struct.JoinHandle.html"·title="struct·std::thread::JoinHandle">JoinHandle</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.unit.html">()</a>&gt;&gt;</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span></section></div></main></body></html>8 )·-&gt;·<a·class="enum"·href="../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="struct"·href="../std/thread/struct.JoinHandle.html"·title="struct·std::thread::JoinHandle">JoinHandle</a>&lt;<a·class="primitive"·href="../std/primitive.unit.html">()</a>&gt;&gt;</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span></section></div></main></body></html>
4.99 KB
./usr/share/doc/rust-doc/html/test/fn.run_tests.html
    
Offset 1, 6 lines modifiedOffset 1, 6 lines modified
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="API·documentation·for·the·Rust·`run_tests`·fn·in·crate·`test`."><title>run_tests·in·test·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../"·data-static-root-path="../static.files/"·data-current-crate="test"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·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"·title="show·sidebar"></button><a·class="logo-container"·href="../test/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../test/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../test/index.html">test</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»       2025-01-07)»    (built»      from»  a» source»   tarball)</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">test</a></span><h1>Function·<span·class="fn">run_tests</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/test/lib.rs.html#268-482">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·fn·run_tests&lt;F&gt;(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="API·documentation·for·the·Rust·`run_tests`·fn·in·crate·`test`."><title>run_tests·in·test·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../"·data-static-root-path="../static.files/"·data-current-crate="test"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·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"·title="show·sidebar"></button><a·class="logo-container"·href="../test/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../test/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../test/index.html">test</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»       2025-01-07)»    (built»      from»  a» source»   tarball)</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">test</a></span><h1>Function·<span·class="fn">run_tests</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/test/lib.rs.html#268-482">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·fn·run_tests&lt;F&gt;(
2 ····opts:·&amp;<a·class="struct"·href="test/struct.TestOpts.html"·title="struct·test::test::TestOpts">TestOpts</a>,2 ····opts:·&amp;<a·class="struct"·href="test/struct.TestOpts.html"·title="struct·test::test::TestOpts">TestOpts</a>,
3 ····tests:·<a·class="struct"·href="../alloc/vec/struct.Vec.html"·title="struct·alloc::vec::Vec">Vec</a>&lt;<a·class="struct"·href="test/struct.TestDescAndFn.html"·title="struct·test::test::TestDescAndFn">TestDescAndFn</a>&gt;,3 ····tests:·<a·class="struct"·href="../alloc/vec/struct.Vec.html"·title="struct·alloc::vec::Vec">Vec</a>&lt;<a·class="struct"·href="test/struct.TestDescAndFn.html"·title="struct·test::test::TestDescAndFn">TestDescAndFn</a>&gt;,
4 ····notify_about_test_event:·F,4 ····notify_about_test_event:·F,
5 )·-&gt;·<a·class="type"·href="https://doc.rust-lang.org/1.84.0/std/io/error/type.Result.html"·title="type·std::io::error::Result">Result</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.unit.html">()</a>&gt;<div·class="where">where5 )·-&gt;·<a·class="type"·href="../std/io/error/type.Result.html"·title="type·std::io::error::Result">Result</a>&lt;<a·class="primitive"·href="../std/primitive.unit.html">()</a>&gt;<div·class="where">where
6 ····F:·<a·class="trait"·href="../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(TestEvent)·-&gt;·<a·class="type"·href="https://doc.rust-lang.org/1.84.0/std/io/error/type.Result.html"·title="type·std::io::error::Result">Result</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.unit.html">()</a>&gt;,</div></code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span></section></div></main></body></html>6 ····F:·<a·class="trait"·href="../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(TestEvent)·-&gt;·<a·class="type"·href="../std/io/error/type.Result.html"·title="type·std::io::error::Result">Result</a>&lt;<a·class="primitive"·href="../std/primitive.unit.html">()</a>&gt;,</div></code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span></section></div></main></body></html>
4.66 KB
./usr/share/doc/rust-doc/html/test/fn.run_tests_console.html
    
Offset 1, 6 lines modifiedOffset 1, 6 lines modified
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="A·simple·console·test·runner.·Runs·provided·tests·reporting·process·and·results·to·the·stdout."><title>run_tests_console·in·test·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../"·data-static-root-path="../static.files/"·data-current-crate="test"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·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"·title="show·sidebar"></button><a·class="logo-container"·href="../test/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../test/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../test/index.html">test</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»    2025-01-07)» (built»   from»       a»      source»tarball)</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">test</a></span><h1>Function·<span·class="fn">run_tests_console</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/test/console.rs.html#286-328">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·fn·run_tests_console(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="A·simple·console·test·runner.·Runs·provided·tests·reporting·process·and·results·to·the·stdout."><title>run_tests_console·in·test·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../"·data-static-root-path="../static.files/"·data-current-crate="test"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·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"·title="show·sidebar"></button><a·class="logo-container"·href="../test/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../test/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../test/index.html">test</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»    2025-01-07)» (built»   from»       a»      source»tarball)</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">test</a></span><h1>Function·<span·class="fn">run_tests_console</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/test/console.rs.html#286-328">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·fn·run_tests_console(
2 ····opts:·&amp;<a·class="struct"·href="test/struct.TestOpts.html"·title="struct·test::test::TestOpts">TestOpts</a>,2 ····opts:·&amp;<a·class="struct"·href="test/struct.TestOpts.html"·title="struct·test::test::TestOpts">TestOpts</a>,
3 ····tests:·<a·class="struct"·href="../alloc/vec/struct.Vec.html"·title="struct·alloc::vec::Vec">Vec</a>&lt;<a·class="struct"·href="test/struct.TestDescAndFn.html"·title="struct·test::test::TestDescAndFn">TestDescAndFn</a>&gt;,3 ····tests:·<a·class="struct"·href="../alloc/vec/struct.Vec.html"·title="struct·alloc::vec::Vec">Vec</a>&lt;<a·class="struct"·href="test/struct.TestDescAndFn.html"·title="struct·test::test::TestDescAndFn">TestDescAndFn</a>&gt;,
4 )·-&gt;·<a·class="type"·href="https://doc.rust-lang.org/1.84.0/std/io/error/type.Result.html"·title="type·std::io::error::Result">Result</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>&gt;</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>A·simple·console·test·runner.4 )·-&gt;·<a·class="type"·href="../std/io/error/type.Result.html"·title="type·std::io::error::Result">Result</a>&lt;<a·class="primitive"·href="../std/primitive.bool.html">bool</a>&gt;</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>A·simple·console·test·runner.
5 Runs·provided·tests·reporting·process·and·results·to·the·stdout.</p>5 Runs·provided·tests·reporting·process·and·results·to·the·stdout.</p>
6 </div></details></section></div></main></body></html>6 </div></details></section></div></main></body></html>
8.44 KB
./usr/share/doc/rust-doc/html/test/stats/fn.winsorize.html
    
Offset 1, 7 lines modifiedOffset 1, 7 lines modified
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="Winsorize·a·set·of·samples,·replacing·values·above·the·`100-pct`·percentile·and·below·the·`pct`·percentile·with·those·percentiles·themselves.·This·is·a·way·of·minimizing·the·effect·of·outliers,·at·the·cost·of·biasing·the·sample.·It·differs·from·trimming·in·that·it·does·not·change·the·number·of·samples,·just·changes·the·values·of·those·that·are·outliers."><title>winsorize·in·test::stats·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="test"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·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"·title="show·sidebar"></button><a·class="logo-container"·href="../../test/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../test/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../test/index.html">test</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»2025-01-07)»     (built»       from»   a»  source»    tarball)</div><div·class="sidebar-elems"><div·id="rustdoc-modnav"><h2><a·href="index.html">In·test::<wbr>stats</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">test</a>::<wbr><a·href="index.html">stats</a></span><h1>Function·<span·class="fn">winsorize</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/test/stats.rs.html#289-302">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·fn·winsorize(samples:·&amp;mut·[<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.f64.html">f64</a>],·pct:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.f64.html">f64</a>)</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Winsorize·a·set·of·samples,·replacing·values·above·the·<code>100-pct</code>·percentile1 <!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="Winsorize·a·set·of·samples,·replacing·values·above·the·`100-pct`·percentile·and·below·the·`pct`·percentile·with·those·percentiles·themselves.·This·is·a·way·of·minimizing·the·effect·of·outliers,·at·the·cost·of·biasing·the·sample.·It·differs·from·trimming·in·that·it·does·not·change·the·number·of·samples,·just·changes·the·values·of·those·that·are·outliers."><title>winsorize·in·test::stats·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="test"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·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"·title="show·sidebar"></button><a·class="logo-container"·href="../../test/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../test/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../test/index.html">test</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»2025-01-07)»     (built»       from»   a»  source»    tarball)</div><div·class="sidebar-elems"><div·id="rustdoc-modnav"><h2><a·href="index.html">In·test::<wbr>stats</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">test</a>::<wbr><a·href="index.html">stats</a></span><h1>Function·<span·class="fn">winsorize</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/test/stats.rs.html#289-302">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·fn·winsorize(samples:·&amp;mut·[<a·class="primitive"·href="../../std/primitive.f64.html">f64</a>],·pct:·<a·class="primitive"·href="../../std/primitive.f64.html">f64</a>)</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Winsorize·a·set·of·samples,·replacing·values·above·the·<code>100-pct</code>·percentile
2 and·below·the·<code>pct</code>·percentile·with·those·percentiles·themselves.·This·is·a2 and·below·the·<code>pct</code>·percentile·with·those·percentiles·themselves.·This·is·a
3 way·of·minimizing·the·effect·of·outliers,·at·the·cost·of·biasing·the·sample.3 way·of·minimizing·the·effect·of·outliers,·at·the·cost·of·biasing·the·sample.
4 It·differs·from·trimming·in·that·it·does·not·change·the·number·of·samples,4 It·differs·from·trimming·in·that·it·does·not·change·the·number·of·samples,
5 just·changes·the·values·of·those·that·are·outliers.</p>5 just·changes·the·values·of·those·that·are·outliers.</p>
6 <p>See:·<a·href="https://en.wikipedia.org/wiki/Winsorising">https://en.wikipedia.org/wiki/Winsorising</a></p>6 <p>See:·<a·href="https://en.wikipedia.org/wiki/Winsorising">https://en.wikipedia.org/wiki/Winsorising</a></p>
7 </div></details></section></div></main></body></html>7 </div></details></section></div></main></body></html>
55.5 KB
./usr/share/doc/rust-doc/html/test/stats/struct.Summary.html
    
Offset 1, 29 lines modifiedOffset 1, 29 lines modified
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="Extracted·collection·of·all·the·summary·statistics·of·a·sample·set."><title>Summary·in·test::stats·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="test"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../test/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../test/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../test/index.html">test</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»     2025-01-07)»  (built»    from»a»       source» tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Summary</a></h2><h3><a·href="#fields">Fields</a></h3><ul·class="block·structfield"><li><a·href="#structfield.iqr"·title="iqr">iqr</a></li><li><a·href="#structfield.max"·title="max">max</a></li><li><a·href="#structfield.mean"·title="mean">mean</a></li><li><a·href="#structfield.median"·title="median">median</a></li><li><a·href="#structfield.median_abs_dev"·title="median_abs_dev">median_abs_dev</a></li><li><a·href="#structfield.median_abs_dev_pct"·title="median_abs_dev_pct">median_abs_dev_pct</a></li><li><a·href="#structfield.min"·title="min">min</a></li><li><a·href="#structfield.quartiles"·title="quartiles">quartiles</a></li><li><a·href="#structfield.std_dev"·title="std_dev">std_dev</a></li><li><a·href="#structfield.std_dev_pct"·title="std_dev_pct">std_dev_pct</a></li><li><a·href="#structfield.sum"·title="sum">sum</a></li><li><a·href="#structfield.var"·title="var">var</a></li></ul><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.new"·title="new">new</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-Summary"·title="Clone">Clone</a></li><li><a·href="#impl-Copy-for-Summary"·title="Copy">Copy</a></li><li><a·href="#impl-Debug-for-Summary"·title="Debug">Debug</a></li><li><a·href="#impl-PartialEq-for-Summary"·title="PartialEq">PartialEq</a></li><li><a·href="#impl-StructuralPartialEq-for-Summary"·title="StructuralPartialEq">StructuralPartialEq</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-Summary"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Summary"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Summary"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-Summary"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-Summary"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Summary"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·test::<wbr>stats</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">test</a>::<wbr><a·href="index.html">stats</a></span><h1>Struct·<span·class="struct">Summary</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/test/stats.rs.html#103-116">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·Summary·{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="Extracted·collection·of·all·the·summary·statistics·of·a·sample·set."><title>Summary·in·test::stats·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="test"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../test/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../test/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../test/index.html">test</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»     2025-01-07)»  (built»    from»a»       source» tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Summary</a></h2><h3><a·href="#fields">Fields</a></h3><ul·class="block·structfield"><li><a·href="#structfield.iqr"·title="iqr">iqr</a></li><li><a·href="#structfield.max"·title="max">max</a></li><li><a·href="#structfield.mean"·title="mean">mean</a></li><li><a·href="#structfield.median"·title="median">median</a></li><li><a·href="#structfield.median_abs_dev"·title="median_abs_dev">median_abs_dev</a></li><li><a·href="#structfield.median_abs_dev_pct"·title="median_abs_dev_pct">median_abs_dev_pct</a></li><li><a·href="#structfield.min"·title="min">min</a></li><li><a·href="#structfield.quartiles"·title="quartiles">quartiles</a></li><li><a·href="#structfield.std_dev"·title="std_dev">std_dev</a></li><li><a·href="#structfield.std_dev_pct"·title="std_dev_pct">std_dev_pct</a></li><li><a·href="#structfield.sum"·title="sum">sum</a></li><li><a·href="#structfield.var"·title="var">var</a></li></ul><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.new"·title="new">new</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-Summary"·title="Clone">Clone</a></li><li><a·href="#impl-Copy-for-Summary"·title="Copy">Copy</a></li><li><a·href="#impl-Debug-for-Summary"·title="Debug">Debug</a></li><li><a·href="#impl-PartialEq-for-Summary"·title="PartialEq">PartialEq</a></li><li><a·href="#impl-StructuralPartialEq-for-Summary"·title="StructuralPartialEq">StructuralPartialEq</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-Summary"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Summary"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Summary"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-Summary"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-Summary"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Summary"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·test::<wbr>stats</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">test</a>::<wbr><a·href="index.html">stats</a></span><h1>Struct·<span·class="struct">Summary</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/test/stats.rs.html#103-116">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·Summary·{
2 ····pub·sum:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.f64.html">f64</a>,2 ····pub·sum:·<a·class="primitive"·href="../../std/primitive.f64.html">f64</a>,
3 ····pub·min:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.f64.html">f64</a>,3 ····pub·min:·<a·class="primitive"·href="../../std/primitive.f64.html">f64</a>,
4 ····pub·max:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.f64.html">f64</a>,4 ····pub·max:·<a·class="primitive"·href="../../std/primitive.f64.html">f64</a>,
5 ····pub·mean:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.f64.html">f64</a>,5 ····pub·mean:·<a·class="primitive"·href="../../std/primitive.f64.html">f64</a>,
6 ····pub·median:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.f64.html">f64</a>,6 ····pub·median:·<a·class="primitive"·href="../../std/primitive.f64.html">f64</a>,
7 ····pub·var:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.f64.html">f64</a>,7 ····pub·var:·<a·class="primitive"·href="../../std/primitive.f64.html">f64</a>,
8 ····pub·std_dev:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.f64.html">f64</a>,8 ····pub·std_dev:·<a·class="primitive"·href="../../std/primitive.f64.html">f64</a>,
9 ····pub·std_dev_pct:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.f64.html">f64</a>,9 ····pub·std_dev_pct:·<a·class="primitive"·href="../../std/primitive.f64.html">f64</a>,
10 ····pub·median_abs_dev:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.f64.html">f64</a>,10 ····pub·median_abs_dev:·<a·class="primitive"·href="../../std/primitive.f64.html">f64</a>,
11 ····pub·median_abs_dev_pct:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.f64.html">f64</a>,11 ····pub·median_abs_dev_pct:·<a·class="primitive"·href="../../std/primitive.f64.html">f64</a>,
12 ····pub·quartiles:·(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.f64.html">f64</a>,·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.f64.html">f64</a>,·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.f64.html">f64</a>),12 ····pub·quartiles:·(<a·class="primitive"·href="../../std/primitive.f64.html">f64</a>,·<a·class="primitive"·href="../../std/primitive.f64.html">f64</a>,·<a·class="primitive"·href="../../std/primitive.f64.html">f64</a>),
13 ····pub·iqr:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.f64.html">f64</a>,13 ····pub·iqr:·<a·class="primitive"·href="../../std/primitive.f64.html">f64</a>,
14 }</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Extracted·collection·of·all·the·summary·statistics·of·a·sample·set.</p>14 }</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Extracted·collection·of·all·the·summary·statistics·of·a·sample·set.</p>
15 </div></details><h2·id="fields"·class="fields·section-header">Fields<a·href="#fields"·class="anchor">§</a></h2><span·id="structfield.sum"·class="structfield·section-header"><a·href="#structfield.sum"·class="anchor·field">§</a><code>sum:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.f64.html">f64</a></code></span><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><span·id="str[·...·truncated·by·diffoscope;·len:·5529,·SHA:·f8487d43913446ec96b0106f8ef28ea4f05961e90b7ea4f078eccf8f238be537·...·]/std/primitive.f64.html">f64</a>])·-&gt;·<a·class="struct"·href="struct.Summary.html"·title="struct·test::stats::Summary">Summary</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span></summary><div·class="docblock"><p>Constructs·a·new·summary·of·a·sample·set.</p>15 </div></details><h2·id="fields"·class="fields·section-header">Fields<a·href="#fields"·class="anchor">§</a></h2><span·id="structfield.sum"·class="structfield·section-header"><a·href="#structfield.sum"·class="anchor·field">§</a><code>sum:·<a·class="primitive"·href="../../std/primitive.f64.html">f64</a></code></span><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><span·id="structfield.min"·class="struct[·...·truncated·by·diffoscope;·len:·5124,·SHA:·f7aeea01fcdd32075de9c2111f0b4128073999909edcb855dec60de44a367be5·...·]/std/primitive.f64.html">f64</a>])·-&gt;·<a·class="struct"·href="struct.Summary.html"·title="struct·test::stats::Summary">Summary</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span></summary><div·class="docblock"><p>Constructs·a·new·summary·of·a·sample·set.</p>
16 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-Summary"·class="impl"><a·class="src·rightside"·href="../../src/test/stats.rs.html#101">Source</a><a·href="#impl-Clone-for-Summary"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struct"·href="struct.Summary.html"·title="struct·test::stats::Summary">Summary</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/test/stats.rs.html#101">Source</a><a·href="#method.clone"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/clone/trait.Clone.html#tymethod.clone"·class="fn">clone</a>(&amp;self)·-&gt;·<a·class="struct"·href="struct.Summary.html"·title="struct·test::stats::Summary">Summary</a></h4></section></summary><div·class='docblock'>Returns·a·copy·of·the·value.·<a·href="../../core/clone/trait.Clone.html#tymethod.clone">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_from"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/clone.rs.html#174">Source</a></span><a·href="#method.clone_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/clone/trait.Clone.html#method.clone_from"·class="fn">clone_from</a>(&amp;mut·self,·source:·&amp;Self)</h4></section></summary><div·class='docblock'>Performs·copy-assignment·from·<code>source</code>.·<a·href="../../core/clone/trait.Clone.html#method.clone_from">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-Summary"·class="impl"><a·class="src·rightside"·href="../../src/test/stats.rs.html#101">Source</a><a·href="#impl-Debug-for-Summary"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/fmt/trait.Debug.html"·title="trait·core::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.Summary.html"·title="struct·test::stats::Summary">Summary</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/test/stats.rs.html#101">Source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="../../core/fmt/struct.Formatter.html"·title="struct·core::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="type"·href="../../core/fmt/type.Result.html"·title="type·core::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../../core/fmt/trait.Debug.html#tymethod.fmt">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-PartialEq-for-Summary"·class="impl"><a·class="src·rightside"·href="../../src/test/stats.rs.html#101">Source</a><a·href="#impl-PartialEq-for-Summary"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/cmp/trait.PartialEq.html"·title="trait·core::cmp::PartialEq">PartialEq</a>·for·<a·class="struct"·href="struct.Summary.html"·title="struct·test::stats::Summary">Summary</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.eq"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/test/stats.rs.html#101">Source</a><a·href="#method.eq"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/cmp/trait.PartialEq.html#tymethod.eq"·class="fn">eq</a>(&amp;self,·other:·&amp;<a·class="struct"·href="struct.Summary.html"·title="struct·test::stats::Summary">Summary</a>)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>self</code>·and·<code>other</code>·values·to·be·equal,·and·is·used·by·<code>==</code>.</div></details><details·class="toggle·me[·...·truncated·by·diffoscope;·len:·575,·SHA:·24e5a6b6f07d6dccde1f4f31a2d320251328cc5b8476dbf860d00dba4bc89363·...·]/std/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>!=</code>.·The·default·implementation·is·almost·always·sufficient,16 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-Summary"·class="impl"><a·class="src·rightside"·href="../../src/test/stats.rs.html#101">Source</a><a·href="#impl-Clone-for-Summary"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struct"·href="struct.Summary.html"·title="struct·test::stats::Summary">Summary</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/test/stats.rs.html#101">Source</a><a·href="#method.clone"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/clone/trait.Clone.html#tymethod.clone"·class="fn">clone</a>(&amp;self)·-&gt;·<a·class="struct"·href="struct.Summary.html"·title="struct·test::stats::Summary">Summary</a></h4></section></summary><div·class='docblock'>Returns·a·copy·of·the·value.·<a·href="../../core/clone/trait.Clone.html#tymethod.clone">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_from"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/clone.rs.html#174">Source</a></span><a·href="#method.clone_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/clone/trait.Clone.html#method.clone_from"·class="fn">clone_from</a>(&amp;mut·self,·source:·&amp;Self)</h4></section></summary><div·class='docblock'>Performs·copy-assignment·from·<code>source</code>.·<a·href="../../core/clone/trait.Clone.html#method.clone_from">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-Summary"·class="impl"><a·class="src·rightside"·href="../../src/test/stats.rs.html#101">Source</a><a·href="#impl-Debug-for-Summary"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/fmt/trait.Debug.html"·title="trait·core::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.Summary.html"·title="struct·test::stats::Summary">Summary</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/test/stats.rs.html#101">Source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="../../core/fmt/struct.Formatter.html"·title="struct·core::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="type"·href="../../core/fmt/type.Result.html"·title="type·core::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../../core/fmt/trait.Debug.html#tymethod.fmt">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-PartialEq-for-Summary"·class="impl"><a·class="src·rightside"·href="../../src/test/stats.rs.html#101">Source</a><a·href="#impl-PartialEq-for-Summary"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/cmp/trait.PartialEq.html"·title="trait·core::cmp::PartialEq">PartialEq</a>·for·<a·class="struct"·href="struct.Summary.html"·title="struct·test::stats::Summary">Summary</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.eq"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/test/stats.rs.html#101">Source</a><a·href="#method.eq"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/cmp/trait.PartialEq.html#tymethod.eq"·class="fn">eq</a>(&amp;self,·other:·&amp;<a·class="struct"·href="struct.Summary.html"·title="struct·test::stats::Summary">Summary</a>)·-&gt;·<a·class="primitive"·href="../../std/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>self</code>·and·<code>other</code>·values·to·be·equal,·and·is·used·by·<code>==</code>.</div></details><details·class="toggle·method-toggle"·open><summary>[·...·truncated·by·diffoscope;·len:·494,·SHA:·db76c2d93beea7efa856fa6578fe817b3591880dfa224bd5e9c9e64062908aa1·...·]/std/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>!=</code>.·The·default·implementation·is·almost·always·sufficient,
17 and·should·not·be·overridden·without·very·good·reason.</div></details></div></details><section·id="impl-Copy-for-Summary"·class="impl"><a·class="src·rightside"·href="../../src/test/stats.rs.html#101">Source</a><a·href="#impl-Copy-for-Summary"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Copy.html"·title="trait·core::marker::Copy">Copy</a>·for·<a·class="struct"·href="struct.Summary.html"·title="struct·test::stats::Summary">Summary</a></h3></section><section·id="impl-StructuralPartialEq-for-Summary"·class="impl"><a·class="src·rightside"·href="../../src/test/stats.rs.html#101">Source</a><a·href="#impl-StructuralPartialEq-for-Summary"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.StructuralPartialEq.html"·title="trait·core::marker::StructuralPartialEq">StructuralPartialEq</a>·for·<a·class="struct"·href="struct.Summary.html"·title="struct·test::stats::Summary">Summary</a></h3></section></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-Summary"·class="impl"><a·href="#impl-Freeze-for-Summary"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="struct"·href="struct.Summary.html"·title="struct·test::stats::Summary">Summary</a></h3></section><section·id="impl-RefUnwindSafe-for-Summary"·class="impl"><a·href="#impl-RefUnwindSafe-for-Summary"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="struct"·href="struct.Summary.html"·title="struct·test::stats::Summary">Summary</a></h3></section><section·id="impl-Send-for-Summary"·class="impl"><a·href="#impl-Send-for-Summary"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="struct"·href="struct.Summary.html"·title="struct·test::stats::Summary">Summary</a></h3></section><section·id="impl-Sync-for-Summary"·class="impl"><a·href="#impl-Sync-for-Summary"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="struct"·href="struct.Summary.html"·title="struct·test::stats::Summary">Summary</a></h3></section><section·id="impl-Unpin-for-Summary"·class="impl"><a·href="#impl-Unpin-for-Summary"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="struct"·href="struct.Summary.html"·title="struct·test::stats::Summary">Summary</a></h3></section><section·id="impl-UnwindSafe-for-Summary"·class="impl"><a·href="#impl-UnwindSafe-for-Summary"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="struct"·href="struct.Summary.html"·title="struct·test::stats::Summary">Summary</a></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementations<a·href="#blanket-implementations"·class="anchor">§</a></h2><div·id="blanket-implementations-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-Any-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/any.rs.html#138">Source</a><a·href="#impl-Any-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where17 and·should·not·be·overridden·without·very·good·reason.</div></details></div></details><section·id="impl-Copy-for-Summary"·class="impl"><a·class="src·rightside"·href="../../src/test/stats.rs.html#101">Source</a><a·href="#impl-Copy-for-Summary"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Copy.html"·title="trait·core::marker::Copy">Copy</a>·for·<a·class="struct"·href="struct.Summary.html"·title="struct·test::stats::Summary">Summary</a></h3></section><section·id="impl-StructuralPartialEq-for-Summary"·class="impl"><a·class="src·rightside"·href="../../src/test/stats.rs.html#101">Source</a><a·href="#impl-StructuralPartialEq-for-Summary"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.StructuralPartialEq.html"·title="trait·core::marker::StructuralPartialEq">StructuralPartialEq</a>·for·<a·class="struct"·href="struct.Summary.html"·title="struct·test::stats::Summary">Summary</a></h3></section></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-Summary"·class="impl"><a·href="#impl-Freeze-for-Summary"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="struct"·href="struct.Summary.html"·title="struct·test::stats::Summary">Summary</a></h3></section><section·id="impl-RefUnwindSafe-for-Summary"·class="impl"><a·href="#impl-RefUnwindSafe-for-Summary"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="struct"·href="struct.Summary.html"·title="struct·test::stats::Summary">Summary</a></h3></section><section·id="impl-Send-for-Summary"·class="impl"><a·href="#impl-Send-for-Summary"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="struct"·href="struct.Summary.html"·title="struct·test::stats::Summary">Summary</a></h3></section><section·id="impl-Sync-for-Summary"·class="impl"><a·href="#impl-Sync-for-Summary"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="struct"·href="struct.Summary.html"·title="struct·test::stats::Summary">Summary</a></h3></section><section·id="impl-Unpin-for-Summary"·class="impl"><a·href="#impl-Unpin-for-Summary"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="struct"·href="struct.Summary.html"·title="struct·test::stats::Summary">Summary</a></h3></section><section·id="impl-UnwindSafe-for-Summary"·class="impl"><a·href="#impl-UnwindSafe-for-Summary"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="struct"·href="struct.Summary.html"·title="struct·test::stats::Summary">Summary</a></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementations<a·href="#blanket-implementations"·class="anchor">§</a></h2><div·id="blanket-implementations-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-Any-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/any.rs.html#138">Source</a><a·href="#impl-Any-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where
18 ····T:·'static·+·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/any.rs.html#139">Source</a><a·href="#method.type_id"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/any/trait.Any.html#tymethod.type_id"·class="fn">type_id</a>(&amp;self)·-&gt;·<a·class="struct"·href="../../core/any/struct.TypeId.html"·title="struct·core::any::TypeId">TypeId</a></h4></section></summary><div·class='docblock'>Gets·the·<code>TypeId</code>·of·<code>self</code>.·<a·href="../../core/any/trait.Any.html#tymethod.type_id">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Borrow%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/borrow/trait.Borrow.html"·title="trait·core::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where18 ····T:·'static·+·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/any.rs.html#139">Source</a><a·href="#method.type_id"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/any/trait.Any.html#tymethod.type_id"·class="fn">type_id</a>(&amp;self)·-&gt;·<a·class="struct"·href="../../core/any/struct.TypeId.html"·title="struct·core::any::TypeId">TypeId</a></h4></section></summary><div·class='docblock'>Gets·the·<code>TypeId</code>·of·<code>self</code>.·<a·href="../../core/any/trait.Any.html#tymethod.type_id">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Borrow%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/borrow/trait.Borrow.html"·title="trait·core::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where
19 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#211">Source</a><a·href="#method.borrow"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/borrow/trait.Borrow.html#tymethod.borrow"·class="fn">borrow</a>(&amp;self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;T</a></h4></section></summary><div·class='docblock'>Immutably·borrows·from·an·owned·value.·<a·href="../../core/borrow/trait.Borrow.html#tymethod.borrow">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-BorrowMut%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/borrow/trait.BorrowMut.html"·title="trait·core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where19 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#211">Source</a><a·href="#method.borrow"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/borrow/trait.Borrow.html#tymethod.borrow"·class="fn">borrow</a>(&amp;self)·-&gt;·<a·class="primitive"·href="../../std/primitive.reference.html">&amp;T</a></h4></section></summary><div·class='docblock'>Immutably·borrows·from·an·owned·value.·<a·href="../../core/borrow/trait.Borrow.html#tymethod.borrow">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-BorrowMut%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/borrow/trait.BorrowMut.html"·title="trait·core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where
20 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#218">Source</a><a·href="#method.borrow_mut"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"·class="fn">borrow_mut</a>(&amp;mut·self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;mut·T</a></h4></section></summary><div·class='docblock'>Mutably·borrows·from·an·owned·value.·<a·href="../../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-CloneToUninit-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/clone.rs.html#273">Source</a><a·href="#impl-CloneToUninit-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where20 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#218">Source</a><a·href="#method.borrow_mut"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"·class="fn">borrow_mut</a>(&amp;mut·self)·-&gt;·<a·class="primitive"·href="../../std/primitive.reference.html">&amp;mut·T</a></h4></section></summary><div·class='docblock'>Mutably·borrows·from·an·owned·value.·<a·href="../../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-CloneToUninit-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/clone.rs.html#273">Source</a><a·href="#impl-CloneToUninit-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where
21 ····T:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/clone.rs.html#275">Source</a><a·href="#method.clone_to_uninit"·class="anchor">§</a><h4·class="code-header">unsafe·fn·<a·href="../../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit"·class="fn">clone_to_uninit</a>(&amp;self,·dst:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.pointer.html">*mut·</a><a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.u8.html">u8</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>clone_to_uninit</code>)</span></div></span><div·class='docblock'>Performs·copy-assignment·from·<code>self</code>·to·<code>dst</code>.·<a·href="../../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-From%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#765">Source</a><a·href="#impl-From%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·T</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#768">Source</a><a·href="#method.from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>21 ····T:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/clone.rs.html#275">Source</a><a·href="#method.clone_to_uninit"·class="anchor">§</a><h4·class="code-header">unsafe·fn·<a·href="../../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit"·class="fn">clone_to_uninit</a>(&amp;self,·dst:·<a·class="primitive"·href="../../std/primitive.pointer.html">*mut·</a><a·class="primitive"·href="../../std/primitive.u8.html">u8</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>clone_to_uninit</code>)</span></div></span><div·class='docblock'>Performs·copy-assignment·from·<code>self</code>·to·<code>dst</code>.·<a·href="../../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-From%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#765">Source</a><a·href="#impl-From%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·T</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#768">Source</a><a·href="#method.from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>
22 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where22 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where
23 ····U:·<a·class="trait"·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#758">Source</a><a·href="#method.into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>23 ····U:·<a·class="trait"·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#758">Source</a><a·href="#method.into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>
24 <p>That·is,·this·conversion·is·whatever·the·implementation·of24 <p>That·is,·this·conversion·is·whatever·the·implementation·of
25 <code><a·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>25 <code><a·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>
26 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#82-84">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../alloc/borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where26 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#82-84">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../alloc/borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where
27 ····T:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#86">Source</a><a·href="#associatedtype.Owned"·class="anchor">§</a><h4·class="code-header">type·<a·href="../../alloc/borrow/trait.ToOwned.html#associatedtype.Owned"·class="associatedtype">Owned</a>·=·T</h4></section></summary><div·class='docblock'>The·resulting·type·after·obtaining·ownership.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.to_owned"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#87">Source</a><a·href="#method.to_owned"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../alloc/borrow/trait.ToOwned.html#tymethod.to_owned"·class="fn">to_owned</a>(&amp;self)·-&gt;·T</h4></section></summary><div·class='docblock'>Creates·owned·data·from·borrowed·data,·usually·by·cloning.·<a·href="../../alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#91">Source</a><a·href="#method.clone_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../alloc/borrow/trait.ToOwned.html#method.clone_into"·class="fn">clone_into</a>(&amp;self,·target:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../../alloc/borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#805-807">Source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where27 ····T:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#86">Source</a><a·href="#associatedtype.Owned"·class="anchor">§</a><h4·class="code-header">type·<a·href="../../alloc/borrow/trait.ToOwned.html#associatedtype.Owned"·class="associatedtype">Owned</a>·=·T</h4></section></summary><div·class='docblock'>The·resulting·type·after·obtaining·ownership.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.to_owned"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#87">Source</a><a·href="#method.to_owned"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../alloc/borrow/trait.ToOwned.html#tymethod.to_owned"·class="fn">to_owned</a>(&amp;self)·-&gt;·T</h4></section></summary><div·class='docblock'>Creates·owned·data·from·borrowed·data,·usually·by·cloning.·<a·href="../../alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#91">Source</a><a·href="#method.clone_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../alloc/borrow/trait.ToOwned.html#method.clone_into"·class="fn">clone_into</a>(&amp;self,·target:·<a·class="primitive"·href="../../std/primitive.reference.html">&amp;mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../../alloc/borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#805-807">Source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where
28 ····U:·<a·class="trait"·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#809">Source</a><a·href="#associatedtype.Error-1"·class="anchor">§</a><h4·class="code-header">type·<a·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<a·class="enum"·href="../../core/convert/enum.Infallible.html"·title="enum·core::convert::Infallible">Infallible</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_from"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#812">Source</a><a·href="#method.try_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.TryFrom.html#tymethod.try_from"·class="fn">try_from</a>(value:·U)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;T,·&lt;T·as·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;&gt;::<a·class="associatedtype"·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryInto%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#790-792">Source</a><a·href="#impl-TryInto%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where28 ····U:·<a·class="trait"·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#809">Source</a><a·href="#associatedtype.Error-1"·class="anchor">§</a><h4·class="code-header">type·<a·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<a·class="enum"·href="../../core/convert/enum.Infallible.html"·title="enum·core::convert::Infallible">Infallible</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_from"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#812">Source</a><a·href="#method.try_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.TryFrom.html#tymethod.try_from"·class="fn">try_from</a>(value:·U)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;T,·&lt;T·as·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;&gt;::<a·class="associatedtype"·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryInto%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#790-792">Source</a><a·href="#impl-TryInto%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where
29 ····U:·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#794">Source</a><a·href="#associatedtype.Error"·class="anchor">§</a><h4·class="code-header">type·<a·href="../../core/convert/trait.TryInto.html#associatedtype.Error"·class="associatedtype">Error</a>·=·&lt;U·as·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#797">Source</a><a·href="#method.try_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.TryInto.html#tymethod.try_into"·class="fn">try_into</a>(self)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;U,·&lt;U·as·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>29 ····U:·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#794">Source</a><a·href="#associatedtype.Error"·class="anchor">§</a><h4·class="code-header">type·<a·href="../../core/convert/trait.TryInto.html#associatedtype.Error"·class="associatedtype">Error</a>·=·&lt;U·as·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#797">Source</a><a·href="#method.try_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.TryInto.html#tymethod.try_into"·class="fn">try_into</a>(self)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;U,·&lt;U·as·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>
47.9 KB
./usr/share/doc/rust-doc/html/test/stats/trait.Stats.html
    
Offset 1, 62 lines modifiedOffset 1, 62 lines modified
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="Trait·that·provides·simple·descriptive·statistics·on·a·univariate·set·of·numeric·samples."><title>Stats·in·test::stats·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="test"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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><a·class="logo-container"·href="../../test/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../test/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../test/index.html">test</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»    2025-01-07)» (built»   from»       a»      source»tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Stats</a></h2><h3><a·href="#required-methods">Required·Methods</a></h3><ul·class="block"><li><a·href="#tymethod.iqr"·title="iqr">iqr</a></li><li><a·href="#tymethod.max"·title="max">max</a></li><li><a·href="#tymethod.mean"·title="mean">mean</a></li><li><a·href="#tymethod.median"·title="median">median</a></li><li><a·href="#tymethod.median_abs_dev"·title="median_abs_dev">median_abs_dev</a></li><li><a·href="#tymethod.median_abs_dev_pct"·title="median_abs_dev_pct">median_abs_dev_pct</a></li><li><a·href="#tymethod.min"·title="min">min</a></li><li><a·href="#tymethod.percentile"·title="percentile">percentile</a></li><li><a·href="#tymethod.quartiles"·title="quartiles">quartiles</a></li><li><a·href="#tymethod.std_dev"·title="std_dev">std_dev</a></li><li><a·href="#tymethod.std_dev_pct"·title="std_dev_pct">std_dev_pct</a></li><li><a·href="#tymethod.sum"·title="sum">sum</a></li><li><a·href="#tymethod.var"·title="var">var</a></li></ul><h3><a·href="#foreign-impls">Implementations·on·Foreign·Types</a></h3><ul·class="block"><li><a·href="#impl-Stats-for-%5Bf64%5D"·title="[f64]">[f64]</a></li></ul><h3><a·href="#implementors">Implementors</a></h3></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·test::<wbr>stats</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">test</a>::<wbr><a·href="index.html">stats</a></span><h1>Trait·<span·class="trait">Stats</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/test/stats.rs.html#13-98">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·trait·Stats·{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="Trait·that·provides·simple·descriptive·statistics·on·a·univariate·set·of·numeric·samples."><title>Stats·in·test::stats·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="test"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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><a·class="logo-container"·href="../../test/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../test/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../test/index.html">test</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»    2025-01-07)» (built»   from»       a»      source»tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Stats</a></h2><h3><a·href="#required-methods">Required·Methods</a></h3><ul·class="block"><li><a·href="#tymethod.iqr"·title="iqr">iqr</a></li><li><a·href="#tymethod.max"·title="max">max</a></li><li><a·href="#tymethod.mean"·title="mean">mean</a></li><li><a·href="#tymethod.median"·title="median">median</a></li><li><a·href="#tymethod.median_abs_dev"·title="median_abs_dev">median_abs_dev</a></li><li><a·href="#tymethod.median_abs_dev_pct"·title="median_abs_dev_pct">median_abs_dev_pct</a></li><li><a·href="#tymethod.min"·title="min">min</a></li><li><a·href="#tymethod.percentile"·title="percentile">percentile</a></li><li><a·href="#tymethod.quartiles"·title="quartiles">quartiles</a></li><li><a·href="#tymethod.std_dev"·title="std_dev">std_dev</a></li><li><a·href="#tymethod.std_dev_pct"·title="std_dev_pct">std_dev_pct</a></li><li><a·href="#tymethod.sum"·title="sum">sum</a></li><li><a·href="#tymethod.var"·title="var">var</a></li></ul><h3><a·href="#foreign-impls">Implementations·on·Foreign·Types</a></h3><ul·class="block"><li><a·href="#impl-Stats-for-%5Bf64%5D"·title="[f64]">[f64]</a></li></ul><h3><a·href="#implementors">Implementors</a></h3></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·test::<wbr>stats</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">test</a>::<wbr><a·href="index.html">stats</a></span><h1>Trait·<span·class="trait">Stats</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/test/stats.rs.html#13-98">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·trait·Stats·{
2 <details·class="toggle·type-contents-toggle"><summary·class="hideme"><span>Show·13·methods</span></summary>····//·Required·methods2 <details·class="toggle·type-contents-toggle"><summary·class="hideme"><span>Show·13·methods</span></summary>····//·Required·methods
3 ····fn·<a·href="#tymethod.sum"·class="fn">sum</a>(&amp;self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.f64.html">f64</a>;3 ····fn·<a·href="#tymethod.sum"·class="fn">sum</a>(&amp;self)·-&gt;·<a·class="primitive"·href="../../std/primitive.f64.html">f64</a>;
4 <span·class="item-spacer"></span>····fn·<a·href="#tymethod.min"·class="fn">min</a>(&amp;self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.f64.html">f64</a>;4 <span·class="item-spacer"></span>····fn·<a·href="#tymethod.min"·class="fn">min</a>(&amp;self)·-&gt;·<a·class="primitive"·href="../../std/primitive.f64.html">f64</a>;
5 <span·class="item-spacer"></span>····fn·<a·href="#tymethod.max"·class="fn">max</a>(&amp;self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.f64.html">f64</a>;5 <span·class="item-spacer"></span>····fn·<a·href="#tymethod.max"·class="fn">max</a>(&amp;self)·-&gt;·<a·class="primitive"·href="../../std/primitive.f64.html">f64</a>;
6 <span·class="item-spacer"></span>····fn·<a·href="#tymethod.mean"·class="fn">mean</a>(&amp;self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.f64.html">f64</a>;6 <span·class="item-spacer"></span>····fn·<a·href="#tymethod.mean"·class="fn">mean</a>(&amp;self)·-&gt;·<a·class="primitive"·href="../../std/primitive.f64.html">f64</a>;
7 <span·class="item-spacer"></span>····fn·<a·href="#tymethod.median"·class="fn">median</a>(&amp;self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.f64.html">f64</a>;7 <span·class="item-spacer"></span>····fn·<a·href="#tymethod.median"·class="fn">median</a>(&amp;self)·-&gt;·<a·class="primitive"·href="../../std/primitive.f64.html">f64</a>;
8 <span·class="item-spacer"></span>····fn·<a·href="#tymethod.var"·class="fn">var</a>(&amp;self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.f64.html">f64</a>;8 <span·class="item-spacer"></span>····fn·<a·href="#tymethod.var"·class="fn">var</a>(&amp;self)·-&gt;·<a·class="primitive"·href="../../std/primitive.f64.html">f64</a>;
9 <span·class="item-spacer"></span>····fn·<a·href="#tymethod.std_dev"·class="fn">std_dev</a>(&amp;self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.f64.html">f64</a>;9 <span·class="item-spacer"></span>····fn·<a·href="#tymethod.std_dev"·class="fn">std_dev</a>(&amp;self)·-&gt;·<a·class="primitive"·href="../../std/primitive.f64.html">f64</a>;
10 <span·class="item-spacer"></span>····fn·<a·href="#tymethod.std_dev_pct"·class="fn">std_dev_pct</a>(&amp;self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.f64.html">f64</a>;10 <span·class="item-spacer"></span>····fn·<a·href="#tymethod.std_dev_pct"·class="fn">std_dev_pct</a>(&amp;self)·-&gt;·<a·class="primitive"·href="../../std/primitive.f64.html">f64</a>;
11 <span·class="item-spacer"></span>····fn·<a·href="#tymethod.median_abs_dev"·class="fn">median_abs_dev</a>(&amp;self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.f64.html">f64</a>;11 <span·class="item-spacer"></span>····fn·<a·href="#tymethod.median_abs_dev"·class="fn">median_abs_dev</a>(&amp;self)·-&gt;·<a·class="primitive"·href="../../std/primitive.f64.html">f64</a>;
12 <span·class="item-spacer"></span>····fn·<a·href="#tymethod.median_abs_dev_pct"·class="fn">median_abs_dev_pct</a>(&amp;self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.f64.html">f64</a>;12 <span·class="item-spacer"></span>····fn·<a·href="#tymethod.median_abs_dev_pct"·class="fn">median_abs_dev_pct</a>(&amp;self)·-&gt;·<a·class="primitive"·href="../../std/primitive.f64.html">f64</a>;
13 <span·class="item-spacer"></span>····fn·<a·href="#tymethod.percentile"·class="fn">percentile</a>(&amp;self,·pct:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.f64.html">f64</a>)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.f64.html">f64</a>;13 <span·class="item-spacer"></span>····fn·<a·href="#tymethod.percentile"·class="fn">percentile</a>(&amp;self,·pct:·<a·class="primitive"·href="../../std/primitive.f64.html">f64</a>)·-&gt;·<a·class="primitive"·href="../../std/primitive.f64.html">f64</a>;
14 <span·class="item-spacer"></span>····fn·<a·href="#tymethod.quartiles"·class="fn">quartiles</a>(&amp;self)·-&gt;·(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.f64.html">f64</a>,·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.f64.html">f64</a>,·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.f64.html">f64</a>);14 <span·class="item-spacer"></span>····fn·<a·href="#tymethod.quartiles"·class="fn">quartiles</a>(&amp;self)·-&gt;·(<a·class="primitive"·href="../../std/primitive.f64.html">f64</a>,·<a·class="primitive"·href="../../std/primitive.f64.html">f64</a>,·<a·class="primitive"·href="../../std/primitive.f64.html">f64</a>);
15 <span·class="item-spacer"></span>····fn·<a·href="#tymethod.iqr"·class="fn">iqr</a>(&amp;self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.f64.html">f64</a>;15 <span·class="item-spacer"></span>····fn·<a·href="#tymethod.iqr"·class="fn">iqr</a>(&amp;self)·-&gt;·<a·class="primitive"·href="../../std/primitive.f64.html">f64</a>;
16 </details>}</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Trait·that·provides·simple·descriptive·statistics·on·a·univariate·set·of·numeric·samples.</p>16 </details>}</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Trait·that·provides·simple·descriptive·statistics·on·a·univariate·set·of·numeric·samples.</p>
17 </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.sum"·class="method"><a·class="src·rightside"·href="../../src/test/stats.rs.html#22">Source</a><h4·class="code-header">fn·<a·href="#tymethod.sum"·class="fn">sum</a>(&amp;self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.f64.html">f64</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span></summary><div·class="docblock"><p>Sum·of·the·samples.</p>17 </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.sum"·class="method"><a·class="src·rightside"·href="../../src/test/stats.rs.html#22">Source</a><h4·class="code-header">fn·<a·href="#tymethod.sum"·class="fn">sum</a>(&amp;self)·-&gt;·<a·class="primitive"·href="../../std/primitive.f64.html">f64</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span></summary><div·class="docblock"><p>Sum·of·the·samples.</p>
18 <p>Note:·this·method·sacrifices·performance·at·the·altar·of·accuracy18 <p>Note:·this·method·sacrifices·performance·at·the·altar·of·accuracy
19 Depends·on·IEEE·754·arithmetic·guarantees.·See·proof·of·correctness·at:19 Depends·on·IEEE·754·arithmetic·guarantees.·See·proof·of·correctness·at:
20 <a·href="https://www.cs.cmu.edu/~quake-papers/robust-arithmetic.ps">“Adaptive·Precision·Floating-Point·Arithmetic·and·Fast·Robust·Geometric20 <a·href="https://www.cs.cmu.edu/~quake-papers/robust-arithmetic.ps">“Adaptive·Precision·Floating-Point·Arithmetic·and·Fast·Robust·Geometric
21 Predicates”</a></p>21 Predicates”</a></p>
22 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="tymethod.min"·class="method"><a·class="src·rightside"·href="../../src/test/stats.rs.html#25">Source</a><h4·class="code-header">fn·<a·href="#tymethod.min"·class="fn">min</a>(&amp;self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.f64.html">f64</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span></summary><div·class="docblock"><p>Minimum·value·of·the·samples.</p>22 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="tymethod.min"·class="method"><a·class="src·rightside"·href="../../src/test/stats.rs.html#25">Source</a><h4·class="code-header">fn·<a·href="#tymethod.min"·class="fn">min</a>(&amp;self)·-&gt;·<a·class="primitive"·href="../../std/primitive.f64.html">f64</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span></summary><div·class="docblock"><p>Minimum·value·of·the·samples.</p>
23 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="tymethod.max"·class="method"><a·class="src·rightside"·href="../../src/test/stats.rs.html#28">Source</a><h4·class="code-header">fn·<a·href="#tymethod.max"·class="fn">max</a>(&amp;self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.f64.html">f64</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span></summary><div·class="docblock"><p>Maximum·value·of·the·samples.</p>23 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="tymethod.max"·class="method"><a·class="src·rightside"·href="../../src/test/stats.rs.html#28">Source</a><h4·class="code-header">fn·<a·href="#tymethod.max"·class="fn">max</a>(&amp;self)·-&gt;·<a·class="primitive"·href="../../std/primitive.f64.html">f64</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span></summary><div·class="docblock"><p>Maximum·value·of·the·samples.</p>
24 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="tymethod.mean"·class="method"><a·class="src·rightside"·href="../../src/test/stats.rs.html#33">Source</a><h4·class="code-header">fn·<a·href="#tymethod.mean"·class="fn">mean</a>(&amp;self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.f64.html">f64</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span></summary><div·class="docblock"><p>Arithmetic·mean·(average)·of·the·samples:·sum·divided·by·sample-count.</p>24 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="tymethod.mean"·class="method"><a·class="src·rightside"·href="../../src/test/stats.rs.html#33">Source</a><h4·class="code-header">fn·<a·href="#tymethod.mean"·class="fn">mean</a>(&amp;self)·-&gt;·<a·class="primitive"·href="../../std/primitive.f64.html">f64</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span></summary><div·class="docblock"><p>Arithmetic·mean·(average)·of·the·samples:·sum·divided·by·sample-count.</p>
25 <p>See:·<a·href="https://en.wikipedia.org/wiki/Arithmetic_mean">https://en.wikipedia.org/wiki/Arithmetic_mean</a></p>25 <p>See:·<a·href="https://en.wikipedia.org/wiki/Arithmetic_mean">https://en.wikipedia.org/wiki/Arithmetic_mean</a></p>
26 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="tymethod.median"·class="method"><a·class="src·rightside"·href="../../src/test/stats.rs.html#39">Source</a><h4·class="code-header">fn·<a·href="#tymethod.median"·class="fn">median</a>(&amp;self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.f64.html">f64</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span></summary><div·class="docblock"><p>Median·of·the·samples:·value·separating·the·lower·half·of·the·samples·from·the·higher·half.26 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="tymethod.median"·class="method"><a·class="src·rightside"·href="../../src/test/stats.rs.html#39">Source</a><h4·class="code-header">fn·<a·href="#tymethod.median"·class="fn">median</a>(&amp;self)·-&gt;·<a·class="primitive"·href="../../std/primitive.f64.html">f64</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span></summary><div·class="docblock"><p>Median·of·the·samples:·value·separating·the·lower·half·of·the·samples·from·the·higher·half.
27 Equal·to·<code>self.percentile(50.0)</code>.</p>27 Equal·to·<code>self.percentile(50.0)</code>.</p>
28 <p>See:·<a·href="https://en.wikipedia.org/wiki/Median">https://en.wikipedia.org/wiki/Median</a></p>28 <p>See:·<a·href="https://en.wikipedia.org/wiki/Median">https://en.wikipedia.org/wiki/Median</a></p>
29 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="tymethod.var"·class="method"><a·class="src·rightside"·href="../../src/test/stats.rs.html#48">Source</a><h4·class="code-header">fn·<a·href="#tymethod.var"·class="fn">var</a>(&amp;self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.f64.html">f64</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span></summary><div·class="docblock"><p>Variance·of·the·samples:·bias-corrected·mean·of·the·squares·of·the·differences·of·each29 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="tymethod.var"·class="method"><a·class="src·rightside"·href="../../src/test/stats.rs.html#48">Source</a><h4·class="code-header">fn·<a·href="#tymethod.var"·class="fn">var</a>(&amp;self)·-&gt;·<a·class="primitive"·href="../../std/primitive.f64.html">f64</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span></summary><div·class="docblock"><p>Variance·of·the·samples:·bias-corrected·mean·of·the·squares·of·the·differences·of·each
30 sample·from·the·sample·mean.·Note·that·this·calculates·the·<em>sample·variance</em>·rather·than·the30 sample·from·the·sample·mean.·Note·that·this·calculates·the·<em>sample·variance</em>·rather·than·the
31 population·variance,·which·is·assumed·to·be·unknown.·It·therefore·corrects·the·<code>(n-1)/n</code>31 population·variance,·which·is·assumed·to·be·unknown.·It·therefore·corrects·the·<code>(n-1)/n</code>
32 bias·that·would·appear·if·we·calculated·a·population·variance,·by·dividing·by·<code>(n-1)</code>·rather32 bias·that·would·appear·if·we·calculated·a·population·variance,·by·dividing·by·<code>(n-1)</code>·rather
33 than·<code>n</code>.</p>33 than·<code>n</code>.</p>
34 <p>See:·<a·href="https://en.wikipedia.org/wiki/Variance">https://en.wikipedia.org/wiki/Variance</a></p>34 <p>See:·<a·href="https://en.wikipedia.org/wiki/Variance">https://en.wikipedia.org/wiki/Variance</a></p>
35 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="tymethod.std_dev"·class="method"><a·class="src·rightside"·href="../../src/test/stats.rs.html#56">Source</a><h4·class="code-header">fn·<a·href="#tymethod.std_dev"·class="fn">std_dev</a>(&amp;self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.f64.html">f64</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span></summary><div·class="docblock"><p>Standard·deviation:·the·square·root·of·the·sample·variance.</p>35 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="tymethod.std_dev"·class="method"><a·class="src·rightside"·href="../../src/test/stats.rs.html#56">Source</a><h4·class="code-header">fn·<a·href="#tymethod.std_dev"·class="fn">std_dev</a>(&amp;self)·-&gt;·<a·class="primitive"·href="../../std/primitive.f64.html">f64</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span></summary><div·class="docblock"><p>Standard·deviation:·the·square·root·of·the·sample·variance.</p>
36 <p>Note:·this·is·not·a·robust·statistic·for·non-normal·distributions.·Prefer·the36 <p>Note:·this·is·not·a·robust·statistic·for·non-normal·distributions.·Prefer·the
37 <code>median_abs_dev</code>·for·unknown·distributions.</p>37 <code>median_abs_dev</code>·for·unknown·distributions.</p>
38 <p>See:·<a·href="https://en.wikipedia.org/wiki/Standard_deviation">https://en.wikipedia.org/wiki/Standard_deviation</a></p>38 <p>See:·<a·href="https://en.wikipedia.org/wiki/Standard_deviation">https://en.wikipedia.org/wiki/Standard_deviation</a></p>
39 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="tymethod.std_dev_pct"·class="method"><a·class="src·rightside"·href="../../src/test/stats.rs.html#62">Source</a><h4·class="code-header">fn·<a·href="#tymethod.std_dev_pct"·class="fn">std_dev_pct</a>(&amp;self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.f64.html">f64</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span></summary><div·class="docblock"><p>Standard·deviation·as·a·percent·of·the·mean·value.·See·<code>std_dev</code>·and·<code>mean</code>.</p>39 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="tymethod.std_dev_pct"·class="method"><a·class="src·rightside"·href="../../src/test/stats.rs.html#62">Source</a><h4·class="code-header">fn·<a·href="#tymethod.std_dev_pct"·class="fn">std_dev_pct</a>(&amp;self)·-&gt;·<a·class="primitive"·href="../../std/primitive.f64.html">f64</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span></summary><div·class="docblock"><p>Standard·deviation·as·a·percent·of·the·mean·value.·See·<code>std_dev</code>·and·<code>mean</code>.</p>
40 <p>Note:·this·is·not·a·robust·statistic·for·non-normal·distributions.·Prefer·the40 <p>Note:·this·is·not·a·robust·statistic·for·non-normal·distributions.·Prefer·the
41 <code>median_abs_dev_pct</code>·for·unknown·distributions.</p>41 <code>median_abs_dev_pct</code>·for·unknown·distributions.</p>
42 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="tymethod.median_abs_dev"·class="method"><a·class="src·rightside"·href="../../src/test/stats.rs.html#71">Source</a><h4·class="code-header">fn·<a·href="#tymethod.median_abs_dev"·class="fn">median_abs_dev</a>(&amp;self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.f64.html">f64</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span></summary><div·class="docblock"><p>Scaled·median·of·the·absolute·deviations·of·each·sample·from·the·sample·median.·This·is·a42 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="tymethod.median_abs_dev"·class="method"><a·class="src·rightside"·href="../../src/test/stats.rs.html#71">Source</a><h4·class="code-header">fn·<a·href="#tymethod.median_abs_dev"·class="fn">median_abs_dev</a>(&amp;self)·-&gt;·<a·class="primitive"·href="../../std/primitive.f64.html">f64</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span></summary><div·class="docblock"><p>Scaled·median·of·the·absolute·deviations·of·each·sample·from·the·sample·median.·This·is·a
43 robust·(distribution-agnostic)·estimator·of·sample·variability.·Use·this·in·preference·to43 robust·(distribution-agnostic)·estimator·of·sample·variability.·Use·this·in·preference·to
44 <code>std_dev</code>·if·you·cannot·assume·your·sample·is·normally·distributed.·Note·that·this·is·scaled44 <code>std_dev</code>·if·you·cannot·assume·your·sample·is·normally·distributed.·Note·that·this·is·scaled
45 by·the·constant·<code>1.4826</code>·to·allow·its·use·as·a·consistent·estimator·for·the·standard45 by·the·constant·<code>1.4826</code>·to·allow·its·use·as·a·consistent·estimator·for·the·standard
46 deviation.</p>46 deviation.</p>
47 <p>See:·<a·href="https://en.wikipedia.org/wiki/Median_absolute_deviation">https://en.wikipedia.org/wiki/Median_absolute_deviation</a></p>47 <p>See:·<a·href="https://en.wikipedia.org/wiki/Median_absolute_deviation">https://en.wikipedia.org/wiki/Median_absolute_deviation</a></p>
48 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="tymethod.median_abs_dev_pct"·class="method"><a·class="src·rightside"·href="../../src/test/stats.rs.html#74">Source</a><h4·class="code-header">fn·<a·href="#tymethod.median_abs_dev_pct"·class="fn">median_abs_dev_pct</a>(&amp;self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.f64.html">f64</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span></summary><div·class="docblock"><p>Median·absolute·deviation·as·a·percent·of·the·median.·See·<code>median_abs_dev</code>·and·<code>median</code>.</p>48 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="tymethod.median_abs_dev_pct"·class="method"><a·class="src·rightside"·href="../../src/test/stats.rs.html#74">Source</a><h4·class="code-header">fn·<a·href="#tymethod.median_abs_dev_pct"·class="fn">median_abs_dev_pct</a>(&amp;self)·-&gt;·<a·class="primitive"·href="../../std/primitive.f64.html">f64</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span></summary><div·class="docblock"><p>Median·absolute·deviation·as·a·percent·of·the·median.·See·<code>median_abs_dev</code>·and·<code>median</code>.</p>
49 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="tymethod.percentile"·class="method"><a·class="src·rightside"·href="../../src/test/stats.rs.html#83">Source</a><h4·class="code-header">fn·<a·href="#tymethod.percentile"·class="fn">percentile</a>(&amp;self,·pct:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.f64.html">f64</a>)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.f64.html">f64</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span></summary><div·class="docblock"><p>Percentile:·the·value·below·which·<code>pct</code>·percent·of·the·values·in·<code>self</code>·fall.·For·example,49 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="tymethod.percentile"·class="method"><a·class="src·rightside"·href="../../src/test/stats.rs.html#83">Source</a><h4·class="code-header">fn·<a·href="#tymethod.percentile"·class="fn">percentile</a>(&amp;self,·pct:·<a·class="primitive"·href="../../std/primitive.f64.html">f64</a>)·-&gt;·<a·class="primitive"·href="../../std/primitive.f64.html">f64</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span></summary><div·class="docblock"><p>Percentile:·the·value·below·which·<code>pct</code>·percent·of·the·values·in·<code>self</code>·fall.·For·example,
50 percentile(95.0)·will·return·the·value·<code>v</code>·such·that·95%·of·the·samples·<code>s</code>·in·<code>self</code>50 percentile(95.0)·will·return·the·value·<code>v</code>·such·that·95%·of·the·samples·<code>s</code>·in·<code>self</code>
51 satisfy·<code>s·&lt;=·v</code>.</p>51 satisfy·<code>s·&lt;=·v</code>.</p>
52 <p>Calculated·by·linear·interpolation·between·closest·ranks.</p>52 <p>Calculated·by·linear·interpolation·between·closest·ranks.</p>
53 <p>See:·<a·href="https://en.wikipedia.org/wiki/Percentile">https://en.wikipedia.org/wiki/Percentile</a></p>53 <p>See:·<a·href="https://en.wikipedia.org/wiki/Percentile">https://en.wikipedia.org/wiki/Percentile</a></p>
54 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="tymethod.quartiles"·class="method"><a·class="src·rightside"·href="../../src/test/stats.rs.html#91">Source</a><h4·class="code-header">fn·<a·href="#tymethod.quartiles"·class="fn">quartiles</a>(&amp;self)·-&gt;·(<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.f64.html">f64</a>,·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.f64.html">f64</a>,·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.f64.html">f64</a>)</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span></summary><div·class="docblock"><p>Quartiles·of·the·sample:·three·values·that·divide·the·sample·into·four·equal·groups,·each54 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="tymethod.quartiles"·class="method"><a·class="src·rightside"·href="../../src/test/stats.rs.html#91">Source</a><h4·class="code-header">fn·<a·href="#tymethod.quartiles"·class="fn">quartiles</a>(&amp;self)·-&gt;·(<a·class="primitive"·href="../../std/primitive.f64.html">f64</a>,·<a·class="primitive"·href="../../std/primitive.f64.html">f64</a>,·<a·class="primitive"·href="../../std/primitive.f64.html">f64</a>)</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span></summary><div·class="docblock"><p>Quartiles·of·the·sample:·three·values·that·divide·the·sample·into·four·equal·groups,·each
55 with·1/4·of·the·data.·The·middle·value·is·the·median.·See·<code>median</code>·and·<code>percentile</code>.·This55 with·1/4·of·the·data.·The·middle·value·is·the·median.·See·<code>median</code>·and·<code>percentile</code>.·This
56 function·may·calculate·the·3·quartiles·more·efficiently·than·3·calls·to·<code>percentile</code>,·but56 function·may·calculate·the·3·quartiles·more·efficiently·than·3·calls·to·<code>percentile</code>,·but
57 is·otherwise·equivalent.</p>57 is·otherwise·equivalent.</p>
58 <p>See·also:·<a·href="https://en.wikipedia.org/wiki/Quartile">https://en.wikipedia.org/wiki/Quartile</a></p>58 <p>See·also:·<a·href="https://en.wikipedia.org/wiki/Quartile">https://en.wikipedia.org/wiki/Quartile</a></p>
59 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="tymethod.iqr"·class="method"><a·class="src·rightside"·href="../../src/test/stats.rs.html#97">Source</a><h4·class="code-header">fn·<a·href="#tymethod.iqr"·class="fn">iqr</a>(&amp;self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.f64.html">f64</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span></summary><div·class="docblock"><p>Inter-quartile·range:·the·difference·between·the·25th·percentile·(1st·quartile)·and·the·75th59 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="tymethod.iqr"·class="method"><a·class="src·rightside"·href="../../src/test/stats.rs.html#97">Source</a><h4·class="code-header">fn·<a·href="#tymethod.iqr"·class="fn">iqr</a>(&amp;self)·-&gt;·<a·class="primitive"·href="../../std/primitive.f64.html">f64</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span></summary><div·class="docblock"><p>Inter-quartile·range:·the·difference·between·the·25th·percentile·(1st·quartile)·and·the·75th
60 percentile·(3rd·quartile).·See·<code>quartiles</code>.</p>60 percentile·(3rd·quartile).·See·<code>quartiles</code>.</p>
61 <p>See·also:·<a·href="https://en.wikipedia.org/wiki/Interquartile_range">https://en.wikipedia.org/wiki/Interquartile_range</a></p>61 <p>See·also:·<a·href="https://en.wikipedia.org/wiki/Interquartile_range">https://en.wikipedia.org/wiki/Interquartile_range</a></p>
62 </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-Stats-for-%5Bf64%5D"·class="impl"><a·class="src·rightside"·href="../../src/test/stats.rs.html#138-256">Source</a><a·href="#impl-Stats-for-%5Bf64%5D"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="trait.Stats.html"·title="trait·test::stats::Stats">Stats</a>·for·[<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.f64.html">f64</a>]</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.sum"·class="method·trait-impl"><a·class="src·rightside"·href="../../sr[·...·truncated·by·diffoscope;·len:·7958,·SHA:·3f4c05794679f546a235ea2e309c3eab0c120abe935dc93bcd350b8d44480fb8·...·]/std/primitive.f64.html">f64</a></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span></details></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/test/stats/trait.Stats.js"·data-ignore-extern-crates="std"·async></script></section></div></main></body></html>62 </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-Stats-for-%5Bf64%5D"·class="impl"><a·class="src·rightside"·href="../../src/test/stats.rs.html#138-256">Source</a><a·href="#impl-Stats-for-%5Bf64%5D"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="trait.Stats.html"·title="trait·test::stats::Stats">Stats</a>·for·[<a·class="primitive"·href="../../std/primitive.f64.html">f64</a>]</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.sum"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/test/stats.rs.html#140-17[·...·truncated·by·diffoscope;·len:·7499,·SHA:·7e57e66b79331755f011c03e5908f81f4eaf56f28e1d567c5197e5bd427fa2d0·...·]/std/primitive.f64.html">f64</a></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span></details></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/test/stats/trait.Stats.js"·data-ignore-extern-crates="std"·async></script></section></div></main></body></html>
45.2 KB
./usr/share/doc/rust-doc/html/test/struct.Options.html
    
Offset 1, 18 lines modifiedOffset 1, 18 lines modified
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="Options·for·the·test·run·defined·by·the·caller·(instead·of·CLI·arguments).·In·case·we·want·to·add·other·options·as·well,·just·add·them·in·this·struct."><title>Options·in·test·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../"·data-static-root-path="../static.files/"·data-current-crate="test"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../test/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../test/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../test/index.html">test</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»2025-01-07)»     (built»       from»   a»  source»    tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Options</a></h2><h3><a·href="#fields">Fields</a></h3><ul·class="block·structfield"><li><a·href="#structfield.display_output"·title="display_output">display_output</a></li><li><a·href="#structfield.panic_abort"·title="panic_abort">panic_abort</a></li></ul><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.display_output"·title="display_output">display_output</a></li><li><a·href="#method.new"·title="new">new</a></li><li><a·href="#method.panic_abort"·title="panic_abort">panic_abort</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-Options"·title="Clone">Clone</a></li><li><a·href="#impl-Copy-for-Options"·title="Copy">Copy</a></li><li><a·href="#impl-Debug-for-Options"·title="Debug">Debug</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-Options"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Options"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Options"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-Options"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-Options"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Options"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2·class="in-crate"><a·href="index.html">In·crate·test</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">test</a></span><h1>Struct·<span·class="struct">Options</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/test/options.rs.html#65-68">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·Options·{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="Options·for·the·test·run·defined·by·the·caller·(instead·of·CLI·arguments).·In·case·we·want·to·add·other·options·as·well,·just·add·them·in·this·struct."><title>Options·in·test·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../"·data-static-root-path="../static.files/"·data-current-crate="test"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../test/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../test/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../test/index.html">test</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»2025-01-07)»     (built»       from»   a»  source»    tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Options</a></h2><h3><a·href="#fields">Fields</a></h3><ul·class="block·structfield"><li><a·href="#structfield.display_output"·title="display_output">display_output</a></li><li><a·href="#structfield.panic_abort"·title="panic_abort">panic_abort</a></li></ul><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.display_output"·title="display_output">display_output</a></li><li><a·href="#method.new"·title="new">new</a></li><li><a·href="#method.panic_abort"·title="panic_abort">panic_abort</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-Options"·title="Clone">Clone</a></li><li><a·href="#impl-Copy-for-Options"·title="Copy">Copy</a></li><li><a·href="#impl-Debug-for-Options"·title="Debug">Debug</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-Options"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Options"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Options"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-Options"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-Options"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Options"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2·class="in-crate"><a·href="index.html">In·crate·test</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">test</a></span><h1>Struct·<span·class="struct">Options</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/test/options.rs.html#65-68">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·Options·{
2 ····pub·display_output:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>,2 ····pub·display_output:·<a·class="primitive"·href="../std/primitive.bool.html">bool</a>,
3 ····pub·panic_abort:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>,3 ····pub·panic_abort:·<a·class="primitive"·href="../std/primitive.bool.html">bool</a>,
4 }</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Options·for·the·test·run·defined·by·the·caller·(instead·of·CLI·arguments).4 }</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Options·for·the·test·run·defined·by·the·caller·(instead·of·CLI·arguments).
5 In·case·we·want·to·add·other·options·as·well,·just·add·them·in·this·struct.</p>5 In·case·we·want·to·add·other·options·as·well,·just·add·them·in·this·struct.</p>
6 </div></details><h2·id="fields"·class="fields·section-header">Fields<a·href="#fields"·class="anchor">§</a></h2><span·id="structfield.display_output"·class="structfield·section-header"><a·href="#structfield.display_output"·class="anchor·field">§</a><code>display_output:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a></code></span><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><span·id="s[·...·truncated·by·diffoscope;·len:·2331,·SHA:·22dac9e32df0f4d1e9ea2486a7d1478f15a11ff81985c57cb70382ce69e2aecc·...·]/std/primitive.bool.html">bool</a>)·-&gt;·<a·class="struct"·href="test/struct.Options.html"·title="struct·test::test::Options">Options</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-Options"·class="impl"><a·class="src·rightside"·href="../src/test/options.rs.html#64">Source</a><a·href="#impl-Clone-for-Options"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struct"·href="test/struct.Options.html"·title="struct·test::test::Options">Options</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone"·class="method·trait-impl"><a·class="src·rightside"·href="../src/test/options.rs.html#64">Source</a><a·href="#method.clone"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/clone/trait.Clone.html#tymethod.clone"·class="fn">clone</a>(&amp;self)·-&gt;·<a·class="struct"·href="test/struct.Options.html"·title="struct·test::test::Options">Options</a></h4></section></summary><div·class='docblock'>Returns·a·copy·of·the·value.·<a·href="../core/clone/trait.Clone.html#tymethod.clone">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_from"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../src/core/clone.rs.html#174">Source</a></span><a·href="#method.clone_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/clone/trait.Clone.html#method.clone_from"·class="fn">clone_from</a>(&amp;mut·self,·source:·&amp;Self)</h4></section></summary><div·class='docblock'>Performs·copy-assignment·from·<code>source</code>.·<a·href="../core/clone/trait.Clone.html#method.clone_from">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-Options"·class="impl"><a·class="src·rightside"·href="../src/test/options.rs.html#64">Source</a><a·href="#impl-Debug-for-Options"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/fmt/trait.Debug.html"·title="trait·core::fmt::Debug">Debug</a>·for·<a·class="struct"·href="test/struct.Options.html"·title="struct·test::test::Options">Options</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../src/test/options.rs.html#64">Source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="../core/fmt/struct.Formatter.html"·title="struct·core::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="type"·href="../core/fmt/type.Result.html"·title="type·core::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt">Read·more</a></div></details></div></details><section·id="impl-Copy-for-Options"·class="impl"><a·class="src·rightside"·href="../src/test/options.rs.html#64">Source</a><a·href="#impl-Copy-for-Options"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Copy.html"·title="trait·core::marker::Copy">Copy</a>·for·<a·class="struct"·href="test/struct.Options.html"·title="struct·test::test::Options">Options</a></h3></section></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-Options"·class="impl"><a·href="#impl-Freeze-for-Options"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="struct"·href="test/struct.Options.html"·title="struct·test::test::Options">Options</a></h3></section><section·id="impl-RefUnwindSafe-for-Options"·class="impl"><a·href="#impl-RefUnwindSafe-for-Options"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="struct"·href="test/struct.Options.html"·title="struct·test::test::Options">Options</a></h3></section><section·id="impl-Send-for-Options"·class="impl"><a·href="#impl-Send-for-Options"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="struct"·href="test/struct.Options.html"·title="struct·test::test::Options">Options</a></h3></section><section·id="impl-Sync-for-Options"·class="impl"><a·href="#impl-Sync-for-Options"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="struct"·href="test/struct.Options.html"·title="struct·test::test::Options">Options</a></h3></section><section·id="impl-Unpin-for-Options"·class="impl"><a·href="#impl-Unpin-for-Options"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="struct"·href="test/struct.Options.html"·title="struct·test::test::Options">Options</a></h3></section><section·id="impl-UnwindSafe-for-Options"·class="impl"><a·href="#impl-UnwindSafe-for-Options"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="struct"·href="test/struct.Options.html"·title="struct·test::test::Options">Options</a></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementations<a·href="#blanket-implementations"·class="anchor">§</a></h2><div·id="blanket-implementations-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-Any-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/any.rs.html#138">Source</a><a·href="#impl-Any-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where6 </div></details><h2·id="fields"·class="fields·section-header">Fields<a·href="#fields"·class="anchor">§</a></h2><span·id="structfield.display_output"·class="structfield·section-header"><a·href="#structfield.display_output"·class="anchor·field">§</a><code>display_output:·<a·class="primitive"·href="../std/primitive.bool.html">bool</a></code></span><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><span·id="structfield.panic_abort"·class=[·...·truncated·by·diffoscope;·len:·2211,·SHA:·0ebdb08074199a47aaefc338bfb56df5e36ba837775f19464648578bdb58b3be·...·]/std/primitive.bool.html">bool</a>)·-&gt;·<a·class="struct"·href="test/struct.Options.html"·title="struct·test::test::Options">Options</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-Options"·class="impl"><a·class="src·rightside"·href="../src/test/options.rs.html#64">Source</a><a·href="#impl-Clone-for-Options"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struct"·href="test/struct.Options.html"·title="struct·test::test::Options">Options</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone"·class="method·trait-impl"><a·class="src·rightside"·href="../src/test/options.rs.html#64">Source</a><a·href="#method.clone"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/clone/trait.Clone.html#tymethod.clone"·class="fn">clone</a>(&amp;self)·-&gt;·<a·class="struct"·href="test/struct.Options.html"·title="struct·test::test::Options">Options</a></h4></section></summary><div·class='docblock'>Returns·a·copy·of·the·value.·<a·href="../core/clone/trait.Clone.html#tymethod.clone">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_from"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../src/core/clone.rs.html#174">Source</a></span><a·href="#method.clone_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/clone/trait.Clone.html#method.clone_from"·class="fn">clone_from</a>(&amp;mut·self,·source:·&amp;Self)</h4></section></summary><div·class='docblock'>Performs·copy-assignment·from·<code>source</code>.·<a·href="../core/clone/trait.Clone.html#method.clone_from">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-Options"·class="impl"><a·class="src·rightside"·href="../src/test/options.rs.html#64">Source</a><a·href="#impl-Debug-for-Options"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/fmt/trait.Debug.html"·title="trait·core::fmt::Debug">Debug</a>·for·<a·class="struct"·href="test/struct.Options.html"·title="struct·test::test::Options">Options</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../src/test/options.rs.html#64">Source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="../core/fmt/struct.Formatter.html"·title="struct·core::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="type"·href="../core/fmt/type.Result.html"·title="type·core::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt">Read·more</a></div></details></div></details><section·id="impl-Copy-for-Options"·class="impl"><a·class="src·rightside"·href="../src/test/options.rs.html#64">Source</a><a·href="#impl-Copy-for-Options"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Copy.html"·title="trait·core::marker::Copy">Copy</a>·for·<a·class="struct"·href="test/struct.Options.html"·title="struct·test::test::Options">Options</a></h3></section></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-Options"·class="impl"><a·href="#impl-Freeze-for-Options"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="struct"·href="test/struct.Options.html"·title="struct·test::test::Options">Options</a></h3></section><section·id="impl-RefUnwindSafe-for-Options"·class="impl"><a·href="#impl-RefUnwindSafe-for-Options"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="struct"·href="test/struct.Options.html"·title="struct·test::test::Options">Options</a></h3></section><section·id="impl-Send-for-Options"·class="impl"><a·href="#impl-Send-for-Options"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="struct"·href="test/struct.Options.html"·title="struct·test::test::Options">Options</a></h3></section><section·id="impl-Sync-for-Options"·class="impl"><a·href="#impl-Sync-for-Options"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="struct"·href="test/struct.Options.html"·title="struct·test::test::Options">Options</a></h3></section><section·id="impl-Unpin-for-Options"·class="impl"><a·href="#impl-Unpin-for-Options"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="struct"·href="test/struct.Options.html"·title="struct·test::test::Options">Options</a></h3></section><section·id="impl-UnwindSafe-for-Options"·class="impl"><a·href="#impl-UnwindSafe-for-Options"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="struct"·href="test/struct.Options.html"·title="struct·test::test::Options">Options</a></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementations<a·href="#blanket-implementations"·class="anchor">§</a></h2><div·id="blanket-implementations-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-Any-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/any.rs.html#138">Source</a><a·href="#impl-Any-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where
7 ····T:·'static·+·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/any.rs.html#139">Source</a><a·href="#method.type_id"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/any/trait.Any.html#tymethod.type_id"·class="fn">type_id</a>(&amp;self)·-&gt;·<a·class="struct"·href="../core/any/struct.TypeId.html"·title="struct·core::any::TypeId">TypeId</a></h4></section></summary><div·class='docblock'>Gets·the·<code>TypeId</code>·of·<code>self</code>.·<a·href="../core/any/trait.Any.html#tymethod.type_id">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Borrow%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/borrow/trait.Borrow.html"·title="trait·core::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where7 ····T:·'static·+·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/any.rs.html#139">Source</a><a·href="#method.type_id"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/any/trait.Any.html#tymethod.type_id"·class="fn">type_id</a>(&amp;self)·-&gt;·<a·class="struct"·href="../core/any/struct.TypeId.html"·title="struct·core::any::TypeId">TypeId</a></h4></section></summary><div·class='docblock'>Gets·the·<code>TypeId</code>·of·<code>self</code>.·<a·href="../core/any/trait.Any.html#tymethod.type_id">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Borrow%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/borrow/trait.Borrow.html"·title="trait·core::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where
8 ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#211">Source</a><a·href="#method.borrow"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow"·class="fn">borrow</a>(&amp;self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;T</a></h4></section></summary><div·class='docblock'>Immutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-BorrowMut%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/borrow/trait.BorrowMut.html"·title="trait·core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where8 ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#211">Source</a><a·href="#method.borrow"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow"·class="fn">borrow</a>(&amp;self)·-&gt;·<a·class="primitive"·href="../std/primitive.reference.html">&amp;T</a></h4></section></summary><div·class='docblock'>Immutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-BorrowMut%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/borrow/trait.BorrowMut.html"·title="trait·core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where
9 ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#218">Source</a><a·href="#method.borrow_mut"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"·class="fn">borrow_mut</a>(&amp;mut·self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;mut·T</a></h4></section></summary><div·class='docblock'>Mutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-CloneToUninit-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#273">Source</a><a·href="#impl-CloneToUninit-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where9 ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#218">Source</a><a·href="#method.borrow_mut"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"·class="fn">borrow_mut</a>(&amp;mut·self)·-&gt;·<a·class="primitive"·href="../std/primitive.reference.html">&amp;mut·T</a></h4></section></summary><div·class='docblock'>Mutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-CloneToUninit-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#273">Source</a><a·href="#impl-CloneToUninit-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where
10 ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#275">Source</a><a·href="#method.clone_to_uninit"·class="anchor">§</a><h4·class="code-header">unsafe·fn·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit"·class="fn">clone_to_uninit</a>(&amp;self,·dst:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.pointer.html">*mut·</a><a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.u8.html">u8</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>clone_to_uninit</code>)</span></div></span><div·class='docblock'>Performs·copy-assignment·from·<code>self</code>·to·<code>dst</code>.·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-From%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#765">Source</a><a·href="#impl-From%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·T</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#768">Source</a><a·href="#method.from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>10 ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#275">Source</a><a·href="#method.clone_to_uninit"·class="anchor">§</a><h4·class="code-header">unsafe·fn·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit"·class="fn">clone_to_uninit</a>(&amp;self,·dst:·<a·class="primitive"·href="../std/primitive.pointer.html">*mut·</a><a·class="primitive"·href="../std/primitive.u8.html">u8</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>clone_to_uninit</code>)</span></div></span><div·class='docblock'>Performs·copy-assignment·from·<code>self</code>·to·<code>dst</code>.·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-From%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#765">Source</a><a·href="#impl-From%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·T</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#768">Source</a><a·href="#method.from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>
11 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where11 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where
12 ····U:·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#758">Source</a><a·href="#method.into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>12 ····U:·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#758">Source</a><a·href="#method.into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>
13 <p>That·is,·this·conversion·is·whatever·the·implementation·of13 <p>That·is,·this·conversion·is·whatever·the·implementation·of
14 <code><a·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>14 <code><a·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>
15 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#82-84">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../alloc/borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where15 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#82-84">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../alloc/borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where
16 ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#86">Source</a><a·href="#associatedtype.Owned"·class="anchor">§</a><h4·class="code-header">type·<a·href="../alloc/borrow/trait.ToOwned.html#associatedtype.Owned"·class="associatedtype">Owned</a>·=·T</h4></section></summary><div·class='docblock'>The·resulting·type·after·obtaining·ownership.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.to_owned"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#87">Source</a><a·href="#method.to_owned"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned"·class="fn">to_owned</a>(&amp;self)·-&gt;·T</h4></section></summary><div·class='docblock'>Creates·owned·data·from·borrowed·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#91">Source</a><a·href="#method.clone_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into"·class="fn">clone_into</a>(&amp;self,·target:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#805-807">Source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where16 ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#86">Source</a><a·href="#associatedtype.Owned"·class="anchor">§</a><h4·class="code-header">type·<a·href="../alloc/borrow/trait.ToOwned.html#associatedtype.Owned"·class="associatedtype">Owned</a>·=·T</h4></section></summary><div·class='docblock'>The·resulting·type·after·obtaining·ownership.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.to_owned"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#87">Source</a><a·href="#method.to_owned"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned"·class="fn">to_owned</a>(&amp;self)·-&gt;·T</h4></section></summary><div·class='docblock'>Creates·owned·data·from·borrowed·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#91">Source</a><a·href="#method.clone_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into"·class="fn">clone_into</a>(&amp;self,·target:·<a·class="primitive"·href="../std/primitive.reference.html">&amp;mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#805-807">Source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where
17 ····U:·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#809">Source</a><a·href="#associatedtype.Error-1"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<a·class="enum"·href="../core/convert/enum.Infallible.html"·title="enum·core::convert::Infallible">Infallible</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#812">Source</a><a·href="#method.try_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryFrom.html#tymethod.try_from"·class="fn">try_from</a>(value:·U)·-&gt;·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;T,·&lt;T·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryInto%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#790-792">Source</a><a·href="#impl-TryInto%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where17 ····U:·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#809">Source</a><a·href="#associatedtype.Error-1"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<a·class="enum"·href="../core/convert/enum.Infallible.html"·title="enum·core::convert::Infallible">Infallible</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#812">Source</a><a·href="#method.try_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryFrom.html#tymethod.try_from"·class="fn">try_from</a>(value:·U)·-&gt;·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;T,·&lt;T·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryInto%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#790-792">Source</a><a·href="#impl-TryInto%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where
18 ····U:·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#794">Source</a><a·href="#associatedtype.Error"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryInto.html#associatedtype.Error"·class="associatedtype">Error</a>·=·&lt;U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#797">Source</a><a·href="#method.try_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryInto.html#tymethod.try_into"·class="fn">try_into</a>(self)·-&gt;·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;U,·&lt;U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>18 ····U:·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#794">Source</a><a·href="#associatedtype.Error"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryInto.html#associatedtype.Error"·class="associatedtype">Error</a>·=·&lt;U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#797">Source</a><a·href="#method.try_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryInto.html#tymethod.try_into"·class="fn">try_into</a>(self)·-&gt;·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;U,·&lt;U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>
48.6 KB
./usr/share/doc/rust-doc/html/test/struct.TestDesc.html
    
Offset 1, 28 lines modifiedOffset 1, 28 lines modified
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="API·documentation·for·the·Rust·`TestDesc`·struct·in·crate·`test`."><title>TestDesc·in·test·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../"·data-static-root-path="../static.files/"·data-current-crate="test"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../test/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../test/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../test/index.html">test</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312» 2025-01-07)»      (built»from»    a»   source»     tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Test<wbr>Desc</a></h2><h3><a·href="#fields">Fields</a></h3><ul·class="block·structfield"><li><a·href="#structfield.compile_fail"·title="compile_fail">compile_fail</a></li><li><a·href="#structfield.end_col"·title="end_col">end_col</a></li><li><a·href="#structfield.end_line"·title="end_line">end_line</a></li><li><a·href="#structfield.ignore"·title="ignore">ignore</a></li><li><a·href="#structfield.ignore_message"·title="ignore_message">ignore_message</a></li><li><a·href="#structfield.name"·title="name">name</a></li><li><a·href="#structfield.no_run"·title="no_run">no_run</a></li><li><a·href="#structfield.should_panic"·title="should_panic">should_panic</a></li><li><a·href="#structfield.source_file"·title="source_file">source_file</a></li><li><a·href="#structfield.start_col"·title="start_col">start_col</a></li><li><a·href="#structfield.start_line"·title="start_line">start_line</a></li><li><a·href="#structfield.test_type"·title="test_type">test_type</a></li></ul><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.padded_name"·title="padded_name">padded_name</a></li><li><a·href="#method.test_mode"·title="test_mode">test_mode</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-TestDesc"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-TestDesc"·title="Debug">Debug</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-TestDesc"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-TestDesc"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-TestDesc"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-TestDesc"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-TestDesc"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-TestDesc"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2·class="in-crate"><a·href="index.html">In·crate·test</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">test</a></span><h1>Struct·<span·class="struct">TestDesc</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/test/types.rs.html#197-210">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·TestDesc·{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="API·documentation·for·the·Rust·`TestDesc`·struct·in·crate·`test`."><title>TestDesc·in·test·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../"·data-static-root-path="../static.files/"·data-current-crate="test"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../test/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../test/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../test/index.html">test</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312» 2025-01-07)»      (built»from»    a»   source»     tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Test<wbr>Desc</a></h2><h3><a·href="#fields">Fields</a></h3><ul·class="block·structfield"><li><a·href="#structfield.compile_fail"·title="compile_fail">compile_fail</a></li><li><a·href="#structfield.end_col"·title="end_col">end_col</a></li><li><a·href="#structfield.end_line"·title="end_line">end_line</a></li><li><a·href="#structfield.ignore"·title="ignore">ignore</a></li><li><a·href="#structfield.ignore_message"·title="ignore_message">ignore_message</a></li><li><a·href="#structfield.name"·title="name">name</a></li><li><a·href="#structfield.no_run"·title="no_run">no_run</a></li><li><a·href="#structfield.should_panic"·title="should_panic">should_panic</a></li><li><a·href="#structfield.source_file"·title="source_file">source_file</a></li><li><a·href="#structfield.start_col"·title="start_col">start_col</a></li><li><a·href="#structfield.start_line"·title="start_line">start_line</a></li><li><a·href="#structfield.test_type"·title="test_type">test_type</a></li></ul><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.padded_name"·title="padded_name">padded_name</a></li><li><a·href="#method.test_mode"·title="test_mode">test_mode</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-TestDesc"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-TestDesc"·title="Debug">Debug</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-TestDesc"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-TestDesc"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-TestDesc"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-TestDesc"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-TestDesc"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-TestDesc"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2·class="in-crate"><a·href="index.html">In·crate·test</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">test</a></span><h1>Struct·<span·class="struct">TestDesc</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/test/types.rs.html#197-210">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·TestDesc·{
2 ····pub·name:·<a·class="enum"·href="test/enum.TestName.html"·title="enum·test::test::TestName">TestName</a>,2 ····pub·name:·<a·class="enum"·href="test/enum.TestName.html"·title="enum·test::test::TestName">TestName</a>,
3 ····pub·ignore:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>,3 ····pub·ignore:·<a·class="primitive"·href="../std/primitive.bool.html">bool</a>,
4 ····pub·ignore_message:·<a·class="enum"·href="../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;&amp;'static·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.str.html">str</a>&gt;,4 ····pub·ignore_message:·<a·class="enum"·href="../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;&amp;'static·<a·class="primitive"·href="../std/primitive.str.html">str</a>&gt;,
5 ····pub·source_file:·&amp;'static·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.str.html">str</a>,5 ····pub·source_file:·&amp;'static·<a·class="primitive"·href="../std/primitive.str.html">str</a>,
6 ····pub·start_line:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.usize.html">usize</a>,6 ····pub·start_line:·<a·class="primitive"·href="../std/primitive.usize.html">usize</a>,
7 ····pub·start_col:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.usize.html">usize</a>,7 ····pub·start_col:·<a·class="primitive"·href="../std/primitive.usize.html">usize</a>,
8 ····pub·end_line:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.usize.html">usize</a>,8 ····pub·end_line:·<a·class="primitive"·href="../std/primitive.usize.html">usize</a>,
9 ····pub·end_col:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.usize.html">usize</a>,9 ····pub·end_col:·<a·class="primitive"·href="../std/primitive.usize.html">usize</a>,
10 ····pub·should_panic:·<a·class="enum"·href="test/enum.ShouldPanic.html"·title="enum·test::test::ShouldPanic">ShouldPanic</a>,10 ····pub·should_panic:·<a·class="enum"·href="test/enum.ShouldPanic.html"·title="enum·test::test::ShouldPanic">ShouldPanic</a>,
11 ····pub·compile_fail:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>,11 ····pub·compile_fail:·<a·class="primitive"·href="../std/primitive.bool.html">bool</a>,
12 ····pub·no_run:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>,12 ····pub·no_run:·<a·class="primitive"·href="../std/primitive.bool.html">bool</a>,
13 ····pub·test_type:·<a·class="enum"·href="test/enum.TestType.html"·title="enum·test::test::TestType">TestType</a>,13 ····pub·test_type:·<a·class="enum"·href="test/enum.TestType.html"·title="enum·test::test::TestType">TestType</a>,
14 }</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><h2·id="fields"·class="fields·section-header">Fields<a·href="#fields"·class="anchor">§</a></h2><span·id="structfield.name"·class="structfield·section-header"><a·href="#structfield.name"·class="anchor·field">§</a><code>name:·<a·class="enum"·href="test/enum.TestName.html"·title="enum·test::test::TestName">TestName</a></code></span><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><span·id="structfield.ignore"·class="structfield·section-header"><a·href="#structfield.ignore"·class="anchor·field">§</a><code>ignore:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a></code></span><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><span·id="s[·...·truncated·by·diffoscope;·len:·6039,·SHA:·9c3b12d6561f99e11567603e220ea4f2d62dc189d672bcc0eb159069405e5381·...·]/std/primitive.str.html">str</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span></summary><div·class="docblock"><p>Returns·None·for·ignored·test·or·tests·that·are·just·run,·otherwise·returns·a·description·of·the·type·of·test.14 }</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><h2·id="fields"·class="fields·section-header">Fields<a·href="#fields"·class="anchor">§</a></h2><span·id="structfield.name"·class="structfield·section-header"><a·href="#structfield.name"·class="anchor·field">§</a><code>name:·<a·class="enum"·href="test/enum.TestName.html"·title="enum·test::test::TestName">TestName</a></code></span><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><span·id="structfield.ignore"·class="structfield·section-header"><a·href="#structfield.ignore"·class="anchor·field">§</a><code>ignore:·<a·class="primitive"·href="../std/primitive.bool.html">bool</a></code></span><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><span·id="structfield.ignore_message"·cla[·...·truncated·by·diffoscope;·len:·5709,·SHA:·02753e3d760bf6be9139a60be90581860f97d5327317465e050b4e351479fd04·...·]/std/primitive.str.html">str</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span></summary><div·class="docblock"><p>Returns·None·for·ignored·test·or·tests·that·are·just·run,·otherwise·returns·a·description·of·the·type·of·test.
15 Descriptions·include·“should·panic”,·“compile·fail”·and·“compile”.</p>15 Descriptions·include·“should·panic”,·“compile·fail”·and·“compile”.</p>
16 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-TestDesc"·class="impl"><a·class="src·rightside"·href="../src/test/types.rs.html#196">Source</a><a·href="#impl-Clone-for-TestDesc"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struct"·href="test/struct.TestDesc.html"·title="struct·test::test::TestDesc">TestDesc</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone"·class="method·trait-impl"><a·class="src·rightside"·href="../src/test/types.rs.html#196">Source</a><a·href="#method.clone"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/clone/trait.Clone.html#tymethod.clone"·class="fn">clone</a>(&amp;self)·-&gt;·<a·class="struct"·href="test/struct.TestDesc.html"·title="struct·test::test::TestDesc">TestDesc</a></h4></section></summary><div·class='docblock'>Returns·a·copy·of·the·value.·<a·href="../core/clone/trait.Clone.html#tymethod.clone">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_from"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../src/core/clone.rs.html#174">Source</a></span><a·href="#method.clone_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/clone/trait.Clone.html#method.clone_from"·class="fn">clone_from</a>(&amp;mut·self,·source:·&amp;Self)</h4></section></summary><div·class='docblock'>Performs·copy-assignment·from·<code>source</code>.·<a·href="../core/clone/trait.Clone.html#method.clone_from">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-TestDesc"·class="impl"><a·class="src·rightside"·href="../src/test/types.rs.html#196">Source</a><a·href="#impl-Debug-for-TestDesc"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/fmt/trait.Debug.html"·title="trait·core::fmt::Debug">Debug</a>·for·<a·class="struct"·href="test/struct.TestDesc.html"·title="struct·test::test::TestDesc">TestDesc</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../src/test/types.rs.html#196">Source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="../core/fmt/struct.Formatter.html"·title="struct·core::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="type"·href="../core/fmt/type.Result.html"·title="type·core::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt">Read·more</a></div></details></div></details></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-TestDesc"·class="impl"><a·href="#impl-Freeze-for-TestDesc"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="struct"·href="test/struct.TestDesc.html"·title="struct·test::test::TestDesc">TestDesc</a></h3></section><section·id="impl-RefUnwindSafe-for-TestDesc"·class="impl"><a·href="#impl-RefUnwindSafe-for-TestDesc"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="struct"·href="test/struct.TestDesc.html"·title="struct·test::test::TestDesc">TestDesc</a></h3></section><section·id="impl-Send-for-TestDesc"·class="impl"><a·href="#impl-Send-for-TestDesc"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="struct"·href="test/struct.TestDesc.html"·title="struct·test::test::TestDesc">TestDesc</a></h3></section><section·id="impl-Sync-for-TestDesc"·class="impl"><a·href="#impl-Sync-for-TestDesc"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="struct"·href="test/struct.TestDesc.html"·title="struct·test::test::TestDesc">TestDesc</a></h3></section><section·id="impl-Unpin-for-TestDesc"·class="impl"><a·href="#impl-Unpin-for-TestDesc"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="struct"·href="test/struct.TestDesc.html"·title="struct·test::test::TestDesc">TestDesc</a></h3></section><section·id="impl-UnwindSafe-for-TestDesc"·class="impl"><a·href="#impl-UnwindSafe-for-TestDesc"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="struct"·href="test/struct.TestDesc.html"·title="struct·test::test::TestDesc">TestDesc</a></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementations<a·href="#blanket-implementations"·class="anchor">§</a></h2><div·id="blanket-implementations-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-Any-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/any.rs.html#138">Source</a><a·href="#impl-Any-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where16 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-TestDesc"·class="impl"><a·class="src·rightside"·href="../src/test/types.rs.html#196">Source</a><a·href="#impl-Clone-for-TestDesc"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struct"·href="test/struct.TestDesc.html"·title="struct·test::test::TestDesc">TestDesc</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone"·class="method·trait-impl"><a·class="src·rightside"·href="../src/test/types.rs.html#196">Source</a><a·href="#method.clone"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/clone/trait.Clone.html#tymethod.clone"·class="fn">clone</a>(&amp;self)·-&gt;·<a·class="struct"·href="test/struct.TestDesc.html"·title="struct·test::test::TestDesc">TestDesc</a></h4></section></summary><div·class='docblock'>Returns·a·copy·of·the·value.·<a·href="../core/clone/trait.Clone.html#tymethod.clone">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_from"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../src/core/clone.rs.html#174">Source</a></span><a·href="#method.clone_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/clone/trait.Clone.html#method.clone_from"·class="fn">clone_from</a>(&amp;mut·self,·source:·&amp;Self)</h4></section></summary><div·class='docblock'>Performs·copy-assignment·from·<code>source</code>.·<a·href="../core/clone/trait.Clone.html#method.clone_from">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-TestDesc"·class="impl"><a·class="src·rightside"·href="../src/test/types.rs.html#196">Source</a><a·href="#impl-Debug-for-TestDesc"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/fmt/trait.Debug.html"·title="trait·core::fmt::Debug">Debug</a>·for·<a·class="struct"·href="test/struct.TestDesc.html"·title="struct·test::test::TestDesc">TestDesc</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../src/test/types.rs.html#196">Source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="../core/fmt/struct.Formatter.html"·title="struct·core::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="type"·href="../core/fmt/type.Result.html"·title="type·core::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt">Read·more</a></div></details></div></details></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-TestDesc"·class="impl"><a·href="#impl-Freeze-for-TestDesc"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="struct"·href="test/struct.TestDesc.html"·title="struct·test::test::TestDesc">TestDesc</a></h3></section><section·id="impl-RefUnwindSafe-for-TestDesc"·class="impl"><a·href="#impl-RefUnwindSafe-for-TestDesc"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="struct"·href="test/struct.TestDesc.html"·title="struct·test::test::TestDesc">TestDesc</a></h3></section><section·id="impl-Send-for-TestDesc"·class="impl"><a·href="#impl-Send-for-TestDesc"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="struct"·href="test/struct.TestDesc.html"·title="struct·test::test::TestDesc">TestDesc</a></h3></section><section·id="impl-Sync-for-TestDesc"·class="impl"><a·href="#impl-Sync-for-TestDesc"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="struct"·href="test/struct.TestDesc.html"·title="struct·test::test::TestDesc">TestDesc</a></h3></section><section·id="impl-Unpin-for-TestDesc"·class="impl"><a·href="#impl-Unpin-for-TestDesc"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="struct"·href="test/struct.TestDesc.html"·title="struct·test::test::TestDesc">TestDesc</a></h3></section><section·id="impl-UnwindSafe-for-TestDesc"·class="impl"><a·href="#impl-UnwindSafe-for-TestDesc"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="struct"·href="test/struct.TestDesc.html"·title="struct·test::test::TestDesc">TestDesc</a></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementations<a·href="#blanket-implementations"·class="anchor">§</a></h2><div·id="blanket-implementations-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-Any-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/any.rs.html#138">Source</a><a·href="#impl-Any-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where
17 ····T:·'static·+·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/any.rs.html#139">Source</a><a·href="#method.type_id"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/any/trait.Any.html#tymethod.type_id"·class="fn">type_id</a>(&amp;self)·-&gt;·<a·class="struct"·href="../core/any/struct.TypeId.html"·title="struct·core::any::TypeId">TypeId</a></h4></section></summary><div·class='docblock'>Gets·the·<code>TypeId</code>·of·<code>self</code>.·<a·href="../core/any/trait.Any.html#tymethod.type_id">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Borrow%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/borrow/trait.Borrow.html"·title="trait·core::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where17 ····T:·'static·+·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/any.rs.html#139">Source</a><a·href="#method.type_id"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/any/trait.Any.html#tymethod.type_id"·class="fn">type_id</a>(&amp;self)·-&gt;·<a·class="struct"·href="../core/any/struct.TypeId.html"·title="struct·core::any::TypeId">TypeId</a></h4></section></summary><div·class='docblock'>Gets·the·<code>TypeId</code>·of·<code>self</code>.·<a·href="../core/any/trait.Any.html#tymethod.type_id">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Borrow%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/borrow/trait.Borrow.html"·title="trait·core::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where
18 ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#211">Source</a><a·href="#method.borrow"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow"·class="fn">borrow</a>(&amp;self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;T</a></h4></section></summary><div·class='docblock'>Immutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-BorrowMut%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/borrow/trait.BorrowMut.html"·title="trait·core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where18 ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#211">Source</a><a·href="#method.borrow"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow"·class="fn">borrow</a>(&amp;self)·-&gt;·<a·class="primitive"·href="../std/primitive.reference.html">&amp;T</a></h4></section></summary><div·class='docblock'>Immutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-BorrowMut%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/borrow/trait.BorrowMut.html"·title="trait·core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where
19 ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#218">Source</a><a·href="#method.borrow_mut"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"·class="fn">borrow_mut</a>(&amp;mut·self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;mut·T</a></h4></section></summary><div·class='docblock'>Mutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-CloneToUninit-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#273">Source</a><a·href="#impl-CloneToUninit-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where19 ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#218">Source</a><a·href="#method.borrow_mut"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"·class="fn">borrow_mut</a>(&amp;mut·self)·-&gt;·<a·class="primitive"·href="../std/primitive.reference.html">&amp;mut·T</a></h4></section></summary><div·class='docblock'>Mutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-CloneToUninit-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#273">Source</a><a·href="#impl-CloneToUninit-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where
20 ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#275">Source</a><a·href="#method.clone_to_uninit"·class="anchor">§</a><h4·class="code-header">unsafe·fn·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit"·class="fn">clone_to_uninit</a>(&amp;self,·dst:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.pointer.html">*mut·</a><a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.u8.html">u8</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>clone_to_uninit</code>)</span></div></span><div·class='docblock'>Performs·copy-assignment·from·<code>self</code>·to·<code>dst</code>.·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-From%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#765">Source</a><a·href="#impl-From%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·T</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#768">Source</a><a·href="#method.from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>20 ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#275">Source</a><a·href="#method.clone_to_uninit"·class="anchor">§</a><h4·class="code-header">unsafe·fn·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit"·class="fn">clone_to_uninit</a>(&amp;self,·dst:·<a·class="primitive"·href="../std/primitive.pointer.html">*mut·</a><a·class="primitive"·href="../std/primitive.u8.html">u8</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>clone_to_uninit</code>)</span></div></span><div·class='docblock'>Performs·copy-assignment·from·<code>self</code>·to·<code>dst</code>.·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-From%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#765">Source</a><a·href="#impl-From%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·T</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#768">Source</a><a·href="#method.from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>
21 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where21 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where
22 ····U:·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#758">Source</a><a·href="#method.into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>22 ····U:·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#758">Source</a><a·href="#method.into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>
23 <p>That·is,·this·conversion·is·whatever·the·implementation·of23 <p>That·is,·this·conversion·is·whatever·the·implementation·of
24 <code><a·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>24 <code><a·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>
25 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#82-84">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../alloc/borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where25 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#82-84">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../alloc/borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where
26 ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#86">Source</a><a·href="#associatedtype.Owned"·class="anchor">§</a><h4·class="code-header">type·<a·href="../alloc/borrow/trait.ToOwned.html#associatedtype.Owned"·class="associatedtype">Owned</a>·=·T</h4></section></summary><div·class='docblock'>The·resulting·type·after·obtaining·ownership.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.to_owned"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#87">Source</a><a·href="#method.to_owned"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned"·class="fn">to_owned</a>(&amp;self)·-&gt;·T</h4></section></summary><div·class='docblock'>Creates·owned·data·from·borrowed·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#91">Source</a><a·href="#method.clone_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into"·class="fn">clone_into</a>(&amp;self,·target:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#805-807">Source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where26 ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#86">Source</a><a·href="#associatedtype.Owned"·class="anchor">§</a><h4·class="code-header">type·<a·href="../alloc/borrow/trait.ToOwned.html#associatedtype.Owned"·class="associatedtype">Owned</a>·=·T</h4></section></summary><div·class='docblock'>The·resulting·type·after·obtaining·ownership.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.to_owned"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#87">Source</a><a·href="#method.to_owned"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned"·class="fn">to_owned</a>(&amp;self)·-&gt;·T</h4></section></summary><div·class='docblock'>Creates·owned·data·from·borrowed·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#91">Source</a><a·href="#method.clone_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into"·class="fn">clone_into</a>(&amp;self,·target:·<a·class="primitive"·href="../std/primitive.reference.html">&amp;mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#805-807">Source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where
27 ····U:·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#809">Source</a><a·href="#associatedtype.Error-1"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<a·class="enum"·href="../core/convert/enum.Infallible.html"·title="enum·core::convert::Infallible">Infallible</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#812">Source</a><a·href="#method.try_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryFrom.html#tymethod.try_from"·class="fn">try_from</a>(value:·U)·-&gt;·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;T,·&lt;T·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryInto%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#790-792">Source</a><a·href="#impl-TryInto%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where27 ····U:·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#809">Source</a><a·href="#associatedtype.Error-1"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<a·class="enum"·href="../core/convert/enum.Infallible.html"·title="enum·core::convert::Infallible">Infallible</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#812">Source</a><a·href="#method.try_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryFrom.html#tymethod.try_from"·class="fn">try_from</a>(value:·U)·-&gt;·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;T,·&lt;T·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryInto%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#790-792">Source</a><a·href="#impl-TryInto%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where
28 ····U:·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#794">Source</a><a·href="#associatedtype.Error"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryInto.html#associatedtype.Error"·class="associatedtype">Error</a>·=·&lt;U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#797">Source</a><a·href="#method.try_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryInto.html#tymethod.try_into"·class="fn">try_into</a>(self)·-&gt;·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;U,·&lt;U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>28 ····U:·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#794">Source</a><a·href="#associatedtype.Error"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryInto.html#associatedtype.Error"·class="associatedtype">Error</a>·=·&lt;U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#797">Source</a><a·href="#method.try_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryInto.html#tymethod.try_into"·class="fn">try_into</a>(self)·-&gt;·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;U,·&lt;U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>
25.3 KB
./usr/share/doc/rust-doc/html/test/struct.TestDescAndFn.html
    
Offset 1, 22 lines modifiedOffset 1, 22 lines modified
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="API·documentation·for·the·Rust·`TestDescAndFn`·struct·in·crate·`test`."><title>TestDescAndFn·in·test·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../"·data-static-root-path="../static.files/"·data-current-crate="test"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../test/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../test/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../test/index.html">test</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»       2025-01-07)»    (built»      from»  a» source»   tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Test<wbr>Desc<wbr>AndFn</a></h2><h3><a·href="#fields">Fields</a></h3><ul·class="block·structfield"><li><a·href="#structfield.desc"·title="desc">desc</a></li><li><a·href="#structfield.testfn"·title="testfn">testfn</a></li></ul><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.new_doctest"·title="new_doctest">new_doctest</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Debug-for-TestDescAndFn"·title="Debug">Debug</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-RefUnwindSafe-for-TestDescAndFn"·title="!RefUnwindSafe">!RefUnwindSafe</a></li><li><a·href="#impl-Sync-for-TestDescAndFn"·title="!Sync">!Sync</a></li><li><a·href="#impl-UnwindSafe-for-TestDescAndFn"·title="!UnwindSafe">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-TestDescAndFn"·title="Freeze">Freeze</a></li><li><a·href="#impl-Send-for-TestDescAndFn"·title="Send">Send</a></li><li><a·href="#impl-Unpin-for-TestDescAndFn"·title="Unpin">Unpin</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2·class="in-crate"><a·href="index.html">In·crate·test</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">test</a></span><h1>Struct·<span·class="struct">TestDescAndFn</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/test/types.rs.html#249-252">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·TestDescAndFn·{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="API·documentation·for·the·Rust·`TestDescAndFn`·struct·in·crate·`test`."><title>TestDescAndFn·in·test·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../"·data-static-root-path="../static.files/"·data-current-crate="test"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../test/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../test/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../test/index.html">test</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»       2025-01-07)»    (built»      from»  a» source»   tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Test<wbr>Desc<wbr>AndFn</a></h2><h3><a·href="#fields">Fields</a></h3><ul·class="block·structfield"><li><a·href="#structfield.desc"·title="desc">desc</a></li><li><a·href="#structfield.testfn"·title="testfn">testfn</a></li></ul><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.new_doctest"·title="new_doctest">new_doctest</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Debug-for-TestDescAndFn"·title="Debug">Debug</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-RefUnwindSafe-for-TestDescAndFn"·title="!RefUnwindSafe">!RefUnwindSafe</a></li><li><a·href="#impl-Sync-for-TestDescAndFn"·title="!Sync">!Sync</a></li><li><a·href="#impl-UnwindSafe-for-TestDescAndFn"·title="!UnwindSafe">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-TestDescAndFn"·title="Freeze">Freeze</a></li><li><a·href="#impl-Send-for-TestDescAndFn"·title="Send">Send</a></li><li><a·href="#impl-Unpin-for-TestDescAndFn"·title="Unpin">Unpin</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2·class="in-crate"><a·href="index.html">In·crate·test</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">test</a></span><h1>Struct·<span·class="struct">TestDescAndFn</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/test/types.rs.html#249-252">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·TestDescAndFn·{
2 ····pub·desc:·<a·class="struct"·href="test/struct.TestDesc.html"·title="struct·test::test::TestDesc">TestDesc</a>,2 ····pub·desc:·<a·class="struct"·href="test/struct.TestDesc.html"·title="struct·test::test::TestDesc">TestDesc</a>,
3 ····pub·testfn:·<a·class="enum"·href="enum.TestFn.html"·title="enum·test::TestFn">TestFn</a>,3 ····pub·testfn:·<a·class="enum"·href="enum.TestFn.html"·title="enum·test::TestFn">TestFn</a>,
4 }</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><h2·id="fields"·class="fields·section-header">Fields<a·href="#fields"·class="anchor">§</a></h2><span·id="structfield.desc"·class="structfield·section-header"><a·href="#structfield.desc"·class="anchor·field">§</a><code>desc:·<a·class="struct"·href="test/struct.TestDesc.html"·title="struct·test::test::TestDesc">TestDesc</a></code></span><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><span·id="structfield.testfn"·class="structfield·section-header"><a·href="#structfield.testfn"·class="anchor·field">§</a><code>testfn:·<a·class="enum"·href="enum.TestFn.html"·title="enum·test::TestFn">TestFn</a></code></span><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-TestDescAndFn"·class="impl"><a·class="src·rightside"·href="../src/test/types.rs.html#254-286">Source</a><a·href="#impl-TestDescAndFn"·class="anchor">§</a><h3·class="code-header">impl·<a·class="struct"·href="test/struct.TestDescAndFn.html"·title="struct·test::test::TestDescAndFn">TestDescAndFn</a></h3></section></summary><div·class="impl-items"><section·id="method.new_doctest"·class="method"><a·class="src·rightside"·href="../src/test/types.rs.html#255-285">Source</a><h4·class="code-header">pub·const·fn·<a·href="#method.new_doctest"·class="fn">new_doctest</a>(4 }</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><h2·id="fields"·class="fields·section-header">Fields<a·href="#fields"·class="anchor">§</a></h2><span·id="structfield.desc"·class="structfield·section-header"><a·href="#structfield.desc"·class="anchor·field">§</a><code>desc:·<a·class="struct"·href="test/struct.TestDesc.html"·title="struct·test::test::TestDesc">TestDesc</a></code></span><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><span·id="structfield.testfn"·class="structfield·section-header"><a·href="#structfield.testfn"·class="anchor·field">§</a><code>testfn:·<a·class="enum"·href="enum.TestFn.html"·title="enum·test::TestFn">TestFn</a></code></span><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-TestDescAndFn"·class="impl"><a·class="src·rightside"·href="../src/test/types.rs.html#254-286">Source</a><a·href="#impl-TestDescAndFn"·class="anchor">§</a><h3·class="code-header">impl·<a·class="struct"·href="test/struct.TestDescAndFn.html"·title="struct·test::test::TestDescAndFn">TestDescAndFn</a></h3></section></summary><div·class="impl-items"><section·id="method.new_doctest"·class="method"><a·class="src·rightside"·href="../src/test/types.rs.html#255-285">Source</a><h4·class="code-header">pub·const·fn·<a·href="#method.new_doctest"·class="fn">new_doctest</a>(
5 ····test_name:·&amp;'static·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.str.html">str</a>,5 ····test_name:·&amp;'static·<a·class="primitive"·href="../std/primitive.str.html">str</a>,
6 ····ignore:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>,6 ····ignore:·<a·class="primitive"·href="../std/primitive.bool.html">bool</a>,
7 ····source_file:·&amp;'static·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.str.html">str</a>,7 ····source_file:·&amp;'static·<a·class="primitive"·href="../std/primitive.str.html">str</a>,
8 ····start_line:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.usize.html">usize</a>,8 ····start_line:·<a·class="primitive"·href="../std/primitive.usize.html">usize</a>,
9 ····no_run:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>,9 ····no_run:·<a·class="primitive"·href="../std/primitive.bool.html">bool</a>,
10 ····should_panic:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>,10 ····should_panic:·<a·class="primitive"·href="../std/primitive.bool.html">bool</a>,
11 ····testfn:·<a·class="enum"·href="enum.TestFn.html"·title="enum·test::TestFn">TestFn</a>,11 ····testfn:·<a·class="enum"·href="enum.TestFn.html"·title="enum·test::TestFn">TestFn</a>,
12 )·-&gt;·Self</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-TestDescAndFn"·class="impl"><a·class="src·rightside"·href="../src/test/types.rs.html#248">Source</a><a·href="#impl-Debug-for-TestDescAndFn"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/fmt/trait.Debug.html"·title="trait·core::fmt::Debug">Debug</a>·for·<a·class="struct"·href="test/struct.TestDescAndFn.html"·title="struct·test::test::TestDescAndFn">TestDescAndFn</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../src/test/types.rs.html#248">Source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="../core/fmt/struct.Formatter.html"·title="struct·core::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="type"·href="../core/fmt/type.Result.html"·title="type·core::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt">Read·more</a></div></details></div></details></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-TestDescAndFn"·class="impl"><a·href="#impl-Freeze-for-TestDescAndFn"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="struct"·href="test/struct.TestDescAndFn.html"·title="struct·test::test::TestDescAndFn">TestDescAndFn</a></h3></section><section·id="impl-RefUnwindSafe-for-TestDescAndFn"·class="impl"><a·href="#impl-RefUnwindSafe-for-TestDescAndFn"·class="anchor">§</a><h3·class="code-header">impl·!<a·class="trait"·href="../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="struct"·href="test/struct.TestDescAndFn.html"·title="struct·test::test::TestDescAndFn">TestDescAndFn</a></h3></section><section·id="impl-Send-for-TestDescAndFn"·class="impl"><a·href="#impl-Send-for-TestDescAndFn"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="struct"·href="test/struct.TestDescAndFn.html"·title="struct·test::test::TestDescAndFn">TestDescAndFn</a></h3></section><section·id="impl-Sync-for-TestDescAndFn"·class="impl"><a·href="#impl-Sync-for-TestDescAndFn"·class="anchor">§</a><h3·class="code-header">impl·!<a·class="trait"·href="../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="struct"·href="test/struct.TestDescAndFn.html"·title="struct·test::test::TestDescAndFn">TestDescAndFn</a></h3></section><section·id="impl-Unpin-for-TestDescAndFn"·class="impl"><a·href="#impl-Unpin-for-TestDescAndFn"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="struct"·href="test/struct.TestDescAndFn.html"·title="struct·test::test::TestDescAndFn">TestDescAndFn</a></h3></section><section·id="impl-UnwindSafe-for-TestDescAndFn"·class="impl"><a·href="#impl-UnwindSafe-for-TestDescAndFn"·class="anchor">§</a><h3·class="code-header">impl·!<a·class="trait"·href="../core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="struct"·href="test/struct.TestDescAndFn.html"·title="struct·test::test::TestDescAndFn">TestDescAndFn</a></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementations<a·href="#blanket-implementations"·class="anchor">§</a></h2><div·id="blanket-implementations-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-Any-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/any.rs.html#138">Source</a><a·href="#impl-Any-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where12 )·-&gt;·Self</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-TestDescAndFn"·class="impl"><a·class="src·rightside"·href="../src/test/types.rs.html#248">Source</a><a·href="#impl-Debug-for-TestDescAndFn"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/fmt/trait.Debug.html"·title="trait·core::fmt::Debug">Debug</a>·for·<a·class="struct"·href="test/struct.TestDescAndFn.html"·title="struct·test::test::TestDescAndFn">TestDescAndFn</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../src/test/types.rs.html#248">Source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="../core/fmt/struct.Formatter.html"·title="struct·core::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="type"·href="../core/fmt/type.Result.html"·title="type·core::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt">Read·more</a></div></details></div></details></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-TestDescAndFn"·class="impl"><a·href="#impl-Freeze-for-TestDescAndFn"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="struct"·href="test/struct.TestDescAndFn.html"·title="struct·test::test::TestDescAndFn">TestDescAndFn</a></h3></section><section·id="impl-RefUnwindSafe-for-TestDescAndFn"·class="impl"><a·href="#impl-RefUnwindSafe-for-TestDescAndFn"·class="anchor">§</a><h3·class="code-header">impl·!<a·class="trait"·href="../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="struct"·href="test/struct.TestDescAndFn.html"·title="struct·test::test::TestDescAndFn">TestDescAndFn</a></h3></section><section·id="impl-Send-for-TestDescAndFn"·class="impl"><a·href="#impl-Send-for-TestDescAndFn"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="struct"·href="test/struct.TestDescAndFn.html"·title="struct·test::test::TestDescAndFn">TestDescAndFn</a></h3></section><section·id="impl-Sync-for-TestDescAndFn"·class="impl"><a·href="#impl-Sync-for-TestDescAndFn"·class="anchor">§</a><h3·class="code-header">impl·!<a·class="trait"·href="../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="struct"·href="test/struct.TestDescAndFn.html"·title="struct·test::test::TestDescAndFn">TestDescAndFn</a></h3></section><section·id="impl-Unpin-for-TestDescAndFn"·class="impl"><a·href="#impl-Unpin-for-TestDescAndFn"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="struct"·href="test/struct.TestDescAndFn.html"·title="struct·test::test::TestDescAndFn">TestDescAndFn</a></h3></section><section·id="impl-UnwindSafe-for-TestDescAndFn"·class="impl"><a·href="#impl-UnwindSafe-for-TestDescAndFn"·class="anchor">§</a><h3·class="code-header">impl·!<a·class="trait"·href="../core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="struct"·href="test/struct.TestDescAndFn.html"·title="struct·test::test::TestDescAndFn">TestDescAndFn</a></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementations<a·href="#blanket-implementations"·class="anchor">§</a></h2><div·id="blanket-implementations-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-Any-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/any.rs.html#138">Source</a><a·href="#impl-Any-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where
13 ····T:·'static·+·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/any.rs.html#139">Source</a><a·href="#method.type_id"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/any/trait.Any.html#tymethod.type_id"·class="fn">type_id</a>(&amp;self)·-&gt;·<a·class="struct"·href="../core/any/struct.TypeId.html"·title="struct·core::any::TypeId">TypeId</a></h4></section></summary><div·class='docblock'>Gets·the·<code>TypeId</code>·of·<code>self</code>.·<a·href="../core/any/trait.Any.html#tymethod.type_id">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Borrow%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/borrow/trait.Borrow.html"·title="trait·core::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where13 ····T:·'static·+·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/any.rs.html#139">Source</a><a·href="#method.type_id"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/any/trait.Any.html#tymethod.type_id"·class="fn">type_id</a>(&amp;self)·-&gt;·<a·class="struct"·href="../core/any/struct.TypeId.html"·title="struct·core::any::TypeId">TypeId</a></h4></section></summary><div·class='docblock'>Gets·the·<code>TypeId</code>·of·<code>self</code>.·<a·href="../core/any/trait.Any.html#tymethod.type_id">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Borrow%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/borrow/trait.Borrow.html"·title="trait·core::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where
14 ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#211">Source</a><a·href="#method.borrow"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow"·class="fn">borrow</a>(&amp;self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;T</a></h4></section></summary><div·class='docblock'>Immutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-BorrowMut%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/borrow/trait.BorrowMut.html"·title="trait·core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where14 ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#211">Source</a><a·href="#method.borrow"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow"·class="fn">borrow</a>(&amp;self)·-&gt;·<a·class="primitive"·href="../std/primitive.reference.html">&amp;T</a></h4></section></summary><div·class='docblock'>Immutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-BorrowMut%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/borrow/trait.BorrowMut.html"·title="trait·core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where
15 ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#218">Source</a><a·href="#method.borrow_mut"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"·class="fn">borrow_mut</a>(&amp;mut·self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;mut·T</a></h4></section></summary><div·class='docblock'>Mutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-From%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#765">Source</a><a·href="#impl-From%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·T</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#768">Source</a><a·href="#method.from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>15 ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#218">Source</a><a·href="#method.borrow_mut"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"·class="fn">borrow_mut</a>(&amp;mut·self)·-&gt;·<a·class="primitive"·href="../std/primitive.reference.html">&amp;mut·T</a></h4></section></summary><div·class='docblock'>Mutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-From%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#765">Source</a><a·href="#impl-From%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·T</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#768">Source</a><a·href="#method.from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>
16 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where16 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where
17 ····U:·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#758">Source</a><a·href="#method.into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>17 ····U:·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#758">Source</a><a·href="#method.into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>
18 <p>That·is,·this·conversion·is·whatever·the·implementation·of18 <p>That·is,·this·conversion·is·whatever·the·implementation·of
19 <code><a·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>19 <code><a·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>
20 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#805-807">Source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where20 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#805-807">Source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where
21 ····U:·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#809">Source</a><a·href="#associatedtype.Error-1"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<a·class="enum"·href="../core/convert/enum.Infallible.html"·title="enum·core::convert::Infallible">Infallible</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#812">Source</a><a·href="#method.try_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryFrom.html#tymethod.try_from"·class="fn">try_from</a>(value:·U)·-&gt;·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;T,·&lt;T·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryInto%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#790-792">Source</a><a·href="#impl-TryInto%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where21 ····U:·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#809">Source</a><a·href="#associatedtype.Error-1"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<a·class="enum"·href="../core/convert/enum.Infallible.html"·title="enum·core::convert::Infallible">Infallible</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#812">Source</a><a·href="#method.try_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryFrom.html#tymethod.try_from"·class="fn">try_from</a>(value:·U)·-&gt;·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;T,·&lt;T·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryInto%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#790-792">Source</a><a·href="#impl-TryInto%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where
22 ····U:·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#794">Source</a><a·href="#associatedtype.Error"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryInto.html#associatedtype.Error"·class="associatedtype">Error</a>·=·&lt;U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#797">Source</a><a·href="#method.try_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryInto.html#tymethod.try_into"·class="fn">try_into</a>(self)·-&gt;·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;U,·&lt;U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>22 ····U:·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#794">Source</a><a·href="#associatedtype.Error"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryInto.html#associatedtype.Error"·class="associatedtype">Error</a>·=·&lt;U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#797">Source</a><a·href="#method.try_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryInto.html#tymethod.try_into"·class="fn">try_into</a>(self)·-&gt;·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;U,·&lt;U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>
50.5 KB
./usr/share/doc/rust-doc/html/test/struct.TestId.html
    
Offset 1, 16 lines modifiedOffset 1, 16 lines modified
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="API·documentation·for·the·Rust·`TestId`·struct·in·crate·`test`."><title>TestId·in·test·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../"·data-static-root-path="../static.files/"·data-current-crate="test"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../test/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../test/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../test/index.html">test</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»     2025-01-07)»  (built»    from»a»       source» tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">TestId</a></h2><h3><a·href="#fields">Tuple·Fields</a></h3><ul·class="block·structfield"><li><a·href="#structfield.0"·title="0">0</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-TestId"·title="Clone">Clone</a></li><li><a·href="#impl-Copy-for-TestId"·title="Copy">Copy</a></li><li><a·href="#impl-Debug-for-TestId"·title="Debug">Debug</a></li><li><a·href="#impl-Eq-for-TestId"·title="Eq">Eq</a></li><li><a·href="#impl-Hash-for-TestId"·title="Hash">Hash</a></li><li><a·href="#impl-PartialEq-for-TestId"·title="PartialEq">PartialEq</a></li><li><a·href="#impl-StructuralPartialEq-for-TestId"·title="StructuralPartialEq">StructuralPartialEq</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-TestId"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-TestId"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-TestId"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-TestId"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-TestId"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-TestId"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2·class="in-crate"><a·href="index.html">In·crate·test</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">test</a></span><h1>Struct·<span·class="struct">TestId</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/test/types.rs.html#192">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·TestId(pub·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.usize.html">usize</a>);</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><h2·id="[·...·truncated·by·diffoscope;·len:·5530,·SHA:·9200f2484e43aab862d75e6fe407331770fae8f3899798d543883a5038d5a9b7·...·]/std/primitive.reference.html">&amp;mut·H</a>)<div·class="where">where1 <!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="API·documentation·for·the·Rust·`TestId`·struct·in·crate·`test`."><title>TestId·in·test·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../"·data-static-root-path="../static.files/"·data-current-crate="test"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../test/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../test/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../test/index.html">test</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»     2025-01-07)»  (built»    from»a»       source» tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">TestId</a></h2><h3><a·href="#fields">Tuple·Fields</a></h3><ul·class="block·structfield"><li><a·href="#structfield.0"·title="0">0</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-TestId"·title="Clone">Clone</a></li><li><a·href="#impl-Copy-for-TestId"·title="Copy">Copy</a></li><li><a·href="#impl-Debug-for-TestId"·title="Debug">Debug</a></li><li><a·href="#impl-Eq-for-TestId"·title="Eq">Eq</a></li><li><a·href="#impl-Hash-for-TestId"·title="Hash">Hash</a></li><li><a·href="#impl-PartialEq-for-TestId"·title="PartialEq">PartialEq</a></li><li><a·href="#impl-StructuralPartialEq-for-TestId"·title="StructuralPartialEq">StructuralPartialEq</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-TestId"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-TestId"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-TestId"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-TestId"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-TestId"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-TestId"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2·class="in-crate"><a·href="index.html">In·crate·test</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">test</a></span><h1>Struct·<span·class="struct">TestId</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/test/types.rs.html#192">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·TestId(pub·<a·class="primitive"·href="../std/primitive.usize.html">usize</a>);</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><h2·id="fields"·class="fields·section-[·...·truncated·by·diffoscope;·len:·5410,·SHA:·f38be8ca130f5667b63f33d5382d7ef05842a5a8da0545d6f70e5c97e02698e9·...·]/std/primitive.reference.html">&amp;mut·H</a>)<div·class="where">where
2 ····H:·<a·class="trait"·href="../core/hash/trait.Hasher.html"·title="trait·core::hash::Hasher">Hasher</a>,2 ····H:·<a·class="trait"·href="../core/hash/trait.Hasher.html"·title="trait·core::hash::Hasher">Hasher</a>,
3 ····Self:·<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Feeds·a·slice·of·this·type·into·the·given·<a·href="../core/hash/trait.Hasher.html"·title="trait·core::hash::Hasher"><code>Hasher</code></a>.·<a·href="../core/hash/trait.Hash.html#method.hash_slice">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-PartialEq-for-TestId"·class="impl"><a·class="src·rightside"·href="../src/test/types.rs.html#191">Source</a><a·href="#impl-PartialEq-for-TestId"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/cmp/trait.PartialEq.html"·title="trait·core::cmp::PartialEq">PartialEq</a>·for·<a·class="struct"·href="test/struct.TestId.html"·title="struct·test::test::TestId">TestId</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.eq"·class="method·trait-impl"><a·class="src·rightside"·href="../src/test/types.rs.html#191">Source</a><a·href="#method.eq"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/cmp/trait.PartialEq.html#tymethod.eq"·class="fn">eq</a>(&amp;self,·other:·&amp;<a·class="struct"·href="test/struct.TestId.html"·title="struct·test::test::TestId">TestId</a>)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>self</code>·and·<code>other</code>·values·to·be·equal,·and·is·used·by·<code>==</code>.</div></details><details·class="toggle·me[·...·truncated·by·diffoscope;·len:·569,·SHA:·46af6fc173633dd332a95fa12f6d5611eaae7b1cebfd0290c8ac91c63e1ef230·...·]/std/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>!=</code>.·The·default·implementation·is·almost·always·sufficient,3 ····Self:·<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Feeds·a·slice·of·this·type·into·the·given·<a·href="../core/hash/trait.Hasher.html"·title="trait·core::hash::Hasher"><code>Hasher</code></a>.·<a·href="../core/hash/trait.Hash.html#method.hash_slice">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-PartialEq-for-TestId"·class="impl"><a·class="src·rightside"·href="../src/test/types.rs.html#191">Source</a><a·href="#impl-PartialEq-for-TestId"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/cmp/trait.PartialEq.html"·title="trait·core::cmp::PartialEq">PartialEq</a>·for·<a·class="struct"·href="test/struct.TestId.html"·title="struct·test::test::TestId">TestId</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.eq"·class="method·trait-impl"><a·class="src·rightside"·href="../src/test/types.rs.html#191">Source</a><a·href="#method.eq"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/cmp/trait.PartialEq.html#tymethod.eq"·class="fn">eq</a>(&amp;self,·other:·&amp;<a·class="struct"·href="test/struct.TestId.html"·title="struct·test::test::TestId">TestId</a>)·-&gt;·<a·class="primitive"·href="../std/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>self</code>·and·<code>other</code>·values·to·be·equal,·and·is·used·by·<code>==</code>.</div></details><details·class="toggle·method-toggle"·open><summary><se[·...·truncated·by·diffoscope;·len:·479,·SHA:·d4b4d4ccd2b893fe5d940d56f58f8a31544ac9db5f6dc1b365b30aa149717efb·...·]/std/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>!=</code>.·The·default·implementation·is·almost·always·sufficient,
4 and·should·not·be·overridden·without·very·good·reason.</div></details></div></details><section·id="impl-Copy-for-TestId"·class="impl"><a·class="src·rightside"·href="../src/test/types.rs.html#191">Source</a><a·href="#impl-Copy-for-TestId"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Copy.html"·title="trait·core::marker::Copy">Copy</a>·for·<a·class="struct"·href="test/struct.TestId.html"·title="struct·test::test::TestId">TestId</a></h3></section><section·id="impl-Eq-for-TestId"·class="impl"><a·class="src·rightside"·href="../src/test/types.rs.html#191">Source</a><a·href="#impl-Eq-for-TestId"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/cmp/trait.Eq.html"·title="trait·core::cmp::Eq">Eq</a>·for·<a·class="struct"·href="test/struct.TestId.html"·title="struct·test::test::TestId">TestId</a></h3></section><section·id="impl-StructuralPartialEq-for-TestId"·class="impl"><a·class="src·rightside"·href="../src/test/types.rs.html#191">Source</a><a·href="#impl-StructuralPartialEq-for-TestId"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.StructuralPartialEq.html"·title="trait·core::marker::StructuralPartialEq">StructuralPartialEq</a>·for·<a·class="struct"·href="test/struct.TestId.html"·title="struct·test::test::TestId">TestId</a></h3></section></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-TestId"·class="impl"><a·href="#impl-Freeze-for-TestId"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="struct"·href="test/struct.TestId.html"·title="struct·test::test::TestId">TestId</a></h3></section><section·id="impl-RefUnwindSafe-for-TestId"·class="impl"><a·href="#impl-RefUnwindSafe-for-TestId"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="struct"·href="test/struct.TestId.html"·title="struct·test::test::TestId">TestId</a></h3></section><section·id="impl-Send-for-TestId"·class="impl"><a·href="#impl-Send-for-TestId"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="struct"·href="test/struct.TestId.html"·title="struct·test::test::TestId">TestId</a></h3></section><section·id="impl-Sync-for-TestId"·class="impl"><a·href="#impl-Sync-for-TestId"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="struct"·href="test/struct.TestId.html"·title="struct·test::test::TestId">TestId</a></h3></section><section·id="impl-Unpin-for-TestId"·class="impl"><a·href="#impl-Unpin-for-TestId"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="struct"·href="test/struct.TestId.html"·title="struct·test::test::TestId">TestId</a></h3></section><section·id="impl-UnwindSafe-for-TestId"·class="impl"><a·href="#impl-UnwindSafe-for-TestId"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="struct"·href="test/struct.TestId.html"·title="struct·test::test::TestId">TestId</a></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementations<a·href="#blanket-implementations"·class="anchor">§</a></h2><div·id="blanket-implementations-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-Any-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/any.rs.html#138">Source</a><a·href="#impl-Any-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where4 and·should·not·be·overridden·without·very·good·reason.</div></details></div></details><section·id="impl-Copy-for-TestId"·class="impl"><a·class="src·rightside"·href="../src/test/types.rs.html#191">Source</a><a·href="#impl-Copy-for-TestId"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Copy.html"·title="trait·core::marker::Copy">Copy</a>·for·<a·class="struct"·href="test/struct.TestId.html"·title="struct·test::test::TestId">TestId</a></h3></section><section·id="impl-Eq-for-TestId"·class="impl"><a·class="src·rightside"·href="../src/test/types.rs.html#191">Source</a><a·href="#impl-Eq-for-TestId"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/cmp/trait.Eq.html"·title="trait·core::cmp::Eq">Eq</a>·for·<a·class="struct"·href="test/struct.TestId.html"·title="struct·test::test::TestId">TestId</a></h3></section><section·id="impl-StructuralPartialEq-for-TestId"·class="impl"><a·class="src·rightside"·href="../src/test/types.rs.html#191">Source</a><a·href="#impl-StructuralPartialEq-for-TestId"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.StructuralPartialEq.html"·title="trait·core::marker::StructuralPartialEq">StructuralPartialEq</a>·for·<a·class="struct"·href="test/struct.TestId.html"·title="struct·test::test::TestId">TestId</a></h3></section></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-TestId"·class="impl"><a·href="#impl-Freeze-for-TestId"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="struct"·href="test/struct.TestId.html"·title="struct·test::test::TestId">TestId</a></h3></section><section·id="impl-RefUnwindSafe-for-TestId"·class="impl"><a·href="#impl-RefUnwindSafe-for-TestId"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="struct"·href="test/struct.TestId.html"·title="struct·test::test::TestId">TestId</a></h3></section><section·id="impl-Send-for-TestId"·class="impl"><a·href="#impl-Send-for-TestId"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="struct"·href="test/struct.TestId.html"·title="struct·test::test::TestId">TestId</a></h3></section><section·id="impl-Sync-for-TestId"·class="impl"><a·href="#impl-Sync-for-TestId"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="struct"·href="test/struct.TestId.html"·title="struct·test::test::TestId">TestId</a></h3></section><section·id="impl-Unpin-for-TestId"·class="impl"><a·href="#impl-Unpin-for-TestId"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="struct"·href="test/struct.TestId.html"·title="struct·test::test::TestId">TestId</a></h3></section><section·id="impl-UnwindSafe-for-TestId"·class="impl"><a·href="#impl-UnwindSafe-for-TestId"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="struct"·href="test/struct.TestId.html"·title="struct·test::test::TestId">TestId</a></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementations<a·href="#blanket-implementations"·class="anchor">§</a></h2><div·id="blanket-implementations-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-Any-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/any.rs.html#138">Source</a><a·href="#impl-Any-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where
5 ····T:·'static·+·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/any.rs.html#139">Source</a><a·href="#method.type_id"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/any/trait.Any.html#tymethod.type_id"·class="fn">type_id</a>(&amp;self)·-&gt;·<a·class="struct"·href="../core/any/struct.TypeId.html"·title="struct·core::any::TypeId">TypeId</a></h4></section></summary><div·class='docblock'>Gets·the·<code>TypeId</code>·of·<code>self</code>.·<a·href="../core/any/trait.Any.html#tymethod.type_id">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Borrow%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/borrow/trait.Borrow.html"·title="trait·core::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where5 ····T:·'static·+·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/any.rs.html#139">Source</a><a·href="#method.type_id"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/any/trait.Any.html#tymethod.type_id"·class="fn">type_id</a>(&amp;self)·-&gt;·<a·class="struct"·href="../core/any/struct.TypeId.html"·title="struct·core::any::TypeId">TypeId</a></h4></section></summary><div·class='docblock'>Gets·the·<code>TypeId</code>·of·<code>self</code>.·<a·href="../core/any/trait.Any.html#tymethod.type_id">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Borrow%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/borrow/trait.Borrow.html"·title="trait·core::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where
6 ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#211">Source</a><a·href="#method.borrow"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow"·class="fn">borrow</a>(&amp;self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;T</a></h4></section></summary><div·class='docblock'>Immutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-BorrowMut%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/borrow/trait.BorrowMut.html"·title="trait·core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where6 ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#211">Source</a><a·href="#method.borrow"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow"·class="fn">borrow</a>(&amp;self)·-&gt;·<a·class="primitive"·href="../std/primitive.reference.html">&amp;T</a></h4></section></summary><div·class='docblock'>Immutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-BorrowMut%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/borrow/trait.BorrowMut.html"·title="trait·core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where
7 ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#218">Source</a><a·href="#method.borrow_mut"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"·class="fn">borrow_mut</a>(&amp;mut·self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;mut·T</a></h4></section></summary><div·class='docblock'>Mutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-CloneToUninit-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#273">Source</a><a·href="#impl-CloneToUninit-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where7 ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#218">Source</a><a·href="#method.borrow_mut"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"·class="fn">borrow_mut</a>(&amp;mut·self)·-&gt;·<a·class="primitive"·href="../std/primitive.reference.html">&amp;mut·T</a></h4></section></summary><div·class='docblock'>Mutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-CloneToUninit-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#273">Source</a><a·href="#impl-CloneToUninit-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where
8 ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#275">Source</a><a·href="#method.clone_to_uninit"·class="anchor">§</a><h4·class="code-header">unsafe·fn·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit"·class="fn">clone_to_uninit</a>(&amp;self,·dst:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.pointer.html">*mut·</a><a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.u8.html">u8</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>clone_to_uninit</code>)</span></div></span><div·class='docblock'>Performs·copy-assignment·from·<code>self</code>·to·<code>dst</code>.·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-From%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#765">Source</a><a·href="#impl-From%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·T</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#768">Source</a><a·href="#method.from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>8 ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#275">Source</a><a·href="#method.clone_to_uninit"·class="anchor">§</a><h4·class="code-header">unsafe·fn·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit"·class="fn">clone_to_uninit</a>(&amp;self,·dst:·<a·class="primitive"·href="../std/primitive.pointer.html">*mut·</a><a·class="primitive"·href="../std/primitive.u8.html">u8</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>clone_to_uninit</code>)</span></div></span><div·class='docblock'>Performs·copy-assignment·from·<code>self</code>·to·<code>dst</code>.·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-From%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#765">Source</a><a·href="#impl-From%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·T</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#768">Source</a><a·href="#method.from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>
9 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where9 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where
10 ····U:·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#758">Source</a><a·href="#method.into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>10 ····U:·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#758">Source</a><a·href="#method.into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>
11 <p>That·is,·this·conversion·is·whatever·the·implementation·of11 <p>That·is,·this·conversion·is·whatever·the·implementation·of
12 <code><a·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>12 <code><a·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>
13 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#82-84">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../alloc/borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where13 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#82-84">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../alloc/borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where
14 ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#86">Source</a><a·href="#associatedtype.Owned"·class="anchor">§</a><h4·class="code-header">type·<a·href="../alloc/borrow/trait.ToOwned.html#associatedtype.Owned"·class="associatedtype">Owned</a>·=·T</h4></section></summary><div·class='docblock'>The·resulting·type·after·obtaining·ownership.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.to_owned"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#87">Source</a><a·href="#method.to_owned"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned"·class="fn">to_owned</a>(&amp;self)·-&gt;·T</h4></section></summary><div·class='docblock'>Creates·owned·data·from·borrowed·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#91">Source</a><a·href="#method.clone_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into"·class="fn">clone_into</a>(&amp;self,·target:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#805-807">Source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where14 ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#86">Source</a><a·href="#associatedtype.Owned"·class="anchor">§</a><h4·class="code-header">type·<a·href="../alloc/borrow/trait.ToOwned.html#associatedtype.Owned"·class="associatedtype">Owned</a>·=·T</h4></section></summary><div·class='docblock'>The·resulting·type·after·obtaining·ownership.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.to_owned"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#87">Source</a><a·href="#method.to_owned"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned"·class="fn">to_owned</a>(&amp;self)·-&gt;·T</h4></section></summary><div·class='docblock'>Creates·owned·data·from·borrowed·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#91">Source</a><a·href="#method.clone_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into"·class="fn">clone_into</a>(&amp;self,·target:·<a·class="primitive"·href="../std/primitive.reference.html">&amp;mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#805-807">Source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where
15 ····U:·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#809">Source</a><a·href="#associatedtype.Error-1"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<a·class="enum"·href="../core/convert/enum.Infallible.html"·title="enum·core::convert::Infallible">Infallible</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#812">Source</a><a·href="#method.try_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryFrom.html#tymethod.try_from"·class="fn">try_from</a>(value:·U)·-&gt;·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;T,·&lt;T·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryInto%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#790-792">Source</a><a·href="#impl-TryInto%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where15 ····U:·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#809">Source</a><a·href="#associatedtype.Error-1"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<a·class="enum"·href="../core/convert/enum.Infallible.html"·title="enum·core::convert::Infallible">Infallible</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#812">Source</a><a·href="#method.try_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryFrom.html#tymethod.try_from"·class="fn">try_from</a>(value:·U)·-&gt;·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;T,·&lt;T·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryInto%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#790-792">Source</a><a·href="#impl-TryInto%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where
16 ····U:·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#794">Source</a><a·href="#associatedtype.Error"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryInto.html#associatedtype.Error"·class="associatedtype">Error</a>·=·&lt;U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#797">Source</a><a·href="#method.try_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryInto.html#tymethod.try_into"·class="fn">try_into</a>(self)·-&gt;·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;U,·&lt;U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>16 ····U:·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#794">Source</a><a·href="#associatedtype.Error"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryInto.html#associatedtype.Error"·class="associatedtype">Error</a>·=·&lt;U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#797">Source</a><a·href="#method.try_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryInto.html#tymethod.try_into"·class="fn">try_into</a>(self)·-&gt;·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;U,·&lt;U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>
50.9 KB
./usr/share/doc/rust-doc/html/test/struct.TestOpts.html
    
Offset 1, 34 lines modifiedOffset 1, 34 lines modified
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="API·documentation·for·the·Rust·`TestOpts`·struct·in·crate·`test`."><title>TestOpts·in·test·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../"·data-static-root-path="../static.files/"·data-current-crate="test"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../test/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../test/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../test/index.html">test</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312» 2025-01-07)»      (built»from»    a»   source»     tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Test<wbr>Opts</a></h2><h3><a·href="#fields">Fields</a></h3><ul·class="block·structfield"><li><a·href="#structfield.bench_benchmarks"·title="bench_benchmarks">bench_benchmarks</a></li><li><a·href="#structfield.color"·title="color">color</a></li><li><a·href="#structfield.exclude_should_panic"·title="exclude_should_panic">exclude_should_panic</a></li><li><a·href="#structfield.fail_fast"·title="fail_fast">fail_fast</a></li><li><a·href="#structfield.filter_exact"·title="filter_exact">filter_exact</a></li><li><a·href="#structfield.filters"·title="filters">filters</a></li><li><a·href="#structfield.force_run_in_process"·title="force_run_in_process">force_run_in_process</a></li><li><a·href="#structfield.format"·title="format">format</a></li><li><a·href="#structfield.list"·title="list">list</a></li><li><a·href="#structfield.logfile"·title="logfile">logfile</a></li><li><a·href="#structfield.nocapture"·title="nocapture">nocapture</a></li><li><a·href="#structfield.options"·title="options">options</a></li><li><a·href="#structfield.run_ignored"·title="run_ignored">run_ignored</a></li><li><a·href="#structfield.run_tests"·title="run_tests">run_tests</a></li><li><a·href="#structfield.shuffle"·title="shuffle">shuffle</a></li><li><a·href="#structfield.shuffle_seed"·title="shuffle_seed">shuffle_seed</a></li><li><a·href="#structfield.skip"·title="skip">skip</a></li><li><a·href="#structfield.test_threads"·title="test_threads">test_threads</a></li><li><a·href="#structfield.time_options"·title="time_options">time_options</a></li></ul><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.use_color"·title="use_color">use_color</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Debug-for-TestOpts"·title="Debug">Debug</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-TestOpts"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-TestOpts"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-TestOpts"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-TestOpts"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-TestOpts"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-TestOpts"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2·class="in-crate"><a·href="index.html">In·crate·test</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">test</a></span><h1>Struct·<span·class="struct">TestOpts</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/test/cli.rs.html#11-34">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·TestOpts·{<details·class="toggle·type-contents-toggle"><summary·class="hideme"><span>Show·19·fields</span></summary>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="API·documentation·for·the·Rust·`TestOpts`·struct·in·crate·`test`."><title>TestOpts·in·test·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../"·data-static-root-path="../static.files/"·data-current-crate="test"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../test/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../test/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../test/index.html">test</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312» 2025-01-07)»      (built»from»    a»   source»     tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Test<wbr>Opts</a></h2><h3><a·href="#fields">Fields</a></h3><ul·class="block·structfield"><li><a·href="#structfield.bench_benchmarks"·title="bench_benchmarks">bench_benchmarks</a></li><li><a·href="#structfield.color"·title="color">color</a></li><li><a·href="#structfield.exclude_should_panic"·title="exclude_should_panic">exclude_should_panic</a></li><li><a·href="#structfield.fail_fast"·title="fail_fast">fail_fast</a></li><li><a·href="#structfield.filter_exact"·title="filter_exact">filter_exact</a></li><li><a·href="#structfield.filters"·title="filters">filters</a></li><li><a·href="#structfield.force_run_in_process"·title="force_run_in_process">force_run_in_process</a></li><li><a·href="#structfield.format"·title="format">format</a></li><li><a·href="#structfield.list"·title="list">list</a></li><li><a·href="#structfield.logfile"·title="logfile">logfile</a></li><li><a·href="#structfield.nocapture"·title="nocapture">nocapture</a></li><li><a·href="#structfield.options"·title="options">options</a></li><li><a·href="#structfield.run_ignored"·title="run_ignored">run_ignored</a></li><li><a·href="#structfield.run_tests"·title="run_tests">run_tests</a></li><li><a·href="#structfield.shuffle"·title="shuffle">shuffle</a></li><li><a·href="#structfield.shuffle_seed"·title="shuffle_seed">shuffle_seed</a></li><li><a·href="#structfield.skip"·title="skip">skip</a></li><li><a·href="#structfield.test_threads"·title="test_threads">test_threads</a></li><li><a·href="#structfield.time_options"·title="time_options">time_options</a></li></ul><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.use_color"·title="use_color">use_color</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Debug-for-TestOpts"·title="Debug">Debug</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-TestOpts"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-TestOpts"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-TestOpts"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-TestOpts"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-TestOpts"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-TestOpts"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2·class="in-crate"><a·href="index.html">In·crate·test</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">test</a></span><h1>Struct·<span·class="struct">TestOpts</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/test/cli.rs.html#11-34">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·TestOpts·{<details·class="toggle·type-contents-toggle"><summary·class="hideme"><span>Show·19·fields</span></summary>
2 ····pub·list:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>,2 ····pub·list:·<a·class="primitive"·href="../std/primitive.bool.html">bool</a>,
3 ····pub·filters:·<a·class="struct"·href="../alloc/vec/struct.Vec.html"·title="struct·alloc::vec::Vec">Vec</a>&lt;<a·class="struct"·href="../alloc/string/struct.String.html"·title="struct·alloc::string::String">String</a>&gt;,3 ····pub·filters:·<a·class="struct"·href="../alloc/vec/struct.Vec.html"·title="struct·alloc::vec::Vec">Vec</a>&lt;<a·class="struct"·href="../alloc/string/struct.String.html"·title="struct·alloc::string::String">String</a>&gt;,
4 ····pub·filter_exact:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>,4 ····pub·filter_exact:·<a·class="primitive"·href="../std/primitive.bool.html">bool</a>,
5 ····pub·force_run_in_process:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>,5 ····pub·force_run_in_process:·<a·class="primitive"·href="../std/primitive.bool.html">bool</a>,
6 ····pub·exclude_should_panic:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>,6 ····pub·exclude_should_panic:·<a·class="primitive"·href="../std/primitive.bool.html">bool</a>,
7 ····pub·run_ignored:·<a·class="enum"·href="test/enum.RunIgnored.html"·title="enum·test::test::RunIgnored">RunIgnored</a>,7 ····pub·run_ignored:·<a·class="enum"·href="test/enum.RunIgnored.html"·title="enum·test::test::RunIgnored">RunIgnored</a>,
8 ····pub·run_tests:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>,8 ····pub·run_tests:·<a·class="primitive"·href="../std/primitive.bool.html">bool</a>,
9 ····pub·bench_benchmarks:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>,9 ····pub·bench_benchmarks:·<a·class="primitive"·href="../std/primitive.bool.html">bool</a>,
10 ····pub·logfile:·<a·class="enum"·href="../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="struct"·href="https://doc.rust-lang.org/1.84.0/std/path/struct.PathBuf.html"·title="struct·std::path::PathBuf">PathBuf</a>&gt;,10 ····pub·logfile:·<a·class="enum"·href="../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="struct"·href="../std/path/struct.PathBuf.html"·title="struct·std::path::PathBuf">PathBuf</a>&gt;,
11 ····pub·nocapture:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>,11 ····pub·nocapture:·<a·class="primitive"·href="../std/primitive.bool.html">bool</a>,
12 ····pub·color:·<a·class="enum"·href="enum.ColorConfig.html"·title="enum·test::ColorConfig">ColorConfig</a>,12 ····pub·color:·<a·class="enum"·href="enum.ColorConfig.html"·title="enum·test::ColorConfig">ColorConfig</a>,
13 ····pub·format:·<a·class="enum"·href="enum.OutputFormat.html"·title="enum·test::OutputFormat">OutputFormat</a>,13 ····pub·format:·<a·class="enum"·href="enum.OutputFormat.html"·title="enum·test::OutputFormat">OutputFormat</a>,
14 ····pub·shuffle:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>,14 ····pub·shuffle:·<a·class="primitive"·href="../std/primitive.bool.html">bool</a>,
15 ····pub·shuffle_seed:·<a·class="enum"·href="../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.u64.html">u64</a>&gt;,15 ····pub·shuffle_seed:·<a·class="enum"·href="../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="../std/primitive.u64.html">u64</a>&gt;,
16 ····pub·test_threads:·<a·class="enum"·href="../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.usize.html">usize</a>&gt;,16 ····pub·test_threads:·<a·class="enum"·href="../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="../std/primitive.usize.html">usize</a>&gt;,
17 ····pub·skip:·<a·class="struct"·href="../alloc/vec/struct.Vec.html"·title="struct·alloc::vec::Vec">Vec</a>&lt;<a·class="struct"·href="../alloc/string/struct.String.html"·title="struct·alloc::string::String">String</a>&gt;,17 ····pub·skip:·<a·class="struct"·href="../alloc/vec/struct.Vec.html"·title="struct·alloc::vec::Vec">Vec</a>&lt;<a·class="struct"·href="../alloc/string/struct.String.html"·title="struct·alloc::string::String">String</a>&gt;,
18 ····pub·time_options:·<a·class="enum"·href="../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="struct"·href="test/struct.TestTimeOptions.html"·title="struct·test::test::TestTimeOptions">TestTimeOptions</a>&gt;,18 ····pub·time_options:·<a·class="enum"·href="../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="struct"·href="test/struct.TestTimeOptions.html"·title="struct·test::test::TestTimeOptions">TestTimeOptions</a>&gt;,
19 ····pub·fail_fast:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>,19 ····pub·fail_fast:·<a·class="primitive"·href="../std/primitive.bool.html">bool</a>,
20 ····pub·options:·<a·class="struct"·href="test/struct.Options.html"·title="struct·test::test::Options">Options</a>,20 ····pub·options:·<a·class="struct"·href="test/struct.Options.html"·title="struct·test::test::Options">Options</a>,
21 </details>}</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><h2·id="fields"·class="fields·section-header">Fields<a·href="#fields"·class="anchor">§</a></h2><span·id="structfield.list"·class="structfield·section-header"><a·href="#structfield.list"·class="anchor·field">§</a><code>list:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a></code></span><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><span·id="s[·...·truncated·by·diffoscope;·len:·7650,·SHA:·cfa6af81d1cb55d0d5a94faac564257362ee7db129ea565ab0790cb442c6ec73·...·]/std/primitive.bool.html">bool</a></code></span><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><div·class="docblock"><p>Stop·at·first·failing·test.21 </details>}</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><h2·id="fields"·class="fields·section-header">Fields<a·href="#fields"·class="anchor">§</a></h2><span·id="structfield.list"·class="structfield·section-header"><a·href="#structfield.list"·class="anchor·field">§</a><code>list:·<a·class="primitive"·href="../std/primitive.bool.html">bool</a></code></span><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><span·id="structfield.filters"·class="str[·...·truncated·by·diffoscope;·len:·7290,·SHA:·d9b5b0b2bbe18279463b045f69aa8d40d1fd7b92f879379acbffcaf12dfbde44·...·]/std/primitive.bool.html">bool</a></code></span><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><div·class="docblock"><p>Stop·at·first·failing·test.
22 May·run·a·few·more·tests·due·to·threading,·but·will22 May·run·a·few·more·tests·due·to·threading,·but·will
23 abort·as·soon·as·possible.</p>23 abort·as·soon·as·possible.</p>
24 </div><span·id="structfield.options"·class="structfield·section-header"><a·href="#structfield.options"·class="anchor·field">§</a><code>options:·<a·class="struct"·href="test/struct.Options.html"·title="struct·test::test::Options">Options</a></code></span><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-TestOpts"·class="impl"><a·class="src·rightside"·href="../src/test/cli.rs.html#36-44">Source</a><a·href="#impl-TestOpts"·class="anchor">§</a><h3·class="code-header">impl·<a·class="struct"·href="test/struct.TestOpts.html"·title="struct·test::test::TestOpts">TestOpts</a></h3></section></summary><div·class="impl-items"><section·id="method.use_color"·class="method"><a·class="src·rightside"·href="../src/test/cli.rs.html#37-43">Source</a><h4·class="code-header">pub·fn·<a·href="#method.use_color"·class="fn">use_color</a>(&amp;self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-TestOpts"·class="impl"><a·class="src·rightside"·href="../src/test/cli.rs.html#10">Source</a><a·href="#impl-Debug-for-TestOpts"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/fmt/trait.Debug.html"·title="trait·core::fmt::Debug">Debug</a>·for·<a·class="struct"·href="test/struct.TestOpts.html"·title="struct·test::test::TestOpts">TestOpts</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../src/test/cli.rs.html#10">Source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="../core/fmt/struct.Formatter.html"·title="struct·core::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="type"·href="../core/fmt/type.Result.html"·title="type·core::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt">Read·more</a></div></details></div></details></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-TestOpts"·class="impl"><a·href="#impl-Freeze-for-TestOpts"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="struct"·href="test/struct.TestOpts.html"·title="struct·test::test::TestOpts">TestOpts</a></h3></section><section·id="impl-RefUnwindSafe-for-TestOpts"·class="impl"><a·href="#impl-RefUnwindSafe-for-TestOpts"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="struct"·href="test/struct.TestOpts.html"·title="struct·test::test::TestOpts">TestOpts</a></h3></section><section·id="impl-Send-for-TestOpts"·class="impl"><a·href="#impl-Send-for-TestOpts"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="struct"·href="test/struct.TestOpts.html"·title="struct·test::test::TestOpts">TestOpts</a></h3></section><section·id="impl-Sync-for-TestOpts"·class="impl"><a·href="#impl-Sync-for-TestOpts"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="struct"·href="test/struct.TestOpts.html"·title="struct·test::test::TestOpts">TestOpts</a></h3></section><section·id="impl-Unpin-for-TestOpts"·class="impl"><a·href="#impl-Unpin-for-TestOpts"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="struct"·href="test/struct.TestOpts.html"·title="struct·test::test::TestOpts">TestOpts</a></h3></section><section·id="impl-UnwindSafe-for-TestOpts"·class="impl"><a·href="#impl-UnwindSafe-for-TestOpts"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="struct"·href="test/struct.TestOpts.html"·title="struct·test::test::TestOpts">TestOpts</a></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementations<a·href="#blanket-implementations"·class="anchor">§</a></h2><div·id="blanket-implementations-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-Any-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/any.rs.html#138">Source</a><a·href="#impl-Any-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where24 </div><span·id="structfield.options"·class="structfield·section-header"><a·href="#structfield.options"·class="anchor·field">§</a><code>options:·<a·class="struct"·href="test/struct.Options.html"·title="struct·test::test::Options">Options</a></code></span><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-TestOpts"·class="impl"><a·class="src·rightside"·href="../src/test/cli.rs.html#36-44">Source</a><a·href="#impl-TestOpts"·class="anchor">§</a><h3·class="code-header">impl·<a·class="struct"·href="test/struct.TestOpts.html"·title="struct·test::test::TestOpts">TestOpts</a></h3></section></summary><div·class="impl-items"><section·id="method.use_color"·class="method"><a·class="src·rightside"·href="../src/test/cli.rs.html#37-43">Source</a><h4·class="code-header">pub·fn·<a·href="#method.use_color"·class="fn">use_color</a>(&amp;self)·-&gt;·<a·class="primitive"·href="../std/primitive.bool.html">bool</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-TestOpts"·class="impl"><a·class="src·rightside"·href="../src/test/cli.rs.html#10">Source</a><a·href="#impl-Debug-for-TestOpts"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/fmt/trait.Debug.html"·title="trait·core::fmt::Debug">Debug</a>·for·<a·class="struct"·href="test/struct.TestOpts.html"·title="struct·test::test::TestOpts">TestOpts</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../src/test/cli.rs.html#10">Source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="../core/fmt/struct.Formatter.html"·title="struct·core::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="type"·href="../core/fmt/type.Result.html"·title="type·core::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt">Read·more</a></div></details></div></details></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-TestOpts"·class="impl"><a·href="#impl-Freeze-for-TestOpts"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="struct"·href="test/struct.TestOpts.html"·title="struct·test::test::TestOpts">TestOpts</a></h3></section><section·id="impl-RefUnwindSafe-for-TestOpts"·class="impl"><a·href="#impl-RefUnwindSafe-for-TestOpts"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="struct"·href="test/struct.TestOpts.html"·title="struct·test::test::TestOpts">TestOpts</a></h3></section><section·id="impl-Send-for-TestOpts"·class="impl"><a·href="#impl-Send-for-TestOpts"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="struct"·href="test/struct.TestOpts.html"·title="struct·test::test::TestOpts">TestOpts</a></h3></section><section·id="impl-Sync-for-TestOpts"·class="impl"><a·href="#impl-Sync-for-TestOpts"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="struct"·href="test/struct.TestOpts.html"·title="struct·test::test::TestOpts">TestOpts</a></h3></section><section·id="impl-Unpin-for-TestOpts"·class="impl"><a·href="#impl-Unpin-for-TestOpts"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="struct"·href="test/struct.TestOpts.html"·title="struct·test::test::TestOpts">TestOpts</a></h3></section><section·id="impl-UnwindSafe-for-TestOpts"·class="impl"><a·href="#impl-UnwindSafe-for-TestOpts"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="struct"·href="test/struct.TestOpts.html"·title="struct·test::test::TestOpts">TestOpts</a></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementations<a·href="#blanket-implementations"·class="anchor">§</a></h2><div·id="blanket-implementations-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-Any-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/any.rs.html#138">Source</a><a·href="#impl-Any-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where
25 ····T:·'static·+·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/any.rs.html#139">Source</a><a·href="#method.type_id"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/any/trait.Any.html#tymethod.type_id"·class="fn">type_id</a>(&amp;self)·-&gt;·<a·class="struct"·href="../core/any/struct.TypeId.html"·title="struct·core::any::TypeId">TypeId</a></h4></section></summary><div·class='docblock'>Gets·the·<code>TypeId</code>·of·<code>self</code>.·<a·href="../core/any/trait.Any.html#tymethod.type_id">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Borrow%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/borrow/trait.Borrow.html"·title="trait·core::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where25 ····T:·'static·+·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/any.rs.html#139">Source</a><a·href="#method.type_id"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/any/trait.Any.html#tymethod.type_id"·class="fn">type_id</a>(&amp;self)·-&gt;·<a·class="struct"·href="../core/any/struct.TypeId.html"·title="struct·core::any::TypeId">TypeId</a></h4></section></summary><div·class='docblock'>Gets·the·<code>TypeId</code>·of·<code>self</code>.·<a·href="../core/any/trait.Any.html#tymethod.type_id">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Borrow%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/borrow/trait.Borrow.html"·title="trait·core::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where
26 ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#211">Source</a><a·href="#method.borrow"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow"·class="fn">borrow</a>(&amp;self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;T</a></h4></section></summary><div·class='docblock'>Immutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-BorrowMut%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/borrow/trait.BorrowMut.html"·title="trait·core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where26 ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#211">Source</a><a·href="#method.borrow"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow"·class="fn">borrow</a>(&amp;self)·-&gt;·<a·class="primitive"·href="../std/primitive.reference.html">&amp;T</a></h4></section></summary><div·class='docblock'>Immutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-BorrowMut%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/borrow/trait.BorrowMut.html"·title="trait·core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where
27 ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#218">Source</a><a·href="#method.borrow_mut"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"·class="fn">borrow_mut</a>(&amp;mut·self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;mut·T</a></h4></section></summary><div·class='docblock'>Mutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-From%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#765">Source</a><a·href="#impl-From%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·T</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#768">Source</a><a·href="#method.from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>27 ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#218">Source</a><a·href="#method.borrow_mut"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"·class="fn">borrow_mut</a>(&amp;mut·self)·-&gt;·<a·class="primitive"·href="../std/primitive.reference.html">&amp;mut·T</a></h4></section></summary><div·class='docblock'>Mutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-From%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#765">Source</a><a·href="#impl-From%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·T</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#768">Source</a><a·href="#method.from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>
28 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where28 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where
29 ····U:·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#758">Source</a><a·href="#method.into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>29 ····U:·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#758">Source</a><a·href="#method.into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>
30 <p>That·is,·this·conversion·is·whatever·the·implementation·of30 <p>That·is,·this·conversion·is·whatever·the·implementation·of
31 <code><a·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>31 <code><a·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>
32 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#805-807">Source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where32 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#805-807">Source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where
33 ····U:·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#809">Source</a><a·href="#associatedtype.Error-1"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<a·class="enum"·href="../core/convert/enum.Infallible.html"·title="enum·core::convert::Infallible">Infallible</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#812">Source</a><a·href="#method.try_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryFrom.html#tymethod.try_from"·class="fn">try_from</a>(value:·U)·-&gt;·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;T,·&lt;T·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryInto%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#790-792">Source</a><a·href="#impl-TryInto%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where33 ····U:·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#809">Source</a><a·href="#associatedtype.Error-1"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<a·class="enum"·href="../core/convert/enum.Infallible.html"·title="enum·core::convert::Infallible">Infallible</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#812">Source</a><a·href="#method.try_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryFrom.html#tymethod.try_from"·class="fn">try_from</a>(value:·U)·-&gt;·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;T,·&lt;T·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryInto%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#790-792">Source</a><a·href="#impl-TryInto%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where
34 ····U:·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#794">Source</a><a·href="#associatedtype.Error"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryInto.html#associatedtype.Error"·class="associatedtype">Error</a>·=·&lt;U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#797">Source</a><a·href="#method.try_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryInto.html#tymethod.try_into"·class="fn">try_into</a>(self)·-&gt;·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;U,·&lt;U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>34 ····U:·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#794">Source</a><a·href="#associatedtype.Error"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryInto.html#associatedtype.Error"·class="associatedtype">Error</a>·=·&lt;U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#797">Source</a><a·href="#method.try_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryInto.html#tymethod.try_into"·class="fn">try_into</a>(self)·-&gt;·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;U,·&lt;U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>
41.5 KB
./usr/share/doc/rust-doc/html/test/test/enum.RunIgnored.html
    
Offset 1, 20 lines modifiedOffset 1, 20 lines modified
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="Whether·ignored·test·should·be·run·or·not"><title>RunIgnored·in·test::test·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="test"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·enum"><!--[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><a·class="logo-container"·href="../../test/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../test/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../test/index.html">test</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»    2025-01-07)» (built»   from»       a»      source»tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">RunIgnored</a></h2><h3><a·href="#variants">Variants</a></h3><ul·class="block·variant"><li><a·href="#variant.No"·title="No">No</a></li><li><a·href="#variant.Only"·title="Only">Only</a></li><li><a·href="#variant.Yes"·title="Yes">Yes</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-RunIgnored"·title="Clone">Clone</a></li><li><a·href="#impl-Copy-for-RunIgnored"·title="Copy">Copy</a></li><li><a·href="#impl-Debug-for-RunIgnored"·title="Debug">Debug</a></li><li><a·href="#impl-Eq-for-RunIgnored"·title="Eq">Eq</a></li><li><a·href="#impl-PartialEq-for-RunIgnored"·title="PartialEq">PartialEq</a></li><li><a·href="#impl-StructuralPartialEq-for-RunIgnored"·title="StructuralPartialEq">StructuralPartialEq</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-RunIgnored"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-RunIgnored"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-RunIgnored"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-RunIgnored"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-RunIgnored"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-RunIgnored"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·test::<wbr>test</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">test</a>::<wbr><a·href="index.html">test</a></span><h1>Enum·<span·class="enum">RunIgnored</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/test/options.rs.html#43-48">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·enum·RunIgnored·{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="Whether·ignored·test·should·be·run·or·not"><title>RunIgnored·in·test::test·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="test"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·enum"><!--[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><a·class="logo-container"·href="../../test/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../test/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../test/index.html">test</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»    2025-01-07)» (built»   from»       a»      source»tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">RunIgnored</a></h2><h3><a·href="#variants">Variants</a></h3><ul·class="block·variant"><li><a·href="#variant.No"·title="No">No</a></li><li><a·href="#variant.Only"·title="Only">Only</a></li><li><a·href="#variant.Yes"·title="Yes">Yes</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-RunIgnored"·title="Clone">Clone</a></li><li><a·href="#impl-Copy-for-RunIgnored"·title="Copy">Copy</a></li><li><a·href="#impl-Debug-for-RunIgnored"·title="Debug">Debug</a></li><li><a·href="#impl-Eq-for-RunIgnored"·title="Eq">Eq</a></li><li><a·href="#impl-PartialEq-for-RunIgnored"·title="PartialEq">PartialEq</a></li><li><a·href="#impl-StructuralPartialEq-for-RunIgnored"·title="StructuralPartialEq">StructuralPartialEq</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-RunIgnored"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-RunIgnored"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-RunIgnored"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-RunIgnored"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-RunIgnored"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-RunIgnored"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·test::<wbr>test</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">test</a>::<wbr><a·href="index.html">test</a></span><h1>Enum·<span·class="enum">RunIgnored</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/test/options.rs.html#43-48">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·enum·RunIgnored·{
2 ····Yes,2 ····Yes,
3 ····No,3 ····No,
4 ····Only,4 ····Only,
5 }</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Whether·ignored·test·should·be·run·or·not</p>5 }</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Whether·ignored·test·should·be·run·or·not</p>
6 </div></details><h2·id="variants"·class="variants·section-header">Variants<a·href="#variants"·class="anchor">§</a></h2><div·class="variants"><section·id="variant.Yes"·class="variant"><a·href="#variant.Yes"·class="anchor">§</a><h3·class="code-header">Yes</h3></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><section·id="variant.No"·class="variant"><a·href="#variant.No"·class="anchor">§</a><h3·class="code-header">No</h3></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><section·id="variant.Only"·class="variant"><a·href="#variant.Only"·class="anchor">§</a><h3·class="code-header">Only</h3></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><div·class="docblock"><p>Run·only·ignored·tests</p>6 </div></details><h2·id="variants"·class="variants·section-header">Variants<a·href="#variants"·class="anchor">§</a></h2><div·class="variants"><section·id="variant.Yes"·class="variant"><a·href="#variant.Yes"·class="anchor">§</a><h3·class="code-header">Yes</h3></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><section·id="variant.No"·class="variant"><a·href="#variant.No"·class="anchor">§</a><h3·class="code-header">No</h3></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><section·id="variant.Only"·class="variant"><a·href="#variant.Only"·class="anchor">§</a><h3·class="code-header">Only</h3></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><div·class="docblock"><p>Run·only·ignored·tests</p>
7 </div></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-RunIgnored"·class="impl"><a·class="src·rightside"·href="../../src/test/options.rs.html#42">Source</a><a·href="#impl-Clone-for-RunIgnored"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="enum"·href="enum.RunIgnored.html"·title="enum·test::test::RunIgnored">RunIgnored</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/test/options.rs.html#42">Source</a><a·href="#method.clone"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/clone/trait.Clone.html#tymethod.clone"·class="fn">clone</a>(&amp;self)·-&gt;·<a·class="enum"·href="enum.RunIgnored.html"·title="enum·test::test::RunIgnored">RunIgnored</a></h4></section></summary><div·class='docblock'>Returns·a·copy·of·the·value.·<a·href="../../core/clone/trait.Clone.html#tymethod.clone">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_from"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/clone.rs.html#174">Source</a></span><a·href="#method.clone_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/clone/trait.Clone.html#method.clone_from"·class="fn">clone_from</a>(&amp;mut·self,·source:·&amp;Self)</h4></section></summary><div·class='docblock'>Performs·copy-assignment·from·<code>source</code>.·<a·href="../../core/clone/trait.Clone.html#method.clone_from">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-RunIgnored"·class="impl"><a·class="src·rightside"·href="../../src/test/options.rs.html#42">Source</a><a·href="#impl-Debug-for-RunIgnored"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/fmt/trait.Debug.html"·title="trait·core::fmt::Debug">Debug</a>·for·<a·class="enum"·href="enum.RunIgnored.html"·title="enum·test::test::RunIgnored">RunIgnored</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/test/options.rs.html#42">Source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="../../core/fmt/struct.Formatter.html"·title="struct·core::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="type"·href="../../core/fmt/type.Result.html"·title="type·core::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../../core/fmt/trait.Debug.html#tymethod.fmt">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-PartialEq-for-RunIgnored"·class="impl"><a·class="src·rightside"·href="../../src/test/options.rs.html#42">Source</a><a·href="#impl-PartialEq-for-RunIgnored"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/cmp/trait.PartialEq.html"·title="trait·core::cmp::PartialEq">PartialEq</a>·for·<a·class="enum"·href="enum.RunIgnored.html"·title="enum·test::test::RunIgnored">RunIgnored</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.eq"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/test/options.rs.html#42">Source</a><a·href="#method.eq"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/cmp/trait.PartialEq.html#tymethod.eq"·class="fn">eq</a>(&amp;self,·other:·&amp;<a·class="enum"·href="enum.RunIgnored.html"·title="enum·test::test::RunIgnored">RunIgnored</a>)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>self</code>·and·<code>other</code>·values·to·be·equal,·and·is·used·by·<code>==</code>.</div></details><details·class="toggle·me[·...·truncated·by·diffoscope;·len:·575,·SHA:·24e5a6b6f07d6dccde1f4f31a2d320251328cc5b8476dbf860d00dba4bc89363·...·]/std/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>!=</code>.·The·default·implementation·is·almost·always·sufficient,7 </div></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-RunIgnored"·class="impl"><a·class="src·rightside"·href="../../src/test/options.rs.html#42">Source</a><a·href="#impl-Clone-for-RunIgnored"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="enum"·href="enum.RunIgnored.html"·title="enum·test::test::RunIgnored">RunIgnored</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/test/options.rs.html#42">Source</a><a·href="#method.clone"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/clone/trait.Clone.html#tymethod.clone"·class="fn">clone</a>(&amp;self)·-&gt;·<a·class="enum"·href="enum.RunIgnored.html"·title="enum·test::test::RunIgnored">RunIgnored</a></h4></section></summary><div·class='docblock'>Returns·a·copy·of·the·value.·<a·href="../../core/clone/trait.Clone.html#tymethod.clone">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_from"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/clone.rs.html#174">Source</a></span><a·href="#method.clone_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/clone/trait.Clone.html#method.clone_from"·class="fn">clone_from</a>(&amp;mut·self,·source:·&amp;Self)</h4></section></summary><div·class='docblock'>Performs·copy-assignment·from·<code>source</code>.·<a·href="../../core/clone/trait.Clone.html#method.clone_from">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-RunIgnored"·class="impl"><a·class="src·rightside"·href="../../src/test/options.rs.html#42">Source</a><a·href="#impl-Debug-for-RunIgnored"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/fmt/trait.Debug.html"·title="trait·core::fmt::Debug">Debug</a>·for·<a·class="enum"·href="enum.RunIgnored.html"·title="enum·test::test::RunIgnored">RunIgnored</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/test/options.rs.html#42">Source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="../../core/fmt/struct.Formatter.html"·title="struct·core::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="type"·href="../../core/fmt/type.Result.html"·title="type·core::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../../core/fmt/trait.Debug.html#tymethod.fmt">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-PartialEq-for-RunIgnored"·class="impl"><a·class="src·rightside"·href="../../src/test/options.rs.html#42">Source</a><a·href="#impl-PartialEq-for-RunIgnored"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/cmp/trait.PartialEq.html"·title="trait·core::cmp::PartialEq">PartialEq</a>·for·<a·class="enum"·href="enum.RunIgnored.html"·title="enum·test::test::RunIgnored">RunIgnored</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.eq"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/test/options.rs.html#42">Source</a><a·href="#method.eq"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/cmp/trait.PartialEq.html#tymethod.eq"·class="fn">eq</a>(&amp;self,·other:·&amp;<a·class="enum"·href="enum.RunIgnored.html"·title="enum·test::test::RunIgnored">RunIgnored</a>)·-&gt;·<a·class="primitive"·href="../../std/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>self</code>·and·<code>other</code>·values·to·be·equal,·and·is·used·by·<code>==</code>.</div></details><details·class="toggle·method-toggle"·open><summary>[·...·truncated·by·diffoscope;·len:·494,·SHA:·db76c2d93beea7efa856fa6578fe817b3591880dfa224bd5e9c9e64062908aa1·...·]/std/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>!=</code>.·The·default·implementation·is·almost·always·sufficient,
8 and·should·not·be·overridden·without·very·good·reason.</div></details></div></details><section·id="impl-Copy-for-RunIgnored"·class="impl"><a·class="src·rightside"·href="../../src/test/options.rs.html#42">Source</a><a·href="#impl-Copy-for-RunIgnored"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Copy.html"·title="trait·core::marker::Copy">Copy</a>·for·<a·class="enum"·href="enum.RunIgnored.html"·title="enum·test::test::RunIgnored">RunIgnored</a></h3></section><section·id="impl-Eq-for-RunIgnored"·class="impl"><a·class="src·rightside"·href="../../src/test/options.rs.html#42">Source</a><a·href="#impl-Eq-for-RunIgnored"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/cmp/trait.Eq.html"·title="trait·core::cmp::Eq">Eq</a>·for·<a·class="enum"·href="enum.RunIgnored.html"·title="enum·test::test::RunIgnored">RunIgnored</a></h3></section><section·id="impl-StructuralPartialEq-for-RunIgnored"·class="impl"><a·class="src·rightside"·href="../../src/test/options.rs.html#42">Source</a><a·href="#impl-StructuralPartialEq-for-RunIgnored"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.StructuralPartialEq.html"·title="trait·core::marker::StructuralPartialEq">StructuralPartialEq</a>·for·<a·class="enum"·href="enum.RunIgnored.html"·title="enum·test::test::RunIgnored">RunIgnored</a></h3></section></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-RunIgnored"·class="impl"><a·href="#impl-Freeze-for-RunIgnored"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="enum"·href="enum.RunIgnored.html"·title="enum·test::test::RunIgnored">RunIgnored</a></h3></section><section·id="impl-RefUnwindSafe-for-RunIgnored"·class="impl"><a·href="#impl-RefUnwindSafe-for-RunIgnored"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="enum"·href="enum.RunIgnored.html"·title="enum·test::test::RunIgnored">RunIgnored</a></h3></section><section·id="impl-Send-for-RunIgnored"·class="impl"><a·href="#impl-Send-for-RunIgnored"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="enum"·href="enum.RunIgnored.html"·title="enum·test::test::RunIgnored">RunIgnored</a></h3></section><section·id="impl-Sync-for-RunIgnored"·class="impl"><a·href="#impl-Sync-for-RunIgnored"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="enum"·href="enum.RunIgnored.html"·title="enum·test::test::RunIgnored">RunIgnored</a></h3></section><section·id="impl-Unpin-for-RunIgnored"·class="impl"><a·href="#impl-Unpin-for-RunIgnored"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="enum"·href="enum.RunIgnored.html"·title="enum·test::test::RunIgnored">RunIgnored</a></h3></section><section·id="impl-UnwindSafe-for-RunIgnored"·class="impl"><a·href="#impl-UnwindSafe-for-RunIgnored"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="enum"·href="enum.RunIgnored.html"·title="enum·test::test::RunIgnored">RunIgnored</a></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementations<a·href="#blanket-implementations"·class="anchor">§</a></h2><div·id="blanket-implementations-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-Any-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/any.rs.html#138">Source</a><a·href="#impl-Any-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where8 and·should·not·be·overridden·without·very·good·reason.</div></details></div></details><section·id="impl-Copy-for-RunIgnored"·class="impl"><a·class="src·rightside"·href="../../src/test/options.rs.html#42">Source</a><a·href="#impl-Copy-for-RunIgnored"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Copy.html"·title="trait·core::marker::Copy">Copy</a>·for·<a·class="enum"·href="enum.RunIgnored.html"·title="enum·test::test::RunIgnored">RunIgnored</a></h3></section><section·id="impl-Eq-for-RunIgnored"·class="impl"><a·class="src·rightside"·href="../../src/test/options.rs.html#42">Source</a><a·href="#impl-Eq-for-RunIgnored"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/cmp/trait.Eq.html"·title="trait·core::cmp::Eq">Eq</a>·for·<a·class="enum"·href="enum.RunIgnored.html"·title="enum·test::test::RunIgnored">RunIgnored</a></h3></section><section·id="impl-StructuralPartialEq-for-RunIgnored"·class="impl"><a·class="src·rightside"·href="../../src/test/options.rs.html#42">Source</a><a·href="#impl-StructuralPartialEq-for-RunIgnored"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.StructuralPartialEq.html"·title="trait·core::marker::StructuralPartialEq">StructuralPartialEq</a>·for·<a·class="enum"·href="enum.RunIgnored.html"·title="enum·test::test::RunIgnored">RunIgnored</a></h3></section></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-RunIgnored"·class="impl"><a·href="#impl-Freeze-for-RunIgnored"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="enum"·href="enum.RunIgnored.html"·title="enum·test::test::RunIgnored">RunIgnored</a></h3></section><section·id="impl-RefUnwindSafe-for-RunIgnored"·class="impl"><a·href="#impl-RefUnwindSafe-for-RunIgnored"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="enum"·href="enum.RunIgnored.html"·title="enum·test::test::RunIgnored">RunIgnored</a></h3></section><section·id="impl-Send-for-RunIgnored"·class="impl"><a·href="#impl-Send-for-RunIgnored"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="enum"·href="enum.RunIgnored.html"·title="enum·test::test::RunIgnored">RunIgnored</a></h3></section><section·id="impl-Sync-for-RunIgnored"·class="impl"><a·href="#impl-Sync-for-RunIgnored"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="enum"·href="enum.RunIgnored.html"·title="enum·test::test::RunIgnored">RunIgnored</a></h3></section><section·id="impl-Unpin-for-RunIgnored"·class="impl"><a·href="#impl-Unpin-for-RunIgnored"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="enum"·href="enum.RunIgnored.html"·title="enum·test::test::RunIgnored">RunIgnored</a></h3></section><section·id="impl-UnwindSafe-for-RunIgnored"·class="impl"><a·href="#impl-UnwindSafe-for-RunIgnored"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="enum"·href="enum.RunIgnored.html"·title="enum·test::test::RunIgnored">RunIgnored</a></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementations<a·href="#blanket-implementations"·class="anchor">§</a></h2><div·id="blanket-implementations-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-Any-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/any.rs.html#138">Source</a><a·href="#impl-Any-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where
9 ····T:·'static·+·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/any.rs.html#139">Source</a><a·href="#method.type_id"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/any/trait.Any.html#tymethod.type_id"·class="fn">type_id</a>(&amp;self)·-&gt;·<a·class="struct"·href="../../core/any/struct.TypeId.html"·title="struct·core::any::TypeId">TypeId</a></h4></section></summary><div·class='docblock'>Gets·the·<code>TypeId</code>·of·<code>self</code>.·<a·href="../../core/any/trait.Any.html#tymethod.type_id">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Borrow%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/borrow/trait.Borrow.html"·title="trait·core::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where9 ····T:·'static·+·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/any.rs.html#139">Source</a><a·href="#method.type_id"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/any/trait.Any.html#tymethod.type_id"·class="fn">type_id</a>(&amp;self)·-&gt;·<a·class="struct"·href="../../core/any/struct.TypeId.html"·title="struct·core::any::TypeId">TypeId</a></h4></section></summary><div·class='docblock'>Gets·the·<code>TypeId</code>·of·<code>self</code>.·<a·href="../../core/any/trait.Any.html#tymethod.type_id">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Borrow%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/borrow/trait.Borrow.html"·title="trait·core::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where
10 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#211">Source</a><a·href="#method.borrow"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/borrow/trait.Borrow.html#tymethod.borrow"·class="fn">borrow</a>(&amp;self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;T</a></h4></section></summary><div·class='docblock'>Immutably·borrows·from·an·owned·value.·<a·href="../../core/borrow/trait.Borrow.html#tymethod.borrow">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-BorrowMut%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/borrow/trait.BorrowMut.html"·title="trait·core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where10 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#211">Source</a><a·href="#method.borrow"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/borrow/trait.Borrow.html#tymethod.borrow"·class="fn">borrow</a>(&amp;self)·-&gt;·<a·class="primitive"·href="../../std/primitive.reference.html">&amp;T</a></h4></section></summary><div·class='docblock'>Immutably·borrows·from·an·owned·value.·<a·href="../../core/borrow/trait.Borrow.html#tymethod.borrow">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-BorrowMut%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/borrow/trait.BorrowMut.html"·title="trait·core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where
11 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#218">Source</a><a·href="#method.borrow_mut"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"·class="fn">borrow_mut</a>(&amp;mut·self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;mut·T</a></h4></section></summary><div·class='docblock'>Mutably·borrows·from·an·owned·value.·<a·href="../../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-CloneToUninit-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/clone.rs.html#273">Source</a><a·href="#impl-CloneToUninit-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where11 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#218">Source</a><a·href="#method.borrow_mut"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"·class="fn">borrow_mut</a>(&amp;mut·self)·-&gt;·<a·class="primitive"·href="../../std/primitive.reference.html">&amp;mut·T</a></h4></section></summary><div·class='docblock'>Mutably·borrows·from·an·owned·value.·<a·href="../../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-CloneToUninit-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/clone.rs.html#273">Source</a><a·href="#impl-CloneToUninit-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where
12 ····T:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/clone.rs.html#275">Source</a><a·href="#method.clone_to_uninit"·class="anchor">§</a><h4·class="code-header">unsafe·fn·<a·href="../../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit"·class="fn">clone_to_uninit</a>(&amp;self,·dst:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.pointer.html">*mut·</a><a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.u8.html">u8</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>clone_to_uninit</code>)</span></div></span><div·class='docblock'>Performs·copy-assignment·from·<code>self</code>·to·<code>dst</code>.·<a·href="../../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-From%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#765">Source</a><a·href="#impl-From%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·T</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#768">Source</a><a·href="#method.from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>12 ····T:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/clone.rs.html#275">Source</a><a·href="#method.clone_to_uninit"·class="anchor">§</a><h4·class="code-header">unsafe·fn·<a·href="../../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit"·class="fn">clone_to_uninit</a>(&amp;self,·dst:·<a·class="primitive"·href="../../std/primitive.pointer.html">*mut·</a><a·class="primitive"·href="../../std/primitive.u8.html">u8</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>clone_to_uninit</code>)</span></div></span><div·class='docblock'>Performs·copy-assignment·from·<code>self</code>·to·<code>dst</code>.·<a·href="../../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-From%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#765">Source</a><a·href="#impl-From%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·T</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#768">Source</a><a·href="#method.from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>
13 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where13 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where
14 ····U:·<a·class="trait"·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#758">Source</a><a·href="#method.into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>14 ····U:·<a·class="trait"·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#758">Source</a><a·href="#method.into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>
15 <p>That·is,·this·conversion·is·whatever·the·implementation·of15 <p>That·is,·this·conversion·is·whatever·the·implementation·of
16 <code><a·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>16 <code><a·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>
17 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#82-84">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../alloc/borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where17 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#82-84">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../alloc/borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where
18 ····T:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#86">Source</a><a·href="#associatedtype.Owned"·class="anchor">§</a><h4·class="code-header">type·<a·href="../../alloc/borrow/trait.ToOwned.html#associatedtype.Owned"·class="associatedtype">Owned</a>·=·T</h4></section></summary><div·class='docblock'>The·resulting·type·after·obtaining·ownership.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.to_owned"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#87">Source</a><a·href="#method.to_owned"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../alloc/borrow/trait.ToOwned.html#tymethod.to_owned"·class="fn">to_owned</a>(&amp;self)·-&gt;·T</h4></section></summary><div·class='docblock'>Creates·owned·data·from·borrowed·data,·usually·by·cloning.·<a·href="../../alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#91">Source</a><a·href="#method.clone_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../alloc/borrow/trait.ToOwned.html#method.clone_into"·class="fn">clone_into</a>(&amp;self,·target:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../../alloc/borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#805-807">Source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where18 ····T:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#86">Source</a><a·href="#associatedtype.Owned"·class="anchor">§</a><h4·class="code-header">type·<a·href="../../alloc/borrow/trait.ToOwned.html#associatedtype.Owned"·class="associatedtype">Owned</a>·=·T</h4></section></summary><div·class='docblock'>The·resulting·type·after·obtaining·ownership.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.to_owned"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#87">Source</a><a·href="#method.to_owned"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../alloc/borrow/trait.ToOwned.html#tymethod.to_owned"·class="fn">to_owned</a>(&amp;self)·-&gt;·T</h4></section></summary><div·class='docblock'>Creates·owned·data·from·borrowed·data,·usually·by·cloning.·<a·href="../../alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#91">Source</a><a·href="#method.clone_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../alloc/borrow/trait.ToOwned.html#method.clone_into"·class="fn">clone_into</a>(&amp;self,·target:·<a·class="primitive"·href="../../std/primitive.reference.html">&amp;mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../../alloc/borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#805-807">Source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where
19 ····U:·<a·class="trait"·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#809">Source</a><a·href="#associatedtype.Error-1"·class="anchor">§</a><h4·class="code-header">type·<a·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<a·class="enum"·href="../../core/convert/enum.Infallible.html"·title="enum·core::convert::Infallible">Infallible</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_from"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#812">Source</a><a·href="#method.try_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.TryFrom.html#tymethod.try_from"·class="fn">try_from</a>(value:·U)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;T,·&lt;T·as·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;&gt;::<a·class="associatedtype"·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryInto%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#790-792">Source</a><a·href="#impl-TryInto%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where19 ····U:·<a·class="trait"·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#809">Source</a><a·href="#associatedtype.Error-1"·class="anchor">§</a><h4·class="code-header">type·<a·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<a·class="enum"·href="../../core/convert/enum.Infallible.html"·title="enum·core::convert::Infallible">Infallible</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_from"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#812">Source</a><a·href="#method.try_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.TryFrom.html#tymethod.try_from"·class="fn">try_from</a>(value:·U)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;T,·&lt;T·as·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;&gt;::<a·class="associatedtype"·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryInto%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#790-792">Source</a><a·href="#impl-TryInto%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where
20 ····U:·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#794">Source</a><a·href="#associatedtype.Error"·class="anchor">§</a><h4·class="code-header">type·<a·href="../../core/convert/trait.TryInto.html#associatedtype.Error"·class="associatedtype">Error</a>·=·&lt;U·as·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#797">Source</a><a·href="#method.try_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.TryInto.html#tymethod.try_into"·class="fn">try_into</a>(self)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;U,·&lt;U·as·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>20 ····U:·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#794">Source</a><a·href="#associatedtype.Error"·class="anchor">§</a><h4·class="code-header">type·<a·href="../../core/convert/trait.TryInto.html#associatedtype.Error"·class="associatedtype">Error</a>·=·&lt;U·as·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#797">Source</a><a·href="#method.try_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.TryInto.html#tymethod.try_into"·class="fn">try_into</a>(self)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;U,·&lt;U·as·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>
26.8 KB
./usr/share/doc/rust-doc/html/test/test/enum.RunStrategy.html
    
Offset 4, 18 lines modifiedOffset 4, 18 lines modified
4 }</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><h2·id="variants"·class="variants·section-header">Variants<a·href="#variants"·class="anchor">§</a></h2><div·class="variants"><section·id="variant.InProcess"·class="variant"><a·href="#variant.InProcess"·class="anchor">§</a><h3·class="code-header">InProcess</h3></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><div·class="docblock"><p>Runs·the·test·in·the·current·process,·and·sends·the·result·back·over·the4 }</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><h2·id="variants"·class="variants·section-header">Variants<a·href="#variants"·class="anchor">§</a></h2><div·class="variants"><section·id="variant.InProcess"·class="variant"><a·href="#variant.InProcess"·class="anchor">§</a><h3·class="code-header">InProcess</h3></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><div·class="docblock"><p>Runs·the·test·in·the·current·process,·and·sends·the·result·back·over·the
5 supplied·channel.</p>5 supplied·channel.</p>
6 </div><section·id="variant.SpawnPrimary"·class="variant"><a·href="#variant.SpawnPrimary"·class="anchor">§</a><h3·class="code-header">SpawnPrimary</h3></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><div·class="docblock"><p>Spawns·a·subprocess·to·run·the·test,·and·sends·the·result·back·over·the6 </div><section·id="variant.SpawnPrimary"·class="variant"><a·href="#variant.SpawnPrimary"·class="anchor">§</a><h3·class="code-header">SpawnPrimary</h3></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><div·class="docblock"><p>Spawns·a·subprocess·to·run·the·test,·and·sends·the·result·back·over·the
7 supplied·channel.·Requires·<code>argv[0]</code>·to·exist·and·point·to·the·binary7 supplied·channel.·Requires·<code>argv[0]</code>·to·exist·and·point·to·the·binary
8 that’s·currently·running.</p>8 that’s·currently·running.</p>
9 </div></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-RunStrategy"·class="impl"><a·class="src·rightside"·href="../../src/test/options.rs.html#50">Source</a><a·href="#impl-Clone-for-RunStrategy"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="enum"·href="enum.RunStrategy.html"·title="enum·test::test::RunStrategy">RunStrategy</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/test/options.rs.html#50">Source</a><a·href="#method.clone"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/clone/trait.Clone.html#tymethod.clone"·class="fn">clone</a>(&amp;self)·-&gt;·<a·class="enum"·href="enum.RunStrategy.html"·title="enum·test::test::RunStrategy">RunStrategy</a></h4></section></summary><div·class='docblock'>Returns·a·copy·of·the·value.·<a·href="../../core/clone/trait.Clone.html#tymethod.clone">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_from"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/clone.rs.html#174">Source</a></span><a·href="#method.clone_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/clone/trait.Clone.html#method.clone_from"·class="fn">clone_from</a>(&amp;mut·self,·source:·&amp;Self)</h4></section></summary><div·class='docblock'>Performs·copy-assignment·from·<code>source</code>.·<a·href="../../core/clone/trait.Clone.html#method.clone_from">Read·more</a></div></details></div></details><section·id="impl-Copy-for-RunStrategy"·class="impl"><a·class="src·rightside"·href="../../src/test/options.rs.html#50">Source</a><a·href="#impl-Copy-for-RunStrategy"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Copy.html"·title="trait·core::marker::Copy">Copy</a>·for·<a·class="enum"·href="enum.RunStrategy.html"·title="enum·test::test::RunStrategy">RunStrategy</a></h3></section></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-RunStrategy"·class="impl"><a·href="#impl-Freeze-for-RunStrategy"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="enum"·href="enum.RunStrategy.html"·title="enum·test::test::RunStrategy">RunStrategy</a></h3></section><section·id="impl-RefUnwindSafe-for-RunStrategy"·class="impl"><a·href="#impl-RefUnwindSafe-for-RunStrategy"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="enum"·href="enum.RunStrategy.html"·title="enum·test::test::RunStrategy">RunStrategy</a></h3></section><section·id="impl-Send-for-RunStrategy"·class="impl"><a·href="#impl-Send-for-RunStrategy"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="enum"·href="enum.RunStrategy.html"·title="enum·test::test::RunStrategy">RunStrategy</a></h3></section><section·id="impl-Sync-for-RunStrategy"·class="impl"><a·href="#impl-Sync-for-RunStrategy"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="enum"·href="enum.RunStrategy.html"·title="enum·test::test::RunStrategy">RunStrategy</a></h3></section><section·id="impl-Unpin-for-RunStrategy"·class="impl"><a·href="#impl-Unpin-for-RunStrategy"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="enum"·href="enum.RunStrategy.html"·title="enum·test::test::RunStrategy">RunStrategy</a></h3></section><section·id="impl-UnwindSafe-for-RunStrategy"·class="impl"><a·href="#impl-UnwindSafe-for-RunStrategy"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="enum"·href="enum.RunStrategy.html"·title="enum·test::test::RunStrategy">RunStrategy</a></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementations<a·href="#blanket-implementations"·class="anchor">§</a></h2><div·id="blanket-implementations-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-Any-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/any.rs.html#138">Source</a><a·href="#impl-Any-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where9 </div></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-RunStrategy"·class="impl"><a·class="src·rightside"·href="../../src/test/options.rs.html#50">Source</a><a·href="#impl-Clone-for-RunStrategy"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="enum"·href="enum.RunStrategy.html"·title="enum·test::test::RunStrategy">RunStrategy</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/test/options.rs.html#50">Source</a><a·href="#method.clone"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/clone/trait.Clone.html#tymethod.clone"·class="fn">clone</a>(&amp;self)·-&gt;·<a·class="enum"·href="enum.RunStrategy.html"·title="enum·test::test::RunStrategy">RunStrategy</a></h4></section></summary><div·class='docblock'>Returns·a·copy·of·the·value.·<a·href="../../core/clone/trait.Clone.html#tymethod.clone">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_from"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/clone.rs.html#174">Source</a></span><a·href="#method.clone_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/clone/trait.Clone.html#method.clone_from"·class="fn">clone_from</a>(&amp;mut·self,·source:·&amp;Self)</h4></section></summary><div·class='docblock'>Performs·copy-assignment·from·<code>source</code>.·<a·href="../../core/clone/trait.Clone.html#method.clone_from">Read·more</a></div></details></div></details><section·id="impl-Copy-for-RunStrategy"·class="impl"><a·class="src·rightside"·href="../../src/test/options.rs.html#50">Source</a><a·href="#impl-Copy-for-RunStrategy"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Copy.html"·title="trait·core::marker::Copy">Copy</a>·for·<a·class="enum"·href="enum.RunStrategy.html"·title="enum·test::test::RunStrategy">RunStrategy</a></h3></section></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-RunStrategy"·class="impl"><a·href="#impl-Freeze-for-RunStrategy"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="enum"·href="enum.RunStrategy.html"·title="enum·test::test::RunStrategy">RunStrategy</a></h3></section><section·id="impl-RefUnwindSafe-for-RunStrategy"·class="impl"><a·href="#impl-RefUnwindSafe-for-RunStrategy"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="enum"·href="enum.RunStrategy.html"·title="enum·test::test::RunStrategy">RunStrategy</a></h3></section><section·id="impl-Send-for-RunStrategy"·class="impl"><a·href="#impl-Send-for-RunStrategy"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="enum"·href="enum.RunStrategy.html"·title="enum·test::test::RunStrategy">RunStrategy</a></h3></section><section·id="impl-Sync-for-RunStrategy"·class="impl"><a·href="#impl-Sync-for-RunStrategy"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="enum"·href="enum.RunStrategy.html"·title="enum·test::test::RunStrategy">RunStrategy</a></h3></section><section·id="impl-Unpin-for-RunStrategy"·class="impl"><a·href="#impl-Unpin-for-RunStrategy"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="enum"·href="enum.RunStrategy.html"·title="enum·test::test::RunStrategy">RunStrategy</a></h3></section><section·id="impl-UnwindSafe-for-RunStrategy"·class="impl"><a·href="#impl-UnwindSafe-for-RunStrategy"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="enum"·href="enum.RunStrategy.html"·title="enum·test::test::RunStrategy">RunStrategy</a></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementations<a·href="#blanket-implementations"·class="anchor">§</a></h2><div·id="blanket-implementations-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-Any-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/any.rs.html#138">Source</a><a·href="#impl-Any-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where
10 ····T:·'static·+·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/any.rs.html#139">Source</a><a·href="#method.type_id"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/any/trait.Any.html#tymethod.type_id"·class="fn">type_id</a>(&amp;self)·-&gt;·<a·class="struct"·href="../../core/any/struct.TypeId.html"·title="struct·core::any::TypeId">TypeId</a></h4></section></summary><div·class='docblock'>Gets·the·<code>TypeId</code>·of·<code>self</code>.·<a·href="../../core/any/trait.Any.html#tymethod.type_id">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Borrow%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/borrow/trait.Borrow.html"·title="trait·core::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where10 ····T:·'static·+·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/any.rs.html#139">Source</a><a·href="#method.type_id"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/any/trait.Any.html#tymethod.type_id"·class="fn">type_id</a>(&amp;self)·-&gt;·<a·class="struct"·href="../../core/any/struct.TypeId.html"·title="struct·core::any::TypeId">TypeId</a></h4></section></summary><div·class='docblock'>Gets·the·<code>TypeId</code>·of·<code>self</code>.·<a·href="../../core/any/trait.Any.html#tymethod.type_id">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Borrow%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/borrow/trait.Borrow.html"·title="trait·core::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where
11 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#211">Source</a><a·href="#method.borrow"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/borrow/trait.Borrow.html#tymethod.borrow"·class="fn">borrow</a>(&amp;self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;T</a></h4></section></summary><div·class='docblock'>Immutably·borrows·from·an·owned·value.·<a·href="../../core/borrow/trait.Borrow.html#tymethod.borrow">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-BorrowMut%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/borrow/trait.BorrowMut.html"·title="trait·core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where11 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#211">Source</a><a·href="#method.borrow"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/borrow/trait.Borrow.html#tymethod.borrow"·class="fn">borrow</a>(&amp;self)·-&gt;·<a·class="primitive"·href="../../std/primitive.reference.html">&amp;T</a></h4></section></summary><div·class='docblock'>Immutably·borrows·from·an·owned·value.·<a·href="../../core/borrow/trait.Borrow.html#tymethod.borrow">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-BorrowMut%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/borrow/trait.BorrowMut.html"·title="trait·core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where
12 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#218">Source</a><a·href="#method.borrow_mut"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"·class="fn">borrow_mut</a>(&amp;mut·self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;mut·T</a></h4></section></summary><div·class='docblock'>Mutably·borrows·from·an·owned·value.·<a·href="../../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-CloneToUninit-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/clone.rs.html#273">Source</a><a·href="#impl-CloneToUninit-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where12 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#218">Source</a><a·href="#method.borrow_mut"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"·class="fn">borrow_mut</a>(&amp;mut·self)·-&gt;·<a·class="primitive"·href="../../std/primitive.reference.html">&amp;mut·T</a></h4></section></summary><div·class='docblock'>Mutably·borrows·from·an·owned·value.·<a·href="../../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-CloneToUninit-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/clone.rs.html#273">Source</a><a·href="#impl-CloneToUninit-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where
13 ····T:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/clone.rs.html#275">Source</a><a·href="#method.clone_to_uninit"·class="anchor">§</a><h4·class="code-header">unsafe·fn·<a·href="../../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit"·class="fn">clone_to_uninit</a>(&amp;self,·dst:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.pointer.html">*mut·</a><a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.u8.html">u8</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>clone_to_uninit</code>)</span></div></span><div·class='docblock'>Performs·copy-assignment·from·<code>self</code>·to·<code>dst</code>.·<a·href="../../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-From%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#765">Source</a><a·href="#impl-From%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·T</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#768">Source</a><a·href="#method.from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>13 ····T:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/clone.rs.html#275">Source</a><a·href="#method.clone_to_uninit"·class="anchor">§</a><h4·class="code-header">unsafe·fn·<a·href="../../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit"·class="fn">clone_to_uninit</a>(&amp;self,·dst:·<a·class="primitive"·href="../../std/primitive.pointer.html">*mut·</a><a·class="primitive"·href="../../std/primitive.u8.html">u8</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>clone_to_uninit</code>)</span></div></span><div·class='docblock'>Performs·copy-assignment·from·<code>self</code>·to·<code>dst</code>.·<a·href="../../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-From%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#765">Source</a><a·href="#impl-From%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·T</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#768">Source</a><a·href="#method.from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>
14 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where14 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where
15 ····U:·<a·class="trait"·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#758">Source</a><a·href="#method.into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>15 ····U:·<a·class="trait"·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#758">Source</a><a·href="#method.into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>
16 <p>That·is,·this·conversion·is·whatever·the·implementation·of16 <p>That·is,·this·conversion·is·whatever·the·implementation·of
17 <code><a·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>17 <code><a·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>
18 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#82-84">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../alloc/borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where18 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#82-84">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../alloc/borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where
19 ····T:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#86">Source</a><a·href="#associatedtype.Owned"·class="anchor">§</a><h4·class="code-header">type·<a·href="../../alloc/borrow/trait.ToOwned.html#associatedtype.Owned"·class="associatedtype">Owned</a>·=·T</h4></section></summary><div·class='docblock'>The·resulting·type·after·obtaining·ownership.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.to_owned"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#87">Source</a><a·href="#method.to_owned"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../alloc/borrow/trait.ToOwned.html#tymethod.to_owned"·class="fn">to_owned</a>(&amp;self)·-&gt;·T</h4></section></summary><div·class='docblock'>Creates·owned·data·from·borrowed·data,·usually·by·cloning.·<a·href="../../alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#91">Source</a><a·href="#method.clone_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../alloc/borrow/trait.ToOwned.html#method.clone_into"·class="fn">clone_into</a>(&amp;self,·target:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../../alloc/borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#805-807">Source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where19 ····T:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#86">Source</a><a·href="#associatedtype.Owned"·class="anchor">§</a><h4·class="code-header">type·<a·href="../../alloc/borrow/trait.ToOwned.html#associatedtype.Owned"·class="associatedtype">Owned</a>·=·T</h4></section></summary><div·class='docblock'>The·resulting·type·after·obtaining·ownership.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.to_owned"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#87">Source</a><a·href="#method.to_owned"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../alloc/borrow/trait.ToOwned.html#tymethod.to_owned"·class="fn">to_owned</a>(&amp;self)·-&gt;·T</h4></section></summary><div·class='docblock'>Creates·owned·data·from·borrowed·data,·usually·by·cloning.·<a·href="../../alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#91">Source</a><a·href="#method.clone_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../alloc/borrow/trait.ToOwned.html#method.clone_into"·class="fn">clone_into</a>(&amp;self,·target:·<a·class="primitive"·href="../../std/primitive.reference.html">&amp;mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../../alloc/borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#805-807">Source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where
20 ····U:·<a·class="trait"·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#809">Source</a><a·href="#associatedtype.Error-1"·class="anchor">§</a><h4·class="code-header">type·<a·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<a·class="enum"·href="../../core/convert/enum.Infallible.html"·title="enum·core::convert::Infallible">Infallible</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_from"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#812">Source</a><a·href="#method.try_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.TryFrom.html#tymethod.try_from"·class="fn">try_from</a>(value:·U)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;T,·&lt;T·as·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;&gt;::<a·class="associatedtype"·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryInto%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#790-792">Source</a><a·href="#impl-TryInto%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where20 ····U:·<a·class="trait"·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#809">Source</a><a·href="#associatedtype.Error-1"·class="anchor">§</a><h4·class="code-header">type·<a·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<a·class="enum"·href="../../core/convert/enum.Infallible.html"·title="enum·core::convert::Infallible">Infallible</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_from"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#812">Source</a><a·href="#method.try_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.TryFrom.html#tymethod.try_from"·class="fn">try_from</a>(value:·U)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;T,·&lt;T·as·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;&gt;::<a·class="associatedtype"·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryInto%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#790-792">Source</a><a·href="#impl-TryInto%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where
21 ····U:·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#794">Source</a><a·href="#associatedtype.Error"·class="anchor">§</a><h4·class="code-header">type·<a·href="../../core/convert/trait.TryInto.html#associatedtype.Error"·class="associatedtype">Error</a>·=·&lt;U·as·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#797">Source</a><a·href="#method.try_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.TryInto.html#tymethod.try_into"·class="fn">try_into</a>(self)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;U,·&lt;U·as·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>21 ····U:·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#794">Source</a><a·href="#associatedtype.Error"·class="anchor">§</a><h4·class="code-header">type·<a·href="../../core/convert/trait.TryInto.html#associatedtype.Error"·class="associatedtype">Error</a>·=·&lt;U·as·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#797">Source</a><a·href="#method.try_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.TryInto.html#tymethod.try_into"·class="fn">try_into</a>(self)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;U,·&lt;U·as·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>
47.8 KB
./usr/share/doc/rust-doc/html/test/test/enum.ShouldPanic.html
    
Offset 1, 21 lines modifiedOffset 1, 21 lines modified
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="Whether·test·is·expected·to·panic·or·not"><title>ShouldPanic·in·test::test·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="test"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·enum"><!--[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><a·class="logo-container"·href="../../test/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../test/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../test/index.html">test</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»    2025-01-07)» (built»   from»       a»      source»tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Should<wbr>Panic</a></h2><h3><a·href="#variants">Variants</a></h3><ul·class="block·variant"><li><a·href="#variant.No"·title="No">No</a></li><li><a·href="#variant.Yes"·title="Yes">Yes</a></li><li><a·href="#variant.YesWithMessage"·title="YesWithMessage">YesWithMessage</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-ShouldPanic"·title="Clone">Clone</a></li><li><a·href="#impl-Copy-for-ShouldPanic"·title="Copy">Copy</a></li><li><a·href="#impl-Debug-for-ShouldPanic"·title="Debug">Debug</a></li><li><a·href="#impl-Eq-for-ShouldPanic"·title="Eq">Eq</a></li><li><a·href="#impl-Hash-for-ShouldPanic"·title="Hash">Hash</a></li><li><a·href="#impl-PartialEq-for-ShouldPanic"·title="PartialEq">PartialEq</a></li><li><a·href="#impl-StructuralPartialEq-for-ShouldPanic"·title="StructuralPartialEq">StructuralPartialEq</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-ShouldPanic"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-ShouldPanic"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-ShouldPanic"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-ShouldPanic"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-ShouldPanic"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-ShouldPanic"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·test::<wbr>test</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">test</a>::<wbr><a·href="index.html">test</a></span><h1>Enum·<span·class="enum">ShouldPanic</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/test/options.rs.html#12-16">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·enum·ShouldPanic·{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="Whether·test·is·expected·to·panic·or·not"><title>ShouldPanic·in·test::test·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="test"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·enum"><!--[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><a·class="logo-container"·href="../../test/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../test/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../test/index.html">test</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»    2025-01-07)» (built»   from»       a»      source»tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Should<wbr>Panic</a></h2><h3><a·href="#variants">Variants</a></h3><ul·class="block·variant"><li><a·href="#variant.No"·title="No">No</a></li><li><a·href="#variant.Yes"·title="Yes">Yes</a></li><li><a·href="#variant.YesWithMessage"·title="YesWithMessage">YesWithMessage</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-ShouldPanic"·title="Clone">Clone</a></li><li><a·href="#impl-Copy-for-ShouldPanic"·title="Copy">Copy</a></li><li><a·href="#impl-Debug-for-ShouldPanic"·title="Debug">Debug</a></li><li><a·href="#impl-Eq-for-ShouldPanic"·title="Eq">Eq</a></li><li><a·href="#impl-Hash-for-ShouldPanic"·title="Hash">Hash</a></li><li><a·href="#impl-PartialEq-for-ShouldPanic"·title="PartialEq">PartialEq</a></li><li><a·href="#impl-StructuralPartialEq-for-ShouldPanic"·title="StructuralPartialEq">StructuralPartialEq</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-ShouldPanic"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-ShouldPanic"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-ShouldPanic"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-ShouldPanic"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-ShouldPanic"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-ShouldPanic"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·test::<wbr>test</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">test</a>::<wbr><a·href="index.html">test</a></span><h1>Enum·<span·class="enum">ShouldPanic</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/test/options.rs.html#12-16">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·enum·ShouldPanic·{
2 ····No,2 ····No,
3 ····Yes,3 ····Yes,
4 ····YesWithMessage(&amp;'static·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.str.html">str</a>),4 ····YesWithMessage(&amp;'static·<a·class="primitive"·href="../../std/primitive.str.html">str</a>),
5 }</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Whether·test·is·expected·to·panic·or·not</p>5 }</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Whether·test·is·expected·to·panic·or·not</p>
6 </div></details><h2·id="variants"·class="variants·section-header">Variants<a·href="#variants"·class="anchor">§</a></h2><div·class="variants"><section·id="variant.No"·class="variant"><a·href="#variant.No"·class="anchor">§</a><h3·class="code-header">No</h3></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><section·id="variant.Yes"·class="variant"><a·href="#variant.Yes"·class="anchor">§</a><h3·class="code-header">Yes</h3></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><section·id="variant.YesWithMessage"·class="variant"><a·href="#variant.YesWithMessage"·class="anchor">§</a><h3·class="code-header">YesWithMessage(&amp;'static·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.str.html">str</a>)</h3></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span></div><h2·i[·...·truncated·by·diffoscope;·len:·5162,·SHA:·4955087666a0ea67dccdefb9fd3bcc8d9c4b048b4ee9f2c7f92b5ff373612cf7·...·]/std/primitive.reference.html">&amp;mut·H</a>)<div·class="where">where6 </div></details><h2·id="variants"·class="variants·section-header">Variants<a·href="#variants"·class="anchor">§</a></h2><div·class="variants"><section·id="variant.No"·class="variant"><a·href="#variant.No"·class="anchor">§</a><h3·class="code-header">No</h3></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><section·id="variant.Yes"·class="variant"><a·href="#variant.Yes"·class="anchor">§</a><h3·class="code-header">Yes</h3></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><section·id="variant.YesWithMessage"·class="variant"><a·href="#variant.YesWithMessage"·class="anchor">§</a><h3·class="code-header">YesWithMessage(&amp;'static·<a·class="primitive"·href="../../std/primitive.str.html">str</a>)</h3></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span></div><h2·id="trait-implementations"·c[·...·truncated·by·diffoscope;·len:·5081,·SHA:·2cf829ff05af971075f4fe459cbb9a6e1840f78dbd2eb0f818f30bffb97aea74·...·]/std/primitive.reference.html">&amp;mut·H</a>)<div·class="where">where
7 ····H:·<a·class="trait"·href="../../core/hash/trait.Hasher.html"·title="trait·core::hash::Hasher">Hasher</a>,7 ····H:·<a·class="trait"·href="../../core/hash/trait.Hasher.html"·title="trait·core::hash::Hasher">Hasher</a>,
8 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Feeds·a·slice·of·this·type·into·the·given·<a·href="../../core/hash/trait.Hasher.html"·title="trait·core::hash::Hasher"><code>Hasher</code></a>.·<a·href="../../core/hash/trait.Hash.html#method.hash_slice">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-PartialEq-for-ShouldPanic"·class="impl"><a·class="src·rightside"·href="../../src/test/options.rs.html#11">Source</a><a·href="#impl-PartialEq-for-ShouldPanic"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/cmp/trait.PartialEq.html"·title="trait·core::cmp::PartialEq">PartialEq</a>·for·<a·class="enum"·href="enum.ShouldPanic.html"·title="enum·test::test::ShouldPanic">ShouldPanic</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.eq"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/test/options.rs.html#11">Source</a><a·href="#method.eq"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/cmp/trait.PartialEq.html#tymethod.eq"·class="fn">eq</a>(&amp;self,·other:·&amp;<a·class="enum"·href="enum.ShouldPanic.html"·title="enum·test::test::ShouldPanic">ShouldPanic</a>)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>self</code>·and·<code>other</code>·values·to·be·equal,·and·is·used·by·<code>==</code>.</div></details><details·class="toggle·me[·...·truncated·by·diffoscope;·len:·575,·SHA:·24e5a6b6f07d6dccde1f4f31a2d320251328cc5b8476dbf860d00dba4bc89363·...·]/std/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>!=</code>.·The·default·implementation·is·almost·always·sufficient,8 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Feeds·a·slice·of·this·type·into·the·given·<a·href="../../core/hash/trait.Hasher.html"·title="trait·core::hash::Hasher"><code>Hasher</code></a>.·<a·href="../../core/hash/trait.Hash.html#method.hash_slice">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-PartialEq-for-ShouldPanic"·class="impl"><a·class="src·rightside"·href="../../src/test/options.rs.html#11">Source</a><a·href="#impl-PartialEq-for-ShouldPanic"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/cmp/trait.PartialEq.html"·title="trait·core::cmp::PartialEq">PartialEq</a>·for·<a·class="enum"·href="enum.ShouldPanic.html"·title="enum·test::test::ShouldPanic">ShouldPanic</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.eq"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/test/options.rs.html#11">Source</a><a·href="#method.eq"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/cmp/trait.PartialEq.html#tymethod.eq"·class="fn">eq</a>(&amp;self,·other:·&amp;<a·class="enum"·href="enum.ShouldPanic.html"·title="enum·test::test::ShouldPanic">ShouldPanic</a>)·-&gt;·<a·class="primitive"·href="../../std/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>self</code>·and·<code>other</code>·values·to·be·equal,·and·is·used·by·<code>==</code>.</div></details><details·class="toggle·method-toggle"·open><summary>[·...·truncated·by·diffoscope;·len:·494,·SHA:·db76c2d93beea7efa856fa6578fe817b3591880dfa224bd5e9c9e64062908aa1·...·]/std/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>!=</code>.·The·default·implementation·is·almost·always·sufficient,
9 and·should·not·be·overridden·without·very·good·reason.</div></details></div></details><section·id="impl-Copy-for-ShouldPanic"·class="impl"><a·class="src·rightside"·href="../../src/test/options.rs.html#11">Source</a><a·href="#impl-Copy-for-ShouldPanic"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Copy.html"·title="trait·core::marker::Copy">Copy</a>·for·<a·class="enum"·href="enum.ShouldPanic.html"·title="enum·test::test::ShouldPanic">ShouldPanic</a></h3></section><section·id="impl-Eq-for-ShouldPanic"·class="impl"><a·class="src·rightside"·href="../../src/test/options.rs.html#11">Source</a><a·href="#impl-Eq-for-ShouldPanic"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/cmp/trait.Eq.html"·title="trait·core::cmp::Eq">Eq</a>·for·<a·class="enum"·href="enum.ShouldPanic.html"·title="enum·test::test::ShouldPanic">ShouldPanic</a></h3></section><section·id="impl-StructuralPartialEq-for-ShouldPanic"·class="impl"><a·class="src·rightside"·href="../../src/test/options.rs.html#11">Source</a><a·href="#impl-StructuralPartialEq-for-ShouldPanic"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.StructuralPartialEq.html"·title="trait·core::marker::StructuralPartialEq">StructuralPartialEq</a>·for·<a·class="enum"·href="enum.ShouldPanic.html"·title="enum·test::test::ShouldPanic">ShouldPanic</a></h3></section></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-ShouldPanic"·class="impl"><a·href="#impl-Freeze-for-ShouldPanic"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="enum"·href="enum.ShouldPanic.html"·title="enum·test::test::ShouldPanic">ShouldPanic</a></h3></section><section·id="impl-RefUnwindSafe-for-ShouldPanic"·class="impl"><a·href="#impl-RefUnwindSafe-for-ShouldPanic"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="enum"·href="enum.ShouldPanic.html"·title="enum·test::test::ShouldPanic">ShouldPanic</a></h3></section><section·id="impl-Send-for-ShouldPanic"·class="impl"><a·href="#impl-Send-for-ShouldPanic"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="enum"·href="enum.ShouldPanic.html"·title="enum·test::test::ShouldPanic">ShouldPanic</a></h3></section><section·id="impl-Sync-for-ShouldPanic"·class="impl"><a·href="#impl-Sync-for-ShouldPanic"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="enum"·href="enum.ShouldPanic.html"·title="enum·test::test::ShouldPanic">ShouldPanic</a></h3></section><section·id="impl-Unpin-for-ShouldPanic"·class="impl"><a·href="#impl-Unpin-for-ShouldPanic"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="enum"·href="enum.ShouldPanic.html"·title="enum·test::test::ShouldPanic">ShouldPanic</a></h3></section><section·id="impl-UnwindSafe-for-ShouldPanic"·class="impl"><a·href="#impl-UnwindSafe-for-ShouldPanic"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="enum"·href="enum.ShouldPanic.html"·title="enum·test::test::ShouldPanic">ShouldPanic</a></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementations<a·href="#blanket-implementations"·class="anchor">§</a></h2><div·id="blanket-implementations-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-Any-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/any.rs.html#138">Source</a><a·href="#impl-Any-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where9 and·should·not·be·overridden·without·very·good·reason.</div></details></div></details><section·id="impl-Copy-for-ShouldPanic"·class="impl"><a·class="src·rightside"·href="../../src/test/options.rs.html#11">Source</a><a·href="#impl-Copy-for-ShouldPanic"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Copy.html"·title="trait·core::marker::Copy">Copy</a>·for·<a·class="enum"·href="enum.ShouldPanic.html"·title="enum·test::test::ShouldPanic">ShouldPanic</a></h3></section><section·id="impl-Eq-for-ShouldPanic"·class="impl"><a·class="src·rightside"·href="../../src/test/options.rs.html#11">Source</a><a·href="#impl-Eq-for-ShouldPanic"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/cmp/trait.Eq.html"·title="trait·core::cmp::Eq">Eq</a>·for·<a·class="enum"·href="enum.ShouldPanic.html"·title="enum·test::test::ShouldPanic">ShouldPanic</a></h3></section><section·id="impl-StructuralPartialEq-for-ShouldPanic"·class="impl"><a·class="src·rightside"·href="../../src/test/options.rs.html#11">Source</a><a·href="#impl-StructuralPartialEq-for-ShouldPanic"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.StructuralPartialEq.html"·title="trait·core::marker::StructuralPartialEq">StructuralPartialEq</a>·for·<a·class="enum"·href="enum.ShouldPanic.html"·title="enum·test::test::ShouldPanic">ShouldPanic</a></h3></section></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-ShouldPanic"·class="impl"><a·href="#impl-Freeze-for-ShouldPanic"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="enum"·href="enum.ShouldPanic.html"·title="enum·test::test::ShouldPanic">ShouldPanic</a></h3></section><section·id="impl-RefUnwindSafe-for-ShouldPanic"·class="impl"><a·href="#impl-RefUnwindSafe-for-ShouldPanic"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="enum"·href="enum.ShouldPanic.html"·title="enum·test::test::ShouldPanic">ShouldPanic</a></h3></section><section·id="impl-Send-for-ShouldPanic"·class="impl"><a·href="#impl-Send-for-ShouldPanic"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="enum"·href="enum.ShouldPanic.html"·title="enum·test::test::ShouldPanic">ShouldPanic</a></h3></section><section·id="impl-Sync-for-ShouldPanic"·class="impl"><a·href="#impl-Sync-for-ShouldPanic"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="enum"·href="enum.ShouldPanic.html"·title="enum·test::test::ShouldPanic">ShouldPanic</a></h3></section><section·id="impl-Unpin-for-ShouldPanic"·class="impl"><a·href="#impl-Unpin-for-ShouldPanic"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="enum"·href="enum.ShouldPanic.html"·title="enum·test::test::ShouldPanic">ShouldPanic</a></h3></section><section·id="impl-UnwindSafe-for-ShouldPanic"·class="impl"><a·href="#impl-UnwindSafe-for-ShouldPanic"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="enum"·href="enum.ShouldPanic.html"·title="enum·test::test::ShouldPanic">ShouldPanic</a></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementations<a·href="#blanket-implementations"·class="anchor">§</a></h2><div·id="blanket-implementations-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-Any-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/any.rs.html#138">Source</a><a·href="#impl-Any-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where
10 ····T:·'static·+·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/any.rs.html#139">Source</a><a·href="#method.type_id"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/any/trait.Any.html#tymethod.type_id"·class="fn">type_id</a>(&amp;self)·-&gt;·<a·class="struct"·href="../../core/any/struct.TypeId.html"·title="struct·core::any::TypeId">TypeId</a></h4></section></summary><div·class='docblock'>Gets·the·<code>TypeId</code>·of·<code>self</code>.·<a·href="../../core/any/trait.Any.html#tymethod.type_id">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Borrow%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/borrow/trait.Borrow.html"·title="trait·core::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where10 ····T:·'static·+·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/any.rs.html#139">Source</a><a·href="#method.type_id"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/any/trait.Any.html#tymethod.type_id"·class="fn">type_id</a>(&amp;self)·-&gt;·<a·class="struct"·href="../../core/any/struct.TypeId.html"·title="struct·core::any::TypeId">TypeId</a></h4></section></summary><div·class='docblock'>Gets·the·<code>TypeId</code>·of·<code>self</code>.·<a·href="../../core/any/trait.Any.html#tymethod.type_id">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Borrow%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/borrow/trait.Borrow.html"·title="trait·core::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where
11 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#211">Source</a><a·href="#method.borrow"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/borrow/trait.Borrow.html#tymethod.borrow"·class="fn">borrow</a>(&amp;self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;T</a></h4></section></summary><div·class='docblock'>Immutably·borrows·from·an·owned·value.·<a·href="../../core/borrow/trait.Borrow.html#tymethod.borrow">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-BorrowMut%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/borrow/trait.BorrowMut.html"·title="trait·core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where11 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#211">Source</a><a·href="#method.borrow"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/borrow/trait.Borrow.html#tymethod.borrow"·class="fn">borrow</a>(&amp;self)·-&gt;·<a·class="primitive"·href="../../std/primitive.reference.html">&amp;T</a></h4></section></summary><div·class='docblock'>Immutably·borrows·from·an·owned·value.·<a·href="../../core/borrow/trait.Borrow.html#tymethod.borrow">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-BorrowMut%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/borrow/trait.BorrowMut.html"·title="trait·core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where
12 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#218">Source</a><a·href="#method.borrow_mut"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"·class="fn">borrow_mut</a>(&amp;mut·self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;mut·T</a></h4></section></summary><div·class='docblock'>Mutably·borrows·from·an·owned·value.·<a·href="../../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-CloneToUninit-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/clone.rs.html#273">Source</a><a·href="#impl-CloneToUninit-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where12 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#218">Source</a><a·href="#method.borrow_mut"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"·class="fn">borrow_mut</a>(&amp;mut·self)·-&gt;·<a·class="primitive"·href="../../std/primitive.reference.html">&amp;mut·T</a></h4></section></summary><div·class='docblock'>Mutably·borrows·from·an·owned·value.·<a·href="../../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-CloneToUninit-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/clone.rs.html#273">Source</a><a·href="#impl-CloneToUninit-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where
13 ····T:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/clone.rs.html#275">Source</a><a·href="#method.clone_to_uninit"·class="anchor">§</a><h4·class="code-header">unsafe·fn·<a·href="../../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit"·class="fn">clone_to_uninit</a>(&amp;self,·dst:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.pointer.html">*mut·</a><a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.u8.html">u8</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>clone_to_uninit</code>)</span></div></span><div·class='docblock'>Performs·copy-assignment·from·<code>self</code>·to·<code>dst</code>.·<a·href="../../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-From%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#765">Source</a><a·href="#impl-From%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·T</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#768">Source</a><a·href="#method.from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>13 ····T:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/clone.rs.html#275">Source</a><a·href="#method.clone_to_uninit"·class="anchor">§</a><h4·class="code-header">unsafe·fn·<a·href="../../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit"·class="fn">clone_to_uninit</a>(&amp;self,·dst:·<a·class="primitive"·href="../../std/primitive.pointer.html">*mut·</a><a·class="primitive"·href="../../std/primitive.u8.html">u8</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>clone_to_uninit</code>)</span></div></span><div·class='docblock'>Performs·copy-assignment·from·<code>self</code>·to·<code>dst</code>.·<a·href="../../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-From%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#765">Source</a><a·href="#impl-From%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·T</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#768">Source</a><a·href="#method.from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>
14 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where14 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where
15 ····U:·<a·class="trait"·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#758">Source</a><a·href="#method.into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>15 ····U:·<a·class="trait"·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#758">Source</a><a·href="#method.into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>
16 <p>That·is,·this·conversion·is·whatever·the·implementation·of16 <p>That·is,·this·conversion·is·whatever·the·implementation·of
17 <code><a·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>17 <code><a·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>
18 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#82-84">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../alloc/borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where18 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#82-84">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../alloc/borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where
19 ····T:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#86">Source</a><a·href="#associatedtype.Owned"·class="anchor">§</a><h4·class="code-header">type·<a·href="../../alloc/borrow/trait.ToOwned.html#associatedtype.Owned"·class="associatedtype">Owned</a>·=·T</h4></section></summary><div·class='docblock'>The·resulting·type·after·obtaining·ownership.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.to_owned"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#87">Source</a><a·href="#method.to_owned"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../alloc/borrow/trait.ToOwned.html#tymethod.to_owned"·class="fn">to_owned</a>(&amp;self)·-&gt;·T</h4></section></summary><div·class='docblock'>Creates·owned·data·from·borrowed·data,·usually·by·cloning.·<a·href="../../alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#91">Source</a><a·href="#method.clone_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../alloc/borrow/trait.ToOwned.html#method.clone_into"·class="fn">clone_into</a>(&amp;self,·target:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../../alloc/borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#805-807">Source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where19 ····T:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#86">Source</a><a·href="#associatedtype.Owned"·class="anchor">§</a><h4·class="code-header">type·<a·href="../../alloc/borrow/trait.ToOwned.html#associatedtype.Owned"·class="associatedtype">Owned</a>·=·T</h4></section></summary><div·class='docblock'>The·resulting·type·after·obtaining·ownership.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.to_owned"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#87">Source</a><a·href="#method.to_owned"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../alloc/borrow/trait.ToOwned.html#tymethod.to_owned"·class="fn">to_owned</a>(&amp;self)·-&gt;·T</h4></section></summary><div·class='docblock'>Creates·owned·data·from·borrowed·data,·usually·by·cloning.·<a·href="../../alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#91">Source</a><a·href="#method.clone_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../alloc/borrow/trait.ToOwned.html#method.clone_into"·class="fn">clone_into</a>(&amp;self,·target:·<a·class="primitive"·href="../../std/primitive.reference.html">&amp;mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../../alloc/borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#805-807">Source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where
20 ····U:·<a·class="trait"·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#809">Source</a><a·href="#associatedtype.Error-1"·class="anchor">§</a><h4·class="code-header">type·<a·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<a·class="enum"·href="../../core/convert/enum.Infallible.html"·title="enum·core::convert::Infallible">Infallible</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_from"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#812">Source</a><a·href="#method.try_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.TryFrom.html#tymethod.try_from"·class="fn">try_from</a>(value:·U)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;T,·&lt;T·as·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;&gt;::<a·class="associatedtype"·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryInto%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#790-792">Source</a><a·href="#impl-TryInto%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where20 ····U:·<a·class="trait"·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#809">Source</a><a·href="#associatedtype.Error-1"·class="anchor">§</a><h4·class="code-header">type·<a·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<a·class="enum"·href="../../core/convert/enum.Infallible.html"·title="enum·core::convert::Infallible">Infallible</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_from"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#812">Source</a><a·href="#method.try_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.TryFrom.html#tymethod.try_from"·class="fn">try_from</a>(value:·U)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;T,·&lt;T·as·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;&gt;::<a·class="associatedtype"·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryInto%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#790-792">Source</a><a·href="#impl-TryInto%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where
21 ····U:·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#794">Source</a><a·href="#associatedtype.Error"·class="anchor">§</a><h4·class="code-header">type·<a·href="../../core/convert/trait.TryInto.html#associatedtype.Error"·class="associatedtype">Error</a>·=·&lt;U·as·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#797">Source</a><a·href="#method.try_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.TryInto.html#tymethod.try_into"·class="fn">try_into</a>(self)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;U,·&lt;U·as·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>21 ····U:·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#794">Source</a><a·href="#associatedtype.Error"·class="anchor">§</a><h4·class="code-header">type·<a·href="../../core/convert/trait.TryInto.html#associatedtype.Error"·class="associatedtype">Error</a>·=·&lt;U·as·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#797">Source</a><a·href="#method.try_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.TryInto.html#tymethod.try_into"·class="fn">try_into</a>(self)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;U,·&lt;U·as·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>
57.1 KB
./usr/share/doc/rust-doc/html/test/test/enum.TestName.html
    
Offset 1, 21 lines modifiedOffset 1, 21 lines modified
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="API·documentation·for·the·Rust·`TestName`·enum·in·crate·`test`."><title>TestName·in·test::test·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="test"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·enum"><!--[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><a·class="logo-container"·href="../../test/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../test/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../test/index.html">test</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»  2025-01-07)»       (built» from»     a»    source»      tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Test<wbr>Name</a></h2><h3><a·href="#variants">Variants</a></h3><ul·class="block·variant"><li><a·href="#variant.AlignedTestName"·title="AlignedTestName">AlignedTestName</a></li><li><a·href="#variant.DynTestName"·title="DynTestName">DynTestName</a></li><li><a·href="#variant.StaticTestName"·title="StaticTestName">StaticTestName</a></li></ul><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.as_slice"·title="as_slice">as_slice</a></li><li><a·href="#method.padding"·title="padding">padding</a></li><li><a·href="#method.with_padding"·title="with_padding">with_padding</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-TestName"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-TestName"·title="Debug">Debug</a></li><li><a·href="#impl-Display-for-TestName"·title="Display">Display</a></li><li><a·href="#impl-Eq-for-TestName"·title="Eq">Eq</a></li><li><a·href="#impl-Hash-for-TestName"·title="Hash">Hash</a></li><li><a·href="#impl-PartialEq-for-TestName"·title="PartialEq">PartialEq</a></li><li><a·href="#impl-StructuralPartialEq-for-TestName"·title="StructuralPartialEq">StructuralPartialEq</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-TestName"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-TestName"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-TestName"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-TestName"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-TestName"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-TestName"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-ToString-for-T"·title="ToString">ToString</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·test::<wbr>test</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">test</a>::<wbr><a·href="index.html">test</a></span><h1>Enum·<span·class="enum">TestName</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/test/types.rs.html#41-45">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·enum·TestName·{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="API·documentation·for·the·Rust·`TestName`·enum·in·crate·`test`."><title>TestName·in·test::test·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="test"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·enum"><!--[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><a·class="logo-container"·href="../../test/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../test/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../test/index.html">test</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»  2025-01-07)»       (built» from»     a»    source»      tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Test<wbr>Name</a></h2><h3><a·href="#variants">Variants</a></h3><ul·class="block·variant"><li><a·href="#variant.AlignedTestName"·title="AlignedTestName">AlignedTestName</a></li><li><a·href="#variant.DynTestName"·title="DynTestName">DynTestName</a></li><li><a·href="#variant.StaticTestName"·title="StaticTestName">StaticTestName</a></li></ul><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.as_slice"·title="as_slice">as_slice</a></li><li><a·href="#method.padding"·title="padding">padding</a></li><li><a·href="#method.with_padding"·title="with_padding">with_padding</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-TestName"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-TestName"·title="Debug">Debug</a></li><li><a·href="#impl-Display-for-TestName"·title="Display">Display</a></li><li><a·href="#impl-Eq-for-TestName"·title="Eq">Eq</a></li><li><a·href="#impl-Hash-for-TestName"·title="Hash">Hash</a></li><li><a·href="#impl-PartialEq-for-TestName"·title="PartialEq">PartialEq</a></li><li><a·href="#impl-StructuralPartialEq-for-TestName"·title="StructuralPartialEq">StructuralPartialEq</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-TestName"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-TestName"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-TestName"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-TestName"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-TestName"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-TestName"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-ToString-for-T"·title="ToString">ToString</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·test::<wbr>test</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">test</a>::<wbr><a·href="index.html">test</a></span><h1>Enum·<span·class="enum">TestName</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/test/types.rs.html#41-45">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·enum·TestName·{
2 ····StaticTestName(&amp;'static·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.str.html">str</a>),2 ····StaticTestName(&amp;'static·<a·class="primitive"·href="../../std/primitive.str.html">str</a>),
3 ····DynTestName(<a·class="struct"·href="../../alloc/string/struct.String.html"·title="struct·alloc::string::String">String</a>),3 ····DynTestName(<a·class="struct"·href="../../alloc/string/struct.String.html"·title="struct·alloc::string::String">String</a>),
4 ····AlignedTestName(<a·class="enum"·href="../../alloc/borrow/enum.Cow.html"·title="enum·alloc::borrow::Cow">Cow</a>&lt;'static,·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.str.html">str</a>&gt;,·<a·class="enum"·href="../enum.NamePadding.html"·title="enum·test::NamePadding">NamePadding</a>),4 ····AlignedTestName(<a·class="enum"·href="../../alloc/borrow/enum.Cow.html"·title="enum·alloc::borrow::Cow">Cow</a>&lt;'static,·<a·class="primitive"·href="../../std/primitive.str.html">str</a>&gt;,·<a·class="enum"·href="../enum.NamePadding.html"·title="enum·test::NamePadding">NamePadding</a>),
5 }</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><h2·id="variants"·class="variants·section-header">Variants<a·href="#variants"·class="anchor">§</a></h2><div·class="variants"><section·id="variant.StaticTestName"·class="variant"><a·href="#variant.StaticTestName"·class="anchor">§</a><h3·class="code-header">StaticTestName(&amp;'static·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.str.html">str</a>)</h3></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><section·id[·...·truncated·by·diffoscope;·len:·9592,·SHA:·970b037aa09a7b812fe5a0539ecbf11fe43d819f17f5abcaf6d9c61c3e4559c0·...·]/std/primitive.reference.html">&amp;mut·H</a>)<div·class="where">where5 }</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><h2·id="variants"·class="variants·section-header">Variants<a·href="#variants"·class="anchor">§</a></h2><div·class="variants"><section·id="variant.StaticTestName"·class="variant"><a·href="#variant.StaticTestName"·class="anchor">§</a><h3·class="code-header">StaticTestName(&amp;'static·<a·class="primitive"·href="../../std/primitive.str.html">str</a>)</h3></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><section·id="variant.DynTestName"·clas[·...·truncated·by·diffoscope;·len:·9457,·SHA:·434cffbb10923bb4a0d3a8700e0ae8ba912ab7b03e2c3db51eac9f6775b97554·...·]/std/primitive.reference.html">&amp;mut·H</a>)<div·class="where">where
6 ····H:·<a·class="trait"·href="../../core/hash/trait.Hasher.html"·title="trait·core::hash::Hasher">Hasher</a>,6 ····H:·<a·class="trait"·href="../../core/hash/trait.Hasher.html"·title="trait·core::hash::Hasher">Hasher</a>,
7 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Feeds·a·slice·of·this·type·into·the·given·<a·href="../../core/hash/trait.Hasher.html"·title="trait·core::hash::Hasher"><code>Hasher</code></a>.·<a·href="../../core/hash/trait.Hash.html#method.hash_slice">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-PartialEq-for-TestName"·class="impl"><a·class="src·rightside"·href="../../src/test/types.rs.html#40">Source</a><a·href="#impl-PartialEq-for-TestName"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/cmp/trait.PartialEq.html"·title="trait·core::cmp::PartialEq">PartialEq</a>·for·<a·class="enum"·href="enum.TestName.html"·title="enum·test::test::TestName">TestName</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.eq"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/test/types.rs.html#40">Source</a><a·href="#method.eq"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/cmp/trait.PartialEq.html#tymethod.eq"·class="fn">eq</a>(&amp;self,·other:·&amp;<a·class="enum"·href="enum.TestName.html"·title="enum·test::test::TestName">TestName</a>)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>self</code>·and·<code>other</code>·values·to·be·equal,·and·is·used·by·<code>==</code>.</div></details><details·class="toggle·me[·...·truncated·by·diffoscope;·len:·575,·SHA:·24e5a6b6f07d6dccde1f4f31a2d320251328cc5b8476dbf860d00dba4bc89363·...·]/std/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>!=</code>.·The·default·implementation·is·almost·always·sufficient,7 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Feeds·a·slice·of·this·type·into·the·given·<a·href="../../core/hash/trait.Hasher.html"·title="trait·core::hash::Hasher"><code>Hasher</code></a>.·<a·href="../../core/hash/trait.Hash.html#method.hash_slice">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-PartialEq-for-TestName"·class="impl"><a·class="src·rightside"·href="../../src/test/types.rs.html#40">Source</a><a·href="#impl-PartialEq-for-TestName"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/cmp/trait.PartialEq.html"·title="trait·core::cmp::PartialEq">PartialEq</a>·for·<a·class="enum"·href="enum.TestName.html"·title="enum·test::test::TestName">TestName</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.eq"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/test/types.rs.html#40">Source</a><a·href="#method.eq"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/cmp/trait.PartialEq.html#tymethod.eq"·class="fn">eq</a>(&amp;self,·other:·&amp;<a·class="enum"·href="enum.TestName.html"·title="enum·test::test::TestName">TestName</a>)·-&gt;·<a·class="primitive"·href="../../std/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>self</code>·and·<code>other</code>·values·to·be·equal,·and·is·used·by·<code>==</code>.</div></details><details·class="toggle·method-toggle"·open><summary>[·...·truncated·by·diffoscope;·len:·494,·SHA:·db76c2d93beea7efa856fa6578fe817b3591880dfa224bd5e9c9e64062908aa1·...·]/std/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>!=</code>.·The·default·implementation·is·almost·always·sufficient,
8 and·should·not·be·overridden·without·very·good·reason.</div></details></div></details><section·id="impl-Eq-for-TestName"·class="impl"><a·class="src·rightside"·href="../../src/test/types.rs.html#40">Source</a><a·href="#impl-Eq-for-TestName"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/cmp/trait.Eq.html"·title="trait·core::cmp::Eq">Eq</a>·for·<a·class="enum"·href="enum.TestName.html"·title="enum·test::test::TestName">TestName</a></h3></section><section·id="impl-StructuralPartialEq-for-TestName"·class="impl"><a·class="src·rightside"·href="../../src/test/types.rs.html#40">Source</a><a·href="#impl-StructuralPartialEq-for-TestName"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.StructuralPartialEq.html"·title="trait·core::marker::StructuralPartialEq">StructuralPartialEq</a>·for·<a·class="enum"·href="enum.TestName.html"·title="enum·test::test::TestName">TestName</a></h3></section></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-TestName"·class="impl"><a·href="#impl-Freeze-for-TestName"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="enum"·href="enum.TestName.html"·title="enum·test::test::TestName">TestName</a></h3></section><section·id="impl-RefUnwindSafe-for-TestName"·class="impl"><a·href="#impl-RefUnwindSafe-for-TestName"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="enum"·href="enum.TestName.html"·title="enum·test::test::TestName">TestName</a></h3></section><section·id="impl-Send-for-TestName"·class="impl"><a·href="#impl-Send-for-TestName"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="enum"·href="enum.TestName.html"·title="enum·test::test::TestName">TestName</a></h3></section><section·id="impl-Sync-for-TestName"·class="impl"><a·href="#impl-Sync-for-TestName"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="enum"·href="enum.TestName.html"·title="enum·test::test::TestName">TestName</a></h3></section><section·id="impl-Unpin-for-TestName"·class="impl"><a·href="#impl-Unpin-for-TestName"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="enum"·href="enum.TestName.html"·title="enum·test::test::TestName">TestName</a></h3></section><section·id="impl-UnwindSafe-for-TestName"·class="impl"><a·href="#impl-UnwindSafe-for-TestName"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="enum"·href="enum.TestName.html"·title="enum·test::test::TestName">TestName</a></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementations<a·href="#blanket-implementations"·class="anchor">§</a></h2><div·id="blanket-implementations-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-Any-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/any.rs.html#138">Source</a><a·href="#impl-Any-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where8 and·should·not·be·overridden·without·very·good·reason.</div></details></div></details><section·id="impl-Eq-for-TestName"·class="impl"><a·class="src·rightside"·href="../../src/test/types.rs.html#40">Source</a><a·href="#impl-Eq-for-TestName"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/cmp/trait.Eq.html"·title="trait·core::cmp::Eq">Eq</a>·for·<a·class="enum"·href="enum.TestName.html"·title="enum·test::test::TestName">TestName</a></h3></section><section·id="impl-StructuralPartialEq-for-TestName"·class="impl"><a·class="src·rightside"·href="../../src/test/types.rs.html#40">Source</a><a·href="#impl-StructuralPartialEq-for-TestName"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.StructuralPartialEq.html"·title="trait·core::marker::StructuralPartialEq">StructuralPartialEq</a>·for·<a·class="enum"·href="enum.TestName.html"·title="enum·test::test::TestName">TestName</a></h3></section></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-TestName"·class="impl"><a·href="#impl-Freeze-for-TestName"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="enum"·href="enum.TestName.html"·title="enum·test::test::TestName">TestName</a></h3></section><section·id="impl-RefUnwindSafe-for-TestName"·class="impl"><a·href="#impl-RefUnwindSafe-for-TestName"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="enum"·href="enum.TestName.html"·title="enum·test::test::TestName">TestName</a></h3></section><section·id="impl-Send-for-TestName"·class="impl"><a·href="#impl-Send-for-TestName"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="enum"·href="enum.TestName.html"·title="enum·test::test::TestName">TestName</a></h3></section><section·id="impl-Sync-for-TestName"·class="impl"><a·href="#impl-Sync-for-TestName"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="enum"·href="enum.TestName.html"·title="enum·test::test::TestName">TestName</a></h3></section><section·id="impl-Unpin-for-TestName"·class="impl"><a·href="#impl-Unpin-for-TestName"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="enum"·href="enum.TestName.html"·title="enum·test::test::TestName">TestName</a></h3></section><section·id="impl-UnwindSafe-for-TestName"·class="impl"><a·href="#impl-UnwindSafe-for-TestName"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="enum"·href="enum.TestName.html"·title="enum·test::test::TestName">TestName</a></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementations<a·href="#blanket-implementations"·class="anchor">§</a></h2><div·id="blanket-implementations-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-Any-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/any.rs.html#138">Source</a><a·href="#impl-Any-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where
9 ····T:·'static·+·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/any.rs.html#139">Source</a><a·href="#method.type_id"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/any/trait.Any.html#tymethod.type_id"·class="fn">type_id</a>(&amp;self)·-&gt;·<a·class="struct"·href="../../core/any/struct.TypeId.html"·title="struct·core::any::TypeId">TypeId</a></h4></section></summary><div·class='docblock'>Gets·the·<code>TypeId</code>·of·<code>self</code>.·<a·href="../../core/any/trait.Any.html#tymethod.type_id">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Borrow%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/borrow/trait.Borrow.html"·title="trait·core::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where9 ····T:·'static·+·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/any.rs.html#139">Source</a><a·href="#method.type_id"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/any/trait.Any.html#tymethod.type_id"·class="fn">type_id</a>(&amp;self)·-&gt;·<a·class="struct"·href="../../core/any/struct.TypeId.html"·title="struct·core::any::TypeId">TypeId</a></h4></section></summary><div·class='docblock'>Gets·the·<code>TypeId</code>·of·<code>self</code>.·<a·href="../../core/any/trait.Any.html#tymethod.type_id">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Borrow%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/borrow/trait.Borrow.html"·title="trait·core::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where
10 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#211">Source</a><a·href="#method.borrow"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/borrow/trait.Borrow.html#tymethod.borrow"·class="fn">borrow</a>(&amp;self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;T</a></h4></section></summary><div·class='docblock'>Immutably·borrows·from·an·owned·value.·<a·href="../../core/borrow/trait.Borrow.html#tymethod.borrow">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-BorrowMut%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/borrow/trait.BorrowMut.html"·title="trait·core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where10 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#211">Source</a><a·href="#method.borrow"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/borrow/trait.Borrow.html#tymethod.borrow"·class="fn">borrow</a>(&amp;self)·-&gt;·<a·class="primitive"·href="../../std/primitive.reference.html">&amp;T</a></h4></section></summary><div·class='docblock'>Immutably·borrows·from·an·owned·value.·<a·href="../../core/borrow/trait.Borrow.html#tymethod.borrow">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-BorrowMut%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/borrow/trait.BorrowMut.html"·title="trait·core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where
11 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#218">Source</a><a·href="#method.borrow_mut"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"·class="fn">borrow_mut</a>(&amp;mut·self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;mut·T</a></h4></section></summary><div·class='docblock'>Mutably·borrows·from·an·owned·value.·<a·href="../../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-CloneToUninit-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/clone.rs.html#273">Source</a><a·href="#impl-CloneToUninit-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where11 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#218">Source</a><a·href="#method.borrow_mut"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"·class="fn">borrow_mut</a>(&amp;mut·self)·-&gt;·<a·class="primitive"·href="../../std/primitive.reference.html">&amp;mut·T</a></h4></section></summary><div·class='docblock'>Mutably·borrows·from·an·owned·value.·<a·href="../../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-CloneToUninit-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/clone.rs.html#273">Source</a><a·href="#impl-CloneToUninit-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where
12 ····T:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/clone.rs.html#275">Source</a><a·href="#method.clone_to_uninit"·class="anchor">§</a><h4·class="code-header">unsafe·fn·<a·href="../../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit"·class="fn">clone_to_uninit</a>(&amp;self,·dst:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.pointer.html">*mut·</a><a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.u8.html">u8</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>clone_to_uninit</code>)</span></div></span><div·class='docblock'>Performs·copy-assignment·from·<code>self</code>·to·<code>dst</code>.·<a·href="../../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-From%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#765">Source</a><a·href="#impl-From%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·T</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#768">Source</a><a·href="#method.from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>12 ····T:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/clone.rs.html#275">Source</a><a·href="#method.clone_to_uninit"·class="anchor">§</a><h4·class="code-header">unsafe·fn·<a·href="../../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit"·class="fn">clone_to_uninit</a>(&amp;self,·dst:·<a·class="primitive"·href="../../std/primitive.pointer.html">*mut·</a><a·class="primitive"·href="../../std/primitive.u8.html">u8</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>clone_to_uninit</code>)</span></div></span><div·class='docblock'>Performs·copy-assignment·from·<code>self</code>·to·<code>dst</code>.·<a·href="../../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-From%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#765">Source</a><a·href="#impl-From%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·T</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#768">Source</a><a·href="#method.from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>
13 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where13 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where
14 ····U:·<a·class="trait"·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#758">Source</a><a·href="#method.into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>14 ····U:·<a·class="trait"·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#758">Source</a><a·href="#method.into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>
15 <p>That·is,·this·conversion·is·whatever·the·implementation·of15 <p>That·is,·this·conversion·is·whatever·the·implementation·of
16 <code><a·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>16 <code><a·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>
17 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#82-84">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../alloc/borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where17 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#82-84">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../alloc/borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where
18 ····T:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#86">Source</a><a·href="#associatedtype.Owned"·class="anchor">§</a><h4·class="code-header">type·<a·href="../../alloc/borrow/trait.ToOwned.html#associatedtype.Owned"·class="associatedtype">Owned</a>·=·T</h4></section></summary><div·class='docblock'>The·resulting·type·after·obtaining·ownership.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.to_owned"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#87">Source</a><a·href="#method.to_owned"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../alloc/borrow/trait.ToOwned.html#tymethod.to_owned"·class="fn">to_owned</a>(&amp;self)·-&gt;·T</h4></section></summary><div·class='docblock'>Creates·owned·data·from·borrowed·data,·usually·by·cloning.·<a·href="../../alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#91">Source</a><a·href="#method.clone_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../alloc/borrow/trait.ToOwned.html#method.clone_into"·class="fn">clone_into</a>(&amp;self,·target:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../../alloc/borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToString-for-T"·class="impl"><a·class="src·rightside"·href="../../src/alloc/string.rs.html#2677">Source</a><a·href="#impl-ToString-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../alloc/string/trait.ToString.html"·title="trait·alloc::string::ToString">ToString</a>·for·T<div·class="where">where18 ····T:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#86">Source</a><a·href="#associatedtype.Owned"·class="anchor">§</a><h4·class="code-header">type·<a·href="../../alloc/borrow/trait.ToOwned.html#associatedtype.Owned"·class="associatedtype">Owned</a>·=·T</h4></section></summary><div·class='docblock'>The·resulting·type·after·obtaining·ownership.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.to_owned"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#87">Source</a><a·href="#method.to_owned"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../alloc/borrow/trait.ToOwned.html#tymethod.to_owned"·class="fn">to_owned</a>(&amp;self)·-&gt;·T</h4></section></summary><div·class='docblock'>Creates·owned·data·from·borrowed·data,·usually·by·cloning.·<a·href="../../alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#91">Source</a><a·href="#method.clone_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../alloc/borrow/trait.ToOwned.html#method.clone_into"·class="fn">clone_into</a>(&amp;self,·target:·<a·class="primitive"·href="../../std/primitive.reference.html">&amp;mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../../alloc/borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToString-for-T"·class="impl"><a·class="src·rightside"·href="../../src/alloc/string.rs.html#2677">Source</a><a·href="#impl-ToString-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../alloc/string/trait.ToString.html"·title="trait·alloc::string::ToString">ToString</a>·for·T<div·class="where">where
19 ····T:·<a·class="trait"·href="../../core/fmt/trait.Display.html"·title="trait·core::fmt::Display">Display</a>·+·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.to_string"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/alloc/string.rs.html#2683">Source</a><a·href="#method.to_string"·class="anchor">§</a><h4·class="code-header">default·fn·<a·href="../../alloc/string/trait.ToString.html#tymethod.to_string"·class="fn">to_string</a>(&amp;self)·-&gt;·<a·class="struct"·href="../../alloc/string/struct.String.html"·title="struct·alloc::string::String">String</a></h4></section></summary><div·class='docblock'>Converts·the·given·value·to·a·<code>String</code>.·<a·href="../../alloc/string/trait.ToString.html#tymethod.to_string">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#805-807">Source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where19 ····T:·<a·class="trait"·href="../../core/fmt/trait.Display.html"·title="trait·core::fmt::Display">Display</a>·+·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.to_string"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/alloc/string.rs.html#2683">Source</a><a·href="#method.to_string"·class="anchor">§</a><h4·class="code-header">default·fn·<a·href="../../alloc/string/trait.ToString.html#tymethod.to_string"·class="fn">to_string</a>(&amp;self)·-&gt;·<a·class="struct"·href="../../alloc/string/struct.String.html"·title="struct·alloc::string::String">String</a></h4></section></summary><div·class='docblock'>Converts·the·given·value·to·a·<code>String</code>.·<a·href="../../alloc/string/trait.ToString.html#tymethod.to_string">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#805-807">Source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where
20 ····U:·<a·class="trait"·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#809">Source</a><a·href="#associatedtype.Error-1"·class="anchor">§</a><h4·class="code-header">type·<a·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<a·class="enum"·href="../../core/convert/enum.Infallible.html"·title="enum·core::convert::Infallible">Infallible</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_from"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#812">Source</a><a·href="#method.try_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.TryFrom.html#tymethod.try_from"·class="fn">try_from</a>(value:·U)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;T,·&lt;T·as·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;&gt;::<a·class="associatedtype"·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryInto%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#790-792">Source</a><a·href="#impl-TryInto%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where20 ····U:·<a·class="trait"·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#809">Source</a><a·href="#associatedtype.Error-1"·class="anchor">§</a><h4·class="code-header">type·<a·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<a·class="enum"·href="../../core/convert/enum.Infallible.html"·title="enum·core::convert::Infallible">Infallible</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_from"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#812">Source</a><a·href="#method.try_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.TryFrom.html#tymethod.try_from"·class="fn">try_from</a>(value:·U)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;T,·&lt;T·as·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;&gt;::<a·class="associatedtype"·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryInto%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#790-792">Source</a><a·href="#impl-TryInto%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where
21 ····U:·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#794">Source</a><a·href="#associatedtype.Error"·class="anchor">§</a><h4·class="code-header">type·<a·href="../../core/convert/trait.TryInto.html#associatedtype.Error"·class="associatedtype">Error</a>·=·&lt;U·as·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#797">Source</a><a·href="#method.try_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.TryInto.html#tymethod.try_into"·class="fn">try_into</a>(self)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;U,·&lt;U·as·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>21 ····U:·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#794">Source</a><a·href="#associatedtype.Error"·class="anchor">§</a><h4·class="code-header">type·<a·href="../../core/convert/trait.TryInto.html#associatedtype.Error"·class="associatedtype">Error</a>·=·&lt;U·as·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#797">Source</a><a·href="#method.try_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.TryInto.html#tymethod.try_into"·class="fn">try_into</a>(self)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;U,·&lt;U·as·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>
44.5 KB
./usr/share/doc/rust-doc/html/test/test/enum.TestResult.html
    
Offset 1, 21 lines modifiedOffset 1, 21 lines modified
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="API·documentation·for·the·Rust·`TestResult`·enum·in·crate·`test`."><title>TestResult·in·test::test·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="test"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·enum"><!--[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><a·class="logo-container"·href="../../test/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../test/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../test/index.html">test</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»      2025-01-07)»   (built»     from» a»source»  tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Test<wbr>Result</a></h2><h3><a·href="#variants">Variants</a></h3><ul·class="block·variant"><li><a·href="#variant.TrBench"·title="TrBench">TrBench</a></li><li><a·href="#variant.TrFailed"·title="TrFailed">TrFailed</a></li><li><a·href="#variant.TrFailedMsg"·title="TrFailedMsg">TrFailedMsg</a></li><li><a·href="#variant.TrIgnored"·title="TrIgnored">TrIgnored</a></li><li><a·href="#variant.TrOk"·title="TrOk">TrOk</a></li><li><a·href="#variant.TrTimedFail"·title="TrTimedFail">TrTimedFail</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-TestResult"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-TestResult"·title="Debug">Debug</a></li><li><a·href="#impl-PartialEq-for-TestResult"·title="PartialEq">PartialEq</a></li><li><a·href="#impl-StructuralPartialEq-for-TestResult"·title="StructuralPartialEq">StructuralPartialEq</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-TestResult"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-TestResult"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-TestResult"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-TestResult"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-TestResult"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-TestResult"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·test::<wbr>test</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">test</a>::<wbr><a·href="index.html">test</a></span><h1>Enum·<span·class="enum">TestResult</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/test/test_result.rs.html#31-38">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·enum·TestResult·{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="API·documentation·for·the·Rust·`TestResult`·enum·in·crate·`test`."><title>TestResult·in·test::test·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="test"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·enum"><!--[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><a·class="logo-container"·href="../../test/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../test/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../test/index.html">test</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»      2025-01-07)»   (built»     from» a»source»  tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Test<wbr>Result</a></h2><h3><a·href="#variants">Variants</a></h3><ul·class="block·variant"><li><a·href="#variant.TrBench"·title="TrBench">TrBench</a></li><li><a·href="#variant.TrFailed"·title="TrFailed">TrFailed</a></li><li><a·href="#variant.TrFailedMsg"·title="TrFailedMsg">TrFailedMsg</a></li><li><a·href="#variant.TrIgnored"·title="TrIgnored">TrIgnored</a></li><li><a·href="#variant.TrOk"·title="TrOk">TrOk</a></li><li><a·href="#variant.TrTimedFail"·title="TrTimedFail">TrTimedFail</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-TestResult"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-TestResult"·title="Debug">Debug</a></li><li><a·href="#impl-PartialEq-for-TestResult"·title="PartialEq">PartialEq</a></li><li><a·href="#impl-StructuralPartialEq-for-TestResult"·title="StructuralPartialEq">StructuralPartialEq</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-TestResult"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-TestResult"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-TestResult"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-TestResult"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-TestResult"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-TestResult"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·test::<wbr>test</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">test</a>::<wbr><a·href="index.html">test</a></span><h1>Enum·<span·class="enum">TestResult</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/test/test_result.rs.html#31-38">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·enum·TestResult·{
2 ····TrOk,2 ····TrOk,
3 ····TrFailed,3 ····TrFailed,
4 ····TrFailedMsg(<a·class="struct"·href="../../alloc/string/struct.String.html"·title="struct·alloc::string::String">String</a>),4 ····TrFailedMsg(<a·class="struct"·href="../../alloc/string/struct.String.html"·title="struct·alloc::string::String">String</a>),
5 ····TrIgnored,5 ····TrIgnored,
6 ····TrBench(<a·class="struct"·href="../bench/struct.BenchSamples.html"·title="struct·test::bench::BenchSamples">BenchSamples</a>),6 ····TrBench(<a·class="struct"·href="../bench/struct.BenchSamples.html"·title="struct·test::bench::BenchSamples">BenchSamples</a>),
7 ····TrTimedFail,7 ····TrTimedFail,
8 }</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><h2·id="variants"·class="variants·section-header">Variants<a·href="#variants"·class="anchor">§</a></h2><div·class="variants"><section·id="variant.TrOk"·class="variant"><a·href="#variant.TrOk"·class="anchor">§</a><h3·class="code-header">TrOk</h3></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><section·id="variant.TrFailed"·class="variant"><a·href="#variant.TrFailed"·class="anchor">§</a><h3·class="code-header">TrFailed</h3></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><section·id="variant.TrFailedMsg"·class="variant"><a·href="#variant.TrFailedMsg"·class="anchor">§</a><h3·class="code-header">TrFailedMsg(<a·class="struct"·href="../../alloc/string/struct.String.html"·title="struct·alloc::string::String">String</a>)</h3></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><section·id="variant.TrIgnored"·class="variant"><a·href="#variant.TrIgnored"·class="anchor">§</a><h3·class="code-header">TrIgnored</h3></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><section·id="variant.TrBench"·class="variant"><a·href="#variant.TrBench"·class="anchor">§</a><h3·class="code-header">TrBench(<a·class="struct"·href="../bench/struct.BenchSamples.html"·title="struct·test::bench::BenchSamples">BenchSamples</a>)</h3></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><section·id="variant.TrTimedFail"·class="variant"><a·href="#variant.TrTimedFail"·class="anchor">§</a><h3·class="code-header">TrTimedFail</h3></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-TestResult"·class="impl"><a·class="src·rightside"·href="../../src/test/test_result.rs.html#30">Source</a><a·href="#impl-Clone-for-TestResult"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="enum"·href="enum.TestResult.html"·title="enum·test::test::TestResult">TestResult</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/test/test_result.rs.html#30">Source</a><a·href="#method.clone"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/clone/trait.Clone.html#tymethod.clone"·class="fn">clone</a>(&amp;self)·-&gt;·<a·class="enum"·href="enum.TestResult.html"·title="enum·test::test::TestResult">TestResult</a></h4></section></summary><div·class='docblock'>Returns·a·copy·of·the·value.·<a·href="../../core/clone/trait.Clone.html#tymethod.clone">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_from"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/clone.rs.html#174">Source</a></span><a·href="#method.clone_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/clone/trait.Clone.html#method.clone_from"·class="fn">clone_from</a>(&amp;mut·self,·source:·&amp;Self)</h4></section></summary><div·class='docblock'>Performs·copy-assignment·from·<code>source</code>.·<a·href="../../core/clone/trait.Clone.html#method.clone_from">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-TestResult"·class="impl"><a·class="src·rightside"·href="../../src/test/test_result.rs.html#30">Source</a><a·href="#impl-Debug-for-TestResult"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/fmt/trait.Debug.html"·title="trait·core::fmt::Debug">Debug</a>·for·<a·class="enum"·href="enum.TestResult.html"·title="enum·test::test::TestResult">TestResult</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/test/test_result.rs.html#30">Source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="../../core/fmt/struct.Formatter.html"·title="struct·core::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="type"·href="../../core/fmt/type.Result.html"·title="type·core::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../../core/fmt/trait.Debug.html#tymethod.fmt">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-PartialEq-for-TestResult"·class="impl"><a·class="src·rightside"·href="../../src/test/test_result.rs.html#30">Source</a><a·href="#impl-PartialEq-for-TestResult"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/cmp/trait.PartialEq.html"·title="trait·core::cmp::PartialEq">PartialEq</a>·for·<a·class="enum"·href="enum.TestResult.html"·title="enum·test::test::TestResult">TestResult</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.eq"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/test/test_result.rs.html#30">Source</a><a·href="#method.eq"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/cmp/trait.PartialEq.html#tymethod.eq"·class="fn">eq</a>(&amp;self,·other:·&amp;<a·class="enum"·href="enum.TestResult.html"·title="enum·test::test::TestResult">TestResult</a>)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>self</code>·and·<code>other</code>·values·to·be·equal,·and·is·used·by·<code>==</code>.</div></details><details·class="toggle·me[·...·truncated·by·diffoscope;·len:·575,·SHA:·24e5a6b6f07d6dccde1f4f31a2d320251328cc5b8476dbf860d00dba4bc89363·...·]/std/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>!=</code>.·The·default·implementation·is·almost·always·sufficient,8 }</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><h2·id="variants"·class="variants·section-header">Variants<a·href="#variants"·class="anchor">§</a></h2><div·class="variants"><section·id="variant.TrOk"·class="variant"><a·href="#variant.TrOk"·class="anchor">§</a><h3·class="code-header">TrOk</h3></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><section·id="variant.TrFailed"·class="variant"><a·href="#variant.TrFailed"·class="anchor">§</a><h3·class="code-header">TrFailed</h3></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><section·id="variant.TrFailedMsg"·class="variant"><a·href="#variant.TrFailedMsg"·class="anchor">§</a><h3·class="code-header">TrFailedMsg(<a·class="struct"·href="../../alloc/string/struct.String.html"·title="struct·alloc::string::String">String</a>)</h3></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><section·id="variant.TrIgnored"·class="variant"><a·href="#variant.TrIgnored"·class="anchor">§</a><h3·class="code-header">TrIgnored</h3></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><section·id="variant.TrBench"·class="variant"><a·href="#variant.TrBench"·class="anchor">§</a><h3·class="code-header">TrBench(<a·class="struct"·href="../bench/struct.BenchSamples.html"·title="struct·test::bench::BenchSamples">BenchSamples</a>)</h3></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><section·id="variant.TrTimedFail"·class="variant"><a·href="#variant.TrTimedFail"·class="anchor">§</a><h3·class="code-header">TrTimedFail</h3></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-TestResult"·class="impl"><a·class="src·rightside"·href="../../src/test/test_result.rs.html#30">Source</a><a·href="#impl-Clone-for-TestResult"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="enum"·href="enum.TestResult.html"·title="enum·test::test::TestResult">TestResult</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/test/test_result.rs.html#30">Source</a><a·href="#method.clone"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/clone/trait.Clone.html#tymethod.clone"·class="fn">clone</a>(&amp;self)·-&gt;·<a·class="enum"·href="enum.TestResult.html"·title="enum·test::test::TestResult">TestResult</a></h4></section></summary><div·class='docblock'>Returns·a·copy·of·the·value.·<a·href="../../core/clone/trait.Clone.html#tymethod.clone">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_from"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/clone.rs.html#174">Source</a></span><a·href="#method.clone_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/clone/trait.Clone.html#method.clone_from"·class="fn">clone_from</a>(&amp;mut·self,·source:·&amp;Self)</h4></section></summary><div·class='docblock'>Performs·copy-assignment·from·<code>source</code>.·<a·href="../../core/clone/trait.Clone.html#method.clone_from">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-TestResult"·class="impl"><a·class="src·rightside"·href="../../src/test/test_result.rs.html#30">Source</a><a·href="#impl-Debug-for-TestResult"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/fmt/trait.Debug.html"·title="trait·core::fmt::Debug">Debug</a>·for·<a·class="enum"·href="enum.TestResult.html"·title="enum·test::test::TestResult">TestResult</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/test/test_result.rs.html#30">Source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="../../core/fmt/struct.Formatter.html"·title="struct·core::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="type"·href="../../core/fmt/type.Result.html"·title="type·core::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../../core/fmt/trait.Debug.html#tymethod.fmt">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-PartialEq-for-TestResult"·class="impl"><a·class="src·rightside"·href="../../src/test/test_result.rs.html#30">Source</a><a·href="#impl-PartialEq-for-TestResult"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/cmp/trait.PartialEq.html"·title="trait·core::cmp::PartialEq">PartialEq</a>·for·<a·class="enum"·href="enum.TestResult.html"·title="enum·test::test::TestResult">TestResult</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.eq"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/test/test_result.rs.html#30">Source</a><a·href="#method.eq"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/cmp/trait.PartialEq.html#tymethod.eq"·class="fn">eq</a>(&amp;self,·other:·&amp;<a·class="enum"·href="enum.TestResult.html"·title="enum·test::test::TestResult">TestResult</a>)·-&gt;·<a·class="primitive"·href="../../std/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>self</code>·and·<code>other</code>·values·to·be·equal,·and·is·used·by·<code>==</code>.</div></details><details·class="toggle·method-toggle"·open><summary>[·...·truncated·by·diffoscope;·len:·494,·SHA:·db76c2d93beea7efa856fa6578fe817b3591880dfa224bd5e9c9e64062908aa1·...·]/std/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>!=</code>.·The·default·implementation·is·almost·always·sufficient,
9 and·should·not·be·overridden·without·very·good·reason.</div></details></div></details><section·id="impl-StructuralPartialEq-for-TestResult"·class="impl"><a·class="src·rightside"·href="../../src/test/test_result.rs.html#30">Source</a><a·href="#impl-StructuralPartialEq-for-TestResult"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.StructuralPartialEq.html"·title="trait·core::marker::StructuralPartialEq">StructuralPartialEq</a>·for·<a·class="enum"·href="enum.TestResult.html"·title="enum·test::test::TestResult">TestResult</a></h3></section></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-TestResult"·class="impl"><a·href="#impl-Freeze-for-TestResult"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="enum"·href="enum.TestResult.html"·title="enum·test::test::TestResult">TestResult</a></h3></section><section·id="impl-RefUnwindSafe-for-TestResult"·class="impl"><a·href="#impl-RefUnwindSafe-for-TestResult"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="enum"·href="enum.TestResult.html"·title="enum·test::test::TestResult">TestResult</a></h3></section><section·id="impl-Send-for-TestResult"·class="impl"><a·href="#impl-Send-for-TestResult"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="enum"·href="enum.TestResult.html"·title="enum·test::test::TestResult">TestResult</a></h3></section><section·id="impl-Sync-for-TestResult"·class="impl"><a·href="#impl-Sync-for-TestResult"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="enum"·href="enum.TestResult.html"·title="enum·test::test::TestResult">TestResult</a></h3></section><section·id="impl-Unpin-for-TestResult"·class="impl"><a·href="#impl-Unpin-for-TestResult"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="enum"·href="enum.TestResult.html"·title="enum·test::test::TestResult">TestResult</a></h3></section><section·id="impl-UnwindSafe-for-TestResult"·class="impl"><a·href="#impl-UnwindSafe-for-TestResult"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="enum"·href="enum.TestResult.html"·title="enum·test::test::TestResult">TestResult</a></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementations<a·href="#blanket-implementations"·class="anchor">§</a></h2><div·id="blanket-implementations-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-Any-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/any.rs.html#138">Source</a><a·href="#impl-Any-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where9 and·should·not·be·overridden·without·very·good·reason.</div></details></div></details><section·id="impl-StructuralPartialEq-for-TestResult"·class="impl"><a·class="src·rightside"·href="../../src/test/test_result.rs.html#30">Source</a><a·href="#impl-StructuralPartialEq-for-TestResult"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.StructuralPartialEq.html"·title="trait·core::marker::StructuralPartialEq">StructuralPartialEq</a>·for·<a·class="enum"·href="enum.TestResult.html"·title="enum·test::test::TestResult">TestResult</a></h3></section></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-TestResult"·class="impl"><a·href="#impl-Freeze-for-TestResult"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="enum"·href="enum.TestResult.html"·title="enum·test::test::TestResult">TestResult</a></h3></section><section·id="impl-RefUnwindSafe-for-TestResult"·class="impl"><a·href="#impl-RefUnwindSafe-for-TestResult"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="enum"·href="enum.TestResult.html"·title="enum·test::test::TestResult">TestResult</a></h3></section><section·id="impl-Send-for-TestResult"·class="impl"><a·href="#impl-Send-for-TestResult"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="enum"·href="enum.TestResult.html"·title="enum·test::test::TestResult">TestResult</a></h3></section><section·id="impl-Sync-for-TestResult"·class="impl"><a·href="#impl-Sync-for-TestResult"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="enum"·href="enum.TestResult.html"·title="enum·test::test::TestResult">TestResult</a></h3></section><section·id="impl-Unpin-for-TestResult"·class="impl"><a·href="#impl-Unpin-for-TestResult"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="enum"·href="enum.TestResult.html"·title="enum·test::test::TestResult">TestResult</a></h3></section><section·id="impl-UnwindSafe-for-TestResult"·class="impl"><a·href="#impl-UnwindSafe-for-TestResult"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="enum"·href="enum.TestResult.html"·title="enum·test::test::TestResult">TestResult</a></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementations<a·href="#blanket-implementations"·class="anchor">§</a></h2><div·id="blanket-implementations-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-Any-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/any.rs.html#138">Source</a><a·href="#impl-Any-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where
10 ····T:·'static·+·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/any.rs.html#139">Source</a><a·href="#method.type_id"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/any/trait.Any.html#tymethod.type_id"·class="fn">type_id</a>(&amp;self)·-&gt;·<a·class="struct"·href="../../core/any/struct.TypeId.html"·title="struct·core::any::TypeId">TypeId</a></h4></section></summary><div·class='docblock'>Gets·the·<code>TypeId</code>·of·<code>self</code>.·<a·href="../../core/any/trait.Any.html#tymethod.type_id">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Borrow%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/borrow/trait.Borrow.html"·title="trait·core::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where10 ····T:·'static·+·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/any.rs.html#139">Source</a><a·href="#method.type_id"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/any/trait.Any.html#tymethod.type_id"·class="fn">type_id</a>(&amp;self)·-&gt;·<a·class="struct"·href="../../core/any/struct.TypeId.html"·title="struct·core::any::TypeId">TypeId</a></h4></section></summary><div·class='docblock'>Gets·the·<code>TypeId</code>·of·<code>self</code>.·<a·href="../../core/any/trait.Any.html#tymethod.type_id">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Borrow%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/borrow/trait.Borrow.html"·title="trait·core::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where
11 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#211">Source</a><a·href="#method.borrow"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/borrow/trait.Borrow.html#tymethod.borrow"·class="fn">borrow</a>(&amp;self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;T</a></h4></section></summary><div·class='docblock'>Immutably·borrows·from·an·owned·value.·<a·href="../../core/borrow/trait.Borrow.html#tymethod.borrow">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-BorrowMut%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/borrow/trait.BorrowMut.html"·title="trait·core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where11 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#211">Source</a><a·href="#method.borrow"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/borrow/trait.Borrow.html#tymethod.borrow"·class="fn">borrow</a>(&amp;self)·-&gt;·<a·class="primitive"·href="../../std/primitive.reference.html">&amp;T</a></h4></section></summary><div·class='docblock'>Immutably·borrows·from·an·owned·value.·<a·href="../../core/borrow/trait.Borrow.html#tymethod.borrow">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-BorrowMut%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/borrow/trait.BorrowMut.html"·title="trait·core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where
12 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#218">Source</a><a·href="#method.borrow_mut"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"·class="fn">borrow_mut</a>(&amp;mut·self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;mut·T</a></h4></section></summary><div·class='docblock'>Mutably·borrows·from·an·owned·value.·<a·href="../../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-CloneToUninit-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/clone.rs.html#273">Source</a><a·href="#impl-CloneToUninit-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where12 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#218">Source</a><a·href="#method.borrow_mut"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"·class="fn">borrow_mut</a>(&amp;mut·self)·-&gt;·<a·class="primitive"·href="../../std/primitive.reference.html">&amp;mut·T</a></h4></section></summary><div·class='docblock'>Mutably·borrows·from·an·owned·value.·<a·href="../../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-CloneToUninit-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/clone.rs.html#273">Source</a><a·href="#impl-CloneToUninit-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where
13 ····T:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/clone.rs.html#275">Source</a><a·href="#method.clone_to_uninit"·class="anchor">§</a><h4·class="code-header">unsafe·fn·<a·href="../../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit"·class="fn">clone_to_uninit</a>(&amp;self,·dst:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.pointer.html">*mut·</a><a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.u8.html">u8</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>clone_to_uninit</code>)</span></div></span><div·class='docblock'>Performs·copy-assignment·from·<code>self</code>·to·<code>dst</code>.·<a·href="../../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-From%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#765">Source</a><a·href="#impl-From%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·T</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#768">Source</a><a·href="#method.from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>13 ····T:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/clone.rs.html#275">Source</a><a·href="#method.clone_to_uninit"·class="anchor">§</a><h4·class="code-header">unsafe·fn·<a·href="../../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit"·class="fn">clone_to_uninit</a>(&amp;self,·dst:·<a·class="primitive"·href="../../std/primitive.pointer.html">*mut·</a><a·class="primitive"·href="../../std/primitive.u8.html">u8</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>clone_to_uninit</code>)</span></div></span><div·class='docblock'>Performs·copy-assignment·from·<code>self</code>·to·<code>dst</code>.·<a·href="../../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-From%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#765">Source</a><a·href="#impl-From%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·T</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#768">Source</a><a·href="#method.from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>
14 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where14 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where
15 ····U:·<a·class="trait"·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#758">Source</a><a·href="#method.into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>15 ····U:·<a·class="trait"·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#758">Source</a><a·href="#method.into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>
16 <p>That·is,·this·conversion·is·whatever·the·implementation·of16 <p>That·is,·this·conversion·is·whatever·the·implementation·of
17 <code><a·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>17 <code><a·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>
18 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#82-84">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../alloc/borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where18 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#82-84">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../alloc/borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where
19 ····T:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#86">Source</a><a·href="#associatedtype.Owned"·class="anchor">§</a><h4·class="code-header">type·<a·href="../../alloc/borrow/trait.ToOwned.html#associatedtype.Owned"·class="associatedtype">Owned</a>·=·T</h4></section></summary><div·class='docblock'>The·resulting·type·after·obtaining·ownership.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.to_owned"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#87">Source</a><a·href="#method.to_owned"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../alloc/borrow/trait.ToOwned.html#tymethod.to_owned"·class="fn">to_owned</a>(&amp;self)·-&gt;·T</h4></section></summary><div·class='docblock'>Creates·owned·data·from·borrowed·data,·usually·by·cloning.·<a·href="../../alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#91">Source</a><a·href="#method.clone_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../alloc/borrow/trait.ToOwned.html#method.clone_into"·class="fn">clone_into</a>(&amp;self,·target:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../../alloc/borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#805-807">Source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where19 ····T:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#86">Source</a><a·href="#associatedtype.Owned"·class="anchor">§</a><h4·class="code-header">type·<a·href="../../alloc/borrow/trait.ToOwned.html#associatedtype.Owned"·class="associatedtype">Owned</a>·=·T</h4></section></summary><div·class='docblock'>The·resulting·type·after·obtaining·ownership.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.to_owned"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#87">Source</a><a·href="#method.to_owned"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../alloc/borrow/trait.ToOwned.html#tymethod.to_owned"·class="fn">to_owned</a>(&amp;self)·-&gt;·T</h4></section></summary><div·class='docblock'>Creates·owned·data·from·borrowed·data,·usually·by·cloning.·<a·href="../../alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#91">Source</a><a·href="#method.clone_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../alloc/borrow/trait.ToOwned.html#method.clone_into"·class="fn">clone_into</a>(&amp;self,·target:·<a·class="primitive"·href="../../std/primitive.reference.html">&amp;mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../../alloc/borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#805-807">Source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where
20 ····U:·<a·class="trait"·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#809">Source</a><a·href="#associatedtype.Error-1"·class="anchor">§</a><h4·class="code-header">type·<a·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<a·class="enum"·href="../../core/convert/enum.Infallible.html"·title="enum·core::convert::Infallible">Infallible</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_from"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#812">Source</a><a·href="#method.try_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.TryFrom.html#tymethod.try_from"·class="fn">try_from</a>(value:·U)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;T,·&lt;T·as·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;&gt;::<a·class="associatedtype"·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryInto%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#790-792">Source</a><a·href="#impl-TryInto%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where20 ····U:·<a·class="trait"·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#809">Source</a><a·href="#associatedtype.Error-1"·class="anchor">§</a><h4·class="code-header">type·<a·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<a·class="enum"·href="../../core/convert/enum.Infallible.html"·title="enum·core::convert::Infallible">Infallible</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_from"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#812">Source</a><a·href="#method.try_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.TryFrom.html#tymethod.try_from"·class="fn">try_from</a>(value:·U)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;T,·&lt;T·as·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;&gt;::<a·class="associatedtype"·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryInto%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#790-792">Source</a><a·href="#impl-TryInto%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where
21 ····U:·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#794">Source</a><a·href="#associatedtype.Error"·class="anchor">§</a><h4·class="code-header">type·<a·href="../../core/convert/trait.TryInto.html#associatedtype.Error"·class="associatedtype">Error</a>·=·&lt;U·as·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#797">Source</a><a·href="#method.try_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.TryInto.html#tymethod.try_into"·class="fn">try_into</a>(self)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;U,·&lt;U·as·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>21 ····U:·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#794">Source</a><a·href="#associatedtype.Error"·class="anchor">§</a><h4·class="code-header">type·<a·href="../../core/convert/trait.TryInto.html#associatedtype.Error"·class="associatedtype">Error</a>·=·&lt;U·as·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#797">Source</a><a·href="#method.try_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.TryInto.html#tymethod.try_into"·class="fn">try_into</a>(self)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;U,·&lt;U·as·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>
41.6 KB
./usr/share/doc/rust-doc/html/test/test/enum.TestType.html
    
Offset 6, 23 lines modifiedOffset 6, 23 lines modified
6 }</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Type·of·the·test·according·to·the·<a·href="https://doc.rust-lang.org/cargo/guide/tests.html">Rust·book</a>6 }</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Type·of·the·test·according·to·the·<a·href="https://doc.rust-lang.org/cargo/guide/tests.html">Rust·book</a>
7 conventions.</p>7 conventions.</p>
8 </div></details><h2·id="variants"·class="variants·section-header">Variants<a·href="#variants"·class="anchor">§</a></h2><div·class="variants"><section·id="variant.UnitTest"·class="variant"><a·href="#variant.UnitTest"·class="anchor">§</a><h3·class="code-header">UnitTest</h3></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><div·class="docblock"><p>Unit-tests·are·expected·to·be·in·the·<code>src</code>·folder·of·the·crate.</p>8 </div></details><h2·id="variants"·class="variants·section-header">Variants<a·href="#variants"·class="anchor">§</a></h2><div·class="variants"><section·id="variant.UnitTest"·class="variant"><a·href="#variant.UnitTest"·class="anchor">§</a><h3·class="code-header">UnitTest</h3></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><div·class="docblock"><p>Unit-tests·are·expected·to·be·in·the·<code>src</code>·folder·of·the·crate.</p>
9 </div><section·id="variant.IntegrationTest"·class="variant"><a·href="#variant.IntegrationTest"·class="anchor">§</a><h3·class="code-header">IntegrationTest</h3></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><div·class="docblock"><p>Integration-style·tests·are·expected·to·be·in·the·<code>tests</code>·folder·of·the·crate.</p>9 </div><section·id="variant.IntegrationTest"·class="variant"><a·href="#variant.IntegrationTest"·class="anchor">§</a><h3·class="code-header">IntegrationTest</h3></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><div·class="docblock"><p>Integration-style·tests·are·expected·to·be·in·the·<code>tests</code>·folder·of·the·crate.</p>
10 </div><section·id="variant.DocTest"·class="variant"><a·href="#variant.DocTest"·class="anchor">§</a><h3·class="code-header">DocTest</h3></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><div·class="docblock"><p>Doctests·are·created·by·the·<code>librustdoc</code>·manually,·so·it’s·a·different·type·of·test.</p>10 </div><section·id="variant.DocTest"·class="variant"><a·href="#variant.DocTest"·class="anchor">§</a><h3·class="code-header">DocTest</h3></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><div·class="docblock"><p>Doctests·are·created·by·the·<code>librustdoc</code>·manually,·so·it’s·a·different·type·of·test.</p>
11 </div><section·id="variant.Unknown"·class="variant"><a·href="#variant.Unknown"·class="anchor">§</a><h3·class="code-header">Unknown</h3></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><div·class="docblock"><p>Tests·for·the·sources·that·don’t·follow·the·project·layout·convention11 </div><section·id="variant.Unknown"·class="variant"><a·href="#variant.Unknown"·class="anchor">§</a><h3·class="code-header">Unknown</h3></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><div·class="docblock"><p>Tests·for·the·sources·that·don’t·follow·the·project·layout·convention
12 (e.g.·tests·in·raw·<code>main.rs</code>·compiled·by·calling·<code>rustc·--test</code>·directly).</p>12 (e.g.·tests·in·raw·<code>main.rs</code>·compiled·by·calling·<code>rustc·--test</code>·directly).</p>
13 </div></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-TestType"·class="impl"><a·class="src·rightside"·href="../../src/test/types.rs.html#17">Source</a><a·href="#impl-Clone-for-TestType"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="enum"·href="enum.TestType.html"·title="enum·test::test::TestType">TestType</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/test/types.rs.html#17">Source</a><a·href="#method.clone"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/clone/trait.Clone.html#tymethod.clone"·class="fn">clone</a>(&amp;self)·-&gt;·<a·class="enum"·href="enum.TestType.html"·title="enum·test::test::TestType">TestType</a></h4></section></summary><div·class='docblock'>Returns·a·copy·of·the·value.·<a·href="../../core/clone/trait.Clone.html#tymethod.clone">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_from"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/clone.rs.html#174">Source</a></span><a·href="#method.clone_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/clone/trait.Clone.html#method.clone_from"·class="fn">clone_from</a>(&amp;mut·self,·source:·&amp;Self)</h4></section></summary><div·class='docblock'>Performs·copy-assignment·from·<code>source</code>.·<a·href="../../core/clone/trait.Clone.html#method.clone_from">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-TestType"·class="impl"><a·class="src·rightside"·href="../../src/test/types.rs.html#17">Source</a><a·href="#impl-Debug-for-TestType"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/fmt/trait.Debug.html"·title="trait·core::fmt::Debug">Debug</a>·for·<a·class="enum"·href="enum.TestType.html"·title="enum·test::test::TestType">TestType</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/test/types.rs.html#17">Source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="../../core/fmt/struct.Formatter.html"·title="struct·core::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="type"·href="../../core/fmt/type.Result.html"·title="type·core::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../../core/fmt/trait.Debug.html#tymethod.fmt">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Hash-for-TestType"·class="impl"><a·class="src·rightside"·href="../../src/test/types.rs.html#17">Source</a><a·href="#impl-Hash-for-TestType"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/hash/trait.Hash.html"·title="trait·core::hash::Hash">Hash</a>·for·<a·class="enum"·href="enum.TestType.html"·title="enum·test::test::TestType">TestType</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.hash"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/test/types.rs.html#17">Source</a><a·href="#method.hash"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/hash/trait.Hash.html#tymethod.hash"·class="fn">hash</a>&lt;__H:·<a·class="trait"·href="../../core/hash/trait.Hasher.html"·title="trait·core::hash::Hasher">Hasher</a>&gt;(&amp;self,·state:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;mut·__H</a>)</h4></section></summary><div·class='docblock'>Feeds·this·value·into·the·given·<a·href="../../core/hash/trait.Hasher.html"·title="trait·core::hash::Hasher"><code>Hasher</code><[·...·truncated·by·diffoscope;·len:·634,·SHA:·442770e8081cca67fa9563796e2314c0e01ca12107eeb46138d10e304b05c0ef·...·]/std/primitive.reference.html">&amp;mut·H</a>)<div·class="where">where13 </div></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-TestType"·class="impl"><a·class="src·rightside"·href="../../src/test/types.rs.html#17">Source</a><a·href="#impl-Clone-for-TestType"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="enum"·href="enum.TestType.html"·title="enum·test::test::TestType">TestType</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/test/types.rs.html#17">Source</a><a·href="#method.clone"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/clone/trait.Clone.html#tymethod.clone"·class="fn">clone</a>(&amp;self)·-&gt;·<a·class="enum"·href="enum.TestType.html"·title="enum·test::test::TestType">TestType</a></h4></section></summary><div·class='docblock'>Returns·a·copy·of·the·value.·<a·href="../../core/clone/trait.Clone.html#tymethod.clone">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_from"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/clone.rs.html#174">Source</a></span><a·href="#method.clone_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/clone/trait.Clone.html#method.clone_from"·class="fn">clone_from</a>(&amp;mut·self,·source:·&amp;Self)</h4></section></summary><div·class='docblock'>Performs·copy-assignment·from·<code>source</code>.·<a·href="../../core/clone/trait.Clone.html#method.clone_from">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-TestType"·class="impl"><a·class="src·rightside"·href="../../src/test/types.rs.html#17">Source</a><a·href="#impl-Debug-for-TestType"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/fmt/trait.Debug.html"·title="trait·core::fmt::Debug">Debug</a>·for·<a·class="enum"·href="enum.TestType.html"·title="enum·test::test::TestType">TestType</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/test/types.rs.html#17">Source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="../../core/fmt/struct.Formatter.html"·title="struct·core::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="type"·href="../../core/fmt/type.Result.html"·title="type·core::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../../core/fmt/trait.Debug.html#tymethod.fmt">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Hash-for-TestType"·class="impl"><a·class="src·rightside"·href="../../src/test/types.rs.html#17">Source</a><a·href="#impl-Hash-for-TestType"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/hash/trait.Hash.html"·title="trait·core::hash::Hash">Hash</a>·for·<a·class="enum"·href="enum.TestType.html"·title="enum·test::test::TestType">TestType</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.hash"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/test/types.rs.html#17">Source</a><a·href="#method.hash"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/hash/trait.Hash.html#tymethod.hash"·class="fn">hash</a>&lt;__H:·<a·class="trait"·href="../../core/hash/trait.Hasher.html"·title="trait·core::hash::Hasher">Hasher</a>&gt;(&amp;self,·state:·<a·class="primitive"·href="../../std/primitive.reference.html">&amp;mut·__H</a>)</h4></section></summary><div·class='docblock'>Feeds·this·value·into·the·given·<a·href="../../core/hash/trait.Hasher.html"·title="trait·core::hash::Hasher"><code>Hasher</code></a>.·<a·href="../../core/ha[·...·truncated·by·diffoscope;·len:·580,·SHA:·925cfc0a1deb2ae24bc6f7b66a4a98c507492b1629d54fc514660c3df32d9428·...·]/std/primitive.reference.html">&amp;mut·H</a>)<div·class="where">where
14 ····H:·<a·class="trait"·href="../../core/hash/trait.Hasher.html"·title="trait·core::hash::Hasher">Hasher</a>,14 ····H:·<a·class="trait"·href="../../core/hash/trait.Hasher.html"·title="trait·core::hash::Hasher">Hasher</a>,
15 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Feeds·a·slice·of·this·type·into·the·given·<a·href="../../core/hash/trait.Hasher.html"·title="trait·core::hash::Hasher"><code>Hasher</code></a>.·<a·href="../../core/hash/trait.Hash.html#method.hash_slice">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-PartialEq-for-TestType"·class="impl"><a·class="src·rightside"·href="../../src/test/types.rs.html#17">Source</a><a·href="#impl-PartialEq-for-TestType"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/cmp/trait.PartialEq.html"·title="trait·core::cmp::PartialEq">PartialEq</a>·for·<a·class="enum"·href="enum.TestType.html"·title="enum·test::test::TestType">TestType</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.eq"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/test/types.rs.html#17">Source</a><a·href="#method.eq"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/cmp/trait.PartialEq.html#tymethod.eq"·class="fn">eq</a>(&amp;self,·other:·&amp;<a·class="enum"·href="enum.TestType.html"·title="enum·test::test::TestType">TestType</a>)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>self</code>·and·<code>other</code>·values·to·be·equal,·and·is·used·by·<code>==</code>.</div></details><details·class="toggle·me[·...·truncated·by·diffoscope;·len:·575,·SHA:·24e5a6b6f07d6dccde1f4f31a2d320251328cc5b8476dbf860d00dba4bc89363·...·]/std/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>!=</code>.·The·default·implementation·is·almost·always·sufficient,15 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Feeds·a·slice·of·this·type·into·the·given·<a·href="../../core/hash/trait.Hasher.html"·title="trait·core::hash::Hasher"><code>Hasher</code></a>.·<a·href="../../core/hash/trait.Hash.html#method.hash_slice">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-PartialEq-for-TestType"·class="impl"><a·class="src·rightside"·href="../../src/test/types.rs.html#17">Source</a><a·href="#impl-PartialEq-for-TestType"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/cmp/trait.PartialEq.html"·title="trait·core::cmp::PartialEq">PartialEq</a>·for·<a·class="enum"·href="enum.TestType.html"·title="enum·test::test::TestType">TestType</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.eq"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/test/types.rs.html#17">Source</a><a·href="#method.eq"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/cmp/trait.PartialEq.html#tymethod.eq"·class="fn">eq</a>(&amp;self,·other:·&amp;<a·class="enum"·href="enum.TestType.html"·title="enum·test::test::TestType">TestType</a>)·-&gt;·<a·class="primitive"·href="../../std/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>self</code>·and·<code>other</code>·values·to·be·equal,·and·is·used·by·<code>==</code>.</div></details><details·class="toggle·method-toggle"·open><summary>[·...·truncated·by·diffoscope;·len:·494,·SHA:·db76c2d93beea7efa856fa6578fe817b3591880dfa224bd5e9c9e64062908aa1·...·]/std/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>!=</code>.·The·default·implementation·is·almost·always·sufficient,
16 and·should·not·be·overridden·without·very·good·reason.</div></details></div></details><section·id="impl-Copy-for-TestType"·class="impl"><a·class="src·rightside"·href="../../src/test/types.rs.html#17">Source</a><a·href="#impl-Copy-for-TestType"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Copy.html"·title="trait·core::marker::Copy">Copy</a>·for·<a·class="enum"·href="enum.TestType.html"·title="enum·test::test::TestType">TestType</a></h3></section><section·id="impl-Eq-for-TestType"·class="impl"><a·class="src·rightside"·href="../../src/test/types.rs.html#17">Source</a><a·href="#impl-Eq-for-TestType"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/cmp/trait.Eq.html"·title="trait·core::cmp::Eq">Eq</a>·for·<a·class="enum"·href="enum.TestType.html"·title="enum·test::test::TestType">TestType</a></h3></section><section·id="impl-StructuralPartialEq-for-TestType"·class="impl"><a·class="src·rightside"·href="../../src/test/types.rs.html#17">Source</a><a·href="#impl-StructuralPartialEq-for-TestType"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.StructuralPartialEq.html"·title="trait·core::marker::StructuralPartialEq">StructuralPartialEq</a>·for·<a·class="enum"·href="enum.TestType.html"·title="enum·test::test::TestType">TestType</a></h3></section></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-TestType"·class="impl"><a·href="#impl-Freeze-for-TestType"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="enum"·href="enum.TestType.html"·title="enum·test::test::TestType">TestType</a></h3></section><section·id="impl-RefUnwindSafe-for-TestType"·class="impl"><a·href="#impl-RefUnwindSafe-for-TestType"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="enum"·href="enum.TestType.html"·title="enum·test::test::TestType">TestType</a></h3></section><section·id="impl-Send-for-TestType"·class="impl"><a·href="#impl-Send-for-TestType"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="enum"·href="enum.TestType.html"·title="enum·test::test::TestType">TestType</a></h3></section><section·id="impl-Sync-for-TestType"·class="impl"><a·href="#impl-Sync-for-TestType"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="enum"·href="enum.TestType.html"·title="enum·test::test::TestType">TestType</a></h3></section><section·id="impl-Unpin-for-TestType"·class="impl"><a·href="#impl-Unpin-for-TestType"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="enum"·href="enum.TestType.html"·title="enum·test::test::TestType">TestType</a></h3></section><section·id="impl-UnwindSafe-for-TestType"·class="impl"><a·href="#impl-UnwindSafe-for-TestType"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="enum"·href="enum.TestType.html"·title="enum·test::test::TestType">TestType</a></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementations<a·href="#blanket-implementations"·class="anchor">§</a></h2><div·id="blanket-implementations-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-Any-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/any.rs.html#138">Source</a><a·href="#impl-Any-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where16 and·should·not·be·overridden·without·very·good·reason.</div></details></div></details><section·id="impl-Copy-for-TestType"·class="impl"><a·class="src·rightside"·href="../../src/test/types.rs.html#17">Source</a><a·href="#impl-Copy-for-TestType"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Copy.html"·title="trait·core::marker::Copy">Copy</a>·for·<a·class="enum"·href="enum.TestType.html"·title="enum·test::test::TestType">TestType</a></h3></section><section·id="impl-Eq-for-TestType"·class="impl"><a·class="src·rightside"·href="../../src/test/types.rs.html#17">Source</a><a·href="#impl-Eq-for-TestType"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/cmp/trait.Eq.html"·title="trait·core::cmp::Eq">Eq</a>·for·<a·class="enum"·href="enum.TestType.html"·title="enum·test::test::TestType">TestType</a></h3></section><section·id="impl-StructuralPartialEq-for-TestType"·class="impl"><a·class="src·rightside"·href="../../src/test/types.rs.html#17">Source</a><a·href="#impl-StructuralPartialEq-for-TestType"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.StructuralPartialEq.html"·title="trait·core::marker::StructuralPartialEq">StructuralPartialEq</a>·for·<a·class="enum"·href="enum.TestType.html"·title="enum·test::test::TestType">TestType</a></h3></section></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-TestType"·class="impl"><a·href="#impl-Freeze-for-TestType"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="enum"·href="enum.TestType.html"·title="enum·test::test::TestType">TestType</a></h3></section><section·id="impl-RefUnwindSafe-for-TestType"·class="impl"><a·href="#impl-RefUnwindSafe-for-TestType"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="enum"·href="enum.TestType.html"·title="enum·test::test::TestType">TestType</a></h3></section><section·id="impl-Send-for-TestType"·class="impl"><a·href="#impl-Send-for-TestType"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="enum"·href="enum.TestType.html"·title="enum·test::test::TestType">TestType</a></h3></section><section·id="impl-Sync-for-TestType"·class="impl"><a·href="#impl-Sync-for-TestType"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="enum"·href="enum.TestType.html"·title="enum·test::test::TestType">TestType</a></h3></section><section·id="impl-Unpin-for-TestType"·class="impl"><a·href="#impl-Unpin-for-TestType"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="enum"·href="enum.TestType.html"·title="enum·test::test::TestType">TestType</a></h3></section><section·id="impl-UnwindSafe-for-TestType"·class="impl"><a·href="#impl-UnwindSafe-for-TestType"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="enum"·href="enum.TestType.html"·title="enum·test::test::TestType">TestType</a></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementations<a·href="#blanket-implementations"·class="anchor">§</a></h2><div·id="blanket-implementations-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-Any-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/any.rs.html#138">Source</a><a·href="#impl-Any-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where
17 ····T:·'static·+·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/any.rs.html#139">Source</a><a·href="#method.type_id"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/any/trait.Any.html#tymethod.type_id"·class="fn">type_id</a>(&amp;self)·-&gt;·<a·class="struct"·href="../../core/any/struct.TypeId.html"·title="struct·core::any::TypeId">TypeId</a></h4></section></summary><div·class='docblock'>Gets·the·<code>TypeId</code>·of·<code>self</code>.·<a·href="../../core/any/trait.Any.html#tymethod.type_id">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Borrow%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/borrow/trait.Borrow.html"·title="trait·core::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where17 ····T:·'static·+·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/any.rs.html#139">Source</a><a·href="#method.type_id"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/any/trait.Any.html#tymethod.type_id"·class="fn">type_id</a>(&amp;self)·-&gt;·<a·class="struct"·href="../../core/any/struct.TypeId.html"·title="struct·core::any::TypeId">TypeId</a></h4></section></summary><div·class='docblock'>Gets·the·<code>TypeId</code>·of·<code>self</code>.·<a·href="../../core/any/trait.Any.html#tymethod.type_id">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Borrow%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/borrow/trait.Borrow.html"·title="trait·core::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where
18 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#211">Source</a><a·href="#method.borrow"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/borrow/trait.Borrow.html#tymethod.borrow"·class="fn">borrow</a>(&amp;self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;T</a></h4></section></summary><div·class='docblock'>Immutably·borrows·from·an·owned·value.·<a·href="../../core/borrow/trait.Borrow.html#tymethod.borrow">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-BorrowMut%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/borrow/trait.BorrowMut.html"·title="trait·core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where18 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#211">Source</a><a·href="#method.borrow"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/borrow/trait.Borrow.html#tymethod.borrow"·class="fn">borrow</a>(&amp;self)·-&gt;·<a·class="primitive"·href="../../std/primitive.reference.html">&amp;T</a></h4></section></summary><div·class='docblock'>Immutably·borrows·from·an·owned·value.·<a·href="../../core/borrow/trait.Borrow.html#tymethod.borrow">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-BorrowMut%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/borrow/trait.BorrowMut.html"·title="trait·core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where
19 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#218">Source</a><a·href="#method.borrow_mut"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"·class="fn">borrow_mut</a>(&amp;mut·self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;mut·T</a></h4></section></summary><div·class='docblock'>Mutably·borrows·from·an·owned·value.·<a·href="../../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-CloneToUninit-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/clone.rs.html#273">Source</a><a·href="#impl-CloneToUninit-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where19 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#218">Source</a><a·href="#method.borrow_mut"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"·class="fn">borrow_mut</a>(&amp;mut·self)·-&gt;·<a·class="primitive"·href="../../std/primitive.reference.html">&amp;mut·T</a></h4></section></summary><div·class='docblock'>Mutably·borrows·from·an·owned·value.·<a·href="../../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-CloneToUninit-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/clone.rs.html#273">Source</a><a·href="#impl-CloneToUninit-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where
20 ····T:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/clone.rs.html#275">Source</a><a·href="#method.clone_to_uninit"·class="anchor">§</a><h4·class="code-header">unsafe·fn·<a·href="../../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit"·class="fn">clone_to_uninit</a>(&amp;self,·dst:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.pointer.html">*mut·</a><a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.u8.html">u8</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>clone_to_uninit</code>)</span></div></span><div·class='docblock'>Performs·copy-assignment·from·<code>self</code>·to·<code>dst</code>.·<a·href="../../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-From%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#765">Source</a><a·href="#impl-From%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·T</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#768">Source</a><a·href="#method.from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>20 ····T:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/clone.rs.html#275">Source</a><a·href="#method.clone_to_uninit"·class="anchor">§</a><h4·class="code-header">unsafe·fn·<a·href="../../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit"·class="fn">clone_to_uninit</a>(&amp;self,·dst:·<a·class="primitive"·href="../../std/primitive.pointer.html">*mut·</a><a·class="primitive"·href="../../std/primitive.u8.html">u8</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>clone_to_uninit</code>)</span></div></span><div·class='docblock'>Performs·copy-assignment·from·<code>self</code>·to·<code>dst</code>.·<a·href="../../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-From%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#765">Source</a><a·href="#impl-From%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·T</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#768">Source</a><a·href="#method.from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>
21 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where21 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where
22 ····U:·<a·class="trait"·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#758">Source</a><a·href="#method.into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>22 ····U:·<a·class="trait"·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#758">Source</a><a·href="#method.into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>
23 <p>That·is,·this·conversion·is·whatever·the·implementation·of23 <p>That·is,·this·conversion·is·whatever·the·implementation·of
24 <code><a·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>24 <code><a·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>
25 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#82-84">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../alloc/borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where25 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#82-84">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../alloc/borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where
26 ····T:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#86">Source</a><a·href="#associatedtype.Owned"·class="anchor">§</a><h4·class="code-header">type·<a·href="../../alloc/borrow/trait.ToOwned.html#associatedtype.Owned"·class="associatedtype">Owned</a>·=·T</h4></section></summary><div·class='docblock'>The·resulting·type·after·obtaining·ownership.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.to_owned"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#87">Source</a><a·href="#method.to_owned"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../alloc/borrow/trait.ToOwned.html#tymethod.to_owned"·class="fn">to_owned</a>(&amp;self)·-&gt;·T</h4></section></summary><div·class='docblock'>Creates·owned·data·from·borrowed·data,·usually·by·cloning.·<a·href="../../alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#91">Source</a><a·href="#method.clone_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../alloc/borrow/trait.ToOwned.html#method.clone_into"·class="fn">clone_into</a>(&amp;self,·target:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../../alloc/borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#805-807">Source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where26 ····T:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#86">Source</a><a·href="#associatedtype.Owned"·class="anchor">§</a><h4·class="code-header">type·<a·href="../../alloc/borrow/trait.ToOwned.html#associatedtype.Owned"·class="associatedtype">Owned</a>·=·T</h4></section></summary><div·class='docblock'>The·resulting·type·after·obtaining·ownership.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.to_owned"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#87">Source</a><a·href="#method.to_owned"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../alloc/borrow/trait.ToOwned.html#tymethod.to_owned"·class="fn">to_owned</a>(&amp;self)·-&gt;·T</h4></section></summary><div·class='docblock'>Creates·owned·data·from·borrowed·data,·usually·by·cloning.·<a·href="../../alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#91">Source</a><a·href="#method.clone_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../alloc/borrow/trait.ToOwned.html#method.clone_into"·class="fn">clone_into</a>(&amp;self,·target:·<a·class="primitive"·href="../../std/primitive.reference.html">&amp;mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../../alloc/borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#805-807">Source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where
27 ····U:·<a·class="trait"·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#809">Source</a><a·href="#associatedtype.Error-1"·class="anchor">§</a><h4·class="code-header">type·<a·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<a·class="enum"·href="../../core/convert/enum.Infallible.html"·title="enum·core::convert::Infallible">Infallible</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_from"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#812">Source</a><a·href="#method.try_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.TryFrom.html#tymethod.try_from"·class="fn">try_from</a>(value:·U)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;T,·&lt;T·as·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;&gt;::<a·class="associatedtype"·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryInto%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#790-792">Source</a><a·href="#impl-TryInto%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where27 ····U:·<a·class="trait"·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#809">Source</a><a·href="#associatedtype.Error-1"·class="anchor">§</a><h4·class="code-header">type·<a·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<a·class="enum"·href="../../core/convert/enum.Infallible.html"·title="enum·core::convert::Infallible">Infallible</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_from"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#812">Source</a><a·href="#method.try_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.TryFrom.html#tymethod.try_from"·class="fn">try_from</a>(value:·U)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;T,·&lt;T·as·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;&gt;::<a·class="associatedtype"·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryInto%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#790-792">Source</a><a·href="#impl-TryInto%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where
28 ····U:·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#794">Source</a><a·href="#associatedtype.Error"·class="anchor">§</a><h4·class="code-header">type·<a·href="../../core/convert/trait.TryInto.html#associatedtype.Error"·class="associatedtype">Error</a>·=·&lt;U·as·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#797">Source</a><a·href="#method.try_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.TryInto.html#tymethod.try_into"·class="fn">try_into</a>(self)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;U,·&lt;U·as·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>28 ····U:·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#794">Source</a><a·href="#associatedtype.Error"·class="anchor">§</a><h4·class="code-header">type·<a·href="../../core/convert/trait.TryInto.html#associatedtype.Error"·class="associatedtype">Error</a>·=·&lt;U·as·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#797">Source</a><a·href="#method.try_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.TryInto.html#tymethod.try_into"·class="fn">try_into</a>(self)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;U,·&lt;U·as·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>
47.4 KB
./usr/share/doc/rust-doc/html/test/test/struct.Metric.html
    
Offset 1, 14 lines modifiedOffset 1, 14 lines modified
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="API·documentation·for·the·Rust·`Metric`·struct·in·crate·`test`."><title>Metric·in·test::test·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="test"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../test/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../test/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../test/index.html">test</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»  2025-01-07)»       (built» from»     a»    source»      tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Metric</a></h2><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.new"·title="new">new</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-Metric"·title="Clone">Clone</a></li><li><a·href="#impl-Copy-for-Metric"·title="Copy">Copy</a></li><li><a·href="#impl-Debug-for-Metric"·title="Debug">Debug</a></li><li><a·href="#impl-PartialEq-for-Metric"·title="PartialEq">PartialEq</a></li><li><a·href="#impl-StructuralPartialEq-for-Metric"·title="StructuralPartialEq">StructuralPartialEq</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-Metric"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Metric"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Metric"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-Metric"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-Metric"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Metric"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·test::<wbr>test</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">test</a>::<wbr><a·href="index.html">test</a></span><h1>Struct·<span·class="struct">Metric</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/test/helpers/metrics.rs.html#6-9">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·Metric·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Metric"·class="impl"><a·class="src·rightside"·href="../../src/test/helpers/metrics.rs.html#11-15">Source</a><a·href="#impl-Metric"·class="anchor">§</a><h3·class="code-header">impl·<a·class="struct"·href="struct.Metric.html"·title="struct·test::test::Metric">Metric</a></h3></section></summary><div·class="impl-items"><section·id="method.new"·class="method"><a·class="src·rightside"·href="../../src/test/helpers/metrics.rs.html#12-14">Source</a><h4·class="code-header">pub·fn·<a·href="#method.new"·class="fn">new</a>(value:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.f64.html">f64</a>,·noise:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.f64.html">f64</a>)·-&gt;·<a·class="struct"·href="struct.Metric.html"·title="struct·test::test::Metric">Metric[·...·truncated·by·diffoscope;·len:·5296,·SHA:·c3c1af2d5e70aac1bc7859ef1e7db33082141a278d6b08e4f6da82721e5ec157·...·]/std/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>!=</code>.·The·default·implementation·is·almost·always·sufficient,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="API·documentation·for·the·Rust·`Metric`·struct·in·crate·`test`."><title>Metric·in·test::test·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="test"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../test/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../test/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../test/index.html">test</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»  2025-01-07)»       (built» from»     a»    source»      tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Metric</a></h2><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.new"·title="new">new</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-Metric"·title="Clone">Clone</a></li><li><a·href="#impl-Copy-for-Metric"·title="Copy">Copy</a></li><li><a·href="#impl-Debug-for-Metric"·title="Debug">Debug</a></li><li><a·href="#impl-PartialEq-for-Metric"·title="PartialEq">PartialEq</a></li><li><a·href="#impl-StructuralPartialEq-for-Metric"·title="StructuralPartialEq">StructuralPartialEq</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-Metric"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Metric"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Metric"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-Metric"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-Metric"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Metric"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·test::<wbr>test</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">test</a>::<wbr><a·href="index.html">test</a></span><h1>Struct·<span·class="struct">Metric</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/test/helpers/metrics.rs.html#6-9">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·Metric·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Metric"·class="impl"><a·class="src·rightside"·href="../../src/test/helpers/metrics.rs.html#11-15">Source</a><a·href="#impl-Metric"·class="anchor">§</a><h3·class="code-header">impl·<a·class="struct"·href="struct.Metric.html"·title="struct·test::test::Metric">Metric</a></h3></section></summary><div·class="impl-items"><section·id="method.new"·class="method"><a·class="src·rightside"·href="../../src/test/helpers/metrics.rs.html#12-14">Source</a><h4·class="code-header">pub·fn·<a·href="#method.new"·class="fn">new</a>(value:·<a·class="primitive"·href="../../std/primitive.f64.html">f64</a>,·noise:·<a·class="primitive"·href="../../std/primitive.f64.html">f64</a>)·-&gt;·<a·class="struct"·href="struct.Metric.html"·title="struct·test::test::Metric">Metric</a></h4></section><span·class="item-info"><div·class=[·...·truncated·by·diffoscope;·len:·5161,·SHA:·ee652c3e90e22270847b3f776da0695805cbc936e727a9da1ebade09dfb400cb·...·]/std/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>!=</code>.·The·default·implementation·is·almost·always·sufficient,
2 and·should·not·be·overridden·without·very·good·reason.</div></details></div></details><section·id="impl-Copy-for-Metric"·class="impl"><a·class="src·rightside"·href="../../src/test/helpers/metrics.rs.html#5">Source</a><a·href="#impl-Copy-for-Metric"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Copy.html"·title="trait·core::marker::Copy">Copy</a>·for·<a·class="struct"·href="struct.Metric.html"·title="struct·test::test::Metric">Metric</a></h3></section><section·id="impl-StructuralPartialEq-for-Metric"·class="impl"><a·class="src·rightside"·href="../../src/test/helpers/metrics.rs.html#5">Source</a><a·href="#impl-StructuralPartialEq-for-Metric"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.StructuralPartialEq.html"·title="trait·core::marker::StructuralPartialEq">StructuralPartialEq</a>·for·<a·class="struct"·href="struct.Metric.html"·title="struct·test::test::Metric">Metric</a></h3></section></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-Metric"·class="impl"><a·href="#impl-Freeze-for-Metric"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="struct"·href="struct.Metric.html"·title="struct·test::test::Metric">Metric</a></h3></section><section·id="impl-RefUnwindSafe-for-Metric"·class="impl"><a·href="#impl-RefUnwindSafe-for-Metric"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="struct"·href="struct.Metric.html"·title="struct·test::test::Metric">Metric</a></h3></section><section·id="impl-Send-for-Metric"·class="impl"><a·href="#impl-Send-for-Metric"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="struct"·href="struct.Metric.html"·title="struct·test::test::Metric">Metric</a></h3></section><section·id="impl-Sync-for-Metric"·class="impl"><a·href="#impl-Sync-for-Metric"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="struct"·href="struct.Metric.html"·title="struct·test::test::Metric">Metric</a></h3></section><section·id="impl-Unpin-for-Metric"·class="impl"><a·href="#impl-Unpin-for-Metric"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="struct"·href="struct.Metric.html"·title="struct·test::test::Metric">Metric</a></h3></section><section·id="impl-UnwindSafe-for-Metric"·class="impl"><a·href="#impl-UnwindSafe-for-Metric"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="struct"·href="struct.Metric.html"·title="struct·test::test::Metric">Metric</a></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementations<a·href="#blanket-implementations"·class="anchor">§</a></h2><div·id="blanket-implementations-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-Any-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/any.rs.html#138">Source</a><a·href="#impl-Any-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where2 and·should·not·be·overridden·without·very·good·reason.</div></details></div></details><section·id="impl-Copy-for-Metric"·class="impl"><a·class="src·rightside"·href="../../src/test/helpers/metrics.rs.html#5">Source</a><a·href="#impl-Copy-for-Metric"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Copy.html"·title="trait·core::marker::Copy">Copy</a>·for·<a·class="struct"·href="struct.Metric.html"·title="struct·test::test::Metric">Metric</a></h3></section><section·id="impl-StructuralPartialEq-for-Metric"·class="impl"><a·class="src·rightside"·href="../../src/test/helpers/metrics.rs.html#5">Source</a><a·href="#impl-StructuralPartialEq-for-Metric"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.StructuralPartialEq.html"·title="trait·core::marker::StructuralPartialEq">StructuralPartialEq</a>·for·<a·class="struct"·href="struct.Metric.html"·title="struct·test::test::Metric">Metric</a></h3></section></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-Metric"·class="impl"><a·href="#impl-Freeze-for-Metric"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="struct"·href="struct.Metric.html"·title="struct·test::test::Metric">Metric</a></h3></section><section·id="impl-RefUnwindSafe-for-Metric"·class="impl"><a·href="#impl-RefUnwindSafe-for-Metric"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="struct"·href="struct.Metric.html"·title="struct·test::test::Metric">Metric</a></h3></section><section·id="impl-Send-for-Metric"·class="impl"><a·href="#impl-Send-for-Metric"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="struct"·href="struct.Metric.html"·title="struct·test::test::Metric">Metric</a></h3></section><section·id="impl-Sync-for-Metric"·class="impl"><a·href="#impl-Sync-for-Metric"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="struct"·href="struct.Metric.html"·title="struct·test::test::Metric">Metric</a></h3></section><section·id="impl-Unpin-for-Metric"·class="impl"><a·href="#impl-Unpin-for-Metric"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="struct"·href="struct.Metric.html"·title="struct·test::test::Metric">Metric</a></h3></section><section·id="impl-UnwindSafe-for-Metric"·class="impl"><a·href="#impl-UnwindSafe-for-Metric"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="struct"·href="struct.Metric.html"·title="struct·test::test::Metric">Metric</a></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementations<a·href="#blanket-implementations"·class="anchor">§</a></h2><div·id="blanket-implementations-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-Any-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/any.rs.html#138">Source</a><a·href="#impl-Any-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where
3 ····T:·'static·+·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/any.rs.html#139">Source</a><a·href="#method.type_id"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/any/trait.Any.html#tymethod.type_id"·class="fn">type_id</a>(&amp;self)·-&gt;·<a·class="struct"·href="../../core/any/struct.TypeId.html"·title="struct·core::any::TypeId">TypeId</a></h4></section></summary><div·class='docblock'>Gets·the·<code>TypeId</code>·of·<code>self</code>.·<a·href="../../core/any/trait.Any.html#tymethod.type_id">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Borrow%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/borrow/trait.Borrow.html"·title="trait·core::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where3 ····T:·'static·+·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/any.rs.html#139">Source</a><a·href="#method.type_id"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/any/trait.Any.html#tymethod.type_id"·class="fn">type_id</a>(&amp;self)·-&gt;·<a·class="struct"·href="../../core/any/struct.TypeId.html"·title="struct·core::any::TypeId">TypeId</a></h4></section></summary><div·class='docblock'>Gets·the·<code>TypeId</code>·of·<code>self</code>.·<a·href="../../core/any/trait.Any.html#tymethod.type_id">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Borrow%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/borrow/trait.Borrow.html"·title="trait·core::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where
4 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#211">Source</a><a·href="#method.borrow"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/borrow/trait.Borrow.html#tymethod.borrow"·class="fn">borrow</a>(&amp;self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;T</a></h4></section></summary><div·class='docblock'>Immutably·borrows·from·an·owned·value.·<a·href="../../core/borrow/trait.Borrow.html#tymethod.borrow">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-BorrowMut%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/borrow/trait.BorrowMut.html"·title="trait·core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where4 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#211">Source</a><a·href="#method.borrow"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/borrow/trait.Borrow.html#tymethod.borrow"·class="fn">borrow</a>(&amp;self)·-&gt;·<a·class="primitive"·href="../../std/primitive.reference.html">&amp;T</a></h4></section></summary><div·class='docblock'>Immutably·borrows·from·an·owned·value.·<a·href="../../core/borrow/trait.Borrow.html#tymethod.borrow">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-BorrowMut%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/borrow/trait.BorrowMut.html"·title="trait·core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where
5 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#218">Source</a><a·href="#method.borrow_mut"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"·class="fn">borrow_mut</a>(&amp;mut·self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;mut·T</a></h4></section></summary><div·class='docblock'>Mutably·borrows·from·an·owned·value.·<a·href="../../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-CloneToUninit-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/clone.rs.html#273">Source</a><a·href="#impl-CloneToUninit-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where5 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#218">Source</a><a·href="#method.borrow_mut"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"·class="fn">borrow_mut</a>(&amp;mut·self)·-&gt;·<a·class="primitive"·href="../../std/primitive.reference.html">&amp;mut·T</a></h4></section></summary><div·class='docblock'>Mutably·borrows·from·an·owned·value.·<a·href="../../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-CloneToUninit-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/clone.rs.html#273">Source</a><a·href="#impl-CloneToUninit-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where
6 ····T:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/clone.rs.html#275">Source</a><a·href="#method.clone_to_uninit"·class="anchor">§</a><h4·class="code-header">unsafe·fn·<a·href="../../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit"·class="fn">clone_to_uninit</a>(&amp;self,·dst:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.pointer.html">*mut·</a><a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.u8.html">u8</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>clone_to_uninit</code>)</span></div></span><div·class='docblock'>Performs·copy-assignment·from·<code>self</code>·to·<code>dst</code>.·<a·href="../../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-From%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#765">Source</a><a·href="#impl-From%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·T</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#768">Source</a><a·href="#method.from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>6 ····T:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/clone.rs.html#275">Source</a><a·href="#method.clone_to_uninit"·class="anchor">§</a><h4·class="code-header">unsafe·fn·<a·href="../../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit"·class="fn">clone_to_uninit</a>(&amp;self,·dst:·<a·class="primitive"·href="../../std/primitive.pointer.html">*mut·</a><a·class="primitive"·href="../../std/primitive.u8.html">u8</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>clone_to_uninit</code>)</span></div></span><div·class='docblock'>Performs·copy-assignment·from·<code>self</code>·to·<code>dst</code>.·<a·href="../../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-From%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#765">Source</a><a·href="#impl-From%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·T</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#768">Source</a><a·href="#method.from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>
7 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where7 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where
8 ····U:·<a·class="trait"·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#758">Source</a><a·href="#method.into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>8 ····U:·<a·class="trait"·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#758">Source</a><a·href="#method.into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>
9 <p>That·is,·this·conversion·is·whatever·the·implementation·of9 <p>That·is,·this·conversion·is·whatever·the·implementation·of
10 <code><a·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>10 <code><a·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>
11 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#82-84">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../alloc/borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where11 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#82-84">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../alloc/borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where
12 ····T:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#86">Source</a><a·href="#associatedtype.Owned"·class="anchor">§</a><h4·class="code-header">type·<a·href="../../alloc/borrow/trait.ToOwned.html#associatedtype.Owned"·class="associatedtype">Owned</a>·=·T</h4></section></summary><div·class='docblock'>The·resulting·type·after·obtaining·ownership.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.to_owned"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#87">Source</a><a·href="#method.to_owned"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../alloc/borrow/trait.ToOwned.html#tymethod.to_owned"·class="fn">to_owned</a>(&amp;self)·-&gt;·T</h4></section></summary><div·class='docblock'>Creates·owned·data·from·borrowed·data,·usually·by·cloning.·<a·href="../../alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#91">Source</a><a·href="#method.clone_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../alloc/borrow/trait.ToOwned.html#method.clone_into"·class="fn">clone_into</a>(&amp;self,·target:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../../alloc/borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#805-807">Source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where12 ····T:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#86">Source</a><a·href="#associatedtype.Owned"·class="anchor">§</a><h4·class="code-header">type·<a·href="../../alloc/borrow/trait.ToOwned.html#associatedtype.Owned"·class="associatedtype">Owned</a>·=·T</h4></section></summary><div·class='docblock'>The·resulting·type·after·obtaining·ownership.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.to_owned"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#87">Source</a><a·href="#method.to_owned"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../alloc/borrow/trait.ToOwned.html#tymethod.to_owned"·class="fn">to_owned</a>(&amp;self)·-&gt;·T</h4></section></summary><div·class='docblock'>Creates·owned·data·from·borrowed·data,·usually·by·cloning.·<a·href="../../alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#91">Source</a><a·href="#method.clone_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../alloc/borrow/trait.ToOwned.html#method.clone_into"·class="fn">clone_into</a>(&amp;self,·target:·<a·class="primitive"·href="../../std/primitive.reference.html">&amp;mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../../alloc/borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#805-807">Source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where
13 ····U:·<a·class="trait"·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#809">Source</a><a·href="#associatedtype.Error-1"·class="anchor">§</a><h4·class="code-header">type·<a·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<a·class="enum"·href="../../core/convert/enum.Infallible.html"·title="enum·core::convert::Infallible">Infallible</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_from"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#812">Source</a><a·href="#method.try_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.TryFrom.html#tymethod.try_from"·class="fn">try_from</a>(value:·U)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;T,·&lt;T·as·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;&gt;::<a·class="associatedtype"·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryInto%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#790-792">Source</a><a·href="#impl-TryInto%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where13 ····U:·<a·class="trait"·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#809">Source</a><a·href="#associatedtype.Error-1"·class="anchor">§</a><h4·class="code-header">type·<a·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<a·class="enum"·href="../../core/convert/enum.Infallible.html"·title="enum·core::convert::Infallible">Infallible</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_from"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#812">Source</a><a·href="#method.try_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.TryFrom.html#tymethod.try_from"·class="fn">try_from</a>(value:·U)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;T,·&lt;T·as·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;&gt;::<a·class="associatedtype"·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryInto%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#790-792">Source</a><a·href="#impl-TryInto%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where
14 ····U:·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#794">Source</a><a·href="#associatedtype.Error"·class="anchor">§</a><h4·class="code-header">type·<a·href="../../core/convert/trait.TryInto.html#associatedtype.Error"·class="associatedtype">Error</a>·=·&lt;U·as·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#797">Source</a><a·href="#method.try_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.TryInto.html#tymethod.try_into"·class="fn">try_into</a>(self)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;U,·&lt;U·as·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>14 ····U:·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#794">Source</a><a·href="#associatedtype.Error"·class="anchor">§</a><h4·class="code-header">type·<a·href="../../core/convert/trait.TryInto.html#associatedtype.Error"·class="associatedtype">Error</a>·=·&lt;U·as·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#797">Source</a><a·href="#method.try_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.TryInto.html#tymethod.try_into"·class="fn">try_into</a>(self)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;U,·&lt;U·as·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>
47.9 KB
./usr/share/doc/rust-doc/html/test/test/struct.MetricMap.html
    
Offset 1, 25 lines modifiedOffset 1, 25 lines modified
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="API·documentation·for·the·Rust·`MetricMap`·struct·in·crate·`test`."><title>MetricMap·in·test::test·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="test"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../test/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../test/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../test/index.html">test</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»    2025-01-07)» (built»   from»       a»      source»tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Metric<wbr>Map</a></h2><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.fmt_metrics"·title="fmt_metrics">fmt_metrics</a></li><li><a·href="#method.insert_metric"·title="insert_metric">insert_metric</a></li><li><a·href="#method.new"·title="new">new</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-MetricMap"·title="Clone">Clone</a></li><li><a·href="#impl-PartialEq-for-MetricMap"·title="PartialEq">PartialEq</a></li><li><a·href="#impl-StructuralPartialEq-for-MetricMap"·title="StructuralPartialEq">StructuralPartialEq</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-MetricMap"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-MetricMap"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-MetricMap"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-MetricMap"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-MetricMap"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-MetricMap"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·test::<wbr>test</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">test</a>::<wbr><a·href="index.html">test</a></span><h1>Struct·<span·class="struct">MetricMap</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/test/helpers/metrics.rs.html#18">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·MetricMap(<span·class="comment">/*·private·fields·*/</span>);</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-MetricMap"·class="impl"><a·class="src·rightside"·href="../../src/test/helpers/metrics.rs.html#20-51">Source</a><a·href="#impl-MetricMap"·class="anchor">§</a><h3·class="code-header">impl·<a·class="struct"·href="struct.MetricMap.html"·title="struct·test::test::MetricMap">MetricMap</a></h3></section></summary><div·class="impl-items"><section·id="method.new"·class="method"><a·class="src·rightside"·href="../../src/test/helpers/metrics.rs.html#21-23">Source</a><h4·class="code-header">pub·fn·<a·href="#method.new"·class="fn">new</a>()·-&gt;·<a·class="struct"·href="struct.MetricMap.html"·title="struct·test::test::MetricMap">MetricMap</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><details·class="toggle·method-toggle"·open><summary><section·id="method.insert_metric"·class="method"><a·class="src·rightside"·href="../../src/test/helpers/metrics.rs.html#38-41">Source</a><h4·class="code-header">pub·fn·<a·href="#method.insert_metric"·class="fn">insert_metric</a>(&amp;mut·self,·name:·&amp;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.str.html">str</a>,·value:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.f64.html">f64</a>,·noise:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.f64.html">f64</a>)</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span></summary><div·class="docblock"><p>Insert·a·named·<code>value</code>·(+/-·<code>noise</code>)·metric·into·the·map.·The·value1 <!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="API·documentation·for·the·Rust·`MetricMap`·struct·in·crate·`test`."><title>MetricMap·in·test::test·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="test"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../test/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../test/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../test/index.html">test</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»    2025-01-07)» (built»   from»       a»      source»tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Metric<wbr>Map</a></h2><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.fmt_metrics"·title="fmt_metrics">fmt_metrics</a></li><li><a·href="#method.insert_metric"·title="insert_metric">insert_metric</a></li><li><a·href="#method.new"·title="new">new</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-MetricMap"·title="Clone">Clone</a></li><li><a·href="#impl-PartialEq-for-MetricMap"·title="PartialEq">PartialEq</a></li><li><a·href="#impl-StructuralPartialEq-for-MetricMap"·title="StructuralPartialEq">StructuralPartialEq</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-MetricMap"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-MetricMap"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-MetricMap"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-MetricMap"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-MetricMap"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-MetricMap"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·test::<wbr>test</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">test</a>::<wbr><a·href="index.html">test</a></span><h1>Struct·<span·class="struct">MetricMap</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/test/helpers/metrics.rs.html#18">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·MetricMap(<span·class="comment">/*·private·fields·*/</span>);</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-MetricMap"·class="impl"><a·class="src·rightside"·href="../../src/test/helpers/metrics.rs.html#20-51">Source</a><a·href="#impl-MetricMap"·class="anchor">§</a><h3·class="code-header">impl·<a·class="struct"·href="struct.MetricMap.html"·title="struct·test::test::MetricMap">MetricMap</a></h3></section></summary><div·class="impl-items"><section·id="method.new"·class="method"><a·class="src·rightside"·href="../../src/test/helpers/metrics.rs.html#21-23">Source</a><h4·class="code-header">pub·fn·<a·href="#method.new"·class="fn">new</a>()·-&gt;·<a·class="struct"·href="struct.MetricMap.html"·title="struct·test::test::MetricMap">MetricMap</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><details·class="toggle·method-toggle"·open><summary><section·id="method.insert_metric"·class="method"><a·class="src·rightside"·href="../../src/test/helpers/metrics.rs.html#38-41">Source</a><h4·class="code-header">pub·fn·<a·href="#method.insert_metric"·class="fn">insert_metric</a>(&amp;mut·self,·name:·&amp;<a·class="primitive"·href="../../std/primitive.str.html">str</a>,·value:·<a·class="primitive"·href="../../std/primitive.f64.html">f64</a>,·noise:·<a·class="primitive"·href="../../std/primitive.f64.html">f64</a>)</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span></summary><div·class="docblock"><p>Insert·a·named·<code>value</code>·(+/-·<code>noise</code>)·metric·into·the·map.·The·value
2 must·be·non-negative.·The·<code>noise</code>·indicates·the·uncertainty·of·the2 must·be·non-negative.·The·<code>noise</code>·indicates·the·uncertainty·of·the
3 metric,·which·doubles·as·the·“noise·range”·of·acceptable3 metric,·which·doubles·as·the·“noise·range”·of·acceptable
4 pairwise-regressions·on·this·named·value,·when·comparing·from·one4 pairwise-regressions·on·this·named·value,·when·comparing·from·one
5 metric·to·the·next·using·<code>compare_to_old</code>.</p>5 metric·to·the·next·using·<code>compare_to_old</code>.</p>
6 <p>If·<code>noise</code>·is·positive,·then·it·means·this·metric·is·of·a·value6 <p>If·<code>noise</code>·is·positive,·then·it·means·this·metric·is·of·a·value
7 you·want·to·see·grow·smaller,·so·a·change·larger·than·<code>noise</code>·in·the7 you·want·to·see·grow·smaller,·so·a·change·larger·than·<code>noise</code>·in·the
8 positive·direction·represents·a·regression.</p>8 positive·direction·represents·a·regression.</p>
9 <p>If·<code>noise</code>·is·negative,·then·it·means·this·metric·is·of·a·value9 <p>If·<code>noise</code>·is·negative,·then·it·means·this·metric·is·of·a·value
10 you·want·to·see·grow·larger,·so·a·change·larger·than·<code>noise</code>·in·the10 you·want·to·see·grow·larger,·so·a·change·larger·than·<code>noise</code>·in·the
11 negative·direction·represents·a·regression.</p>11 negative·direction·represents·a·regression.</p>
12 </div></details><section·id="method.fmt_metrics"·class="method"><a·class="src·rightside"·href="../../src/test/helpers/metrics.rs.html#43-50">Source</a><h4·class="code-header">pub·fn·<a·href="#method.fmt_metrics"·class="fn">fmt_metrics</a>(&amp;self)·-&gt;·<a·class="struct"·href="../../alloc/string/struct.String.html"·title="struct·alloc::string::String">String</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-MetricMap"·class="impl"><a·class="src·rightside"·href="../../src/test/helpers/metrics.rs.html#17">Source</a><a·href="#impl-Clone-for-MetricMap"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struct"·href="struct.MetricMap.html"·title="struct·test::test::MetricMap">MetricMap</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/test/helpers/metrics.rs.html#17">Source</a><a·href="#method.clone"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/clone/trait.Clone.html#tymethod.clone"·class="fn">clone</a>(&amp;self)·-&gt;·<a·class="struct"·href="struct.MetricMap.html"·title="struct·test::test::MetricMap">MetricMap</a></h4></section></summary><div·class='docblock'>Returns·a·copy·of·the·value.·<a·href="../../core/clone/trait.Clone.html#tymethod.clone">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_from"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/clone.rs.html#174">Source</a></span><a·href="#method.clone_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/clone/trait.Clone.html#method.clone_from"·class="fn">clone_from</a>(&amp;mut·self,·source:·&amp;Self)</h4></section></summary><div·class='docblock'>Performs·copy-assignment·from·<code>source</code>.·<a·href="../../core/clone/trait.Clone.html#method.clone_from">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-PartialEq-for-MetricMap"·class="impl"><a·class="src·rightside"·href="../../src/test/helpers/metrics.rs.html#17">Source</a><a·href="#impl-PartialEq-for-MetricMap"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/cmp/trait.PartialEq.html"·title="trait·core::cmp::PartialEq">PartialEq</a>·for·<a·class="struct"·href="struct.MetricMap.html"·title="struct·test::test::MetricMap">MetricMap</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.eq"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/test/helpers/metrics.rs.html#17">Source</a><a·href="#method.eq"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/cmp/trait.PartialEq.html#tymethod.eq"·class="fn">eq</a>(&amp;self,·other:·&amp;<a·class="struct"·href="struct.MetricMap.html"·title="struct·test::test::MetricMap">MetricMap</a>)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>self</code>·and·<code>other</code>·values·to·be·equal,·and·is·used·by·<code>==</code>.</div></details><details·class="toggle·me[·...·truncated·by·diffoscope;·len:·575,·SHA:·24e5a6b6f07d6dccde1f4f31a2d320251328cc5b8476dbf860d00dba4bc89363·...·]/std/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>!=</code>.·The·default·implementation·is·almost·always·sufficient,12 </div></details><section·id="method.fmt_metrics"·class="method"><a·class="src·rightside"·href="../../src/test/helpers/metrics.rs.html#43-50">Source</a><h4·class="code-header">pub·fn·<a·href="#method.fmt_metrics"·class="fn">fmt_metrics</a>(&amp;self)·-&gt;·<a·class="struct"·href="../../alloc/string/struct.String.html"·title="struct·alloc::string::String">String</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-MetricMap"·class="impl"><a·class="src·rightside"·href="../../src/test/helpers/metrics.rs.html#17">Source</a><a·href="#impl-Clone-for-MetricMap"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struct"·href="struct.MetricMap.html"·title="struct·test::test::MetricMap">MetricMap</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/test/helpers/metrics.rs.html#17">Source</a><a·href="#method.clone"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/clone/trait.Clone.html#tymethod.clone"·class="fn">clone</a>(&amp;self)·-&gt;·<a·class="struct"·href="struct.MetricMap.html"·title="struct·test::test::MetricMap">MetricMap</a></h4></section></summary><div·class='docblock'>Returns·a·copy·of·the·value.·<a·href="../../core/clone/trait.Clone.html#tymethod.clone">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_from"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/clone.rs.html#174">Source</a></span><a·href="#method.clone_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/clone/trait.Clone.html#method.clone_from"·class="fn">clone_from</a>(&amp;mut·self,·source:·&amp;Self)</h4></section></summary><div·class='docblock'>Performs·copy-assignment·from·<code>source</code>.·<a·href="../../core/clone/trait.Clone.html#method.clone_from">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-PartialEq-for-MetricMap"·class="impl"><a·class="src·rightside"·href="../../src/test/helpers/metrics.rs.html#17">Source</a><a·href="#impl-PartialEq-for-MetricMap"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/cmp/trait.PartialEq.html"·title="trait·core::cmp::PartialEq">PartialEq</a>·for·<a·class="struct"·href="struct.MetricMap.html"·title="struct·test::test::MetricMap">MetricMap</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.eq"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/test/helpers/metrics.rs.html#17">Source</a><a·href="#method.eq"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/cmp/trait.PartialEq.html#tymethod.eq"·class="fn">eq</a>(&amp;self,·other:·&amp;<a·class="struct"·href="struct.MetricMap.html"·title="struct·test::test::MetricMap">MetricMap</a>)·-&gt;·<a·class="primitive"·href="../../std/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>self</code>·and·<code>other</code>·values·to·be·equal,·and·is·used·by·<code>==</code>.</div></details><details·class="toggle·method-toggle"·open><summary>[·...·truncated·by·diffoscope;·len:·494,·SHA:·db76c2d93beea7efa856fa6578fe817b3591880dfa224bd5e9c9e64062908aa1·...·]/std/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>!=</code>.·The·default·implementation·is·almost·always·sufficient,
13 and·should·not·be·overridden·without·very·good·reason.</div></details></div></details><section·id="impl-StructuralPartialEq-for-MetricMap"·class="impl"><a·class="src·rightside"·href="../../src/test/helpers/metrics.rs.html#17">Source</a><a·href="#impl-StructuralPartialEq-for-MetricMap"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.StructuralPartialEq.html"·title="trait·core::marker::StructuralPartialEq">StructuralPartialEq</a>·for·<a·class="struct"·href="struct.MetricMap.html"·title="struct·test::test::MetricMap">MetricMap</a></h3></section></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-MetricMap"·class="impl"><a·href="#impl-Freeze-for-MetricMap"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="struct"·href="struct.MetricMap.html"·title="struct·test::test::MetricMap">MetricMap</a></h3></section><section·id="impl-RefUnwindSafe-for-MetricMap"·class="impl"><a·href="#impl-RefUnwindSafe-for-MetricMap"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="struct"·href="struct.MetricMap.html"·title="struct·test::test::MetricMap">MetricMap</a></h3></section><section·id="impl-Send-for-MetricMap"·class="impl"><a·href="#impl-Send-for-MetricMap"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="struct"·href="struct.MetricMap.html"·title="struct·test::test::MetricMap">MetricMap</a></h3></section><section·id="impl-Sync-for-MetricMap"·class="impl"><a·href="#impl-Sync-for-MetricMap"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="struct"·href="struct.MetricMap.html"·title="struct·test::test::MetricMap">MetricMap</a></h3></section><section·id="impl-Unpin-for-MetricMap"·class="impl"><a·href="#impl-Unpin-for-MetricMap"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="struct"·href="struct.MetricMap.html"·title="struct·test::test::MetricMap">MetricMap</a></h3></section><section·id="impl-UnwindSafe-for-MetricMap"·class="impl"><a·href="#impl-UnwindSafe-for-MetricMap"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="struct"·href="struct.MetricMap.html"·title="struct·test::test::MetricMap">MetricMap</a></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementations<a·href="#blanket-implementations"·class="anchor">§</a></h2><div·id="blanket-implementations-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-Any-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/any.rs.html#138">Source</a><a·href="#impl-Any-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where13 and·should·not·be·overridden·without·very·good·reason.</div></details></div></details><section·id="impl-StructuralPartialEq-for-MetricMap"·class="impl"><a·class="src·rightside"·href="../../src/test/helpers/metrics.rs.html#17">Source</a><a·href="#impl-StructuralPartialEq-for-MetricMap"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.StructuralPartialEq.html"·title="trait·core::marker::StructuralPartialEq">StructuralPartialEq</a>·for·<a·class="struct"·href="struct.MetricMap.html"·title="struct·test::test::MetricMap">MetricMap</a></h3></section></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-MetricMap"·class="impl"><a·href="#impl-Freeze-for-MetricMap"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="struct"·href="struct.MetricMap.html"·title="struct·test::test::MetricMap">MetricMap</a></h3></section><section·id="impl-RefUnwindSafe-for-MetricMap"·class="impl"><a·href="#impl-RefUnwindSafe-for-MetricMap"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="struct"·href="struct.MetricMap.html"·title="struct·test::test::MetricMap">MetricMap</a></h3></section><section·id="impl-Send-for-MetricMap"·class="impl"><a·href="#impl-Send-for-MetricMap"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="struct"·href="struct.MetricMap.html"·title="struct·test::test::MetricMap">MetricMap</a></h3></section><section·id="impl-Sync-for-MetricMap"·class="impl"><a·href="#impl-Sync-for-MetricMap"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="struct"·href="struct.MetricMap.html"·title="struct·test::test::MetricMap">MetricMap</a></h3></section><section·id="impl-Unpin-for-MetricMap"·class="impl"><a·href="#impl-Unpin-for-MetricMap"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="struct"·href="struct.MetricMap.html"·title="struct·test::test::MetricMap">MetricMap</a></h3></section><section·id="impl-UnwindSafe-for-MetricMap"·class="impl"><a·href="#impl-UnwindSafe-for-MetricMap"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="struct"·href="struct.MetricMap.html"·title="struct·test::test::MetricMap">MetricMap</a></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementations<a·href="#blanket-implementations"·class="anchor">§</a></h2><div·id="blanket-implementations-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-Any-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/any.rs.html#138">Source</a><a·href="#impl-Any-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where
14 ····T:·'static·+·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/any.rs.html#139">Source</a><a·href="#method.type_id"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/any/trait.Any.html#tymethod.type_id"·class="fn">type_id</a>(&amp;self)·-&gt;·<a·class="struct"·href="../../core/any/struct.TypeId.html"·title="struct·core::any::TypeId">TypeId</a></h4></section></summary><div·class='docblock'>Gets·the·<code>TypeId</code>·of·<code>self</code>.·<a·href="../../core/any/trait.Any.html#tymethod.type_id">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Borrow%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/borrow/trait.Borrow.html"·title="trait·core::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where14 ····T:·'static·+·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/any.rs.html#139">Source</a><a·href="#method.type_id"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/any/trait.Any.html#tymethod.type_id"·class="fn">type_id</a>(&amp;self)·-&gt;·<a·class="struct"·href="../../core/any/struct.TypeId.html"·title="struct·core::any::TypeId">TypeId</a></h4></section></summary><div·class='docblock'>Gets·the·<code>TypeId</code>·of·<code>self</code>.·<a·href="../../core/any/trait.Any.html#tymethod.type_id">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Borrow%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/borrow/trait.Borrow.html"·title="trait·core::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where
15 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#211">Source</a><a·href="#method.borrow"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/borrow/trait.Borrow.html#tymethod.borrow"·class="fn">borrow</a>(&amp;self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;T</a></h4></section></summary><div·class='docblock'>Immutably·borrows·from·an·owned·value.·<a·href="../../core/borrow/trait.Borrow.html#tymethod.borrow">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-BorrowMut%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/borrow/trait.BorrowMut.html"·title="trait·core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where15 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#211">Source</a><a·href="#method.borrow"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/borrow/trait.Borrow.html#tymethod.borrow"·class="fn">borrow</a>(&amp;self)·-&gt;·<a·class="primitive"·href="../../std/primitive.reference.html">&amp;T</a></h4></section></summary><div·class='docblock'>Immutably·borrows·from·an·owned·value.·<a·href="../../core/borrow/trait.Borrow.html#tymethod.borrow">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-BorrowMut%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/borrow/trait.BorrowMut.html"·title="trait·core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where
16 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#218">Source</a><a·href="#method.borrow_mut"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"·class="fn">borrow_mut</a>(&amp;mut·self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;mut·T</a></h4></section></summary><div·class='docblock'>Mutably·borrows·from·an·owned·value.·<a·href="../../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-CloneToUninit-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/clone.rs.html#273">Source</a><a·href="#impl-CloneToUninit-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where16 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#218">Source</a><a·href="#method.borrow_mut"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"·class="fn">borrow_mut</a>(&amp;mut·self)·-&gt;·<a·class="primitive"·href="../../std/primitive.reference.html">&amp;mut·T</a></h4></section></summary><div·class='docblock'>Mutably·borrows·from·an·owned·value.·<a·href="../../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-CloneToUninit-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/clone.rs.html#273">Source</a><a·href="#impl-CloneToUninit-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where
17 ····T:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/clone.rs.html#275">Source</a><a·href="#method.clone_to_uninit"·class="anchor">§</a><h4·class="code-header">unsafe·fn·<a·href="../../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit"·class="fn">clone_to_uninit</a>(&amp;self,·dst:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.pointer.html">*mut·</a><a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.u8.html">u8</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>clone_to_uninit</code>)</span></div></span><div·class='docblock'>Performs·copy-assignment·from·<code>self</code>·to·<code>dst</code>.·<a·href="../../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-From%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#765">Source</a><a·href="#impl-From%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·T</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#768">Source</a><a·href="#method.from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>17 ····T:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/clone.rs.html#275">Source</a><a·href="#method.clone_to_uninit"·class="anchor">§</a><h4·class="code-header">unsafe·fn·<a·href="../../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit"·class="fn">clone_to_uninit</a>(&amp;self,·dst:·<a·class="primitive"·href="../../std/primitive.pointer.html">*mut·</a><a·class="primitive"·href="../../std/primitive.u8.html">u8</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>clone_to_uninit</code>)</span></div></span><div·class='docblock'>Performs·copy-assignment·from·<code>self</code>·to·<code>dst</code>.·<a·href="../../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-From%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#765">Source</a><a·href="#impl-From%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·T</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#768">Source</a><a·href="#method.from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>
18 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where18 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where
19 ····U:·<a·class="trait"·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#758">Source</a><a·href="#method.into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>19 ····U:·<a·class="trait"·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#758">Source</a><a·href="#method.into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>
20 <p>That·is,·this·conversion·is·whatever·the·implementation·of20 <p>That·is,·this·conversion·is·whatever·the·implementation·of
21 <code><a·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>21 <code><a·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>
22 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#82-84">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../alloc/borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where22 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#82-84">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../alloc/borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where
23 ····T:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#86">Source</a><a·href="#associatedtype.Owned"·class="anchor">§</a><h4·class="code-header">type·<a·href="../../alloc/borrow/trait.ToOwned.html#associatedtype.Owned"·class="associatedtype">Owned</a>·=·T</h4></section></summary><div·class='docblock'>The·resulting·type·after·obtaining·ownership.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.to_owned"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#87">Source</a><a·href="#method.to_owned"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../alloc/borrow/trait.ToOwned.html#tymethod.to_owned"·class="fn">to_owned</a>(&amp;self)·-&gt;·T</h4></section></summary><div·class='docblock'>Creates·owned·data·from·borrowed·data,·usually·by·cloning.·<a·href="../../alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#91">Source</a><a·href="#method.clone_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../alloc/borrow/trait.ToOwned.html#method.clone_into"·class="fn">clone_into</a>(&amp;self,·target:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../../alloc/borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#805-807">Source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where23 ····T:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#86">Source</a><a·href="#associatedtype.Owned"·class="anchor">§</a><h4·class="code-header">type·<a·href="../../alloc/borrow/trait.ToOwned.html#associatedtype.Owned"·class="associatedtype">Owned</a>·=·T</h4></section></summary><div·class='docblock'>The·resulting·type·after·obtaining·ownership.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.to_owned"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#87">Source</a><a·href="#method.to_owned"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../alloc/borrow/trait.ToOwned.html#tymethod.to_owned"·class="fn">to_owned</a>(&amp;self)·-&gt;·T</h4></section></summary><div·class='docblock'>Creates·owned·data·from·borrowed·data,·usually·by·cloning.·<a·href="../../alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#91">Source</a><a·href="#method.clone_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../alloc/borrow/trait.ToOwned.html#method.clone_into"·class="fn">clone_into</a>(&amp;self,·target:·<a·class="primitive"·href="../../std/primitive.reference.html">&amp;mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../../alloc/borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#805-807">Source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where
24 ····U:·<a·class="trait"·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#809">Source</a><a·href="#associatedtype.Error-1"·class="anchor">§</a><h4·class="code-header">type·<a·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<a·class="enum"·href="../../core/convert/enum.Infallible.html"·title="enum·core::convert::Infallible">Infallible</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_from"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#812">Source</a><a·href="#method.try_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.TryFrom.html#tymethod.try_from"·class="fn">try_from</a>(value:·U)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;T,·&lt;T·as·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;&gt;::<a·class="associatedtype"·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryInto%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#790-792">Source</a><a·href="#impl-TryInto%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where24 ····U:·<a·class="trait"·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#809">Source</a><a·href="#associatedtype.Error-1"·class="anchor">§</a><h4·class="code-header">type·<a·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<a·class="enum"·href="../../core/convert/enum.Infallible.html"·title="enum·core::convert::Infallible">Infallible</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_from"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#812">Source</a><a·href="#method.try_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.TryFrom.html#tymethod.try_from"·class="fn">try_from</a>(value:·U)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;T,·&lt;T·as·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;&gt;::<a·class="associatedtype"·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryInto%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#790-792">Source</a><a·href="#impl-TryInto%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where
25 ····U:·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#794">Source</a><a·href="#associatedtype.Error"·class="anchor">§</a><h4·class="code-header">type·<a·href="../../core/convert/trait.TryInto.html#associatedtype.Error"·class="associatedtype">Error</a>·=·&lt;U·as·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#797">Source</a><a·href="#method.try_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.TryInto.html#tymethod.try_into"·class="fn">try_into</a>(self)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;U,·&lt;U·as·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>25 ····U:·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#794">Source</a><a·href="#associatedtype.Error"·class="anchor">§</a><h4·class="code-header">type·<a·href="../../core/convert/trait.TryInto.html#associatedtype.Error"·class="associatedtype">Error</a>·=·&lt;U·as·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#797">Source</a><a·href="#method.try_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.TryInto.html#tymethod.try_into"·class="fn">try_into</a>(self)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;U,·&lt;U·as·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>
45.6 KB
./usr/share/doc/rust-doc/html/test/test/struct.Options.html
    
Offset 1, 18 lines modifiedOffset 1, 18 lines modified
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="Options·for·the·test·run·defined·by·the·caller·(instead·of·CLI·arguments).·In·case·we·want·to·add·other·options·as·well,·just·add·them·in·this·struct."><title>Options·in·test::test·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="test"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../test/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../test/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../test/index.html">test</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»     2025-01-07)»  (built»    from»a»       source» tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Options</a></h2><h3><a·href="#fields">Fields</a></h3><ul·class="block·structfield"><li><a·href="#structfield.display_output"·title="display_output">display_output</a></li><li><a·href="#structfield.panic_abort"·title="panic_abort">panic_abort</a></li></ul><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.display_output"·title="display_output">display_output</a></li><li><a·href="#method.new"·title="new">new</a></li><li><a·href="#method.panic_abort"·title="panic_abort">panic_abort</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-Options"·title="Clone">Clone</a></li><li><a·href="#impl-Copy-for-Options"·title="Copy">Copy</a></li><li><a·href="#impl-Debug-for-Options"·title="Debug">Debug</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-Options"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Options"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Options"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-Options"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-Options"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Options"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·test::<wbr>test</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">test</a>::<wbr><a·href="index.html">test</a></span><h1>Struct·<span·class="struct">Options</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/test/options.rs.html#65-68">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·Options·{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="Options·for·the·test·run·defined·by·the·caller·(instead·of·CLI·arguments).·In·case·we·want·to·add·other·options·as·well,·just·add·them·in·this·struct."><title>Options·in·test::test·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="test"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../test/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../test/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../test/index.html">test</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»     2025-01-07)»  (built»    from»a»       source» tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Options</a></h2><h3><a·href="#fields">Fields</a></h3><ul·class="block·structfield"><li><a·href="#structfield.display_output"·title="display_output">display_output</a></li><li><a·href="#structfield.panic_abort"·title="panic_abort">panic_abort</a></li></ul><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.display_output"·title="display_output">display_output</a></li><li><a·href="#method.new"·title="new">new</a></li><li><a·href="#method.panic_abort"·title="panic_abort">panic_abort</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-Options"·title="Clone">Clone</a></li><li><a·href="#impl-Copy-for-Options"·title="Copy">Copy</a></li><li><a·href="#impl-Debug-for-Options"·title="Debug">Debug</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-Options"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Options"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Options"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-Options"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-Options"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Options"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·test::<wbr>test</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">test</a>::<wbr><a·href="index.html">test</a></span><h1>Struct·<span·class="struct">Options</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/test/options.rs.html#65-68">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·Options·{
2 ····pub·display_output:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>,2 ····pub·display_output:·<a·class="primitive"·href="../../std/primitive.bool.html">bool</a>,
3 ····pub·panic_abort:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>,3 ····pub·panic_abort:·<a·class="primitive"·href="../../std/primitive.bool.html">bool</a>,
4 }</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Options·for·the·test·run·defined·by·the·caller·(instead·of·CLI·arguments).4 }</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Options·for·the·test·run·defined·by·the·caller·(instead·of·CLI·arguments).
5 In·case·we·want·to·add·other·options·as·well,·just·add·them·in·this·struct.</p>5 In·case·we·want·to·add·other·options·as·well,·just·add·them·in·this·struct.</p>
6 </div></details><h2·id="fields"·class="fields·section-header">Fields<a·href="#fields"·class="anchor">§</a></h2><span·id="structfield.display_output"·class="structfield·section-header"><a·href="#structfield.display_output"·class="anchor·field">§</a><code>display_output:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a></code></span><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><span·id="s[·...·truncated·by·diffoscope;·len:·2328,·SHA:·719215f204f6ef487e73a6675a00ddfadaddc7186c16302600c88fc180d28310·...·]/std/primitive.bool.html">bool</a>)·-&gt;·<a·class="struct"·href="struct.Options.html"·title="struct·test::test::Options">Options</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-Options"·class="impl"><a·class="src·rightside"·href="../../src/test/options.rs.html#64">Source</a><a·href="#impl-Clone-for-Options"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struct"·href="struct.Options.html"·title="struct·test::test::Options">Options</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/test/options.rs.html#64">Source</a><a·href="#method.clone"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/clone/trait.Clone.html#tymethod.clone"·class="fn">clone</a>(&amp;self)·-&gt;·<a·class="struct"·href="struct.Options.html"·title="struct·test::test::Options">Options</a></h4></section></summary><div·class='docblock'>Returns·a·copy·of·the·value.·<a·href="../../core/clone/trait.Clone.html#tymethod.clone">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_from"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/clone.rs.html#174">Source</a></span><a·href="#method.clone_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/clone/trait.Clone.html#method.clone_from"·class="fn">clone_from</a>(&amp;mut·self,·source:·&amp;Self)</h4></section></summary><div·class='docblock'>Performs·copy-assignment·from·<code>source</code>.·<a·href="../../core/clone/trait.Clone.html#method.clone_from">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-Options"·class="impl"><a·class="src·rightside"·href="../../src/test/options.rs.html#64">Source</a><a·href="#impl-Debug-for-Options"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/fmt/trait.Debug.html"·title="trait·core::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.Options.html"·title="struct·test::test::Options">Options</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/test/options.rs.html#64">Source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="../../core/fmt/struct.Formatter.html"·title="struct·core::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="type"·href="../../core/fmt/type.Result.html"·title="type·core::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../../core/fmt/trait.Debug.html#tymethod.fmt">Read·more</a></div></details></div></details><section·id="impl-Copy-for-Options"·class="impl"><a·class="src·rightside"·href="../../src/test/options.rs.html#64">Source</a><a·href="#impl-Copy-for-Options"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Copy.html"·title="trait·core::marker::Copy">Copy</a>·for·<a·class="struct"·href="struct.Options.html"·title="struct·test::test::Options">Options</a></h3></section></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-Options"·class="impl"><a·href="#impl-Freeze-for-Options"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="struct"·href="struct.Options.html"·title="struct·test::test::Options">Options</a></h3></section><section·id="impl-RefUnwindSafe-for-Options"·class="impl"><a·href="#impl-RefUnwindSafe-for-Options"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="struct"·href="struct.Options.html"·title="struct·test::test::Options">Options</a></h3></section><section·id="impl-Send-for-Options"·class="impl"><a·href="#impl-Send-for-Options"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="struct"·href="struct.Options.html"·title="struct·test::test::Options">Options</a></h3></section><section·id="impl-Sync-for-Options"·class="impl"><a·href="#impl-Sync-for-Options"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="struct"·href="struct.Options.html"·title="struct·test::test::Options">Options</a></h3></section><section·id="impl-Unpin-for-Options"·class="impl"><a·href="#impl-Unpin-for-Options"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="struct"·href="struct.Options.html"·title="struct·test::test::Options">Options</a></h3></section><section·id="impl-UnwindSafe-for-Options"·class="impl"><a·href="#impl-UnwindSafe-for-Options"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="struct"·href="struct.Options.html"·title="struct·test::test::Options">Options</a></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementations<a·href="#blanket-implementations"·class="anchor">§</a></h2><div·id="blanket-implementations-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-Any-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/any.rs.html#138">Source</a><a·href="#impl-Any-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where6 </div></details><h2·id="fields"·class="fields·section-header">Fields<a·href="#fields"·class="anchor">§</a></h2><span·id="structfield.display_output"·class="structfield·section-header"><a·href="#structfield.display_output"·class="anchor·field">§</a><code>display_output:·<a·class="primitive"·href="../../std/primitive.bool.html">bool</a></code></span><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><span·id="structfield.panic_abort"·cla[·...·truncated·by·diffoscope;·len:·2220,·SHA:·84eb3c9bda537ae75b93420ef35b42d518c4e699d08ac08f8b13b40e6a09547f·...·]/std/primitive.bool.html">bool</a>)·-&gt;·<a·class="struct"·href="struct.Options.html"·title="struct·test::test::Options">Options</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-Options"·class="impl"><a·class="src·rightside"·href="../../src/test/options.rs.html#64">Source</a><a·href="#impl-Clone-for-Options"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struct"·href="struct.Options.html"·title="struct·test::test::Options">Options</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/test/options.rs.html#64">Source</a><a·href="#method.clone"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/clone/trait.Clone.html#tymethod.clone"·class="fn">clone</a>(&amp;self)·-&gt;·<a·class="struct"·href="struct.Options.html"·title="struct·test::test::Options">Options</a></h4></section></summary><div·class='docblock'>Returns·a·copy·of·the·value.·<a·href="../../core/clone/trait.Clone.html#tymethod.clone">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_from"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/clone.rs.html#174">Source</a></span><a·href="#method.clone_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/clone/trait.Clone.html#method.clone_from"·class="fn">clone_from</a>(&amp;mut·self,·source:·&amp;Self)</h4></section></summary><div·class='docblock'>Performs·copy-assignment·from·<code>source</code>.·<a·href="../../core/clone/trait.Clone.html#method.clone_from">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-Options"·class="impl"><a·class="src·rightside"·href="../../src/test/options.rs.html#64">Source</a><a·href="#impl-Debug-for-Options"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/fmt/trait.Debug.html"·title="trait·core::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.Options.html"·title="struct·test::test::Options">Options</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/test/options.rs.html#64">Source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="../../core/fmt/struct.Formatter.html"·title="struct·core::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="type"·href="../../core/fmt/type.Result.html"·title="type·core::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../../core/fmt/trait.Debug.html#tymethod.fmt">Read·more</a></div></details></div></details><section·id="impl-Copy-for-Options"·class="impl"><a·class="src·rightside"·href="../../src/test/options.rs.html#64">Source</a><a·href="#impl-Copy-for-Options"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Copy.html"·title="trait·core::marker::Copy">Copy</a>·for·<a·class="struct"·href="struct.Options.html"·title="struct·test::test::Options">Options</a></h3></section></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-Options"·class="impl"><a·href="#impl-Freeze-for-Options"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="struct"·href="struct.Options.html"·title="struct·test::test::Options">Options</a></h3></section><section·id="impl-RefUnwindSafe-for-Options"·class="impl"><a·href="#impl-RefUnwindSafe-for-Options"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="struct"·href="struct.Options.html"·title="struct·test::test::Options">Options</a></h3></section><section·id="impl-Send-for-Options"·class="impl"><a·href="#impl-Send-for-Options"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="struct"·href="struct.Options.html"·title="struct·test::test::Options">Options</a></h3></section><section·id="impl-Sync-for-Options"·class="impl"><a·href="#impl-Sync-for-Options"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="struct"·href="struct.Options.html"·title="struct·test::test::Options">Options</a></h3></section><section·id="impl-Unpin-for-Options"·class="impl"><a·href="#impl-Unpin-for-Options"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="struct"·href="struct.Options.html"·title="struct·test::test::Options">Options</a></h3></section><section·id="impl-UnwindSafe-for-Options"·class="impl"><a·href="#impl-UnwindSafe-for-Options"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="struct"·href="struct.Options.html"·title="struct·test::test::Options">Options</a></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementations<a·href="#blanket-implementations"·class="anchor">§</a></h2><div·id="blanket-implementations-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-Any-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/any.rs.html#138">Source</a><a·href="#impl-Any-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where
7 ····T:·'static·+·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/any.rs.html#139">Source</a><a·href="#method.type_id"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/any/trait.Any.html#tymethod.type_id"·class="fn">type_id</a>(&amp;self)·-&gt;·<a·class="struct"·href="../../core/any/struct.TypeId.html"·title="struct·core::any::TypeId">TypeId</a></h4></section></summary><div·class='docblock'>Gets·the·<code>TypeId</code>·of·<code>self</code>.·<a·href="../../core/any/trait.Any.html#tymethod.type_id">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Borrow%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/borrow/trait.Borrow.html"·title="trait·core::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where7 ····T:·'static·+·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/any.rs.html#139">Source</a><a·href="#method.type_id"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/any/trait.Any.html#tymethod.type_id"·class="fn">type_id</a>(&amp;self)·-&gt;·<a·class="struct"·href="../../core/any/struct.TypeId.html"·title="struct·core::any::TypeId">TypeId</a></h4></section></summary><div·class='docblock'>Gets·the·<code>TypeId</code>·of·<code>self</code>.·<a·href="../../core/any/trait.Any.html#tymethod.type_id">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Borrow%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/borrow/trait.Borrow.html"·title="trait·core::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where
8 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#211">Source</a><a·href="#method.borrow"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/borrow/trait.Borrow.html#tymethod.borrow"·class="fn">borrow</a>(&amp;self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;T</a></h4></section></summary><div·class='docblock'>Immutably·borrows·from·an·owned·value.·<a·href="../../core/borrow/trait.Borrow.html#tymethod.borrow">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-BorrowMut%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/borrow/trait.BorrowMut.html"·title="trait·core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where8 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#211">Source</a><a·href="#method.borrow"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/borrow/trait.Borrow.html#tymethod.borrow"·class="fn">borrow</a>(&amp;self)·-&gt;·<a·class="primitive"·href="../../std/primitive.reference.html">&amp;T</a></h4></section></summary><div·class='docblock'>Immutably·borrows·from·an·owned·value.·<a·href="../../core/borrow/trait.Borrow.html#tymethod.borrow">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-BorrowMut%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/borrow/trait.BorrowMut.html"·title="trait·core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where
9 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#218">Source</a><a·href="#method.borrow_mut"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"·class="fn">borrow_mut</a>(&amp;mut·self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;mut·T</a></h4></section></summary><div·class='docblock'>Mutably·borrows·from·an·owned·value.·<a·href="../../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-CloneToUninit-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/clone.rs.html#273">Source</a><a·href="#impl-CloneToUninit-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where9 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#218">Source</a><a·href="#method.borrow_mut"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"·class="fn">borrow_mut</a>(&amp;mut·self)·-&gt;·<a·class="primitive"·href="../../std/primitive.reference.html">&amp;mut·T</a></h4></section></summary><div·class='docblock'>Mutably·borrows·from·an·owned·value.·<a·href="../../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-CloneToUninit-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/clone.rs.html#273">Source</a><a·href="#impl-CloneToUninit-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where
10 ····T:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/clone.rs.html#275">Source</a><a·href="#method.clone_to_uninit"·class="anchor">§</a><h4·class="code-header">unsafe·fn·<a·href="../../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit"·class="fn">clone_to_uninit</a>(&amp;self,·dst:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.pointer.html">*mut·</a><a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.u8.html">u8</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>clone_to_uninit</code>)</span></div></span><div·class='docblock'>Performs·copy-assignment·from·<code>self</code>·to·<code>dst</code>.·<a·href="../../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-From%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#765">Source</a><a·href="#impl-From%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·T</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#768">Source</a><a·href="#method.from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>10 ····T:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/clone.rs.html#275">Source</a><a·href="#method.clone_to_uninit"·class="anchor">§</a><h4·class="code-header">unsafe·fn·<a·href="../../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit"·class="fn">clone_to_uninit</a>(&amp;self,·dst:·<a·class="primitive"·href="../../std/primitive.pointer.html">*mut·</a><a·class="primitive"·href="../../std/primitive.u8.html">u8</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>clone_to_uninit</code>)</span></div></span><div·class='docblock'>Performs·copy-assignment·from·<code>self</code>·to·<code>dst</code>.·<a·href="../../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-From%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#765">Source</a><a·href="#impl-From%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·T</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#768">Source</a><a·href="#method.from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>
11 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where11 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where
12 ····U:·<a·class="trait"·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#758">Source</a><a·href="#method.into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>12 ····U:·<a·class="trait"·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#758">Source</a><a·href="#method.into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>
13 <p>That·is,·this·conversion·is·whatever·the·implementation·of13 <p>That·is,·this·conversion·is·whatever·the·implementation·of
14 <code><a·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>14 <code><a·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>
15 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#82-84">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../alloc/borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where15 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#82-84">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../alloc/borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where
16 ····T:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#86">Source</a><a·href="#associatedtype.Owned"·class="anchor">§</a><h4·class="code-header">type·<a·href="../../alloc/borrow/trait.ToOwned.html#associatedtype.Owned"·class="associatedtype">Owned</a>·=·T</h4></section></summary><div·class='docblock'>The·resulting·type·after·obtaining·ownership.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.to_owned"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#87">Source</a><a·href="#method.to_owned"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../alloc/borrow/trait.ToOwned.html#tymethod.to_owned"·class="fn">to_owned</a>(&amp;self)·-&gt;·T</h4></section></summary><div·class='docblock'>Creates·owned·data·from·borrowed·data,·usually·by·cloning.·<a·href="../../alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#91">Source</a><a·href="#method.clone_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../alloc/borrow/trait.ToOwned.html#method.clone_into"·class="fn">clone_into</a>(&amp;self,·target:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../../alloc/borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#805-807">Source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where16 ····T:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#86">Source</a><a·href="#associatedtype.Owned"·class="anchor">§</a><h4·class="code-header">type·<a·href="../../alloc/borrow/trait.ToOwned.html#associatedtype.Owned"·class="associatedtype">Owned</a>·=·T</h4></section></summary><div·class='docblock'>The·resulting·type·after·obtaining·ownership.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.to_owned"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#87">Source</a><a·href="#method.to_owned"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../alloc/borrow/trait.ToOwned.html#tymethod.to_owned"·class="fn">to_owned</a>(&amp;self)·-&gt;·T</h4></section></summary><div·class='docblock'>Creates·owned·data·from·borrowed·data,·usually·by·cloning.·<a·href="../../alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#91">Source</a><a·href="#method.clone_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../alloc/borrow/trait.ToOwned.html#method.clone_into"·class="fn">clone_into</a>(&amp;self,·target:·<a·class="primitive"·href="../../std/primitive.reference.html">&amp;mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../../alloc/borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#805-807">Source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where
17 ····U:·<a·class="trait"·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#809">Source</a><a·href="#associatedtype.Error-1"·class="anchor">§</a><h4·class="code-header">type·<a·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<a·class="enum"·href="../../core/convert/enum.Infallible.html"·title="enum·core::convert::Infallible">Infallible</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_from"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#812">Source</a><a·href="#method.try_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.TryFrom.html#tymethod.try_from"·class="fn">try_from</a>(value:·U)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;T,·&lt;T·as·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;&gt;::<a·class="associatedtype"·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryInto%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#790-792">Source</a><a·href="#impl-TryInto%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where17 ····U:·<a·class="trait"·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#809">Source</a><a·href="#associatedtype.Error-1"·class="anchor">§</a><h4·class="code-header">type·<a·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<a·class="enum"·href="../../core/convert/enum.Infallible.html"·title="enum·core::convert::Infallible">Infallible</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_from"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#812">Source</a><a·href="#method.try_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.TryFrom.html#tymethod.try_from"·class="fn">try_from</a>(value:·U)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;T,·&lt;T·as·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;&gt;::<a·class="associatedtype"·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryInto%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#790-792">Source</a><a·href="#impl-TryInto%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where
18 ····U:·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#794">Source</a><a·href="#associatedtype.Error"·class="anchor">§</a><h4·class="code-header">type·<a·href="../../core/convert/trait.TryInto.html#associatedtype.Error"·class="associatedtype">Error</a>·=·&lt;U·as·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#797">Source</a><a·href="#method.try_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.TryInto.html#tymethod.try_into"·class="fn">try_into</a>(self)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;U,·&lt;U·as·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>18 ····U:·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#794">Source</a><a·href="#associatedtype.Error"·class="anchor">§</a><h4·class="code-header">type·<a·href="../../core/convert/trait.TryInto.html#associatedtype.Error"·class="associatedtype">Error</a>·=·&lt;U·as·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#797">Source</a><a·href="#method.try_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.TryInto.html#tymethod.try_into"·class="fn">try_into</a>(self)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;U,·&lt;U·as·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>
49.1 KB
./usr/share/doc/rust-doc/html/test/test/struct.TestDesc.html
    
Offset 1, 28 lines modifiedOffset 1, 28 lines modified
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="API·documentation·for·the·Rust·`TestDesc`·struct·in·crate·`test`."><title>TestDesc·in·test::test·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="test"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../test/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../test/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../test/index.html">test</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»      2025-01-07)»   (built»     from» a»source»  tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Test<wbr>Desc</a></h2><h3><a·href="#fields">Fields</a></h3><ul·class="block·structfield"><li><a·href="#structfield.compile_fail"·title="compile_fail">compile_fail</a></li><li><a·href="#structfield.end_col"·title="end_col">end_col</a></li><li><a·href="#structfield.end_line"·title="end_line">end_line</a></li><li><a·href="#structfield.ignore"·title="ignore">ignore</a></li><li><a·href="#structfield.ignore_message"·title="ignore_message">ignore_message</a></li><li><a·href="#structfield.name"·title="name">name</a></li><li><a·href="#structfield.no_run"·title="no_run">no_run</a></li><li><a·href="#structfield.should_panic"·title="should_panic">should_panic</a></li><li><a·href="#structfield.source_file"·title="source_file">source_file</a></li><li><a·href="#structfield.start_col"·title="start_col">start_col</a></li><li><a·href="#structfield.start_line"·title="start_line">start_line</a></li><li><a·href="#structfield.test_type"·title="test_type">test_type</a></li></ul><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.padded_name"·title="padded_name">padded_name</a></li><li><a·href="#method.test_mode"·title="test_mode">test_mode</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-TestDesc"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-TestDesc"·title="Debug">Debug</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-TestDesc"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-TestDesc"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-TestDesc"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-TestDesc"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-TestDesc"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-TestDesc"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·test::<wbr>test</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">test</a>::<wbr><a·href="index.html">test</a></span><h1>Struct·<span·class="struct">TestDesc</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/test/types.rs.html#197-210">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·TestDesc·{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="API·documentation·for·the·Rust·`TestDesc`·struct·in·crate·`test`."><title>TestDesc·in·test::test·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="test"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../test/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../test/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../test/index.html">test</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»      2025-01-07)»   (built»     from» a»source»  tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Test<wbr>Desc</a></h2><h3><a·href="#fields">Fields</a></h3><ul·class="block·structfield"><li><a·href="#structfield.compile_fail"·title="compile_fail">compile_fail</a></li><li><a·href="#structfield.end_col"·title="end_col">end_col</a></li><li><a·href="#structfield.end_line"·title="end_line">end_line</a></li><li><a·href="#structfield.ignore"·title="ignore">ignore</a></li><li><a·href="#structfield.ignore_message"·title="ignore_message">ignore_message</a></li><li><a·href="#structfield.name"·title="name">name</a></li><li><a·href="#structfield.no_run"·title="no_run">no_run</a></li><li><a·href="#structfield.should_panic"·title="should_panic">should_panic</a></li><li><a·href="#structfield.source_file"·title="source_file">source_file</a></li><li><a·href="#structfield.start_col"·title="start_col">start_col</a></li><li><a·href="#structfield.start_line"·title="start_line">start_line</a></li><li><a·href="#structfield.test_type"·title="test_type">test_type</a></li></ul><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.padded_name"·title="padded_name">padded_name</a></li><li><a·href="#method.test_mode"·title="test_mode">test_mode</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-TestDesc"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-TestDesc"·title="Debug">Debug</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-TestDesc"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-TestDesc"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-TestDesc"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-TestDesc"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-TestDesc"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-TestDesc"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·test::<wbr>test</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">test</a>::<wbr><a·href="index.html">test</a></span><h1>Struct·<span·class="struct">TestDesc</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/test/types.rs.html#197-210">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·TestDesc·{
2 ····pub·name:·<a·class="enum"·href="enum.TestName.html"·title="enum·test::test::TestName">TestName</a>,2 ····pub·name:·<a·class="enum"·href="enum.TestName.html"·title="enum·test::test::TestName">TestName</a>,
3 ····pub·ignore:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>,3 ····pub·ignore:·<a·class="primitive"·href="../../std/primitive.bool.html">bool</a>,
4 ····pub·ignore_message:·<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;&amp;'static·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.str.html">str</a>&gt;,4 ····pub·ignore_message:·<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;&amp;'static·<a·class="primitive"·href="../../std/primitive.str.html">str</a>&gt;,
5 ····pub·source_file:·&amp;'static·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.str.html">str</a>,5 ····pub·source_file:·&amp;'static·<a·class="primitive"·href="../../std/primitive.str.html">str</a>,
6 ····pub·start_line:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.usize.html">usize</a>,6 ····pub·start_line:·<a·class="primitive"·href="../../std/primitive.usize.html">usize</a>,
7 ····pub·start_col:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.usize.html">usize</a>,7 ····pub·start_col:·<a·class="primitive"·href="../../std/primitive.usize.html">usize</a>,
8 ····pub·end_line:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.usize.html">usize</a>,8 ····pub·end_line:·<a·class="primitive"·href="../../std/primitive.usize.html">usize</a>,
9 ····pub·end_col:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.usize.html">usize</a>,9 ····pub·end_col:·<a·class="primitive"·href="../../std/primitive.usize.html">usize</a>,
10 ····pub·should_panic:·<a·class="enum"·href="enum.ShouldPanic.html"·title="enum·test::test::ShouldPanic">ShouldPanic</a>,10 ····pub·should_panic:·<a·class="enum"·href="enum.ShouldPanic.html"·title="enum·test::test::ShouldPanic">ShouldPanic</a>,
11 ····pub·compile_fail:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>,11 ····pub·compile_fail:·<a·class="primitive"·href="../../std/primitive.bool.html">bool</a>,
12 ····pub·no_run:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>,12 ····pub·no_run:·<a·class="primitive"·href="../../std/primitive.bool.html">bool</a>,
13 ····pub·test_type:·<a·class="enum"·href="enum.TestType.html"·title="enum·test::test::TestType">TestType</a>,13 ····pub·test_type:·<a·class="enum"·href="enum.TestType.html"·title="enum·test::test::TestType">TestType</a>,
14 }</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><h2·id="fields"·class="fields·section-header">Fields<a·href="#fields"·class="anchor">§</a></h2><span·id="structfield.name"·class="structfield·section-header"><a·href="#structfield.name"·class="anchor·field">§</a><code>name:·<a·class="enum"·href="enum.TestName.html"·title="enum·test::test::TestName">TestName</a></code></span><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><span·id="structfield.ignore"·class="structfield·section-header"><a·href="#structfield.ignore"·class="anchor·field">§</a><code>ignore:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a></code></span><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><span·id="s[·...·truncated·by·diffoscope;·len:·6045,·SHA:·a084d14eeef9ab0de7ea057da4323fc5776669df561ddc5cb3571bd69079210e·...·]/std/primitive.str.html">str</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span></summary><div·class="docblock"><p>Returns·None·for·ignored·test·or·tests·that·are·just·run,·otherwise·returns·a·description·of·the·type·of·test.14 }</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><h2·id="fields"·class="fields·section-header">Fields<a·href="#fields"·class="anchor">§</a></h2><span·id="structfield.name"·class="structfield·section-header"><a·href="#structfield.name"·class="anchor·field">§</a><code>name:·<a·class="enum"·href="enum.TestName.html"·title="enum·test::test::TestName">TestName</a></code></span><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><span·id="structfield.ignore"·class="structfield·section-header"><a·href="#structfield.ignore"·class="anchor·field">§</a><code>ignore:·<a·class="primitive"·href="../../std/primitive.bool.html">bool</a></code></span><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><span·id="structfield.ignore_message"·[·...·truncated·by·diffoscope;·len:·5748,·SHA:·4065d788c0656c208be762aef99cc71fbbc54344ae4bdf8f1ced9bfe311b52c3·...·]/std/primitive.str.html">str</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span></summary><div·class="docblock"><p>Returns·None·for·ignored·test·or·tests·that·are·just·run,·otherwise·returns·a·description·of·the·type·of·test.
15 Descriptions·include·“should·panic”,·“compile·fail”·and·“compile”.</p>15 Descriptions·include·“should·panic”,·“compile·fail”·and·“compile”.</p>
16 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-TestDesc"·class="impl"><a·class="src·rightside"·href="../../src/test/types.rs.html#196">Source</a><a·href="#impl-Clone-for-TestDesc"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struct"·href="struct.TestDesc.html"·title="struct·test::test::TestDesc">TestDesc</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/test/types.rs.html#196">Source</a><a·href="#method.clone"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/clone/trait.Clone.html#tymethod.clone"·class="fn">clone</a>(&amp;self)·-&gt;·<a·class="struct"·href="struct.TestDesc.html"·title="struct·test::test::TestDesc">TestDesc</a></h4></section></summary><div·class='docblock'>Returns·a·copy·of·the·value.·<a·href="../../core/clone/trait.Clone.html#tymethod.clone">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_from"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/clone.rs.html#174">Source</a></span><a·href="#method.clone_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/clone/trait.Clone.html#method.clone_from"·class="fn">clone_from</a>(&amp;mut·self,·source:·&amp;Self)</h4></section></summary><div·class='docblock'>Performs·copy-assignment·from·<code>source</code>.·<a·href="../../core/clone/trait.Clone.html#method.clone_from">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-TestDesc"·class="impl"><a·class="src·rightside"·href="../../src/test/types.rs.html#196">Source</a><a·href="#impl-Debug-for-TestDesc"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/fmt/trait.Debug.html"·title="trait·core::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.TestDesc.html"·title="struct·test::test::TestDesc">TestDesc</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/test/types.rs.html#196">Source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="../../core/fmt/struct.Formatter.html"·title="struct·core::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="type"·href="../../core/fmt/type.Result.html"·title="type·core::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../../core/fmt/trait.Debug.html#tymethod.fmt">Read·more</a></div></details></div></details></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-TestDesc"·class="impl"><a·href="#impl-Freeze-for-TestDesc"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="struct"·href="struct.TestDesc.html"·title="struct·test::test::TestDesc">TestDesc</a></h3></section><section·id="impl-RefUnwindSafe-for-TestDesc"·class="impl"><a·href="#impl-RefUnwindSafe-for-TestDesc"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="struct"·href="struct.TestDesc.html"·title="struct·test::test::TestDesc">TestDesc</a></h3></section><section·id="impl-Send-for-TestDesc"·class="impl"><a·href="#impl-Send-for-TestDesc"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="struct"·href="struct.TestDesc.html"·title="struct·test::test::TestDesc">TestDesc</a></h3></section><section·id="impl-Sync-for-TestDesc"·class="impl"><a·href="#impl-Sync-for-TestDesc"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="struct"·href="struct.TestDesc.html"·title="struct·test::test::TestDesc">TestDesc</a></h3></section><section·id="impl-Unpin-for-TestDesc"·class="impl"><a·href="#impl-Unpin-for-TestDesc"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="struct"·href="struct.TestDesc.html"·title="struct·test::test::TestDesc">TestDesc</a></h3></section><section·id="impl-UnwindSafe-for-TestDesc"·class="impl"><a·href="#impl-UnwindSafe-for-TestDesc"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="struct"·href="struct.TestDesc.html"·title="struct·test::test::TestDesc">TestDesc</a></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementations<a·href="#blanket-implementations"·class="anchor">§</a></h2><div·id="blanket-implementations-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-Any-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/any.rs.html#138">Source</a><a·href="#impl-Any-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where16 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-TestDesc"·class="impl"><a·class="src·rightside"·href="../../src/test/types.rs.html#196">Source</a><a·href="#impl-Clone-for-TestDesc"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struct"·href="struct.TestDesc.html"·title="struct·test::test::TestDesc">TestDesc</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/test/types.rs.html#196">Source</a><a·href="#method.clone"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/clone/trait.Clone.html#tymethod.clone"·class="fn">clone</a>(&amp;self)·-&gt;·<a·class="struct"·href="struct.TestDesc.html"·title="struct·test::test::TestDesc">TestDesc</a></h4></section></summary><div·class='docblock'>Returns·a·copy·of·the·value.·<a·href="../../core/clone/trait.Clone.html#tymethod.clone">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_from"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/clone.rs.html#174">Source</a></span><a·href="#method.clone_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/clone/trait.Clone.html#method.clone_from"·class="fn">clone_from</a>(&amp;mut·self,·source:·&amp;Self)</h4></section></summary><div·class='docblock'>Performs·copy-assignment·from·<code>source</code>.·<a·href="../../core/clone/trait.Clone.html#method.clone_from">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-TestDesc"·class="impl"><a·class="src·rightside"·href="../../src/test/types.rs.html#196">Source</a><a·href="#impl-Debug-for-TestDesc"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/fmt/trait.Debug.html"·title="trait·core::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.TestDesc.html"·title="struct·test::test::TestDesc">TestDesc</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/test/types.rs.html#196">Source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="../../core/fmt/struct.Formatter.html"·title="struct·core::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="type"·href="../../core/fmt/type.Result.html"·title="type·core::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../../core/fmt/trait.Debug.html#tymethod.fmt">Read·more</a></div></details></div></details></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-TestDesc"·class="impl"><a·href="#impl-Freeze-for-TestDesc"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="struct"·href="struct.TestDesc.html"·title="struct·test::test::TestDesc">TestDesc</a></h3></section><section·id="impl-RefUnwindSafe-for-TestDesc"·class="impl"><a·href="#impl-RefUnwindSafe-for-TestDesc"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="struct"·href="struct.TestDesc.html"·title="struct·test::test::TestDesc">TestDesc</a></h3></section><section·id="impl-Send-for-TestDesc"·class="impl"><a·href="#impl-Send-for-TestDesc"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="struct"·href="struct.TestDesc.html"·title="struct·test::test::TestDesc">TestDesc</a></h3></section><section·id="impl-Sync-for-TestDesc"·class="impl"><a·href="#impl-Sync-for-TestDesc"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="struct"·href="struct.TestDesc.html"·title="struct·test::test::TestDesc">TestDesc</a></h3></section><section·id="impl-Unpin-for-TestDesc"·class="impl"><a·href="#impl-Unpin-for-TestDesc"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="struct"·href="struct.TestDesc.html"·title="struct·test::test::TestDesc">TestDesc</a></h3></section><section·id="impl-UnwindSafe-for-TestDesc"·class="impl"><a·href="#impl-UnwindSafe-for-TestDesc"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="struct"·href="struct.TestDesc.html"·title="struct·test::test::TestDesc">TestDesc</a></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementations<a·href="#blanket-implementations"·class="anchor">§</a></h2><div·id="blanket-implementations-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-Any-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/any.rs.html#138">Source</a><a·href="#impl-Any-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where
17 ····T:·'static·+·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/any.rs.html#139">Source</a><a·href="#method.type_id"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/any/trait.Any.html#tymethod.type_id"·class="fn">type_id</a>(&amp;self)·-&gt;·<a·class="struct"·href="../../core/any/struct.TypeId.html"·title="struct·core::any::TypeId">TypeId</a></h4></section></summary><div·class='docblock'>Gets·the·<code>TypeId</code>·of·<code>self</code>.·<a·href="../../core/any/trait.Any.html#tymethod.type_id">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Borrow%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/borrow/trait.Borrow.html"·title="trait·core::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where17 ····T:·'static·+·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/any.rs.html#139">Source</a><a·href="#method.type_id"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/any/trait.Any.html#tymethod.type_id"·class="fn">type_id</a>(&amp;self)·-&gt;·<a·class="struct"·href="../../core/any/struct.TypeId.html"·title="struct·core::any::TypeId">TypeId</a></h4></section></summary><div·class='docblock'>Gets·the·<code>TypeId</code>·of·<code>self</code>.·<a·href="../../core/any/trait.Any.html#tymethod.type_id">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Borrow%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/borrow/trait.Borrow.html"·title="trait·core::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where
18 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#211">Source</a><a·href="#method.borrow"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/borrow/trait.Borrow.html#tymethod.borrow"·class="fn">borrow</a>(&amp;self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;T</a></h4></section></summary><div·class='docblock'>Immutably·borrows·from·an·owned·value.·<a·href="../../core/borrow/trait.Borrow.html#tymethod.borrow">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-BorrowMut%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/borrow/trait.BorrowMut.html"·title="trait·core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where18 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#211">Source</a><a·href="#method.borrow"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/borrow/trait.Borrow.html#tymethod.borrow"·class="fn">borrow</a>(&amp;self)·-&gt;·<a·class="primitive"·href="../../std/primitive.reference.html">&amp;T</a></h4></section></summary><div·class='docblock'>Immutably·borrows·from·an·owned·value.·<a·href="../../core/borrow/trait.Borrow.html#tymethod.borrow">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-BorrowMut%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/borrow/trait.BorrowMut.html"·title="trait·core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where
19 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#218">Source</a><a·href="#method.borrow_mut"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"·class="fn">borrow_mut</a>(&amp;mut·self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;mut·T</a></h4></section></summary><div·class='docblock'>Mutably·borrows·from·an·owned·value.·<a·href="../../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-CloneToUninit-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/clone.rs.html#273">Source</a><a·href="#impl-CloneToUninit-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where19 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#218">Source</a><a·href="#method.borrow_mut"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"·class="fn">borrow_mut</a>(&amp;mut·self)·-&gt;·<a·class="primitive"·href="../../std/primitive.reference.html">&amp;mut·T</a></h4></section></summary><div·class='docblock'>Mutably·borrows·from·an·owned·value.·<a·href="../../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-CloneToUninit-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/clone.rs.html#273">Source</a><a·href="#impl-CloneToUninit-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where
20 ····T:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/clone.rs.html#275">Source</a><a·href="#method.clone_to_uninit"·class="anchor">§</a><h4·class="code-header">unsafe·fn·<a·href="../../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit"·class="fn">clone_to_uninit</a>(&amp;self,·dst:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.pointer.html">*mut·</a><a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.u8.html">u8</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>clone_to_uninit</code>)</span></div></span><div·class='docblock'>Performs·copy-assignment·from·<code>self</code>·to·<code>dst</code>.·<a·href="../../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-From%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#765">Source</a><a·href="#impl-From%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·T</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#768">Source</a><a·href="#method.from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>20 ····T:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/clone.rs.html#275">Source</a><a·href="#method.clone_to_uninit"·class="anchor">§</a><h4·class="code-header">unsafe·fn·<a·href="../../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit"·class="fn">clone_to_uninit</a>(&amp;self,·dst:·<a·class="primitive"·href="../../std/primitive.pointer.html">*mut·</a><a·class="primitive"·href="../../std/primitive.u8.html">u8</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>clone_to_uninit</code>)</span></div></span><div·class='docblock'>Performs·copy-assignment·from·<code>self</code>·to·<code>dst</code>.·<a·href="../../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-From%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#765">Source</a><a·href="#impl-From%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·T</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#768">Source</a><a·href="#method.from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>
21 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where21 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where
22 ····U:·<a·class="trait"·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#758">Source</a><a·href="#method.into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>22 ····U:·<a·class="trait"·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#758">Source</a><a·href="#method.into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>
23 <p>That·is,·this·conversion·is·whatever·the·implementation·of23 <p>That·is,·this·conversion·is·whatever·the·implementation·of
24 <code><a·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>24 <code><a·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>
25 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#82-84">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../alloc/borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where25 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#82-84">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../alloc/borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where
26 ····T:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#86">Source</a><a·href="#associatedtype.Owned"·class="anchor">§</a><h4·class="code-header">type·<a·href="../../alloc/borrow/trait.ToOwned.html#associatedtype.Owned"·class="associatedtype">Owned</a>·=·T</h4></section></summary><div·class='docblock'>The·resulting·type·after·obtaining·ownership.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.to_owned"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#87">Source</a><a·href="#method.to_owned"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../alloc/borrow/trait.ToOwned.html#tymethod.to_owned"·class="fn">to_owned</a>(&amp;self)·-&gt;·T</h4></section></summary><div·class='docblock'>Creates·owned·data·from·borrowed·data,·usually·by·cloning.·<a·href="../../alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#91">Source</a><a·href="#method.clone_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../alloc/borrow/trait.ToOwned.html#method.clone_into"·class="fn">clone_into</a>(&amp;self,·target:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../../alloc/borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#805-807">Source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where26 ····T:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#86">Source</a><a·href="#associatedtype.Owned"·class="anchor">§</a><h4·class="code-header">type·<a·href="../../alloc/borrow/trait.ToOwned.html#associatedtype.Owned"·class="associatedtype">Owned</a>·=·T</h4></section></summary><div·class='docblock'>The·resulting·type·after·obtaining·ownership.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.to_owned"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#87">Source</a><a·href="#method.to_owned"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../alloc/borrow/trait.ToOwned.html#tymethod.to_owned"·class="fn">to_owned</a>(&amp;self)·-&gt;·T</h4></section></summary><div·class='docblock'>Creates·owned·data·from·borrowed·data,·usually·by·cloning.·<a·href="../../alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#91">Source</a><a·href="#method.clone_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../alloc/borrow/trait.ToOwned.html#method.clone_into"·class="fn">clone_into</a>(&amp;self,·target:·<a·class="primitive"·href="../../std/primitive.reference.html">&amp;mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../../alloc/borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#805-807">Source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where
27 ····U:·<a·class="trait"·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#809">Source</a><a·href="#associatedtype.Error-1"·class="anchor">§</a><h4·class="code-header">type·<a·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<a·class="enum"·href="../../core/convert/enum.Infallible.html"·title="enum·core::convert::Infallible">Infallible</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_from"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#812">Source</a><a·href="#method.try_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.TryFrom.html#tymethod.try_from"·class="fn">try_from</a>(value:·U)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;T,·&lt;T·as·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;&gt;::<a·class="associatedtype"·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryInto%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#790-792">Source</a><a·href="#impl-TryInto%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where27 ····U:·<a·class="trait"·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#809">Source</a><a·href="#associatedtype.Error-1"·class="anchor">§</a><h4·class="code-header">type·<a·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<a·class="enum"·href="../../core/convert/enum.Infallible.html"·title="enum·core::convert::Infallible">Infallible</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_from"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#812">Source</a><a·href="#method.try_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.TryFrom.html#tymethod.try_from"·class="fn">try_from</a>(value:·U)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;T,·&lt;T·as·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;&gt;::<a·class="associatedtype"·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryInto%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#790-792">Source</a><a·href="#impl-TryInto%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where
28 ····U:·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#794">Source</a><a·href="#associatedtype.Error"·class="anchor">§</a><h4·class="code-header">type·<a·href="../../core/convert/trait.TryInto.html#associatedtype.Error"·class="associatedtype">Error</a>·=·&lt;U·as·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#797">Source</a><a·href="#method.try_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.TryInto.html#tymethod.try_into"·class="fn">try_into</a>(self)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;U,·&lt;U·as·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>28 ····U:·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#794">Source</a><a·href="#associatedtype.Error"·class="anchor">§</a><h4·class="code-header">type·<a·href="../../core/convert/trait.TryInto.html#associatedtype.Error"·class="associatedtype">Error</a>·=·&lt;U·as·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#797">Source</a><a·href="#method.try_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.TryInto.html#tymethod.try_into"·class="fn">try_into</a>(self)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;U,·&lt;U·as·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>
25.7 KB
./usr/share/doc/rust-doc/html/test/test/struct.TestDescAndFn.html
    
Offset 1, 22 lines modifiedOffset 1, 22 lines modified
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="API·documentation·for·the·Rust·`TestDescAndFn`·struct·in·crate·`test`."><title>TestDescAndFn·in·test::test·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="test"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../test/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../test/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../test/index.html">test</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»    2025-01-07)» (built»   from»       a»      source»tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Test<wbr>Desc<wbr>AndFn</a></h2><h3><a·href="#fields">Fields</a></h3><ul·class="block·structfield"><li><a·href="#structfield.desc"·title="desc">desc</a></li><li><a·href="#structfield.testfn"·title="testfn">testfn</a></li></ul><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.new_doctest"·title="new_doctest">new_doctest</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Debug-for-TestDescAndFn"·title="Debug">Debug</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-RefUnwindSafe-for-TestDescAndFn"·title="!RefUnwindSafe">!RefUnwindSafe</a></li><li><a·href="#impl-Sync-for-TestDescAndFn"·title="!Sync">!Sync</a></li><li><a·href="#impl-UnwindSafe-for-TestDescAndFn"·title="!UnwindSafe">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-TestDescAndFn"·title="Freeze">Freeze</a></li><li><a·href="#impl-Send-for-TestDescAndFn"·title="Send">Send</a></li><li><a·href="#impl-Unpin-for-TestDescAndFn"·title="Unpin">Unpin</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·test::<wbr>test</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">test</a>::<wbr><a·href="index.html">test</a></span><h1>Struct·<span·class="struct">TestDescAndFn</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/test/types.rs.html#249-252">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·TestDescAndFn·{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="API·documentation·for·the·Rust·`TestDescAndFn`·struct·in·crate·`test`."><title>TestDescAndFn·in·test::test·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="test"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../test/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../test/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../test/index.html">test</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»    2025-01-07)» (built»   from»       a»      source»tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Test<wbr>Desc<wbr>AndFn</a></h2><h3><a·href="#fields">Fields</a></h3><ul·class="block·structfield"><li><a·href="#structfield.desc"·title="desc">desc</a></li><li><a·href="#structfield.testfn"·title="testfn">testfn</a></li></ul><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.new_doctest"·title="new_doctest">new_doctest</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Debug-for-TestDescAndFn"·title="Debug">Debug</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-RefUnwindSafe-for-TestDescAndFn"·title="!RefUnwindSafe">!RefUnwindSafe</a></li><li><a·href="#impl-Sync-for-TestDescAndFn"·title="!Sync">!Sync</a></li><li><a·href="#impl-UnwindSafe-for-TestDescAndFn"·title="!UnwindSafe">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-TestDescAndFn"·title="Freeze">Freeze</a></li><li><a·href="#impl-Send-for-TestDescAndFn"·title="Send">Send</a></li><li><a·href="#impl-Unpin-for-TestDescAndFn"·title="Unpin">Unpin</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·test::<wbr>test</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">test</a>::<wbr><a·href="index.html">test</a></span><h1>Struct·<span·class="struct">TestDescAndFn</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/test/types.rs.html#249-252">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·TestDescAndFn·{
2 ····pub·desc:·<a·class="struct"·href="struct.TestDesc.html"·title="struct·test::test::TestDesc">TestDesc</a>,2 ····pub·desc:·<a·class="struct"·href="struct.TestDesc.html"·title="struct·test::test::TestDesc">TestDesc</a>,
3 ····pub·testfn:·<a·class="enum"·href="../enum.TestFn.html"·title="enum·test::TestFn">TestFn</a>,3 ····pub·testfn:·<a·class="enum"·href="../enum.TestFn.html"·title="enum·test::TestFn">TestFn</a>,
4 }</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><h2·id="fields"·class="fields·section-header">Fields<a·href="#fields"·class="anchor">§</a></h2><span·id="structfield.desc"·class="structfield·section-header"><a·href="#structfield.desc"·class="anchor·field">§</a><code>desc:·<a·class="struct"·href="struct.TestDesc.html"·title="struct·test::test::TestDesc">TestDesc</a></code></span><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><span·id="structfield.testfn"·class="structfield·section-header"><a·href="#structfield.testfn"·class="anchor·field">§</a><code>testfn:·<a·class="enum"·href="../enum.TestFn.html"·title="enum·test::TestFn">TestFn</a></code></span><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-TestDescAndFn"·class="impl"><a·class="src·rightside"·href="../../src/test/types.rs.html#254-286">Source</a><a·href="#impl-TestDescAndFn"·class="anchor">§</a><h3·class="code-header">impl·<a·class="struct"·href="struct.TestDescAndFn.html"·title="struct·test::test::TestDescAndFn">TestDescAndFn</a></h3></section></summary><div·class="impl-items"><section·id="method.new_doctest"·class="method"><a·class="src·rightside"·href="../../src/test/types.rs.html#255-285">Source</a><h4·class="code-header">pub·const·fn·<a·href="#method.new_doctest"·class="fn">new_doctest</a>(4 }</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><h2·id="fields"·class="fields·section-header">Fields<a·href="#fields"·class="anchor">§</a></h2><span·id="structfield.desc"·class="structfield·section-header"><a·href="#structfield.desc"·class="anchor·field">§</a><code>desc:·<a·class="struct"·href="struct.TestDesc.html"·title="struct·test::test::TestDesc">TestDesc</a></code></span><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><span·id="structfield.testfn"·class="structfield·section-header"><a·href="#structfield.testfn"·class="anchor·field">§</a><code>testfn:·<a·class="enum"·href="../enum.TestFn.html"·title="enum·test::TestFn">TestFn</a></code></span><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-TestDescAndFn"·class="impl"><a·class="src·rightside"·href="../../src/test/types.rs.html#254-286">Source</a><a·href="#impl-TestDescAndFn"·class="anchor">§</a><h3·class="code-header">impl·<a·class="struct"·href="struct.TestDescAndFn.html"·title="struct·test::test::TestDescAndFn">TestDescAndFn</a></h3></section></summary><div·class="impl-items"><section·id="method.new_doctest"·class="method"><a·class="src·rightside"·href="../../src/test/types.rs.html#255-285">Source</a><h4·class="code-header">pub·const·fn·<a·href="#method.new_doctest"·class="fn">new_doctest</a>(
5 ····test_name:·&amp;'static·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.str.html">str</a>,5 ····test_name:·&amp;'static·<a·class="primitive"·href="../../std/primitive.str.html">str</a>,
6 ····ignore:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>,6 ····ignore:·<a·class="primitive"·href="../../std/primitive.bool.html">bool</a>,
7 ····source_file:·&amp;'static·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.str.html">str</a>,7 ····source_file:·&amp;'static·<a·class="primitive"·href="../../std/primitive.str.html">str</a>,
8 ····start_line:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.usize.html">usize</a>,8 ····start_line:·<a·class="primitive"·href="../../std/primitive.usize.html">usize</a>,
9 ····no_run:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>,9 ····no_run:·<a·class="primitive"·href="../../std/primitive.bool.html">bool</a>,
10 ····should_panic:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>,10 ····should_panic:·<a·class="primitive"·href="../../std/primitive.bool.html">bool</a>,
11 ····testfn:·<a·class="enum"·href="../enum.TestFn.html"·title="enum·test::TestFn">TestFn</a>,11 ····testfn:·<a·class="enum"·href="../enum.TestFn.html"·title="enum·test::TestFn">TestFn</a>,
12 )·-&gt;·Self</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-TestDescAndFn"·class="impl"><a·class="src·rightside"·href="../../src/test/types.rs.html#248">Source</a><a·href="#impl-Debug-for-TestDescAndFn"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/fmt/trait.Debug.html"·title="trait·core::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.TestDescAndFn.html"·title="struct·test::test::TestDescAndFn">TestDescAndFn</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/test/types.rs.html#248">Source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="../../core/fmt/struct.Formatter.html"·title="struct·core::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="type"·href="../../core/fmt/type.Result.html"·title="type·core::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../../core/fmt/trait.Debug.html#tymethod.fmt">Read·more</a></div></details></div></details></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-TestDescAndFn"·class="impl"><a·href="#impl-Freeze-for-TestDescAndFn"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="struct"·href="struct.TestDescAndFn.html"·title="struct·test::test::TestDescAndFn">TestDescAndFn</a></h3></section><section·id="impl-RefUnwindSafe-for-TestDescAndFn"·class="impl"><a·href="#impl-RefUnwindSafe-for-TestDescAndFn"·class="anchor">§</a><h3·class="code-header">impl·!<a·class="trait"·href="../../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="struct"·href="struct.TestDescAndFn.html"·title="struct·test::test::TestDescAndFn">TestDescAndFn</a></h3></section><section·id="impl-Send-for-TestDescAndFn"·class="impl"><a·href="#impl-Send-for-TestDescAndFn"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="struct"·href="struct.TestDescAndFn.html"·title="struct·test::test::TestDescAndFn">TestDescAndFn</a></h3></section><section·id="impl-Sync-for-TestDescAndFn"·class="impl"><a·href="#impl-Sync-for-TestDescAndFn"·class="anchor">§</a><h3·class="code-header">impl·!<a·class="trait"·href="../../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="struct"·href="struct.TestDescAndFn.html"·title="struct·test::test::TestDescAndFn">TestDescAndFn</a></h3></section><section·id="impl-Unpin-for-TestDescAndFn"·class="impl"><a·href="#impl-Unpin-for-TestDescAndFn"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="struct"·href="struct.TestDescAndFn.html"·title="struct·test::test::TestDescAndFn">TestDescAndFn</a></h3></section><section·id="impl-UnwindSafe-for-TestDescAndFn"·class="impl"><a·href="#impl-UnwindSafe-for-TestDescAndFn"·class="anchor">§</a><h3·class="code-header">impl·!<a·class="trait"·href="../../core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="struct"·href="struct.TestDescAndFn.html"·title="struct·test::test::TestDescAndFn">TestDescAndFn</a></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementations<a·href="#blanket-implementations"·class="anchor">§</a></h2><div·id="blanket-implementations-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-Any-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/any.rs.html#138">Source</a><a·href="#impl-Any-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where12 )·-&gt;·Self</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-TestDescAndFn"·class="impl"><a·class="src·rightside"·href="../../src/test/types.rs.html#248">Source</a><a·href="#impl-Debug-for-TestDescAndFn"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/fmt/trait.Debug.html"·title="trait·core::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.TestDescAndFn.html"·title="struct·test::test::TestDescAndFn">TestDescAndFn</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/test/types.rs.html#248">Source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="../../core/fmt/struct.Formatter.html"·title="struct·core::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="type"·href="../../core/fmt/type.Result.html"·title="type·core::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../../core/fmt/trait.Debug.html#tymethod.fmt">Read·more</a></div></details></div></details></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-TestDescAndFn"·class="impl"><a·href="#impl-Freeze-for-TestDescAndFn"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="struct"·href="struct.TestDescAndFn.html"·title="struct·test::test::TestDescAndFn">TestDescAndFn</a></h3></section><section·id="impl-RefUnwindSafe-for-TestDescAndFn"·class="impl"><a·href="#impl-RefUnwindSafe-for-TestDescAndFn"·class="anchor">§</a><h3·class="code-header">impl·!<a·class="trait"·href="../../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="struct"·href="struct.TestDescAndFn.html"·title="struct·test::test::TestDescAndFn">TestDescAndFn</a></h3></section><section·id="impl-Send-for-TestDescAndFn"·class="impl"><a·href="#impl-Send-for-TestDescAndFn"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="struct"·href="struct.TestDescAndFn.html"·title="struct·test::test::TestDescAndFn">TestDescAndFn</a></h3></section><section·id="impl-Sync-for-TestDescAndFn"·class="impl"><a·href="#impl-Sync-for-TestDescAndFn"·class="anchor">§</a><h3·class="code-header">impl·!<a·class="trait"·href="../../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="struct"·href="struct.TestDescAndFn.html"·title="struct·test::test::TestDescAndFn">TestDescAndFn</a></h3></section><section·id="impl-Unpin-for-TestDescAndFn"·class="impl"><a·href="#impl-Unpin-for-TestDescAndFn"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="struct"·href="struct.TestDescAndFn.html"·title="struct·test::test::TestDescAndFn">TestDescAndFn</a></h3></section><section·id="impl-UnwindSafe-for-TestDescAndFn"·class="impl"><a·href="#impl-UnwindSafe-for-TestDescAndFn"·class="anchor">§</a><h3·class="code-header">impl·!<a·class="trait"·href="../../core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="struct"·href="struct.TestDescAndFn.html"·title="struct·test::test::TestDescAndFn">TestDescAndFn</a></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementations<a·href="#blanket-implementations"·class="anchor">§</a></h2><div·id="blanket-implementations-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-Any-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/any.rs.html#138">Source</a><a·href="#impl-Any-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where
13 ····T:·'static·+·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/any.rs.html#139">Source</a><a·href="#method.type_id"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/any/trait.Any.html#tymethod.type_id"·class="fn">type_id</a>(&amp;self)·-&gt;·<a·class="struct"·href="../../core/any/struct.TypeId.html"·title="struct·core::any::TypeId">TypeId</a></h4></section></summary><div·class='docblock'>Gets·the·<code>TypeId</code>·of·<code>self</code>.·<a·href="../../core/any/trait.Any.html#tymethod.type_id">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Borrow%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/borrow/trait.Borrow.html"·title="trait·core::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where13 ····T:·'static·+·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/any.rs.html#139">Source</a><a·href="#method.type_id"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/any/trait.Any.html#tymethod.type_id"·class="fn">type_id</a>(&amp;self)·-&gt;·<a·class="struct"·href="../../core/any/struct.TypeId.html"·title="struct·core::any::TypeId">TypeId</a></h4></section></summary><div·class='docblock'>Gets·the·<code>TypeId</code>·of·<code>self</code>.·<a·href="../../core/any/trait.Any.html#tymethod.type_id">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Borrow%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/borrow/trait.Borrow.html"·title="trait·core::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where
14 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#211">Source</a><a·href="#method.borrow"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/borrow/trait.Borrow.html#tymethod.borrow"·class="fn">borrow</a>(&amp;self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;T</a></h4></section></summary><div·class='docblock'>Immutably·borrows·from·an·owned·value.·<a·href="../../core/borrow/trait.Borrow.html#tymethod.borrow">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-BorrowMut%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/borrow/trait.BorrowMut.html"·title="trait·core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where14 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#211">Source</a><a·href="#method.borrow"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/borrow/trait.Borrow.html#tymethod.borrow"·class="fn">borrow</a>(&amp;self)·-&gt;·<a·class="primitive"·href="../../std/primitive.reference.html">&amp;T</a></h4></section></summary><div·class='docblock'>Immutably·borrows·from·an·owned·value.·<a·href="../../core/borrow/trait.Borrow.html#tymethod.borrow">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-BorrowMut%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/borrow/trait.BorrowMut.html"·title="trait·core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where
15 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#218">Source</a><a·href="#method.borrow_mut"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"·class="fn">borrow_mut</a>(&amp;mut·self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;mut·T</a></h4></section></summary><div·class='docblock'>Mutably·borrows·from·an·owned·value.·<a·href="../../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-From%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#765">Source</a><a·href="#impl-From%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·T</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#768">Source</a><a·href="#method.from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>15 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#218">Source</a><a·href="#method.borrow_mut"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"·class="fn">borrow_mut</a>(&amp;mut·self)·-&gt;·<a·class="primitive"·href="../../std/primitive.reference.html">&amp;mut·T</a></h4></section></summary><div·class='docblock'>Mutably·borrows·from·an·owned·value.·<a·href="../../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-From%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#765">Source</a><a·href="#impl-From%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·T</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#768">Source</a><a·href="#method.from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>
16 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where16 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where
17 ····U:·<a·class="trait"·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#758">Source</a><a·href="#method.into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>17 ····U:·<a·class="trait"·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#758">Source</a><a·href="#method.into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>
18 <p>That·is,·this·conversion·is·whatever·the·implementation·of18 <p>That·is,·this·conversion·is·whatever·the·implementation·of
19 <code><a·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>19 <code><a·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>
20 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#805-807">Source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where20 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#805-807">Source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where
21 ····U:·<a·class="trait"·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#809">Source</a><a·href="#associatedtype.Error-1"·class="anchor">§</a><h4·class="code-header">type·<a·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<a·class="enum"·href="../../core/convert/enum.Infallible.html"·title="enum·core::convert::Infallible">Infallible</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_from"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#812">Source</a><a·href="#method.try_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.TryFrom.html#tymethod.try_from"·class="fn">try_from</a>(value:·U)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;T,·&lt;T·as·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;&gt;::<a·class="associatedtype"·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryInto%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#790-792">Source</a><a·href="#impl-TryInto%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where21 ····U:·<a·class="trait"·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#809">Source</a><a·href="#associatedtype.Error-1"·class="anchor">§</a><h4·class="code-header">type·<a·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<a·class="enum"·href="../../core/convert/enum.Infallible.html"·title="enum·core::convert::Infallible">Infallible</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_from"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#812">Source</a><a·href="#method.try_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.TryFrom.html#tymethod.try_from"·class="fn">try_from</a>(value:·U)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;T,·&lt;T·as·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;&gt;::<a·class="associatedtype"·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryInto%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#790-792">Source</a><a·href="#impl-TryInto%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where
22 ····U:·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#794">Source</a><a·href="#associatedtype.Error"·class="anchor">§</a><h4·class="code-header">type·<a·href="../../core/convert/trait.TryInto.html#associatedtype.Error"·class="associatedtype">Error</a>·=·&lt;U·as·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#797">Source</a><a·href="#method.try_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.TryInto.html#tymethod.try_into"·class="fn">try_into</a>(self)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;U,·&lt;U·as·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>22 ····U:·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#794">Source</a><a·href="#associatedtype.Error"·class="anchor">§</a><h4·class="code-header">type·<a·href="../../core/convert/trait.TryInto.html#associatedtype.Error"·class="associatedtype">Error</a>·=·&lt;U·as·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#797">Source</a><a·href="#method.try_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.TryInto.html#tymethod.try_into"·class="fn">try_into</a>(self)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;U,·&lt;U·as·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>
44.8 KB
./usr/share/doc/rust-doc/html/test/test/struct.TestExecTime.html
    
Offset 1, 16 lines modifiedOffset 1, 16 lines modified
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="The·measured·execution·time·of·a·unit·test."><title>TestExecTime·in·test::test·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="test"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../test/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../test/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../test/index.html">test</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»      2025-01-07)»   (built»     from» a»source»  tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Test<wbr>Exec<wbr>Time</a></h2><h3><a·href="#fields">Tuple·Fields</a></h3><ul·class="block·structfield"><li><a·href="#structfield.0"·title="0">0</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-TestExecTime"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-TestExecTime"·title="Debug">Debug</a></li><li><a·href="#impl-Display-for-TestExecTime"·title="Display">Display</a></li><li><a·href="#impl-PartialEq-for-TestExecTime"·title="PartialEq">PartialEq</a></li><li><a·href="#impl-StructuralPartialEq-for-TestExecTime"·title="StructuralPartialEq">StructuralPartialEq</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-TestExecTime"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-TestExecTime"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-TestExecTime"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-TestExecTime"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-TestExecTime"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-TestExecTime"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-ToString-for-T"·title="ToString">ToString</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·test::<wbr>test</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">test</a>::<wbr><a·href="index.html">test</a></span><h1>Struct·<span·class="struct">TestExecTime</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/test/time.rs.html#66">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·TestExecTime(pub·<a·class="struct"·href="../../core/time/struct.Duration.html"·title="struct·core::time::Duration">Duration</a>);</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>The·measured·execution·time·of·a·unit·test.</p>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="The·measured·execution·time·of·a·unit·test."><title>TestExecTime·in·test::test·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="test"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../test/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../test/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../test/index.html">test</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»      2025-01-07)»   (built»     from» a»source»  tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Test<wbr>Exec<wbr>Time</a></h2><h3><a·href="#fields">Tuple·Fields</a></h3><ul·class="block·structfield"><li><a·href="#structfield.0"·title="0">0</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-TestExecTime"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-TestExecTime"·title="Debug">Debug</a></li><li><a·href="#impl-Display-for-TestExecTime"·title="Display">Display</a></li><li><a·href="#impl-PartialEq-for-TestExecTime"·title="PartialEq">PartialEq</a></li><li><a·href="#impl-StructuralPartialEq-for-TestExecTime"·title="StructuralPartialEq">StructuralPartialEq</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-TestExecTime"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-TestExecTime"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-TestExecTime"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-TestExecTime"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-TestExecTime"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-TestExecTime"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-ToString-for-T"·title="ToString">ToString</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·test::<wbr>test</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">test</a>::<wbr><a·href="index.html">test</a></span><h1>Struct·<span·class="struct">TestExecTime</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/test/time.rs.html#66">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·TestExecTime(pub·<a·class="struct"·href="../../core/time/struct.Duration.html"·title="struct·core::time::Duration">Duration</a>);</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>The·measured·execution·time·of·a·unit·test.</p>
2 </div></details><h2·id="fields"·class="fields·section-header">Tuple·Fields<a·href="#fields"·class="anchor">§</a></h2><span·id="structfield.0"·class="structfield·section-header"><a·href="#structfield.0"·class="anchor·field">§</a><code>0:·<a·class="struct"·href="../../core/time/struct.Duration.html"·title="struct·core::time::Duration">Duration</a></code></span><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-TestExecTime"·class="impl"><a·class="src·rightside"·href="../../src/test/time.rs.html#65">Source</a><a·href="#impl-Clone-for-TestExecTime"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struct"·href="struct.TestExecTime.html"·title="struct·test::test::TestExecTime">TestExecTime</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/test/time.rs.html#65">Source</a><a·href="#method.clone"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/clone/trait.Clone.html#tymethod.clone"·class="fn">clone</a>(&amp;self)·-&gt;·<a·class="struct"·href="struct.TestExecTime.html"·title="struct·test::test::TestExecTime">TestExecTime</a></h4></section></summary><div·class='docblock'>Returns·a·copy·of·the·value.·<a·href="../../core/clone/trait.Clone.html#tymethod.clone">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_from"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/clone.rs.html#174">Source</a></span><a·href="#method.clone_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/clone/trait.Clone.html#method.clone_from"·class="fn">clone_from</a>(&amp;mut·self,·source:·&amp;Self)</h4></section></summary><div·class='docblock'>Performs·copy-assignment·from·<code>source</code>.·<a·href="../../core/clone/trait.Clone.html#method.clone_from">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-TestExecTime"·class="impl"><a·class="src·rightside"·href="../../src/test/time.rs.html#65">Source</a><a·href="#impl-Debug-for-TestExecTime"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/fmt/trait.Debug.html"·title="trait·core::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.TestExecTime.html"·title="struct·test::test::TestExecTime">TestExecTime</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/test/time.rs.html#65">Source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="../../core/fmt/struct.Formatter.html"·title="struct·core::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="type"·href="../../core/fmt/type.Result.html"·title="type·core::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../../core/fmt/trait.Debug.html#tymethod.fmt">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Display-for-TestExecTime"·class="impl"><a·class="src·rightside"·href="../../src/test/time.rs.html#68-72">Source</a><a·href="#impl-Display-for-TestExecTime"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/fmt/trait.Display.html"·title="trait·core::fmt::Display">Display</a>·for·<a·class="struct"·href="struct.TestExecTime.html"·title="struct·test::test::TestExecTime">TestExecTime</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt-1"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/test/time.rs.html#69-71">Source</a><a·href="#method.fmt-1"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/fmt/trait.Display.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="../../core/fmt/struct.Formatter.html"·title="struct·core::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="type"·href="../../core/fmt/type.Result.html"·title="type·core::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../../core/fmt/trait.Display.html#tymethod.fmt">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-PartialEq-for-TestExecTime"·class="impl"><a·class="src·rightside"·href="../../src/test/time.rs.html#65">Source</a><a·href="#impl-PartialEq-for-TestExecTime"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/cmp/trait.PartialEq.html"·title="trait·core::cmp::PartialEq">PartialEq</a>·for·<a·class="struct"·href="struct.TestExecTime.html"·title="struct·test::test::TestExecTime">TestExecTime</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.eq"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/test/time.rs.html#65">Source</a><a·href="#method.eq"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/cmp/trait.PartialEq.html#tymethod.eq"·class="fn">eq</a>(&amp;self,·other:·&amp;<a·class="struct"·href="struct.TestExecTime.html"·title="struct·test::test::TestExecTime">TestExecTime</a>)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>self</code>·and·<code>other</code>·values·to·be·equal,·and·is·used·by·<code>==</code>.</div></details><details·class="toggle·me[·...·truncated·by·diffoscope;·len:·575,·SHA:·24e5a6b6f07d6dccde1f4f31a2d320251328cc5b8476dbf860d00dba4bc89363·...·]/std/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>!=</code>.·The·default·implementation·is·almost·always·sufficient,2 </div></details><h2·id="fields"·class="fields·section-header">Tuple·Fields<a·href="#fields"·class="anchor">§</a></h2><span·id="structfield.0"·class="structfield·section-header"><a·href="#structfield.0"·class="anchor·field">§</a><code>0:·<a·class="struct"·href="../../core/time/struct.Duration.html"·title="struct·core::time::Duration">Duration</a></code></span><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-TestExecTime"·class="impl"><a·class="src·rightside"·href="../../src/test/time.rs.html#65">Source</a><a·href="#impl-Clone-for-TestExecTime"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struct"·href="struct.TestExecTime.html"·title="struct·test::test::TestExecTime">TestExecTime</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/test/time.rs.html#65">Source</a><a·href="#method.clone"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/clone/trait.Clone.html#tymethod.clone"·class="fn">clone</a>(&amp;self)·-&gt;·<a·class="struct"·href="struct.TestExecTime.html"·title="struct·test::test::TestExecTime">TestExecTime</a></h4></section></summary><div·class='docblock'>Returns·a·copy·of·the·value.·<a·href="../../core/clone/trait.Clone.html#tymethod.clone">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_from"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/clone.rs.html#174">Source</a></span><a·href="#method.clone_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/clone/trait.Clone.html#method.clone_from"·class="fn">clone_from</a>(&amp;mut·self,·source:·&amp;Self)</h4></section></summary><div·class='docblock'>Performs·copy-assignment·from·<code>source</code>.·<a·href="../../core/clone/trait.Clone.html#method.clone_from">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-TestExecTime"·class="impl"><a·class="src·rightside"·href="../../src/test/time.rs.html#65">Source</a><a·href="#impl-Debug-for-TestExecTime"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/fmt/trait.Debug.html"·title="trait·core::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.TestExecTime.html"·title="struct·test::test::TestExecTime">TestExecTime</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/test/time.rs.html#65">Source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="../../core/fmt/struct.Formatter.html"·title="struct·core::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="type"·href="../../core/fmt/type.Result.html"·title="type·core::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../../core/fmt/trait.Debug.html#tymethod.fmt">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Display-for-TestExecTime"·class="impl"><a·class="src·rightside"·href="../../src/test/time.rs.html#68-72">Source</a><a·href="#impl-Display-for-TestExecTime"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/fmt/trait.Display.html"·title="trait·core::fmt::Display">Display</a>·for·<a·class="struct"·href="struct.TestExecTime.html"·title="struct·test::test::TestExecTime">TestExecTime</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt-1"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/test/time.rs.html#69-71">Source</a><a·href="#method.fmt-1"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/fmt/trait.Display.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="../../core/fmt/struct.Formatter.html"·title="struct·core::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="type"·href="../../core/fmt/type.Result.html"·title="type·core::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../../core/fmt/trait.Display.html#tymethod.fmt">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-PartialEq-for-TestExecTime"·class="impl"><a·class="src·rightside"·href="../../src/test/time.rs.html#65">Source</a><a·href="#impl-PartialEq-for-TestExecTime"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/cmp/trait.PartialEq.html"·title="trait·core::cmp::PartialEq">PartialEq</a>·for·<a·class="struct"·href="struct.TestExecTime.html"·title="struct·test::test::TestExecTime">TestExecTime</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.eq"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/test/time.rs.html#65">Source</a><a·href="#method.eq"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/cmp/trait.PartialEq.html#tymethod.eq"·class="fn">eq</a>(&amp;self,·other:·&amp;<a·class="struct"·href="struct.TestExecTime.html"·title="struct·test::test::TestExecTime">TestExecTime</a>)·-&gt;·<a·class="primitive"·href="../../std/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>self</code>·and·<code>other</code>·values·to·be·equal,·and·is·used·by·<code>==</code>.</div></details><details·class="toggle·method-toggle"·open><summary>[·...·truncated·by·diffoscope;·len:·494,·SHA:·db76c2d93beea7efa856fa6578fe817b3591880dfa224bd5e9c9e64062908aa1·...·]/std/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>!=</code>.·The·default·implementation·is·almost·always·sufficient,
3 and·should·not·be·overridden·without·very·good·reason.</div></details></div></details><section·id="impl-StructuralPartialEq-for-TestExecTime"·class="impl"><a·class="src·rightside"·href="../../src/test/time.rs.html#65">Source</a><a·href="#impl-StructuralPartialEq-for-TestExecTime"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.StructuralPartialEq.html"·title="trait·core::marker::StructuralPartialEq">StructuralPartialEq</a>·for·<a·class="struct"·href="struct.TestExecTime.html"·title="struct·test::test::TestExecTime">TestExecTime</a></h3></section></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-TestExecTime"·class="impl"><a·href="#impl-Freeze-for-TestExecTime"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="struct"·href="struct.TestExecTime.html"·title="struct·test::test::TestExecTime">TestExecTime</a></h3></section><section·id="impl-RefUnwindSafe-for-TestExecTime"·class="impl"><a·href="#impl-RefUnwindSafe-for-TestExecTime"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="struct"·href="struct.TestExecTime.html"·title="struct·test::test::TestExecTime">TestExecTime</a></h3></section><section·id="impl-Send-for-TestExecTime"·class="impl"><a·href="#impl-Send-for-TestExecTime"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="struct"·href="struct.TestExecTime.html"·title="struct·test::test::TestExecTime">TestExecTime</a></h3></section><section·id="impl-Sync-for-TestExecTime"·class="impl"><a·href="#impl-Sync-for-TestExecTime"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="struct"·href="struct.TestExecTime.html"·title="struct·test::test::TestExecTime">TestExecTime</a></h3></section><section·id="impl-Unpin-for-TestExecTime"·class="impl"><a·href="#impl-Unpin-for-TestExecTime"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="struct"·href="struct.TestExecTime.html"·title="struct·test::test::TestExecTime">TestExecTime</a></h3></section><section·id="impl-UnwindSafe-for-TestExecTime"·class="impl"><a·href="#impl-UnwindSafe-for-TestExecTime"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="struct"·href="struct.TestExecTime.html"·title="struct·test::test::TestExecTime">TestExecTime</a></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementations<a·href="#blanket-implementations"·class="anchor">§</a></h2><div·id="blanket-implementations-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-Any-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/any.rs.html#138">Source</a><a·href="#impl-Any-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where3 and·should·not·be·overridden·without·very·good·reason.</div></details></div></details><section·id="impl-StructuralPartialEq-for-TestExecTime"·class="impl"><a·class="src·rightside"·href="../../src/test/time.rs.html#65">Source</a><a·href="#impl-StructuralPartialEq-for-TestExecTime"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.StructuralPartialEq.html"·title="trait·core::marker::StructuralPartialEq">StructuralPartialEq</a>·for·<a·class="struct"·href="struct.TestExecTime.html"·title="struct·test::test::TestExecTime">TestExecTime</a></h3></section></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-TestExecTime"·class="impl"><a·href="#impl-Freeze-for-TestExecTime"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="struct"·href="struct.TestExecTime.html"·title="struct·test::test::TestExecTime">TestExecTime</a></h3></section><section·id="impl-RefUnwindSafe-for-TestExecTime"·class="impl"><a·href="#impl-RefUnwindSafe-for-TestExecTime"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="struct"·href="struct.TestExecTime.html"·title="struct·test::test::TestExecTime">TestExecTime</a></h3></section><section·id="impl-Send-for-TestExecTime"·class="impl"><a·href="#impl-Send-for-TestExecTime"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="struct"·href="struct.TestExecTime.html"·title="struct·test::test::TestExecTime">TestExecTime</a></h3></section><section·id="impl-Sync-for-TestExecTime"·class="impl"><a·href="#impl-Sync-for-TestExecTime"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="struct"·href="struct.TestExecTime.html"·title="struct·test::test::TestExecTime">TestExecTime</a></h3></section><section·id="impl-Unpin-for-TestExecTime"·class="impl"><a·href="#impl-Unpin-for-TestExecTime"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="struct"·href="struct.TestExecTime.html"·title="struct·test::test::TestExecTime">TestExecTime</a></h3></section><section·id="impl-UnwindSafe-for-TestExecTime"·class="impl"><a·href="#impl-UnwindSafe-for-TestExecTime"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="struct"·href="struct.TestExecTime.html"·title="struct·test::test::TestExecTime">TestExecTime</a></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementations<a·href="#blanket-implementations"·class="anchor">§</a></h2><div·id="blanket-implementations-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-Any-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/any.rs.html#138">Source</a><a·href="#impl-Any-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where
4 ····T:·'static·+·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/any.rs.html#139">Source</a><a·href="#method.type_id"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/any/trait.Any.html#tymethod.type_id"·class="fn">type_id</a>(&amp;self)·-&gt;·<a·class="struct"·href="../../core/any/struct.TypeId.html"·title="struct·core::any::TypeId">TypeId</a></h4></section></summary><div·class='docblock'>Gets·the·<code>TypeId</code>·of·<code>self</code>.·<a·href="../../core/any/trait.Any.html#tymethod.type_id">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Borrow%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/borrow/trait.Borrow.html"·title="trait·core::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where4 ····T:·'static·+·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/any.rs.html#139">Source</a><a·href="#method.type_id"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/any/trait.Any.html#tymethod.type_id"·class="fn">type_id</a>(&amp;self)·-&gt;·<a·class="struct"·href="../../core/any/struct.TypeId.html"·title="struct·core::any::TypeId">TypeId</a></h4></section></summary><div·class='docblock'>Gets·the·<code>TypeId</code>·of·<code>self</code>.·<a·href="../../core/any/trait.Any.html#tymethod.type_id">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Borrow%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/borrow/trait.Borrow.html"·title="trait·core::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where
5 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#211">Source</a><a·href="#method.borrow"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/borrow/trait.Borrow.html#tymethod.borrow"·class="fn">borrow</a>(&amp;self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;T</a></h4></section></summary><div·class='docblock'>Immutably·borrows·from·an·owned·value.·<a·href="../../core/borrow/trait.Borrow.html#tymethod.borrow">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-BorrowMut%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/borrow/trait.BorrowMut.html"·title="trait·core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where5 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#211">Source</a><a·href="#method.borrow"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/borrow/trait.Borrow.html#tymethod.borrow"·class="fn">borrow</a>(&amp;self)·-&gt;·<a·class="primitive"·href="../../std/primitive.reference.html">&amp;T</a></h4></section></summary><div·class='docblock'>Immutably·borrows·from·an·owned·value.·<a·href="../../core/borrow/trait.Borrow.html#tymethod.borrow">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-BorrowMut%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/borrow/trait.BorrowMut.html"·title="trait·core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where
6 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#218">Source</a><a·href="#method.borrow_mut"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"·class="fn">borrow_mut</a>(&amp;mut·self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;mut·T</a></h4></section></summary><div·class='docblock'>Mutably·borrows·from·an·owned·value.·<a·href="../../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-CloneToUninit-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/clone.rs.html#273">Source</a><a·href="#impl-CloneToUninit-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where6 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#218">Source</a><a·href="#method.borrow_mut"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"·class="fn">borrow_mut</a>(&amp;mut·self)·-&gt;·<a·class="primitive"·href="../../std/primitive.reference.html">&amp;mut·T</a></h4></section></summary><div·class='docblock'>Mutably·borrows·from·an·owned·value.·<a·href="../../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-CloneToUninit-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/clone.rs.html#273">Source</a><a·href="#impl-CloneToUninit-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where
7 ····T:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/clone.rs.html#275">Source</a><a·href="#method.clone_to_uninit"·class="anchor">§</a><h4·class="code-header">unsafe·fn·<a·href="../../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit"·class="fn">clone_to_uninit</a>(&amp;self,·dst:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.pointer.html">*mut·</a><a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.u8.html">u8</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>clone_to_uninit</code>)</span></div></span><div·class='docblock'>Performs·copy-assignment·from·<code>self</code>·to·<code>dst</code>.·<a·href="../../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-From%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#765">Source</a><a·href="#impl-From%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·T</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#768">Source</a><a·href="#method.from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>7 ····T:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/clone.rs.html#275">Source</a><a·href="#method.clone_to_uninit"·class="anchor">§</a><h4·class="code-header">unsafe·fn·<a·href="../../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit"·class="fn">clone_to_uninit</a>(&amp;self,·dst:·<a·class="primitive"·href="../../std/primitive.pointer.html">*mut·</a><a·class="primitive"·href="../../std/primitive.u8.html">u8</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>clone_to_uninit</code>)</span></div></span><div·class='docblock'>Performs·copy-assignment·from·<code>self</code>·to·<code>dst</code>.·<a·href="../../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-From%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#765">Source</a><a·href="#impl-From%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·T</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#768">Source</a><a·href="#method.from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>
8 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where8 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where
9 ····U:·<a·class="trait"·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#758">Source</a><a·href="#method.into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>9 ····U:·<a·class="trait"·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#758">Source</a><a·href="#method.into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>
10 <p>That·is,·this·conversion·is·whatever·the·implementation·of10 <p>That·is,·this·conversion·is·whatever·the·implementation·of
11 <code><a·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>11 <code><a·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>
12 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#82-84">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../alloc/borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where12 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#82-84">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../alloc/borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where
13 ····T:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#86">Source</a><a·href="#associatedtype.Owned"·class="anchor">§</a><h4·class="code-header">type·<a·href="../../alloc/borrow/trait.ToOwned.html#associatedtype.Owned"·class="associatedtype">Owned</a>·=·T</h4></section></summary><div·class='docblock'>The·resulting·type·after·obtaining·ownership.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.to_owned"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#87">Source</a><a·href="#method.to_owned"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../alloc/borrow/trait.ToOwned.html#tymethod.to_owned"·class="fn">to_owned</a>(&amp;self)·-&gt;·T</h4></section></summary><div·class='docblock'>Creates·owned·data·from·borrowed·data,·usually·by·cloning.·<a·href="../../alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#91">Source</a><a·href="#method.clone_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../alloc/borrow/trait.ToOwned.html#method.clone_into"·class="fn">clone_into</a>(&amp;self,·target:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../../alloc/borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToString-for-T"·class="impl"><a·class="src·rightside"·href="../../src/alloc/string.rs.html#2677">Source</a><a·href="#impl-ToString-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../alloc/string/trait.ToString.html"·title="trait·alloc::string::ToString">ToString</a>·for·T<div·class="where">where13 ····T:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#86">Source</a><a·href="#associatedtype.Owned"·class="anchor">§</a><h4·class="code-header">type·<a·href="../../alloc/borrow/trait.ToOwned.html#associatedtype.Owned"·class="associatedtype">Owned</a>·=·T</h4></section></summary><div·class='docblock'>The·resulting·type·after·obtaining·ownership.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.to_owned"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#87">Source</a><a·href="#method.to_owned"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../alloc/borrow/trait.ToOwned.html#tymethod.to_owned"·class="fn">to_owned</a>(&amp;self)·-&gt;·T</h4></section></summary><div·class='docblock'>Creates·owned·data·from·borrowed·data,·usually·by·cloning.·<a·href="../../alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#91">Source</a><a·href="#method.clone_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../alloc/borrow/trait.ToOwned.html#method.clone_into"·class="fn">clone_into</a>(&amp;self,·target:·<a·class="primitive"·href="../../std/primitive.reference.html">&amp;mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../../alloc/borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToString-for-T"·class="impl"><a·class="src·rightside"·href="../../src/alloc/string.rs.html#2677">Source</a><a·href="#impl-ToString-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../alloc/string/trait.ToString.html"·title="trait·alloc::string::ToString">ToString</a>·for·T<div·class="where">where
14 ····T:·<a·class="trait"·href="../../core/fmt/trait.Display.html"·title="trait·core::fmt::Display">Display</a>·+·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.to_string"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/alloc/string.rs.html#2683">Source</a><a·href="#method.to_string"·class="anchor">§</a><h4·class="code-header">default·fn·<a·href="../../alloc/string/trait.ToString.html#tymethod.to_string"·class="fn">to_string</a>(&amp;self)·-&gt;·<a·class="struct"·href="../../alloc/string/struct.String.html"·title="struct·alloc::string::String">String</a></h4></section></summary><div·class='docblock'>Converts·the·given·value·to·a·<code>String</code>.·<a·href="../../alloc/string/trait.ToString.html#tymethod.to_string">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#805-807">Source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where14 ····T:·<a·class="trait"·href="../../core/fmt/trait.Display.html"·title="trait·core::fmt::Display">Display</a>·+·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.to_string"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/alloc/string.rs.html#2683">Source</a><a·href="#method.to_string"·class="anchor">§</a><h4·class="code-header">default·fn·<a·href="../../alloc/string/trait.ToString.html#tymethod.to_string"·class="fn">to_string</a>(&amp;self)·-&gt;·<a·class="struct"·href="../../alloc/string/struct.String.html"·title="struct·alloc::string::String">String</a></h4></section></summary><div·class='docblock'>Converts·the·given·value·to·a·<code>String</code>.·<a·href="../../alloc/string/trait.ToString.html#tymethod.to_string">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#805-807">Source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where
15 ····U:·<a·class="trait"·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#809">Source</a><a·href="#associatedtype.Error-1"·class="anchor">§</a><h4·class="code-header">type·<a·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<a·class="enum"·href="../../core/convert/enum.Infallible.html"·title="enum·core::convert::Infallible">Infallible</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_from"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#812">Source</a><a·href="#method.try_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.TryFrom.html#tymethod.try_from"·class="fn">try_from</a>(value:·U)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;T,·&lt;T·as·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;&gt;::<a·class="associatedtype"·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryInto%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#790-792">Source</a><a·href="#impl-TryInto%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where15 ····U:·<a·class="trait"·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#809">Source</a><a·href="#associatedtype.Error-1"·class="anchor">§</a><h4·class="code-header">type·<a·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<a·class="enum"·href="../../core/convert/enum.Infallible.html"·title="enum·core::convert::Infallible">Infallible</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_from"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#812">Source</a><a·href="#method.try_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.TryFrom.html#tymethod.try_from"·class="fn">try_from</a>(value:·U)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;T,·&lt;T·as·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;&gt;::<a·class="associatedtype"·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryInto%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#790-792">Source</a><a·href="#impl-TryInto%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where
16 ····U:·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#794">Source</a><a·href="#associatedtype.Error"·class="anchor">§</a><h4·class="code-header">type·<a·href="../../core/convert/trait.TryInto.html#associatedtype.Error"·class="associatedtype">Error</a>·=·&lt;U·as·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#797">Source</a><a·href="#method.try_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.TryInto.html#tymethod.try_into"·class="fn">try_into</a>(self)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;U,·&lt;U·as·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>16 ····U:·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#794">Source</a><a·href="#associatedtype.Error"·class="anchor">§</a><h4·class="code-header">type·<a·href="../../core/convert/trait.TryInto.html#associatedtype.Error"·class="associatedtype">Error</a>·=·&lt;U·as·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#797">Source</a><a·href="#method.try_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.TryInto.html#tymethod.try_into"·class="fn">try_into</a>(self)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;U,·&lt;U·as·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>
51.2 KB
./usr/share/doc/rust-doc/html/test/test/struct.TestId.html
    
Offset 1, 16 lines modifiedOffset 1, 16 lines modified
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="API·documentation·for·the·Rust·`TestId`·struct·in·crate·`test`."><title>TestId·in·test::test·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="test"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../test/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../test/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../test/index.html">test</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»  2025-01-07)»       (built» from»     a»    source»      tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">TestId</a></h2><h3><a·href="#fields">Tuple·Fields</a></h3><ul·class="block·structfield"><li><a·href="#structfield.0"·title="0">0</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-TestId"·title="Clone">Clone</a></li><li><a·href="#impl-Copy-for-TestId"·title="Copy">Copy</a></li><li><a·href="#impl-Debug-for-TestId"·title="Debug">Debug</a></li><li><a·href="#impl-Eq-for-TestId"·title="Eq">Eq</a></li><li><a·href="#impl-Hash-for-TestId"·title="Hash">Hash</a></li><li><a·href="#impl-PartialEq-for-TestId"·title="PartialEq">PartialEq</a></li><li><a·href="#impl-StructuralPartialEq-for-TestId"·title="StructuralPartialEq">StructuralPartialEq</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-TestId"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-TestId"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-TestId"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-TestId"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-TestId"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-TestId"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·test::<wbr>test</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">test</a>::<wbr><a·href="index.html">test</a></span><h1>Struct·<span·class="struct">TestId</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/test/types.rs.html#192">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·TestId(pub·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.usize.html">usize</a>);</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><h2·id="[·...·truncated·by·diffoscope;·len:·5582,·SHA:·fddc56c3dc57f1a462476bdabc7d3f948ba66922cd3307609615aec1df893945·...·]/std/primitive.reference.html">&amp;mut·H</a>)<div·class="where">where1 <!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="API·documentation·for·the·Rust·`TestId`·struct·in·crate·`test`."><title>TestId·in·test::test·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="test"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../test/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../test/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../test/index.html">test</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»  2025-01-07)»       (built» from»     a»    source»      tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">TestId</a></h2><h3><a·href="#fields">Tuple·Fields</a></h3><ul·class="block·structfield"><li><a·href="#structfield.0"·title="0">0</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-TestId"·title="Clone">Clone</a></li><li><a·href="#impl-Copy-for-TestId"·title="Copy">Copy</a></li><li><a·href="#impl-Debug-for-TestId"·title="Debug">Debug</a></li><li><a·href="#impl-Eq-for-TestId"·title="Eq">Eq</a></li><li><a·href="#impl-Hash-for-TestId"·title="Hash">Hash</a></li><li><a·href="#impl-PartialEq-for-TestId"·title="PartialEq">PartialEq</a></li><li><a·href="#impl-StructuralPartialEq-for-TestId"·title="StructuralPartialEq">StructuralPartialEq</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-TestId"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-TestId"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-TestId"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-TestId"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-TestId"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-TestId"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·test::<wbr>test</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">test</a>::<wbr><a·href="index.html">test</a></span><h1>Struct·<span·class="struct">TestId</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/test/types.rs.html#192">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·TestId(pub·<a·class="primitive"·href="../../std/primitive.usize.html">usize</a>);</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><h2·id="fields"·class="fields·secti[·...·truncated·by·diffoscope;·len:·5474,·SHA:·94f80f3efcf9b07bd359fabe8c46aabcb136bb24b7e66f4574badc1e377eb287·...·]/std/primitive.reference.html">&amp;mut·H</a>)<div·class="where">where
2 ····H:·<a·class="trait"·href="../../core/hash/trait.Hasher.html"·title="trait·core::hash::Hasher">Hasher</a>,2 ····H:·<a·class="trait"·href="../../core/hash/trait.Hasher.html"·title="trait·core::hash::Hasher">Hasher</a>,
3 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Feeds·a·slice·of·this·type·into·the·given·<a·href="../../core/hash/trait.Hasher.html"·title="trait·core::hash::Hasher"><code>Hasher</code></a>.·<a·href="../../core/hash/trait.Hash.html#method.hash_slice">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-PartialEq-for-TestId"·class="impl"><a·class="src·rightside"·href="../../src/test/types.rs.html#191">Source</a><a·href="#impl-PartialEq-for-TestId"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/cmp/trait.PartialEq.html"·title="trait·core::cmp::PartialEq">PartialEq</a>·for·<a·class="struct"·href="struct.TestId.html"·title="struct·test::test::TestId">TestId</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.eq"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/test/types.rs.html#191">Source</a><a·href="#method.eq"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/cmp/trait.PartialEq.html#tymethod.eq"·class="fn">eq</a>(&amp;self,·other:·&amp;<a·class="struct"·href="struct.TestId.html"·title="struct·test::test::TestId">TestId</a>)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>self</code>·and·<code>other</code>·values·to·be·equal,·and·is·used·by·<code>==</code>.</div></details><details·class="toggle·me[·...·truncated·by·diffoscope;·len:·575,·SHA:·24e5a6b6f07d6dccde1f4f31a2d320251328cc5b8476dbf860d00dba4bc89363·...·]/std/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>!=</code>.·The·default·implementation·is·almost·always·sufficient,3 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Feeds·a·slice·of·this·type·into·the·given·<a·href="../../core/hash/trait.Hasher.html"·title="trait·core::hash::Hasher"><code>Hasher</code></a>.·<a·href="../../core/hash/trait.Hash.html#method.hash_slice">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-PartialEq-for-TestId"·class="impl"><a·class="src·rightside"·href="../../src/test/types.rs.html#191">Source</a><a·href="#impl-PartialEq-for-TestId"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/cmp/trait.PartialEq.html"·title="trait·core::cmp::PartialEq">PartialEq</a>·for·<a·class="struct"·href="struct.TestId.html"·title="struct·test::test::TestId">TestId</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.eq"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/test/types.rs.html#191">Source</a><a·href="#method.eq"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/cmp/trait.PartialEq.html#tymethod.eq"·class="fn">eq</a>(&amp;self,·other:·&amp;<a·class="struct"·href="struct.TestId.html"·title="struct·test::test::TestId">TestId</a>)·-&gt;·<a·class="primitive"·href="../../std/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>self</code>·and·<code>other</code>·values·to·be·equal,·and·is·used·by·<code>==</code>.</div></details><details·class="toggle·method-toggle"·open><summary>[·...·truncated·by·diffoscope;·len:·494,·SHA:·db76c2d93beea7efa856fa6578fe817b3591880dfa224bd5e9c9e64062908aa1·...·]/std/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>!=</code>.·The·default·implementation·is·almost·always·sufficient,
4 and·should·not·be·overridden·without·very·good·reason.</div></details></div></details><section·id="impl-Copy-for-TestId"·class="impl"><a·class="src·rightside"·href="../../src/test/types.rs.html#191">Source</a><a·href="#impl-Copy-for-TestId"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Copy.html"·title="trait·core::marker::Copy">Copy</a>·for·<a·class="struct"·href="struct.TestId.html"·title="struct·test::test::TestId">TestId</a></h3></section><section·id="impl-Eq-for-TestId"·class="impl"><a·class="src·rightside"·href="../../src/test/types.rs.html#191">Source</a><a·href="#impl-Eq-for-TestId"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/cmp/trait.Eq.html"·title="trait·core::cmp::Eq">Eq</a>·for·<a·class="struct"·href="struct.TestId.html"·title="struct·test::test::TestId">TestId</a></h3></section><section·id="impl-StructuralPartialEq-for-TestId"·class="impl"><a·class="src·rightside"·href="../../src/test/types.rs.html#191">Source</a><a·href="#impl-StructuralPartialEq-for-TestId"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.StructuralPartialEq.html"·title="trait·core::marker::StructuralPartialEq">StructuralPartialEq</a>·for·<a·class="struct"·href="struct.TestId.html"·title="struct·test::test::TestId">TestId</a></h3></section></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-TestId"·class="impl"><a·href="#impl-Freeze-for-TestId"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="struct"·href="struct.TestId.html"·title="struct·test::test::TestId">TestId</a></h3></section><section·id="impl-RefUnwindSafe-for-TestId"·class="impl"><a·href="#impl-RefUnwindSafe-for-TestId"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="struct"·href="struct.TestId.html"·title="struct·test::test::TestId">TestId</a></h3></section><section·id="impl-Send-for-TestId"·class="impl"><a·href="#impl-Send-for-TestId"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="struct"·href="struct.TestId.html"·title="struct·test::test::TestId">TestId</a></h3></section><section·id="impl-Sync-for-TestId"·class="impl"><a·href="#impl-Sync-for-TestId"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="struct"·href="struct.TestId.html"·title="struct·test::test::TestId">TestId</a></h3></section><section·id="impl-Unpin-for-TestId"·class="impl"><a·href="#impl-Unpin-for-TestId"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="struct"·href="struct.TestId.html"·title="struct·test::test::TestId">TestId</a></h3></section><section·id="impl-UnwindSafe-for-TestId"·class="impl"><a·href="#impl-UnwindSafe-for-TestId"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="struct"·href="struct.TestId.html"·title="struct·test::test::TestId">TestId</a></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementations<a·href="#blanket-implementations"·class="anchor">§</a></h2><div·id="blanket-implementations-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-Any-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/any.rs.html#138">Source</a><a·href="#impl-Any-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where4 and·should·not·be·overridden·without·very·good·reason.</div></details></div></details><section·id="impl-Copy-for-TestId"·class="impl"><a·class="src·rightside"·href="../../src/test/types.rs.html#191">Source</a><a·href="#impl-Copy-for-TestId"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Copy.html"·title="trait·core::marker::Copy">Copy</a>·for·<a·class="struct"·href="struct.TestId.html"·title="struct·test::test::TestId">TestId</a></h3></section><section·id="impl-Eq-for-TestId"·class="impl"><a·class="src·rightside"·href="../../src/test/types.rs.html#191">Source</a><a·href="#impl-Eq-for-TestId"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/cmp/trait.Eq.html"·title="trait·core::cmp::Eq">Eq</a>·for·<a·class="struct"·href="struct.TestId.html"·title="struct·test::test::TestId">TestId</a></h3></section><section·id="impl-StructuralPartialEq-for-TestId"·class="impl"><a·class="src·rightside"·href="../../src/test/types.rs.html#191">Source</a><a·href="#impl-StructuralPartialEq-for-TestId"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.StructuralPartialEq.html"·title="trait·core::marker::StructuralPartialEq">StructuralPartialEq</a>·for·<a·class="struct"·href="struct.TestId.html"·title="struct·test::test::TestId">TestId</a></h3></section></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-TestId"·class="impl"><a·href="#impl-Freeze-for-TestId"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="struct"·href="struct.TestId.html"·title="struct·test::test::TestId">TestId</a></h3></section><section·id="impl-RefUnwindSafe-for-TestId"·class="impl"><a·href="#impl-RefUnwindSafe-for-TestId"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="struct"·href="struct.TestId.html"·title="struct·test::test::TestId">TestId</a></h3></section><section·id="impl-Send-for-TestId"·class="impl"><a·href="#impl-Send-for-TestId"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="struct"·href="struct.TestId.html"·title="struct·test::test::TestId">TestId</a></h3></section><section·id="impl-Sync-for-TestId"·class="impl"><a·href="#impl-Sync-for-TestId"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="struct"·href="struct.TestId.html"·title="struct·test::test::TestId">TestId</a></h3></section><section·id="impl-Unpin-for-TestId"·class="impl"><a·href="#impl-Unpin-for-TestId"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="struct"·href="struct.TestId.html"·title="struct·test::test::TestId">TestId</a></h3></section><section·id="impl-UnwindSafe-for-TestId"·class="impl"><a·href="#impl-UnwindSafe-for-TestId"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="struct"·href="struct.TestId.html"·title="struct·test::test::TestId">TestId</a></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementations<a·href="#blanket-implementations"·class="anchor">§</a></h2><div·id="blanket-implementations-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-Any-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/any.rs.html#138">Source</a><a·href="#impl-Any-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where
5 ····T:·'static·+·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/any.rs.html#139">Source</a><a·href="#method.type_id"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/any/trait.Any.html#tymethod.type_id"·class="fn">type_id</a>(&amp;self)·-&gt;·<a·class="struct"·href="../../core/any/struct.TypeId.html"·title="struct·core::any::TypeId">TypeId</a></h4></section></summary><div·class='docblock'>Gets·the·<code>TypeId</code>·of·<code>self</code>.·<a·href="../../core/any/trait.Any.html#tymethod.type_id">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Borrow%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/borrow/trait.Borrow.html"·title="trait·core::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where5 ····T:·'static·+·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/any.rs.html#139">Source</a><a·href="#method.type_id"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/any/trait.Any.html#tymethod.type_id"·class="fn">type_id</a>(&amp;self)·-&gt;·<a·class="struct"·href="../../core/any/struct.TypeId.html"·title="struct·core::any::TypeId">TypeId</a></h4></section></summary><div·class='docblock'>Gets·the·<code>TypeId</code>·of·<code>self</code>.·<a·href="../../core/any/trait.Any.html#tymethod.type_id">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Borrow%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/borrow/trait.Borrow.html"·title="trait·core::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where
6 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#211">Source</a><a·href="#method.borrow"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/borrow/trait.Borrow.html#tymethod.borrow"·class="fn">borrow</a>(&amp;self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;T</a></h4></section></summary><div·class='docblock'>Immutably·borrows·from·an·owned·value.·<a·href="../../core/borrow/trait.Borrow.html#tymethod.borrow">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-BorrowMut%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/borrow/trait.BorrowMut.html"·title="trait·core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where6 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#211">Source</a><a·href="#method.borrow"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/borrow/trait.Borrow.html#tymethod.borrow"·class="fn">borrow</a>(&amp;self)·-&gt;·<a·class="primitive"·href="../../std/primitive.reference.html">&amp;T</a></h4></section></summary><div·class='docblock'>Immutably·borrows·from·an·owned·value.·<a·href="../../core/borrow/trait.Borrow.html#tymethod.borrow">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-BorrowMut%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/borrow/trait.BorrowMut.html"·title="trait·core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where
7 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#218">Source</a><a·href="#method.borrow_mut"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"·class="fn">borrow_mut</a>(&amp;mut·self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;mut·T</a></h4></section></summary><div·class='docblock'>Mutably·borrows·from·an·owned·value.·<a·href="../../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-CloneToUninit-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/clone.rs.html#273">Source</a><a·href="#impl-CloneToUninit-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where7 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#218">Source</a><a·href="#method.borrow_mut"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"·class="fn">borrow_mut</a>(&amp;mut·self)·-&gt;·<a·class="primitive"·href="../../std/primitive.reference.html">&amp;mut·T</a></h4></section></summary><div·class='docblock'>Mutably·borrows·from·an·owned·value.·<a·href="../../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-CloneToUninit-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/clone.rs.html#273">Source</a><a·href="#impl-CloneToUninit-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where
8 ····T:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/clone.rs.html#275">Source</a><a·href="#method.clone_to_uninit"·class="anchor">§</a><h4·class="code-header">unsafe·fn·<a·href="../../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit"·class="fn">clone_to_uninit</a>(&amp;self,·dst:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.pointer.html">*mut·</a><a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.u8.html">u8</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>clone_to_uninit</code>)</span></div></span><div·class='docblock'>Performs·copy-assignment·from·<code>self</code>·to·<code>dst</code>.·<a·href="../../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-From%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#765">Source</a><a·href="#impl-From%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·T</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#768">Source</a><a·href="#method.from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>8 ····T:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/clone.rs.html#275">Source</a><a·href="#method.clone_to_uninit"·class="anchor">§</a><h4·class="code-header">unsafe·fn·<a·href="../../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit"·class="fn">clone_to_uninit</a>(&amp;self,·dst:·<a·class="primitive"·href="../../std/primitive.pointer.html">*mut·</a><a·class="primitive"·href="../../std/primitive.u8.html">u8</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>clone_to_uninit</code>)</span></div></span><div·class='docblock'>Performs·copy-assignment·from·<code>self</code>·to·<code>dst</code>.·<a·href="../../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-From%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#765">Source</a><a·href="#impl-From%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·T</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#768">Source</a><a·href="#method.from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>
9 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where9 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where
10 ····U:·<a·class="trait"·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#758">Source</a><a·href="#method.into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>10 ····U:·<a·class="trait"·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#758">Source</a><a·href="#method.into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>
11 <p>That·is,·this·conversion·is·whatever·the·implementation·of11 <p>That·is,·this·conversion·is·whatever·the·implementation·of
12 <code><a·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>12 <code><a·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>
13 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#82-84">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../alloc/borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where13 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#82-84">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../alloc/borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where
14 ····T:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#86">Source</a><a·href="#associatedtype.Owned"·class="anchor">§</a><h4·class="code-header">type·<a·href="../../alloc/borrow/trait.ToOwned.html#associatedtype.Owned"·class="associatedtype">Owned</a>·=·T</h4></section></summary><div·class='docblock'>The·resulting·type·after·obtaining·ownership.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.to_owned"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#87">Source</a><a·href="#method.to_owned"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../alloc/borrow/trait.ToOwned.html#tymethod.to_owned"·class="fn">to_owned</a>(&amp;self)·-&gt;·T</h4></section></summary><div·class='docblock'>Creates·owned·data·from·borrowed·data,·usually·by·cloning.·<a·href="../../alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#91">Source</a><a·href="#method.clone_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../alloc/borrow/trait.ToOwned.html#method.clone_into"·class="fn">clone_into</a>(&amp;self,·target:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../../alloc/borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#805-807">Source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where14 ····T:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#86">Source</a><a·href="#associatedtype.Owned"·class="anchor">§</a><h4·class="code-header">type·<a·href="../../alloc/borrow/trait.ToOwned.html#associatedtype.Owned"·class="associatedtype">Owned</a>·=·T</h4></section></summary><div·class='docblock'>The·resulting·type·after·obtaining·ownership.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.to_owned"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#87">Source</a><a·href="#method.to_owned"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../alloc/borrow/trait.ToOwned.html#tymethod.to_owned"·class="fn">to_owned</a>(&amp;self)·-&gt;·T</h4></section></summary><div·class='docblock'>Creates·owned·data·from·borrowed·data,·usually·by·cloning.·<a·href="../../alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#91">Source</a><a·href="#method.clone_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../alloc/borrow/trait.ToOwned.html#method.clone_into"·class="fn">clone_into</a>(&amp;self,·target:·<a·class="primitive"·href="../../std/primitive.reference.html">&amp;mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../../alloc/borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#805-807">Source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where
15 ····U:·<a·class="trait"·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#809">Source</a><a·href="#associatedtype.Error-1"·class="anchor">§</a><h4·class="code-header">type·<a·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<a·class="enum"·href="../../core/convert/enum.Infallible.html"·title="enum·core::convert::Infallible">Infallible</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_from"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#812">Source</a><a·href="#method.try_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.TryFrom.html#tymethod.try_from"·class="fn">try_from</a>(value:·U)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;T,·&lt;T·as·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;&gt;::<a·class="associatedtype"·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryInto%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#790-792">Source</a><a·href="#impl-TryInto%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where15 ····U:·<a·class="trait"·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#809">Source</a><a·href="#associatedtype.Error-1"·class="anchor">§</a><h4·class="code-header">type·<a·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<a·class="enum"·href="../../core/convert/enum.Infallible.html"·title="enum·core::convert::Infallible">Infallible</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_from"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#812">Source</a><a·href="#method.try_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.TryFrom.html#tymethod.try_from"·class="fn">try_from</a>(value:·U)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;T,·&lt;T·as·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;&gt;::<a·class="associatedtype"·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryInto%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#790-792">Source</a><a·href="#impl-TryInto%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where
16 ····U:·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#794">Source</a><a·href="#associatedtype.Error"·class="anchor">§</a><h4·class="code-header">type·<a·href="../../core/convert/trait.TryInto.html#associatedtype.Error"·class="associatedtype">Error</a>·=·&lt;U·as·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#797">Source</a><a·href="#method.try_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.TryInto.html#tymethod.try_into"·class="fn">try_into</a>(self)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;U,·&lt;U·as·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>16 ····U:·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#794">Source</a><a·href="#associatedtype.Error"·class="anchor">§</a><h4·class="code-header">type·<a·href="../../core/convert/trait.TryInto.html#associatedtype.Error"·class="associatedtype">Error</a>·=·&lt;U·as·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#797">Source</a><a·href="#method.try_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.TryInto.html#tymethod.try_into"·class="fn">try_into</a>(self)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;U,·&lt;U·as·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>
51.3 KB
./usr/share/doc/rust-doc/html/test/test/struct.TestOpts.html
    
Offset 1, 34 lines modifiedOffset 1, 34 lines modified
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="API·documentation·for·the·Rust·`TestOpts`·struct·in·crate·`test`."><title>TestOpts·in·test::test·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="test"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../test/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../test/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../test/index.html">test</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»      2025-01-07)»   (built»     from» a»source»  tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Test<wbr>Opts</a></h2><h3><a·href="#fields">Fields</a></h3><ul·class="block·structfield"><li><a·href="#structfield.bench_benchmarks"·title="bench_benchmarks">bench_benchmarks</a></li><li><a·href="#structfield.color"·title="color">color</a></li><li><a·href="#structfield.exclude_should_panic"·title="exclude_should_panic">exclude_should_panic</a></li><li><a·href="#structfield.fail_fast"·title="fail_fast">fail_fast</a></li><li><a·href="#structfield.filter_exact"·title="filter_exact">filter_exact</a></li><li><a·href="#structfield.filters"·title="filters">filters</a></li><li><a·href="#structfield.force_run_in_process"·title="force_run_in_process">force_run_in_process</a></li><li><a·href="#structfield.format"·title="format">format</a></li><li><a·href="#structfield.list"·title="list">list</a></li><li><a·href="#structfield.logfile"·title="logfile">logfile</a></li><li><a·href="#structfield.nocapture"·title="nocapture">nocapture</a></li><li><a·href="#structfield.options"·title="options">options</a></li><li><a·href="#structfield.run_ignored"·title="run_ignored">run_ignored</a></li><li><a·href="#structfield.run_tests"·title="run_tests">run_tests</a></li><li><a·href="#structfield.shuffle"·title="shuffle">shuffle</a></li><li><a·href="#structfield.shuffle_seed"·title="shuffle_seed">shuffle_seed</a></li><li><a·href="#structfield.skip"·title="skip">skip</a></li><li><a·href="#structfield.test_threads"·title="test_threads">test_threads</a></li><li><a·href="#structfield.time_options"·title="time_options">time_options</a></li></ul><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.use_color"·title="use_color">use_color</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Debug-for-TestOpts"·title="Debug">Debug</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-TestOpts"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-TestOpts"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-TestOpts"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-TestOpts"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-TestOpts"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-TestOpts"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·test::<wbr>test</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">test</a>::<wbr><a·href="index.html">test</a></span><h1>Struct·<span·class="struct">TestOpts</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/test/cli.rs.html#11-34">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·TestOpts·{<details·class="toggle·type-contents-toggle"><summary·class="hideme"><span>Show·19·fields</span></summary>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="API·documentation·for·the·Rust·`TestOpts`·struct·in·crate·`test`."><title>TestOpts·in·test::test·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="test"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../test/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../test/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../test/index.html">test</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»      2025-01-07)»   (built»     from» a»source»  tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Test<wbr>Opts</a></h2><h3><a·href="#fields">Fields</a></h3><ul·class="block·structfield"><li><a·href="#structfield.bench_benchmarks"·title="bench_benchmarks">bench_benchmarks</a></li><li><a·href="#structfield.color"·title="color">color</a></li><li><a·href="#structfield.exclude_should_panic"·title="exclude_should_panic">exclude_should_panic</a></li><li><a·href="#structfield.fail_fast"·title="fail_fast">fail_fast</a></li><li><a·href="#structfield.filter_exact"·title="filter_exact">filter_exact</a></li><li><a·href="#structfield.filters"·title="filters">filters</a></li><li><a·href="#structfield.force_run_in_process"·title="force_run_in_process">force_run_in_process</a></li><li><a·href="#structfield.format"·title="format">format</a></li><li><a·href="#structfield.list"·title="list">list</a></li><li><a·href="#structfield.logfile"·title="logfile">logfile</a></li><li><a·href="#structfield.nocapture"·title="nocapture">nocapture</a></li><li><a·href="#structfield.options"·title="options">options</a></li><li><a·href="#structfield.run_ignored"·title="run_ignored">run_ignored</a></li><li><a·href="#structfield.run_tests"·title="run_tests">run_tests</a></li><li><a·href="#structfield.shuffle"·title="shuffle">shuffle</a></li><li><a·href="#structfield.shuffle_seed"·title="shuffle_seed">shuffle_seed</a></li><li><a·href="#structfield.skip"·title="skip">skip</a></li><li><a·href="#structfield.test_threads"·title="test_threads">test_threads</a></li><li><a·href="#structfield.time_options"·title="time_options">time_options</a></li></ul><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.use_color"·title="use_color">use_color</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Debug-for-TestOpts"·title="Debug">Debug</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-TestOpts"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-TestOpts"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-TestOpts"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-TestOpts"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-TestOpts"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-TestOpts"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·test::<wbr>test</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">test</a>::<wbr><a·href="index.html">test</a></span><h1>Struct·<span·class="struct">TestOpts</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/test/cli.rs.html#11-34">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·TestOpts·{<details·class="toggle·type-contents-toggle"><summary·class="hideme"><span>Show·19·fields</span></summary>
2 ····pub·list:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>,2 ····pub·list:·<a·class="primitive"·href="../../std/primitive.bool.html">bool</a>,
3 ····pub·filters:·<a·class="struct"·href="../../alloc/vec/struct.Vec.html"·title="struct·alloc::vec::Vec">Vec</a>&lt;<a·class="struct"·href="../../alloc/string/struct.String.html"·title="struct·alloc::string::String">String</a>&gt;,3 ····pub·filters:·<a·class="struct"·href="../../alloc/vec/struct.Vec.html"·title="struct·alloc::vec::Vec">Vec</a>&lt;<a·class="struct"·href="../../alloc/string/struct.String.html"·title="struct·alloc::string::String">String</a>&gt;,
4 ····pub·filter_exact:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>,4 ····pub·filter_exact:·<a·class="primitive"·href="../../std/primitive.bool.html">bool</a>,
5 ····pub·force_run_in_process:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>,5 ····pub·force_run_in_process:·<a·class="primitive"·href="../../std/primitive.bool.html">bool</a>,
6 ····pub·exclude_should_panic:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>,6 ····pub·exclude_should_panic:·<a·class="primitive"·href="../../std/primitive.bool.html">bool</a>,
7 ····pub·run_ignored:·<a·class="enum"·href="enum.RunIgnored.html"·title="enum·test::test::RunIgnored">RunIgnored</a>,7 ····pub·run_ignored:·<a·class="enum"·href="enum.RunIgnored.html"·title="enum·test::test::RunIgnored">RunIgnored</a>,
8 ····pub·run_tests:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>,8 ····pub·run_tests:·<a·class="primitive"·href="../../std/primitive.bool.html">bool</a>,
9 ····pub·bench_benchmarks:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>,9 ····pub·bench_benchmarks:·<a·class="primitive"·href="../../std/primitive.bool.html">bool</a>,
10 ····pub·logfile:·<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="struct"·href="https://doc.rust-lang.org/1.84.0/std/path/struct.PathBuf.html"·title="struct·std::path::PathBuf">PathBuf</a>&gt;,10 ····pub·logfile:·<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="struct"·href="../../std/path/struct.PathBuf.html"·title="struct·std::path::PathBuf">PathBuf</a>&gt;,
11 ····pub·nocapture:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>,11 ····pub·nocapture:·<a·class="primitive"·href="../../std/primitive.bool.html">bool</a>,
12 ····pub·color:·<a·class="enum"·href="../enum.ColorConfig.html"·title="enum·test::ColorConfig">ColorConfig</a>,12 ····pub·color:·<a·class="enum"·href="../enum.ColorConfig.html"·title="enum·test::ColorConfig">ColorConfig</a>,
13 ····pub·format:·<a·class="enum"·href="../enum.OutputFormat.html"·title="enum·test::OutputFormat">OutputFormat</a>,13 ····pub·format:·<a·class="enum"·href="../enum.OutputFormat.html"·title="enum·test::OutputFormat">OutputFormat</a>,
14 ····pub·shuffle:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>,14 ····pub·shuffle:·<a·class="primitive"·href="../../std/primitive.bool.html">bool</a>,
15 ····pub·shuffle_seed:·<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.u64.html">u64</a>&gt;,15 ····pub·shuffle_seed:·<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="../../std/primitive.u64.html">u64</a>&gt;,
16 ····pub·test_threads:·<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.usize.html">usize</a>&gt;,16 ····pub·test_threads:·<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="../../std/primitive.usize.html">usize</a>&gt;,
17 ····pub·skip:·<a·class="struct"·href="../../alloc/vec/struct.Vec.html"·title="struct·alloc::vec::Vec">Vec</a>&lt;<a·class="struct"·href="../../alloc/string/struct.String.html"·title="struct·alloc::string::String">String</a>&gt;,17 ····pub·skip:·<a·class="struct"·href="../../alloc/vec/struct.Vec.html"·title="struct·alloc::vec::Vec">Vec</a>&lt;<a·class="struct"·href="../../alloc/string/struct.String.html"·title="struct·alloc::string::String">String</a>&gt;,
18 ····pub·time_options:·<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="struct"·href="struct.TestTimeOptions.html"·title="struct·test::test::TestTimeOptions">TestTimeOptions</a>&gt;,18 ····pub·time_options:·<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="struct"·href="struct.TestTimeOptions.html"·title="struct·test::test::TestTimeOptions">TestTimeOptions</a>&gt;,
19 ····pub·fail_fast:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>,19 ····pub·fail_fast:·<a·class="primitive"·href="../../std/primitive.bool.html">bool</a>,
20 ····pub·options:·<a·class="struct"·href="struct.Options.html"·title="struct·test::test::Options">Options</a>,20 ····pub·options:·<a·class="struct"·href="struct.Options.html"·title="struct·test::test::Options">Options</a>,
21 </details>}</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><h2·id="fields"·class="fields·section-header">Fields<a·href="#fields"·class="anchor">§</a></h2><span·id="structfield.list"·class="structfield·section-header"><a·href="#structfield.list"·class="anchor·field">§</a><code>list:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a></code></span><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><span·id="s[·...·truncated·by·diffoscope;·len:·7670,·SHA:·c50d587aa019c0751b4a1cbd038ea5caefbe3bfd879281a3be3f950ef854189e·...·]/std/primitive.bool.html">bool</a></code></span><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><div·class="docblock"><p>Stop·at·first·failing·test.21 </details>}</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><h2·id="fields"·class="fields·section-header">Fields<a·href="#fields"·class="anchor">§</a></h2><span·id="structfield.list"·class="structfield·section-header"><a·href="#structfield.list"·class="anchor·field">§</a><code>list:·<a·class="primitive"·href="../../std/primitive.bool.html">bool</a></code></span><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><span·id="structfield.filters"·class="[·...·truncated·by·diffoscope;·len:·7346,·SHA:·2be790658712c529af673ae5a3aa64b653f07c13a620b390f833fc48988734d6·...·]/std/primitive.bool.html">bool</a></code></span><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><div·class="docblock"><p>Stop·at·first·failing·test.
22 May·run·a·few·more·tests·due·to·threading,·but·will22 May·run·a·few·more·tests·due·to·threading,·but·will
23 abort·as·soon·as·possible.</p>23 abort·as·soon·as·possible.</p>
24 </div><span·id="structfield.options"·class="structfield·section-header"><a·href="#structfield.options"·class="anchor·field">§</a><code>options:·<a·class="struct"·href="struct.Options.html"·title="struct·test::test::Options">Options</a></code></span><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-TestOpts"·class="impl"><a·class="src·rightside"·href="../../src/test/cli.rs.html#36-44">Source</a><a·href="#impl-TestOpts"·class="anchor">§</a><h3·class="code-header">impl·<a·class="struct"·href="struct.TestOpts.html"·title="struct·test::test::TestOpts">TestOpts</a></h3></section></summary><div·class="impl-items"><section·id="method.use_color"·class="method"><a·class="src·rightside"·href="../../src/test/cli.rs.html#37-43">Source</a><h4·class="code-header">pub·fn·<a·href="#method.use_color"·class="fn">use_color</a>(&amp;self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-TestOpts"·class="impl"><a·class="src·rightside"·href="../../src/test/cli.rs.html#10">Source</a><a·href="#impl-Debug-for-TestOpts"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/fmt/trait.Debug.html"·title="trait·core::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.TestOpts.html"·title="struct·test::test::TestOpts">TestOpts</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/test/cli.rs.html#10">Source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="../../core/fmt/struct.Formatter.html"·title="struct·core::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="type"·href="../../core/fmt/type.Result.html"·title="type·core::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../../core/fmt/trait.Debug.html#tymethod.fmt">Read·more</a></div></details></div></details></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-TestOpts"·class="impl"><a·href="#impl-Freeze-for-TestOpts"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="struct"·href="struct.TestOpts.html"·title="struct·test::test::TestOpts">TestOpts</a></h3></section><section·id="impl-RefUnwindSafe-for-TestOpts"·class="impl"><a·href="#impl-RefUnwindSafe-for-TestOpts"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="struct"·href="struct.TestOpts.html"·title="struct·test::test::TestOpts">TestOpts</a></h3></section><section·id="impl-Send-for-TestOpts"·class="impl"><a·href="#impl-Send-for-TestOpts"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="struct"·href="struct.TestOpts.html"·title="struct·test::test::TestOpts">TestOpts</a></h3></section><section·id="impl-Sync-for-TestOpts"·class="impl"><a·href="#impl-Sync-for-TestOpts"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="struct"·href="struct.TestOpts.html"·title="struct·test::test::TestOpts">TestOpts</a></h3></section><section·id="impl-Unpin-for-TestOpts"·class="impl"><a·href="#impl-Unpin-for-TestOpts"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="struct"·href="struct.TestOpts.html"·title="struct·test::test::TestOpts">TestOpts</a></h3></section><section·id="impl-UnwindSafe-for-TestOpts"·class="impl"><a·href="#impl-UnwindSafe-for-TestOpts"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="struct"·href="struct.TestOpts.html"·title="struct·test::test::TestOpts">TestOpts</a></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementations<a·href="#blanket-implementations"·class="anchor">§</a></h2><div·id="blanket-implementations-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-Any-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/any.rs.html#138">Source</a><a·href="#impl-Any-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where24 </div><span·id="structfield.options"·class="structfield·section-header"><a·href="#structfield.options"·class="anchor·field">§</a><code>options:·<a·class="struct"·href="struct.Options.html"·title="struct·test::test::Options">Options</a></code></span><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-TestOpts"·class="impl"><a·class="src·rightside"·href="../../src/test/cli.rs.html#36-44">Source</a><a·href="#impl-TestOpts"·class="anchor">§</a><h3·class="code-header">impl·<a·class="struct"·href="struct.TestOpts.html"·title="struct·test::test::TestOpts">TestOpts</a></h3></section></summary><div·class="impl-items"><section·id="method.use_color"·class="method"><a·class="src·rightside"·href="../../src/test/cli.rs.html#37-43">Source</a><h4·class="code-header">pub·fn·<a·href="#method.use_color"·class="fn">use_color</a>(&amp;self)·-&gt;·<a·class="primitive"·href="../../std/primitive.bool.html">bool</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-TestOpts"·class="impl"><a·class="src·rightside"·href="../../src/test/cli.rs.html#10">Source</a><a·href="#impl-Debug-for-TestOpts"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/fmt/trait.Debug.html"·title="trait·core::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.TestOpts.html"·title="struct·test::test::TestOpts">TestOpts</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/test/cli.rs.html#10">Source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="../../core/fmt/struct.Formatter.html"·title="struct·core::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="type"·href="../../core/fmt/type.Result.html"·title="type·core::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../../core/fmt/trait.Debug.html#tymethod.fmt">Read·more</a></div></details></div></details></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-TestOpts"·class="impl"><a·href="#impl-Freeze-for-TestOpts"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="struct"·href="struct.TestOpts.html"·title="struct·test::test::TestOpts">TestOpts</a></h3></section><section·id="impl-RefUnwindSafe-for-TestOpts"·class="impl"><a·href="#impl-RefUnwindSafe-for-TestOpts"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="struct"·href="struct.TestOpts.html"·title="struct·test::test::TestOpts">TestOpts</a></h3></section><section·id="impl-Send-for-TestOpts"·class="impl"><a·href="#impl-Send-for-TestOpts"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="struct"·href="struct.TestOpts.html"·title="struct·test::test::TestOpts">TestOpts</a></h3></section><section·id="impl-Sync-for-TestOpts"·class="impl"><a·href="#impl-Sync-for-TestOpts"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="struct"·href="struct.TestOpts.html"·title="struct·test::test::TestOpts">TestOpts</a></h3></section><section·id="impl-Unpin-for-TestOpts"·class="impl"><a·href="#impl-Unpin-for-TestOpts"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="struct"·href="struct.TestOpts.html"·title="struct·test::test::TestOpts">TestOpts</a></h3></section><section·id="impl-UnwindSafe-for-TestOpts"·class="impl"><a·href="#impl-UnwindSafe-for-TestOpts"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="struct"·href="struct.TestOpts.html"·title="struct·test::test::TestOpts">TestOpts</a></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementations<a·href="#blanket-implementations"·class="anchor">§</a></h2><div·id="blanket-implementations-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-Any-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/any.rs.html#138">Source</a><a·href="#impl-Any-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where
25 ····T:·'static·+·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/any.rs.html#139">Source</a><a·href="#method.type_id"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/any/trait.Any.html#tymethod.type_id"·class="fn">type_id</a>(&amp;self)·-&gt;·<a·class="struct"·href="../../core/any/struct.TypeId.html"·title="struct·core::any::TypeId">TypeId</a></h4></section></summary><div·class='docblock'>Gets·the·<code>TypeId</code>·of·<code>self</code>.·<a·href="../../core/any/trait.Any.html#tymethod.type_id">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Borrow%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/borrow/trait.Borrow.html"·title="trait·core::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where25 ····T:·'static·+·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/any.rs.html#139">Source</a><a·href="#method.type_id"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/any/trait.Any.html#tymethod.type_id"·class="fn">type_id</a>(&amp;self)·-&gt;·<a·class="struct"·href="../../core/any/struct.TypeId.html"·title="struct·core::any::TypeId">TypeId</a></h4></section></summary><div·class='docblock'>Gets·the·<code>TypeId</code>·of·<code>self</code>.·<a·href="../../core/any/trait.Any.html#tymethod.type_id">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Borrow%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/borrow/trait.Borrow.html"·title="trait·core::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where
26 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#211">Source</a><a·href="#method.borrow"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/borrow/trait.Borrow.html#tymethod.borrow"·class="fn">borrow</a>(&amp;self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;T</a></h4></section></summary><div·class='docblock'>Immutably·borrows·from·an·owned·value.·<a·href="../../core/borrow/trait.Borrow.html#tymethod.borrow">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-BorrowMut%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/borrow/trait.BorrowMut.html"·title="trait·core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where26 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#211">Source</a><a·href="#method.borrow"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/borrow/trait.Borrow.html#tymethod.borrow"·class="fn">borrow</a>(&amp;self)·-&gt;·<a·class="primitive"·href="../../std/primitive.reference.html">&amp;T</a></h4></section></summary><div·class='docblock'>Immutably·borrows·from·an·owned·value.·<a·href="../../core/borrow/trait.Borrow.html#tymethod.borrow">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-BorrowMut%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/borrow/trait.BorrowMut.html"·title="trait·core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where
27 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#218">Source</a><a·href="#method.borrow_mut"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"·class="fn">borrow_mut</a>(&amp;mut·self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;mut·T</a></h4></section></summary><div·class='docblock'>Mutably·borrows·from·an·owned·value.·<a·href="../../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-From%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#765">Source</a><a·href="#impl-From%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·T</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#768">Source</a><a·href="#method.from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>27 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#218">Source</a><a·href="#method.borrow_mut"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"·class="fn">borrow_mut</a>(&amp;mut·self)·-&gt;·<a·class="primitive"·href="../../std/primitive.reference.html">&amp;mut·T</a></h4></section></summary><div·class='docblock'>Mutably·borrows·from·an·owned·value.·<a·href="../../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-From%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#765">Source</a><a·href="#impl-From%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·T</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#768">Source</a><a·href="#method.from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>
28 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where28 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where
29 ····U:·<a·class="trait"·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#758">Source</a><a·href="#method.into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>29 ····U:·<a·class="trait"·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#758">Source</a><a·href="#method.into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>
30 <p>That·is,·this·conversion·is·whatever·the·implementation·of30 <p>That·is,·this·conversion·is·whatever·the·implementation·of
31 <code><a·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>31 <code><a·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>
32 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#805-807">Source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where32 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#805-807">Source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where
33 ····U:·<a·class="trait"·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#809">Source</a><a·href="#associatedtype.Error-1"·class="anchor">§</a><h4·class="code-header">type·<a·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<a·class="enum"·href="../../core/convert/enum.Infallible.html"·title="enum·core::convert::Infallible">Infallible</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_from"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#812">Source</a><a·href="#method.try_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.TryFrom.html#tymethod.try_from"·class="fn">try_from</a>(value:·U)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;T,·&lt;T·as·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;&gt;::<a·class="associatedtype"·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryInto%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#790-792">Source</a><a·href="#impl-TryInto%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where33 ····U:·<a·class="trait"·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#809">Source</a><a·href="#associatedtype.Error-1"·class="anchor">§</a><h4·class="code-header">type·<a·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<a·class="enum"·href="../../core/convert/enum.Infallible.html"·title="enum·core::convert::Infallible">Infallible</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_from"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#812">Source</a><a·href="#method.try_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.TryFrom.html#tymethod.try_from"·class="fn">try_from</a>(value:·U)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;T,·&lt;T·as·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;&gt;::<a·class="associatedtype"·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryInto%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#790-792">Source</a><a·href="#impl-TryInto%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where
34 ····U:·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#794">Source</a><a·href="#associatedtype.Error"·class="anchor">§</a><h4·class="code-header">type·<a·href="../../core/convert/trait.TryInto.html#associatedtype.Error"·class="associatedtype">Error</a>·=·&lt;U·as·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#797">Source</a><a·href="#method.try_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.TryInto.html#tymethod.try_into"·class="fn">try_into</a>(self)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;U,·&lt;U·as·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>34 ····U:·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#794">Source</a><a·href="#associatedtype.Error"·class="anchor">§</a><h4·class="code-header">type·<a·href="../../core/convert/trait.TryInto.html#associatedtype.Error"·class="associatedtype">Error</a>·=·&lt;U·as·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#797">Source</a><a·href="#method.try_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.TryInto.html#tymethod.try_into"·class="fn">try_into</a>(self)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;U,·&lt;U·as·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>
52.7 KB
./usr/share/doc/rust-doc/html/test/test/struct.TestTimeOptions.html
    
Offset 1, 22 lines modifiedOffset 1, 22 lines modified
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="Structure·with·parameters·for·calculating·test·execution·time."><title>TestTimeOptions·in·test::test·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="test"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../test/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../test/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../test/index.html">test</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»2025-01-07)»     (built»       from»   a»  source»    tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Test<wbr>Time<wbr>Options</a></h2><h3><a·href="#fields">Fields</a></h3><ul·class="block·structfield"><li><a·href="#structfield.doctest_threshold"·title="doctest_threshold">doctest_threshold</a></li><li><a·href="#structfield.error_on_excess"·title="error_on_excess">error_on_excess</a></li><li><a·href="#structfield.integration_threshold"·title="integration_threshold">integration_threshold</a></li><li><a·href="#structfield.unit_threshold"·title="unit_threshold">unit_threshold</a></li></ul><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.is_critical"·title="is_critical">is_critical</a></li><li><a·href="#method.is_warn"·title="is_warn">is_warn</a></li><li><a·href="#method.new_from_env"·title="new_from_env">new_from_env</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-TestTimeOptions"·title="Clone">Clone</a></li><li><a·href="#impl-Copy-for-TestTimeOptions"·title="Copy">Copy</a></li><li><a·href="#impl-Debug-for-TestTimeOptions"·title="Debug">Debug</a></li><li><a·href="#impl-Default-for-TestTimeOptions"·title="Default">Default</a></li><li><a·href="#impl-Eq-for-TestTimeOptions"·title="Eq">Eq</a></li><li><a·href="#impl-PartialEq-for-TestTimeOptions"·title="PartialEq">PartialEq</a></li><li><a·href="#impl-StructuralPartialEq-for-TestTimeOptions"·title="StructuralPartialEq">StructuralPartialEq</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-TestTimeOptions"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-TestTimeOptions"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-TestTimeOptions"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-TestTimeOptions"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-TestTimeOptions"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-TestTimeOptions"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·test::<wbr>test</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">test</a>::<wbr><a·href="index.html">test</a></span><h1>Struct·<span·class="struct">TestTimeOptions</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/test/time.rs.html#134-141">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·TestTimeOptions·{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="Structure·with·parameters·for·calculating·test·execution·time."><title>TestTimeOptions·in·test::test·-·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-cb410811.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="test"·data-themes=""·data-resource-suffix="1.84.0"·data-rustdoc-version="1.84.0·(9fc6b4312·2025-01-07)·(built·from·a·source·tarball)"·data-channel="1.84.0"·data-search-js="search-92e6798f.js"·data-settings-js="settings-0f613d39.js"·><script·src="../../static.files/storage-59e33391.js"></script><script·defer·src="sidebar-items1.84.0.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·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../test/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../test/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-9a9549ea.svg"·alt="logo"></a><h2><a·href="../../test/index.html">test</a><span·class="version">1.84.0</span></h2></div><div·class="version">(9fc6b4312»2025-01-07)»     (built»       from»   a»  source»    tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Test<wbr>Time<wbr>Options</a></h2><h3><a·href="#fields">Fields</a></h3><ul·class="block·structfield"><li><a·href="#structfield.doctest_threshold"·title="doctest_threshold">doctest_threshold</a></li><li><a·href="#structfield.error_on_excess"·title="error_on_excess">error_on_excess</a></li><li><a·href="#structfield.integration_threshold"·title="integration_threshold">integration_threshold</a></li><li><a·href="#structfield.unit_threshold"·title="unit_threshold">unit_threshold</a></li></ul><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.is_critical"·title="is_critical">is_critical</a></li><li><a·href="#method.is_warn"·title="is_warn">is_warn</a></li><li><a·href="#method.new_from_env"·title="new_from_env">new_from_env</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-TestTimeOptions"·title="Clone">Clone</a></li><li><a·href="#impl-Copy-for-TestTimeOptions"·title="Copy">Copy</a></li><li><a·href="#impl-Debug-for-TestTimeOptions"·title="Debug">Debug</a></li><li><a·href="#impl-Default-for-TestTimeOptions"·title="Default">Default</a></li><li><a·href="#impl-Eq-for-TestTimeOptions"·title="Eq">Eq</a></li><li><a·href="#impl-PartialEq-for-TestTimeOptions"·title="PartialEq">PartialEq</a></li><li><a·href="#impl-StructuralPartialEq-for-TestTimeOptions"·title="StructuralPartialEq">StructuralPartialEq</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-TestTimeOptions"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-TestTimeOptions"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-TestTimeOptions"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-TestTimeOptions"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-TestTimeOptions"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-TestTimeOptions"·title="UnwindSafe">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T"·title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a·href="#impl-CloneToUninit-for-T"·title="CloneToUninit">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-Into%3CU%3E-for-T"·title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a·href="#impl-ToOwned-for-T"·title="ToOwned">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T"·title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div·id="rustdoc-modnav"><h2><a·href="index.html">In·test::<wbr>test</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">test</a>::<wbr><a·href="index.html">test</a></span><h1>Struct·<span·class="struct">TestTimeOptions</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/test/time.rs.html#134-141">Source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·TestTimeOptions·{
2 ····pub·error_on_excess:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>,2 ····pub·error_on_excess:·<a·class="primitive"·href="../../std/primitive.bool.html">bool</a>,
3 ····pub·unit_threshold:·TimeThreshold,3 ····pub·unit_threshold:·TimeThreshold,
4 ····pub·integration_threshold:·TimeThreshold,4 ····pub·integration_threshold:·TimeThreshold,
5 ····pub·doctest_threshold:·TimeThreshold,5 ····pub·doctest_threshold:·TimeThreshold,
6 }</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Structure·with·parameters·for·calculating·test·execution·time.</p>6 }</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Structure·with·parameters·for·calculating·test·execution·time.</p>
7 </div></details><h2·id="fields"·class="fields·section-header">Fields<a·href="#fields"·class="anchor">§</a></h2><span·id="structfield.error_on_excess"·class="structfield·section-header"><a·href="#structfield.error_on_excess"·class="anchor·field">§</a><code>error_on_excess:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a></code></span><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><div·class="docblock"><p>Denotes·if·the·test·critical·execution·time·limit·excess·should·be·considered7 </div></details><h2·id="fields"·class="fields·section-header">Fields<a·href="#fields"·class="anchor">§</a></h2><span·id="structfield.error_on_excess"·class="structfield·section-header"><a·href="#structfield.error_on_excess"·class="anchor·field">§</a><code>error_on_excess:·<a·class="primitive"·href="../../std/primitive.bool.html">bool</a></code></span><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><div·class="docblock"><p>Denotes·if·the·test·critical·execution·time·limit·excess·should·be·considered
8 a·test·failure.</p>8 a·test·failure.</p>
9 </div><span·id="structfield.unit_threshold"·class="structfield·section-header"><a·href="#structfield.unit_threshold"·class="anchor·field">§</a><code>unit_threshold:·TimeThreshold</code></span><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><span·id="structfield.integration_threshold"·class="structfield·section-header"><a·href="#structfield.integration_threshold"·class="anchor·field">§</a><code>integration_threshold:·TimeThreshold</code></span><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><span·id="structfield.doctest_threshold"·class="structfield·section-header"><a·href="#structfield.doctest_threshold"·class="anchor·field">§</a><code>doctest_threshold:·TimeThreshold</code></span><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-TestTimeOptions"·class="impl"><a·class="src·rightside"·href="../../src/test/time.rs.html#143-195">Source</a><a·href="#impl-TestTimeOptions"·class="anchor">§</a><h3·class="code-header">impl·<a·class="struct"·href="struct.TestTimeOptions.html"·title="struct·test::test::TestTimeOptions">TestTimeOptions</a></h3></section></summary><div·class="impl-items"><section·id="method.new_from_env"·class="method"><a·class="src·rightside"·href="../../src/test/time.rs.html#144-156">Source</a><h4·class="code-header">pub·fn·<a·href="#method.new_from_env"·class="fn">new_from_env</a>(error_on_excess:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>)·-&gt;·Self</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></spa[·...·truncated·by·diffoscope;·len:·7933,·SHA:·05899d343e9523bbb5f27f4c3769d459ec4a4ea5439b0e66ac221bcb40ee62ed·...·]/std/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>!=</code>.·The·default·implementation·is·almost·always·sufficient,9 </div><span·id="structfield.unit_threshold"·class="structfield·section-header"><a·href="#structfield.unit_threshold"·class="anchor·field">§</a><code>unit_threshold:·TimeThreshold</code></span><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><span·id="structfield.integration_threshold"·class="structfield·section-header"><a·href="#structfield.integration_threshold"·class="anchor·field">§</a><code>integration_threshold:·TimeThreshold</code></span><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><span·id="structfield.doctest_threshold"·class="structfield·section-header"><a·href="#structfield.doctest_threshold"·class="anchor·field">§</a><code>doctest_threshold:·TimeThreshold</code></span><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-TestTimeOptions"·class="impl"><a·class="src·rightside"·href="../../src/test/time.rs.html#143-195">Source</a><a·href="#impl-TestTimeOptions"·class="anchor">§</a><h3·class="code-header">impl·<a·class="struct"·href="struct.TestTimeOptions.html"·title="struct·test::test::TestTimeOptions">TestTimeOptions</a></h3></section></summary><div·class="impl-items"><section·id="method.new_from_env"·class="method"><a·class="src·rightside"·href="../../src/test/time.rs.html#144-156">Source</a><h4·class="code-header">pub·fn·<a·href="#method.new_from_env"·class="fn">new_from_env</a>(error_on_excess:·<a·class="primitive"·href="../../std/primitive.bool.html">bool</a>)·-&gt;·Self</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>test</code>)</span></div></span><section·id="method.is_wa[·...·truncated·by·diffoscope;·len:·7771,·SHA:·24b369b1af8c4ffe644bc15901e6a64795d0dd2ca1837c575111bd66a8645976·...·]/std/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>!=</code>.·The·default·implementation·is·almost·always·sufficient,
10 and·should·not·be·overridden·without·very·good·reason.</div></details></div></details><section·id="impl-Copy-for-TestTimeOptions"·class="impl"><a·class="src·rightside"·href="../../src/test/time.rs.html#133">Source</a><a·href="#impl-Copy-for-TestTimeOptions"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Copy.html"·title="trait·core::marker::Copy">Copy</a>·for·<a·class="struct"·href="struct.TestTimeOptions.html"·title="struct·test::test::TestTimeOptions">TestTimeOptions</a></h3></section><section·id="impl-Eq-for-TestTimeOptions"·class="impl"><a·class="src·rightside"·href="../../src/test/time.rs.html#133">Source</a><a·href="#impl-Eq-for-TestTimeOptions"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/cmp/trait.Eq.html"·title="trait·core::cmp::Eq">Eq</a>·for·<a·class="struct"·href="struct.TestTimeOptions.html"·title="struct·test::test::TestTimeOptions">TestTimeOptions</a></h3></section><section·id="impl-StructuralPartialEq-for-TestTimeOptions"·class="impl"><a·class="src·rightside"·href="../../src/test/time.rs.html#133">Source</a><a·href="#impl-StructuralPartialEq-for-TestTimeOptions"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.StructuralPartialEq.html"·title="trait·core::marker::StructuralPartialEq">StructuralPartialEq</a>·for·<a·class="struct"·href="struct.TestTimeOptions.html"·title="struct·test::test::TestTimeOptions">TestTimeOptions</a></h3></section></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-TestTimeOptions"·class="impl"><a·href="#impl-Freeze-for-TestTimeOptions"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="struct"·href="struct.TestTimeOptions.html"·title="struct·test::test::TestTimeOptions">TestTimeOptions</a></h3></section><section·id="impl-RefUnwindSafe-for-TestTimeOptions"·class="impl"><a·href="#impl-RefUnwindSafe-for-TestTimeOptions"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="struct"·href="struct.TestTimeOptions.html"·title="struct·test::test::TestTimeOptions">TestTimeOptions</a></h3></section><section·id="impl-Send-for-TestTimeOptions"·class="impl"><a·href="#impl-Send-for-TestTimeOptions"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="struct"·href="struct.TestTimeOptions.html"·title="struct·test::test::TestTimeOptions">TestTimeOptions</a></h3></section><section·id="impl-Sync-for-TestTimeOptions"·class="impl"><a·href="#impl-Sync-for-TestTimeOptions"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="struct"·href="struct.TestTimeOptions.html"·title="struct·test::test::TestTimeOptions">TestTimeOptions</a></h3></section><section·id="impl-Unpin-for-TestTimeOptions"·class="impl"><a·href="#impl-Unpin-for-TestTimeOptions"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="struct"·href="struct.TestTimeOptions.html"·title="struct·test::test::TestTimeOptions">TestTimeOptions</a></h3></section><section·id="impl-UnwindSafe-for-TestTimeOptions"·class="impl"><a·href="#impl-UnwindSafe-for-TestTimeOptions"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="struct"·href="struct.TestTimeOptions.html"·title="struct·test::test::TestTimeOptions">TestTimeOptions</a></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementations<a·href="#blanket-implementations"·class="anchor">§</a></h2><div·id="blanket-implementations-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-Any-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/any.rs.html#138">Source</a><a·href="#impl-Any-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where10 and·should·not·be·overridden·without·very·good·reason.</div></details></div></details><section·id="impl-Copy-for-TestTimeOptions"·class="impl"><a·class="src·rightside"·href="../../src/test/time.rs.html#133">Source</a><a·href="#impl-Copy-for-TestTimeOptions"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Copy.html"·title="trait·core::marker::Copy">Copy</a>·for·<a·class="struct"·href="struct.TestTimeOptions.html"·title="struct·test::test::TestTimeOptions">TestTimeOptions</a></h3></section><section·id="impl-Eq-for-TestTimeOptions"·class="impl"><a·class="src·rightside"·href="../../src/test/time.rs.html#133">Source</a><a·href="#impl-Eq-for-TestTimeOptions"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/cmp/trait.Eq.html"·title="trait·core::cmp::Eq">Eq</a>·for·<a·class="struct"·href="struct.TestTimeOptions.html"·title="struct·test::test::TestTimeOptions">TestTimeOptions</a></h3></section><section·id="impl-StructuralPartialEq-for-TestTimeOptions"·class="impl"><a·class="src·rightside"·href="../../src/test/time.rs.html#133">Source</a><a·href="#impl-StructuralPartialEq-for-TestTimeOptions"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.StructuralPartialEq.html"·title="trait·core::marker::StructuralPartialEq">StructuralPartialEq</a>·for·<a·class="struct"·href="struct.TestTimeOptions.html"·title="struct·test::test::TestTimeOptions">TestTimeOptions</a></h3></section></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-TestTimeOptions"·class="impl"><a·href="#impl-Freeze-for-TestTimeOptions"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="struct"·href="struct.TestTimeOptions.html"·title="struct·test::test::TestTimeOptions">TestTimeOptions</a></h3></section><section·id="impl-RefUnwindSafe-for-TestTimeOptions"·class="impl"><a·href="#impl-RefUnwindSafe-for-TestTimeOptions"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="struct"·href="struct.TestTimeOptions.html"·title="struct·test::test::TestTimeOptions">TestTimeOptions</a></h3></section><section·id="impl-Send-for-TestTimeOptions"·class="impl"><a·href="#impl-Send-for-TestTimeOptions"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="struct"·href="struct.TestTimeOptions.html"·title="struct·test::test::TestTimeOptions">TestTimeOptions</a></h3></section><section·id="impl-Sync-for-TestTimeOptions"·class="impl"><a·href="#impl-Sync-for-TestTimeOptions"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="struct"·href="struct.TestTimeOptions.html"·title="struct·test::test::TestTimeOptions">TestTimeOptions</a></h3></section><section·id="impl-Unpin-for-TestTimeOptions"·class="impl"><a·href="#impl-Unpin-for-TestTimeOptions"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="struct"·href="struct.TestTimeOptions.html"·title="struct·test::test::TestTimeOptions">TestTimeOptions</a></h3></section><section·id="impl-UnwindSafe-for-TestTimeOptions"·class="impl"><a·href="#impl-UnwindSafe-for-TestTimeOptions"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="struct"·href="struct.TestTimeOptions.html"·title="struct·test::test::TestTimeOptions">TestTimeOptions</a></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementations<a·href="#blanket-implementations"·class="anchor">§</a></h2><div·id="blanket-implementations-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-Any-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/any.rs.html#138">Source</a><a·href="#impl-Any-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where
11 ····T:·'static·+·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/any.rs.html#139">Source</a><a·href="#method.type_id"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/any/trait.Any.html#tymethod.type_id"·class="fn">type_id</a>(&amp;self)·-&gt;·<a·class="struct"·href="../../core/any/struct.TypeId.html"·title="struct·core::any::TypeId">TypeId</a></h4></section></summary><div·class='docblock'>Gets·the·<code>TypeId</code>·of·<code>self</code>.·<a·href="../../core/any/trait.Any.html#tymethod.type_id">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Borrow%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/borrow/trait.Borrow.html"·title="trait·core::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where11 ····T:·'static·+·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/any.rs.html#139">Source</a><a·href="#method.type_id"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/any/trait.Any.html#tymethod.type_id"·class="fn">type_id</a>(&amp;self)·-&gt;·<a·class="struct"·href="../../core/any/struct.TypeId.html"·title="struct·core::any::TypeId">TypeId</a></h4></section></summary><div·class='docblock'>Gets·the·<code>TypeId</code>·of·<code>self</code>.·<a·href="../../core/any/trait.Any.html#tymethod.type_id">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Borrow%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#209">Source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/borrow/trait.Borrow.html"·title="trait·core::borrow::Borrow">Borrow</a>&lt;T&gt;·for·T<div·class="where">where
12 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#211">Source</a><a·href="#method.borrow"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/borrow/trait.Borrow.html#tymethod.borrow"·class="fn">borrow</a>(&amp;self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;T</a></h4></section></summary><div·class='docblock'>Immutably·borrows·from·an·owned·value.·<a·href="../../core/borrow/trait.Borrow.html#tymethod.borrow">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-BorrowMut%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/borrow/trait.BorrowMut.html"·title="trait·core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where12 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#211">Source</a><a·href="#method.borrow"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/borrow/trait.Borrow.html#tymethod.borrow"·class="fn">borrow</a>(&amp;self)·-&gt;·<a·class="primitive"·href="../../std/primitive.reference.html">&amp;T</a></h4></section></summary><div·class='docblock'>Immutably·borrows·from·an·owned·value.·<a·href="../../core/borrow/trait.Borrow.html#tymethod.borrow">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-BorrowMut%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#217">Source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/borrow/trait.BorrowMut.html"·title="trait·core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt;·for·T<div·class="where">where
13 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#218">Source</a><a·href="#method.borrow_mut"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"·class="fn">borrow_mut</a>(&amp;mut·self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;mut·T</a></h4></section></summary><div·class='docblock'>Mutably·borrows·from·an·owned·value.·<a·href="../../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-CloneToUninit-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/clone.rs.html#273">Source</a><a·href="#impl-CloneToUninit-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where13 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#218">Source</a><a·href="#method.borrow_mut"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"·class="fn">borrow_mut</a>(&amp;mut·self)·-&gt;·<a·class="primitive"·href="../../std/primitive.reference.html">&amp;mut·T</a></h4></section></summary><div·class='docblock'>Mutably·borrows·from·an·owned·value.·<a·href="../../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-CloneToUninit-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/clone.rs.html#273">Source</a><a·href="#impl-CloneToUninit-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where
14 ····T:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/clone.rs.html#275">Source</a><a·href="#method.clone_to_uninit"·class="anchor">§</a><h4·class="code-header">unsafe·fn·<a·href="../../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit"·class="fn">clone_to_uninit</a>(&amp;self,·dst:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.pointer.html">*mut·</a><a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.u8.html">u8</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>clone_to_uninit</code>)</span></div></span><div·class='docblock'>Performs·copy-assignment·from·<code>self</code>·to·<code>dst</code>.·<a·href="../../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-From%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#765">Source</a><a·href="#impl-From%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·T</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#768">Source</a><a·href="#method.from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>14 ····T:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/clone.rs.html#275">Source</a><a·href="#method.clone_to_uninit"·class="anchor">§</a><h4·class="code-header">unsafe·fn·<a·href="../../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit"·class="fn">clone_to_uninit</a>(&amp;self,·dst:·<a·class="primitive"·href="../../std/primitive.pointer.html">*mut·</a><a·class="primitive"·href="../../std/primitive.u8.html">u8</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>clone_to_uninit</code>)</span></div></span><div·class='docblock'>Performs·copy-assignment·from·<code>self</code>·to·<code>dst</code>.·<a·href="../../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-From%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#765">Source</a><a·href="#impl-From%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·T</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#768">Source</a><a·href="#method.from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>
15 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where15 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#748-750">Source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where
16 ····U:·<a·class="trait"·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#758">Source</a><a·href="#method.into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>16 ····U:·<a·class="trait"·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#758">Source</a><a·href="#method.into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>
17 <p>That·is,·this·conversion·is·whatever·the·implementation·of17 <p>That·is,·this·conversion·is·whatever·the·implementation·of
18 <code><a·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>18 <code><a·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>
19 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#82-84">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../alloc/borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where19 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#82-84">Source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../alloc/borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where
20 ····T:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#86">Source</a><a·href="#associatedtype.Owned"·class="anchor">§</a><h4·class="code-header">type·<a·href="../../alloc/borrow/trait.ToOwned.html#associatedtype.Owned"·class="associatedtype">Owned</a>·=·T</h4></section></summary><div·class='docblock'>The·resulting·type·after·obtaining·ownership.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.to_owned"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#87">Source</a><a·href="#method.to_owned"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../alloc/borrow/trait.ToOwned.html#tymethod.to_owned"·class="fn">to_owned</a>(&amp;self)·-&gt;·T</h4></section></summary><div·class='docblock'>Creates·owned·data·from·borrowed·data,·usually·by·cloning.·<a·href="../../alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#91">Source</a><a·href="#method.clone_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../alloc/borrow/trait.ToOwned.html#method.clone_into"·class="fn">clone_into</a>(&amp;self,·target:·<a·class="primitive"·href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../../alloc/borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#805-807">Source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where20 ····T:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#86">Source</a><a·href="#associatedtype.Owned"·class="anchor">§</a><h4·class="code-header">type·<a·href="../../alloc/borrow/trait.ToOwned.html#associatedtype.Owned"·class="associatedtype">Owned</a>·=·T</h4></section></summary><div·class='docblock'>The·resulting·type·after·obtaining·ownership.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.to_owned"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#87">Source</a><a·href="#method.to_owned"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../alloc/borrow/trait.ToOwned.html#tymethod.to_owned"·class="fn">to_owned</a>(&amp;self)·-&gt;·T</h4></section></summary><div·class='docblock'>Creates·owned·data·from·borrowed·data,·usually·by·cloning.·<a·href="../../alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#91">Source</a><a·href="#method.clone_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../alloc/borrow/trait.ToOwned.html#method.clone_into"·class="fn">clone_into</a>(&amp;self,·target:·<a·class="primitive"·href="../../std/primitive.reference.html">&amp;mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../../alloc/borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#805-807">Source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where
21 ····U:·<a·class="trait"·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#809">Source</a><a·href="#associatedtype.Error-1"·class="anchor">§</a><h4·class="code-header">type·<a·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<a·class="enum"·href="../../core/convert/enum.Infallible.html"·title="enum·core::convert::Infallible">Infallible</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_from"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#812">Source</a><a·href="#method.try_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.TryFrom.html#tymethod.try_from"·class="fn">try_from</a>(value:·U)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;T,·&lt;T·as·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;&gt;::<a·class="associatedtype"·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryInto%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#790-792">Source</a><a·href="#impl-TryInto%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where21 ····U:·<a·class="trait"·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#809">Source</a><a·href="#associatedtype.Error-1"·class="anchor">§</a><h4·class="code-header">type·<a·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<a·class="enum"·href="../../core/convert/enum.Infallible.html"·title="enum·core::convert::Infallible">Infallible</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_from"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#812">Source</a><a·href="#method.try_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.TryFrom.html#tymethod.try_from"·class="fn">try_from</a>(value:·U)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;T,·&lt;T·as·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;&gt;::<a·class="associatedtype"·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryInto%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#790-792">Source</a><a·href="#impl-TryInto%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where
22 ····U:·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#794">Source</a><a·href="#associatedtype.Error"·class="anchor">§</a><h4·class="code-header">type·<a·href="../../core/convert/trait.TryInto.html#associatedtype.Error"·class="associatedtype">Error</a>·=·&lt;U·as·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#797">Source</a><a·href="#method.try_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.TryInto.html#tymethod.try_into"·class="fn">try_into</a>(self)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;U,·&lt;U·as·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>22 ····U:·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#794">Source</a><a·href="#associatedtype.Error"·class="anchor">§</a><h4·class="code-header">type·<a·href="../../core/convert/trait.TryInto.html#associatedtype.Error"·class="associatedtype">Error</a>·=·&lt;U·as·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#797">Source</a><a·href="#method.try_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/convert/trait.TryInto.html#tymethod.try_into"·class="fn">try_into</a>(self)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;U,·&lt;U·as·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a·class="associatedtype"·href="../../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>
2.07 KB
./usr/share/doc/rust-doc/html/trait.impl/core/async_iter/async_iter/trait.AsyncIterator.js
1.89 KB
js-beautify {}
Max HTML report size reached
7.54 KB
./usr/share/doc/rust-doc/html/trait.impl/core/borrow/trait.Borrow.js
7.41 KB
js-beautify {}
Max HTML report size reached
3.18 KB
./usr/share/doc/rust-doc/html/trait.impl/core/borrow/trait.BorrowMut.js
3.04 KB
js-beautify {}
Max HTML report size reached
42.5 KB
./usr/share/doc/rust-doc/html/trait.impl/core/clone/trait.Clone.js
42.4 KB
js-beautify {}
Max HTML report size reached
16.4 KB
./usr/share/doc/rust-doc/html/trait.impl/core/cmp/trait.Eq.js
16.3 KB
js-beautify {}
Max HTML report size reached
13.0 KB
./usr/share/doc/rust-doc/html/trait.impl/core/cmp/trait.Ord.js
12.9 KB
js-beautify {}
Max HTML report size reached
54.0 KB
./usr/share/doc/rust-doc/html/trait.impl/core/cmp/trait.PartialEq.js
53.8 KB
js-beautify {}
Max HTML report size reached
14.5 KB
./usr/share/doc/rust-doc/html/trait.impl/core/cmp/trait.PartialOrd.js
14.4 KB
js-beautify {}
Max HTML report size reached
4.18 KB
./usr/share/doc/rust-doc/html/trait.impl/core/convert/trait.AsMut.js
4.04 KB
js-beautify {}
Max HTML report size reached
13.3 KB
./usr/share/doc/rust-doc/html/trait.impl/core/convert/trait.AsRef.js
13.1 KB
js-beautify {}
Max HTML report size reached
106 KB
./usr/share/doc/rust-doc/html/trait.impl/core/convert/trait.From.js
105 KB
js-beautify {}
Max HTML report size reached
8.96 KB
./usr/share/doc/rust-doc/html/trait.impl/core/convert/trait.TryFrom.js
8.82 KB
js-beautify {}
Max HTML report size reached
34.6 KB
./usr/share/doc/rust-doc/html/trait.impl/core/default/trait.Default.js
34.5 KB
js-beautify {}
Max HTML report size reached
9.0 KB
./usr/share/doc/rust-doc/html/trait.impl/core/error/trait.Error.js
8.87 KB
js-beautify {}
Max HTML report size reached
57.9 KB
./usr/share/doc/rust-doc/html/trait.impl/core/fmt/trait.Debug.js
57.8 KB
js-beautify {}
Max HTML report size reached
10.9 KB
./usr/share/doc/rust-doc/html/trait.impl/core/fmt/trait.Display.js
10.8 KB
js-beautify {}
Max HTML report size reached
3.45 KB
./usr/share/doc/rust-doc/html/trait.impl/core/fmt/trait.Pointer.js
3.32 KB
js-beautify {}
Max HTML report size reached
2.13 KB
./usr/share/doc/rust-doc/html/trait.impl/core/future/future/trait.Future.js
1.99 KB
js-beautify {}
Max HTML report size reached
13.2 KB
./usr/share/doc/rust-doc/html/trait.impl/core/hash/trait.Hash.js
13.1 KB
js-beautify {}
Max HTML report size reached
2.09 KB
./usr/share/doc/rust-doc/html/trait.impl/core/hash/trait.Hasher.js
1.96 KB
js-beautify {}
Max HTML report size reached
23.0 KB
./usr/share/doc/rust-doc/html/trait.impl/core/iter/traits/collect/trait.Extend.js
22.9 KB
js-beautify {}
Max HTML report size reached
24.7 KB
./usr/share/doc/rust-doc/html/trait.impl/core/iter/traits/collect/trait.FromIterator.js
24.6 KB
js-beautify {}
Max HTML report size reached
20.7 KB
./usr/share/doc/rust-doc/html/trait.impl/core/iter/traits/collect/trait.IntoIterator.js
20.5 KB
js-beautify {}
Max HTML report size reached
28.0 KB
./usr/share/doc/rust-doc/html/trait.impl/core/iter/traits/double_ended/trait.DoubleEndedIterator.js
27.8 KB
js-beautify {}
Max HTML report size reached
26.8 KB
./usr/share/doc/rust-doc/html/trait.impl/core/iter/traits/exact_size/trait.ExactSizeIterator.js
26.7 KB
js-beautify {}
Max HTML report size reached
42.3 KB
./usr/share/doc/rust-doc/html/trait.impl/core/iter/traits/iterator/trait.Iterator.js
42.2 KB
js-beautify {}
Max HTML report size reached
35.6 KB
./usr/share/doc/rust-doc/html/trait.impl/core/iter/traits/marker/trait.FusedIterator.js
35.4 KB
js-beautify {}
Max HTML report size reached
6.97 KB
./usr/share/doc/rust-doc/html/trait.impl/core/iter/traits/marker/trait.TrustedLen.js
6.81 KB
js-beautify {}
Max HTML report size reached
2.01 KB
./usr/share/doc/rust-doc/html/trait.impl/core/marker/trait.Copy.js
1.88 KB
js-beautify {}
Max HTML report size reached
67.9 KB
./usr/share/doc/rust-doc/html/trait.impl/core/marker/trait.Freeze.js
67.8 KB
js-beautify {}
Max HTML report size reached
1.14 KB
./usr/share/doc/rust-doc/html/trait.impl/core/marker/trait.PointerLike.js
1.0 KB
js-beautify {}
Max HTML report size reached
90.8 KB
./usr/share/doc/rust-doc/html/trait.impl/core/marker/trait.Send.js
90.6 KB
js-beautify {}
Max HTML report size reached
6.91 KB
./usr/share/doc/rust-doc/html/trait.impl/core/marker/trait.StructuralPartialEq.js
6.75 KB
js-beautify {}
Max HTML report size reached
90.8 KB
./usr/share/doc/rust-doc/html/trait.impl/core/marker/trait.Sync.js
90.6 KB
js-beautify {}
Max HTML report size reached
69.0 KB
./usr/share/doc/rust-doc/html/trait.impl/core/marker/trait.Unpin.js
68.9 KB
js-beautify {}
Max HTML report size reached
3.48 KB
./usr/share/doc/rust-doc/html/trait.impl/core/ops/arith/trait.Add.js
3.35 KB
js-beautify {}
Max HTML report size reached
3.63 KB
./usr/share/doc/rust-doc/html/trait.impl/core/ops/arith/trait.AddAssign.js
3.49 KB
js-beautify {}
Max HTML report size reached
4.34 KB
./usr/share/doc/rust-doc/html/trait.impl/core/ops/arith/trait.Sub.js
4.21 KB
js-beautify {}
Max HTML report size reached
2.25 KB
./usr/share/doc/rust-doc/html/trait.impl/core/ops/async_function/trait.AsyncFn.js
2.09 KB
js-beautify {}
Max HTML report size reached
2.29 KB
./usr/share/doc/rust-doc/html/trait.impl/core/ops/async_function/trait.AsyncFnMut.js
2.13 KB
js-beautify {}
Max HTML report size reached
2.31 KB
./usr/share/doc/rust-doc/html/trait.impl/core/ops/async_function/trait.AsyncFnOnce.js
2.14 KB
js-beautify {}
Max HTML report size reached
3.47 KB
./usr/share/doc/rust-doc/html/trait.impl/core/ops/bit/trait.BitAnd.js
3.34 KB
js-beautify {}
Max HTML report size reached
3.46 KB
./usr/share/doc/rust-doc/html/trait.impl/core/ops/bit/trait.BitOr.js
3.33 KB
js-beautify {}
Max HTML report size reached
3.47 KB
./usr/share/doc/rust-doc/html/trait.impl/core/ops/bit/trait.BitXor.js
3.34 KB
js-beautify {}
Max HTML report size reached
3.92 KB
./usr/share/doc/rust-doc/html/trait.impl/core/ops/coroutine/trait.Coroutine.js
3.77 KB
js-beautify {}
Max HTML report size reached
10.8 KB
./usr/share/doc/rust-doc/html/trait.impl/core/ops/deref/trait.Deref.js
10.7 KB
js-beautify {}
Max HTML report size reached
7.0 KB
./usr/share/doc/rust-doc/html/trait.impl/core/ops/deref/trait.DerefMut.js
6.86 KB
js-beautify {}
Max HTML report size reached
6.59 KB
./usr/share/doc/rust-doc/html/trait.impl/core/ops/deref/trait.DerefPure.js
6.45 KB
js-beautify {}
Max HTML report size reached
21.2 KB
./usr/share/doc/rust-doc/html/trait.impl/core/ops/drop/trait.Drop.js
21.1 KB
js-beautify {}
Max HTML report size reached
2.12 KB
./usr/share/doc/rust-doc/html/trait.impl/core/ops/function/trait.Fn.js
1.99 KB
js-beautify {}
Max HTML report size reached
2.17 KB
./usr/share/doc/rust-doc/html/trait.impl/core/ops/function/trait.FnMut.js
2.02 KB
js-beautify {}
Max HTML report size reached
2.18 KB
./usr/share/doc/rust-doc/html/trait.impl/core/ops/function/trait.FnOnce.js
2.03 KB
js-beautify {}
Max HTML report size reached
8.4 KB
./usr/share/doc/rust-doc/html/trait.impl/core/ops/index/trait.Index.js
8.26 KB
js-beautify {}
Max HTML report size reached
4.27 KB
./usr/share/doc/rust-doc/html/trait.impl/core/ops/index/trait.IndexMut.js
4.13 KB
js-beautify {}
Max HTML report size reached
11.3 KB
./usr/share/doc/rust-doc/html/trait.impl/core/ops/unsize/trait.CoerceUnsized.js
11.2 KB
js-beautify {}
Max HTML report size reached
8.58 KB
./usr/share/doc/rust-doc/html/trait.impl/core/ops/unsize/trait.DispatchFromDyn.js
8.42 KB
js-beautify {}
Max HTML report size reached
111 KB
./usr/share/doc/rust-doc/html/trait.impl/core/panic/unwind_safe/trait.RefUnwindSafe.js
111 KB
js-beautify {}
Max HTML report size reached
96.4 KB
./usr/share/doc/rust-doc/html/trait.impl/core/panic/unwind_safe/trait.UnwindSafe.js
96.2 KB
js-beautify {}
Max HTML report size reached
6.62 KB
./usr/share/doc/rust-doc/html/trait.impl/core/pin/trait.PinCoerceUnsized.js
6.47 KB
js-beautify {}
Max HTML report size reached
28.3 KB
./usr/share/doc/rust-doc/html/type.impl/alloc/alloc/struct.LayoutError.js
28.1 KB
js-beautify {}
Max HTML report size reached
56.2 KB
./usr/share/doc/rust-doc/html/type.impl/core/convert/enum.Infallible.js
56.1 KB
js-beautify {}
Max HTML report size reached
313 KB
./usr/share/doc/rust-doc/html/type.impl/core/result/enum.Result.js
313 KB
js-beautify {}
Max HTML report size reached